@sailingrotevista/rotevista-webapp 2.1.19 → 2.2.4
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.
- package/package.json +1 -1
- package/public/assets/index-ONne_pld.js +417 -0
- package/public/index.html +1 -1
|
@@ -0,0 +1,417 @@
|
|
|
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 _u=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ke(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var $A={exports:{}},Op={},LA={exports:{}},Me={};/**
|
|
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 ef=Symbol.for("react.element"),eL=Symbol.for("react.portal"),tL=Symbol.for("react.fragment"),nL=Symbol.for("react.strict_mode"),rL=Symbol.for("react.profiler"),iL=Symbol.for("react.provider"),oL=Symbol.for("react.context"),aL=Symbol.for("react.forward_ref"),sL=Symbol.for("react.suspense"),lL=Symbol.for("react.memo"),uL=Symbol.for("react.lazy"),fb=Symbol.iterator;function cL(e){return e===null||typeof e!="object"?null:(e=fb&&e[fb]||e["@@iterator"],typeof e=="function"?e:null)}var IA={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},DA=Object.assign,RA={};function _l(e,t,n){this.props=e,this.context=t,this.refs=RA,this.updater=n||IA}_l.prototype.isReactComponent={};_l.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")};_l.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function zA(){}zA.prototype=_l.prototype;function W0(e,t,n){this.props=e,this.context=t,this.refs=RA,this.updater=n||IA}var H0=W0.prototype=new zA;H0.constructor=W0;DA(H0,_l.prototype);H0.isPureReactComponent=!0;var hb=Array.isArray,BA=Object.prototype.hasOwnProperty,G0={current:null},FA={key:!0,ref:!0,__self:!0,__source:!0};function VA(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)BA.call(t,r)&&!FA.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:ef,type:e,key:o,ref:s,props:i,_owner:G0.current}}function fL(e,t){return{$$typeof:ef,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Z0(e){return typeof e=="object"&&e!==null&&e.$$typeof===ef}function hL(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var db=/\/+/g;function Um(e,t){return typeof e=="object"&&e!==null&&e.key!=null?hL(""+e.key):t.toString(36)}function jh(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 ef:case eL:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+Um(s,0):r,hb(i)?(n="",e!=null&&(n=e.replace(db,"$&/")+"/"),jh(i,t,n,"",function(f){return f})):i!=null&&(Z0(i)&&(i=fL(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(db,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",hb(e))for(var l=0;l<e.length;l++){o=e[l];var u=r+Um(o,l);s+=jh(o,t,n,u,i)}else if(u=cL(e),typeof u=="function")for(e=u.call(e),l=0;!(o=e.next()).done;)o=o.value,u=r+Um(o,l++),s+=jh(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 Gf(e,t,n){if(e==null)return e;var r=[],i=0;return jh(e,r,"","",function(o){return t.call(n,o,i++)}),r}function dL(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 wn={current:null},Nh={transition:null},pL={ReactCurrentDispatcher:wn,ReactCurrentBatchConfig:Nh,ReactCurrentOwner:G0};function UA(){throw Error("act(...) is not supported in production builds of React.")}Me.Children={map:Gf,forEach:function(e,t,n){Gf(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Gf(e,function(){t++}),t},toArray:function(e){return Gf(e,function(t){return t})||[]},only:function(e){if(!Z0(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Me.Component=_l;Me.Fragment=tL;Me.Profiler=rL;Me.PureComponent=W0;Me.StrictMode=nL;Me.Suspense=sL;Me.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=pL;Me.act=UA;Me.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=DA({},e.props),i=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=G0.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)BA.call(t,u)&&!FA.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:ef,type:e.type,key:i,ref:o,props:r,_owner:s}};Me.createContext=function(e){return e={$$typeof:oL,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:iL,_context:e},e.Consumer=e};Me.createElement=VA;Me.createFactory=function(e){var t=VA.bind(null,e);return t.type=e,t};Me.createRef=function(){return{current:null}};Me.forwardRef=function(e){return{$$typeof:aL,render:e}};Me.isValidElement=Z0;Me.lazy=function(e){return{$$typeof:uL,_payload:{_status:-1,_result:e},_init:dL}};Me.memo=function(e,t){return{$$typeof:lL,type:e,compare:t===void 0?null:t}};Me.startTransition=function(e){var t=Nh.transition;Nh.transition={};try{e()}finally{Nh.transition=t}};Me.unstable_act=UA;Me.useCallback=function(e,t){return wn.current.useCallback(e,t)};Me.useContext=function(e){return wn.current.useContext(e)};Me.useDebugValue=function(){};Me.useDeferredValue=function(e){return wn.current.useDeferredValue(e)};Me.useEffect=function(e,t){return wn.current.useEffect(e,t)};Me.useId=function(){return wn.current.useId()};Me.useImperativeHandle=function(e,t,n){return wn.current.useImperativeHandle(e,t,n)};Me.useInsertionEffect=function(e,t){return wn.current.useInsertionEffect(e,t)};Me.useLayoutEffect=function(e,t){return wn.current.useLayoutEffect(e,t)};Me.useMemo=function(e,t){return wn.current.useMemo(e,t)};Me.useReducer=function(e,t,n){return wn.current.useReducer(e,t,n)};Me.useRef=function(e){return wn.current.useRef(e)};Me.useState=function(e){return wn.current.useState(e)};Me.useSyncExternalStore=function(e,t,n){return wn.current.useSyncExternalStore(e,t,n)};Me.useTransition=function(){return wn.current.useTransition()};Me.version="18.3.1";LA.exports=Me;var j=LA.exports;const I=Ke(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 mL=j,vL=Symbol.for("react.element"),gL=Symbol.for("react.fragment"),yL=Object.prototype.hasOwnProperty,xL=mL.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,_L={key:!0,ref:!0,__self:!0,__source:!0};function WA(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)yL.call(t,r)&&!_L.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:vL,type:e,key:o,ref:s,props:i,_owner:xL.current}}Op.Fragment=gL;Op.jsx=WA;Op.jsxs=WA;$A.exports=Op;var y=$A.exports,lg={},HA={exports:{}},Xn={},GA={exports:{}},ZA={};/**
|
|
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(D,U){var V=D.length;D.push(U);e:for(;0<V;){var ee=V-1>>>1,te=D[ee];if(0<i(te,U))D[ee]=U,D[V]=te,V=ee;else break e}}function n(D){return D.length===0?null:D[0]}function r(D){if(D.length===0)return null;var U=D[0],V=D.pop();if(V!==U){D[0]=V;e:for(var ee=0,te=D.length,ae=te>>>1;ee<ae;){var pe=2*(ee+1)-1,de=D[pe],Q=pe+1,qe=D[Q];if(0>i(de,V))Q<te&&0>i(qe,de)?(D[ee]=qe,D[Q]=V,ee=Q):(D[ee]=de,D[pe]=V,ee=pe);else if(Q<te&&0>i(qe,V))D[ee]=qe,D[Q]=V,ee=Q;else break e}}return U}function i(D,U){var V=D.sortIndex-U.sortIndex;return V!==0?V:D.id-U.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,w=!1,b=!1,P=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(D){for(var U=n(f);U!==null;){if(U.callback===null)r(f);else if(U.startTime<=D)r(f),U.sortIndex=U.expirationTime,t(u,U);else break;U=n(f)}}function E(D){if(b=!1,S(D),!w)if(n(u)!==null)w=!0,K(O);else{var U=n(f);U!==null&&q(E,U.startTime-D)}}function O(D,U){w=!1,b&&(b=!1,_(C),C=-1),v=!0;var V=m;try{for(S(U),h=n(u);h!==null&&(!(h.expirationTime>U)||D&&!B());){var ee=h.callback;if(typeof ee=="function"){h.callback=null,m=h.priorityLevel;var te=ee(h.expirationTime<=U);U=e.unstable_now(),typeof te=="function"?h.callback=te:h===n(u)&&r(u),S(U)}else r(u);h=n(u)}if(h!==null)var ae=!0;else{var pe=n(f);pe!==null&&q(E,pe.startTime-U),ae=!1}return ae}finally{h=null,m=V,v=!1}}var A=!1,M=null,C=-1,N=5,z=-1;function B(){return!(e.unstable_now()-z<N)}function R(){if(M!==null){var D=e.unstable_now();z=D;var U=!0;try{U=M(!0,D)}finally{U?Y():(A=!1,M=null)}}else A=!1}var Y;if(typeof x=="function")Y=function(){x(R)};else if(typeof MessageChannel<"u"){var H=new MessageChannel,Z=H.port2;H.port1.onmessage=R,Y=function(){Z.postMessage(null)}}else Y=function(){P(R,0)};function K(D){M=D,A||(A=!0,Y())}function q(D,U){C=P(function(){D(e.unstable_now())},U)}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(D){D.callback=null},e.unstable_continueExecution=function(){w||v||(w=!0,K(O))},e.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):N=0<D?Math.floor(1e3/D):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(D){switch(m){case 1:case 2:case 3:var U=3;break;default:U=m}var V=m;m=U;try{return D()}finally{m=V}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(D,U){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var V=m;m=D;try{return U()}finally{m=V}},e.unstable_scheduleCallback=function(D,U,V){var ee=e.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?ee+V:ee):V=ee,D){case 1:var te=-1;break;case 2:te=250;break;case 5:te=1073741823;break;case 4:te=1e4;break;default:te=5e3}return te=V+te,D={id:d++,callback:U,priorityLevel:D,startTime:V,expirationTime:te,sortIndex:-1},V>ee?(D.sortIndex=V,t(f,D),n(u)===null&&D===n(f)&&(b?(_(C),C=-1):b=!0,q(E,V-ee))):(D.sortIndex=te,t(u,D),w||v||(w=!0,K(O))),D},e.unstable_shouldYield=B,e.unstable_wrapCallback=function(D){var U=m;return function(){var V=m;m=U;try{return D.apply(this,arguments)}finally{m=V}}}})(ZA);GA.exports=ZA;var bL=GA.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 wL=j,Zn=bL;function ie(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 KA=new Set,Xu={};function Da(e,t){Bs(e,t),Bs(e+"Capture",t)}function Bs(e,t){for(Xu[e]=t,e=0;e<t.length;e++)KA.add(t[e])}var $i=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ug=Object.prototype.hasOwnProperty,SL=/^[: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]*$/,pb={},mb={};function PL(e){return ug.call(mb,e)?!0:ug.call(pb,e)?!1:SL.test(e)?mb[e]=!0:(pb[e]=!0,!1)}function OL(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 TL(e,t,n,r){if(t===null||typeof t>"u"||OL(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 Sn(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 Xt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Xt[e]=new Sn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Xt[t]=new Sn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Xt[e]=new Sn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Xt[e]=new Sn(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){Xt[e]=new Sn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Xt[e]=new Sn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Xt[e]=new Sn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Xt[e]=new Sn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Xt[e]=new Sn(e,5,!1,e.toLowerCase(),null,!1,!1)});var K0=/[\-:]([a-z])/g;function q0(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(K0,q0);Xt[t]=new Sn(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(K0,q0);Xt[t]=new Sn(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(K0,q0);Xt[t]=new Sn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Xt[e]=new Sn(e,1,!1,e.toLowerCase(),null,!1,!1)});Xt.xlinkHref=new Sn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Xt[e]=new Sn(e,1,!1,e.toLowerCase(),null,!0,!0)});function X0(e,t,n,r){var i=Xt.hasOwnProperty(t)?Xt[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(TL(t,n,i,r)&&(n=null),r||i===null?PL(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 Ui=wL.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Zf=Symbol.for("react.element"),cs=Symbol.for("react.portal"),fs=Symbol.for("react.fragment"),Y0=Symbol.for("react.strict_mode"),cg=Symbol.for("react.profiler"),qA=Symbol.for("react.provider"),XA=Symbol.for("react.context"),Q0=Symbol.for("react.forward_ref"),fg=Symbol.for("react.suspense"),hg=Symbol.for("react.suspense_list"),J0=Symbol.for("react.memo"),uo=Symbol.for("react.lazy"),YA=Symbol.for("react.offscreen"),vb=Symbol.iterator;function eu(e){return e===null||typeof e!="object"?null:(e=vb&&e[vb]||e["@@iterator"],typeof e=="function"?e:null)}var mt=Object.assign,Wm;function bu(e){if(Wm===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Wm=t&&t[1]||""}return`
|
|
34
|
+
`+Wm+e}var Hm=!1;function Gm(e,t){if(!e||Hm)return"";Hm=!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{Hm=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?bu(e):""}function AL(e){switch(e.tag){case 5:return bu(e.type);case 16:return bu("Lazy");case 13:return bu("Suspense");case 19:return bu("SuspenseList");case 0:case 2:case 15:return e=Gm(e.type,!1),e;case 11:return e=Gm(e.type.render,!1),e;case 1:return e=Gm(e.type,!0),e;default:return""}}function dg(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 fs:return"Fragment";case cs:return"Portal";case cg:return"Profiler";case Y0:return"StrictMode";case fg:return"Suspense";case hg:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case XA:return(e.displayName||"Context")+".Consumer";case qA:return(e._context.displayName||"Context")+".Provider";case Q0:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case J0:return t=e.displayName||null,t!==null?t:dg(e.type)||"Memo";case uo:t=e._payload,e=e._init;try{return dg(e(t))}catch{}}return null}function EL(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 dg(t);case 8:return t===Y0?"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 ko(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function QA(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function kL(e){var t=QA(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 Kf(e){e._valueTracker||(e._valueTracker=kL(e))}function JA(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=QA(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Zh(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 pg(e,t){var n=t.checked;return mt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function gb(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ko(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 e2(e,t){t=t.checked,t!=null&&X0(e,"checked",t,!1)}function mg(e,t){e2(e,t);var n=ko(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")?vg(e,t.type,n):t.hasOwnProperty("defaultValue")&&vg(e,t.type,ko(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function yb(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 vg(e,t,n){(t!=="number"||Zh(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var wu=Array.isArray;function Ms(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=""+ko(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 gg(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(ie(91));return mt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function xb(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(ie(92));if(wu(n)){if(1<n.length)throw Error(ie(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:ko(n)}}function t2(e,t){var n=ko(t.value),r=ko(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 _b(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function n2(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 yg(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?n2(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var qf,r2=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(qf=qf||document.createElement("div"),qf.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=qf.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Yu(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Mu={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},ML=["Webkit","ms","Moz","O"];Object.keys(Mu).forEach(function(e){ML.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Mu[t]=Mu[e]})});function i2(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Mu.hasOwnProperty(e)&&Mu[e]?(""+t).trim():t+"px"}function o2(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=i2(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var CL=mt({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 xg(e,t){if(t){if(CL[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ie(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ie(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ie(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ie(62))}}function _g(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 bg=null;function ex(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var wg=null,Cs=null,js=null;function bb(e){if(e=rf(e)){if(typeof wg!="function")throw Error(ie(280));var t=e.stateNode;t&&(t=Mp(t),wg(e.stateNode,e.type,t))}}function a2(e){Cs?js?js.push(e):js=[e]:Cs=e}function s2(){if(Cs){var e=Cs,t=js;if(js=Cs=null,bb(e),t)for(e=0;e<t.length;e++)bb(t[e])}}function l2(e,t){return e(t)}function u2(){}var Zm=!1;function c2(e,t,n){if(Zm)return e(t,n);Zm=!0;try{return l2(e,t,n)}finally{Zm=!1,(Cs!==null||js!==null)&&(u2(),s2())}}function Qu(e,t){var n=e.stateNode;if(n===null)return null;var r=Mp(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(ie(231,t,typeof n));return n}var Sg=!1;if($i)try{var tu={};Object.defineProperty(tu,"passive",{get:function(){Sg=!0}}),window.addEventListener("test",tu,tu),window.removeEventListener("test",tu,tu)}catch{Sg=!1}function jL(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 Cu=!1,Kh=null,qh=!1,Pg=null,NL={onError:function(e){Cu=!0,Kh=e}};function $L(e,t,n,r,i,o,s,l,u){Cu=!1,Kh=null,jL.apply(NL,arguments)}function LL(e,t,n,r,i,o,s,l,u){if($L.apply(this,arguments),Cu){if(Cu){var f=Kh;Cu=!1,Kh=null}else throw Error(ie(198));qh||(qh=!0,Pg=f)}}function Ra(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 f2(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 wb(e){if(Ra(e)!==e)throw Error(ie(188))}function IL(e){var t=e.alternate;if(!t){if(t=Ra(e),t===null)throw Error(ie(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 wb(i),e;if(o===r)return wb(i),t;o=o.sibling}throw Error(ie(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(ie(189))}}if(n.alternate!==r)throw Error(ie(190))}if(n.tag!==3)throw Error(ie(188));return n.stateNode.current===n?e:t}function h2(e){return e=IL(e),e!==null?d2(e):null}function d2(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=d2(e);if(t!==null)return t;e=e.sibling}return null}var p2=Zn.unstable_scheduleCallback,Sb=Zn.unstable_cancelCallback,DL=Zn.unstable_shouldYield,RL=Zn.unstable_requestPaint,wt=Zn.unstable_now,zL=Zn.unstable_getCurrentPriorityLevel,tx=Zn.unstable_ImmediatePriority,m2=Zn.unstable_UserBlockingPriority,Xh=Zn.unstable_NormalPriority,BL=Zn.unstable_LowPriority,v2=Zn.unstable_IdlePriority,Tp=null,Jr=null;function FL(e){if(Jr&&typeof Jr.onCommitFiberRoot=="function")try{Jr.onCommitFiberRoot(Tp,e,void 0,(e.current.flags&128)===128)}catch{}}var $r=Math.clz32?Math.clz32:WL,VL=Math.log,UL=Math.LN2;function WL(e){return e>>>=0,e===0?32:31-(VL(e)/UL|0)|0}var Xf=64,Yf=4194304;function Su(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 Yh(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=Su(l):(o&=s,o!==0&&(r=Su(o)))}else s=n&~i,s!==0?r=Su(s):o!==0&&(r=Su(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-$r(t),i=1<<n,r|=e[n],t&=~i;return r}function HL(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 GL(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-$r(o),l=1<<s,u=i[s];u===-1?(!(l&n)||l&r)&&(i[s]=HL(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 g2(){var e=Xf;return Xf<<=1,!(Xf&4194240)&&(Xf=64),e}function Km(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function tf(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-$r(t),e[t]=n}function ZL(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-$r(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function nx(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-$r(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var Ve=0;function y2(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var x2,rx,_2,b2,w2,Tg=!1,Qf=[],_o=null,bo=null,wo=null,Ju=new Map,ec=new Map,ho=[],KL="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 Pb(e,t){switch(e){case"focusin":case"focusout":_o=null;break;case"dragenter":case"dragleave":bo=null;break;case"mouseover":case"mouseout":wo=null;break;case"pointerover":case"pointerout":Ju.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ec.delete(t.pointerId)}}function nu(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=rf(t),t!==null&&rx(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function qL(e,t,n,r,i){switch(t){case"focusin":return _o=nu(_o,e,t,n,r,i),!0;case"dragenter":return bo=nu(bo,e,t,n,r,i),!0;case"mouseover":return wo=nu(wo,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Ju.set(o,nu(Ju.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,ec.set(o,nu(ec.get(o)||null,e,t,n,r,i)),!0}return!1}function S2(e){var t=fa(e.target);if(t!==null){var n=Ra(t);if(n!==null){if(t=n.tag,t===13){if(t=f2(n),t!==null){e.blockedOn=t,w2(e.priority,function(){_2(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 $h(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ag(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);bg=r,n.target.dispatchEvent(r),bg=null}else return t=rf(n),t!==null&&rx(t),e.blockedOn=n,!1;t.shift()}return!0}function Ob(e,t,n){$h(e)&&n.delete(t)}function XL(){Tg=!1,_o!==null&&$h(_o)&&(_o=null),bo!==null&&$h(bo)&&(bo=null),wo!==null&&$h(wo)&&(wo=null),Ju.forEach(Ob),ec.forEach(Ob)}function ru(e,t){e.blockedOn===t&&(e.blockedOn=null,Tg||(Tg=!0,Zn.unstable_scheduleCallback(Zn.unstable_NormalPriority,XL)))}function tc(e){function t(i){return ru(i,e)}if(0<Qf.length){ru(Qf[0],e);for(var n=1;n<Qf.length;n++){var r=Qf[n];r.blockedOn===e&&(r.blockedOn=null)}}for(_o!==null&&ru(_o,e),bo!==null&&ru(bo,e),wo!==null&&ru(wo,e),Ju.forEach(t),ec.forEach(t),n=0;n<ho.length;n++)r=ho[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<ho.length&&(n=ho[0],n.blockedOn===null);)S2(n),n.blockedOn===null&&ho.shift()}var Ns=Ui.ReactCurrentBatchConfig,Qh=!0;function YL(e,t,n,r){var i=Ve,o=Ns.transition;Ns.transition=null;try{Ve=1,ix(e,t,n,r)}finally{Ve=i,Ns.transition=o}}function QL(e,t,n,r){var i=Ve,o=Ns.transition;Ns.transition=null;try{Ve=4,ix(e,t,n,r)}finally{Ve=i,Ns.transition=o}}function ix(e,t,n,r){if(Qh){var i=Ag(e,t,n,r);if(i===null)iv(e,t,r,Jh,n),Pb(e,r);else if(qL(i,e,t,n,r))r.stopPropagation();else if(Pb(e,r),t&4&&-1<KL.indexOf(e)){for(;i!==null;){var o=rf(i);if(o!==null&&x2(o),o=Ag(e,t,n,r),o===null&&iv(e,t,r,Jh,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else iv(e,t,r,null,n)}}var Jh=null;function Ag(e,t,n,r){if(Jh=null,e=ex(r),e=fa(e),e!==null)if(t=Ra(e),t===null)e=null;else if(n=t.tag,n===13){if(e=f2(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 Jh=e,null}function P2(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(zL()){case tx:return 1;case m2:return 4;case Xh:case BL:return 16;case v2:return 536870912;default:return 16}default:return 16}}var vo=null,ox=null,Lh=null;function O2(){if(Lh)return Lh;var e,t=ox,n=t.length,r,i="value"in vo?vo.value:vo.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 Lh=i.slice(e,1<r?1-r:void 0)}function Ih(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 Jf(){return!0}function Tb(){return!1}function Yn(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)?Jf:Tb,this.isPropagationStopped=Tb,this}return mt(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=Jf)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Jf)},persist:function(){},isPersistent:Jf}),t}var bl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ax=Yn(bl),nf=mt({},bl,{view:0,detail:0}),JL=Yn(nf),qm,Xm,iu,Ap=mt({},nf,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:sx,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==iu&&(iu&&e.type==="mousemove"?(qm=e.screenX-iu.screenX,Xm=e.screenY-iu.screenY):Xm=qm=0,iu=e),qm)},movementY:function(e){return"movementY"in e?e.movementY:Xm}}),Ab=Yn(Ap),eI=mt({},Ap,{dataTransfer:0}),tI=Yn(eI),nI=mt({},nf,{relatedTarget:0}),Ym=Yn(nI),rI=mt({},bl,{animationName:0,elapsedTime:0,pseudoElement:0}),iI=Yn(rI),oI=mt({},bl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),aI=Yn(oI),sI=mt({},bl,{data:0}),Eb=Yn(sI),lI={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},uI={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"},cI={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function fI(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=cI[e])?!!t[e]:!1}function sx(){return fI}var hI=mt({},nf,{key:function(e){if(e.key){var t=lI[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ih(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?uI[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:sx,charCode:function(e){return e.type==="keypress"?Ih(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ih(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),dI=Yn(hI),pI=mt({},Ap,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),kb=Yn(pI),mI=mt({},nf,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:sx}),vI=Yn(mI),gI=mt({},bl,{propertyName:0,elapsedTime:0,pseudoElement:0}),yI=Yn(gI),xI=mt({},Ap,{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}),_I=Yn(xI),bI=[9,13,27,32],lx=$i&&"CompositionEvent"in window,ju=null;$i&&"documentMode"in document&&(ju=document.documentMode);var wI=$i&&"TextEvent"in window&&!ju,T2=$i&&(!lx||ju&&8<ju&&11>=ju),Mb=" ",Cb=!1;function A2(e,t){switch(e){case"keyup":return bI.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function E2(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var hs=!1;function SI(e,t){switch(e){case"compositionend":return E2(t);case"keypress":return t.which!==32?null:(Cb=!0,Mb);case"textInput":return e=t.data,e===Mb&&Cb?null:e;default:return null}}function PI(e,t){if(hs)return e==="compositionend"||!lx&&A2(e,t)?(e=O2(),Lh=ox=vo=null,hs=!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 T2&&t.locale!=="ko"?null:t.data;default:return null}}var OI={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 jb(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!OI[e.type]:t==="textarea"}function k2(e,t,n,r){a2(r),t=ed(t,"onChange"),0<t.length&&(n=new ax("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Nu=null,nc=null;function TI(e){B2(e,0)}function Ep(e){var t=ms(e);if(JA(t))return e}function AI(e,t){if(e==="change")return t}var M2=!1;if($i){var Qm;if($i){var Jm="oninput"in document;if(!Jm){var Nb=document.createElement("div");Nb.setAttribute("oninput","return;"),Jm=typeof Nb.oninput=="function"}Qm=Jm}else Qm=!1;M2=Qm&&(!document.documentMode||9<document.documentMode)}function $b(){Nu&&(Nu.detachEvent("onpropertychange",C2),nc=Nu=null)}function C2(e){if(e.propertyName==="value"&&Ep(nc)){var t=[];k2(t,nc,e,ex(e)),c2(TI,t)}}function EI(e,t,n){e==="focusin"?($b(),Nu=t,nc=n,Nu.attachEvent("onpropertychange",C2)):e==="focusout"&&$b()}function kI(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ep(nc)}function MI(e,t){if(e==="click")return Ep(t)}function CI(e,t){if(e==="input"||e==="change")return Ep(t)}function jI(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Dr=typeof Object.is=="function"?Object.is:jI;function rc(e,t){if(Dr(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(!ug.call(t,i)||!Dr(e[i],t[i]))return!1}return!0}function Lb(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ib(e,t){var n=Lb(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=Lb(n)}}function j2(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?j2(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function N2(){for(var e=window,t=Zh();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Zh(e.document)}return t}function ux(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 NI(e){var t=N2(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&j2(n.ownerDocument.documentElement,n)){if(r!==null&&ux(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=Ib(n,o);var s=Ib(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 $I=$i&&"documentMode"in document&&11>=document.documentMode,ds=null,Eg=null,$u=null,kg=!1;function Db(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;kg||ds==null||ds!==Zh(r)||(r=ds,"selectionStart"in r&&ux(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}),$u&&rc($u,r)||($u=r,r=ed(Eg,"onSelect"),0<r.length&&(t=new ax("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=ds)))}function eh(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ps={animationend:eh("Animation","AnimationEnd"),animationiteration:eh("Animation","AnimationIteration"),animationstart:eh("Animation","AnimationStart"),transitionend:eh("Transition","TransitionEnd")},ev={},$2={};$i&&($2=document.createElement("div").style,"AnimationEvent"in window||(delete ps.animationend.animation,delete ps.animationiteration.animation,delete ps.animationstart.animation),"TransitionEvent"in window||delete ps.transitionend.transition);function kp(e){if(ev[e])return ev[e];if(!ps[e])return e;var t=ps[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in $2)return ev[e]=t[n];return e}var L2=kp("animationend"),I2=kp("animationiteration"),D2=kp("animationstart"),R2=kp("transitionend"),z2=new Map,Rb="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 No(e,t){z2.set(e,t),Da(t,[e])}for(var tv=0;tv<Rb.length;tv++){var nv=Rb[tv],LI=nv.toLowerCase(),II=nv[0].toUpperCase()+nv.slice(1);No(LI,"on"+II)}No(L2,"onAnimationEnd");No(I2,"onAnimationIteration");No(D2,"onAnimationStart");No("dblclick","onDoubleClick");No("focusin","onFocus");No("focusout","onBlur");No(R2,"onTransitionEnd");Bs("onMouseEnter",["mouseout","mouseover"]);Bs("onMouseLeave",["mouseout","mouseover"]);Bs("onPointerEnter",["pointerout","pointerover"]);Bs("onPointerLeave",["pointerout","pointerover"]);Da("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Da("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Da("onBeforeInput",["compositionend","keypress","textInput","paste"]);Da("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Da("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Da("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Pu="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(" "),DI=new Set("cancel close invalid load scroll toggle".split(" ").concat(Pu));function zb(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,LL(r,t,void 0,e),e.currentTarget=null}function B2(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;zb(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;zb(i,l,f),o=u}}}if(qh)throw e=Pg,qh=!1,Pg=null,e}function et(e,t){var n=t[$g];n===void 0&&(n=t[$g]=new Set);var r=e+"__bubble";n.has(r)||(F2(t,e,2,!1),n.add(r))}function rv(e,t,n){var r=0;t&&(r|=4),F2(n,e,r,t)}var th="_reactListening"+Math.random().toString(36).slice(2);function ic(e){if(!e[th]){e[th]=!0,KA.forEach(function(n){n!=="selectionchange"&&(DI.has(n)||rv(n,!1,e),rv(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[th]||(t[th]=!0,rv("selectionchange",!1,t))}}function F2(e,t,n,r){switch(P2(t)){case 1:var i=YL;break;case 4:i=QL;break;default:i=ix}n=i.bind(null,t,n,e),i=void 0,!Sg||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 iv(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=fa(l),s===null)return;if(u=s.tag,u===5||u===6){r=o=s;continue e}l=l.parentNode}}r=r.return}c2(function(){var f=o,d=ex(n),h=[];e:{var m=z2.get(e);if(m!==void 0){var v=ax,w=e;switch(e){case"keypress":if(Ih(n)===0)break e;case"keydown":case"keyup":v=dI;break;case"focusin":w="focus",v=Ym;break;case"focusout":w="blur",v=Ym;break;case"beforeblur":case"afterblur":v=Ym;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=Ab;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=tI;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=vI;break;case L2:case I2:case D2:v=iI;break;case R2:v=yI;break;case"scroll":v=JL;break;case"wheel":v=_I;break;case"copy":case"cut":case"paste":v=aI;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=kb}var b=(t&4)!==0,P=!b&&e==="scroll",_=b?m!==null?m+"Capture":null:m;b=[];for(var x=f,S;x!==null;){S=x;var E=S.stateNode;if(S.tag===5&&E!==null&&(S=E,_!==null&&(E=Qu(x,_),E!=null&&b.push(oc(x,E,S)))),P)break;x=x.return}0<b.length&&(m=new v(m,w,null,n,d),h.push({event:m,listeners:b}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",m&&n!==bg&&(w=n.relatedTarget||n.fromElement)&&(fa(w)||w[Li]))break e;if((v||m)&&(m=d.window===d?d:(m=d.ownerDocument)?m.defaultView||m.parentWindow:window,v?(w=n.relatedTarget||n.toElement,v=f,w=w?fa(w):null,w!==null&&(P=Ra(w),w!==P||w.tag!==5&&w.tag!==6)&&(w=null)):(v=null,w=f),v!==w)){if(b=Ab,E="onMouseLeave",_="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(b=kb,E="onPointerLeave",_="onPointerEnter",x="pointer"),P=v==null?m:ms(v),S=w==null?m:ms(w),m=new b(E,x+"leave",v,n,d),m.target=P,m.relatedTarget=S,E=null,fa(d)===f&&(b=new b(_,x+"enter",w,n,d),b.target=S,b.relatedTarget=P,E=b),P=E,v&&w)t:{for(b=v,_=w,x=0,S=b;S;S=as(S))x++;for(S=0,E=_;E;E=as(E))S++;for(;0<x-S;)b=as(b),x--;for(;0<S-x;)_=as(_),S--;for(;x--;){if(b===_||_!==null&&b===_.alternate)break t;b=as(b),_=as(_)}b=null}else b=null;v!==null&&Bb(h,m,v,b,!1),w!==null&&P!==null&&Bb(h,P,w,b,!0)}}e:{if(m=f?ms(f):window,v=m.nodeName&&m.nodeName.toLowerCase(),v==="select"||v==="input"&&m.type==="file")var O=AI;else if(jb(m))if(M2)O=CI;else{O=kI;var A=EI}else(v=m.nodeName)&&v.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(O=MI);if(O&&(O=O(e,f))){k2(h,O,n,d);break e}A&&A(e,m,f),e==="focusout"&&(A=m._wrapperState)&&A.controlled&&m.type==="number"&&vg(m,"number",m.value)}switch(A=f?ms(f):window,e){case"focusin":(jb(A)||A.contentEditable==="true")&&(ds=A,Eg=f,$u=null);break;case"focusout":$u=Eg=ds=null;break;case"mousedown":kg=!0;break;case"contextmenu":case"mouseup":case"dragend":kg=!1,Db(h,n,d);break;case"selectionchange":if($I)break;case"keydown":case"keyup":Db(h,n,d)}var M;if(lx)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 hs?A2(e,n)&&(C="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(C="onCompositionStart");C&&(T2&&n.locale!=="ko"&&(hs||C!=="onCompositionStart"?C==="onCompositionEnd"&&hs&&(M=O2()):(vo=d,ox="value"in vo?vo.value:vo.textContent,hs=!0)),A=ed(f,C),0<A.length&&(C=new Eb(C,e,null,n,d),h.push({event:C,listeners:A}),M?C.data=M:(M=E2(n),M!==null&&(C.data=M)))),(M=wI?SI(e,n):PI(e,n))&&(f=ed(f,"onBeforeInput"),0<f.length&&(d=new Eb("onBeforeInput","beforeinput",null,n,d),h.push({event:d,listeners:f}),d.data=M))}B2(h,t)})}function oc(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ed(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=Qu(e,n),o!=null&&r.unshift(oc(e,o,i)),o=Qu(e,t),o!=null&&r.push(oc(e,o,i))),e=e.return}return r}function as(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Bb(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=Qu(n,o),u!=null&&s.unshift(oc(n,u,l))):i||(u=Qu(n,o),u!=null&&s.push(oc(n,u,l)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var RI=/\r\n?/g,zI=/\u0000|\uFFFD/g;function Fb(e){return(typeof e=="string"?e:""+e).replace(RI,`
|
|
38
|
+
`).replace(zI,"")}function nh(e,t,n){if(t=Fb(t),Fb(e)!==t&&n)throw Error(ie(425))}function td(){}var Mg=null,Cg=null;function jg(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 Ng=typeof setTimeout=="function"?setTimeout:void 0,BI=typeof clearTimeout=="function"?clearTimeout:void 0,Vb=typeof Promise=="function"?Promise:void 0,FI=typeof queueMicrotask=="function"?queueMicrotask:typeof Vb<"u"?function(e){return Vb.resolve(null).then(e).catch(VI)}:Ng;function VI(e){setTimeout(function(){throw e})}function ov(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),tc(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);tc(t)}function So(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 Ub(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 wl=Math.random().toString(36).slice(2),Xr="__reactFiber$"+wl,ac="__reactProps$"+wl,Li="__reactContainer$"+wl,$g="__reactEvents$"+wl,UI="__reactListeners$"+wl,WI="__reactHandles$"+wl;function fa(e){var t=e[Xr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Li]||n[Xr]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Ub(e);e!==null;){if(n=e[Xr])return n;e=Ub(e)}return t}e=n,n=e.parentNode}return null}function rf(e){return e=e[Xr]||e[Li],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ms(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(ie(33))}function Mp(e){return e[ac]||null}var Lg=[],vs=-1;function $o(e){return{current:e}}function rt(e){0>vs||(e.current=Lg[vs],Lg[vs]=null,vs--)}function Je(e,t){vs++,Lg[vs]=e.current,e.current=t}var Mo={},fn=$o(Mo),Nn=$o(!1),Aa=Mo;function Fs(e,t){var n=e.type.contextTypes;if(!n)return Mo;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 $n(e){return e=e.childContextTypes,e!=null}function nd(){rt(Nn),rt(fn)}function Wb(e,t,n){if(fn.current!==Mo)throw Error(ie(168));Je(fn,t),Je(Nn,n)}function V2(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(ie(108,EL(e)||"Unknown",i));return mt({},n,r)}function rd(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Mo,Aa=fn.current,Je(fn,e),Je(Nn,Nn.current),!0}function Hb(e,t,n){var r=e.stateNode;if(!r)throw Error(ie(169));n?(e=V2(e,t,Aa),r.__reactInternalMemoizedMergedChildContext=e,rt(Nn),rt(fn),Je(fn,e)):rt(Nn),Je(Nn,n)}var bi=null,Cp=!1,av=!1;function U2(e){bi===null?bi=[e]:bi.push(e)}function HI(e){Cp=!0,U2(e)}function Lo(){if(!av&&bi!==null){av=!0;var e=0,t=Ve;try{var n=bi;for(Ve=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}bi=null,Cp=!1}catch(i){throw bi!==null&&(bi=bi.slice(e+1)),p2(tx,Lo),i}finally{Ve=t,av=!1}}return null}var gs=[],ys=0,id=null,od=0,ur=[],cr=0,Ea=null,Si=1,Pi="";function ia(e,t){gs[ys++]=od,gs[ys++]=id,id=e,od=t}function W2(e,t,n){ur[cr++]=Si,ur[cr++]=Pi,ur[cr++]=Ea,Ea=e;var r=Si;e=Pi;var i=32-$r(r)-1;r&=~(1<<i),n+=1;var o=32-$r(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,Si=1<<32-$r(t)+i|n<<i|r,Pi=o+e}else Si=1<<o|n<<i|r,Pi=e}function cx(e){e.return!==null&&(ia(e,1),W2(e,1,0))}function fx(e){for(;e===id;)id=gs[--ys],gs[ys]=null,od=gs[--ys],gs[ys]=null;for(;e===Ea;)Ea=ur[--cr],ur[cr]=null,Pi=ur[--cr],ur[cr]=null,Si=ur[--cr],ur[cr]=null}var Hn=null,Wn=null,st=!1,Cr=null;function H2(e,t){var n=hr(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 Gb(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,Hn=e,Wn=So(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Hn=e,Wn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Ea!==null?{id:Si,overflow:Pi}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=hr(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Hn=e,Wn=null,!0):!1;default:return!1}}function Ig(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Dg(e){if(st){var t=Wn;if(t){var n=t;if(!Gb(e,t)){if(Ig(e))throw Error(ie(418));t=So(n.nextSibling);var r=Hn;t&&Gb(e,t)?H2(r,n):(e.flags=e.flags&-4097|2,st=!1,Hn=e)}}else{if(Ig(e))throw Error(ie(418));e.flags=e.flags&-4097|2,st=!1,Hn=e}}}function Zb(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Hn=e}function rh(e){if(e!==Hn)return!1;if(!st)return Zb(e),st=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!jg(e.type,e.memoizedProps)),t&&(t=Wn)){if(Ig(e))throw G2(),Error(ie(418));for(;t;)H2(e,t),t=So(t.nextSibling)}if(Zb(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(ie(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Wn=So(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Wn=null}}else Wn=Hn?So(e.stateNode.nextSibling):null;return!0}function G2(){for(var e=Wn;e;)e=So(e.nextSibling)}function Vs(){Wn=Hn=null,st=!1}function hx(e){Cr===null?Cr=[e]:Cr.push(e)}var GI=Ui.ReactCurrentBatchConfig;function ou(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(ie(309));var r=n.stateNode}if(!r)throw Error(ie(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(ie(284));if(!n._owner)throw Error(ie(290,e))}return e}function ih(e,t){throw e=Object.prototype.toString.call(t),Error(ie(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Kb(e){var t=e._init;return t(e._payload)}function Z2(e){function t(_,x){if(e){var S=_.deletions;S===null?(_.deletions=[x],_.flags|=16):S.push(x)}}function n(_,x){if(!e)return null;for(;x!==null;)t(_,x),x=x.sibling;return null}function r(_,x){for(_=new Map;x!==null;)x.key!==null?_.set(x.key,x):_.set(x.index,x),x=x.sibling;return _}function i(_,x){return _=Ao(_,x),_.index=0,_.sibling=null,_}function o(_,x,S){return _.index=S,e?(S=_.alternate,S!==null?(S=S.index,S<x?(_.flags|=2,x):S):(_.flags|=2,x)):(_.flags|=1048576,x)}function s(_){return e&&_.alternate===null&&(_.flags|=2),_}function l(_,x,S,E){return x===null||x.tag!==6?(x=dv(S,_.mode,E),x.return=_,x):(x=i(x,S),x.return=_,x)}function u(_,x,S,E){var O=S.type;return O===fs?d(_,x,S.props.children,E,S.key):x!==null&&(x.elementType===O||typeof O=="object"&&O!==null&&O.$$typeof===uo&&Kb(O)===x.type)?(E=i(x,S.props),E.ref=ou(_,x,S),E.return=_,E):(E=Uh(S.type,S.key,S.props,null,_.mode,E),E.ref=ou(_,x,S),E.return=_,E)}function f(_,x,S,E){return x===null||x.tag!==4||x.stateNode.containerInfo!==S.containerInfo||x.stateNode.implementation!==S.implementation?(x=pv(S,_.mode,E),x.return=_,x):(x=i(x,S.children||[]),x.return=_,x)}function d(_,x,S,E,O){return x===null||x.tag!==7?(x=wa(S,_.mode,E,O),x.return=_,x):(x=i(x,S),x.return=_,x)}function h(_,x,S){if(typeof x=="string"&&x!==""||typeof x=="number")return x=dv(""+x,_.mode,S),x.return=_,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Zf:return S=Uh(x.type,x.key,x.props,null,_.mode,S),S.ref=ou(_,null,x),S.return=_,S;case cs:return x=pv(x,_.mode,S),x.return=_,x;case uo:var E=x._init;return h(_,E(x._payload),S)}if(wu(x)||eu(x))return x=wa(x,_.mode,S,null),x.return=_,x;ih(_,x)}return null}function m(_,x,S,E){var O=x!==null?x.key:null;if(typeof S=="string"&&S!==""||typeof S=="number")return O!==null?null:l(_,x,""+S,E);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Zf:return S.key===O?u(_,x,S,E):null;case cs:return S.key===O?f(_,x,S,E):null;case uo:return O=S._init,m(_,x,O(S._payload),E)}if(wu(S)||eu(S))return O!==null?null:d(_,x,S,E,null);ih(_,S)}return null}function v(_,x,S,E,O){if(typeof E=="string"&&E!==""||typeof E=="number")return _=_.get(S)||null,l(x,_,""+E,O);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case Zf:return _=_.get(E.key===null?S:E.key)||null,u(x,_,E,O);case cs:return _=_.get(E.key===null?S:E.key)||null,f(x,_,E,O);case uo:var A=E._init;return v(_,x,S,A(E._payload),O)}if(wu(E)||eu(E))return _=_.get(S)||null,d(x,_,E,O,null);ih(x,E)}return null}function w(_,x,S,E){for(var O=null,A=null,M=x,C=x=0,N=null;M!==null&&C<S.length;C++){M.index>C?(N=M,M=null):N=M.sibling;var z=m(_,M,S[C],E);if(z===null){M===null&&(M=N);break}e&&M&&z.alternate===null&&t(_,M),x=o(z,x,C),A===null?O=z:A.sibling=z,A=z,M=N}if(C===S.length)return n(_,M),st&&ia(_,C),O;if(M===null){for(;C<S.length;C++)M=h(_,S[C],E),M!==null&&(x=o(M,x,C),A===null?O=M:A.sibling=M,A=M);return st&&ia(_,C),O}for(M=r(_,M);C<S.length;C++)N=v(M,_,C,S[C],E),N!==null&&(e&&N.alternate!==null&&M.delete(N.key===null?C:N.key),x=o(N,x,C),A===null?O=N:A.sibling=N,A=N);return e&&M.forEach(function(B){return t(_,B)}),st&&ia(_,C),O}function b(_,x,S,E){var O=eu(S);if(typeof O!="function")throw Error(ie(150));if(S=O.call(S),S==null)throw Error(ie(151));for(var A=O=null,M=x,C=x=0,N=null,z=S.next();M!==null&&!z.done;C++,z=S.next()){M.index>C?(N=M,M=null):N=M.sibling;var B=m(_,M,z.value,E);if(B===null){M===null&&(M=N);break}e&&M&&B.alternate===null&&t(_,M),x=o(B,x,C),A===null?O=B:A.sibling=B,A=B,M=N}if(z.done)return n(_,M),st&&ia(_,C),O;if(M===null){for(;!z.done;C++,z=S.next())z=h(_,z.value,E),z!==null&&(x=o(z,x,C),A===null?O=z:A.sibling=z,A=z);return st&&ia(_,C),O}for(M=r(_,M);!z.done;C++,z=S.next())z=v(M,_,C,z.value,E),z!==null&&(e&&z.alternate!==null&&M.delete(z.key===null?C:z.key),x=o(z,x,C),A===null?O=z:A.sibling=z,A=z);return e&&M.forEach(function(R){return t(_,R)}),st&&ia(_,C),O}function P(_,x,S,E){if(typeof S=="object"&&S!==null&&S.type===fs&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case Zf:e:{for(var O=S.key,A=x;A!==null;){if(A.key===O){if(O=S.type,O===fs){if(A.tag===7){n(_,A.sibling),x=i(A,S.props.children),x.return=_,_=x;break e}}else if(A.elementType===O||typeof O=="object"&&O!==null&&O.$$typeof===uo&&Kb(O)===A.type){n(_,A.sibling),x=i(A,S.props),x.ref=ou(_,A,S),x.return=_,_=x;break e}n(_,A);break}else t(_,A);A=A.sibling}S.type===fs?(x=wa(S.props.children,_.mode,E,S.key),x.return=_,_=x):(E=Uh(S.type,S.key,S.props,null,_.mode,E),E.ref=ou(_,x,S),E.return=_,_=E)}return s(_);case cs:e:{for(A=S.key;x!==null;){if(x.key===A)if(x.tag===4&&x.stateNode.containerInfo===S.containerInfo&&x.stateNode.implementation===S.implementation){n(_,x.sibling),x=i(x,S.children||[]),x.return=_,_=x;break e}else{n(_,x);break}else t(_,x);x=x.sibling}x=pv(S,_.mode,E),x.return=_,_=x}return s(_);case uo:return A=S._init,P(_,x,A(S._payload),E)}if(wu(S))return w(_,x,S,E);if(eu(S))return b(_,x,S,E);ih(_,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,x!==null&&x.tag===6?(n(_,x.sibling),x=i(x,S),x.return=_,_=x):(n(_,x),x=dv(S,_.mode,E),x.return=_,_=x),s(_)):n(_,x)}return P}var Us=Z2(!0),K2=Z2(!1),ad=$o(null),sd=null,xs=null,dx=null;function px(){dx=xs=sd=null}function mx(e){var t=ad.current;rt(ad),e._currentValue=t}function Rg(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 $s(e,t){sd=e,dx=xs=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Cn=!0),e.firstContext=null)}function vr(e){var t=e._currentValue;if(dx!==e)if(e={context:e,memoizedValue:t,next:null},xs===null){if(sd===null)throw Error(ie(308));xs=e,sd.dependencies={lanes:0,firstContext:e}}else xs=xs.next=e;return t}var ha=null;function vx(e){ha===null?ha=[e]:ha.push(e)}function q2(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,vx(t)):(n.next=i.next,i.next=n),t.interleaved=n,Ii(e,r)}function Ii(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 co=!1;function gx(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function X2(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 Ei(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Po(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Le&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Ii(e,n)}return i=r.interleaved,i===null?(t.next=t,vx(r)):(t.next=i.next,i.next=t),r.interleaved=t,Ii(e,n)}function Dh(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,nx(e,n)}}function qb(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 ld(e,t,n,r){var i=e.updateQueue;co=!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 w=e,b=l;switch(m=t,v=n,b.tag){case 1:if(w=b.payload,typeof w=="function"){h=w.call(v,h,m);break e}h=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=b.payload,m=typeof w=="function"?w.call(v,h,m):w,m==null)break e;h=mt({},h,m);break e;case 2:co=!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);Ma|=s,e.lanes=s,e.memoizedState=h}}function Xb(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(ie(191,i));i.call(r)}}}var of={},ei=$o(of),sc=$o(of),lc=$o(of);function da(e){if(e===of)throw Error(ie(174));return e}function yx(e,t){switch(Je(lc,t),Je(sc,e),Je(ei,of),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:yg(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=yg(t,e)}rt(ei),Je(ei,t)}function Ws(){rt(ei),rt(sc),rt(lc)}function Y2(e){da(lc.current);var t=da(ei.current),n=yg(t,e.type);t!==n&&(Je(sc,e),Je(ei,n))}function xx(e){sc.current===e&&(rt(ei),rt(sc))}var ft=$o(0);function ud(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 sv=[];function _x(){for(var e=0;e<sv.length;e++)sv[e]._workInProgressVersionPrimary=null;sv.length=0}var Rh=Ui.ReactCurrentDispatcher,lv=Ui.ReactCurrentBatchConfig,ka=0,pt=null,jt=null,zt=null,cd=!1,Lu=!1,uc=0,ZI=0;function tn(){throw Error(ie(321))}function bx(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Dr(e[n],t[n]))return!1;return!0}function wx(e,t,n,r,i,o){if(ka=o,pt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Rh.current=e===null||e.memoizedState===null?YI:QI,e=n(r,i),Lu){o=0;do{if(Lu=!1,uc=0,25<=o)throw Error(ie(301));o+=1,zt=jt=null,t.updateQueue=null,Rh.current=JI,e=n(r,i)}while(Lu)}if(Rh.current=fd,t=jt!==null&&jt.next!==null,ka=0,zt=jt=pt=null,cd=!1,t)throw Error(ie(300));return e}function Sx(){var e=uc!==0;return uc=0,e}function qr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return zt===null?pt.memoizedState=zt=e:zt=zt.next=e,zt}function gr(){if(jt===null){var e=pt.alternate;e=e!==null?e.memoizedState:null}else e=jt.next;var t=zt===null?pt.memoizedState:zt.next;if(t!==null)zt=t,jt=e;else{if(e===null)throw Error(ie(310));jt=e,e={memoizedState:jt.memoizedState,baseState:jt.baseState,baseQueue:jt.baseQueue,queue:jt.queue,next:null},zt===null?pt.memoizedState=zt=e:zt=zt.next=e}return zt}function cc(e,t){return typeof t=="function"?t(e):t}function uv(e){var t=gr(),n=t.queue;if(n===null)throw Error(ie(311));n.lastRenderedReducer=e;var r=jt,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((ka&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,pt.lanes|=d,Ma|=d}f=f.next}while(f!==null&&f!==o);u===null?s=r:u.next=l,Dr(r,t.memoizedState)||(Cn=!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,pt.lanes|=o,Ma|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function cv(e){var t=gr(),n=t.queue;if(n===null)throw Error(ie(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);Dr(o,t.memoizedState)||(Cn=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Q2(){}function J2(e,t){var n=pt,r=gr(),i=t(),o=!Dr(r.memoizedState,i);if(o&&(r.memoizedState=i,Cn=!0),r=r.queue,Px(nE.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||zt!==null&&zt.memoizedState.tag&1){if(n.flags|=2048,fc(9,tE.bind(null,n,r,i,t),void 0,null),Bt===null)throw Error(ie(349));ka&30||eE(n,t,i)}return i}function eE(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=pt.updateQueue,t===null?(t={lastEffect:null,stores:null},pt.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function tE(e,t,n,r){t.value=n,t.getSnapshot=r,rE(t)&&iE(e)}function nE(e,t,n){return n(function(){rE(t)&&iE(e)})}function rE(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Dr(e,n)}catch{return!0}}function iE(e){var t=Ii(e,1);t!==null&&Lr(t,e,1,-1)}function Yb(e){var t=qr();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:cc,lastRenderedState:e},t.queue=e,e=e.dispatch=XI.bind(null,pt,e),[t.memoizedState,e]}function fc(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=pt.updateQueue,t===null?(t={lastEffect:null,stores:null},pt.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 oE(){return gr().memoizedState}function zh(e,t,n,r){var i=qr();pt.flags|=e,i.memoizedState=fc(1|t,n,void 0,r===void 0?null:r)}function jp(e,t,n,r){var i=gr();r=r===void 0?null:r;var o=void 0;if(jt!==null){var s=jt.memoizedState;if(o=s.destroy,r!==null&&bx(r,s.deps)){i.memoizedState=fc(t,n,o,r);return}}pt.flags|=e,i.memoizedState=fc(1|t,n,o,r)}function Qb(e,t){return zh(8390656,8,e,t)}function Px(e,t){return jp(2048,8,e,t)}function aE(e,t){return jp(4,2,e,t)}function sE(e,t){return jp(4,4,e,t)}function lE(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 uE(e,t,n){return n=n!=null?n.concat([e]):null,jp(4,4,lE.bind(null,t,e),n)}function Ox(){}function cE(e,t){var n=gr();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&bx(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function fE(e,t){var n=gr();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&bx(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function hE(e,t,n){return ka&21?(Dr(n,t)||(n=g2(),pt.lanes|=n,Ma|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Cn=!0),e.memoizedState=n)}function KI(e,t){var n=Ve;Ve=n!==0&&4>n?n:4,e(!0);var r=lv.transition;lv.transition={};try{e(!1),t()}finally{Ve=n,lv.transition=r}}function dE(){return gr().memoizedState}function qI(e,t,n){var r=To(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},pE(e))mE(t,n);else if(n=q2(e,t,n,r),n!==null){var i=bn();Lr(n,e,r,i),vE(n,t,r)}}function XI(e,t,n){var r=To(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(pE(e))mE(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,Dr(l,s)){var u=t.interleaved;u===null?(i.next=i,vx(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}n=q2(e,t,i,r),n!==null&&(i=bn(),Lr(n,e,r,i),vE(n,t,r))}}function pE(e){var t=e.alternate;return e===pt||t!==null&&t===pt}function mE(e,t){Lu=cd=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function vE(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,nx(e,n)}}var fd={readContext:vr,useCallback:tn,useContext:tn,useEffect:tn,useImperativeHandle:tn,useInsertionEffect:tn,useLayoutEffect:tn,useMemo:tn,useReducer:tn,useRef:tn,useState:tn,useDebugValue:tn,useDeferredValue:tn,useTransition:tn,useMutableSource:tn,useSyncExternalStore:tn,useId:tn,unstable_isNewReconciler:!1},YI={readContext:vr,useCallback:function(e,t){return qr().memoizedState=[e,t===void 0?null:t],e},useContext:vr,useEffect:Qb,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,zh(4194308,4,lE.bind(null,t,e),n)},useLayoutEffect:function(e,t){return zh(4194308,4,e,t)},useInsertionEffect:function(e,t){return zh(4,2,e,t)},useMemo:function(e,t){var n=qr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=qr();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=qI.bind(null,pt,e),[r.memoizedState,e]},useRef:function(e){var t=qr();return e={current:e},t.memoizedState=e},useState:Yb,useDebugValue:Ox,useDeferredValue:function(e){return qr().memoizedState=e},useTransition:function(){var e=Yb(!1),t=e[0];return e=KI.bind(null,e[1]),qr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=pt,i=qr();if(st){if(n===void 0)throw Error(ie(407));n=n()}else{if(n=t(),Bt===null)throw Error(ie(349));ka&30||eE(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Qb(nE.bind(null,r,o,e),[e]),r.flags|=2048,fc(9,tE.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=qr(),t=Bt.identifierPrefix;if(st){var n=Pi,r=Si;n=(r&~(1<<32-$r(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=uc++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=ZI++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},QI={readContext:vr,useCallback:cE,useContext:vr,useEffect:Px,useImperativeHandle:uE,useInsertionEffect:aE,useLayoutEffect:sE,useMemo:fE,useReducer:uv,useRef:oE,useState:function(){return uv(cc)},useDebugValue:Ox,useDeferredValue:function(e){var t=gr();return hE(t,jt.memoizedState,e)},useTransition:function(){var e=uv(cc)[0],t=gr().memoizedState;return[e,t]},useMutableSource:Q2,useSyncExternalStore:J2,useId:dE,unstable_isNewReconciler:!1},JI={readContext:vr,useCallback:cE,useContext:vr,useEffect:Px,useImperativeHandle:uE,useInsertionEffect:aE,useLayoutEffect:sE,useMemo:fE,useReducer:cv,useRef:oE,useState:function(){return cv(cc)},useDebugValue:Ox,useDeferredValue:function(e){var t=gr();return jt===null?t.memoizedState=e:hE(t,jt.memoizedState,e)},useTransition:function(){var e=cv(cc)[0],t=gr().memoizedState;return[e,t]},useMutableSource:Q2,useSyncExternalStore:J2,useId:dE,unstable_isNewReconciler:!1};function Er(e,t){if(e&&e.defaultProps){t=mt({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function zg(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:mt({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Np={isMounted:function(e){return(e=e._reactInternals)?Ra(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=bn(),i=To(e),o=Ei(r,i);o.payload=t,n!=null&&(o.callback=n),t=Po(e,o,i),t!==null&&(Lr(t,e,i,r),Dh(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=bn(),i=To(e),o=Ei(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Po(e,o,i),t!==null&&(Lr(t,e,i,r),Dh(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=bn(),r=To(e),i=Ei(n,r);i.tag=2,t!=null&&(i.callback=t),t=Po(e,i,r),t!==null&&(Lr(t,e,r,n),Dh(t,e,r))}};function Jb(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?!rc(n,r)||!rc(i,o):!0}function gE(e,t,n){var r=!1,i=Mo,o=t.contextType;return typeof o=="object"&&o!==null?o=vr(o):(i=$n(t)?Aa:fn.current,r=t.contextTypes,o=(r=r!=null)?Fs(e,i):Mo),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Np,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function ew(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&&Np.enqueueReplaceState(t,t.state,null)}function Bg(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},gx(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=vr(o):(o=$n(t)?Aa:fn.current,i.context=Fs(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(zg(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&&Np.enqueueReplaceState(i,i.state,null),ld(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+=AL(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 fv(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Fg(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var eD=typeof WeakMap=="function"?WeakMap:Map;function yE(e,t,n){n=Ei(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){dd||(dd=!0,Yg=r),Fg(e,t)},n}function xE(e,t,n){n=Ei(-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(){Fg(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Fg(e,t),typeof r!="function"&&(Oo===null?Oo=new Set([this]):Oo.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function tw(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new eD;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=pD.bind(null,e,t,n),t.then(e,e))}function nw(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 rw(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=Ei(-1,1),t.tag=2,Po(n,t,1))),n.lanes|=1),e)}var tD=Ui.ReactCurrentOwner,Cn=!1;function xn(e,t,n,r){t.child=e===null?K2(t,null,n,r):Us(t,e.child,n,r)}function iw(e,t,n,r,i){n=n.render;var o=t.ref;return $s(t,i),r=wx(e,t,n,r,o,i),n=Sx(),e!==null&&!Cn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Di(e,t,i)):(st&&n&&cx(t),t.flags|=1,xn(e,t,r,i),t.child)}function ow(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Nx(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,_E(e,t,o,r,i)):(e=Uh(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:rc,n(s,r)&&e.ref===t.ref)return Di(e,t,i)}return t.flags|=1,e=Ao(o,r),e.ref=t.ref,e.return=t,t.child=e}function _E(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(rc(o,r)&&e.ref===t.ref)if(Cn=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(Cn=!0);else return t.lanes=e.lanes,Di(e,t,i)}return Vg(e,t,n,r,i)}function bE(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},Je(bs,Bn),Bn|=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,Je(bs,Bn),Bn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Je(bs,Bn),Bn|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Je(bs,Bn),Bn|=r;return xn(e,t,i,n),t.child}function wE(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Vg(e,t,n,r,i){var o=$n(n)?Aa:fn.current;return o=Fs(t,o),$s(t,i),n=wx(e,t,n,r,o,i),r=Sx(),e!==null&&!Cn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Di(e,t,i)):(st&&r&&cx(t),t.flags|=1,xn(e,t,n,i),t.child)}function aw(e,t,n,r,i){if($n(n)){var o=!0;rd(t)}else o=!1;if($s(t,i),t.stateNode===null)Bh(e,t),gE(t,n,r),Bg(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=vr(f):(f=$n(n)?Aa:fn.current,f=Fs(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)&&ew(t,s,r,f),co=!1;var m=t.memoizedState;s.state=m,ld(t,r,s,i),u=t.memoizedState,l!==r||m!==u||Nn.current||co?(typeof d=="function"&&(zg(t,n,d,r),u=t.memoizedState),(l=co||Jb(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,X2(e,t),l=t.memoizedProps,f=t.type===t.elementType?l:Er(t.type,l),s.props=f,h=t.pendingProps,m=s.context,u=n.contextType,typeof u=="object"&&u!==null?u=vr(u):(u=$n(n)?Aa:fn.current,u=Fs(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)&&ew(t,s,r,u),co=!1,m=t.memoizedState,s.state=m,ld(t,r,s,i);var w=t.memoizedState;l!==h||m!==w||Nn.current||co?(typeof v=="function"&&(zg(t,n,v,r),w=t.memoizedState),(f=co||Jb(t,n,f,r,m,w,u)||!1)?(d||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,w,u),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,w,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=w),s.props=r,s.state=w,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 Ug(e,t,n,r,o,i)}function Ug(e,t,n,r,i,o){wE(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&Hb(t,n,!1),Di(e,t,o);r=t.stateNode,tD.current=t;var l=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Us(t,e.child,null,o),t.child=Us(t,null,l,o)):xn(e,t,l,o),t.memoizedState=r.state,i&&Hb(t,n,!0),t.child}function SE(e){var t=e.stateNode;t.pendingContext?Wb(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Wb(e,t.context,!1),yx(e,t.containerInfo)}function sw(e,t,n,r,i){return Vs(),hx(i),t.flags|=256,xn(e,t,n,r),t.child}var Wg={dehydrated:null,treeContext:null,retryLane:0};function Hg(e){return{baseLanes:e,cachePool:null,transitions:null}}function PE(e,t,n){var r=t.pendingProps,i=ft.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),Je(ft,i&1),e===null)return Dg(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=Ip(s,r,0,null),e=wa(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Hg(n),t.memoizedState=Wg,e):Tx(t,s));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return nD(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=Ao(i,u),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?o=Ao(l,o):(o=wa(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?Hg(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=Wg,r}return o=e.child,e=o.sibling,r=Ao(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 Tx(e,t){return t=Ip({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function oh(e,t,n,r){return r!==null&&hx(r),Us(t,e.child,null,n),e=Tx(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function nD(e,t,n,r,i,o,s){if(n)return t.flags&256?(t.flags&=-257,r=fv(Error(ie(422))),oh(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=Ip({mode:"visible",children:r.children},i,0,null),o=wa(o,i,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Us(t,e.child,null,s),t.child.memoizedState=Hg(s),t.memoizedState=Wg,o);if(!(t.mode&1))return oh(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var l=r.dgst;return r=l,o=Error(ie(419)),r=fv(o,r,void 0),oh(e,t,s,r)}if(l=(s&e.childLanes)!==0,Cn||l){if(r=Bt,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,Ii(e,i),Lr(r,e,i,-1))}return jx(),r=fv(Error(ie(421))),oh(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=mD.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Wn=So(i.nextSibling),Hn=t,st=!0,Cr=null,e!==null&&(ur[cr++]=Si,ur[cr++]=Pi,ur[cr++]=Ea,Si=e.id,Pi=e.overflow,Ea=t),t=Tx(t,r.children),t.flags|=4096,t)}function lw(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Rg(e.return,t,n)}function hv(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 OE(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(xn(e,t,r.children,n),r=ft.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&&lw(e,n,t);else if(e.tag===19)lw(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(Je(ft,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&&ud(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),hv(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&&ud(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}hv(t,!0,n,null,o);break;case"together":hv(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Bh(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Di(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ma|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(ie(153));if(t.child!==null){for(e=t.child,n=Ao(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ao(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function rD(e,t,n){switch(t.tag){case 3:SE(t),Vs();break;case 5:Y2(t);break;case 1:$n(t.type)&&rd(t);break;case 4:yx(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Je(ad,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Je(ft,ft.current&1),t.flags|=128,null):n&t.child.childLanes?PE(e,t,n):(Je(ft,ft.current&1),e=Di(e,t,n),e!==null?e.sibling:null);Je(ft,ft.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return OE(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Je(ft,ft.current),r)break;return null;case 22:case 23:return t.lanes=0,bE(e,t,n)}return Di(e,t,n)}var TE,Gg,AE,EE;TE=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}};Gg=function(){};AE=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,da(ei.current);var o=null;switch(n){case"input":i=pg(e,i),r=pg(e,r),o=[];break;case"select":i=mt({},i,{value:void 0}),r=mt({},r,{value:void 0}),o=[];break;case"textarea":i=gg(e,i),r=gg(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=td)}xg(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"&&(Xu.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"&&(Xu.hasOwnProperty(f)?(u!=null&&f==="onScroll"&&et("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)}};EE=function(e,t,n,r){n!==r&&(t.flags|=4)};function au(e,t){if(!st)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 nn(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 iD(e,t,n){var r=t.pendingProps;switch(fx(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return nn(t),null;case 1:return $n(t.type)&&nd(),nn(t),null;case 3:return r=t.stateNode,Ws(),rt(Nn),rt(fn),_x(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(rh(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Cr!==null&&(ey(Cr),Cr=null))),Gg(e,t),nn(t),null;case 5:xx(t);var i=da(lc.current);if(n=t.type,e!==null&&t.stateNode!=null)AE(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(ie(166));return nn(t),null}if(e=da(ei.current),rh(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Xr]=t,r[ac]=o,e=(t.mode&1)!==0,n){case"dialog":et("cancel",r),et("close",r);break;case"iframe":case"object":case"embed":et("load",r);break;case"video":case"audio":for(i=0;i<Pu.length;i++)et(Pu[i],r);break;case"source":et("error",r);break;case"img":case"image":case"link":et("error",r),et("load",r);break;case"details":et("toggle",r);break;case"input":gb(r,o),et("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},et("invalid",r);break;case"textarea":xb(r,o),et("invalid",r)}xg(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&&nh(r.textContent,l,e),i=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(o.suppressHydrationWarning!==!0&&nh(r.textContent,l,e),i=["children",""+l]):Xu.hasOwnProperty(s)&&l!=null&&s==="onScroll"&&et("scroll",r)}switch(n){case"input":Kf(r),yb(r,o,!0);break;case"textarea":Kf(r),_b(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=td)}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=n2(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[Xr]=t,e[ac]=r,TE(e,t,!1,!1),t.stateNode=e;e:{switch(s=_g(n,r),n){case"dialog":et("cancel",e),et("close",e),i=r;break;case"iframe":case"object":case"embed":et("load",e),i=r;break;case"video":case"audio":for(i=0;i<Pu.length;i++)et(Pu[i],e);i=r;break;case"source":et("error",e),i=r;break;case"img":case"image":case"link":et("error",e),et("load",e),i=r;break;case"details":et("toggle",e),i=r;break;case"input":gb(e,r),i=pg(e,r),et("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=mt({},r,{value:void 0}),et("invalid",e);break;case"textarea":xb(e,r),i=gg(e,r),et("invalid",e);break;default:i=r}xg(n,i),l=i;for(o in l)if(l.hasOwnProperty(o)){var u=l[o];o==="style"?o2(e,u):o==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&r2(e,u)):o==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&Yu(e,u):typeof u=="number"&&Yu(e,""+u):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Xu.hasOwnProperty(o)?u!=null&&o==="onScroll"&&et("scroll",e):u!=null&&X0(e,o,u,s))}switch(n){case"input":Kf(e),yb(e,r,!1);break;case"textarea":Kf(e),_b(e);break;case"option":r.value!=null&&e.setAttribute("value",""+ko(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Ms(e,!!r.multiple,o,!1):r.defaultValue!=null&&Ms(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=td)}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 nn(t),null;case 6:if(e&&t.stateNode!=null)EE(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(ie(166));if(n=da(lc.current),da(ei.current),rh(t)){if(r=t.stateNode,n=t.memoizedProps,r[Xr]=t,(o=r.nodeValue!==n)&&(e=Hn,e!==null))switch(e.tag){case 3:nh(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&nh(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Xr]=t,t.stateNode=r}return nn(t),null;case 13:if(rt(ft),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(st&&Wn!==null&&t.mode&1&&!(t.flags&128))G2(),Vs(),t.flags|=98560,o=!1;else if(o=rh(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(ie(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(ie(317));o[Xr]=t}else Vs(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;nn(t),o=!1}else Cr!==null&&(ey(Cr),Cr=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||ft.current&1?Nt===0&&(Nt=3):jx())),t.updateQueue!==null&&(t.flags|=4),nn(t),null);case 4:return Ws(),Gg(e,t),e===null&&ic(t.stateNode.containerInfo),nn(t),null;case 10:return mx(t.type._context),nn(t),null;case 17:return $n(t.type)&&nd(),nn(t),null;case 19:if(rt(ft),o=t.memoizedState,o===null)return nn(t),null;if(r=(t.flags&128)!==0,s=o.rendering,s===null)if(r)au(o,!1);else{if(Nt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=ud(e),s!==null){for(t.flags|=128,au(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 Je(ft,ft.current&1|2),t.child}e=e.sibling}o.tail!==null&&wt()>Gs&&(t.flags|=128,r=!0,au(o,!1),t.lanes=4194304)}else{if(!r)if(e=ud(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),au(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!st)return nn(t),null}else 2*wt()-o.renderingStartTime>Gs&&n!==1073741824&&(t.flags|=128,r=!0,au(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=wt(),t.sibling=null,n=ft.current,Je(ft,r?n&1|2:n&1),t):(nn(t),null);case 22:case 23:return Cx(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Bn&1073741824&&(nn(t),t.subtreeFlags&6&&(t.flags|=8192)):nn(t),null;case 24:return null;case 25:return null}throw Error(ie(156,t.tag))}function oD(e,t){switch(fx(t),t.tag){case 1:return $n(t.type)&&nd(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ws(),rt(Nn),rt(fn),_x(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return xx(t),null;case 13:if(rt(ft),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ie(340));Vs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return rt(ft),null;case 4:return Ws(),null;case 10:return mx(t.type._context),null;case 22:case 23:return Cx(),null;case 24:return null;default:return null}}var ah=!1,an=!1,aD=typeof WeakSet=="function"?WeakSet:Set,ce=null;function _s(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){xt(e,t,r)}else n.current=null}function Zg(e,t,n){try{n()}catch(r){xt(e,t,r)}}var uw=!1;function sD(e,t){if(Mg=Qh,e=N2(),ux(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(Cg={focusedElem:e,selectionRange:n},Qh=!1,ce=t;ce!==null;)if(t=ce,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ce=e;else for(;ce!==null;){t=ce;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var b=w.memoizedProps,P=w.memoizedState,_=t.stateNode,x=_.getSnapshotBeforeUpdate(t.elementType===t.type?b:Er(t.type,b),P);_.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ie(163))}}catch(E){xt(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,ce=e;break}ce=t.return}return w=uw,uw=!1,w}function Iu(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&&Zg(t,n,o)}i=i.next}while(i!==r)}}function $p(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 Kg(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 kE(e){var t=e.alternate;t!==null&&(e.alternate=null,kE(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Xr],delete t[ac],delete t[$g],delete t[UI],delete t[WI])),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 ME(e){return e.tag===5||e.tag===3||e.tag===4}function cw(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ME(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 qg(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=td));else if(r!==4&&(e=e.child,e!==null))for(qg(e,t,n),e=e.sibling;e!==null;)qg(e,t,n),e=e.sibling}function Xg(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(Xg(e,t,n),e=e.sibling;e!==null;)Xg(e,t,n),e=e.sibling}var Gt=null,kr=!1;function ao(e,t,n){for(n=n.child;n!==null;)CE(e,t,n),n=n.sibling}function CE(e,t,n){if(Jr&&typeof Jr.onCommitFiberUnmount=="function")try{Jr.onCommitFiberUnmount(Tp,n)}catch{}switch(n.tag){case 5:an||_s(n,t);case 6:var r=Gt,i=kr;Gt=null,ao(e,t,n),Gt=r,kr=i,Gt!==null&&(kr?(e=Gt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Gt.removeChild(n.stateNode));break;case 18:Gt!==null&&(kr?(e=Gt,n=n.stateNode,e.nodeType===8?ov(e.parentNode,n):e.nodeType===1&&ov(e,n),tc(e)):ov(Gt,n.stateNode));break;case 4:r=Gt,i=kr,Gt=n.stateNode.containerInfo,kr=!0,ao(e,t,n),Gt=r,kr=i;break;case 0:case 11:case 14:case 15:if(!an&&(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)&&Zg(n,t,s),i=i.next}while(i!==r)}ao(e,t,n);break;case 1:if(!an&&(_s(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){xt(n,t,l)}ao(e,t,n);break;case 21:ao(e,t,n);break;case 22:n.mode&1?(an=(r=an)||n.memoizedState!==null,ao(e,t,n),an=r):ao(e,t,n);break;default:ao(e,t,n)}}function fw(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new aD),t.forEach(function(r){var i=vD.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Or(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:Gt=l.stateNode,kr=!1;break e;case 3:Gt=l.stateNode.containerInfo,kr=!0;break e;case 4:Gt=l.stateNode.containerInfo,kr=!0;break e}l=l.return}if(Gt===null)throw Error(ie(160));CE(o,s,i),Gt=null,kr=!1;var u=i.alternate;u!==null&&(u.return=null),i.return=null}catch(f){xt(i,t,f)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)jE(t,e),t=t.sibling}function jE(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Or(t,e),Kr(e),r&4){try{Iu(3,e,e.return),$p(3,e)}catch(b){xt(e,e.return,b)}try{Iu(5,e,e.return)}catch(b){xt(e,e.return,b)}}break;case 1:Or(t,e),Kr(e),r&512&&n!==null&&_s(n,n.return);break;case 5:if(Or(t,e),Kr(e),r&512&&n!==null&&_s(n,n.return),e.flags&32){var i=e.stateNode;try{Yu(i,"")}catch(b){xt(e,e.return,b)}}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&&e2(i,o),_g(l,s);var f=_g(l,o);for(s=0;s<u.length;s+=2){var d=u[s],h=u[s+1];d==="style"?o2(i,h):d==="dangerouslySetInnerHTML"?r2(i,h):d==="children"?Yu(i,h):X0(i,d,h,f)}switch(l){case"input":mg(i,o);break;case"textarea":t2(i,o);break;case"select":var m=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var v=o.value;v!=null?Ms(i,!!o.multiple,v,!1):m!==!!o.multiple&&(o.defaultValue!=null?Ms(i,!!o.multiple,o.defaultValue,!0):Ms(i,!!o.multiple,o.multiple?[]:"",!1))}i[ac]=o}catch(b){xt(e,e.return,b)}}break;case 6:if(Or(t,e),Kr(e),r&4){if(e.stateNode===null)throw Error(ie(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(b){xt(e,e.return,b)}}break;case 3:if(Or(t,e),Kr(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{tc(t.containerInfo)}catch(b){xt(e,e.return,b)}break;case 4:Or(t,e),Kr(e);break;case 13:Or(t,e),Kr(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(kx=wt())),r&4&&fw(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(an=(f=an)||d,Or(t,e),an=f):Or(t,e),Kr(e),r&8192){if(f=e.memoizedState!==null,(e.stateNode.isHidden=f)&&!d&&e.mode&1)for(ce=e,d=e.child;d!==null;){for(h=ce=d;ce!==null;){switch(m=ce,v=m.child,m.tag){case 0:case 11:case 14:case 15:Iu(4,m,m.return);break;case 1:_s(m,m.return);var w=m.stateNode;if(typeof w.componentWillUnmount=="function"){r=m,n=m.return;try{t=r,w.props=t.memoizedProps,w.state=t.memoizedState,w.componentWillUnmount()}catch(b){xt(r,n,b)}}break;case 5:_s(m,m.return);break;case 22:if(m.memoizedState!==null){dw(h);continue}}v!==null?(v.return=m,ce=v):dw(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=i2("display",s))}catch(b){xt(e,e.return,b)}}}else if(h.tag===6){if(d===null)try{h.stateNode.nodeValue=f?"":h.memoizedProps}catch(b){xt(e,e.return,b)}}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:Or(t,e),Kr(e),r&4&&fw(e);break;case 21:break;default:Or(t,e),Kr(e)}}function Kr(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(ME(n)){var r=n;break e}n=n.return}throw Error(ie(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Yu(i,""),r.flags&=-33);var o=cw(e);Xg(e,o,i);break;case 3:case 4:var s=r.stateNode.containerInfo,l=cw(e);qg(e,l,s);break;default:throw Error(ie(161))}}catch(u){xt(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function lD(e,t,n){ce=e,NE(e)}function NE(e,t,n){for(var r=(e.mode&1)!==0;ce!==null;){var i=ce,o=i.child;if(i.tag===22&&r){var s=i.memoizedState!==null||ah;if(!s){var l=i.alternate,u=l!==null&&l.memoizedState!==null||an;l=ah;var f=an;if(ah=s,(an=u)&&!f)for(ce=i;ce!==null;)s=ce,u=s.child,s.tag===22&&s.memoizedState!==null?pw(i):u!==null?(u.return=s,ce=u):pw(i);for(;o!==null;)ce=o,NE(o),o=o.sibling;ce=i,ah=l,an=f}hw(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,ce=o):hw(e)}}function hw(e){for(;ce!==null;){var t=ce;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:an||$p(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!an)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Er(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&Xb(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}Xb(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&&tc(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(ie(163))}an||t.flags&512&&Kg(t)}catch(m){xt(t,t.return,m)}}if(t===e){ce=null;break}if(n=t.sibling,n!==null){n.return=t.return,ce=n;break}ce=t.return}}function dw(e){for(;ce!==null;){var t=ce;if(t===e){ce=null;break}var n=t.sibling;if(n!==null){n.return=t.return,ce=n;break}ce=t.return}}function pw(e){for(;ce!==null;){var t=ce;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{$p(4,t)}catch(u){xt(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(u){xt(t,i,u)}}var o=t.return;try{Kg(t)}catch(u){xt(t,o,u)}break;case 5:var s=t.return;try{Kg(t)}catch(u){xt(t,s,u)}}}catch(u){xt(t,t.return,u)}if(t===e){ce=null;break}var l=t.sibling;if(l!==null){l.return=t.return,ce=l;break}ce=t.return}}var uD=Math.ceil,hd=Ui.ReactCurrentDispatcher,Ax=Ui.ReactCurrentOwner,pr=Ui.ReactCurrentBatchConfig,Le=0,Bt=null,Tt=null,qt=0,Bn=0,bs=$o(0),Nt=0,hc=null,Ma=0,Lp=0,Ex=0,Du=null,Mn=null,kx=0,Gs=1/0,xi=null,dd=!1,Yg=null,Oo=null,sh=!1,go=null,pd=0,Ru=0,Qg=null,Fh=-1,Vh=0;function bn(){return Le&6?wt():Fh!==-1?Fh:Fh=wt()}function To(e){return e.mode&1?Le&2&&qt!==0?qt&-qt:GI.transition!==null?(Vh===0&&(Vh=g2()),Vh):(e=Ve,e!==0||(e=window.event,e=e===void 0?16:P2(e.type)),e):1}function Lr(e,t,n,r){if(50<Ru)throw Ru=0,Qg=null,Error(ie(185));tf(e,n,r),(!(Le&2)||e!==Bt)&&(e===Bt&&(!(Le&2)&&(Lp|=n),Nt===4&&po(e,qt)),Ln(e,r),n===1&&Le===0&&!(t.mode&1)&&(Gs=wt()+500,Cp&&Lo()))}function Ln(e,t){var n=e.callbackNode;GL(e,t);var r=Yh(e,e===Bt?qt:0);if(r===0)n!==null&&Sb(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Sb(n),t===1)e.tag===0?HI(mw.bind(null,e)):U2(mw.bind(null,e)),FI(function(){!(Le&6)&&Lo()}),n=null;else{switch(y2(r)){case 1:n=tx;break;case 4:n=m2;break;case 16:n=Xh;break;case 536870912:n=v2;break;default:n=Xh}n=FE(n,$E.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function $E(e,t){if(Fh=-1,Vh=0,Le&6)throw Error(ie(327));var n=e.callbackNode;if(Ls()&&e.callbackNode!==n)return null;var r=Yh(e,e===Bt?qt:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=md(e,r);else{t=r;var i=Le;Le|=2;var o=IE();(Bt!==e||qt!==t)&&(xi=null,Gs=wt()+500,ba(e,t));do try{hD();break}catch(l){LE(e,l)}while(!0);px(),hd.current=o,Le=i,Tt!==null?t=0:(Bt=null,qt=0,t=Nt)}if(t!==0){if(t===2&&(i=Og(e),i!==0&&(r=i,t=Jg(e,i))),t===1)throw n=hc,ba(e,0),po(e,r),Ln(e,wt()),n;if(t===6)po(e,r);else{if(i=e.current.alternate,!(r&30)&&!cD(i)&&(t=md(e,r),t===2&&(o=Og(e),o!==0&&(r=o,t=Jg(e,o))),t===1))throw n=hc,ba(e,0),po(e,r),Ln(e,wt()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(ie(345));case 2:oa(e,Mn,xi);break;case 3:if(po(e,r),(r&130023424)===r&&(t=kx+500-wt(),10<t)){if(Yh(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){bn(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Ng(oa.bind(null,e,Mn,xi),t);break}oa(e,Mn,xi);break;case 4:if(po(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-$r(r);o=1<<s,s=t[s],s>i&&(i=s),r&=~o}if(r=i,r=wt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*uD(r/1960))-r,10<r){e.timeoutHandle=Ng(oa.bind(null,e,Mn,xi),r);break}oa(e,Mn,xi);break;case 5:oa(e,Mn,xi);break;default:throw Error(ie(329))}}}return Ln(e,wt()),e.callbackNode===n?$E.bind(null,e):null}function Jg(e,t){var n=Du;return e.current.memoizedState.isDehydrated&&(ba(e,t).flags|=256),e=md(e,t),e!==2&&(t=Mn,Mn=n,t!==null&&ey(t)),e}function ey(e){Mn===null?Mn=e:Mn.push.apply(Mn,e)}function cD(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(!Dr(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 po(e,t){for(t&=~Ex,t&=~Lp,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-$r(t),r=1<<n;e[n]=-1,t&=~r}}function mw(e){if(Le&6)throw Error(ie(327));Ls();var t=Yh(e,0);if(!(t&1))return Ln(e,wt()),null;var n=md(e,t);if(e.tag!==0&&n===2){var r=Og(e);r!==0&&(t=r,n=Jg(e,r))}if(n===1)throw n=hc,ba(e,0),po(e,t),Ln(e,wt()),n;if(n===6)throw Error(ie(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,oa(e,Mn,xi),Ln(e,wt()),null}function Mx(e,t){var n=Le;Le|=1;try{return e(t)}finally{Le=n,Le===0&&(Gs=wt()+500,Cp&&Lo())}}function Ca(e){go!==null&&go.tag===0&&!(Le&6)&&Ls();var t=Le;Le|=1;var n=pr.transition,r=Ve;try{if(pr.transition=null,Ve=1,e)return e()}finally{Ve=r,pr.transition=n,Le=t,!(Le&6)&&Lo()}}function Cx(){Bn=bs.current,rt(bs)}function ba(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,BI(n)),Tt!==null)for(n=Tt.return;n!==null;){var r=n;switch(fx(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&nd();break;case 3:Ws(),rt(Nn),rt(fn),_x();break;case 5:xx(r);break;case 4:Ws();break;case 13:rt(ft);break;case 19:rt(ft);break;case 10:mx(r.type._context);break;case 22:case 23:Cx()}n=n.return}if(Bt=e,Tt=e=Ao(e.current,null),qt=Bn=t,Nt=0,hc=null,Ex=Lp=Ma=0,Mn=Du=null,ha!==null){for(t=0;t<ha.length;t++)if(n=ha[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}ha=null}return e}function LE(e,t){do{var n=Tt;try{if(px(),Rh.current=fd,cd){for(var r=pt.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}cd=!1}if(ka=0,zt=jt=pt=null,Lu=!1,uc=0,Ax.current=null,n===null||n.return===null){Nt=1,hc=t,Tt=null;break}e:{var o=e,s=n.return,l=n,u=t;if(t=qt,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=nw(s);if(v!==null){v.flags&=-257,rw(v,s,l,o,t),v.mode&1&&tw(o,f,t),t=v,u=f;var w=t.updateQueue;if(w===null){var b=new Set;b.add(u),t.updateQueue=b}else w.add(u);break e}else{if(!(t&1)){tw(o,f,t),jx();break e}u=Error(ie(426))}}else if(st&&l.mode&1){var P=nw(s);if(P!==null){!(P.flags&65536)&&(P.flags|=256),rw(P,s,l,o,t),hx(Hs(u,l));break e}}o=u=Hs(u,l),Nt!==4&&(Nt=2),Du===null?Du=[o]:Du.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var _=yE(o,u,t);qb(o,_);break e;case 1:l=u;var x=o.type,S=o.stateNode;if(!(o.flags&128)&&(typeof x.getDerivedStateFromError=="function"||S!==null&&typeof S.componentDidCatch=="function"&&(Oo===null||!Oo.has(S)))){o.flags|=65536,t&=-t,o.lanes|=t;var E=xE(o,l,t);qb(o,E);break e}}o=o.return}while(o!==null)}RE(n)}catch(O){t=O,Tt===n&&n!==null&&(Tt=n=n.return);continue}break}while(!0)}function IE(){var e=hd.current;return hd.current=fd,e===null?fd:e}function jx(){(Nt===0||Nt===3||Nt===2)&&(Nt=4),Bt===null||!(Ma&268435455)&&!(Lp&268435455)||po(Bt,qt)}function md(e,t){var n=Le;Le|=2;var r=IE();(Bt!==e||qt!==t)&&(xi=null,ba(e,t));do try{fD();break}catch(i){LE(e,i)}while(!0);if(px(),Le=n,hd.current=r,Tt!==null)throw Error(ie(261));return Bt=null,qt=0,Nt}function fD(){for(;Tt!==null;)DE(Tt)}function hD(){for(;Tt!==null&&!DL();)DE(Tt)}function DE(e){var t=BE(e.alternate,e,Bn);e.memoizedProps=e.pendingProps,t===null?RE(e):Tt=t,Ax.current=null}function RE(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=oD(n,t),n!==null){n.flags&=32767,Tt=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Nt=6,Tt=null;return}}else if(n=iD(n,t,Bn),n!==null){Tt=n;return}if(t=t.sibling,t!==null){Tt=t;return}Tt=t=e}while(t!==null);Nt===0&&(Nt=5)}function oa(e,t,n){var r=Ve,i=pr.transition;try{pr.transition=null,Ve=1,dD(e,t,n,r)}finally{pr.transition=i,Ve=r}return null}function dD(e,t,n,r){do Ls();while(go!==null);if(Le&6)throw Error(ie(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(ie(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(ZL(e,o),e===Bt&&(Tt=Bt=null,qt=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||sh||(sh=!0,FE(Xh,function(){return Ls(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=pr.transition,pr.transition=null;var s=Ve;Ve=1;var l=Le;Le|=4,Ax.current=null,sD(e,n),jE(n,e),NI(Cg),Qh=!!Mg,Cg=Mg=null,e.current=n,lD(n),RL(),Le=l,Ve=s,pr.transition=o}else e.current=n;if(sh&&(sh=!1,go=e,pd=i),o=e.pendingLanes,o===0&&(Oo=null),FL(n.stateNode),Ln(e,wt()),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(dd)throw dd=!1,e=Yg,Yg=null,e;return pd&1&&e.tag!==0&&Ls(),o=e.pendingLanes,o&1?e===Qg?Ru++:(Ru=0,Qg=e):Ru=0,Lo(),null}function Ls(){if(go!==null){var e=y2(pd),t=pr.transition,n=Ve;try{if(pr.transition=null,Ve=16>e?16:e,go===null)var r=!1;else{if(e=go,go=null,pd=0,Le&6)throw Error(ie(331));var i=Le;for(Le|=4,ce=e.current;ce!==null;){var o=ce,s=o.child;if(ce.flags&16){var l=o.deletions;if(l!==null){for(var u=0;u<l.length;u++){var f=l[u];for(ce=f;ce!==null;){var d=ce;switch(d.tag){case 0:case 11:case 15:Iu(8,d,o)}var h=d.child;if(h!==null)h.return=d,ce=h;else for(;ce!==null;){d=ce;var m=d.sibling,v=d.return;if(kE(d),d===f){ce=null;break}if(m!==null){m.return=v,ce=m;break}ce=v}}}var w=o.alternate;if(w!==null){var b=w.child;if(b!==null){w.child=null;do{var P=b.sibling;b.sibling=null,b=P}while(b!==null)}}ce=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,ce=s;else e:for(;ce!==null;){if(o=ce,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Iu(9,o,o.return)}var _=o.sibling;if(_!==null){_.return=o.return,ce=_;break e}ce=o.return}}var x=e.current;for(ce=x;ce!==null;){s=ce;var S=s.child;if(s.subtreeFlags&2064&&S!==null)S.return=s,ce=S;else e:for(s=x;ce!==null;){if(l=ce,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:$p(9,l)}}catch(O){xt(l,l.return,O)}if(l===s){ce=null;break e}var E=l.sibling;if(E!==null){E.return=l.return,ce=E;break e}ce=l.return}}if(Le=i,Lo(),Jr&&typeof Jr.onPostCommitFiberRoot=="function")try{Jr.onPostCommitFiberRoot(Tp,e)}catch{}r=!0}return r}finally{Ve=n,pr.transition=t}}return!1}function vw(e,t,n){t=Hs(n,t),t=yE(e,t,1),e=Po(e,t,1),t=bn(),e!==null&&(tf(e,1,t),Ln(e,t))}function xt(e,t,n){if(e.tag===3)vw(e,e,n);else for(;t!==null;){if(t.tag===3){vw(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Oo===null||!Oo.has(r))){e=Hs(n,e),e=xE(t,e,1),t=Po(t,e,1),e=bn(),t!==null&&(tf(t,1,e),Ln(t,e));break}}t=t.return}}function pD(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=bn(),e.pingedLanes|=e.suspendedLanes&n,Bt===e&&(qt&n)===n&&(Nt===4||Nt===3&&(qt&130023424)===qt&&500>wt()-kx?ba(e,0):Ex|=n),Ln(e,t)}function zE(e,t){t===0&&(e.mode&1?(t=Yf,Yf<<=1,!(Yf&130023424)&&(Yf=4194304)):t=1);var n=bn();e=Ii(e,t),e!==null&&(tf(e,t,n),Ln(e,n))}function mD(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),zE(e,n)}function vD(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(ie(314))}r!==null&&r.delete(t),zE(e,n)}var BE;BE=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Nn.current)Cn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Cn=!1,rD(e,t,n);Cn=!!(e.flags&131072)}else Cn=!1,st&&t.flags&1048576&&W2(t,od,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Bh(e,t),e=t.pendingProps;var i=Fs(t,fn.current);$s(t,n),i=wx(null,t,r,e,i,n);var o=Sx();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,$n(r)?(o=!0,rd(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,gx(t),i.updater=Np,t.stateNode=i,i._reactInternals=t,Bg(t,r,e,n),t=Ug(null,t,r,!0,o,n)):(t.tag=0,st&&o&&cx(t),xn(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Bh(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=yD(r),e=Er(r,e),i){case 0:t=Vg(null,t,r,e,n);break e;case 1:t=aw(null,t,r,e,n);break e;case 11:t=iw(null,t,r,e,n);break e;case 14:t=ow(null,t,r,Er(r.type,e),n);break e}throw Error(ie(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Er(r,i),Vg(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Er(r,i),aw(e,t,r,i,n);case 3:e:{if(SE(t),e===null)throw Error(ie(387));r=t.pendingProps,o=t.memoizedState,i=o.element,X2(e,t),ld(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(ie(423)),t),t=sw(e,t,r,n,i);break e}else if(r!==i){i=Hs(Error(ie(424)),t),t=sw(e,t,r,n,i);break e}else for(Wn=So(t.stateNode.containerInfo.firstChild),Hn=t,st=!0,Cr=null,n=K2(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Vs(),r===i){t=Di(e,t,n);break e}xn(e,t,r,n)}t=t.child}return t;case 5:return Y2(t),e===null&&Dg(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,jg(r,i)?s=null:o!==null&&jg(r,o)&&(t.flags|=32),wE(e,t),xn(e,t,s,n),t.child;case 6:return e===null&&Dg(t),null;case 13:return PE(e,t,n);case 4:return yx(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Us(t,null,r,n):xn(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Er(r,i),iw(e,t,r,i,n);case 7:return xn(e,t,t.pendingProps,n),t.child;case 8:return xn(e,t,t.pendingProps.children,n),t.child;case 12:return xn(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,Je(ad,r._currentValue),r._currentValue=s,o!==null)if(Dr(o.value,s)){if(o.children===i.children&&!Nn.current){t=Di(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=Ei(-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),Rg(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(ie(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Rg(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}xn(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,$s(t,n),i=vr(i),r=r(i),t.flags|=1,xn(e,t,r,n),t.child;case 14:return r=t.type,i=Er(r,t.pendingProps),i=Er(r.type,i),ow(e,t,r,i,n);case 15:return _E(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Er(r,i),Bh(e,t),t.tag=1,$n(r)?(e=!0,rd(t)):e=!1,$s(t,n),gE(t,r,i),Bg(t,r,i,n),Ug(null,t,r,!0,e,n);case 19:return OE(e,t,n);case 22:return bE(e,t,n)}throw Error(ie(156,t.tag))};function FE(e,t){return p2(e,t)}function gD(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 hr(e,t,n,r){return new gD(e,t,n,r)}function Nx(e){return e=e.prototype,!(!e||!e.isReactComponent)}function yD(e){if(typeof e=="function")return Nx(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Q0)return 11;if(e===J0)return 14}return 2}function Ao(e,t){var n=e.alternate;return n===null?(n=hr(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 Uh(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")Nx(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case fs:return wa(n.children,i,o,t);case Y0:s=8,i|=8;break;case cg:return e=hr(12,n,t,i|2),e.elementType=cg,e.lanes=o,e;case fg:return e=hr(13,n,t,i),e.elementType=fg,e.lanes=o,e;case hg:return e=hr(19,n,t,i),e.elementType=hg,e.lanes=o,e;case YA:return Ip(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case qA:s=10;break e;case XA:s=9;break e;case Q0:s=11;break e;case J0:s=14;break e;case uo:s=16,r=null;break e}throw Error(ie(130,e==null?e:typeof e,""))}return t=hr(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function wa(e,t,n,r){return e=hr(7,e,r,t),e.lanes=n,e}function Ip(e,t,n,r){return e=hr(22,e,r,t),e.elementType=YA,e.lanes=n,e.stateNode={isHidden:!1},e}function dv(e,t,n){return e=hr(6,e,null,t),e.lanes=n,e}function pv(e,t,n){return t=hr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function xD(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 $x(e,t,n,r,i,o,s,l,u){return e=new xD(e,t,n,l,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=hr(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},gx(o),e}function _D(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:cs,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function VE(e){if(!e)return Mo;e=e._reactInternals;e:{if(Ra(e)!==e||e.tag!==1)throw Error(ie(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if($n(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(ie(171))}if(e.tag===1){var n=e.type;if($n(n))return V2(e,n,t)}return t}function UE(e,t,n,r,i,o,s,l,u){return e=$x(n,r,!0,e,i,o,s,l,u),e.context=VE(null),n=e.current,r=bn(),i=To(n),o=Ei(r,i),o.callback=t??null,Po(n,o,i),e.current.lanes=i,tf(e,i,r),Ln(e,r),e}function Dp(e,t,n,r){var i=t.current,o=bn(),s=To(i);return n=VE(n),t.context===null?t.context=n:t.pendingContext=n,t=Ei(o,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Po(i,t,s),e!==null&&(Lr(e,i,s,o),Dh(e,i,s)),s}function vd(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 gw(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Lx(e,t){gw(e,t),(e=e.alternate)&&gw(e,t)}function bD(){return null}var WE=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ix(e){this._internalRoot=e}Rp.prototype.render=Ix.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(ie(409));Dp(e,t,null,null)};Rp.prototype.unmount=Ix.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ca(function(){Dp(null,e,null,null)}),t[Li]=null}};function Rp(e){this._internalRoot=e}Rp.prototype.unstable_scheduleHydration=function(e){if(e){var t=b2();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ho.length&&t!==0&&t<ho[n].priority;n++);ho.splice(n,0,e),n===0&&S2(e)}};function Dx(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function zp(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function yw(){}function wD(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var f=vd(s);o.call(f)}}var s=UE(t,r,e,0,null,!1,!1,"",yw);return e._reactRootContainer=s,e[Li]=s.current,ic(e.nodeType===8?e.parentNode:e),Ca(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var l=r;r=function(){var f=vd(u);l.call(f)}}var u=$x(e,0,!1,null,null,!1,!1,"",yw);return e._reactRootContainer=u,e[Li]=u.current,ic(e.nodeType===8?e.parentNode:e),Ca(function(){Dp(t,u,n,r)}),u}function Bp(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=vd(s);l.call(u)}}Dp(t,s,e,i)}else s=wD(n,t,e,i,r);return vd(s)}x2=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Su(t.pendingLanes);n!==0&&(nx(t,n|1),Ln(t,wt()),!(Le&6)&&(Gs=wt()+500,Lo()))}break;case 13:Ca(function(){var r=Ii(e,1);if(r!==null){var i=bn();Lr(r,e,1,i)}}),Lx(e,1)}};rx=function(e){if(e.tag===13){var t=Ii(e,134217728);if(t!==null){var n=bn();Lr(t,e,134217728,n)}Lx(e,134217728)}};_2=function(e){if(e.tag===13){var t=To(e),n=Ii(e,t);if(n!==null){var r=bn();Lr(n,e,t,r)}Lx(e,t)}};b2=function(){return Ve};w2=function(e,t){var n=Ve;try{return Ve=e,t()}finally{Ve=n}};wg=function(e,t,n){switch(t){case"input":if(mg(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=Mp(r);if(!i)throw Error(ie(90));JA(r),mg(r,i)}}}break;case"textarea":t2(e,n);break;case"select":t=n.value,t!=null&&Ms(e,!!n.multiple,t,!1)}};l2=Mx;u2=Ca;var SD={usingClientEntryPoint:!1,Events:[rf,ms,Mp,a2,s2,Mx]},su={findFiberByHostInstance:fa,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},PD={bundleType:su.bundleType,version:su.version,rendererPackageName:su.rendererPackageName,rendererConfig:su.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ui.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=h2(e),e===null?null:e.stateNode},findFiberByHostInstance:su.findFiberByHostInstance||bD,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 lh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!lh.isDisabled&&lh.supportsFiber)try{Tp=lh.inject(PD),Jr=lh}catch{}}Xn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=SD;Xn.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Dx(t))throw Error(ie(200));return _D(e,t,null,n)};Xn.createRoot=function(e,t){if(!Dx(e))throw Error(ie(299));var n=!1,r="",i=WE;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=$x(e,1,!1,null,null,n,!1,r,i),e[Li]=t.current,ic(e.nodeType===8?e.parentNode:e),new Ix(t)};Xn.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(ie(188)):(e=Object.keys(e).join(","),Error(ie(268,e)));return e=h2(t),e=e===null?null:e.stateNode,e};Xn.flushSync=function(e){return Ca(e)};Xn.hydrate=function(e,t,n){if(!zp(t))throw Error(ie(200));return Bp(null,e,t,!0,n)};Xn.hydrateRoot=function(e,t,n){if(!Dx(e))throw Error(ie(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",s=WE;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=UE(t,null,e,1,n??null,i,!1,o,s),e[Li]=t.current,ic(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 Rp(t)};Xn.render=function(e,t,n){if(!zp(t))throw Error(ie(200));return Bp(null,e,t,!1,n)};Xn.unmountComponentAtNode=function(e){if(!zp(e))throw Error(ie(40));return e._reactRootContainer?(Ca(function(){Bp(null,null,e,!1,function(){e._reactRootContainer=null,e[Li]=null})}),!0):!1};Xn.unstable_batchedUpdates=Mx;Xn.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!zp(n))throw Error(ie(200));if(e==null||e._reactInternals===void 0)throw Error(ie(38));return Bp(e,t,n,!1,r)};Xn.version="18.3.1-next-f1338f8080-20240426";function HE(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(HE)}catch(e){console.error(e)}}HE(),HA.exports=Xn;var OD=HA.exports,xw=OD;lg.createRoot=xw.createRoot,lg.hydrateRoot=xw.hydrateRoot;const Rx=j.createContext({});function zx(e){const t=j.useRef(null);return t.current===null&&(t.current=e()),t.current}const Fp=j.createContext(null),Bx=j.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class TD 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 AD({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(Bx);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]),y.jsx(TD,{isPresent:t,childRef:r,sizeRef:i,children:j.cloneElement(e,{ref:r})})}const ED=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:s})=>{const l=zx(kD),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=y.jsx(AD,{isPresent:n,children:e})),y.jsx(Fp.Provider,{value:d,children:e})};function kD(){return new Map}function GE(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 uh=e=>e.key||"";function _w(e){const t=[];return j.Children.forEach(e,n=>{j.isValidElement(n)&&t.push(n)}),t}const Fx=typeof window<"u",ZE=Fx?j.useLayoutEffect:j.useEffect,MD=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:s=!1})=>{const[l,u]=GE(s),f=j.useMemo(()=>_w(e),[e]),d=s&&!l?[]:f.map(uh),h=j.useRef(!0),m=j.useRef(f),v=zx(()=>new Map),[w,b]=j.useState(f),[P,_]=j.useState(f);ZE(()=>{h.current=!1,m.current=f;for(let E=0;E<P.length;E++){const O=uh(P[E]);d.includes(O)?v.delete(O):v.get(O)!==!0&&v.set(O,!1)}},[P,d.length,d.join("-")]);const x=[];if(f!==w){let E=[...f];for(let O=0;O<P.length;O++){const A=P[O],M=uh(A);d.includes(M)||(E.splice(O,0,A),x.push(A))}o==="wait"&&x.length&&(E=x),_(_w(E)),b(f);return}const{forceRender:S}=j.useContext(Rx);return y.jsx(y.Fragment,{children:P.map(E=>{const O=uh(E),A=s&&!l?!1:f===P||d.includes(O),M=()=>{if(v.has(O))v.set(O,!0);else return;let C=!0;v.forEach(N=>{N||(C=!1)}),C&&(S==null||S(),_(m.current),s&&(u==null||u()),r&&r())};return y.jsx(ED,{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},O)})})},Gn=e=>e;let KE=Gn;function Vx(e){let t;return()=>(t===void 0&&(t=e()),t)}const Zs=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},ki=e=>e*1e3,Mi=e=>e/1e3,CD={useManualTiming:!1};function jD(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 ch=["read","resolveKeyframes","update","preRender","render","postRender"],ND=40;function qE(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=ch.reduce((_,x)=>(_[x]=jD(o),_),{}),{read:l,resolveKeyframes:u,update:f,preRender:d,render:h,postRender:m}=s,v=()=>{const _=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(_-i.timestamp,ND),1),i.timestamp=_,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))},w=()=>{n=!0,r=!0,i.isProcessing||e(v)};return{schedule:ch.reduce((_,x)=>{const S=s[x];return _[x]=(E,O=!1,A=!1)=>(n||w(),S.schedule(E,O,A)),_},{}),cancel:_=>{for(let x=0;x<ch.length;x++)s[ch[x]].cancel(_)},state:i,steps:s}}const{schedule:it,cancel:Co,state:Zt,steps:mv}=qE(typeof requestAnimationFrame<"u"?requestAnimationFrame:Gn,!0),XE=j.createContext({strict:!1}),bw={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"]},Ks={};for(const e in bw)Ks[e]={isEnabled:t=>bw[e].some(n=>!!t[n])};function $D(e){for(const t in e)Ks[t]={...Ks[t],...e[t]}}const LD=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 gd(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||LD.has(e)}let YE=e=>!gd(e);function ID(e){e&&(YE=t=>t.startsWith("on")?!gd(t):e(t))}try{ID(require("@emotion/is-prop-valid").default)}catch{}function DD(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(YE(i)||n===!0&&gd(i)||!t&&!gd(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function RD(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 Vp=j.createContext({});function dc(e){return typeof e=="string"||Array.isArray(e)}function Up(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Ux=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Wx=["initial",...Ux];function Wp(e){return Up(e.animate)||Wx.some(t=>dc(e[t]))}function QE(e){return!!(Wp(e)||e.variants)}function zD(e,t){if(Wp(e)){const{initial:n,animate:r}=e;return{initial:n===!1||dc(n)?n:void 0,animate:dc(r)?r:void 0}}return e.inherit!==!1?t:{}}function BD(e){const{initial:t,animate:n}=zD(e,j.useContext(Vp));return j.useMemo(()=>({initial:t,animate:n}),[ww(t),ww(n)])}function ww(e){return Array.isArray(e)?e.join(" "):e}const FD=Symbol.for("motionComponentSymbol");function ws(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function VD(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):ws(n)&&(n.current=r))},[t])}const Hx=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),UD="framerAppearId",JE="data-"+Hx(UD),{schedule:Gx}=qE(queueMicrotask,!1),ek=j.createContext({});function WD(e,t,n,r,i){var o,s;const{visualElement:l}=j.useContext(Vp),u=j.useContext(XE),f=j.useContext(Fp),d=j.useContext(Bx).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(ek);m&&!m.projection&&i&&(m.type==="html"||m.type==="svg")&&HD(h.current,n,i,v);const w=j.useRef(!1);j.useInsertionEffect(()=>{m&&w.current&&m.update(n,f)});const b=n[JE],P=j.useRef(!!b&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,b))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,b)));return ZE(()=>{m&&(w.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),Gx.render(m.render),P.current&&m.animationState&&m.animationState.animateChanges())}),j.useEffect(()=>{m&&(!P.current&&m.animationState&&m.animationState.animateChanges(),P.current&&(queueMicrotask(()=>{var _;(_=window.MotionHandoffMarkAsComplete)===null||_===void 0||_.call(window,b)}),P.current=!1))}),m}function HD(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:tk(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!s||l&&ws(l),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:f})}function tk(e){if(e)return e.options.allowProjection!==!1?e.projection:tk(e.parent)}function GD({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,s;e&&$D(e);function l(f,d){let h;const m={...j.useContext(Bx),...f,layoutId:ZD(f)},{isStatic:v}=m,w=BD(f),b=r(f,v);if(!v&&Fx){KD();const P=qD(m);h=P.MeasureLayout,w.visualElement=WD(i,b,m,t,P.ProjectionNode)}return y.jsxs(Vp.Provider,{value:w,children:[h&&w.visualElement?y.jsx(h,{visualElement:w.visualElement,...m}):null,n(i,f,VD(b,w.visualElement,d),b,v,w.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[FD]=i,u}function ZD({layoutId:e}){const t=j.useContext(Rx).id;return t&&e!==void 0?t+"-"+e:e}function KD(e,t){j.useContext(XE).strict}function qD(e){const{drag:t,layout:n}=Ks;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 XD=["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 Zx(e){return typeof e!="string"||e.includes("-")?!1:!!(XD.indexOf(e)>-1||/[A-Z]/u.test(e))}function Sw(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Kx(e,t,n,r){if(typeof t=="function"){const[i,o]=Sw(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]=Sw(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const ty=e=>Array.isArray(e),YD=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),QD=e=>ty(e)?e[e.length-1]||0:e,un=e=>!!(e&&e.getVelocity);function Wh(e){const t=un(e)?e.get():e;return YD(t)?t.toValue():t}function JD({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const s={latestValues:e5(r,i,o,e),renderState:t()};return n&&(s.onMount=l=>n({props:r,current:l,...s}),s.onUpdate=l=>n(l)),s}const nk=e=>(t,n)=>{const r=j.useContext(Vp),i=j.useContext(Fp),o=()=>JD(e,t,r,i);return n?o():zx(o)};function e5(e,t,n,r){const i={},o=r(e,{});for(const m in o)i[m]=Wh(o[m]);let{initial:s,animate:l}=e;const u=Wp(e),f=QE(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"&&!Up(h)){const m=Array.isArray(h)?h:[h];for(let v=0;v<m.length;v++){const w=Kx(e,m[v]);if(w){const{transitionEnd:b,transition:P,..._}=w;for(const x in _){let S=_[x];if(Array.isArray(S)){const E=d?S.length-1:0;S=S[E]}S!==null&&(i[x]=S)}for(const x in b)i[x]=b[x]}}}return i}const Sl=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],za=new Set(Sl),rk=e=>t=>typeof t=="string"&&t.startsWith(e),ik=rk("--"),t5=rk("var(--"),qx=e=>t5(e)?n5.test(e.split("/*")[0].trim()):!1,n5=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,ok=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Ri=(e,t,n)=>n>t?t:n<e?e:n,Pl={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},pc={...Pl,transform:e=>Ri(0,1,e)},fh={...Pl,default:1},af=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),so=af("deg"),ti=af("%"),ge=af("px"),r5=af("vh"),i5=af("vw"),Pw={...ti,parse:e=>ti.parse(e)/100,transform:e=>ti.transform(e*100)},o5={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},a5={rotate:so,rotateX:so,rotateY:so,rotateZ:so,scale:fh,scaleX:fh,scaleY:fh,scaleZ:fh,skew:so,skewX:so,skewY:so,distance:ge,translateX:ge,translateY:ge,translateZ:ge,x:ge,y:ge,z:ge,perspective:ge,transformPerspective:ge,opacity:pc,originX:Pw,originY:Pw,originZ:ge},Ow={...Pl,transform:Math.round},Xx={...o5,...a5,zIndex:Ow,size:ge,fillOpacity:pc,strokeOpacity:pc,numOctaves:Ow},s5={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},l5=Sl.length;function u5(e,t,n){let r="",i=!0;for(let o=0;o<l5;o++){const s=Sl[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=ok(l,Xx[s]);if(!u){i=!1;const d=s5[s]||s;r+=`${d}(${f}) `}n&&(t[s]=f)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function Yx(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(za.has(u)){s=!0;continue}else if(ik(u)){i[u]=f;continue}else{const d=ok(f,Xx[u]);u.startsWith("origin")?(l=!0,o[u]=d):r[u]=d}}if(t.transform||(s||n?r.transform=u5(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 c5={offset:"stroke-dashoffset",array:"stroke-dasharray"},f5={offset:"strokeDashoffset",array:"strokeDasharray"};function h5(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?c5:f5;e[o.offset]=ge.transform(-r);const s=ge.transform(t),l=ge.transform(n);e[o.array]=`${s} ${l}`}function Tw(e,t,n){return typeof e=="string"?e:ge.transform(t+n*e)}function d5(e,t,n){const r=Tw(t,e.x,e.width),i=Tw(n,e.y,e.height);return`${r} ${i}`}function Qx(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:l=1,pathOffset:u=0,...f},d,h){if(Yx(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:w}=e;m.transform&&(w&&(v.transform=m.transform),delete m.transform),w&&(i!==void 0||o!==void 0||v.transform)&&(v.transformOrigin=d5(w,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&&h5(m,s,l,u,!1)}const Jx=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),ak=()=>({...Jx(),attrs:{}}),e_=e=>typeof e=="string"&&e.toLowerCase()==="svg";function sk(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 lk=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 uk(e,t,n,r){sk(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(lk.has(i)?i:Hx(i),t.attrs[i])}const yd={};function p5(e){Object.assign(yd,e)}function ck(e,{layout:t,layoutId:n}){return za.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!yd[e]||e==="opacity")}function t_(e,t,n){var r;const{style:i}=e,o={};for(const s in i)(un(i[s])||t.style&&un(t.style[s])||ck(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 fk(e,t,n){const r=t_(e,t,n);for(const i in e)if(un(e[i])||un(t[i])){const o=Sl.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}function m5(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 Aw=["x","y","width","height","cx","cy","r"],v5={useVisualState:nk({scrapeMotionValuesFromProps:fk,createRenderState:ak,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(za.has(l)){o=!0;break}}if(!o)return;let s=!t;if(t)for(let l=0;l<Aw.length;l++){const u=Aw[l];e[u]!==t[u]&&(s=!0)}s&&it.read(()=>{m5(n,r),it.render(()=>{Qx(r,i,e_(n.tagName),e.transformTemplate),uk(n,r)})})}})},g5={useVisualState:nk({scrapeMotionValuesFromProps:t_,createRenderState:Jx})};function hk(e,t,n){for(const r in t)!un(t[r])&&!ck(r,n)&&(e[r]=t[r])}function y5({transformTemplate:e},t){return j.useMemo(()=>{const n=Jx();return Yx(n,t,e),Object.assign({},n.vars,n.style)},[t])}function x5(e,t){const n=e.style||{},r={};return hk(r,n,e),Object.assign(r,y5(e,t)),r}function _5(e,t){const n={},r=x5(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 b5(e,t,n,r){const i=j.useMemo(()=>{const o=ak();return Qx(o,t,e_(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};hk(o,e.style,e),i.style={...o,...i.style}}return i}function w5(e=!1){return(n,r,i,{latestValues:o},s)=>{const u=(Zx(n)?b5:_5)(r,o,s,n),f=DD(r,typeof n=="string",e),d=n!==j.Fragment?{...f,...u,ref:i}:{},{children:h}=r,m=j.useMemo(()=>un(h)?h.get():h,[h]);return j.createElement(n,{...d,children:m})}}function S5(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const s={...Zx(r)?v5:g5,preloadedFeatures:e,useRender:w5(i),createVisualElement:t,Component:r};return GD(s)}}function dk(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 Hp(e,t,n){const r=e.getProps();return Kx(r,t,n!==void 0?n:r.custom,e)}const P5=Vx(()=>window.ScrollTimeline!==void 0);class O5{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(P5()&&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 T5 extends O5{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function n_(e,t){return e?e[t]||e.default||e:void 0}const ny=2e4;function pk(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<ny;)t+=n,r=e.next(t);return t>=ny?1/0:t}function r_(e){return typeof e=="function"}function Ew(e,t){e.timeline=t,e.onfinish=null}const i_=e=>Array.isArray(e)&&typeof e[0]=="number",A5={linearEasing:void 0};function E5(e,t){const n=Vx(e);return()=>{var r;return(r=A5[t])!==null&&r!==void 0?r:n()}}const xd=E5(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),mk=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(Zs(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function vk(e){return!!(typeof e=="function"&&xd()||!e||typeof e=="string"&&(e in ry||xd())||i_(e)||Array.isArray(e)&&e.every(vk))}const Ou=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,ry={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ou([0,.65,.55,1]),circOut:Ou([.55,0,1,.45]),backIn:Ou([.31,.01,.66,-.59]),backOut:Ou([.33,1.53,.69,.99])};function gk(e,t){if(e)return typeof e=="function"&&xd()?mk(e,t):i_(e)?Ou(e):Array.isArray(e)?e.map(n=>gk(n,t)||ry.easeOut):ry[e]}const Ar={x:!1,y:!1};function yk(){return Ar.x||Ar.y}function k5(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 xk(e,t){const n=k5(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function kw(e){return t=>{t.pointerType==="touch"||yk()||e(t)}}function M5(e,t,n={}){const[r,i,o]=xk(e,n),s=kw(l=>{const{target:u}=l,f=t(l);if(typeof f!="function"||!u)return;const d=kw(h=>{f(h),u.removeEventListener("pointerleave",d)});u.addEventListener("pointerleave",d,i)});return r.forEach(l=>{l.addEventListener("pointerenter",s,i)}),o}const _k=(e,t)=>t?e===t?!0:_k(e,t.parentElement):!1,o_=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,C5=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function j5(e){return C5.has(e.tagName)||e.tabIndex!==-1}const Tu=new WeakSet;function Mw(e){return t=>{t.key==="Enter"&&e(t)}}function vv(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const N5=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Mw(()=>{if(Tu.has(n))return;vv(n,"down");const i=Mw(()=>{vv(n,"up")}),o=()=>vv(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 Cw(e){return o_(e)&&!yk()}function $5(e,t,n={}){const[r,i,o]=xk(e,n),s=l=>{const u=l.currentTarget;if(!Cw(l)||Tu.has(u))return;Tu.add(u);const f=t(l),d=(v,w)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",m),!(!Cw(v)||!Tu.has(u))&&(Tu.delete(u),typeof f=="function"&&f(v,{success:w}))},h=v=>{d(v,n.useGlobalTarget||_k(u,v.target))},m=v=>{d(v,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",m,i)};return r.forEach(l=>{!j5(l)&&l.getAttribute("tabindex")===null&&(l.tabIndex=0),(n.useGlobalTarget?window:l).addEventListener("pointerdown",s,i),l.addEventListener("focus",f=>N5(f,i),i)}),o}function L5(e){return e==="x"||e==="y"?Ar[e]?null:(Ar[e]=!0,()=>{Ar[e]=!1}):Ar.x||Ar.y?null:(Ar.x=Ar.y=!0,()=>{Ar.x=Ar.y=!1})}const bk=new Set(["width","height","top","left","right","bottom",...Sl]);let Hh;function I5(){Hh=void 0}const ni={now:()=>(Hh===void 0&&ni.set(Zt.isProcessing||CD.useManualTiming?Zt.timestamp:performance.now()),Hh),set:e=>{Hh=e,queueMicrotask(I5)}};function a_(e,t){e.indexOf(t)===-1&&e.push(t)}function s_(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class l_{constructor(){this.subscriptions=[]}add(t){return a_(this.subscriptions,t),()=>s_(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 wk(e,t){return t?e*(1e3/t):0}const jw=30,D5=e=>!isNaN(parseFloat(e));class R5{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=ni.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=ni.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=D5(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 l_);const r=this.events[t].add(n);return t==="change"?()=>{r(),it.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=ni.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>jw)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,jw);return wk(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 mc(e,t){return new R5(e,t)}function z5(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,mc(n))}function B5(e,t){const n=Hp(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const s in o){const l=QD(o[s]);z5(e,s,l)}}function F5(e){return!!(un(e)&&e.add)}function iy(e,t){const n=e.getValue("willChange");if(F5(n))return n.add(t)}function Sk(e){return e.props[JE]}const Pk=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,V5=1e-7,U5=12;function W5(e,t,n,r,i){let o,s,l=0;do s=t+(n-t)/2,o=Pk(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>V5&&++l<U5);return s}function sf(e,t,n,r){if(e===t&&n===r)return Gn;const i=o=>W5(o,0,1,e,n);return o=>o===0||o===1?o:Pk(i(o),t,r)}const Ok=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Tk=e=>t=>1-e(1-t),Ak=sf(.33,1.53,.69,.99),u_=Tk(Ak),Ek=Ok(u_),kk=e=>(e*=2)<1?.5*u_(e):.5*(2-Math.pow(2,-10*(e-1))),c_=e=>1-Math.sin(Math.acos(e)),Mk=Tk(c_),Ck=Ok(c_),jk=e=>/^0[^.\s]+$/u.test(e);function H5(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||jk(e):!0}const zu=e=>Math.round(e*1e5)/1e5,f_=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function G5(e){return e==null}const Z5=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,h_=(e,t)=>n=>!!(typeof n=="string"&&Z5.test(n)&&n.startsWith(e)||t&&!G5(n)&&Object.prototype.hasOwnProperty.call(n,t)),Nk=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,s,l]=r.match(f_);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:l!==void 0?parseFloat(l):1}},K5=e=>Ri(0,255,e),gv={...Pl,transform:e=>Math.round(K5(e))},pa={test:h_("rgb","red"),parse:Nk("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+gv.transform(e)+", "+gv.transform(t)+", "+gv.transform(n)+", "+zu(pc.transform(r))+")"};function q5(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 oy={test:h_("#"),parse:q5,transform:pa.transform},Ss={test:h_("hsl","hue"),parse:Nk("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ti.transform(zu(t))+", "+ti.transform(zu(n))+", "+zu(pc.transform(r))+")"},rn={test:e=>pa.test(e)||oy.test(e)||Ss.test(e),parse:e=>pa.test(e)?pa.parse(e):Ss.test(e)?Ss.parse(e):oy.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?pa.transform(e):Ss.transform(e)},X5=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Y5(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(f_))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(X5))===null||n===void 0?void 0:n.length)||0)>0}const $k="number",Lk="color",Q5="var",J5="var(",Nw="${}",eR=/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 vc(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const l=t.replace(eR,u=>(rn.test(u)?(r.color.push(o),i.push(Lk),n.push(rn.parse(u))):u.startsWith(J5)?(r.var.push(o),i.push(Q5),n.push(u)):(r.number.push(o),i.push($k),n.push(parseFloat(u))),++o,Nw)).split(Nw);return{values:n,split:l,indexes:r,types:i}}function Ik(e){return vc(e).values}function Dk(e){const{split:t,types:n}=vc(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===$k?o+=zu(i[s]):l===Lk?o+=rn.transform(i[s]):o+=i[s]}return o}}const tR=e=>typeof e=="number"?0:e;function nR(e){const t=Ik(e);return Dk(e)(t.map(tR))}const jo={test:Y5,parse:Ik,createTransformer:Dk,getAnimatableNone:nR},rR=new Set(["brightness","contrast","saturate","opacity"]);function iR(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(f_)||[];if(!r)return e;const i=n.replace(r,"");let o=rR.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const oR=/\b([a-z-]*)\(.*?\)/gu,ay={...jo,getAnimatableNone:e=>{const t=e.match(oR);return t?t.map(iR).join(" "):e}},aR={...Xx,color:rn,backgroundColor:rn,outlineColor:rn,fill:rn,stroke:rn,borderColor:rn,borderTopColor:rn,borderRightColor:rn,borderBottomColor:rn,borderLeftColor:rn,filter:ay,WebkitFilter:ay},d_=e=>aR[e];function Rk(e,t){let n=d_(e);return n!==ay&&(n=jo),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const sR=new Set(["auto","none","0"]);function lR(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!sR.has(o)&&vc(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=Rk(n,i)}const $w=e=>e===Pl||e===ge,Lw=(e,t)=>parseFloat(e.split(", ")[t]),Iw=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return Lw(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?Lw(o[1],e):0}},uR=new Set(["x","y","z"]),cR=Sl.filter(e=>!uR.has(e));function fR(e){const t=[];return cR.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const qs={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:Iw(4,13),y:Iw(5,14)};qs.translateX=qs.x;qs.translateY=qs.y;const Sa=new Set;let sy=!1,ly=!1;function zk(){if(ly){const e=Array.from(Sa).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=fR(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)})}ly=!1,sy=!1,Sa.forEach(e=>e.complete()),Sa.clear()}function Bk(){Sa.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ly=!0)})}function hR(){Bk(),zk()}class p_{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?(Sa.add(this),sy||(sy=!0,it.read(Bk),it.resolveKeyframes(zk))):(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),Sa.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Sa.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Fk=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),dR=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function pR(e){const t=dR.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function Vk(e,t,n=1){const[r,i]=pR(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return Fk(s)?parseFloat(s):s}return qx(i)?Vk(i,t,n+1):i}const Uk=e=>t=>t.test(e),mR={test:e=>e==="auto",parse:e=>e},Wk=[Pl,ge,ti,so,i5,r5,mR],Dw=e=>Wk.find(Uk(e));class Hk extends p_{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(),qx(f))){const d=Vk(f,n.current);d!==void 0&&(t[u]=d),u===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!bk.has(r)||t.length!==2)return;const[i,o]=t,s=Dw(i),l=Dw(o);if(s!==l)if($w(s)&&$w(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++)H5(t[i])&&r.push(i);r.length&&lR(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=qs[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]=qs[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 Rw=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(jo.test(e)||e==="0")&&!e.startsWith("url("));function vR(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 gR(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=Rw(i,t),l=Rw(o,t);return!s||!l?!1:vR(e)||(n==="spring"||r_(n))&&r}const yR=e=>e!==null;function Gp(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(yR),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const xR=40;class Gk{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=ni.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>xR?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&hR(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=ni.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:s,onComplete:l,onUpdate:u,isGenerator:f}=this.options;if(!f&&!gR(t,r,i,o))if(s)this.options.duration=0;else{u&&u(Gp(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 ht=(e,t,n)=>e+(t-e)*n;function yv(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 _R({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=yv(u,l,e+1/3),o=yv(u,l,e),s=yv(u,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}function _d(e,t){return n=>n>0?t:e}const xv=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},bR=[oy,pa,Ss],wR=e=>bR.find(t=>t.test(e));function zw(e){const t=wR(e);if(!t)return!1;let n=t.parse(e);return t===Ss&&(n=_R(n)),n}const Bw=(e,t)=>{const n=zw(e),r=zw(t);if(!n||!r)return _d(e,t);const i={...n};return o=>(i.red=xv(n.red,r.red,o),i.green=xv(n.green,r.green,o),i.blue=xv(n.blue,r.blue,o),i.alpha=ht(n.alpha,r.alpha,o),pa.transform(i))},SR=(e,t)=>n=>t(e(n)),lf=(...e)=>e.reduce(SR),uy=new Set(["none","hidden"]);function PR(e,t){return uy.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function OR(e,t){return n=>ht(e,t,n)}function m_(e){return typeof e=="number"?OR:typeof e=="string"?qx(e)?_d:rn.test(e)?Bw:ER:Array.isArray(e)?Zk:typeof e=="object"?rn.test(e)?Bw:TR:_d}function Zk(e,t){const n=[...e],r=n.length,i=e.map((o,s)=>m_(o)(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}}function TR(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=m_(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function AR(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 ER=(e,t)=>{const n=jo.createTransformer(t),r=vc(e),i=vc(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?uy.has(e)&&!i.values.length||uy.has(t)&&!r.values.length?PR(e,t):lf(Zk(AR(r,i),i.values),n):_d(e,t)};function Kk(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ht(e,t,n):m_(e)(e,t)}const kR=5;function qk(e,t,n){const r=Math.max(t-kR,0);return wk(n-e(r),t-r)}const yt={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},_v=.001;function MR({duration:e=yt.duration,bounce:t=yt.bounce,velocity:n=yt.velocity,mass:r=yt.mass}){let i,o,s=1-t;s=Ri(yt.minDamping,yt.maxDamping,s),e=Ri(yt.minDuration,yt.maxDuration,Mi(e)),s<1?(i=f=>{const d=f*s,h=d*e,m=d-n,v=cy(f,s),w=Math.exp(-h);return _v-m/v*w},o=f=>{const h=f*s*e,m=h*n+n,v=Math.pow(s,2)*Math.pow(f,2)*e,w=Math.exp(-h),b=cy(Math.pow(f,2),s);return(-i(f)+_v>0?-1:1)*((m-v)*w)/b}):(i=f=>{const d=Math.exp(-f*e),h=(f-n)*e+1;return-_v+d*h},o=f=>{const d=Math.exp(-f*e),h=(n-f)*(e*e);return d*h});const l=5/e,u=jR(i,o,l);if(e=ki(e),isNaN(u))return{stiffness:yt.stiffness,damping:yt.damping,duration:e};{const f=Math.pow(u,2)*r;return{stiffness:f,damping:s*2*Math.sqrt(r*f),duration:e}}}const CR=12;function jR(e,t,n){let r=n;for(let i=1;i<CR;i++)r=r-e(r)/t(r);return r}function cy(e,t){return e*Math.sqrt(1-t*t)}const NR=["duration","bounce"],$R=["stiffness","damping","mass"];function Fw(e,t){return t.some(n=>e[n]!==void 0)}function LR(e){let t={velocity:yt.velocity,stiffness:yt.stiffness,damping:yt.damping,mass:yt.mass,isResolvedFromDuration:!1,...e};if(!Fw(e,$R)&&Fw(e,NR))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*Ri(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:yt.mass,stiffness:i,damping:o}}else{const n=MR(e);t={...t,...n,mass:yt.mass},t.isResolvedFromDuration=!0}return t}function Xk(e=yt.visualDuration,t=yt.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}=LR({...n,velocity:-Mi(n.velocity||0)}),w=m||0,b=f/(2*Math.sqrt(u*d)),P=s-o,_=Mi(Math.sqrt(u/d)),x=Math.abs(P)<5;r||(r=x?yt.restSpeed.granular:yt.restSpeed.default),i||(i=x?yt.restDelta.granular:yt.restDelta.default);let S;if(b<1){const O=cy(_,b);S=A=>{const M=Math.exp(-b*_*A);return s-M*((w+b*_*P)/O*Math.sin(O*A)+P*Math.cos(O*A))}}else if(b===1)S=O=>s-Math.exp(-_*O)*(P+(w+_*P)*O);else{const O=_*Math.sqrt(b*b-1);S=A=>{const M=Math.exp(-b*_*A),C=Math.min(O*A,300);return s-M*((w+b*_*P)*Math.sinh(C)+O*P*Math.cosh(C))/O}}const E={calculatedDuration:v&&h||null,next:O=>{const A=S(O);if(v)l.done=O>=h;else{let M=0;b<1&&(M=O===0?ki(w):qk(S,O,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 O=Math.min(pk(E),ny),A=mk(M=>E.next(O*M).value,O,30);return O+"ms "+A}};return E}function Vw({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,w=C=>l===void 0?u:u===void 0||Math.abs(l-C)<Math.abs(u-C)?l:u;let b=n*t;const P=h+b,_=s===void 0?P:s(P);_!==P&&(b=_-h);const x=C=>-b*Math.exp(-C/r),S=C=>_+x(C),E=C=>{const N=x(C),z=S(C);m.done=Math.abs(N)<=f,m.value=m.done?_:z};let O,A;const M=C=>{v(m.value)&&(O=C,A=Xk({keyframes:[m.value,w(m.value)],velocity:qk(S,C,m.value),damping:i,stiffness:o,restDelta:f,restSpeed:d}))};return M(0),{calculatedDuration:null,next:C=>{let N=!1;return!A&&O===void 0&&(N=!0,E(C),M(C)),O!==void 0&&C>=O?A.next(C-O):(!N&&E(C),m)}}}const IR=sf(.42,0,1,1),DR=sf(0,0,.58,1),Yk=sf(.42,0,.58,1),RR=e=>Array.isArray(e)&&typeof e[0]!="number",zR={linear:Gn,easeIn:IR,easeInOut:Yk,easeOut:DR,circIn:c_,circInOut:Ck,circOut:Mk,backIn:u_,backInOut:Ek,backOut:Ak,anticipate:kk},Uw=e=>{if(i_(e)){KE(e.length===4);const[t,n,r,i]=e;return sf(t,n,r,i)}else if(typeof e=="string")return zR[e];return e};function BR(e,t,n){const r=[],i=n||Kk,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]||Gn:t;l=lf(u,l)}r.push(l)}return r}function FR(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(KE(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=BR(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=Zs(e[h],e[h+1],d);return l[h](m)};return n?d=>f(Ri(e[0],e[o-1],d)):f}function VR(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Zs(0,t,r);e.push(ht(n,1,i))}}function UR(e){const t=[0];return VR(t,e.length-1),t}function WR(e,t){return e.map(n=>n*t)}function HR(e,t){return e.map(()=>t||Yk).splice(0,e.length-1)}function bd({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=RR(r)?r.map(Uw):Uw(r),o={done:!1,value:t[0]},s=WR(n&&n.length===t.length?n:UR(t),e),l=FR(s,t,{ease:Array.isArray(i)?i:HR(t,i)});return{calculatedDuration:e,next:u=>(o.value=l(u),o.done=u>=e,o)}}const GR=e=>{const t=({timestamp:n})=>e(n);return{start:()=>it.update(t,!0),stop:()=>Co(t),now:()=>Zt.isProcessing?Zt.timestamp:ni.now()}},ZR={decay:Vw,inertia:Vw,tween:bd,keyframes:bd,spring:Xk},KR=e=>e/100;class v_ extends Gk{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)||p_,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=r_(n)?n:ZR[n]||bd;let u,f;l!==bd&&typeof t[0]!="number"&&(u=lf(KR,Kk(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=pk(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:w,repeatDelay:b,onUpdate:P}=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 _=this.currentTime-m*(this.speed>=0?1:-1),x=this.speed>=0?_<0:_>d;this.currentTime=Math.max(_,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let S=this.currentTime,E=o;if(v){const C=Math.min(this.currentTime,d)/h;let N=Math.floor(C),z=C%1;!z&&C>=1&&(z=1),z===1&&N--,N=Math.min(N,v+1),!!(N%2)&&(w==="reverse"?(z=1-z,b&&(z-=b/h)):w==="mirror"&&(E=s)),S=Ri(0,1,z)*h}const O=x?{done:!1,value:u[0]}:E.next(S);l&&(O.value=l(O.value));let{done:A}=O;!x&&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&&(O.value=Gp(u,this.options,i)),P&&P(O.value),M&&this.finish(),O}get duration(){const{resolved:t}=this;return t?Mi(t.calculatedDuration):0}get time(){return Mi(this.currentTime)}set time(t){t=ki(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=Mi(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=GR,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 qR=new Set(["opacity","clipPath","filter","transform"]);function XR(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=gk(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 YR=Vx(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),wd=10,QR=2e4;function JR(e){return r_(e.type)||e.type==="spring"||!vk(e.ease)}function e3(e,t){const n=new v_({...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<QR;)r=n.sample(o),i.push(r.value),o+=wd;return{times:void 0,keyframes:i,duration:o-wd,ease:"linear"}}const Qk={anticipate:kk,backInOut:Ek,circInOut:Ck};function t3(e){return e in Qk}class Ww extends Gk{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new Hk(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"&&xd()&&t3(o)&&(o=Qk[o]),JR(this.options)){const{onComplete:h,onUpdate:m,motionValue:v,element:w,...b}=this.options,P=e3(t,b);t=P.keyframes,t.length===1&&(t[1]=t[0]),r=P.duration,i=P.times,o=P.ease,s="keyframes"}const d=XR(l.owner.current,u,t,{...this.options,duration:r,times:i,ease:o});return d.startTime=f??this.calcStartTime(),this.pendingTimeline?(Ew(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:h}=this.options;l.set(Gp(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 Mi(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Mi(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=ki(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 Gn;const{animation:r}=n;Ew(r,t)}return Gn}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,w=new v_({...v,keyframes:r,duration:i,type:o,ease:s,times:l,isGenerator:!0}),b=ki(this.time);f.setWithVelocity(w.sample(b-wd).value,w.sample(b).value,wd)}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 YR()&&r&&qR.has(r)&&!u&&!f&&!i&&o!=="mirror"&&s!==0&&l!=="inertia"}}const n3={type:"spring",stiffness:500,damping:25,restSpeed:10},r3=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),i3={type:"keyframes",duration:.8},o3={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},a3=(e,{keyframes:t})=>t.length>2?i3:za.has(e)?e.startsWith("scale")?r3(t[1]):n3:o3;function s3({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 g_=(e,t,n,r={},i,o)=>s=>{const l=n_(r,e)||{},u=l.delay||r.delay||0;let{elapsed:f=0}=r;f=f-ki(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};s3(l)||(d={...d,...a3(e,d)}),d.duration&&(d.duration=ki(d.duration)),d.repeatDelay&&(d.repeatDelay=ki(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=Gp(d.keyframes,l);if(m!==void 0)return it.update(()=>{d.onUpdate(m),d.onComplete()}),new T5([])}return!o&&Ww.supports(d)?new Ww(d):new v_(d)};function l3({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Jk(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&&l3(d,h))continue;const w={delay:n,...n_(s||{},h)};let b=!1;if(window.MotionHandoffAnimation){const _=Sk(e);if(_){const x=window.MotionHandoffAnimation(_,h,it);x!==null&&(w.startTime=x,b=!0)}}iy(e,h),m.start(g_(h,m,v,e.shouldReduceMotion&&bk.has(h)?{type:!1}:w,e,b));const P=m.animation;P&&f.push(P)}return l&&Promise.all(f).then(()=>{it.update(()=>{l&&B5(e,l)})}),f}function fy(e,t,n={}){var r;const i=Hp(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(Jk(e,i,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(f=0)=>{const{delayChildren:d=0,staggerChildren:h,staggerDirection:m}=o;return u3(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 u3(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(c3).forEach((f,d)=>{f.notify("AnimationStart",t),s.push(fy(f,t,{...o,delay:n+u(d)}).then(()=>f.notify("AnimationComplete",t)))}),Promise.all(s)}function c3(e,t){return e.sortNodePosition(t)}function f3(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>fy(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=fy(e,t,n);else{const i=typeof t=="function"?Hp(e,t,n.custom):t;r=Promise.all(Jk(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const h3=Wx.length;function eM(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?eM(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<h3;n++){const r=Wx[n],i=e.props[r];(dc(i)||i===!1)&&(t[r]=i)}return t}const d3=[...Ux].reverse(),p3=Ux.length;function m3(e){return t=>Promise.all(t.map(({animation:n,options:r})=>f3(e,n,r)))}function v3(e){let t=m3(e),n=Hw(),r=!0;const i=u=>(f,d)=>{var h;const m=Hp(e,d,u==="exit"?(h=e.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(m){const{transition:v,transitionEnd:w,...b}=m;f={...f,...b,...w}}return f};function o(u){t=u(e)}function s(u){const{props:f}=e,d=eM(e.parent)||{},h=[],m=new Set;let v={},w=1/0;for(let P=0;P<p3;P++){const _=d3[P],x=n[_],S=f[_]!==void 0?f[_]:d[_],E=dc(S),O=_===u?x.isActive:null;O===!1&&(w=P);let A=S===d[_]&&S!==f[_]&&E;if(A&&r&&e.manuallyAnimateOnMount&&(A=!1),x.protectedKeys={...v},!x.isActive&&O===null||!S&&!x.prevProp||Up(S)||typeof S=="boolean")continue;const M=g3(x.prevProp,S);let C=M||_===u&&x.isActive&&!A&&E||P>w&&E,N=!1;const z=Array.isArray(S)?S:[S];let B=z.reduce(i(_),{});O===!1&&(B={});const{prevResolvedValues:R={}}=x,Y={...R,...B},H=q=>{C=!0,m.has(q)&&(N=!0,m.delete(q)),x.needsAnimating[q]=!0;const D=e.getValue(q);D&&(D.liveStyle=!1)};for(const q in Y){const D=B[q],U=R[q];if(v.hasOwnProperty(q))continue;let V=!1;ty(D)&&ty(U)?V=!dk(D,U):V=D!==U,V?D!=null?H(q):m.add(q):D!==void 0&&m.has(q)?H(q):x.protectedKeys[q]=!0}x.prevProp=S,x.prevResolvedValues=B,x.isActive&&(v={...v,...B}),r&&e.blockInitialAnimation&&(C=!1),C&&(!(A&&M)||N)&&h.push(...z.map(q=>({animation:q,options:{type:_}})))}if(m.size){const P={};m.forEach(_=>{const x=e.getBaseTarget(_),S=e.getValue(_);S&&(S.liveStyle=!0),P[_]=x??null}),h.push({animation:P})}let b=!!h.length;return r&&(f.initial===!1||f.initial===f.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,b?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=Hw(),r=!0}}}function g3(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!dk(t,e):!1}function na(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Hw(){return{animate:na(!0),whileInView:na(),whileHover:na(),whileTap:na(),whileDrag:na(),whileFocus:na(),exit:na()}}class Io{constructor(t){this.isMounted=!1,this.node=t}update(){}}class y3 extends Io{constructor(t){super(t),t.animationState||(t.animationState=v3(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Up(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 x3=0;class _3 extends Io{constructor(){super(...arguments),this.id=x3++}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 b3={animation:{Feature:y3},exit:{Feature:_3}};function gc(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function uf(e){return{point:{x:e.pageX,y:e.pageY}}}const w3=e=>t=>o_(t)&&e(t,uf(t));function Bu(e,t,n,r){return gc(e,t,w3(n),r)}const Gw=(e,t)=>Math.abs(e-t);function S3(e,t){const n=Gw(e.x,t.x),r=Gw(e.y,t.y);return Math.sqrt(n**2+r**2)}class tM{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=wv(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,v=S3(h.offset,{x:0,y:0})>=3;if(!m&&!v)return;const{point:w}=h,{timestamp:b}=Zt;this.history.push({...w,timestamp:b});const{onStart:P,onMove:_}=this.handlers;m||(P&&P(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),_&&_(this.lastMoveEvent,h)},this.handlePointerMove=(h,m)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=bv(m,this.transformPagePoint),it.update(this.updatePoint,!0)},this.handlePointerUp=(h,m)=>{this.end();const{onEnd:v,onSessionEnd:w,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const P=wv(h.type==="pointercancel"?this.lastMoveEventInfo:bv(m,this.transformPagePoint),this.history);this.startEvent&&v&&v(h,P),w&&w(h,P)},!o_(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const s=uf(t),l=bv(s,this.transformPagePoint),{point:u}=l,{timestamp:f}=Zt;this.history=[{...u,timestamp:f}];const{onSessionStart:d}=n;d&&d(t,wv(l,this.history)),this.removeListeners=lf(Bu(this.contextWindow,"pointermove",this.handlePointerMove),Bu(this.contextWindow,"pointerup",this.handlePointerUp),Bu(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Co(this.updatePoint)}}function bv(e,t){return t?{point:t(e.point)}:e}function Zw(e,t){return{x:e.x-t.x,y:e.y-t.y}}function wv({point:e},t){return{point:e,delta:Zw(e,nM(t)),offset:Zw(e,P3(t)),velocity:O3(t,.1)}}function P3(e){return e[0]}function nM(e){return e[e.length-1]}function O3(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=nM(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>ki(t)));)n--;if(!r)return{x:0,y:0};const o=Mi(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 rM=1e-4,T3=1-rM,A3=1+rM,iM=.01,E3=0-iM,k3=0+iM;function Kn(e){return e.max-e.min}function M3(e,t,n){return Math.abs(e-t)<=n}function Kw(e,t,n,r=.5){e.origin=r,e.originPoint=ht(t.min,t.max,e.origin),e.scale=Kn(n)/Kn(t),e.translate=ht(n.min,n.max,e.origin)-e.originPoint,(e.scale>=T3&&e.scale<=A3||isNaN(e.scale))&&(e.scale=1),(e.translate>=E3&&e.translate<=k3||isNaN(e.translate))&&(e.translate=0)}function Fu(e,t,n,r){Kw(e.x,t.x,n.x,r?r.originX:void 0),Kw(e.y,t.y,n.y,r?r.originY:void 0)}function qw(e,t,n){e.min=n.min+t.min,e.max=e.min+Kn(t)}function C3(e,t,n){qw(e.x,t.x,n.x),qw(e.y,t.y,n.y)}function Xw(e,t,n){e.min=t.min-n.min,e.max=e.min+Kn(t)}function Vu(e,t,n){Xw(e.x,t.x,n.x),Xw(e.y,t.y,n.y)}function j3(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?ht(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?ht(n,e,r.max):Math.min(e,n)),e}function Yw(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 N3(e,{top:t,left:n,bottom:r,right:i}){return{x:Yw(e.x,n,i),y:Yw(e.y,t,r)}}function Qw(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 $3(e,t){return{x:Qw(e.x,t.x),y:Qw(e.y,t.y)}}function L3(e,t){let n=.5;const r=Kn(e),i=Kn(t);return i>r?n=Zs(t.min,t.max-r,e.min):r>i&&(n=Zs(e.min,e.max-i,t.min)),Ri(0,1,n)}function I3(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 hy=.35;function D3(e=hy){return e===!1?e=0:e===!0&&(e=hy),{x:Jw(e,"left","right"),y:Jw(e,"top","bottom")}}function Jw(e,t,n){return{min:eS(e,t),max:eS(e,n)}}function eS(e,t){return typeof e=="number"?e:e[t]||0}const tS=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ps=()=>({x:tS(),y:tS()}),nS=()=>({min:0,max:0}),bt=()=>({x:nS(),y:nS()});function lr(e){return[e("x"),e("y")]}function oM({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function R3({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function z3(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 Sv(e){return e===void 0||e===1}function dy({scale:e,scaleX:t,scaleY:n}){return!Sv(e)||!Sv(t)||!Sv(n)}function aa(e){return dy(e)||aM(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function aM(e){return rS(e.x)||rS(e.y)}function rS(e){return e&&e!=="0%"}function Sd(e,t,n){const r=e-n,i=t*r;return n+i}function iS(e,t,n,r,i){return i!==void 0&&(e=Sd(e,i,r)),Sd(e,n,r)+t}function py(e,t=0,n=1,r,i){e.min=iS(e.min,t,n,r,i),e.max=iS(e.max,t,n,r,i)}function sM(e,{x:t,y:n}){py(e.x,t.translate,t.scale,t.originPoint),py(e.y,n.translate,n.scale,n.originPoint)}const oS=.999999999999,aS=1.0000000000001;function B3(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&&Ts(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,sM(e,s)),r&&aa(o.latestValues)&&Ts(e,o.latestValues))}t.x<aS&&t.x>oS&&(t.x=1),t.y<aS&&t.y>oS&&(t.y=1)}function Os(e,t){e.min=e.min+t,e.max=e.max+t}function sS(e,t,n,r,i=.5){const o=ht(e.min,e.max,i);py(e,t,n,o,r)}function Ts(e,t){sS(e.x,t.x,t.scaleX,t.scale,t.originX),sS(e.y,t.y,t.scaleY,t.scale,t.originY)}function lM(e,t){return oM(z3(e.getBoundingClientRect(),t))}function F3(e,t,n){const r=lM(e,n),{scroll:i}=t;return i&&(Os(r.x,i.offset.x),Os(r.y,i.offset.y)),r}const uM=({current:e})=>e?e.ownerDocument.defaultView:null,V3=new WeakMap;class U3{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=bt(),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(uf(d).point)},o=(d,h)=>{const{drag:m,dragPropagation:v,onDragStart:w}=this.getProps();if(m&&!v&&(this.openDragLock&&this.openDragLock(),this.openDragLock=L5(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),lr(P=>{let _=this.getAxisMotionValue(P).get()||0;if(ti.test(_)){const{projection:x}=this.visualElement;if(x&&x.layout){const S=x.layout.layoutBox[P];S&&(_=Kn(S)*(parseFloat(_)/100))}}this.originPoint[P]=_}),w&&it.postRender(()=>w(d,h)),iy(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},s=(d,h)=>{const{dragPropagation:m,dragDirectionLock:v,onDirectionLock:w,onDrag:b}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:P}=h;if(v&&this.currentDirection===null){this.currentDirection=W3(P),this.currentDirection!==null&&w&&w(this.currentDirection);return}this.updateAxis("x",h.point,P),this.updateAxis("y",h.point,P),this.visualElement.render(),b&&b(d,h)},l=(d,h)=>this.stop(d,h),u=()=>lr(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 tM(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:f,contextWindow:uM(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&&it.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||!hh(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=j3(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&&ws(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=N3(i.layoutBox,n):this.constraints=!1,this.elastic=D3(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&lr(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=I3(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ws(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=F3(r,i.root,this.visualElement.getTransformPagePoint());let s=$3(i.layout.layoutBox,o);if(n){const l=n(R3(s));this.hasMutatedConstraints=!!l,l&&(s=oM(l))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:l}=this.getProps(),u=this.constraints||{},f=lr(d=>{if(!hh(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,w={type:"inertia",velocity:r?t[d]:0,bounceStiffness:m,bounceDamping:v,timeConstant:750,restDelta:1,restSpeed:10,...o,...h};return this.startAxisValueAnimation(d,w)});return Promise.all(f).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return iy(this.visualElement,t),r.start(g_(t,r,0,n,this.visualElement,!1))}stopAnimation(){lr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){lr(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){lr(n=>{const{drag:r}=this.getProps();if(!hh(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]-ht(s,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!ws(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};lr(s=>{const l=this.getAxisMotionValue(s);if(l&&this.constraints!==!1){const u=l.get();i[s]=L3({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(),lr(s=>{if(!hh(s,t,null))return;const l=this.getAxisMotionValue(s),{min:u,max:f}=this.constraints[s];l.set(ht(u,f,i[s]))})}addListeners(){if(!this.visualElement.current)return;V3.set(this.visualElement,this);const t=this.visualElement.current,n=Bu(t,"pointerdown",u=>{const{drag:f,dragListener:d=!0}=this.getProps();f&&d&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();ws(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()),it.read(r);const s=gc(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:u,hasLayoutChanged:f})=>{this.isDragging&&f&&(lr(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=hy,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:l}}}function hh(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function W3(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class H3 extends Io{constructor(t){super(t),this.removeGroupControls=Gn,this.removeListeners=Gn,this.controls=new U3(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Gn}unmount(){this.removeGroupControls(),this.removeListeners()}}const lS=e=>(t,n)=>{e&&it.postRender(()=>e(t,n))};class G3 extends Io{constructor(){super(...arguments),this.removePointerDownListener=Gn}onPointerDown(t){this.session=new tM(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:uM(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:lS(t),onStart:lS(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&it.postRender(()=>i(o,s))}}}mount(){this.removePointerDownListener=Bu(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 Gh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function uS(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const lu={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ge.test(e))e=parseFloat(e);else return e;const n=uS(e,t.target.x),r=uS(e,t.target.y);return`${n}% ${r}%`}},Z3={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=jo.parse(e);if(i.length>5)return r;const o=jo.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=ht(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 K3 extends j.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;p5(q3),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()})),Gh.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()||it.postRender(()=>{const l=s.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Gx.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 cM(e){const[t,n]=GE(),r=j.useContext(Rx);return y.jsx(K3,{...e,layoutGroup:r,switchLayoutGroup:j.useContext(ek),isPresent:t,safeToRemove:n})}const q3={borderRadius:{...lu,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:lu,borderTopRightRadius:lu,borderBottomLeftRadius:lu,borderBottomRightRadius:lu,boxShadow:Z3};function X3(e,t,n){const r=un(e)?e:mc(e);return r.start(g_("",r,t,n)),r.animation}function Y3(e){return e instanceof SVGElement&&e.tagName!=="svg"}const Q3=(e,t)=>e.depth-t.depth;class J3{constructor(){this.children=[],this.isDirty=!1}add(t){a_(this.children,t),this.isDirty=!0}remove(t){s_(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Q3),this.isDirty=!1,this.children.forEach(t)}}function e4(e,t){const n=ni.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Co(r),e(o-t))};return it.read(r,!0),()=>Co(r)}const fM=["TopLeft","TopRight","BottomLeft","BottomRight"],t4=fM.length,cS=e=>typeof e=="string"?parseFloat(e):e,fS=e=>typeof e=="number"||ge.test(e);function n4(e,t,n,r,i,o){i?(e.opacity=ht(0,n.opacity!==void 0?n.opacity:1,r4(r)),e.opacityExit=ht(t.opacity!==void 0?t.opacity:1,0,i4(r))):o&&(e.opacity=ht(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;s<t4;s++){const l=`border${fM[s]}Radius`;let u=hS(t,l),f=hS(n,l);if(u===void 0&&f===void 0)continue;u||(u=0),f||(f=0),u===0||f===0||fS(u)===fS(f)?(e[l]=Math.max(ht(cS(u),cS(f),r),0),(ti.test(f)||ti.test(u))&&(e[l]+="%")):e[l]=f}(t.rotate||n.rotate)&&(e.rotate=ht(t.rotate||0,n.rotate||0,r))}function hS(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const r4=hM(0,.5,Mk),i4=hM(.5,.95,Gn);function hM(e,t,n){return r=>r<e?0:r>t?1:n(Zs(e,t,r))}function dS(e,t){e.min=t.min,e.max=t.max}function ir(e,t){dS(e.x,t.x),dS(e.y,t.y)}function pS(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function mS(e,t,n,r,i){return e-=t,e=Sd(e,1/n,r),i!==void 0&&(e=Sd(e,1/i,r)),e}function o4(e,t=0,n=1,r=.5,i,o=e,s=e){if(ti.test(t)&&(t=parseFloat(t),t=ht(s.min,s.max,t/100)-s.min),typeof t!="number")return;let l=ht(o.min,o.max,r);e===o&&(l-=t),e.min=mS(e.min,t,n,l,i),e.max=mS(e.max,t,n,l,i)}function vS(e,t,[n,r,i],o,s){o4(e,t[n],t[r],t[i],t.scale,o,s)}const a4=["x","scaleX","originX"],s4=["y","scaleY","originY"];function gS(e,t,n,r){vS(e.x,t,a4,n?n.x:void 0,r?r.x:void 0),vS(e.y,t,s4,n?n.y:void 0,r?r.y:void 0)}function yS(e){return e.translate===0&&e.scale===1}function dM(e){return yS(e.x)&&yS(e.y)}function xS(e,t){return e.min===t.min&&e.max===t.max}function l4(e,t){return xS(e.x,t.x)&&xS(e.y,t.y)}function _S(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function pM(e,t){return _S(e.x,t.x)&&_S(e.y,t.y)}function bS(e){return Kn(e.x)/Kn(e.y)}function wS(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class u4{constructor(){this.members=[]}add(t){a_(this.members,t),t.scheduleRender()}remove(t){if(s_(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 c4(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:w}=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) `),w&&(r+=`skewY(${w}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 sa={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Au=typeof window<"u"&&window.MotionDebug!==void 0,Pv=["","X","Y","Z"],f4={visibility:"hidden"},SS=1e3;let h4=0;function Ov(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function mM(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Sk(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",it,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&mM(r)}function vM({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},l=t==null?void 0:t()){this.id=h4++,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,Au&&(sa.totalNodes=sa.resolvedTargetDeltas=sa.recalculatedProjection=0),this.nodes.forEach(m4),this.nodes.forEach(_4),this.nodes.forEach(b4),this.nodes.forEach(v4),Au&&window.MotionDebug.record(sa)},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 J3)}addEventListener(s,l){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new l_),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=Y3(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=e4(m,250),Gh.hasAnimatedSinceResize&&(Gh.hasAnimatedSinceResize=!1,this.nodes.forEach(OS))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&d&&(u||f)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:m,hasRelativeTargetChanged:v,layout:w})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||d.getDefaultTransition()||T4,{onLayoutAnimationStart:P,onLayoutAnimationComplete:_}=d.getProps(),x=!this.targetLayout||!pM(this.targetLayout,w)||v,S=!m&&v;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||S||m&&(x||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,S);const E={...n_(b,"layout"),onPlay:P,onComplete:_};(d.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=!1),this.startAnimation(E)}else m||OS(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=w})}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,Co(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(w4),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&&mM(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(PS);return}this.isUpdating||this.nodes.forEach(y4),this.isUpdating=!1,this.nodes.forEach(x4),this.nodes.forEach(d4),this.nodes.forEach(p4),this.clearAllSnapshots();const l=ni.now();Zt.delta=Ri(0,1e3/60,l-Zt.timestamp),Zt.timestamp=l,Zt.isProcessing=!0,mv.update.process(Zt),mv.preRender.process(Zt),mv.render.process(Zt),Zt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Gx.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(g4),this.sharedNodes.forEach(S4)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,it.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){it.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=bt(),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&&!dM(this.projectionDelta),u=this.getTransformTemplate(),f=u?u(this.latestValues,""):void 0,d=f!==this.prevTransformTemplateValue;s&&(l||aa(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)),A4(u),{animationId:this.root.animationId,measuredBox:l,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var s;const{visualElement:l}=this.options;if(!l)return bt();const u=l.measureViewportBox();if(!(((s=this.scroll)===null||s===void 0?void 0:s.wasRoot)||this.path.some(E4))){const{scroll:d}=this.root;d&&(Os(u.x,d.offset.x),Os(u.y,d.offset.y))}return u}removeElementScroll(s){var l;const u=bt();if(ir(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&&ir(u,s),Os(u.x,h.offset.x),Os(u.y,h.offset.y))}return u}applyTransform(s,l=!1){const u=bt();ir(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&&Ts(u,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),aa(d.latestValues)&&Ts(u,d.latestValues)}return aa(this.latestValues)&&Ts(u,this.latestValues),u}removeTransform(s){const l=bt();ir(l,s);for(let u=0;u<this.path.length;u++){const f=this.path[u];if(!f.instance||!aa(f.latestValues))continue;dy(f.latestValues)&&f.updateSnapshot();const d=bt(),h=f.measurePageBox();ir(d,h),gS(l,f.latestValues,f.snapshot?f.snapshot.layoutBox:void 0,d)}return aa(this.latestValues)&&gS(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!==Zt.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=Zt.timestamp,!this.targetDelta&&!this.relativeTarget){const v=this.getClosestProjectingParent();v&&v.layout&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=bt(),this.relativeTargetOrigin=bt(),Vu(this.relativeTargetOrigin,this.layout.layoutBox,v.layout.layoutBox),ir(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=bt(),this.targetWithTransforms=bt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),C3(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ir(this.target,this.layout.layoutBox),sM(this.target,this.targetDelta)):ir(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=bt(),this.relativeTargetOrigin=bt(),Vu(this.relativeTargetOrigin,this.target,v.target),ir(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Au&&sa.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||dy(this.parent.latestValues)||aM(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===Zt.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;ir(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,v=this.treeScale.y;B3(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=bt());const{target:w}=l;if(!w){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(pS(this.prevProjectionDelta.x,this.projectionDelta.x),pS(this.prevProjectionDelta.y,this.projectionDelta.y)),Fu(this.projectionDelta,this.layoutCorrected,w,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==v||!wS(this.projectionDelta.x,this.prevProjectionDelta.x)||!wS(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",w)),Au&&sa.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=Ps(),this.projectionDelta=Ps(),this.projectionDeltaWithTransform=Ps()}setAnimationOrigin(s,l=!1){const u=this.snapshot,f=u?u.latestValues:{},d={...this.latestValues},h=Ps();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const m=bt(),v=u?u.source:void 0,w=this.layout?this.layout.source:void 0,b=v!==w,P=this.getStack(),_=!P||P.members.length<=1,x=!!(b&&!_&&this.options.crossfade===!0&&!this.path.some(O4));this.animationProgress=0;let S;this.mixTargetDelta=E=>{const O=E/1e3;TS(h.x,s.x,O),TS(h.y,s.y,O),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Vu(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox),P4(this.relativeTarget,this.relativeTargetOrigin,m,O),S&&l4(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=bt()),ir(S,this.relativeTarget)),b&&(this.animationValues=d,n4(d,f,this.latestValues,O,x,_)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=O},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&&(Co(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=it.update(()=>{Gh.hasAnimatedSinceResize=!0,this.currentAnimation=X3(0,SS,{...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(SS),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&&gM(this.options.animationType,this.layout.layoutBox,f.layoutBox)){u=this.target||bt();const h=Kn(this.layout.layoutBox.x);u.x.min=s.target.x.min,u.x.max=u.x.min+h;const m=Kn(this.layout.layoutBox.y);u.y.min=s.target.y.min,u.y.max=u.y.min+m}ir(l,u),Ts(l,d),Fu(this.projectionDeltaWithTransform,this.layoutCorrected,l,d)}}registerSharedNode(s,l){this.sharedNodes.has(s)||this.sharedNodes.set(s,new u4),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&&Ov("z",s,f,this.animationValues);for(let d=0;d<Pv.length;d++)Ov(`rotate${Pv[d]}`,s,f,this.animationValues),Ov(`skew${Pv[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 f4;const f={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,f.opacity="",f.pointerEvents=Wh(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 b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=Wh(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!aa(this.latestValues)&&(b.transform=d?d({},""):"none",this.hasProjected=!1),b}const m=h.animationValues||h.latestValues;this.applyTransformsToTarget(),f.transform=c4(this.projectionDeltaWithTransform,this.treeScale,m),d&&(f.transform=d(m,f.transform));const{x:v,y:w}=this.projectionDelta;f.transformOrigin=`${v.origin*100}% ${w.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 b in yd){if(m[b]===void 0)continue;const{correct:P,applyTo:_}=yd[b],x=f.transform==="none"?m[b]:P(m[b],h);if(_){const S=_.length;for(let E=0;E<S;E++)f[_[E]]=x}else f[b]=x}return this.options.layoutId&&(f.pointerEvents=h===this?Wh(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(PS),this.root.sharedNodes.clear()}}}function d4(e){e.updateLayout()}function p4(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"?lr(h=>{const m=s?n.measuredBox[h]:n.layoutBox[h],v=Kn(m);m.min=r[h].min,m.max=m.min+v}):gM(o,n.layoutBox,r)&&lr(h=>{const m=s?n.measuredBox[h]:n.layoutBox[h],v=Kn(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=Ps();Fu(l,r,n.layoutBox);const u=Ps();s?Fu(u,e.applyTransform(i,!0),n.measuredBox):Fu(u,r,n.layoutBox);const f=!dM(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 w=bt();Vu(w,n.layoutBox,m.layoutBox);const b=bt();Vu(b,r,v.layoutBox),pM(w,b)||(d=!0),h.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=w,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 m4(e){Au&&sa.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 v4(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function g4(e){e.clearSnapshot()}function PS(e){e.clearMeasurements()}function y4(e){e.isLayoutDirty=!1}function x4(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function OS(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function _4(e){e.resolveTargetDelta()}function b4(e){e.calcProjection()}function w4(e){e.resetSkewAndRotation()}function S4(e){e.removeLeadSnapshot()}function TS(e,t,n){e.translate=ht(t.translate,0,n),e.scale=ht(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function AS(e,t,n,r){e.min=ht(t.min,n.min,r),e.max=ht(t.max,n.max,r)}function P4(e,t,n,r){AS(e.x,t.x,n.x,r),AS(e.y,t.y,n.y,r)}function O4(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const T4={duration:.45,ease:[.4,0,.1,1]},ES=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),kS=ES("applewebkit/")&&!ES("chrome/")?Math.round:Gn;function MS(e){e.min=kS(e.min),e.max=kS(e.max)}function A4(e){MS(e.x),MS(e.y)}function gM(e,t,n){return e==="position"||e==="preserve-aspect"&&!M3(bS(t),bS(n),.2)}function E4(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const k4=vM({attachResizeListener:(e,t)=>gc(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Tv={current:void 0},yM=vM({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Tv.current){const e=new k4({});e.mount(window),e.setOptions({layoutScroll:!0}),Tv.current=e}return Tv.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),M4={pan:{Feature:G3},drag:{Feature:H3,ProjectionNode:yM,MeasureLayout:cM}};function CS(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&&it.postRender(()=>o(t,uf(t)))}class C4 extends Io{mount(){const{current:t}=this.node;t&&(this.unmount=M5(t,n=>(CS(this.node,n,"Start"),r=>CS(this.node,r,"End"))))}unmount(){}}class j4 extends Io{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=lf(gc(this.node.current,"focus",()=>this.onFocus()),gc(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function jS(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&&it.postRender(()=>o(t,uf(t)))}class N4 extends Io{mount(){const{current:t}=this.node;t&&(this.unmount=$5(t,n=>(jS(this.node,n,"Start"),(r,{success:i})=>jS(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const my=new WeakMap,Av=new WeakMap,$4=e=>{const t=my.get(e.target);t&&t(e)},L4=e=>{e.forEach($4)};function I4({root:e,...t}){const n=e||document;Av.has(n)||Av.set(n,{});const r=Av.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(L4,{root:e,...t})),r[i]}function D4(e,t,n){const r=I4(t);return my.set(e,n),r.observe(e),()=>{my.delete(e),r.unobserve(e)}}const R4={some:0,all:1};class z4 extends Io{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:R4[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 D4(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(B4(t,n))&&this.startObserver()}unmount(){}}function B4({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const F4={inView:{Feature:z4},tap:{Feature:N4},focus:{Feature:j4},hover:{Feature:C4}},V4={layout:{ProjectionNode:yM,MeasureLayout:cM}},vy={current:null},xM={current:!1};function U4(){if(xM.current=!0,!!Fx)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>vy.current=e.matches;e.addListener(t),t()}else vy.current=!1}const W4=[...Wk,rn,jo],H4=e=>W4.find(Uk(e)),NS=new WeakMap;function G4(e,t,n){for(const r in t){const i=t[r],o=n[r];if(un(i))e.addValue(r,i);else if(un(o))e.addValue(r,mc(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,mc(s!==void 0?s:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const $S=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Z4{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=p_,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=ni.now();this.renderScheduledAt<v&&(this.renderScheduledAt=v,it.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=Wp(n),this.isVariantNode=QE(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 w=m[v];u[v]!==void 0&&un(w)&&w.set(u[v],!1)}}mount(t){this.current=t,NS.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)),xM.current||U4(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:vy.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){NS.delete(this.current),this.projection&&this.projection.unmount(),Co(this.notifyUpdate),Co(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=za.has(t),i=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&it.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 Ks){const n=Ks[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):bt()}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<$S.length;r++){const i=$S[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=G4(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=mc(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"&&(Fk(i)||jk(i))?i=parseFloat(i):!H4(i)&&jo.test(n)&&(i=Rk(t,n)),this.setBaseTarget(t,un(i)?i.get():i)),un(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=Kx(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&&!un(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 l_),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class _M extends Z4{constructor(){super(...arguments),this.KeyframeResolver=Hk}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;un(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function K4(e){return window.getComputedStyle(e)}class q4 extends _M{constructor(){super(...arguments),this.type="html",this.renderInstance=sk}readValueFromInstance(t,n){if(za.has(n)){const r=d_(n);return r&&r.default||0}else{const r=K4(t),i=(ik(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return lM(t,n)}build(t,n,r){Yx(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return t_(t,n,r)}}class X4 extends _M{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=bt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(za.has(n)){const r=d_(n);return r&&r.default||0}return n=lk.has(n)?n:Hx(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return fk(t,n,r)}build(t,n,r){Qx(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){uk(t,n,r,i)}mount(t){this.isSVGTag=e_(t.tagName),super.mount(t)}}const Y4=(e,t)=>Zx(e)?new X4(t):new q4(t,{allowProjection:e!==j.Fragment}),Q4=S5({...b3,...F4,...M4,...V4},Y4),J4=RD(Q4);/**
|
|
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 ez={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 tz=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,...ez,width:i,height:i,stroke:r,strokeWidth:s?Number(o)*24/Number(i):o,className:["lucide",`lucide-${tz(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 nz=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 rz=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 iz=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 oz=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 az=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 sz=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 bM=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 lz=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 uz=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 cz=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 fz=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 LS=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 hz=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 dz=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 pz=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 mz=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 vz=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 gz=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 yz=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 xz=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 wM=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 SM=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 Ev=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 _z=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 PM=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 bz=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 wz=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 Sz=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 Pz=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 Oz=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 Tz=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 IS=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 Az=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 y_=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 OM=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 TM=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 Ez=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 kz=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 Mz=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 kv=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 Cz=Oe("Zap",[["polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2",key:"45s27k"}]]),jz=()=>{const e=window.location.hostname;return e==="localhost"||e==="127.0.0.1"||e.startsWith("192.168.")?"192.168.111.240":e},AM=jz(),DS=`http://${AM}:1880`,dh=`https://${AM}:1881`,RS=typeof window<"u"&&window.location.protocol==="https:",Nz=()=>{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=j.useRef(RS?dh:DS),v=j.useRef(!1),w=async x=>{const S=new AbortController,E=setTimeout(()=>S.abort(),3500);try{const O=await fetch(`${x}/api/boat`,{signal:S.signal});if(clearTimeout(E),!O.ok)throw new Error(`Errore Server: ${O.status}`);return await O.json()}catch(O){throw clearTimeout(E),O}},b=j.useCallback(async()=>{if(!v.current){v.current=!0;try{let x;try{x=await w(m.current)}catch(S){if(!RS&&m.current===DS)console.warn("HTTP 1880 non raggiungibile, fallback su HTTPS 1881..."),x=await w(dh),m.current=dh;else throw S}t(x),r(new Date),l(!1),f(null),h(!1)}catch(x){x.name!=="AbortError"&&(console.error("Fetch Error:",x),f(x.message)),l(!0),h(!1)}finally{v.current=!1}}},[]),P=async(x,S)=>{h(!0);try{if(!(await fetch(`${m.current}/api/boat/control`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({device:x,state:S})})).ok)throw new Error("Comando fallito");setTimeout(b,1e3)}catch(E){console.error("Errore invio comando:",E),h(!1)}};j.useEffect(()=>{let x=null;const S=()=>{x&&(clearInterval(x),x=null),document.hidden||(b(),x=setInterval(b,5e3))};return S(),document.addEventListener("visibilitychange",S),window.addEventListener("pageshow",S),window.addEventListener("focus",S),window.addEventListener("online",S),()=>{x&&clearInterval(x),document.removeEventListener("visibilitychange",S),window.removeEventListener("pageshow",S),window.removeEventListener("focus",S),window.removeEventListener("online",S)}},[]),j.useEffect(()=>{const x=setInterval(()=>{if(!document.hidden)if(n){const S=Math.floor((new Date-n)/1e3);o(S),l(S>30),S>=8&&!d&&!v.current&&b()}else v.current||b()},1e3);return()=>clearInterval(x)},[n,d,b]);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:dh,toggleSwitch:(x,S)=>P(x,S),setShoreLimit:x=>P("shore_limit",x)}};function $z(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 Lz(e,t,n){t.center!==n.center&&e.setLatLng(t.center),t.radius!=null&&t.radius!==n.radius&&e.setRadius(t.radius)}const Iz=1;function Dz(e){return Object.freeze({__version:Iz,map:e})}function Zp(e,t){return Object.freeze({...e,...t})}const EM=j.createContext(null),kM=EM.Provider;function x_(){const e=j.useContext(EM);if(e==null)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return e}function MM(e){function t(n,r){const{instance:i,context:o}=e(n).current;return j.useImperativeHandle(r,()=>i),n.children==null?null:I.createElement(kM,{value:o},n.children)}return j.forwardRef(t)}function Rz(e){function t(n,r){const{instance:i}=e(n).current;return j.useImperativeHandle(r,()=>i),null}return j.forwardRef(t)}function CM(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 __(e,t){const n=e.pane??t.pane;return n?{...e,pane:n}:e}var gy={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)})(_u,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,$;return $=function(){g=!1,T&&(k.apply(p,T),T=!1)},k=function(){g?T=arguments:(a.apply(p,arguments),setTimeout($,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 w(a){return v(a).split(/\s+/)}function b(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 P(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 _=/\{ *([\w_ -]+) *\}/g;function x(a,c){return a.replace(_,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 S=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 O="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,z=window.cancelAnimationFrame||A("CancelAnimationFrame")||A("CancelRequestAnimationFrame")||function(a){window.clearTimeout(a)};function B(a,c,p){if(p&&N===C)a.call(c);else return N.call(window,s(a,c))}function R(a){a&&z.call(window,a)}var Y={__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:w,setOptions:b,getParamString:P,template:x,isArray:S,indexOf:E,emptyImageUrl:O,requestFn:N,cancelFn:z,requestAnimFrame:B,cancelAnimFrame:R};function H(){}H.extend=function(a){var c=function(){b(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&&(Z(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,$=g._initHooks.length;k<$;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 Z(a){if(!(typeof L>"u"||!L||!L.Mixin)){a=S(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 K={on:function(a,c,p){if(typeof a=="object")for(var g in a)this._on(g,a[g],c);else{a=w(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=w(a);for(var T=arguments.length===1,k=0,$=a.length;k<$;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 $=this._listens(a,c,p);if($!==!1){var F=g[$];this._firingCount&&(F.fn=h,this._events[a]=g=g.slice()),g.splice($,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,$=T.length;k<$;k++){var F=T[k],W=F.fn;F.once&&this.off(a,W,F.ctx),W.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 $ in this._eventParents)if(this._eventParents[$].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=w(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)}};K.addEventListener=K.on,K.removeEventListener=K.clearAllEventListeners=K.off,K.addOneTimeEventListener=K.once,K.fireEvent=K.fire,K.hasEventListeners=K.listens;var q=H.extend(K);function D(a,c,p){this.x=p?Math.round(a):a,this.y=p?Math.round(c):c}var U=Math.trunc||function(a){return a>0?Math.floor(a):Math.ceil(a)};D.prototype={clone:function(){return new D(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 D(this.x*a.x,this.y*a.y)},unscaleBy:function(a){return new D(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=U(this.x),this.y=U(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 D?a:S(a)?new D(a[0],a[1]):a==null?a:typeof a=="object"&&"x"in a&&"y"in a?new D(a.x,a.y):new D(a,c,p)}function ee(a,c){if(a)for(var p=c?[a,c]:a,g=0,T=p.length;g<T;g++)this.extend(p[g])}ee.prototype={extend:function(a){var c,p;if(!a)return this;if(a instanceof D||typeof a[0]=="number"||"x"in a)c=p=V(a);else if(a=te(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 D?a=V(a):a=te(a),a instanceof ee?(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=te(a);var c=this.min,p=this.max,g=a.min,T=a.max,k=T.x>=c.x&&g.x<=p.x,$=T.y>=c.y&&g.y<=p.y;return k&&$},overlaps:function(a){a=te(a);var c=this.min,p=this.max,g=a.min,T=a.max,k=T.x>c.x&&g.x<p.x,$=T.y>c.y&&g.y<p.y;return k&&$},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 te(V(c.x-g,c.y-T),V(p.x+g,p.y+T))},equals:function(a){return a?(a=te(a),this.min.equals(a.getTopLeft())&&this.max.equals(a.getBottomRight())):!1}};function te(a,c){return!a||a instanceof ee?a:new ee(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 de)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(Q(a)||pe(a)):this;return!c&&!p?(this._southWest=new de(g.lat,g.lng),this._northEast=new de(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 de(c.lat-g,c.lng-T),new de(p.lat+g,p.lng+T))},getCenter:function(){return new de((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 de(this.getNorth(),this.getWest())},getSouthEast:function(){return new de(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 de||"lat"in a?a=Q(a):a=pe(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=pe(a);var c=this._southWest,p=this._northEast,g=a.getSouthWest(),T=a.getNorthEast(),k=T.lat>=c.lat&&g.lat<=p.lat,$=T.lng>=c.lng&&g.lng<=p.lng;return k&&$},overlaps:function(a){a=pe(a);var c=this._southWest,p=this._northEast,g=a.getSouthWest(),T=a.getNorthEast(),k=T.lat>c.lat&&g.lat<p.lat,$=T.lng>c.lng&&g.lng<p.lng;return k&&$},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(a,c){return a?(a=pe(a),this._southWest.equals(a.getSouthWest(),c)&&this._northEast.equals(a.getNorthEast(),c)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function pe(a,c){return a instanceof ae?a:new ae(a,c)}function de(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)}de.prototype={equals:function(a,c){if(!a)return!1;a=Q(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 Re.distance(this,Q(a))},wrap:function(){return Re.wrapLatLng(this)},toBounds:function(a){var c=180*a/40075017,p=c/Math.cos(Math.PI/180*this.lat);return pe([this.lat-c,this.lng-p],[this.lat+c,this.lng+p])},clone:function(){return new de(this.lat,this.lng,this.alt)}};function Q(a,c,p){return a instanceof de?a:S(a)&&typeof a[0]!="object"?a.length===3?new de(a[0],a[1],a[2]):a.length===2?new de(a[0],a[1]):null:a==null?a:typeof a=="object"&&"lat"in a?new de(a.lat,"lng"in a?a.lng:a.lon,a.alt):c===void 0?null:new de(a,c,p)}var qe={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 ee(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 de(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(),$=a.getNorthEast(),F=new de(k.lat-g,k.lng-T),W=new de($.lat-g,$.lng-T);return new ae(F,W)}},Re=i({},qe,{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),$=Math.sin((c.lng-a.lng)*p/2),F=k*k+Math.cos(g)*Math.cos(T)*$*$,W=2*Math.atan2(Math.sqrt(F),Math.sqrt(1-F));return this.R*W}}),se=6378137,me={R:se,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 D(this.R*a.lng*c,this.R*Math.log((1+T)/(1-T))/2)},unproject:function(a){var c=180/Math.PI;return new de((2*Math.atan(Math.exp(a.y/this.R))-Math.PI/2)*c,a.x*c/this.R)},bounds:function(){var a=se*Math.PI;return new ee([-a,-a],[a,a])}()};function ye(a,c,p,g){if(S(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 D((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 $e=i({},Re,{code:"EPSG:3857",projection:me,transformation:function(){var a=.5/(Math.PI*me.R);return J(a,.5,-a,.5)}()}),Se=i({},$e,{code:"EPSG:900913"});function We(a){return document.createElementNS("http://www.w3.org/2000/svg",a)}function He(a,c){var p="",g,T,k,$,F,W;for(g=0,k=a.length;g<k;g++){for(F=a[g],T=0,$=F.length;T<$;T++)W=F[T],p+=(T?"L":"M")+W.x+" "+W.y;p+=c?ue.svg?"z":"x":""}return p||"M0 0"}var ot=document.documentElement.style,Et="ActiveXObject"in window,Pn=Et&&!document.addEventListener,Dn="msLaunchUri"in navigator&&!("documentMode"in document),Vt=Jt("webkit"),Yt=Jt("android"),Qn=Jt("android 2")||Jt("android 3"),zr=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),Br=Yt&&Jt("Google")&&zr<537&&!("AudioNode"in window),li=!!window.opera,Zi=!Dn&&Jt("chrome"),Ki=Jt("gecko")&&!Vt&&!li&&!Et,Uo=!Zi&&Jt("safari"),qi=Jt("phantom"),Xi="OTransition"in ot,Wo=navigator.platform.indexOf("Win")===0,Yi=Et&&"transition"in ot,ui="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!Qn,G="MozPerspective"in ot,be=!window.L_DISABLE_3D&&(Yi||ui||G)&&!Xi&&!qi,he=typeof orientation<"u"||Jt("mobile"),ze=he&&Vt,ut=he&&ui,Ge=!window.PointerEvent&&window.MSPointerEvent,vt=!!(window.PointerEvent||Ge),hn="ontouchstart"in window||!!window.TouchEvent,On=!window.L_NO_TOUCH&&(hn||vt),Jn=he&&li,Qt=he&&Ki,Tn=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,kt=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}(),dn=function(){return!!document.createElement("canvas").getContext}(),Ut=!!(document.createElementNS&&We("svg").createSVGRect),br=!!Ut&&function(){var a=document.createElement("div");return a.innerHTML="<svg/>",(a.firstChild&&a.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),Ho=!Ut&&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}}(),Go=navigator.platform.indexOf("Mac")===0,Zo=navigator.platform.indexOf("Linux")===0;function Jt(a){return navigator.userAgent.toLowerCase().indexOf(a)>=0}var ue={ie:Et,ielt9:Pn,edge:Dn,webkit:Vt,android:Yt,android23:Qn,androidStock:Br,opera:li,chrome:Zi,gecko:Ki,safari:Uo,phantom:qi,opera12:Xi,win:Wo,ie3d:Yi,webkit3d:ui,gecko3d:G,any3d:be,mobile:he,mobileWebkit:ze,mobileWebkit3d:ut,msPointer:Ge,pointer:vt,touch:On,touchNative:hn,mobileOpera:Jn,mobileGecko:Qt,retina:Tn,passiveEvents:kt,canvas:dn,svg:Ut,vml:Ho,inlineSvg:br,mac:Go,linux:Zo},wr=ue.msPointer?"MSPointerDown":"pointerdown",Rn=ue.msPointer?"MSPointerMove":"pointermove",Fr=ue.msPointer?"MSPointerUp":"pointerup",Vr=ue.msPointer?"MSPointerCancel":"pointercancel",er={touchstart:wr,touchmove:Rn,touchend:Fr,touchcancel:Vr},Ko={touchstart:Sf,touchmove:qo,touchend:qo,touchcancel:qo},ci={},zl=!1;function yf(a,c,p){return c==="touchstart"&&wf(),Ko[c]?(p=Ko[c].bind(this,p),a.addEventListener(er[c],p,!1),p):(console.warn("wrong event specified:",c),h)}function xf(a,c,p){if(!er[c]){console.warn("wrong event specified:",c);return}a.removeEventListener(er[c],p,!1)}function _f(a){ci[a.pointerId]=a}function bf(a){ci[a.pointerId]&&(ci[a.pointerId]=a)}function Bl(a){delete ci[a.pointerId]}function wf(){zl||(document.addEventListener(wr,_f,!0),document.addEventListener(Rn,bf,!0),document.addEventListener(Fr,Bl,!0),document.addEventListener(Vr,Bl,!0),zl=!0)}function qo(a,c){if(c.pointerType!==(c.MSPOINTER_TYPE_MOUSE||"mouse")){c.touches=[];for(var p in ci)c.touches.push(ci[p]);c.changedTouches=[c],a(c)}}function Sf(a,c){c.MSPOINTER_TYPE_TOUCH&&c.pointerType===c.MSPOINTER_TYPE_TOUCH&&St(c),qo(a,c)}function Pf(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 Of=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 $=Wl(k);if(!($.some(function(W){return W instanceof HTMLLabelElement&&W.attributes.for})&&!$.some(function(W){return W instanceof HTMLInputElement||W instanceof HTMLSelectElement}))){var F=Date.now();F-p<=Of?(g++,g===2&&c(Pf(k))):g=1,p=F}}}return a.addEventListener("click",T),{dblclick:c,simDblclick:T}}function Af(a,c){a.removeEventListener("dblclick",c.dblclick),a.removeEventListener("click",c.simDblclick)}var Ga=Qo(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Qi=Qo(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Fl=Qi==="webkitTransition"||Qi==="OTransition"?Qi+"End":"transitionend";function Vl(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 je(a,c,p){var g=document.createElement(a);return g.className=c||"",p&&p.appendChild(g),g}function Ye(a){var c=a.parentNode;c&&c.removeChild(a)}function Xo(a){for(;a.firstChild;)a.removeChild(a.firstChild)}function fi(a){var c=a.parentNode;c&&c.lastChild!==a&&c.appendChild(a)}function hi(a){var c=a.parentNode;c&&c.firstChild!==a&&c.insertBefore(a,c.firstChild)}function Za(a,c){if(a.classList!==void 0)return a.classList.contains(c);var p=Yo(a);return p.length>0&&new RegExp("(^|\\s)"+c+"(\\s|$)").test(p)}function we(a,c){if(a.classList!==void 0)for(var p=w(c),g=0,T=p.length;g<T;g++)a.classList.add(p[g]);else if(!Za(a,c)){var k=Yo(a);Ka(a,(k?k+" ":"")+c)}}function at(a,c){a.classList!==void 0?a.classList.remove(c):Ka(a,v((" "+Yo(a)+" ").replace(" "+c+" "," ")))}function Ka(a,c){a.className.baseVal===void 0?a.className=c:a.className.baseVal=c}function Yo(a){return a.correspondingElement&&(a=a.correspondingElement),a.className.baseVal===void 0?a.className:a.className.baseVal}function pn(a,c){"opacity"in a.style?a.style.opacity=c:"filter"in a.style&&Ef(a,c)}function Ef(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 Qo(a){for(var c=document.documentElement.style,p=0;p<a.length;p++)if(a[p]in c)return a[p];return!1}function Ur(a,c,p){var g=c||new D(0,0);a.style[Ga]=(ue.ie3d?"translate("+g.x+"px,"+g.y+"px)":"translate3d("+g.x+"px,"+g.y+"px,0)")+(p?" scale("+p+")":"")}function re(a,c){a._leaflet_pos=c,ue.any3d?Ur(a,c):(a.style.left=c.x+"px",a.style.top=c.y+"px")}function Fe(a){return a._leaflet_pos||new D(0,0)}var gt,mn,ct;if("onselectstart"in document)gt=function(){_e(window,"selectstart",St)},mn=function(){Ne(window,"selectstart",St)};else{var Te=Qo(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);gt=function(){if(Te){var a=document.documentElement.style;ct=a[Te],a[Te]="none"}},mn=function(){Te&&(document.documentElement.style[Te]=ct,ct=void 0)}}function It(){_e(window,"dragstart",St)}function vn(){Ne(window,"dragstart",St)}var Sr,en;function di(a){for(;a.tabIndex===-1;)a=a.parentNode;a.style&&(gn(),Sr=a,en=a.style.outlineStyle,a.style.outlineStyle="none",_e(window,"keydown",gn))}function gn(){Sr&&(Sr.style.outlineStyle=en,Sr=void 0,en=void 0,Ne(window,"keydown",gn))}function An(a){do a=a.parentNode;while((!a.offsetWidth||!a.offsetHeight)&&a!==document.body);return a}function tr(a){var c=a.getBoundingClientRect();return{x:c.width/a.offsetWidth||1,y:c.height/a.offsetHeight||1,boundingClientRect:c}}var Jo={__proto__:null,TRANSFORM:Ga,TRANSITION:Qi,TRANSITION_END:Fl,get:Vl,getStyle:Ji,create:je,remove:Ye,empty:Xo,toFront:fi,toBack:hi,hasClass:Za,addClass:we,removeClass:at,setClass:Ka,getClass:Yo,setOpacity:pn,testProp:Qo,setTransform:Ur,setPosition:re,getPosition:Fe,get disableTextSelection(){return gt},get enableTextSelection(){return mn},disableImageDrag:It,enableImageDrag:vn,preventOutline:di,restoreOutline:gn,getSizedParentNode:An,getScale:tr};function _e(a,c,p,g){if(c&&typeof c=="object")for(var T in c)kf(a,T,c[T],p);else{c=w(c);for(var k=0,$=c.length;k<$;k++)kf(a,c[k],p,g)}return this}var Wt="_leaflet_events";function Ne(a,c,p,g){if(arguments.length===1)ea(a),delete a[Wt];else if(c&&typeof c=="object")for(var T in c)qa(a,T,c[T],p);else if(c=w(c),arguments.length===2)ea(a,function(F){return E(c,F)!==-1});else for(var k=0,$=c.length;k<$;k++)qa(a,c[k],p,g);return this}function ea(a,c){for(var p in a[Wt]){var g=p.split(/\d/)[0];(!c||c(g))&&qa(a,g,null,null,p)}}var Ul={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function kf(a,c,p,g){var T=c+u(p)+(g?"_"+u(g):"");if(a[Wt]&&a[Wt][T])return this;var k=function(F){return p.call(g||a,F||window.event)},$=k;!ue.touchNative&&ue.pointer&&c.indexOf("touch")===0?k=yf(a,c,k):ue.touch&&c==="dblclick"?k=Tf(a,k):"addEventListener"in a?c==="touchstart"||c==="touchmove"||c==="wheel"||c==="mousewheel"?a.addEventListener(Ul[c]||c,k,ue.passiveEvents?{passive:!1}:!1):c==="mouseenter"||c==="mouseleave"?(k=function(F){F=F||window.event,Ya(a,F)&&$(F)},a.addEventListener(Ul[c],k,!1)):a.addEventListener(c,$,!1):a.attachEvent("on"+c,k),a[Wt]=a[Wt]||{},a[Wt][T]=k}function qa(a,c,p,g,T){T=T||c+u(p)+(g?"_"+u(g):"");var k=a[Wt]&&a[Wt][T];if(!k)return this;!ue.touchNative&&ue.pointer&&c.indexOf("touch")===0?xf(a,c,k):ue.touch&&c==="dblclick"?Af(a,k):"removeEventListener"in a?a.removeEventListener(Ul[c]||c,k,!1):a.detachEvent("on"+c,k),a[Wt][T]=null}function Wr(a){return a.stopPropagation?a.stopPropagation():a.originalEvent?a.originalEvent._stopped=!0:a.cancelBubble=!0,this}function Xa(a){return kf(a,"wheel",Wr),this}function eo(a){return _e(a,"mousedown touchstart dblclick contextmenu",Wr),a._leaflet_disable_click=!0,this}function St(a){return a.preventDefault?a.preventDefault():a.returnValue=!1,this}function Hr(a){return St(a),Wr(a),this}function Wl(a){if(a.composedPath)return a.composedPath();for(var c=[],p=a.target;p;)c.push(p),p=p.parentNode;return c}function Hl(a,c){if(!c)return new D(a.clientX,a.clientY);var p=tr(c),g=p.boundingClientRect;return new D((a.clientX-g.left)/p.x-c.clientLeft,(a.clientY-g.top)/p.y-c.clientTop)}var Mf=ue.linux&&ue.chrome?window.devicePixelRatio:ue.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function Gl(a){return ue.edge?a.wheelDeltaY/2:a.deltaY&&a.deltaMode===0?-a.deltaY/Mf: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 Ya(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 Cf={__proto__:null,on:_e,off:Ne,stopPropagation:Wr,disableScrollPropagation:Xa,disableClickPropagation:eo,preventDefault:St,stop:Hr,getPropagationPath:Wl,getMousePosition:Hl,getWheelDelta:Gl,isExternalTarget:Ya,addListener:_e,removeListener:Ne},Zl=q.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=Fe(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=B(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(),re(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)}}),Ee=q.extend({options:{crs:$e,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=b(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(Q(c.center),c.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=Qi&&ue.any3d&&!ue.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),_e(this._proxy,Fl,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(Q(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||(ue.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+a,c)},zoomOut:function(a,c){return a=a||(ue.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 D?a:this.latLngToContainerPoint(a),$=k.subtract(T).multiplyBy(1-1/g),F=this.containerPointToLatLng(T.add($));return this.setView(F,c,{zoom:p})},_getBoundsCenterZoom:function(a,c){c=c||{},a=a.getBounds?a.getBounds():pe(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),$=this.project(a.getSouthWest(),T),F=this.project(a.getNorthEast(),T),W=this.unproject($.add(F).divideBy(2).add(k),T);return{center:W,zoom:T}},fitBounds:function(a,c){if(a=pe(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 Zl,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),c.noMoveStart||this.fire("movestart"),c.animate!==!1){we(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||!ue.any3d)return this.setView(a,c,p);this._stop();var g=this.project(this.getCenter()),T=this.project(a),k=this.getSize(),$=this._zoom;a=Q(a),c=c===void 0?$:c;var F=Math.max(k.x,k.y),W=F*this.getZoomScale($,c),ne=T.distanceTo(g)||1,le=1.42,xe=le*le;function Ae(Pt){var Hf=Pt?-1:1,X$=Pt?W:F,Y$=W*W-F*F+Hf*xe*xe*ne*ne,Q$=2*X$*xe*ne,Vm=Y$/Q$,cb=Math.sqrt(Vm*Vm+1)-Vm,J$=cb<1e-9?-18:Math.log(cb);return J$}function yn(Pt){return(Math.exp(Pt)-Math.exp(-Pt))/2}function Dt(Pt){return(Math.exp(Pt)+Math.exp(-Pt))/2}function rr(Pt){return yn(Pt)/Dt(Pt)}var kn=Ae(0);function os(Pt){return F*(Dt(kn)/Dt(kn+le*Pt))}function G$(Pt){return F*(Dt(kn)*rr(kn+le*Pt)-yn(kn))/xe}function Z$(Pt){return 1-Math.pow(1-Pt,1.5)}var K$=Date.now(),lb=(Ae(1)-kn)/le,q$=p.duration?1e3*p.duration:1e3*lb*.8;function ub(){var Pt=(Date.now()-K$)/q$,Hf=Z$(Pt)*lb;Pt<=1?(this._flyToFrame=B(ub,this),this._move(this.unproject(g.add(T.subtract(g).multiplyBy(G$(Hf)/ne)),$),this.getScaleZoom(F/os(Hf),$),{flyTo:!0})):this._move(a,c)._moveEnd(!0)}return this._moveStart(!0,p.noMoveStart),ub.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=pe(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,pe(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),$=this.getPixelBounds(),F=te([$.min.add(p),$.max.subtract(g)]),W=F.getSize();if(!F.contains(k)){this._enforcingBounds=!0;var ne=k.subtract(F.getCenter()),le=F.extend(k).getSize().subtract(W);T.x+=ne.x<0?-le.x:le.x,T.y+=ne.y<0?-le.y:le.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 de(c,p),T=g.toBounds(a.coords.accuracy*2),k=this._locateOptions;if(k.setView){var $=this.getBoundsZoom(T);this.setView(g,k.maxZoom?Math.min($,k.maxZoom):$)}var F={latlng:g,bounds:T,timestamp:a.timestamp};for(var W in a.coords)typeof a.coords[W]=="number"&&(F[W]=a.coords[W]);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(),Ye(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)Ye(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=je("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=pe(a),p=V(p||[0,0]);var g=this.getZoom()||0,T=this.getMinZoom(),k=this.getMaxZoom(),$=a.getNorthWest(),F=a.getSouthEast(),W=this.getSize().subtract(p),ne=te(this.project(F,g),this.project($,g)).getSize(),le=ue.any3d?this.options.zoomSnap:1,xe=W.x/ne.x,Ae=W.y/ne.y,yn=c?Math.max(xe,Ae):Math.min(xe,Ae);return g=this.getScaleZoom(yn,g),le&&(g=Math.round(g/(le/100))*(le/100),g=c?Math.ceil(g/le)*le:Math.floor(g/le)*le),Math.max(T,Math.min(k,g))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new D(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 ee(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(Q(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(Q(a))._round();return c._subtract(this.getPixelOrigin())},wrapLatLng:function(a){return this.options.crs.wrapLatLng(Q(a))},wrapLatLngBounds:function(a){return this.options.crs.wrapLatLngBounds(pe(a))},distance:function(a,c){return this.options.crs.distance(Q(a),Q(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(Q(a)))},mouseEventToContainerPoint:function(a){return Hl(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=Vl(a);if(c){if(c._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");_e(c,"scroll",this._onScroll,this),this._containerId=u(c)},_initLayout:function(){var a=this._container;this._fadeAnimated=this.options.fadeAnimation&&ue.any3d,we(a,"leaflet-container"+(ue.touch?" leaflet-touch":"")+(ue.retina?" leaflet-retina":"")+(ue.ielt9?" leaflet-oldie":"")+(ue.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),re(this._mapPane,new D(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(we(a.markerPane,"leaflet-zoom-hide"),we(a.shadowPane,"leaflet-zoom-hide"))},_resetView:function(a,c,p){re(this._mapPane,new D(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){re(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?Ne:_e;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),ue.any3d&&this.options.transform3DLimit&&(a?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){R(this._resizeRequest),this._resizeRequest=B(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,$=!1;k;){if(g=this._targets[u(k)],g&&(c==="click"||c==="preclick")&&this._draggableMoved(g)){$=!0;break}if(g&&g.listens(c,!0)&&(T&&!Ya(k,a)||(p.push(g),T))||k===this._container)break;k=k.parentNode}return!p.length&&!$&&!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"&&di(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=[],$=0;$<p.length;$++)p[$].listens(c,!0)&&k.push(p[$]);T=k.concat(T)}if(T.length){c==="contextmenu"&&St(a);var F=T[0],W={originalEvent:a};if(a.type!=="keypress"&&a.type!=="keydown"&&a.type!=="keyup"){var ne=F.getLatLng&&(!F._radius||F._radius<=10);W.containerPoint=ne?this.latLngToContainerPoint(F.getLatLng()):this.mouseEventToContainerPoint(a),W.layerPoint=this.containerPointToLayerPoint(W.containerPoint),W.latlng=ne?F.getLatLng():this.layerPointToLatLng(W.layerPoint)}for($=0;$<T.length;$++)if(T[$].fire(c,W,!0),W.originalEvent._stopped||T[$].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 Fe(this._mapPane)||new D(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 te([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 ee(g.subtract(T),g.add(T)),$=this._getBoundsOffset(k,p,c);return Math.abs($.x)<=1&&Math.abs($.y)<=1?a:this.unproject(g.add($),c)},_limitOffset:function(a,c){if(!c)return a;var p=this.getPixelBounds(),g=new ee(p.min.add(a),p.max.add(a));return a.add(this._getBoundsOffset(g,c))},_getBoundsOffset:function(a,c,p){var g=te(this.project(c.getNorthEast(),p),this.project(c.getSouthWest(),p)),T=g.min.subtract(a.min),k=g.max.subtract(a.max),$=this._rebound(T.x,-k.x),F=this._rebound(T.y,-k.y);return new D($,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=ue.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(){at(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=je("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(a),this.on("zoomanim",function(c){var p=Ga,g=this._proxy.style[p];Ur(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(){Ye(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var a=this.getCenter(),c=this.getZoom();Ur(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:(B(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,we(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&&at(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 jf(a,c){return new Ee(a,c)}var En=H.extend({options:{position:"topright"},initialize:function(a){b(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 we(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?(Ye(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()}}),to=function(a){return new En(a)};Ee.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=je("div",c+"control-container",this._container);function g(T,k){var $=c+T+" "+c+k;a[T+k]=je("div",$,p)}g("top","left"),g("top","right"),g("bottom","left"),g("bottom","right")},_clearControlPos:function(){for(var a in this._controlCorners)Ye(this._controlCorners[a]);Ye(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Kl=En.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){b(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 En.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(){we(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?(we(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=a+"px"):at(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return at(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var a="leaflet-control-layers",c=this._container=je("div",a),p=this.options.collapsed;c.setAttribute("aria-haspopup",!0),eo(c),Xa(c);var g=this._section=je("section",a+"-list");p&&(this._map.on("click",this.collapse,this),_e(c,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var T=this._layersLink=je("a",a+"-toggle",c);T.href="#",T.title="Layers",T.setAttribute("role","button"),_e(T,{keydown:function(k){k.keyCode===13&&this._expandSafely()},click:function(k){St(k),this._expandSafely()}},this),p||this.expand(),this._baseLayersList=je("div",a+"-base",g),this._separator=je("div",a+"-separator",g),this._overlaysList=je("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;Xo(this._baseLayersList),Xo(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),_e(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 $=a.overlay?this._overlaysList:this._baseLayersList;return $.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,_e(a,"click",St),this.expand();var c=this;setTimeout(function(){Ne(a,"click",St),c._preventClick=!1})}}),Nf=function(a,c,p){return new Kl(a,c,p)},Qa=En.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=je("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=je("a",p,g);return k.innerHTML=a,k.href="#",k.title=c,k.setAttribute("role","button"),k.setAttribute("aria-label",c),eo(k),_e(k,"click",Hr),_e(k,"click",T,this),_e(k,"click",this._refocusOnMap,this),k},_updateDisabled:function(){var a=this._map,c="leaflet-disabled";at(this._zoomInButton,c),at(this._zoomOutButton,c),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||a._zoom===a.getMinZoom())&&(we(this._zoomOutButton,c),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||a._zoom===a.getMaxZoom())&&(we(this._zoomInButton,c),this._zoomInButton.setAttribute("aria-disabled","true"))}});Ee.mergeOptions({zoomControl:!0}),Ee.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Qa,this.addControl(this.zoomControl))});var no=function(a){return new Qa(a)},ro=En.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(a){var c="leaflet-control-scale",p=je("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=je("div",c,p)),a.imperial&&(this._iScale=je("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}}),Ja=function(a){return new ro(a)},d$='<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>',Nm=En.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(ue.inlineSvg?d$+" ":"")+"Leaflet</a>"},initialize:function(a){b(this,a),this._attributions={}},onAdd:function(a){a.attributionControl=this,this._container=je("div","leaflet-control-attribution"),eo(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> ')}}});Ee.mergeOptions({attributionControl:!0}),Ee.addInitHook(function(){this.options.attributionControl&&new Nm().addTo(this)});var p$=function(a){return new Nm(a)};En.Layers=Kl,En.Zoom=Qa,En.Scale=ro,En.Attribution=Nm,to.layers=Nf,to.zoom=no,to.scale=Ja,to.attribution=p$;var Gr=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}});Gr.addTo=function(a,c){return a.addHandler(c,this),this};var m$={Events:K},N1=ue.touch?"touchstart mousedown":"mousedown",io=q.extend({options:{clickTolerance:3},initialize:function(a,c,p,g){b(this,g),this._element=a,this._dragStartTarget=c||a,this._preventOutline=p},enable:function(){this._enabled||(_e(this._dragStartTarget,N1,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(io._dragging===this&&this.finishDrag(!0),Ne(this._dragStartTarget,N1,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(a){if(this._enabled&&(this._moved=!1,!Za(this._element,"leaflet-zoom-anim"))){if(a.touches&&a.touches.length!==1){io._dragging===this&&this.finishDrag();return}if(!(io._dragging||a.shiftKey||a.which!==1&&a.button!==1&&!a.touches)&&(io._dragging=this,this._preventOutline&&di(this._element),It(),gt(),!this._moving)){this.fire("down");var c=a.touches?a.touches[0]:a,p=An(this._element);this._startPoint=new D(c.clientX,c.clientY),this._startPos=Fe(this._element),this._parentScale=tr(p);var g=a.type==="mousedown";_e(document,g?"mousemove":"touchmove",this._onMove,this),_e(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 D(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,St(a),this._moved||(this.fire("dragstart"),this._moved=!0,we(document.body,"leaflet-dragging"),this._lastTarget=a.target||a.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),we(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),re(this._element,this._newPos),this.fire("drag",a)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(a){at(document.body,"leaflet-dragging"),this._lastTarget&&(at(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),Ne(document,"mousemove touchmove",this._onMove,this),Ne(document,"mouseup touchend touchcancel",this._onUp,this),vn(),mn();var c=this._moved&&this._moving;this._moving=!1,io._dragging=!1,c&&this.fire("dragend",{noInertia:a,distance:this._newPos.distanceTo(this._startPos)})}});function $1(a,c,p){var g,T=[1,4,2,8],k,$,F,W,ne,le,xe,Ae;for(k=0,le=a.length;k<le;k++)a[k]._code=ta(a[k],c);for(F=0;F<4;F++){for(xe=T[F],g=[],k=0,le=a.length,$=le-1;k<le;$=k++)W=a[k],ne=a[$],W._code&xe?ne._code&xe||(Ae=$f(ne,W,xe,c,p),Ae._code=ta(Ae,c),g.push(Ae)):(ne._code&xe&&(Ae=$f(ne,W,xe,c,p),Ae._code=ta(Ae,c),g.push(Ae)),g.push(W));a=g}return a}function L1(a,c){var p,g,T,k,$,F,W,ne,le;if(!a||a.length===0)throw new Error("latlngs not passed");nr(a)||(console.warn("latlngs are not flat! Only the first ring will be used"),a=a[0]);var xe=Q([0,0]),Ae=pe(a),yn=Ae.getNorthWest().distanceTo(Ae.getSouthWest())*Ae.getNorthEast().distanceTo(Ae.getNorthWest());yn<1700&&(xe=$m(a));var Dt=a.length,rr=[];for(p=0;p<Dt;p++){var kn=Q(a[p]);rr.push(c.project(Q([kn.lat-xe.lat,kn.lng-xe.lng])))}for(F=W=ne=0,p=0,g=Dt-1;p<Dt;g=p++)T=rr[p],k=rr[g],$=T.y*k.x-k.y*T.x,W+=(T.x+k.x)*$,ne+=(T.y+k.y)*$,F+=$*3;F===0?le=rr[0]:le=[W/F,ne/F];var os=c.unproject(V(le));return Q([os.lat+xe.lat,os.lng+xe.lng])}function $m(a){for(var c=0,p=0,g=0,T=0;T<a.length;T++){var k=Q(a[T]);c+=k.lat,p+=k.lng,g++}return Q([c/g,p/g])}var v$={__proto__:null,clipPolygon:$1,polygonCenter:L1,centroid:$m};function I1(a,c){if(!c||!a.length)return a.slice();var p=c*c;return a=x$(a,p),a=y$(a,p),a}function D1(a,c,p){return Math.sqrt(ql(a,c,p,!0))}function g$(a,c,p){return ql(a,c,p)}function y$(a,c){var p=a.length,g=typeof Uint8Array<"u"?Uint8Array:Array,T=new g(p);T[0]=T[p-1]=1,Lm(a,T,c,0,p-1);var k,$=[];for(k=0;k<p;k++)T[k]&&$.push(a[k]);return $}function Lm(a,c,p,g,T){var k=0,$,F,W;for(F=g+1;F<=T-1;F++)W=ql(a[F],a[g],a[T],!0),W>k&&($=F,k=W);k>p&&(c[$]=1,Lm(a,c,p,g,$),Lm(a,c,p,$,T))}function x$(a,c){for(var p=[a[0]],g=1,T=0,k=a.length;g<k;g++)_$(a[g],a[T])>c&&(p.push(a[g]),T=g);return T<k-1&&p.push(a[k-1]),p}var R1;function z1(a,c,p,g,T){var k=g?R1:ta(a,p),$=ta(c,p),F,W,ne;for(R1=$;;){if(!(k|$))return[a,c];if(k&$)return!1;F=k||$,W=$f(a,c,F,p,T),ne=ta(W,p),F===k?(a=W,k=ne):(c=W,$=ne)}}function $f(a,c,p,g,T){var k=c.x-a.x,$=c.y-a.y,F=g.min,W=g.max,ne,le;return p&8?(ne=a.x+k*(W.y-a.y)/$,le=W.y):p&4?(ne=a.x+k*(F.y-a.y)/$,le=F.y):p&2?(ne=W.x,le=a.y+$*(W.x-a.x)/k):p&1&&(ne=F.x,le=a.y+$*(F.x-a.x)/k),new D(ne,le,T)}function ta(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 _$(a,c){var p=c.x-a.x,g=c.y-a.y;return p*p+g*g}function ql(a,c,p,g){var T=c.x,k=c.y,$=p.x-T,F=p.y-k,W=$*$+F*F,ne;return W>0&&(ne=((a.x-T)*$+(a.y-k)*F)/W,ne>1?(T=p.x,k=p.y):ne>0&&(T+=$*ne,k+=F*ne)),$=a.x-T,F=a.y-k,g?$*$+F*F:new D(T,k)}function nr(a){return!S(a[0])||typeof a[0][0]!="object"&&typeof a[0][0]<"u"}function B1(a){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),nr(a)}function F1(a,c){var p,g,T,k,$,F,W,ne;if(!a||a.length===0)throw new Error("latlngs not passed");nr(a)||(console.warn("latlngs are not flat! Only the first ring will be used"),a=a[0]);var le=Q([0,0]),xe=pe(a),Ae=xe.getNorthWest().distanceTo(xe.getSouthWest())*xe.getNorthEast().distanceTo(xe.getNorthWest());Ae<1700&&(le=$m(a));var yn=a.length,Dt=[];for(p=0;p<yn;p++){var rr=Q(a[p]);Dt.push(c.project(Q([rr.lat-le.lat,rr.lng-le.lng])))}for(p=0,g=0;p<yn-1;p++)g+=Dt[p].distanceTo(Dt[p+1])/2;if(g===0)ne=Dt[0];else for(p=0,k=0;p<yn-1;p++)if($=Dt[p],F=Dt[p+1],T=$.distanceTo(F),k+=T,k>g){W=(k-g)/T,ne=[F.x-W*(F.x-$.x),F.y-W*(F.y-$.y)];break}var kn=c.unproject(V(ne));return Q([kn.lat+le.lat,kn.lng+le.lng])}var b$={__proto__:null,simplify:I1,pointToSegmentDistance:D1,closestPointOnSegment:g$,clipSegment:z1,_getEdgeIntersection:$f,_getBitCode:ta,_sqClosestPointOnSegment:ql,isFlat:nr,_flat:B1,polylineCenter:F1},Im={project:function(a){return new D(a.lng,a.lat)},unproject:function(a){return new de(a.y,a.x)},bounds:new ee([-180,-90],[180,90])},Dm={R:6378137,R_MINOR:6356752314245179e-9,bounds:new ee([-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),$=k*Math.sin(g),F=Math.tan(Math.PI/4-g/2)/Math.pow((1-$)/(1+$),k/2);return g=-p*Math.log(Math.max(F,1e-10)),new D(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),$=Math.PI/2-2*Math.atan(k),F=0,W=.1,ne;F<15&&Math.abs(W)>1e-7;F++)ne=T*Math.sin($),ne=Math.pow((1-ne)/(1+ne),T/2),W=Math.PI/2-2*Math.atan(k*ne)-$,$+=W;return new de($*c,a.x*c/p)}},w$={__proto__:null,LonLat:Im,Mercator:Dm,SphericalMercator:me},S$=i({},Re,{code:"EPSG:3395",projection:Dm,transformation:function(){var a=.5/(Math.PI*Dm.R);return J(a,.5,-a,.5)}()}),V1=i({},Re,{code:"EPSG:4326",projection:Im,transformation:J(1/180,1,-1/180,.5)}),P$=i({},qe,{projection:Im,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});qe.Earth=Re,qe.EPSG3395=S$,qe.EPSG3857=$e,qe.EPSG900913=Se,qe.EPSG4326=V1,qe.Simple=P$;var Pr=q.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})}}});Ee.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?S(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 es=Pr.extend({initialize:function(a,c){b(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)}}),O$=function(a,c){return new es(a,c)},pi=es.extend({addLayer:function(a){return this.hasLayer(a)?this:(a.addEventParent(this),es.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),es.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}}),T$=function(a,c){return new pi(a,c)},ts=H.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(a){b(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 ue.retina&&this.options[a+"RetinaUrl"]||this.options[a+"Url"]}});function A$(a){return new ts(a)}var Xl=ts.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)+ts.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=je("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):""}}),U1=Gr.extend({initialize:function(a){this._marker=a},addHooks:function(){var a=this._marker._icon;this._draggable||(this._draggable=new io(a,a,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),we(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&&at(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=Fe(c._icon),$=p.getPixelBounds(),F=p.getPixelOrigin(),W=te($.min._subtract(F).add(T),$.max._subtract(F).subtract(T));if(!W.contains(k)){var ne=V((Math.max(W.max.x,k.x)-W.max.x)/($.max.x-W.max.x)-(Math.min(W.min.x,k.x)-W.min.x)/($.min.x-W.min.x),(Math.max(W.max.y,k.y)-W.max.y)/($.max.y-W.max.y)-(Math.min(W.min.y,k.y)-W.min.y)/($.min.y-W.min.y)).multiplyBy(g);p.panBy(ne,{animate:!1}),this._draggable._newPos._add(ne),this._draggable._startPos._add(ne),re(c._icon,this._draggable._newPos),this._onDrag(a),this._panRequest=B(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=B(this._adjustPan.bind(this,a)))},_onDrag:function(a){var c=this._marker,p=c._shadow,g=Fe(c._icon),T=c._map.layerPointToLatLng(g);p&&re(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)}}),Lf=Pr.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){b(this,c),this._latlng=Q(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=Q(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||"")),we(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&&_e(p,"focus",this._panOnFocus,this);var T=a.icon.createShadow(this._shadow),k=!1;T!==this._shadow&&(this._removeShadow(),k=!0),T&&(we(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&&Ne(this._icon,"focus",this._panOnFocus,this),Ye(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&Ye(this._shadow),this._shadow=null},_setPos:function(a){this._icon&&re(this._icon,a),this._shadow&&re(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&&(we(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),U1)){var a=this.options.draggable;this.dragging&&(a=this.dragging.enabled(),this.dragging.disable()),this.dragging=new U1(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&&pn(this._icon,a),this._shadow&&pn(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 E$(a,c){return new Lf(a,c)}var oo=Pr.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 b(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)}}),If=oo.extend({options:{fill:!0,radius:10},initialize:function(a,c){b(this,c),this._latlng=Q(a),this._radius=this.options.radius},setLatLng:function(a){var c=this._latlng;return this._latlng=Q(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 oo.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 ee(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 k$(a,c){return new If(a,c)}var Rm=If.extend({initialize:function(a,c,p){if(typeof c=="number"&&(c=i({},p,{radius:c})),b(this,c),this._latlng=Q(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:oo.prototype.setStyle,_project:function(){var a=this._latlng.lng,c=this._latlng.lat,p=this._map,g=p.options.crs;if(g.distance===Re.distance){var T=Math.PI/180,k=this._mRadius/Re.R/T,$=p.project([c+k,a]),F=p.project([c-k,a]),W=$.add(F).divideBy(2),ne=p.unproject(W).lat,le=Math.acos((Math.cos(k*T)-Math.sin(c*T)*Math.sin(ne*T))/(Math.cos(c*T)*Math.cos(ne*T)))/T;(isNaN(le)||le===0)&&(le=k/Math.cos(Math.PI/180*c)),this._point=W.subtract(p.getPixelOrigin()),this._radius=isNaN(le)?0:W.x-p.project([ne,a-le]).x,this._radiusY=W.y-$.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 M$(a,c,p){return new Rm(a,c,p)}var mi=oo.extend({options:{smoothFactor:1,noClip:!1},initialize:function(a,c){b(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=ql,T,k,$=0,F=this._parts.length;$<F;$++)for(var W=this._parts[$],ne=1,le=W.length;ne<le;ne++){T=W[ne-1],k=W[ne];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 F1(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(a,c){return c=c||this._defaultShape(),a=Q(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 nr(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(a){for(var c=[],p=nr(a),g=0,T=a.length;g<T;g++)p?(c[g]=Q(a[g]),this._bounds.extend(c[g])):c[g]=this._convertLatLngs(a[g]);return c},_project:function(){var a=new ee;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 D(a,a);this._rawPxBounds&&(this._pxBounds=new ee([this._rawPxBounds.min.subtract(c),this._rawPxBounds.max.add(c)]))},_projectLatlngs:function(a,c,p){var g=a[0]instanceof de,T=a.length,k,$;if(g){for($=[],k=0;k<T;k++)$[k]=this._map.latLngToLayerPoint(a[k]),p.extend($[k]);c.push($)}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,$,F,W;for(p=0,T=0,k=this._rings.length;p<k;p++)for(W=this._rings[p],g=0,$=W.length;g<$-1;g++)F=z1(W[g],W[g+1],a,g,!0),F&&(c[T]=c[T]||[],c[T].push(F[0]),(F[1]!==W[g+1]||g===$-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]=I1(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,$,F,W=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,$=F.length,T=$-1;g<$;T=g++)if(!(!c&&g===0)&&D1(a,F[T],F[g])<=W)return!0;return!1}});function C$(a,c){return new mi(a,c)}mi._flat=B1;var ns=mi.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 L1(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(a){var c=mi.prototype._convertLatLngs.call(this,a),p=c.length;return p>=2&&c[0]instanceof de&&c[0].equals(c[p-1])&&c.pop(),c},_setLatLngs:function(a){mi.prototype._setLatLngs.call(this,a),nr(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return nr(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var a=this._renderer._bounds,c=this.options.weight,p=new D(c,c);if(a=new ee(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=$1(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,$,F,W,ne;if(!this._pxBounds||!this._pxBounds.contains(a))return!1;for(k=0,W=this._parts.length;k<W;k++)for(p=this._parts[k],$=0,ne=p.length,F=ne-1;$<ne;F=$++)g=p[$],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||mi.prototype._containsPoint.call(this,a,!0)}});function j$(a,c){return new ns(a,c)}var vi=pi.extend({initialize:function(a,c){b(this,c),this._layers={},a&&this.addData(a)},addData:function(a){var c=S(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 $=Df(a,k);return $?($.feature=Bf(a),$.defaultOptions=$.options,this.resetStyle($),k.onEachFeature&&k.onEachFeature(a,$),this.addLayer($)):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 Df(a,c){var p=a.type==="Feature"?a.geometry:a,g=p?p.coordinates:null,T=[],k=c&&c.pointToLayer,$=c&&c.coordsToLatLng||zm,F,W,ne,le;if(!g&&!p)return null;switch(p.type){case"Point":return F=$(g),W1(k,a,F,c);case"MultiPoint":for(ne=0,le=g.length;ne<le;ne++)F=$(g[ne]),T.push(W1(k,a,F,c));return new pi(T);case"LineString":case"MultiLineString":return W=Rf(g,p.type==="LineString"?0:1,$),new mi(W,c);case"Polygon":case"MultiPolygon":return W=Rf(g,p.type==="Polygon"?1:2,$),new ns(W,c);case"GeometryCollection":for(ne=0,le=p.geometries.length;ne<le;ne++){var xe=Df({geometry:p.geometries[ne],type:"Feature",properties:a.properties},c);xe&&T.push(xe)}return new pi(T);case"FeatureCollection":for(ne=0,le=p.features.length;ne<le;ne++){var Ae=Df(p.features[ne],c);Ae&&T.push(Ae)}return new pi(T);default:throw new Error("Invalid GeoJSON object.")}}function W1(a,c,p,g){return a?a(c,p):new Lf(p,g&&g.markersInheritOptions&&g)}function zm(a){return new de(a[1],a[0],a[2])}function Rf(a,c,p){for(var g=[],T=0,k=a.length,$;T<k;T++)$=c?Rf(a[T],c-1,p):(p||zm)(a[T]),g.push($);return g}function Bm(a,c){return a=Q(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 zf(a,c,p,g){for(var T=[],k=0,$=a.length;k<$;k++)T.push(c?zf(a[k],nr(a[k])?0:c-1,p,g):Bm(a[k],g));return!c&&p&&T.length>0&&T.push(T[0].slice()),T}function rs(a,c){return a.feature?i({},a.feature,{geometry:c}):Bf(c)}function Bf(a){return a.type==="Feature"||a.type==="FeatureCollection"?a:{type:"Feature",properties:{},geometry:a}}var Fm={toGeoJSON:function(a){return rs(this,{type:"Point",coordinates:Bm(this.getLatLng(),a)})}};Lf.include(Fm),Rm.include(Fm),If.include(Fm),mi.include({toGeoJSON:function(a){var c=!nr(this._latlngs),p=zf(this._latlngs,c?1:0,!1,a);return rs(this,{type:(c?"Multi":"")+"LineString",coordinates:p})}}),ns.include({toGeoJSON:function(a){var c=!nr(this._latlngs),p=c&&!nr(this._latlngs[0]),g=zf(this._latlngs,p?2:c?1:0,!0,a);return c||(g=[g]),rs(this,{type:(p?"Multi":"")+"Polygon",coordinates:g})}}),es.include({toMultiPoint:function(a){var c=[];return this.eachLayer(function(p){c.push(p.toGeoJSON(a).geometry.coordinates)}),rs(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 $=Bf(k);$.type==="FeatureCollection"?g.push.apply(g,$.features):g.push($)}}}),p?rs(this,{geometries:g,type:"GeometryCollection"}):{type:"FeatureCollection",features:g}}});function H1(a,c){return new vi(a,c)}var N$=H1,Ff=Pr.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(a,c,p){this._url=a,this._bounds=pe(c),b(this,p)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(we(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Ye(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&&fi(this._image),this},bringToBack:function(){return this._map&&hi(this._image),this},setUrl:function(a){return this._url=a,this._image&&(this._image.src=a),this},setBounds:function(a){return this._bounds=pe(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:je("img");if(we(c,"leaflet-image-layer"),this._zoomAnimated&&we(c,"leaflet-zoom-animated"),this.options.className&&we(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;Ur(this._image,p,c)},_reset:function(){var a=this._image,c=new ee(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),p=c.getSize();re(a,c.min),a.style.width=p.x+"px",a.style.height=p.y+"px"},_updateOpacity:function(){pn(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()}}),$$=function(a,c,p){return new Ff(a,c,p)},G1=Ff.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:je("video");if(we(c,"leaflet-image-layer"),this._zoomAnimated&&we(c,"leaflet-zoom-animated"),this.options.className&&we(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}S(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 $=je("source");$.src=this._url[k],c.appendChild($)}}});function L$(a,c,p){return new G1(a,c,p)}var Z1=Ff.extend({_initImage:function(){var a=this._image=this._url;we(a,"leaflet-image-layer"),this._zoomAnimated&&we(a,"leaflet-zoom-animated"),this.options.className&&we(a,this.options.className),a.onselectstart=h,a.onmousemove=h}});function I$(a,c,p){return new Z1(a,c,p)}var Zr=Pr.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(a,c){a&&(a instanceof de||S(a))?(this._latlng=Q(a),b(this,c)):(b(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&&pn(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),a._fadeAnimated&&pn(this._container,1),this.bringToFront(),this.options.interactive&&(we(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(a){a._fadeAnimated?(pn(this._container,0),this._removeTimeout=setTimeout(s(Ye,void 0,this._container),200)):Ye(this._container),this.options.interactive&&(at(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(a){return this._latlng=Q(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&&fi(this._container),this},bringToBack:function(){return this._map&&hi(this._container),this},_prepareOpen:function(a){var c=this._source;if(!c._map)return!1;if(c instanceof pi){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?re(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]}});Ee.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}}),Pr.include({_initOverlay:function(a,c,p,g){var T=p;return T instanceof a?(b(T,g),T._source=this):(T=c&&!g?c:new a(g,this),T.setContent(p)),T}});var Vf=Zr.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,Zr.prototype.openOn.call(this,a)},onAdd:function(a){Zr.prototype.onAdd.call(this,a),a.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof oo||this._source.on("preclick",Wr))},onRemove:function(a){Zr.prototype.onRemove.call(this,a),a.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof oo||this._source.off("preclick",Wr))},getEvents:function(){var a=Zr.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=je("div",a+" "+(this.options.className||"")+" leaflet-zoom-animated"),p=this._wrapper=je("div",a+"-content-wrapper",c);if(this._contentNode=je("div",a+"-content",p),eo(c),Xa(this._contentNode),_e(c,"contextmenu",Wr),this._tipContainer=je("div",a+"-tip-container",c),this._tip=je("div",a+"-tip",this._tipContainer),this.options.closeButton){var g=this._closeButton=je("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>',_e(g,"click",function(T){St(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",we(a,k)):at(a,k),this._containerWidth=this._container.offsetWidth},_animateZoom:function(a){var c=this._map._latLngToNewLayerPoint(this._latlng,a.zoom,a.center),p=this._getAnchor();re(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 D(this._containerLeft,-p-this._containerBottom);T._add(Fe(this._container));var k=a.layerPointToContainerPoint(T),$=V(this.options.autoPanPadding),F=V(this.options.autoPanPaddingTopLeft||$),W=V(this.options.autoPanPaddingBottomRight||$),ne=a.getSize(),le=0,xe=0;k.x+g+W.x>ne.x&&(le=k.x+g-ne.x+W.x),k.x-le-F.x<0&&(le=k.x-F.x),k.y+p+W.y>ne.y&&(xe=k.y+p-ne.y+W.y),k.y-xe-F.y<0&&(xe=k.y-F.y),(le||xe)&&(this.options.keepInView&&(this._autopanning=!0),a.fire("autopanstart").panBy([le,xe]))}},_getAnchor:function(){return V(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),D$=function(a,c){return new Vf(a,c)};Ee.mergeOptions({closePopupOnClick:!0}),Ee.include({openPopup:function(a,c,p){return this._initOverlay(Vf,a,c,p).openOn(this),this},closePopup:function(a){return a=arguments.length?a:this._popup,a&&a.close(),this}}),Pr.include({bindPopup:function(a,c){return this._popup=this._initOverlay(Vf,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 pi||(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)){Hr(a);var c=a.layer||a.target;if(this._popup._source===c&&!(c instanceof oo)){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 Uf=Zr.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(a){Zr.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){Zr.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=Zr.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=je("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()),$=g.layerPointToContainerPoint(a),F=this.options.direction,W=T.offsetWidth,ne=T.offsetHeight,le=V(this.options.offset),xe=this._getAnchor();F==="top"?(c=W/2,p=ne):F==="bottom"?(c=W/2,p=0):F==="center"?(c=W/2,p=ne/2):F==="right"?(c=0,p=ne/2):F==="left"?(c=W,p=ne/2):$.x<k.x?(F="right",c=0,p=ne/2):(F="left",c=W+(le.x+xe.x)*2,p=ne/2),a=a.subtract(V(c,p,!0)).add(le).add(xe),at(T,"leaflet-tooltip-right"),at(T,"leaflet-tooltip-left"),at(T,"leaflet-tooltip-top"),at(T,"leaflet-tooltip-bottom"),we(T,"leaflet-tooltip-"+F),re(T,a)},_updatePosition:function(){var a=this._map.latLngToLayerPoint(this._latlng);this._setPosition(a)},setOpacity:function(a){this.options.opacity=a,this._container&&pn(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])}}),R$=function(a,c){return new Uf(a,c)};Ee.include({openTooltip:function(a,c,p){return this._initOverlay(Uf,a,c,p).openOn(this),this},closeTooltip:function(a){return a.close(),this}}),Pr.include({bindTooltip:function(a,c){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Uf,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 pi||(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&&(_e(c,"focus",function(){this._tooltip._source=a,this.openTooltip()},this),_e(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 K1=ts.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?(Xo(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 z$(a){return new K1(a)}ts.Default=Xl;var Yl=Pr.extend({options:{tileSize:256,opacity:1,updateWhenIdle:ue.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){b(this,a)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(a){a._addZoomLimit(this)},onRemove:function(a){this._removeAllTiles(),Ye(this._container),a._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(fi(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(hi(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 D?a:new D(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&&!ue.ielt9){pn(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);pn(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=B(this._updateOpacity,this))}},_onOpaqueTile:h,_initContainer:function(){this._container||(this._container=je("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)):(Ye(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=je("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)Ye(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),$=p-1,F=new D(+T,+k);F.z=+$;var W=this._tileCoordsToKey(F),ne=this._tiles[W];return ne&&ne.active?(ne.retain=!0,!0):(ne&&ne.loaded&&(ne.retain=!0),$>g?this._retainParent(T,k,$,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 $=new D(T,k);$.z=p+1;var F=this._tileCoordsToKey($),W=this._tiles[F];if(W&&W.active){W.retain=!0;continue}else W&&W.loaded&&(W.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();ue.any3d?Ur(a.el,T,g):re(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 ee(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(),$=[],F=this.options.keepBuffer,W=new ee(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 ne in this._tiles){var le=this._tiles[ne].coords;(le.z!==this._tileZoom||!W.contains(new D(le.x,le.y)))&&(this._tiles[ne].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 Ae=T.min.x;Ae<=T.max.x;Ae++){var yn=new D(Ae,xe);if(yn.z=this._tileZoom,!!this._isValidTile(yn)){var Dt=this._tiles[this._tileCoordsToKey(yn)];Dt?Dt.current=!0:$.push(yn)}}if($.sort(function(kn,os){return kn.distanceTo(k)-os.distanceTo(k)}),$.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var rr=document.createDocumentFragment();for(Ae=0;Ae<$.length;Ae++)this._addTile($[Ae],rr);this._level.el.appendChild(rr)}}}},_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 pe(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),$=c.unproject(T,a.z);return[k,$]},_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 D(+c[0],+c[1]);return p.z=+c[2],p},_removeTile:function(a){var c=this._tiles[a];c&&(Ye(c.el),delete this._tiles[a],this.fire("tileunload",{tile:c.el,coords:this._keyToTileCoords(a)}))},_initTile:function(a){we(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,ue.ielt9&&this.options.opacity<1&&pn(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&&B(s(this._tileReady,this,a,null,T)),re(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?(pn(p.el,0),R(this._fadeFrame),this._fadeFrame=B(this._updateOpacity,this)):(p.active=!0,this._pruneTiles()),c||(we(p.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:p.el,coords:a})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),ue.ielt9||!this._map._fadeAnimated?B(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 D(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 ee(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 B$(a){return new Yl(a)}var is=Yl.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=b(this,c),c.detectRetina&&ue.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 _e(p,"load",s(this._tileOnLoad,this,c,p)),_e(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:ue.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 x(this._url,i(c,this.options))},_tileOnLoad:function(a,c){ue.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=O;var p=this._tiles[a].coords;Ye(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",O),Yl.prototype._removeTile.call(this,a)},_tileReady:function(a,c,p){if(!(!this._map||p&&p.getAttribute("src")===O))return Yl.prototype._tileReady.call(this,a,c,p)}});function q1(a,c){return new is(a,c)}var X1=is.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=b(this,c);var T=c.detectRetina&&ue.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,is.prototype.onAdd.call(this,a)},getTileUrl:function(a){var c=this._tileCoordsToNwSe(a),p=this._crs,g=te(p.project(c[0]),p.project(c[1])),T=g.min,k=g.max,$=(this._wmsVersion>=1.3&&this._crs===V1?[T.y,T.x,k.y,k.x]:[T.x,T.y,k.x,k.y]).join(","),F=is.prototype.getTileUrl.call(this,a);return F+P(this.wmsParams,F,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+$},setParams:function(a,c){return i(this.wmsParams,a),c||this.redraw(),this}});function F$(a,c){return new X1(a,c)}is.WMS=X1,q1.wms=F$;var gi=Pr.extend({options:{padding:.1},initialize:function(a){b(this,a),u(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),we(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));ue.any3d?Ur(this._container,k,p):re(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 ee(p,p.add(c.multiplyBy(1+a*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Y1=gi.extend({options:{tolerance:0},getEvents:function(){var a=gi.prototype.getEvents.call(this);return a.viewprereset=this._onViewPreReset,a},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){gi.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var a=this._container=document.createElement("canvas");_e(a,"mousemove",this._onMouseMove,this),_e(a,"click dblclick mousedown mouseup contextmenu",this._onClick,this),_e(a,"mouseout",this._handleMouseOut,this),a._leaflet_disable_events=!0,this._ctx=a.getContext("2d")},_destroyContainer:function(){R(this._redrawRequest),delete this._ctx,Ye(this._container),Ne(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)){gi.prototype._update.call(this);var a=this._bounds,c=this._container,p=a.getSize(),g=ue.retina?2:1;re(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",ue.retina&&this._ctx.scale(2,2),this._ctx.translate(-a.min.x,-a.min.y),this.fire("update")}},_reset:function(){gi.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||B(this._redraw,this))},_extendRedrawBounds:function(a){if(a._pxBounds){var c=(a.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new ee,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,$=a._parts,F=$.length,W=this._ctx;if(F){for(W.beginPath(),p=0;p<F;p++){for(g=0,T=$[p].length;g<T;g++)k=$[p][g],W[g?"lineTo":"moveTo"](k.x,k.y);c&&W.closePath()}this._fillStroke(W,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&&(at(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&&(we(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 Q1(a){return ue.canvas?new Y1(a):null}var Ql=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">')}}(),V$={_initContainer:function(){this._container=je("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(gi.prototype._update.call(this),this.fire("update"))},_initPath:function(a){var c=a._container=Ql("shape");we(c,"leaflet-vml-shape "+(this.options.className||"")),c.coordsize="1 1",a._path=Ql("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;Ye(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=Ql("stroke")),T.appendChild(c),c.weight=g.weight+"px",c.color=g.color,c.opacity=g.opacity,g.dashArray?c.dashStyle=S(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=Ql("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){fi(a._container)},_bringToBack:function(a){hi(a._container)}},Wf=ue.vml?Ql:We,Jl=gi.extend({_initContainer:function(){this._container=Wf("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Wf("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Ye(this._container),Ne(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){gi.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)),re(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=Wf("path");a.options.className&&we(c,a.options.className),a.options.interactive&&we(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){Ye(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,He(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){fi(a._path)},_bringToBack:function(a){hi(a._path)}});ue.vml&&Jl.include(V$);function J1(a){return ue.svg||ue.vml?new Jl(a):null}Ee.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&&Q1(a)||J1(a)}});var eb=ns.extend({initialize:function(a,c){ns.prototype.initialize.call(this,this._boundsToLatLngs(a),c)},setBounds:function(a){return this.setLatLngs(this._boundsToLatLngs(a))},_boundsToLatLngs:function(a){return a=pe(a),[a.getSouthWest(),a.getNorthWest(),a.getNorthEast(),a.getSouthEast()]}});function U$(a,c){return new eb(a,c)}Jl.create=Wf,Jl.pointsToPath=He,vi.geometryToLayer=Df,vi.coordsToLatLng=zm,vi.coordsToLatLngs=Rf,vi.latLngToCoords=Bm,vi.latLngsToCoords=zf,vi.getFeature=rs,vi.asFeature=Bf,Ee.mergeOptions({boxZoom:!0});var tb=Gr.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(){_e(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Ne(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Ye(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(),gt(),It(),this._startPoint=this._map.mouseEventToContainerPoint(a),_e(document,{contextmenu:Hr,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(a){this._moved||(this._moved=!0,this._box=je("div","leaflet-zoom-box",this._container),we(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(a);var c=new ee(this._point,this._startPoint),p=c.getSize();re(this._box,c.min),this._box.style.width=p.x+"px",this._box.style.height=p.y+"px"},_finish:function(){this._moved&&(Ye(this._box),at(this._container,"leaflet-crosshair")),mn(),vn(),Ne(document,{contextmenu:Hr,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())}});Ee.addInitHook("addHandler","boxZoom",tb),Ee.mergeOptions({doubleClickZoom:!0});var nb=Gr.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)}});Ee.addInitHook("addHandler","doubleClickZoom",nb),Ee.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var rb=Gr.extend({addHooks:function(){if(!this._draggable){var a=this._map;this._draggable=new io(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))}we(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){at(this._map._container,"leaflet-grab"),at(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=pe(this._map.options.maxBounds);this._offsetLimit=te(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,$=Math.abs(T+p)<Math.abs(k+p)?T:k;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=$},_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,$=p.easeLinearity,F=T.multiplyBy($/k),W=F.distanceTo([0,0]),ne=Math.min(p.inertiaMaxSpeed,W),le=F.multiplyBy(ne/W),xe=ne/(p.inertiaDeceleration*$),Ae=le.multiplyBy(-xe/2).round();!Ae.x&&!Ae.y?c.fire("moveend"):(Ae=c._limitOffset(Ae,c.options.maxBounds),B(function(){c.panBy(Ae,{duration:xe,easeLinearity:$,noMoveStart:!0,animate:!0})}))}}});Ee.addInitHook("addHandler","dragging",rb),Ee.mergeOptions({keyboard:!0,keyboardPanDelta:80});var ib=Gr.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"),_e(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(),Ne(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(){_e(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Ne(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;Hr(a)}}});Ee.addInitHook("addHandler","keyboard",ib),Ee.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var ob=Gr.extend({addHooks:function(){_e(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Ne(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(a){var c=Gl(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),Hr(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,$=a._limitZoom(c+(this._delta>0?k:-k))-c;this._delta=0,this._startTime=null,$&&(a.options.scrollWheelZoom==="center"?a.setZoom(c+$):a.setZoomAround(this._lastMousePos,c+$))}});Ee.addInitHook("addHandler","scrollWheelZoom",ob);var W$=600;Ee.mergeOptions({tapHold:ue.touchNative&&ue.safari&&ue.mobile,tapTolerance:15});var ab=Gr.extend({addHooks:function(){_e(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Ne(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 D(c.clientX,c.clientY),this._holdTimeout=setTimeout(s(function(){this._cancel(),this._isTapValid()&&(_e(document,"touchend",St),_e(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",c))},this),W$),_e(document,"touchend touchcancel contextmenu",this._cancel,this),_e(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function a(){Ne(document,"touchend",St),Ne(document,"touchend touchcancel",a)},_cancel:function(){clearTimeout(this._holdTimeout),Ne(document,"touchend touchcancel contextmenu",this._cancel,this),Ne(document,"touchmove",this._onMove,this)},_onMove:function(a){var c=a.touches[0];this._newPos=new D(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)}});Ee.addInitHook("addHandler","tapHold",ab),Ee.mergeOptions({touchZoom:ue.touch,bounceAtZoomLimits:!0});var sb=Gr.extend({addHooks:function(){we(this._map._container,"leaflet-touch-zoom"),_e(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){at(this._map._container,"leaflet-touch-zoom"),Ne(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(),_e(document,"touchmove",this._onTouchMove,this),_e(document,"touchend touchcancel",this._onTouchEnd,this),St(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 $=s(c._move,c,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=B($,this,!0),St(a)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,R(this._animRequest),Ne(document,"touchmove",this._onTouchMove,this),Ne(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))}});Ee.addInitHook("addHandler","touchZoom",sb),Ee.BoxZoom=tb,Ee.DoubleClickZoom=nb,Ee.Drag=rb,Ee.Keyboard=ib,Ee.ScrollWheelZoom=ob,Ee.TapHold=ab,Ee.TouchZoom=sb,n.Bounds=ee,n.Browser=ue,n.CRS=qe,n.Canvas=Y1,n.Circle=Rm,n.CircleMarker=If,n.Class=H,n.Control=En,n.DivIcon=K1,n.DivOverlay=Zr,n.DomEvent=Cf,n.DomUtil=Jo,n.Draggable=io,n.Evented=q,n.FeatureGroup=pi,n.GeoJSON=vi,n.GridLayer=Yl,n.Handler=Gr,n.Icon=ts,n.ImageOverlay=Ff,n.LatLng=de,n.LatLngBounds=ae,n.Layer=Pr,n.LayerGroup=es,n.LineUtil=b$,n.Map=Ee,n.Marker=Lf,n.Mixin=m$,n.Path=oo,n.Point=D,n.PolyUtil=v$,n.Polygon=ns,n.Polyline=mi,n.Popup=Vf,n.PosAnimation=Zl,n.Projection=w$,n.Rectangle=eb,n.Renderer=gi,n.SVG=Jl,n.SVGOverlay=Z1,n.TileLayer=is,n.Tooltip=Uf,n.Transformation=ye,n.Util=Y,n.VideoOverlay=G1,n.bind=s,n.bounds=te,n.canvas=Q1,n.circle=M$,n.circleMarker=k$,n.control=to,n.divIcon=z$,n.extend=i,n.featureGroup=T$,n.geoJSON=H1,n.geoJson=N$,n.gridLayer=B$,n.icon=A$,n.imageOverlay=$$,n.latLng=Q,n.latLngBounds=pe,n.layerGroup=O$,n.map=jf,n.marker=E$,n.point=V,n.polygon=j$,n.polyline=C$,n.popup=D$,n.rectangle=U$,n.setOptions=b,n.stamp=u,n.svg=J1,n.svgOverlay=I$,n.tileLayer=q1,n.tooltip=R$,n.transformation=J,n.version=r,n.videoOverlay=L$;var H$=window.L;n.noConflict=function(){return window.L=H$,this},window.L=n})})(gy,gy.exports);var Ba=gy.exports;const cn=Ke(Ba);function cf(e,t,n){return Object.freeze({instance:e,context:t,container:n})}function b_(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 jM(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 NM(e){return function(n){const r=x_(),i=e(__(n,r),r);return $z(r.map,n.attribution),CM(i.current,n.eventHandlers),jM(i.current,r),i}}function zz(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 Bz(e){return function(n){const r=x_(),i=e(__(n,r),r);return CM(i.current,n.eventHandlers),jM(i.current,r),zz(i.current,n),i}}function Fz(e,t){const n=b_(e,t),r=NM(n);return MM(r)}function w_(e,t){const n=b_(e,t),r=Bz(n);return MM(r)}function Vz(e,t){const n=b_(e,t),r=NM(n);return Rz(r)}function Uz(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 S_(){return x_().map}function $M(e){const t=S_();return j.useEffect(function(){return t.on(e),function(){t.off(e)}},[t,e]),t}const wi=w_(function({center:t,children:n,...r},i){const o=new Ba.Circle(t,r);return cf(o,Zp(i,{overlayContainer:o}))},Lz);function yy(){return yy=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},yy.apply(this,arguments)}function Wz({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,w]=j.useState(null);j.useImperativeHandle(h,()=>(v==null?void 0:v.map)??null,[v]);const b=j.useCallback(_=>{if(_!==null&&v===null){const x=new Ba.Map(_,d);n!=null&&f!=null?x.setView(n,f):e!=null&&x.fitBounds(e,t),u!=null&&x.whenReady(u),w(Dz(x))}},[]);j.useEffect(()=>()=>{v==null||v.map.remove()},[v]);const P=v?I.createElement(kM,{value:v},r):s??null;return I.createElement("div",yy({},m,{ref:b}),P)}const LM=j.forwardRef(Wz),Fn=Fz(function({position:t,...n},r){const i=new Ba.Marker(t,n);return cf(i,Zp(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())}),Hz=w_(function({positions:t,...n},r){const i=new Ba.Polygon(t,n);return cf(i,Zp(r,{overlayContainer:i}))},function(t,n,r){n.positions!==r.positions&&t.setLatLngs(n.positions)}),ma=w_(function({positions:t,...n},r){const i=new Ba.Polyline(t,n);return cf(i,Zp(r,{overlayContainer:i}))},function(t,n,r){n.positions!==r.positions&&t.setLatLngs(n.positions)}),xy=Vz(function({url:t,...n},r){const i=new Ba.TileLayer(t,__(n,r));return cf(i,r)},function(t,n,r){Uz(t,n,r);const{url:i}=n;i!=null&&i!==r.url&&t.setUrl(i)}),Gz=new cn.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]}),Zz=e=>new cn.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]}),Kz=new cn.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]}),ph=(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}`},qz=(e,t)=>{const n=Math.PI/180,r=-t/(111139*Math.cos(e.lat*n));return[e.lat,e.lon+r]},Xz=(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)},Yz=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"}],Qz=(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]},Jz=e=>{let t="rgba(225, 225, 225, 0.85)";return e==="RED"?t="#ef4444":e==="ORANGE"&&(t="#f97316"),new cn.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]})},eB=e=>e.risk==="RED"?"#ef4444":e.risk==="ORANGE"?"#f97316":e.color||"rgba(225, 225, 225, 0.85)",P_=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]},tB=(e,t,n)=>{const r=P_(n);return new cn.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]})},IM=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?"🚤":""},nB=(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=IM(o),d=P_(s);return new cn.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})},rB=(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 P=s||"COLLISIONE!",_=r!==null&&r>=0?` in ${Math.round(r)}m`:"";v=i?`🚨 ${i}`:`🚨 ${P} - CPA: ${n}m${_}`}else i?v=`⚠️ ${i}`:r!==null&&r>=0&&(v=`CPA: ${n}m in ${Math.round(r)}m`);const w=IM(f),b=P_(d);return new cn.DivIcon({html:`
|
|
275
|
+
<div style="display: flex; flex-direction: row; align-items: center; gap: 5px; white-space: nowrap; text-transform: uppercase;">
|
|
276
|
+
${w?`<span style="font-size: ${b.emojiSize}; line-height: 1;">${w}</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: ${b.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: ${b.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: ${b.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:b.iconSize,iconAnchor:b.iconAnchor})},iB=e=>!e||e<50?"text-gray-300":e<195||e>255?"text-red-500":e<210||e>245?"text-orange-500":"text-gray-400",oB=(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"},zS=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",aB=({coords:e,anchorCoords:t,isAnchored:n,trailSegments:r,autoFollow:i,setAutoFollow:o,isMapFull:s,setIsMapFull:l,smartZoom:u,onZoomChange:f})=>{const d=S_(),h=j.useRef(!1);$M({dragstart:()=>{o(!1)},zoomstart:_=>{_&&_.originalEvent&&(h.current=!0)},zoomend:()=>{f&&f(d.getZoom())}}),j.useEffect(()=>{f&&f(d.getZoom())},[d,f]);const m=_=>{h.current=!0;const x=d.getZoom(),S=_==="in"?x+1:x-1;d.setZoom(S),f&&f(S)},v=j.useMemo(()=>n&&t&&t[0]&&t[1]?t:e,[n,t,e]),[w,b]=v,P=j.useRef(!0);return j.useEffect(()=>{const _=setTimeout(()=>{if(d.invalidateSize(!1),i&&w!==0){const S=h.current?d.getZoom():u;d.setView([w,b],S,{animate:!1})}},60),x=setTimeout(()=>{d.invalidateSize(!1)},300);return()=>{clearTimeout(_),clearTimeout(x)}},[s,i,w,b,u,d]),j.useEffect(()=>{if(!i||w===0)return;const _=requestAnimationFrame(()=>{const x=d.getZoom();P.current?(h.current=!1,d.setView([w,b],u,{animate:!1}),P.current=!1,f&&f(u)):!h.current&&x!==u?d.flyTo([w,b],u,{duration:.8}):d.panTo([w,b],{animate:!0,duration:1,easeLinearity:.25})});return()=>cancelAnimationFrame(_)},[i,w,b,u,d,f]),y.jsxs(y.Fragment,{children:[r.map((_,x)=>y.jsx(ma,{positions:_.positions,color:_.color,weight:_.weight,opacity:_.opacity,lineCap:"round",lineJoin:"round",smoothFactor:0},`trail-seg-${x}`)),y.jsxs("div",{className:"absolute right-4 top-1/2 -translate-y-1/2 flex flex-col gap-3 z-[1000]",children:[y.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:y.jsx(PM,{size:24})}),y.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:y.jsx(wM,{size:24})}),y.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:y.jsx(OM,{size:24,className:i?"text-white":"text-gray-300"})}),y.jsx("button",{onClick:_=>{_.stopPropagation(),l(x=>!x)},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?y.jsx(xz,{size:20}):y.jsx(yz,{size:20})})]})]})},sB=(e,t)=>{if(!e)return;if(navigator.clipboard&&window.isSecureContext){navigator.clipboard.writeText(e).then(()=>{t&&t()}).catch(()=>{});return}const n=document.createElement("textarea");n.value=e,n.setAttribute("readonly",""),n.style.position="absolute",n.style.left="-9999px",n.style.top=`${window.pageYOffset||document.documentElement.scrollTop||0}px`,n.style.fontSize="12pt",n.style.opacity="0",document.body.appendChild(n),n.select(),n.setSelectionRange(0,99999);try{document.execCommand("copy"),t&&t()}catch(r){console.error("Copia fallita",r)}if(document.body.removeChild(n),window.getSelection){const r=window.getSelection();r&&r.removeAllRanges()}},lB=({manager:e,onTabChange:t})=>{var D,U,V,ee,te,ae,pe,de,Q,qe,Re,se,me,ye,J,$e,Se,We,He,ot,Et,Pn,Dn,Vt,Yt,Qn,zr,Br,li,Zi,Ki,Uo,qi,Xi,Wo,Yi,ui,G,be,he,ze,ut,Ge,vt,hn,On,Jn,Qt,Tn,kt,dn,Ut,br,Ho,Go,Zo,Jt,ue,wr,Rn,Fr,Vr,er,Ko,ci,zl,yf,xf,_f,bf,Bl,wf,qo,Sf,Pf,Of,Tf,Af,Ga,Qi,Fl,Vl,Ji,je,Ye,Xo,fi,hi,Za,we,at,Ka,Yo,pn,Ef,Qo,Ur;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,w]=j.useState(!1),[b,P]=j.useState(null),[_,x]=j.useState(null),S=parseFloat((D=n==null?void 0:n.gps)==null?void 0:D.lat)||36.78,E=parseFloat((U=n==null?void 0:n.gps)==null?void 0:U.lon)||14.54,O=j.useMemo(()=>[S,E],[S,E]),A=((V=n==null?void 0:n.anchor)==null?void 0:V.sog)!==void 0?n.anchor.sog:((ee=n==null?void 0:n.gps)==null?void 0:ee.sog)||0,M=parseFloat(((te=n==null?void 0:n.anchor)==null?void 0:te.depth)||((ae=n==null?void 0:n.environment)==null?void 0:ae.depth)||0),C=!!((pe=n==null?void 0:n.anchor)!=null&&pe.engine_on),N=((de=n==null?void 0:n.anchor)==null?void 0:de.status)||"MOVING",z=N!=="MOVING",B=j.useMemo(()=>Xz(N,A,M,C),[N,A,M,C]),[R,Y]=j.useState(B);j.useEffect(()=>{d(!!o)},[o]);const H=j.useMemo(()=>{var re,Fe;return z&&((re=n==null?void 0:n.anchor)!=null&&re.lat)&&((Fe=n==null?void 0:n.anchor)!=null&&Fe.lon)?{lat:parseFloat(n.anchor.lat),lon:parseFloat(n.anchor.lon)}:{lat:S,lon:E}},[z,(Q=n==null?void 0:n.anchor)==null?void 0:Q.lat,(qe=n==null?void 0:n.anchor)==null?void 0:qe.lon,S,E]),Z=j.useMemo(()=>{var re;return(((re=n==null?void 0:n.environment)==null?void 0:re.ais_targets)||[]).some(Fe=>Fe.risk==="RED"&&Fe.riskMsg==="SOPRA TUA ANCORA!")},[(Re=n==null?void 0:n.environment)==null?void 0:Re.ais_targets]),K=j.useMemo(()=>{var Fe;return(((Fe=n==null?void 0:n.environment)==null?void 0:Fe.ais_targets)||[]).filter(gt=>gt.risk==="RED"||gt.riskMsg==="SOPRA TUA ANCORA!"?!0:gt.dist<=1852)},[(se=n==null?void 0:n.environment)==null?void 0:se.ais_targets]),q=j.useMemo(()=>{var Sr,en,di;const re=((Sr=n==null?void 0:n.environment)==null?void 0:Sr.gps_history)||[],Fe=((en=n==null?void 0:n.anchor)==null?void 0:en.engine_on)||!1,gt=((di=n==null?void 0:n.anchor)==null?void 0:di.status)==="MOVING"?Fe?"engine":"sail":"anchor",mn={lat:O[0],lon:O[1],m:gt},ct=[...re,mn];if(ct.length<2)return[];const Te=[];let It=[[parseFloat(ct[0].lat),parseFloat(ct[0].lon)]],vn=ct[0].m||"sail";for(let gn=1;gn<ct.length;gn++){const An=ct[gn],tr=parseFloat(An.lat),Jo=parseFloat(An.lon),_e=An.m||"sail";if(_e===vn)It.push([tr,Jo]);else{It.push([tr,Jo]);let Wt="#38bdf8",Ne=3,ea=.85;vn==="engine"?Wt="#f97316":vn==="anchor"&&(Wt="rgba(220, 220, 220, 0.55)",Ne=2,ea=.6),Te.push({positions:It,color:Wt,weight:Ne,opacity:ea}),It=[[tr,Jo]],vn=_e}}if(It.length>=2){let gn="#38bdf8",An=3,tr=.85;vn==="engine"?gn="#f97316":vn==="anchor"&&(gn="rgba(220, 220, 220, 0.55)",An=2,tr=.6),Te.push({positions:It,color:gn,weight:An,opacity:tr})}return Te},[(me=n==null?void 0:n.environment)==null?void 0:me.gps_history,(ye=n==null?void 0:n.anchor)==null?void 0:ye.engine_on,(J=n==null?void 0:n.anchor)==null?void 0:J.status,O]);return n?y.jsxs("div",{className:"px-2 pt-5 pb-4 landscape:p-2 landscape:pt-4 space-y-2 landscape:space-y-2",children:[f&&y.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:y.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:[y.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:y.jsx(rz,{size:24})}),y.jsxs("div",{className:"space-y-1 text-center",children:[y.jsx("h2",{className:"text-lg font-black uppercase tracking-tight text-white font-mono leading-none",children:"Sicurezza API"}),y.jsx("p",{className:"text-gray-400 text-[11px] font-bold px-2",children:"Autorizza il certificato per ricevere i dati."})]}),y.jsxs("div",{className:"space-y-2 pt-2",children:[y.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"}),y.jsx("p",{className:"text-[9px] text-gray-300 font-black uppercase tracking-tighter text-center",children:"Poi chiudi la scheda e torna qui"}),y.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"})]})]})}),y.jsxs("div",{className:"grid grid-cols-2 gap-2 landscape:gap-2",children:[y.jsx("div",{onClick:()=>t(1),className:"cursor-pointer active:scale-95 transition-transform",children:y.jsx(BS,{title:"BATTERIA",icon:y.jsx(az,{className:"text-green-500"}),value:`${((Se=($e=n==null?void 0:n.power)==null?void 0:$e.soc)==null?void 0:Se.toFixed(1))||"-"}%`,sub:y.jsxs("span",{className:((We=n==null?void 0:n.power)==null?void 0:We.dc_draw_w)>=0?"text-green-400":"text-gray-100",children:[((He=n==null?void 0:n.power)==null?void 0:He.dc_draw_w)>0?`+${Math.round(n.power.dc_draw_w)}`:Math.round(((ot=n==null?void 0:n.power)==null?void 0:ot.dc_draw_w)||0),y.jsx("span",{className:"opacity-40 ml-0.5 font-black uppercase text-[12px]",children:"w"})]})})}),y.jsx("div",{onClick:()=>t(4),className:"cursor-pointer active:scale-95 transition-transform",children:y.jsx(BS,{title:"BANCHINA",icon:y.jsx(bz,{className:(Et=n==null?void 0:n.power)!=null&&Et.shore_power?"text-green-500":"text-red-500"}),value:(Pn=n==null?void 0:n.power)!=null&&Pn.shore_power?"ON":"OFF",sub:y.jsxs("div",{className:"flex flex-col items-end leading-none",children:[y.jsxs("span",{className:oB((Dn=n==null?void 0:n.power)==null?void 0:Dn.ac_power_w,(Vt=n==null?void 0:n.switches)==null?void 0:Vt.shore_limit,(Yt=n==null?void 0:n.power)==null?void 0:Yt.shore_v,(Qn=n==null?void 0:n.power)==null?void 0:Qn.shore_power),children:[Math.round(((zr=n==null?void 0:n.power)==null?void 0:zr.ac_power_w)||0),y.jsx("span",{className:"opacity-40 ml-0.5 font-black uppercase text-[12px]",children:"w"})]}),((Br=n==null?void 0:n.power)==null?void 0:Br.shore_power)&&((li=n==null?void 0:n.power)==null?void 0:li.shore_v)>50&&y.jsxs("span",{className:`${iB((Zi=n==null?void 0:n.power)==null?void 0:Zi.shore_v)} text-[12px] font-bold mt-1.5`,children:["(",(Uo=(Ki=n==null?void 0:n.power)==null?void 0:Ki.shore_v)==null?void 0:Uo.toFixed(0),"V)"]})]})})})]}),y.jsxs("div",{className:"flex flex-col md:flex-row gap-2 landscape:gap-2 w-full",children:[y.jsxs("div",{className:"w-full md:w-1/2 grid grid-cols-4 md:grid-cols-2 gap-2",children:[y.jsx("div",{onClick:()=>t(2),className:"cursor-pointer active:scale-95 transition-transform h-full",children:y.jsx(mh,{icon:y.jsx(TM,{size:18}),title:"POZZ.",val:(qi=n==null?void 0:n.environment)==null?void 0:qi.temp_pozzetto,color:"text-yellow-500"})}),y.jsx(mh,{icon:y.jsx(Az,{size:18}),title:"QUADR.",val:(Xi=n==null?void 0:n.environment)==null?void 0:Xi.temp_quadrato,color:"text-orange-500"}),y.jsx(mh,{icon:y.jsx(IS,{size:18}),title:"FRIGO",val:(Wo=n==null?void 0:n.environment)==null?void 0:Wo.temp_frigo,color:"text-cyan-400",valueColor:zS((Yi=n==null?void 0:n.environment)==null?void 0:Yi.temp_frigo)}),y.jsx(mh,{icon:y.jsx(IS,{size:18}),title:"FREEZER",val:(ui=n==null?void 0:n.environment)==null?void 0:ui.temp_freezer,color:"text-blue-500",valueColor:zS((G=n==null?void 0:n.environment)==null?void 0:G.temp_freezer)})]}),y.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:[y.jsx(Mv,{icon:y.jsx(dz,{className:"text-blue-400"}),name:"Pompa Acqua",isOn:(be=n==null?void 0:n.switches)==null?void 0:be.pump_on,onToggle:re=>r("pump",re),disabled:s}),y.jsx(Mv,{icon:y.jsx(pz,{className:"text-orange-400"}),name:"Boiler",isOn:(he=n==null?void 0:n.switches)==null?void 0:he.boiler_on,onToggle:re=>r("boiler",re),disabled:s}),y.jsx(Mv,{icon:y.jsx(Oz,{className:"text-purple-400"}),name:"Lavatrice",isOn:(ze=n==null?void 0:n.switches)==null?void 0:ze.washing_machine_on,onToggle:re=>r("washer",re),disabled:s})]})]}),y.jsxs("div",{className:"space-y-3 pb-24 flex flex-col items-center w-full",children:[!h&&y.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:[y.jsxs("div",{className:"flex items-center justify-between gap-2 w-full",children:[y.jsxs("div",{className:"flex items-center gap-2 truncate",children:[y.jsx(iz,{size:14,className:`${((ut=n==null?void 0:n.anchor)==null?void 0:ut.status)==="LOCKED"?"text-cyan-400":((Ge=n==null?void 0:n.anchor)==null?void 0:Ge.status)==="DRAGGING"||((vt=n==null?void 0:n.anchor)==null?void 0:vt.status)==="DRIFTING"?"text-red-500 animate-pulse":((hn=n==null?void 0:n.anchor)==null?void 0:hn.status)==="LEARNING"||((On=n==null?void 0:n.anchor)==null?void 0:On.status)==="SETTLING"?"text-yellow-400 animate-spin-slow":"text-green-400"}`}),y.jsx("span",{className:"text-[11px] font-black uppercase tracking-widest text-white font-mono leading-none whitespace-nowrap truncate",children:((Jn=n==null?void 0:n.anchor)==null?void 0:Jn.description)||"In Navigazione"})]}),((Qt=n==null?void 0:n.trip)==null?void 0:Qt.anchor_time)&&n.trip.anchor_time!=="0m"&&y.jsxs("span",{className:"text-[10px] font-black font-mono text-cyan-400 bg-white/5 px-2 py-0.5 rounded-full border border-white/10 flex-shrink-0",children:["⏱️ ",n.trip.anchor_time]})]}),((Tn=n==null?void 0:n.anchor)==null?void 0:Tn.lat)&&y.jsx("div",{className:"w-full flex items-center justify-between mt-0.5 border-b border-white/5 pb-2 select-none",children:y.jsx("div",{onClick:re=>{var mn,ct,Te,It,vn,Sr,en;if(re.stopPropagation(),!((mn=n==null?void 0:n.anchor)!=null&&mn.status))return;const gt=n.anchor.status==="LOCKED"||n.anchor.status==="DRAGGING"||n.anchor.status==="DRIFTING"||n.anchor.status==="LEARNING"?`⛵ ROTEVISTA: [${n.anchor.description||n.anchor.status}] | D: ${((ct=n.anchor.boat_dist)==null?void 0:ct.toFixed(1))||"0.0"}m | ${ph(n.anchor.lat,!0)} ${ph(n.anchor.lon,!1)} | R: ${((Te=n.anchor.radius)==null?void 0:Te.toFixed(0))||"0"}m | Prec: ±${((It=n.anchor.std_dev)==null?void 0:It.toFixed(1))||"0.0"}m | Fondale: ${((vn=n.anchor.depth)==null?void 0:vn.toFixed(1))||"0.0"}m | Catena: ${((Sr=n.anchor.chain)==null?void 0:Sr.toFixed(0))||"0"}m | Volvo: ${n.anchor.engine_on?"ON":"OFF"} (${((en=n.anchor.engine_v)==null?void 0:en.toFixed(1))||"0.0"}V)${n.anchor.score>0?` [Score: ${n.anchor.score}/70]`:""}`:`⛵ ROTEVISTA: ${n.anchor.description||n.anchor.status}`;sB(gt,()=>{w(!0),setTimeout(()=>w(!1),2e3)})},className:"cursor-pointer select-none text-[10px] font-mono tracking-tight uppercase font-black leading-none",title:"Tocca per copiare il report telemetrico negli appunti",children:v?y.jsx("span",{className:"text-green-400 font-bold block",children:"✓ Copiato!"},"copied-feedback"):y.jsxs("span",{className:"text-gray-400 hover:text-white block",children:["📌 Posiz: ",ph(n.anchor.lat,!0)," ",ph(n.anchor.lon,!1)]},"coords-display")})}),((kt=n==null?void 0:n.anchor)==null?void 0:kt.status)&&((dn=n==null?void 0:n.anchor)==null?void 0:dn.status)!=="IN_PORTO"&&!((Ut=n==null?void 0:n.anchor)!=null&&Ut.description&&((Ho=(br=n==null?void 0:n.anchor)==null?void 0:br.description)!=null&&Ho.includes("Porto")))&&y.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?y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"flex flex-col",children:[y.jsx("span",{className:"text-[7.5px] font-black uppercase text-gray-400 tracking-wider",children:"Distanza"}),y.jsx("span",{className:"text-sm font-black font-mono mt-0.5 text-gray-500",children:"--"})]}),y.jsxs("div",{className:"flex flex-col border-l border-r border-white/5",children:[y.jsx("span",{className:"text-[7.5px] font-black uppercase text-cyan-400 tracking-wider",children:"Raggio Previsto"}),y.jsxs("span",{className:"text-sm font-black font-mono mt-0.5 text-cyan-400",children:[((Go=n.anchor.radius)==null?void 0:Go.toFixed(0))||"0",y.jsx("span",{className:"text-[10px] font-bold text-gray-400 ml-0.5",children:"m"})]})]}),y.jsxs("div",{className:"flex flex-col font-mono",children:[y.jsx("span",{className:"text-[7.5px] font-black uppercase text-gray-400 tracking-wider",children:"Spazio in Baia"}),y.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"?y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"flex flex-col font-mono items-center justify-center",children:[y.jsx("span",{className:"text-[7.5px] font-black uppercase text-cyan-400 tracking-wider",children:"Velocità (SOG)"}),y.jsxs("span",{className:"text-base font-black mt-0.5 text-cyan-400 leading-none",children:[(((Zo=n==null?void 0:n.anchor)==null?void 0:Zo.sog)!==void 0?n.anchor.sog:((Jt=n==null?void 0:n.gps)==null?void 0:Jt.sog)!==void 0?n.gps.sog:(ue=n==null?void 0:n.gps)!=null&&ue.speed?parseFloat(n.gps.speed)*1.94384:0).toFixed(1),y.jsx("span",{className:"text-[10px] font-bold ml-0.5",children:"kn"})]})]}),y.jsxs("div",{className:"flex flex-col font-mono items-center justify-center border-l border-white/5",children:[y.jsx("span",{className:"text-[7.5px] font-black uppercase text-gray-300 tracking-wider",children:"Prua (HDG)"}),y.jsxs("span",{className:"text-base font-black text-white mt-0.5 leading-none",children:[Math.round(((wr=n==null?void 0:n.environment)==null?void 0:wr.heading)!==void 0?n.environment.heading:((Rn=n==null?void 0:n.gps)==null?void 0:Rn.cog)||0),"°"]})]})]}):y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"flex flex-col",children:[y.jsx("span",{className:"text-[7.5px] font-black uppercase text-gray-400 tracking-wider",children:"Distanza"}),y.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:[((Fr=n.anchor.boat_dist)==null?void 0:Fr.toFixed(1))||"0.0",y.jsx("span",{className:"text-[10px] font-bold text-gray-400 ml-0.5",children:"m"})]})]}),y.jsxs("div",{className:"flex flex-col border-l border-r border-white/5",children:[y.jsx("span",{className:"text-[7.5px] font-black uppercase text-gray-400 tracking-wider",children:"Raggio Guardia"}),y.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:[((Vr=n.anchor.radius)==null?void 0:Vr.toFixed(0))||"0",y.jsx("span",{className:"text-[10px] font-bold text-gray-400 ml-0.5",children:"m"})]})]}),y.jsxs("div",{className:"flex flex-col font-mono",children:[y.jsx("span",{className:"text-[7.5px] font-black uppercase text-gray-400 tracking-wider",children:(er=n==null?void 0:n.trip)!=null&&er.anchor_time&&((Ko=n==null?void 0:n.trip)==null?void 0:Ko.anchor_time)!=="0m"?"Tempo Sosta":"Precisione"}),y.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:(ci=n==null?void 0:n.trip)!=null&&ci.anchor_time&&((zl=n==null?void 0:n.trip)==null?void 0:zl.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"})]})]})}),((yf=n==null?void 0:n.anchor)==null?void 0:yf.status)&&((xf=n==null?void 0:n.anchor)==null?void 0:xf.status)!=="IN_PORTO"&&!((_f=n==null?void 0:n.anchor)!=null&&_f.description&&((Bl=(bf=n==null?void 0:n.anchor)==null?void 0:bf.description)!=null&&Bl.includes("Porto")))&&y.jsxs("div",{className:"flex justify-between items-start w-full font-mono border-t border-white/5 pt-2 mt-0.5",children:[y.jsxs("div",{className:"flex items-start gap-4 flex-shrink-0",children:[y.jsxs("div",{className:"flex flex-col items-start leading-none",children:[y.jsx("span",{className:"text-[7.5px] font-black uppercase text-gray-400 tracking-wider",children:"Fondo"}),y.jsx("span",{className:"text-xs font-black text-white mt-1",children:((wf=n==null?void 0:n.anchor)==null?void 0:wf.depth)>0?`${n.anchor.depth.toFixed(1)}m`:"--"})]}),(((qo=n==null?void 0:n.anchor)==null?void 0:qo.chain)>0&&((Sf=n==null?void 0:n.anchor)==null?void 0:Sf.status)!=="MOVING"||((Pf=n==null?void 0:n.anchor)==null?void 0:Pf.status)==="MOVING"&&((Of=n==null?void 0:n.anchor)==null?void 0:Of.radius)>0&&((Tf=n==null?void 0:n.anchor)==null?void 0:Tf.chain)>0)&&y.jsxs("div",{className:"flex flex-col items-start leading-none border-l border-white/5 pl-3",children:[y.jsx("span",{className:"text-[7.5px] font-black uppercase text-gray-400 tracking-wider",children:((Af=n==null?void 0:n.anchor)==null?void 0:Af.status)==="MOVING"?"Suggerita":"Catena"}),y.jsxs("span",{className:"text-xs font-black text-white mt-1",children:[n.anchor.chain.toFixed(0),"m"]})]})]}),y.jsxs("div",{className:"flex flex-col items-end leading-none text-right pl-2 truncate flex-1",children:[y.jsx("span",{className:"text-[7.5px] font-black uppercase text-gray-400 tracking-wider",children:(Ga=n==null?void 0:n.anchor)!=null&&Ga.engine_on?"Motore":((Qi=n==null?void 0:n.anchor)==null?void 0:Qi.status)==="LEARNING"&&((Fl=n==null?void 0:n.anchor)!=null&&Fl.low_conf_reason)?"Nota":"Stato"}),y.jsx("div",{className:"mt-1",children:(Vl=n==null?void 0:n.anchor)!=null&&Vl.engine_on?y.jsxs("span",{className:"text-yellow-400 font-black text-xs whitespace-nowrap animate-pulse flex items-center gap-1",children:["⚡ Volvo: ",(Ji=n.anchor.engine_v)==null?void 0:Ji.toFixed(1),"V ",n.anchor.status!=="MOVING"&&n.anchor.score>0?`[${n.anchor.score}/70]`:""]}):((je=n==null?void 0:n.anchor)==null?void 0:je.status)==="LEARNING"&&((Ye=n==null?void 0:n.anchor)!=null&&Ye.low_conf_reason)?y.jsx("span",{className:"text-orange-400 font-bold text-[9.5px] tracking-tight whitespace-nowrap",children:n.anchor.low_conf_reason}):((Xo=n==null?void 0:n.anchor)==null?void 0:Xo.status)!=="MOVING"&&((fi=n==null?void 0:n.anchor)==null?void 0:fi.std_dev)>0?y.jsxs("span",{className:"text-gray-300 font-medium text-xs whitespace-nowrap",children:["Prec: ",y.jsxs("span",{className:"text-cyan-400 font-bold",children:["±",n.anchor.std_dev.toFixed(1),"m"]})]}):y.jsx("span",{className:"text-green-400 font-black text-xs uppercase whitespace-nowrap",children:"Ottima"})})]})]})]}),y.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:y.jsxs(LM,{center:O,zoom:B,maxZoom:22,style:{height:"100%",width:"100%"},zoomControl:!1,attributionControl:!1,children:[y.jsx(xy,{url:"https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}",maxZoom:22,maxNativeZoom:18,errorTileUrl:""}),y.jsx(aB,{coords:O,anchorCoords:(hi=n==null?void 0:n.anchor)!=null&&hi.lat&&((Za=n==null?void 0:n.anchor)!=null&&Za.lon)?[parseFloat(n.anchor.lat),parseFloat(n.anchor.lon)]:null,isAnchored:z,trailSegments:q,autoFollow:l,setAutoFollow:u,isMapFull:h,setIsMapFull:m,smartZoom:B,onZoomChange:Y}),((we=n==null?void 0:n.anchor)==null?void 0:we.lat)&&((at=n==null?void 0:n.anchor)==null?void 0:at.lon)&&n.anchor.radius>0&&n.anchor.status==="MOVING"&&y.jsx(wi,{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}}),((Ka=n==null?void 0:n.anchor)==null?void 0:Ka.lat)&&((Yo=n==null?void 0:n.anchor)==null?void 0:Yo.lon)&&n.anchor.radius>0&&(n.anchor.status==="LEARNING"||n.anchor.status==="SETTLING")&&y.jsx(wi,{center:[n.anchor.lat,n.anchor.lon],radius:n.anchor.radius,pathOptions:{color:"#f97316",fillOpacity:0,weight:1.5,dashArray:"6, 10",interactive:!1}}),((pn=n==null?void 0:n.anchor)==null?void 0:pn.lat)&&((Ef=n==null?void 0:n.anchor)==null?void 0:Ef.lon)&&n.anchor.radius>0&&(n.anchor.status==="LOCKED"||n.anchor.status==="DRAGGING"||n.anchor.status==="DRIFTING")&&y.jsx(wi,{center:[n.anchor.lat,n.anchor.lon],radius:n.anchor.radius,pathOptions:{color:n.anchor.status==="DRAGGING"||n.anchor.status==="DRIFTING"?"#ef4444":"#22d3ee",fillOpacity:0,weight:1.5,dashArray:"8, 12",interactive:!1}}),Yz(R).map(re=>{const Fe=qz(H,re.r);return y.jsxs(I.Fragment,{children:[y.jsx(wi,{center:[H.lat,H.lon],radius:re.r,pathOptions:{color:"#ffffff",weight:1,opacity:.55,fillOpacity:0,dashArray:"4, 12",interactive:!1}}),y.jsx(Fn,{position:Fe,icon:new cn.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%;">${re.label}</div>`,className:"range-label-marker",iconSize:[50,10],iconAnchor:[53,5]}),interactive:!1})]},`ring-${re.r}`)}),K.map(re=>{var Te;const Fe=re.isMoving!==void 0?re.isMoving:!re.isAnchored&&re.sog>=.3,gt=eB(re),mn=re.risk==="RED"||re.risk==="ORANGE",ct=re.isTactical!==!1&&(re.isTactical||mn||R>=15);return y.jsxs(I.Fragment,{children:[ct&&re.trail&&re.trail.length>=2&&y.jsx(ma,{positions:re.trail.map(It=>[It.lat,It.lon]),color:"#ffffff",weight:1.5,opacity:.4,dashArray:"2, 6",interactive:!1}),Fe?y.jsxs(I.Fragment,{children:[ct&&y.jsx(ma,{positions:[[re.lat,re.lon],Qz(re.lat,re.lon,re.cog,re.sog)],pathOptions:{color:gt,weight:2.5,opacity:.8,dashArray:"6, 6"},interactive:!1}),y.jsx(Fn,{position:[re.lat,re.lon],icon:tB(re.cog,gt,R),interactive:!1}),ct&&y.jsx(Fn,{position:[re.lat,re.lon],icon:rB(re.name,re.sog,re.cpa,re.tcpa,re.crossDir,re.risk,re.riskMsg,re.age,gt,re.type,R),interactive:!1})]}):y.jsxs(I.Fragment,{children:[y.jsx(Fn,{position:[re.lat,re.lon],icon:Jz(re.risk),interactive:!1}),ct&&y.jsx(Fn,{position:[re.lat,re.lon],icon:nB(re.name,re.risk,re.riskMsg,re.dist,re.age,re.type,R),interactive:!1}),re.risk==="RED"&&re.riskMsg==="SOPRA SUA ANCORA!"&&re.anchorLat&&re.anchorLon&&y.jsxs(I.Fragment,{children:[y.jsx(wi,{center:[re.anchorLat,re.anchorLon],radius:((Te=n==null?void 0:n.anchor)==null?void 0:Te.radius)||15,pathOptions:{color:"#ef4444",weight:1,opacity:.5,fillColor:"#ef4444",fillOpacity:.05,dashArray:"6, 12",interactive:!1}}),y.jsx(Fn,{position:[re.anchorLat,re.anchorLon],icon:Kz,zIndexOffset:400,interactive:!1})]})]})]},re.id)}),((Qo=n==null?void 0:n.anchor)==null?void 0:Qo.lat)&&((Ur=n==null?void 0:n.anchor)==null?void 0:Ur.lon)&&n.anchor.status!=="MOVING"&&y.jsx(Fn,{position:[n.anchor.lat,n.anchor.lon],icon:Zz(Z),zIndexOffset:500}),y.jsx(Fn,{position:O,icon:Gz,zIndexOffset:1e3})]})}),!h&&(()=>{var qa,Wr,Xa,eo,St,Hr,Wl,Hl,Mf,Gl,Ya,Cf,Zl,Ee,jf,En,to,Kl,Nf,Qa;const re=((qa=n==null?void 0:n.trip)==null?void 0:qa.seasons)||{},Fe=Object.keys(re).map(Number).sort((no,ro)=>ro-no),gt=new Date().getFullYear();let mn=gt;if(!re[gt]||(re[gt].total_nm||0)<20){const no=Fe.find(ro=>{var Ja;return ro<gt&&(((Ja=re[ro])==null?void 0:Ja.total_nm)||0)>=20});no&&(mn=no)}const ct=_||mn,Te=re[ct],It=no=>{if(no.stopPropagation(),Fe.length<=1)return;const Ja=(Fe.indexOf(ct)+1)%Fe.length;x(Fe[Ja])},vn=(((Wr=n==null?void 0:n.trip)==null?void 0:Wr.anchor_sec)||0)>259200,en=(b||(vn&&Te?"season":"leg"))==="season"&&!!Te,di=parseFloat((Xa=n==null?void 0:n.trip)==null?void 0:Xa.engine_nm)||0,gn=parseFloat((eo=n==null?void 0:n.trip)==null?void 0:eo.sail_nm)||0,An=di+gn,tr=An>0?Math.min(100,Math.round(di/An*100)):0,Jo=An>0?Math.min(100,Math.round(gn/An*100)):0,_e=(Te==null?void 0:Te.sail_nm)||0,Wt=(Te==null?void 0:Te.engine_nm)||0,Ne=(Te==null?void 0:Te.total_nm)||_e+Wt||0,ea=Ne>0?Math.min(100,Math.round(_e/Ne*100)):0,Ul=Ne>0?Math.min(100,Math.round(Wt/Ne*100)):0;return!(en||((St=n==null?void 0:n.trip)==null?void 0:St.total_nav_time)&&n.trip.total_nav_time!=="0m")&&!Te?null:y.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 transition-all",children:[y.jsxs("div",{onClick:()=>P(en?"leg":"season"),className:"flex justify-between items-center border-b border-white/5 pb-1.5 cursor-pointer select-none group",title:"Tocca a sinistra per cambiare anno, tocca a destra per passare a Tratta/Stagione",children:[y.jsxs("div",{className:"flex items-center gap-1.5 text-[9px] font-black text-gray-400 uppercase tracking-widest group-hover:text-white",children:[y.jsx("span",{children:en?"🌍":"⏱️"}),en?y.jsxs("span",{className:"flex items-center gap-1",children:["Statistiche Stagione",y.jsxs("button",{onClick:It,className:"bg-white/10 hover:bg-cyan-500/20 text-cyan-300 font-black px-1.5 py-0.5 rounded-md border border-white/10 ml-0.5 flex items-center gap-0.5 transition-colors",title:"Clicca per passare all'anno precedente",children:[ct," ",y.jsx("span",{className:"text-[7px]",children:"▾"})]})]}):"Statistiche Ultima Navigazione"]}),y.jsx("span",{className:"text-[8px] font-black text-cyan-400 uppercase tracking-tighter bg-white/5 px-2 py-0.5 rounded-full border border-white/10",children:en?"Mostra Tratta ➔":`Stagione ${ct} ➔`})]}),en?y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"grid grid-cols-[62px_48px_1fr_auto] items-center text-[10px] leading-none gap-1 py-0.5",children:[y.jsxs("span",{className:"flex items-center gap-1 text-cyan-400 font-bold truncate",children:[y.jsx("span",{className:"text-xs",children:"⛵"})," Vela"]}),y.jsxs("span",{className:"text-white font-medium",children:[((Hr=Te.sail_hours)==null?void 0:Hr.toFixed(0))||0,"h"]}),y.jsxs("span",{className:"text-cyan-400 font-bold truncate",children:[((Wl=Te.sail_nm)==null?void 0:Wl.toFixed(1))||"0"," NM ",y.jsxs("span",{className:"text-gray-300 font-bold text-[9.5px]",children:["(",ea,"%)"]})]}),y.jsx("span",{className:"text-right font-mono text-[9.5px] text-gray-400 whitespace-nowrap",children:y.jsxs("span",{className:"text-cyan-300 font-bold",children:["Ø ",Te.sail_avg_speed||"--"," kn"]})})]}),y.jsxs("div",{className:"grid grid-cols-[62px_48px_1fr_auto] items-center text-[10px] leading-none gap-1 py-0.5",children:[y.jsxs("span",{className:"flex items-center gap-1 text-yellow-400 font-bold truncate",children:[y.jsx("span",{className:"text-xs",children:"🚤"})," Motore"]}),y.jsxs("span",{className:"text-white font-medium",children:[((Hl=Te.engine_hours)==null?void 0:Hl.toFixed(0))||0,"h"]}),y.jsxs("span",{className:"text-yellow-400 font-bold truncate",children:[((Mf=Te.engine_nm)==null?void 0:Mf.toFixed(1))||"0"," NM ",y.jsxs("span",{className:"text-gray-300 font-bold text-[9.5px]",children:["(",Ul,"%)"]})]}),y.jsx("span",{className:"text-right font-mono text-[9.5px] text-gray-400 whitespace-nowrap",children:y.jsxs("span",{className:"text-yellow-300 font-bold",children:["Ø ",Te.engine_avg_speed||"--"," kn"]})})]}),y.jsxs("div",{className:"grid grid-cols-[62px_48px_1fr_auto] items-center text-[10px] leading-none gap-1 border-t border-white/5 pt-2 mt-1",children:[y.jsxs("span",{className:"flex items-center gap-1 text-gray-400 font-bold truncate",children:[y.jsx("span",{className:"text-xs",children:"🌊"})," Totale"]}),y.jsxs("span",{className:"text-gray-200 font-medium",children:[(Te.sail_hours+Te.engine_hours).toFixed(0),"h"]}),y.jsxs("span",{className:"text-white font-black truncate text-xs",children:[Ne.toFixed(1)," NM"]}),y.jsxs("span",{className:"text-right font-mono text-[9.5px] text-gray-300 whitespace-nowrap",children:[y.jsxs("span",{className:"text-green-400 font-bold",children:["Ø ",Te.total_avg_speed||"--"," kn"]}),y.jsxs("span",{className:"ml-1.5 text-gray-400 font-normal",children:["(",Te.trips||0," tappe)"]})]})]})]}):y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"grid grid-cols-[62px_48px_1fr_auto] items-center text-[10px] leading-none gap-1 py-0.5",children:[y.jsxs("span",{className:"flex items-center gap-1 text-cyan-400 font-bold truncate",children:[y.jsx("span",{className:"text-xs",children:"⛵"})," Vela"]}),y.jsx("span",{className:"text-white font-medium",children:((Gl=n==null?void 0:n.trip)==null?void 0:Gl.sail_time)||"0m"}),y.jsxs("span",{className:"text-cyan-400 font-bold truncate",children:[((Ya=n==null?void 0:n.trip)==null?void 0:Ya.sail_nm)||"0.00 NM"," ",y.jsxs("span",{className:"text-gray-300 font-bold text-[9.5px]",children:["(",Jo,"%)"]})]}),y.jsxs("span",{className:"text-right font-mono text-[9.5px] text-gray-400 whitespace-nowrap",children:[y.jsxs("span",{className:"text-cyan-300 font-bold",children:["Ø ",((Cf=n==null?void 0:n.trip)==null?void 0:Cf.sail_avg_kn)||"--"]}),((Zl=n==null?void 0:n.trip)==null?void 0:Zl.sail_max_kn)&&n.trip.sail_max_kn!=="--"&&y.jsxs("span",{className:"ml-1.5 text-gray-300 font-normal",children:["Max ",y.jsx("strong",{className:"text-cyan-300 font-bold",children:n.trip.sail_max_kn})]})]})]}),y.jsxs("div",{className:"grid grid-cols-[62px_48px_1fr_auto] items-center text-[10px] leading-none gap-1 py-0.5",children:[y.jsxs("span",{className:"flex items-center gap-1 text-yellow-400 font-bold truncate",children:[y.jsx("span",{className:"text-xs",children:"🚤"})," Motore"]}),y.jsx("span",{className:"text-white font-medium",children:((Ee=n==null?void 0:n.trip)==null?void 0:Ee.engine_time)||"0m"}),y.jsxs("span",{className:"text-yellow-400 font-bold truncate",children:[((jf=n==null?void 0:n.trip)==null?void 0:jf.engine_nm)||"0.00 NM"," ",y.jsxs("span",{className:"text-gray-300 font-bold text-[9.5px]",children:["(",tr,"%)"]})]}),y.jsx("span",{className:"text-right font-mono text-[9.5px] text-gray-400 whitespace-nowrap",children:y.jsxs("span",{className:"text-yellow-300 font-bold",children:["Ø ",((En=n==null?void 0:n.trip)==null?void 0:En.engine_avg_kn)||"--"]})})]}),y.jsxs("div",{className:"grid grid-cols-[62px_48px_1fr_auto] items-center text-[10px] leading-none gap-1 border-t border-white/5 pt-2 mt-1",children:[y.jsxs("span",{className:"flex items-center gap-1 text-gray-400 font-bold truncate",children:[y.jsx("span",{className:"text-xs",children:"⏱️"})," Totale"]}),y.jsx("span",{className:"text-gray-200 font-medium",children:((to=n==null?void 0:n.trip)==null?void 0:to.total_nav_time)||"0m"}),y.jsx("span",{className:"text-white font-black truncate",children:((Kl=n==null?void 0:n.trip)==null?void 0:Kl.total_nm)||"0.00 NM"}),y.jsx("span",{className:"text-right font-mono text-[9.5px] text-gray-300 whitespace-nowrap",children:y.jsxs("span",{className:"text-white font-bold",children:["Ø ",((Nf=n==null?void 0:n.trip)==null?void 0:Nf.total_avg_kn)||"--"]})})]})]}),y.jsxs("div",{className:"flex justify-between items-center text-[9.5px] border-t border-white/5 pt-2 mt-0.5 text-gray-400",children:[y.jsxs("span",{className:"flex items-center gap-1.5 font-bold uppercase tracking-wider text-gray-300",children:[y.jsx("span",{children:"⚙️"})," Contaore Motore"]}),y.jsxs("span",{className:"font-black font-mono text-yellow-400 text-[11px] tracking-tight",children:[((Qa=n==null?void 0:n.trip)==null?void 0:Qa.tot_eng_h)||"2310.40"," ",y.jsx("span",{className:"text-[9px] font-bold text-gray-300 ml-0.5",children:"h"})]})]})]})})()]})]}):null},BS=({icon:e,title:t,value:n,sub:r})=>y.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:[y.jsxs("div",{className:"flex flex-col",children:[y.jsxs("div",{className:"flex items-center gap-1 text-gray-300 text-[9px] font-black tracking-widest uppercase whitespace-nowrap",children:[e," ",t]}),y.jsx("div",{className:"text-3xl font-black mt-1 tracking-tighter",children:n})]}),y.jsx("div",{className:"text-[18px] text-gray-200 font-black uppercase tracking-tight text-right pl-2 leading-tight",children:r})]}),mh=({icon:e,title:t,val:n,color:r,valueColor:i="text-white"})=>y.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:[y.jsx("div",{className:r,children:e}),y.jsx("div",{className:"text-[8px] font-black text-gray-300 uppercase tracking-tighter mt-1",children:t}),y.jsxs("div",{className:`text-lg font-black ${i}`,children:[(n==null?void 0:n.toFixed(1))||"-","°"]})]}),Mv=({icon:e,name:t,isOn:n,onToggle:r,disabled:i})=>y.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:[y.jsxs("div",{className:"flex items-center gap-3",children:[I.cloneElement(e,{size:20,className:n?e.props.className:"text-gray-700 opacity-50"}),y.jsx("span",{className:"text-sm font-bold text-white tracking-tight uppercase",children:t})]}),y.jsxs("label",{className:"relative inline-flex items-center cursor-pointer",children:[y.jsx("input",{type:"checkbox",className:"sr-only peer",checked:n||!1,onChange:o=>r(o.target.checked),disabled:i}),y.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"})]})]}),uB=(e,t="#38bdf8")=>new cn.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]}),cB=(e,t,n=14)=>{const i=Uu(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 cn.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 cn.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]})},FS=(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]},Uu=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"}},fB=e=>e>=7.5?12:e>=3.5?14:e>=1.5?15:17,vh=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)`},Wu=e=>{if(e==null||isNaN(e))return"--";const t=Math.round(e);return t<1852?`${t}m`:`${(e/1852).toFixed(1)} NM`},gh=(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}`},hB=e=>{if(!e)return"";const t=String(e).split(":").pop();if(!t||t.length<3)return"";const n=parseInt(t.substring(0,3),10);return{247:"🇮🇹 ITA",237:"🇬🇷 GRC",239:"🇬🇷 GRC",240:"🇬🇷 GRC",241:"🇬🇷 GRC",238:"🇭🇷 CRO",278:"🇸🇮 SLO",262:"🇲🇪 MNE",201:"🇦🇱 ALB",271:"🇹🇷 TUR",209:"🇨🇾 CYP",210:"🇨🇾 CYP",212:"🇨🇾 CYP",214:"🇲🇩 MDA",215:"🇲🇹 MLT",248:"🇲🇹 MLT",249:"🇲🇹 MLT",256:"🇲🇹 MLT",224:"🇪🇸 ESP",225:"🇪🇸 ESP",226:"🇫🇷 FRA",227:"🇫🇷 FRA",228:"🇫🇷 FRA",254:"🇲🇨 MCO",255:"🇵🇹 POR",263:"🇵🇹 POR",268:"🇸🇲 SMR",232:"🇬🇧 GBR",233:"🇬🇧 GBR",234:"🇬🇧 GBR",235:"🇬🇧 GBR",236:"🇬🇮 GIB",250:"🇮🇪 IRL",269:"🇨🇭 SUI",203:"🇦🇹 AUT",211:"🇩🇪 DEU",218:"🇩🇪 DEU",205:"🇧🇪 BEL",244:"🇳🇱 NLD",245:"🇳🇱 NLD",246:"🇳🇱 NLD",257:"🇳🇴 NOR",258:"🇳🇴 NOR",259:"🇳🇴 NOR",219:"🇩🇰 DNK",220:"🇩🇰 DNK",265:"🇸🇪 SWE",266:"🇸🇪 SWE",230:"🇫🇮 FIN",251:"🇮🇸 ISL",261:"🇵🇱 POL",272:"🇺🇦 UKR",273:"🇷🇺 RUS",264:"🇷🇴 ROU",207:"🇧🇬 BGR",253:"🇱🇺 LUX",243:"🇭🇺 HUN",270:"🇨🇿 CZE",267:"🇸🇰 SVK",276:"🇪🇪 EST",275:"🇱🇻 LVA",277:"🇱🇹 LTU",428:"🇮🇱 ISR",622:"🇪🇬 EGY",672:"🇹🇳 TUN",605:"🇩🇿 DZA",642:"🇱🇾 LBY",242:"🇲🇦 MAR",450:"🇱🇧 LBN",468:"🇸🇾 SYR",319:"🇰🇾 CYM",308:"🇧🇸 BHS",309:"🇧🇸 BHS",311:"🇧🇸 BHS",378:"🇻🇬 VGB",310:"🇧🇲 BMU",375:"🇻🇨 VCT",376:"🇻🇨 VCT",377:"🇻🇨 VCT",312:"🇧🇿 BLZ",304:"🇦🇬 ATG",305:"🇦🇬 ATG",306:"🇨🇼 CUW",341:"🇰🇳 KNA",325:"🇩🇲 DMA",330:"🇬🇩 GRD",351:"🇵🇦 PAN",352:"🇵🇦 PAN",353:"🇵🇦 PAN",354:"🇵🇦 PAN",355:"🇵🇦 PAN",356:"🇵🇦 PAN",357:"🇵🇦 PAN",370:"🇵🇦 PAN",371:"🇵🇦 PAN",372:"🇵🇦 PAN",373:"🇵🇦 PAN",636:"🇱🇷 LBR",538:"🇲🇭 MHL",518:"🇨🇰 COK",576:"🇻🇺 VUT",577:"🇻🇺 VUT",664:"🇸🇨 SYC",316:"🇨🇦 CAN",338:"🇺🇸 USA",366:"🇺🇸 USA",367:"🇺🇸 USA",368:"🇺🇸 USA",369:"🇺🇸 USA",477:"🇭🇰 HKG",563:"🇸🇬 SGP",564:"🇸🇬 SGP",565:"🇸🇬 SGP",566:"🇸🇬 SGP",503:"🇦🇺 AUS",512:"🇳🇿 NZL",431:"🇯🇵 JPN",432:"🇯🇵 JPN",440:"🇰🇷 KOR",441:"🇰🇷 KOR",412:"🇨🇳 CHN",413:"🇨🇳 CHN",414:"🇨🇳 CHN",470:"🇦🇪 ARE",403:"🇸🇦 SAU"}[n]||""},dB=e=>{if(!e)return"";try{const t=new Date(e);if(!isNaN(t.getTime())){const n=t.getDate(),i=["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"][t.getMonth()],o=String(t.getHours()).padStart(2,"0"),s=String(t.getMinutes()).padStart(2,"0");return`${n} ${i}, ${o}:${s}`}}catch{}return e},pB=e=>new cn.DivIcon({html:`
|
|
298
|
+
<div style="
|
|
299
|
+
background: rgba(15, 23, 42, 0.88);
|
|
300
|
+
backdrop-filter: blur(8px);
|
|
301
|
+
border: 1px solid rgba(56, 189, 248, 0.45);
|
|
302
|
+
border-radius: 8px;
|
|
303
|
+
padding: 2px 7px;
|
|
304
|
+
font-size: 9.5px;
|
|
305
|
+
font-weight: 900;
|
|
306
|
+
font-family: monospace;
|
|
307
|
+
color: #38bdf8;
|
|
308
|
+
box-shadow: 0 4px 12px rgba(0,0,0,0.6);
|
|
309
|
+
white-space: nowrap;
|
|
310
|
+
display: flex;
|
|
311
|
+
align-items: center;
|
|
312
|
+
gap: 4px;
|
|
313
|
+
pointer-events: none;
|
|
314
|
+
text-transform: uppercase;
|
|
315
|
+
letter-spacing: 0.2px;
|
|
316
|
+
">
|
|
317
|
+
<span>🏛️</span>
|
|
318
|
+
<span>Porto (${e})</span>
|
|
319
|
+
</div>
|
|
320
|
+
`,className:"harbor-cluster-badge-marker",iconSize:[90,22],iconAnchor:[45,11]}),mB=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"}],vB=(e,t)=>{const n=Math.PI/180,r=-t/(111139*Math.cos(e.lat*n));return[e.lat,e.lon+r]},gB=e=>{const t=e.risk==="RED",n=t?"#ef4444":"#f97316",r=Uu(e.type),o=(e.isMoving!==void 0?e.isMoving:!e.isAnchored&&e.sog>=.3)?`${e.sog} kn • ${e.cog}°`:e.inCluster?"IN PORTO":"ALL'ANCORA";let s="";if(t){const l=e.riskMsg||"COLLISIONE!",u=e.tcpa!==null&&e.tcpa!==void 0&&e.tcpa>=0?` in ${Math.round(e.tcpa)}m`:"",f=e.cpa!==null&&e.cpa!==void 0?` • CPA: ${Wu(e.cpa)}`:"";s=`🚨 ${l}${f}${u}`}else{const l=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: ${Wu(e.cpa)}`:`Dist: ${Wu(e.dist)}`}${l}`}return new cn.DivIcon({html:`
|
|
321
|
+
<div style="
|
|
322
|
+
display: inline-flex;
|
|
323
|
+
flex-direction: row;
|
|
324
|
+
align-items: center;
|
|
325
|
+
gap: 6px;
|
|
326
|
+
background: rgba(15, 23, 42, 0.90);
|
|
327
|
+
backdrop-filter: blur(6px);
|
|
328
|
+
border: 1px solid ${t?"rgba(239, 68, 68, 0.45)":"rgba(249, 115, 22, 0.45)"};
|
|
329
|
+
border-radius: 10px;
|
|
330
|
+
padding: 4px 8px;
|
|
331
|
+
box-shadow: 0 4px 14px rgba(0,0,0,0.55);
|
|
332
|
+
white-space: nowrap;
|
|
333
|
+
font-family: monospace;
|
|
334
|
+
pointer-events: auto;
|
|
335
|
+
cursor: pointer;
|
|
336
|
+
" title="Tocca per nascondere etichetta (Acknowledge)">
|
|
337
|
+
<span style="font-size: 18px; line-height: 1;">${r.emoji}</span>
|
|
338
|
+
<div style="display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2;">
|
|
339
|
+
<span style="font-size: 13.5px; font-weight: 900; color: ${n}; text-transform: uppercase; letter-spacing: -0.2px;">
|
|
340
|
+
${e.name||"Sconosciuto"}
|
|
341
|
+
</span>
|
|
342
|
+
<span style="font-size: 10px; font-weight: 700; color: #cbd5e1; margin-top: 1px;">
|
|
343
|
+
${o}
|
|
344
|
+
</span>
|
|
345
|
+
<span style="font-size: 11px; font-weight: 900; color: ${n}; margin-top: 1px;">
|
|
346
|
+
${s}
|
|
347
|
+
</span>
|
|
348
|
+
</div>
|
|
349
|
+
</div>
|
|
350
|
+
`,className:"ais-threat-floating-label",iconSize:[320,56],iconAnchor:[-14,28]})},yB=({centerCoords:e,hasValidGps:t,autoCenter:n,setAutoCenter:r,smartZoom:i,flyTarget:o,isTargetSelected:s,cameraSnapshotRef:l,restoreSignal:u,onZoomChange:f,onBoundsChange:d})=>{const h=S_(),m=j.useRef(!1);j.useRef(!1);const v=j.useRef(!0),w=j.useCallback(()=>{f&&f(h.getZoom()),d&&d(h.getBounds().pad(.15))},[h,f,d]);$M({dragstart:()=>{h.stop(),r(!1)},zoomstart:_=>{_&&_.originalEvent&&(m.current=!0)},zoomend:w,moveend:w}),j.useEffect(()=>{w()},[w]);const b=j.useRef(null);j.useEffect(()=>{if(!n||e[0]===0||s)return;if(v.current&&t&&!o){h.setView(e,i,{animate:!1}),b.current=e,v.current=!1,w();return}const _=h.getZoom();if(!m.current&&_!==i){h.flyTo(e,i,{duration:.8}),b.current=e;return}b.current||(b.current=e);const x=(e[0]-b.current[0])*111139,S=(e[1]-b.current[1])*111139*Math.cos(e[0]*Math.PI/180),E=Math.sqrt(x*x+S*S),O=_>=16?25:_>=14?45:100;E>=O&&(h.panTo(e,{animate:!0,duration:.8,easeLinearity:.25}),b.current=e)},[n,e,t,i,s,h,w]),j.useEffect(()=>{if(o&&o.lat&&o.lon){const _=Math.max(h.getZoom(),15);h.flyTo([parseFloat(o.lat),parseFloat(o.lon)],_,{duration:.8})}},[o,h]),j.useEffect(()=>{if(u&&l.current){const _=l.current;h.flyTo(_.center,_.zoom,{duration:.7}),r(_.autoCenter),l.current=null}},[u,l,h,r]);const P=_=>{m.current=!0;const x=h.getZoom(),S=_==="in"?x+1:x-1;h.setZoom(S),f&&f(S)};return y.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:[y.jsx("button",{onClick:()=>P("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:y.jsx(PM,{size:20})}),y.jsx("button",{onClick:()=>P("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:y.jsx(wM,{size:20})}),y.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:y.jsx(OM,{size:20})})]})},xB=()=>{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]},_B=({manager:e,isNightMode:t=!1,initialMmsi:n=null})=>{var Se,We,He,ot,Et,Pn,Dn,Vt,Yt,Qn,zr,Br,li,Zi,Ki,Uo,qi,Xi,Wo,Yi,ui;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),[w,b]=j.useState(!1),[P,_]=j.useState(!1),[x,S]=j.useState(!1),[E,O]=j.useState({});j.useEffect(()=>{var G,be;(G=r==null?void 0:r.gps)!=null&&G.lat&&((be=r==null?void 0:r.gps)!=null&&be.lon)&&localStorage.setItem("rotevista_last_known_gps",JSON.stringify({lat:r.gps.lat,lon:r.gps.lon}))},[(Se=r==null?void 0:r.gps)==null?void 0:Se.lat,(We=r==null?void 0:r.gps)==null?void 0:We.lon]);const A=(G,be)=>{if(!G)return;if(navigator.clipboard&&window.isSecureContext){navigator.clipboard.writeText(G).then(()=>{be&&be()}).catch(()=>{});return}const he=document.createElement("textarea");he.value=G,he.setAttribute("readonly",""),he.style.position="absolute",he.style.left="-9999px",he.style.top=`${window.pageYOffset||document.documentElement.scrollTop||0}px`,he.style.fontSize="12pt",he.style.opacity="0",document.body.appendChild(he),he.select(),he.setSelectionRange(0,99999);try{document.execCommand("copy"),be&&be()}catch(ze){console.error("Copia fallita",ze)}document.body.removeChild(he)},M=(G,be)=>{const he=`${gh(G,!0)} ${gh(be,!1)}`;A(he,()=>{_(!0),setTimeout(()=>_(!1),2e3)})},C=G=>{A(G,()=>{b(!0),setTimeout(()=>b(!1),2e3)})},N=j.useRef(null),z=j.useRef(!1),[B,R]=j.useState(0),[Y,H]=j.useState(null),Z=!!((He=r==null?void 0:r.gps)!=null&&He.lat&&((ot=r==null?void 0:r.gps)!=null&&ot.lon)),K=j.useMemo(()=>xB(),[]),q=parseFloat((Et=r==null?void 0:r.gps)==null?void 0:Et.lat)||K[0],D=parseFloat((Pn=r==null?void 0:r.gps)==null?void 0:Pn.lon)||K[1],U=j.useMemo(()=>[q,D],[q,D]),V=((Dn=r==null?void 0:r.environment)==null?void 0:Dn.heading)||((Vt=r==null?void 0:r.gps)==null?void 0:Vt.cog)||0,ee=((Yt=r==null?void 0:r.anchor)==null?void 0:Yt.sog)!==void 0?r.anchor.sog:((Qn=r==null?void 0:r.gps)==null?void 0:Qn.sog)||0,te=j.useMemo(()=>fB(ee),[ee]),ae=j.useMemo(()=>{var be;return[...((be=r==null?void 0:r.environment)==null?void 0:be.ais_targets)||[]].sort((he,ze)=>{const ut={RED:3,ORANGE:2,GREY:1},Ge=ut[he.risk]||1,vt=ut[ze.risk]||1;if(Ge!==vt)return vt-Ge;const hn=he.cpa!==null&&he.cpa!==void 0&&he.cpa>=0?he.cpa:he.dist,On=ze.cpa!==null&&ze.cpa!==void 0&&ze.cpa>=0?ze.cpa:ze.dist;return hn-On})},[(zr=r==null?void 0:r.environment)==null?void 0:zr.ais_targets]),pe=j.useMemo(()=>m?ae.filter(G=>G.risk==="RED"||(s==null?void 0:s.id)===G.id?!0:m.contains([G.lat,G.lon])):ae,[ae,m,s]),de=j.useMemo(()=>({id:"self",name:"ROTEVISTA",isOwnShip:!0,lat:U[0],lon:U[1],sog:ee,cog:V}),[U,ee,V]),Q=j.useMemo(()=>s?s.isOwnShip?de:ae.find(be=>be.id===s.id)||s:null,[s,ae,de]),qe=j.useMemo(()=>{var be;return(((be=r==null?void 0:r.environment)==null?void 0:be.harbor_clusters)||[]).filter(he=>he&&he.hull&&he.hull.length>=3)},[(Br=r==null?void 0:r.environment)==null?void 0:Br.harbor_clusters]),Re=j.useMemo(()=>Q&&!Q.isOwnShip&&Q.lat&&Q.lon?{lat:Q.lat,lon:Q.lon}:{lat:U[0],lon:U[1]},[Q,U]),se=j.useMemo(()=>{var hn,On,Jn;const G=((hn=r==null?void 0:r.environment)==null?void 0:hn.gps_history)||[],he=((On=r==null?void 0:r.anchor)==null?void 0:On.engine_on)||!1?"engine":"sail",ze=G.filter(Qt=>Qt.m!=="anchor");if(((Jn=r==null?void 0:r.anchor)==null?void 0:Jn.status)==="MOVING"&&ze.push({lat:U[0],lon:U[1],m:he}),ze.length<2)return[];const ut=[];let Ge=[[parseFloat(ze[0].lat),parseFloat(ze[0].lon)]],vt=ze[0].m||"sail";for(let Qt=1;Qt<ze.length;Qt++){const Tn=ze[Qt],kt=parseFloat(Tn.lat),dn=parseFloat(Tn.lon),Ut=Tn.m||"sail";if(Ut===vt)Ge.push([kt,dn]);else{Ge.push([kt,dn]);const br=vt==="engine"?"#f97316":t?"#38bdf8":"#0284c7";ut.push({positions:Ge,color:br,weight:2.2,opacity:.85}),Ge=[[kt,dn]],vt=Ut}}if(Ge.length>=2){const Qt=vt==="engine"?"#f97316":t?"#38bdf8":"#0284c7";ut.push({positions:Ge,color:Qt,weight:2.2,opacity:.85})}return ut},[(li=r==null?void 0:r.environment)==null?void 0:li.gps_history,(Zi=r==null?void 0:r.anchor)==null?void 0:Zi.engine_on,(Ki=r==null?void 0:r.anchor)==null?void 0:Ki.status,U,t]),me=G=>{N.current||(N.current={center:U,zoom:14,autoCenter:i}),l(G),H(G),o(!1)},ye=G=>{l(G),H(null)},J=()=>{l(null),f(!0),H(null),N.current&&R(G=>G+1)},$e=()=>{l(null),S(!1),H(null),f(!1),N.current&&R(G=>G+1)};return j.useEffect(()=>{if(!n||z.current||ae.length===0)return;const G=String(n).trim(),be=ae.find(he=>String(he.id||"").split(":").pop()===G||String(he.id).includes(G));if(be&&be.lat&&be.lon){z.current=!0,o(!1),S(!1),l(be),H(be);const he=new URL(window.location.href);he.searchParams.delete("mmsi"),window.history.replaceState({},"",he.toString())}},[n,ae]),y.jsxs("div",{className:"relative w-full h-full overflow-hidden bg-[#0d1117] text-white",children:[y.jsx("div",{className:"absolute inset-0 z-0",children:y.jsxs(LM,{center:U,zoom:14,maxZoom:20,preferCanvas:!0,style:{height:"100%",width:"100%"},zoomControl:!1,attributionControl:!1,children:[y.jsx(xy,{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"),y.jsx(xy,{url:"https://tiles.openseamap.org/seamark/{z}/{x}/{y}.png",maxZoom:18,opacity:t?.85:.75}),qe.map(G=>y.jsxs(I.Fragment,{children:[y.jsx(Hz,{positions:G.hull,pathOptions:{color:"#38bdf8",weight:1.2,dashArray:"5, 6",fillColor:"#0284c7",fillOpacity:t?.12:.08,interactive:!1}}),y.jsx(Fn,{position:G.center,icon:pB(G.count),interactive:!1})]},`harbor-hull-${G.id}`)),se.map((G,be)=>y.jsx(ma,{positions:G.positions,color:G.color,weight:G.weight,opacity:G.opacity,lineCap:"round",lineJoin:"round",interactive:!1},`own-nav-trail-${be}`)),y.jsx(yB,{centerCoords:U,hasValidGps:Z,autoCenter:i,setAutoCenter:o,smartZoom:te,flyTarget:Y,isTargetSelected:!!s,cameraSnapshotRef:N,restoreSignal:B,onZoomChange:h,onBoundsChange:v}),mB(d).map(G=>{const be=vB(Re,G.r),he=!!s,ze=he?"#06b6d4":t?"#38bdf8":"#0369a1",ut=he?"#0891b2":t?"#ffffff":"#0f172a",Ge=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 y.jsxs(I.Fragment,{children:[y.jsx(wi,{center:[Re.lat,Re.lon],radius:G.r,pathOptions:{color:ze,weight:he?1.8:1.4,opacity:t?.65:.8,fillOpacity:0,dashArray:he?"6, 6":"5, 8",interactive:!1}}),y.jsx(Fn,{position:be,icon:new cn.DivIcon({html:`<div style="font-size: 9px; font-weight: 900; color: ${ut}; font-family: monospace; text-shadow: ${Ge}; white-space: nowrap; text-align: right; width: 100%;">${G.label}</div>`,className:"range-label-marker",iconSize:[50,10],iconAnchor:[53,5]}),interactive:!1})]},`ais-ring-${G.r}`)}),pe.map(G=>{const be=G.isMoving!==void 0?G.isMoving:!G.isAnchored&&G.sog>=.3,he=(s==null?void 0:s.id)===G.id,ut=Uu(G.type).color,Ge=G.risk==="RED",vt=G.risk==="ORANGE",hn=G.trail&&G.trail.length>=2&&(Ge||vt||he||G.dist<=3704),On=be&&(Ge||vt||he||G.dist<=5556),Jn=Math.max(0,3e3-Math.round(G.dist||0)),Tn=(Ge?1e4:he?8e3:vt?5e3:1e3)+Jn;return y.jsxs(I.Fragment,{children:[hn&&y.jsx(ma,{positions:G.trail.map(kt=>[kt.lat,kt.lon]),color:ut,weight:he?2:1.2,opacity:.5,dashArray:"3, 5",interactive:!1}),On&&y.jsx(ma,{positions:[[G.lat,G.lon],FS(G.lat,G.lon,G.cog,G.sog,15)],color:ut,weight:he?3:2,opacity:.85,dashArray:"6, 6",interactive:!1}),Ge&&y.jsx(wi,{center:[G.lat,G.lon],radius:Math.max(100,(G.sog||1)*45),pathOptions:{color:"#ef4444",weight:2.5,fillColor:"#ef4444",fillOpacity:.15,dashArray:"5, 5",interactive:!1}}),!Ge&&vt&&!(G.inCluster&&!be)&&y.jsx(wi,{center:[G.lat,G.lon],radius:Math.max(70,(G.sog||1)*35),pathOptions:{color:"#f97316",weight:2,fillColor:"#f97316",fillOpacity:.1,dashArray:"6, 6",interactive:!1}}),he&&y.jsx(wi,{center:[G.lat,G.lon],radius:Math.max(80,(G.sog||1)*35),pathOptions:{color:"#22d3ee",weight:2.2,fillColor:"#22d3ee",fillOpacity:.18,dashArray:"3, 5",interactive:!1}}),y.jsx(Fn,{position:[G.lat,G.lon],icon:cB(G,he,d),zIndexOffset:Tn,eventHandlers:{click:()=>{ye(G),E[G.id]&&O(kt=>{const dn={...kt};return delete dn[G.id],dn})}}}),(()=>{if(G.inCluster&&!be&&!he||!Ge&&!vt&&!he)return null;const kt=E[G.id];return kt&&!(kt==="ORANGE"&&Ge)?null:y.jsx(Fn,{position:[G.lat,G.lon],icon:gB(G),zIndexOffset:Tn+100,interactive:!0,eventHandlers:{click:Ut=>{Ut&&Ut.originalEvent&&(cn.DomEvent.stopPropagation(Ut.originalEvent),cn.DomEvent.preventDefault(Ut.originalEvent)),O(br=>({...br,[G.id]:G.risk||"ORANGE"}))}}},`threat-label-${G.id}`)})()]},G.id)}),ee>=.5&&((Uo=r==null?void 0:r.anchor)==null?void 0:Uo.status)==="MOVING"&&(()=>{var he;const G=(he=r==null?void 0:r.anchor)!=null&&he.engine_on?"#f97316":t?"#38bdf8":"#0284c7",be=FS(U[0],U[1],V,ee,15);return y.jsx(ma,{positions:[U,be],color:G,weight:2.2,opacity:.9,dashArray:"12, 8, 3, 8",lineCap:"round",lineJoin:"round",interactive:!1})})(),y.jsx(Fn,{position:U,icon:uB(V,(qi=r==null?void 0:r.anchor)!=null&&qi.engine_on?"#f97316":t?"#38bdf8":"#0284c7"),zIndexOffset:1e3,eventHandlers:{click:()=>ye(de)}})]})}),!u&&!s&&y.jsx("div",{className:"absolute top-3 right-3 z-[1001]",children:y.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:[y.jsx(Ev,{size:15,className:"text-cyan-400"}),y.jsx("span",{className:"text-xs font-black font-mono tracking-wider",children:ae.length}),ae.some(G=>G.risk==="RED")&&y.jsx("span",{className:"bg-red-500 text-white text-[9px] font-black px-1.5 py-0.5 rounded-md animate-pulse",children:"🚨"}),y.jsx(bM,{size:16,className:"text-gray-400"})]})}),(u||s)&&y.jsx("div",{onPointerDownCapture:G=>G.stopPropagation(),onTouchStartCapture:G=>G.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:Q?(()=>{var he,ze,ut,Ge,vt,hn,On,Jn,Qt,Tn,kt,dn,Ut,br,Ho,Go,Zo,Jt;if(Q.isOwnShip){const ue=parseFloat((he=r==null?void 0:r.trip)==null?void 0:he.engine_nm)||0,wr=parseFloat((ze=r==null?void 0:r.trip)==null?void 0:ze.sail_nm)||0,Rn=ue+wr,Fr=Rn>0?Math.round(ue/Rn*100):0,Vr=Rn>0?Math.round(wr/Rn*100):0,er=((ut=r==null?void 0:r.anchor)==null?void 0:ut.depth)||((Ge=r==null?void 0:r.environment)==null?void 0:Ge.depth)||0;return y.jsxs("div",{className:"flex flex-col p-3 font-mono gap-2 overflow-y-auto",children:[y.jsxs("div",{className:"flex items-center justify-between border-b border-white/10 pb-2",children:[y.jsxs("button",{onClick:J,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:[y.jsx("span",{children:"←"})," LISTA"]}),y.jsxs("div",{className:"text-center truncate px-2",children:[y.jsx("h4",{className:"text-sm font-black uppercase text-cyan-400 truncate tracking-tight",children:"⛵ ROTEVISTA"}),y.jsx("span",{onClick:Ko=>{Ko.stopPropagation(),M(U[0],U[1])},className:`text-[8.5px] uppercase block tracking-tight mt-0.5 cursor-pointer font-mono font-bold transition-colors ${P?"text-green-400 animate-pulse":"text-gray-400 hover:text-white"}`,title:"Tocca per copiare le coordinate GPS",children:P?"✓ Coordinate Copiate!":`${gh(U[0],!0)} ${gh(U[1],!1)}`})]}),y.jsx("button",{onClick:$e,className:"text-gray-400 hover:text-white p-1 shrink-0",children:y.jsx(kv,{size:16})})]}),y.jsxs("div",{className:"grid grid-cols-4 gap-1 text-[10px] shrink-0 text-center",children:[y.jsxs("div",{className:"bg-white/5 p-1.5 rounded-xl",children:[y.jsx("span",{className:"text-[7.5px] text-gray-400 uppercase block",children:"SOG"}),y.jsxs("span",{className:"font-bold text-cyan-400 text-xs",children:[ee.toFixed(1),"k"]})]}),y.jsxs("div",{className:"bg-white/5 p-1.5 rounded-xl",children:[y.jsx("span",{className:"text-[7.5px] text-gray-400 uppercase block",children:"Prua"}),y.jsxs("span",{className:"font-bold text-white text-xs",children:[Math.round(V),"°"]})]}),y.jsxs("div",{className:"bg-white/5 p-1.5 rounded-xl",children:[y.jsx("span",{className:"text-[7.5px] text-gray-400 uppercase block",children:"Fondo"}),y.jsx("span",{className:"font-bold text-white text-xs",children:er>0?`${er.toFixed(1)}m`:"--"})]}),y.jsxs("div",{className:"bg-white/5 p-1.5 rounded-xl",children:[y.jsx("span",{className:"text-[7.5px] text-gray-400 uppercase block",children:"Volvo"}),y.jsx("span",{className:`font-bold text-xs ${(vt=r==null?void 0:r.anchor)!=null&&vt.engine_on?"text-yellow-400 animate-pulse":"text-gray-400"}`,children:(hn=r==null?void 0:r.anchor)!=null&&hn.engine_on?"ON":"OFF"})]})]}),y.jsxs("div",{className:"bg-white/5 p-2 rounded-xl border border-white/5 flex flex-col gap-1 text-[10px]",children:[y.jsx("span",{className:"text-[8px] font-black text-gray-400 uppercase tracking-widest border-b border-white/5 pb-1",children:"Statistiche Tratta"}),y.jsxs("div",{className:"grid grid-cols-[52px_44px_1fr_auto] items-center text-[9.5px] leading-none gap-1 py-0.5",children:[y.jsx("span",{className:"text-cyan-400 font-bold",children:"⛵ Vela"}),y.jsx("span",{className:"text-white font-medium",children:((On=r==null?void 0:r.trip)==null?void 0:On.sail_time)||"0m"}),y.jsxs("span",{className:"text-cyan-400 font-bold truncate",children:[((Jn=r==null?void 0:r.trip)==null?void 0:Jn.sail_nm)||"0.00 NM"," ",y.jsxs("span",{className:"text-gray-300 font-bold text-[8.5px]",children:["(",Vr,"%)"]})]}),y.jsx("span",{className:"text-right font-mono text-[9px] whitespace-nowrap",children:(Qt=r==null?void 0:r.trip)!=null&&Qt.sail_max_kn&&r.trip.sail_max_kn!=="--"?y.jsxs("span",{className:"text-gray-400",children:[y.jsxs("strong",{className:"text-cyan-300 font-bold",children:["Ø ",((Tn=r.trip.sail_avg_kn)==null?void 0:Tn.replace(" kn",""))||"--"]}),y.jsx("span",{className:"mx-1",children:"•"}),"▲ ",y.jsx("strong",{className:"text-cyan-300 font-bold",children:r.trip.sail_max_kn})]}):y.jsxs("strong",{className:"text-cyan-300 font-bold",children:["Ø ",((kt=r==null?void 0:r.trip)==null?void 0:kt.sail_avg_kn)||"--"]})})]}),y.jsxs("div",{className:"grid grid-cols-[58px_44px_1fr_auto] items-center text-[9.5px] leading-none gap-1 py-0.5",children:[y.jsx("span",{className:"text-yellow-400 font-bold",children:"🚤 Motore"}),y.jsx("span",{className:"text-white font-medium",children:((dn=r==null?void 0:r.trip)==null?void 0:dn.engine_time)||"0m"}),y.jsxs("span",{className:"text-yellow-400 font-bold truncate",children:[((Ut=r==null?void 0:r.trip)==null?void 0:Ut.engine_nm)||"0.00 NM"," ",y.jsxs("span",{className:"text-gray-300 font-bold text-[8.5px]",children:["(",Fr,"%)"]})]}),y.jsx("span",{className:"text-right font-mono text-[9px] text-gray-400 whitespace-nowrap",children:y.jsxs("span",{className:"text-yellow-300 font-bold",children:["Ø ",((br=r==null?void 0:r.trip)==null?void 0:br.engine_avg_kn)||"--"]})})]}),y.jsxs("div",{className:"grid grid-cols-[58px_44px_1fr_auto] items-center text-[9.5px] leading-none gap-1 border-t border-white/5 pt-1.5 mt-0.5",children:[y.jsx("span",{className:"text-gray-400 font-bold",children:"⏱️ Totale"}),y.jsx("span",{className:"text-gray-200 font-medium",children:((Ho=r==null?void 0:r.trip)==null?void 0:Ho.total_nav_time)||"0m"}),y.jsx("span",{className:"text-white font-black truncate",children:((Go=r==null?void 0:r.trip)==null?void 0:Go.total_nm)||"0.00 NM"}),y.jsx("span",{className:"text-right font-mono text-[9px] text-gray-300 whitespace-nowrap",children:y.jsxs("span",{className:"text-white font-bold",children:["Ø ",((Zo=r==null?void 0:r.trip)==null?void 0:Zo.total_avg_kn)||"--"]})})]})]})]})}const G=Uu(Q.type),be=Q.age!==void 0?Q.age<60?`${Q.age}s fa`:`${Math.round(Q.age/60)}m fa`:"";return y.jsxs("div",{className:"flex flex-col p-3 font-mono gap-2 overflow-y-auto",children:[y.jsxs("div",{className:"flex flex-col border-b border-white/10 pb-2 px-1 pt-0.5 shrink-0 gap-1",children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsxs("button",{onClick:J,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:[y.jsx("span",{children:"←"})," LISTA"]}),y.jsxs("div",{onClick:()=>S(ue=>!ue),className:"flex items-center justify-center gap-1.5 truncate px-2 py-1 rounded-xl cursor-pointer hover:bg-white/5 active:scale-95 transition-all select-none",title:"Tocca per cambiare vista (Tattica / Registro)",children:[y.jsx("span",{className:"text-base shrink-0",children:G.emoji}),y.jsx("h4",{className:"text-sm font-black uppercase text-white truncate tracking-tight",children:Q.name||"Sconosciuto"}),y.jsx("div",{className:`w-5 h-5 rounded-md flex items-center justify-center border shrink-0 transition-colors ${x?"bg-cyan-500/30 border-cyan-400 text-cyan-300 shadow-[0_0_8px_rgba(6,182,212,0.4)]":"bg-white/10 border-white/15 text-gray-300"}`,children:x?y.jsx(Ev,{size:12,className:"rotate-45 text-cyan-300"}):y.jsx("span",{className:"text-[11px] font-serif font-black leading-none",children:"i"})})]}),y.jsx("button",{onClick:$e,className:"text-gray-400 hover:text-white p-1 shrink-0 rounded-lg active:scale-95 transition-transform",children:y.jsx(kv,{size:16})})]}),y.jsxs("div",{className:"flex items-center justify-center gap-1.5 text-[9.5px] font-bold text-gray-300 uppercase tracking-tight",children:[y.jsx("span",{children:G.label}),y.jsx("span",{className:"text-gray-600",children:"•"}),(Jt=Q.id)!=null&&Jt.includes("mmsi:")?y.jsx("button",{onClick:()=>C(Q.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 ${w?"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:w?y.jsxs(y.Fragment,{children:[y.jsx(sz,{size:11,className:"shrink-0 text-green-400"}),y.jsx("span",{className:"text-[9px]",children:"Copiato!"})]}):y.jsxs(y.Fragment,{children:[y.jsx(hz,{size:9,className:"shrink-0 opacity-80"}),y.jsxs("span",{children:["MMSI ",Q.id.split(":").pop()]})]})}):y.jsx("span",{className:"text-gray-400",children:"MMSI: --"}),be&&y.jsxs(y.Fragment,{children:[y.jsx("span",{className:"text-gray-600",children:"•"}),y.jsxs("span",{className:"text-gray-400 flex items-center gap-0.5",children:["⏱️ ",be]})]})]})]}),x?(()=>{const ue=hB(Q.id),wr=String(Q.id||"").split(":").pop(),Rn=Q.length?Math.round(Q.length):null,Fr=Q.beam?Math.round(Q.beam):null,Vr=Q.draft?Q.draft.toFixed(1):null,er=dB(Q.eta);return y.jsxs("div",{className:"flex flex-col gap-1.5 text-[10px] shrink-0 font-mono",children:[y.jsxs("div",{className:"grid grid-cols-2 gap-1.5",children:[y.jsxs("div",{className:"bg-white/5 p-2 rounded-xl border border-white/5 flex flex-col justify-center",children:[y.jsx("span",{className:"text-[7.5px] text-gray-400 uppercase block tracking-wider",children:"Dimensioni (L × B)"}),y.jsx("span",{className:"font-bold text-white text-xs mt-0.5",children:Rn?`${Rn}m × ${Fr?`${Fr}m`:"--"}`:"--"})]}),y.jsxs("div",{className:"bg-white/5 p-2 rounded-xl border border-white/5 flex flex-col justify-center",children:[y.jsx("span",{className:"text-[7.5px] text-gray-400 uppercase block tracking-wider",children:"Pescaggio (Draft)"}),y.jsx("span",{className:"font-bold text-white text-xs mt-0.5",children:Vr?`${Vr}m`:"--"})]})]}),y.jsxs("div",{className:"bg-white/5 p-2 rounded-xl border border-white/5 flex flex-col justify-center",children:[y.jsx("span",{className:"text-[7.5px] text-gray-400 uppercase block tracking-wider",children:"Destinazione & ETA"}),y.jsx("span",{className:"font-bold text-cyan-300 text-xs mt-0.5 truncate",children:Q.destination?`🎯 ${Q.destination}${er?` • ETA: ${er}`:""}`:"NON DICHIARATA"})]}),y.jsxs("div",{className:"grid grid-cols-2 gap-1.5",children:[y.jsxs("div",{className:"bg-white/5 p-2 rounded-xl border border-white/5 flex flex-col justify-center",children:[y.jsx("span",{className:"text-[7.5px] text-gray-400 uppercase block tracking-wider",children:"Stato AIS (Classe)"}),y.jsxs("span",{className:"font-bold text-white text-[11px] mt-0.5 truncate block",children:[Q.inCluster?"In Porto":Q.isAnchored?"All'Ancora":Q.sog>=.5?"In Navigazione":"Alla Deriva",y.jsxs("span",{className:"text-gray-400 font-normal ml-1",children:["(",Q.aisClass||"B",")"]})]})]}),y.jsxs("div",{className:"bg-white/5 p-2 rounded-xl border border-white/5 flex flex-col justify-center",children:[y.jsx("span",{className:"text-[7.5px] text-gray-400 uppercase block tracking-wider",children:"Radio & Bandiera"}),y.jsxs("span",{className:"font-bold text-white text-[11px] mt-0.5 truncate block flex items-center gap-1",children:[Q.callsign?y.jsxs("span",{children:["📻 ",Q.callsign]}):y.jsx("span",{className:"text-gray-400",children:"📻 --"}),ue&&y.jsxs(y.Fragment,{children:[y.jsx("span",{className:"text-gray-500 font-normal",children:"•"}),y.jsx("span",{className:"text-cyan-300 font-bold",children:ue})]})]})]})]}),wr&&y.jsxs("a",{href:`https://www.vesselfinder.com/vessels/details/${wr}`,target:"_blank",rel:"noopener noreferrer",className:"mt-0.5 w-full bg-cyan-500/20 hover:bg-cyan-500/30 border border-cyan-400/40 text-cyan-300 font-bold py-2 rounded-xl flex items-center justify-center gap-1.5 active:scale-95 transition-all text-xs tracking-wide no-underline shadow-lg",children:[y.jsx("span",{children:"🌐"})," Vedi Foto su VesselFinder"]})]})})():y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"grid grid-cols-2 gap-1.5 text-[10px] shrink-0",children:[y.jsxs("div",{className:"bg-white/5 p-2 rounded-xl",children:[y.jsx("span",{className:"text-[7.5px] text-gray-400 uppercase block",children:"SOG / COG"}),y.jsxs("span",{className:"font-bold text-white text-xs",children:[Q.sog," kn @ ",Q.cog,"°"]})]}),y.jsxs("div",{className:"bg-white/5 p-2 rounded-xl",children:[y.jsx("span",{className:"text-[7.5px] text-gray-400 uppercase block",children:"Distanza"}),y.jsx("span",{className:"font-bold text-white text-xs truncate",title:vh(Q.dist),children:vh(Q.dist)})]}),y.jsxs("div",{className:"bg-white/5 p-2 rounded-xl",children:[y.jsx("span",{className:"text-[7.5px] text-gray-400 uppercase block",children:"CPA Minimo"}),y.jsx("span",{className:"font-bold text-cyan-400 text-xs truncate",title:vh(Q.cpa),children:vh(Q.cpa)})]}),y.jsxs("div",{className:"bg-white/5 p-2 rounded-xl",children:[y.jsx("span",{className:"text-[7.5px] text-gray-400 uppercase block",children:"Tempo a CPA"}),y.jsx("span",{className:"font-bold text-cyan-400 text-xs",children:Q.tcpa!==null&&Q.tcpa!==void 0&&Q.tcpa>=0?`${Math.round(Q.tcpa)} min`:"--"})]})]}),Q.sightingTxt&&y.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:[y.jsx("span",{className:"text-cyan-400 font-black uppercase shrink-0",children:"👀 Vista:"}),y.jsx("span",{className:"truncate",children:Q.sightingTxt})]}),Q.crossDir&&y.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:[y.jsx("span",{className:"text-orange-400 font-bold uppercase block mb-1",children:"Analisi Incrocio:"}),Q.crossDir]})]})]})})():y.jsxs("div",{className:"flex flex-col h-full font-mono",children:[y.jsxs("div",{className:"h-10 px-3.5 flex items-center justify-between border-b border-white/10 shrink-0",children:[y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx(Ev,{size:14,className:"text-cyan-400"}),y.jsxs("span",{className:"text-[11px] font-black uppercase tracking-wider text-white",children:["Bersagli (",ae.length,")"]})]}),y.jsx("button",{onClick:$e,className:"text-gray-400 hover:text-white p-1",children:y.jsx(kv,{size:16})})]}),y.jsxs("div",{className:"flex-1 overflow-y-auto p-1.5 space-y-1.5",children:[y.jsxs("div",{onClick:()=>me(de),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:[y.jsxs("div",{className:"flex flex-col truncate pr-2",children:[y.jsx("span",{className:"text-[11px] font-black uppercase text-cyan-400 truncate flex items-center gap-1",children:"⛵ ROTEVISTA (LA TUA BARCA)"}),y.jsxs("span",{className:"text-[8px] text-gray-300 mt-0.5",children:[((Xi=r==null?void 0:r.anchor)==null?void 0:Xi.status)==="IN_PORTO"||((Wo=r==null?void 0:r.anchor)==null?void 0:Wo.mode)==="IN_PORTO"?"IN PORTO":((Yi=r==null?void 0:r.anchor)==null?void 0:Yi.status)!=="MOVING"?"ALL'ANCORA":(ui=r==null?void 0:r.anchor)!=null&&ui.engine_on?"A MOTORE":"A VELA"," • HDG: ",Math.round(V),"°"]})]}),y.jsxs("div",{className:"flex flex-col items-end text-right shrink-0 leading-none",children:[y.jsxs("span",{className:"text-xs font-black text-cyan-400 font-mono",children:[ee.toFixed(1)," kn"]}),y.jsx("span",{className:"text-[7.5px] text-gray-400 mt-1",children:"SOG"})]})]}),ae.map(G=>{const be=G.risk==="RED",he=G.risk==="ORANGE"&&!(G.inCluster&&!G.isMoving),ze=G.inCluster&&!G.isMoving,ut=Uu(G.type);return y.jsxs("div",{onClick:()=>me(G),className:`p-2 rounded-xl border transition-all cursor-pointer flex items-center justify-between ${be?"bg-red-500/15 border-red-500/40 text-red-100":he?"bg-orange-500/15 border-orange-500/40 text-orange-100":ze?"bg-white/5 border-white/5 hover:bg-white/10 opacity-75":"bg-white/5 border-white/5 hover:bg-white/10"}`,children:[y.jsxs("div",{className:"flex flex-col truncate pr-2",children:[y.jsxs("div",{className:"flex items-center gap-1.5 truncate",children:[y.jsx("span",{style:{color:ut.color},className:"text-xs shrink-0",children:ut.emoji}),y.jsx("span",{className:"text-[11px] font-black uppercase text-white truncate",children:G.name||"Sconosciuto"}),be&&y.jsx("span",{className:"text-red-500 text-[9px] shrink-0",children:"🚨"})]}),y.jsxs("span",{className:"text-[9.5px] font-bold text-gray-300 mt-0.5 tracking-tight leading-tight",children:[ut.label," • ",G.inCluster&&!G.isMoving?"IN PORTO":G.isMoving?`${G.sog}k • ${G.cog}°`:"ALL'ANCORA"]})]}),y.jsxs("div",{className:"flex flex-col items-end text-right shrink-0 leading-none",children:[y.jsx("span",{className:`text-xs font-black ${be?"text-red-400":he?"text-orange-400":"text-cyan-400"}`,children:G.cpa!==null&&G.cpa!==void 0?`CPA: ${Wu(G.cpa)}`:Wu(G.dist)}),G.tcpa!==null&&G.tcpa>=0&&y.jsxs("span",{className:"text-[8.5px] font-bold text-gray-300 mt-1",children:["in ",Math.round(G.tcpa),"m"]})]})]},G.id)})]})]})})]})};function DM(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=DM(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ie(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=DM(e))&&(r&&(r+=" "),r+=t);return r}var bB=Array.isArray,In=bB,wB=typeof _u=="object"&&_u&&_u.Object===Object&&_u,RM=wB,SB=RM,PB=typeof self=="object"&&self&&self.Object===Object&&self,OB=SB||PB||Function("return this")(),si=OB,TB=si,AB=TB.Symbol,ff=AB,VS=ff,zM=Object.prototype,EB=zM.hasOwnProperty,kB=zM.toString,uu=VS?VS.toStringTag:void 0;function MB(e){var t=EB.call(e,uu),n=e[uu];try{e[uu]=void 0;var r=!0}catch{}var i=kB.call(e);return r&&(t?e[uu]=n:delete e[uu]),i}var CB=MB,jB=Object.prototype,NB=jB.toString;function $B(e){return NB.call(e)}var LB=$B,US=ff,IB=CB,DB=LB,RB="[object Null]",zB="[object Undefined]",WS=US?US.toStringTag:void 0;function BB(e){return e==null?e===void 0?zB:RB:WS&&WS in Object(e)?IB(e):DB(e)}var Wi=BB;function FB(e){return e!=null&&typeof e=="object"}var Hi=FB,VB=Wi,UB=Hi,WB="[object Symbol]";function HB(e){return typeof e=="symbol"||UB(e)&&VB(e)==WB}var Ol=HB,GB=In,ZB=Ol,KB=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,qB=/^\w*$/;function XB(e,t){if(GB(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||ZB(e)?!0:qB.test(e)||!KB.test(e)||t!=null&&e in Object(t)}var O_=XB;function YB(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Do=YB;const Tl=Ke(Do);var QB=Wi,JB=Do,eF="[object AsyncFunction]",tF="[object Function]",nF="[object GeneratorFunction]",rF="[object Proxy]";function iF(e){if(!JB(e))return!1;var t=QB(e);return t==tF||t==nF||t==eF||t==rF}var T_=iF;const Pe=Ke(T_);var oF=si,aF=oF["__core-js_shared__"],sF=aF,Cv=sF,HS=function(){var e=/[^.]+$/.exec(Cv&&Cv.keys&&Cv.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function lF(e){return!!HS&&HS in e}var uF=lF,cF=Function.prototype,fF=cF.toString;function hF(e){if(e!=null){try{return fF.call(e)}catch{}try{return e+""}catch{}}return""}var BM=hF,dF=T_,pF=uF,mF=Do,vF=BM,gF=/[\\^$.*+?()[\]{}|]/g,yF=/^\[object .+?Constructor\]$/,xF=Function.prototype,_F=Object.prototype,bF=xF.toString,wF=_F.hasOwnProperty,SF=RegExp("^"+bF.call(wF).replace(gF,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function PF(e){if(!mF(e)||pF(e))return!1;var t=dF(e)?SF:yF;return t.test(vF(e))}var OF=PF;function TF(e,t){return e==null?void 0:e[t]}var AF=TF,EF=OF,kF=AF;function MF(e,t){var n=kF(e,t);return EF(n)?n:void 0}var Fa=MF,CF=Fa,jF=CF(Object,"create"),Kp=jF,GS=Kp;function NF(){this.__data__=GS?GS(null):{},this.size=0}var $F=NF;function LF(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var IF=LF,DF=Kp,RF="__lodash_hash_undefined__",zF=Object.prototype,BF=zF.hasOwnProperty;function FF(e){var t=this.__data__;if(DF){var n=t[e];return n===RF?void 0:n}return BF.call(t,e)?t[e]:void 0}var VF=FF,UF=Kp,WF=Object.prototype,HF=WF.hasOwnProperty;function GF(e){var t=this.__data__;return UF?t[e]!==void 0:HF.call(t,e)}var ZF=GF,KF=Kp,qF="__lodash_hash_undefined__";function XF(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=KF&&t===void 0?qF:t,this}var YF=XF,QF=$F,JF=IF,e8=VF,t8=ZF,n8=YF;function Al(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])}}Al.prototype.clear=QF;Al.prototype.delete=JF;Al.prototype.get=e8;Al.prototype.has=t8;Al.prototype.set=n8;var r8=Al;function i8(){this.__data__=[],this.size=0}var o8=i8;function a8(e,t){return e===t||e!==e&&t!==t}var A_=a8,s8=A_;function l8(e,t){for(var n=e.length;n--;)if(s8(e[n][0],t))return n;return-1}var qp=l8,u8=qp,c8=Array.prototype,f8=c8.splice;function h8(e){var t=this.__data__,n=u8(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():f8.call(t,n,1),--this.size,!0}var d8=h8,p8=qp;function m8(e){var t=this.__data__,n=p8(t,e);return n<0?void 0:t[n][1]}var v8=m8,g8=qp;function y8(e){return g8(this.__data__,e)>-1}var x8=y8,_8=qp;function b8(e,t){var n=this.__data__,r=_8(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var w8=b8,S8=o8,P8=d8,O8=v8,T8=x8,A8=w8;function El(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])}}El.prototype.clear=S8;El.prototype.delete=P8;El.prototype.get=O8;El.prototype.has=T8;El.prototype.set=A8;var Xp=El,E8=Fa,k8=si,M8=E8(k8,"Map"),E_=M8,ZS=r8,C8=Xp,j8=E_;function N8(){this.size=0,this.__data__={hash:new ZS,map:new(j8||C8),string:new ZS}}var $8=N8;function L8(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var I8=L8,D8=I8;function R8(e,t){var n=e.__data__;return D8(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Yp=R8,z8=Yp;function B8(e){var t=z8(this,e).delete(e);return this.size-=t?1:0,t}var F8=B8,V8=Yp;function U8(e){return V8(this,e).get(e)}var W8=U8,H8=Yp;function G8(e){return H8(this,e).has(e)}var Z8=G8,K8=Yp;function q8(e,t){var n=K8(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var X8=q8,Y8=$8,Q8=F8,J8=W8,e6=Z8,t6=X8;function kl(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])}}kl.prototype.clear=Y8;kl.prototype.delete=Q8;kl.prototype.get=J8;kl.prototype.has=e6;kl.prototype.set=t6;var k_=kl,FM=k_,n6="Expected a function";function M_(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(n6);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(M_.Cache||FM),n}M_.Cache=FM;var VM=M_;const r6=Ke(VM);var i6=VM,o6=500;function a6(e){var t=i6(e,function(r){return n.size===o6&&n.clear(),r}),n=t.cache;return t}var s6=a6,l6=s6,u6=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,c6=/\\(\\)?/g,f6=l6(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(u6,function(n,r,i,o){t.push(i?o.replace(c6,"$1"):r||n)}),t}),h6=f6;function d6(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 C_=d6,KS=ff,p6=C_,m6=In,v6=Ol,qS=KS?KS.prototype:void 0,XS=qS?qS.toString:void 0;function UM(e){if(typeof e=="string")return e;if(m6(e))return p6(e,UM)+"";if(v6(e))return XS?XS.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var g6=UM,y6=g6;function x6(e){return e==null?"":y6(e)}var WM=x6,_6=In,b6=O_,w6=h6,S6=WM;function P6(e,t){return _6(e)?e:b6(e,t)?[e]:w6(S6(e))}var HM=P6,O6=Ol;function T6(e){if(typeof e=="string"||O6(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Qp=T6,A6=HM,E6=Qp;function k6(e,t){t=A6(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[E6(t[n++])];return n&&n==r?e:void 0}var j_=k6,M6=j_;function C6(e,t,n){var r=e==null?void 0:M6(e,t);return r===void 0?n:r}var GM=C6;const mr=Ke(GM);function j6(e){return e==null}var N6=j6;const Ce=Ke(N6);var $6=Wi,L6=In,I6=Hi,D6="[object String]";function R6(e){return typeof e=="string"||!L6(e)&&I6(e)&&$6(e)==D6}var z6=R6;const ja=Ke(z6);var ZM={exports:{}},Ue={};/**
|
|
351
|
+
* @license React
|
|
352
|
+
* react-is.production.min.js
|
|
353
|
+
*
|
|
354
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
355
|
+
*
|
|
356
|
+
* This source code is licensed under the MIT license found in the
|
|
357
|
+
* LICENSE file in the root directory of this source tree.
|
|
358
|
+
*/var N_=Symbol.for("react.element"),$_=Symbol.for("react.portal"),Jp=Symbol.for("react.fragment"),em=Symbol.for("react.strict_mode"),tm=Symbol.for("react.profiler"),nm=Symbol.for("react.provider"),rm=Symbol.for("react.context"),B6=Symbol.for("react.server_context"),im=Symbol.for("react.forward_ref"),om=Symbol.for("react.suspense"),am=Symbol.for("react.suspense_list"),sm=Symbol.for("react.memo"),lm=Symbol.for("react.lazy"),F6=Symbol.for("react.offscreen"),KM;KM=Symbol.for("react.module.reference");function xr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case N_:switch(e=e.type,e){case Jp:case tm:case em:case om:case am:return e;default:switch(e=e&&e.$$typeof,e){case B6:case rm:case im:case lm:case sm:case nm:return e;default:return t}}case $_:return t}}}Ue.ContextConsumer=rm;Ue.ContextProvider=nm;Ue.Element=N_;Ue.ForwardRef=im;Ue.Fragment=Jp;Ue.Lazy=lm;Ue.Memo=sm;Ue.Portal=$_;Ue.Profiler=tm;Ue.StrictMode=em;Ue.Suspense=om;Ue.SuspenseList=am;Ue.isAsyncMode=function(){return!1};Ue.isConcurrentMode=function(){return!1};Ue.isContextConsumer=function(e){return xr(e)===rm};Ue.isContextProvider=function(e){return xr(e)===nm};Ue.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===N_};Ue.isForwardRef=function(e){return xr(e)===im};Ue.isFragment=function(e){return xr(e)===Jp};Ue.isLazy=function(e){return xr(e)===lm};Ue.isMemo=function(e){return xr(e)===sm};Ue.isPortal=function(e){return xr(e)===$_};Ue.isProfiler=function(e){return xr(e)===tm};Ue.isStrictMode=function(e){return xr(e)===em};Ue.isSuspense=function(e){return xr(e)===om};Ue.isSuspenseList=function(e){return xr(e)===am};Ue.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Jp||e===tm||e===em||e===om||e===am||e===F6||typeof e=="object"&&e!==null&&(e.$$typeof===lm||e.$$typeof===sm||e.$$typeof===nm||e.$$typeof===rm||e.$$typeof===im||e.$$typeof===KM||e.getModuleId!==void 0)};Ue.typeOf=xr;ZM.exports=Ue;var V6=ZM.exports,U6=Wi,W6=Hi,H6="[object Number]";function G6(e){return typeof e=="number"||W6(e)&&U6(e)==H6}var qM=G6;const Z6=Ke(qM);var K6=qM;function q6(e){return K6(e)&&e!=+e}var X6=q6;const Ml=Ke(X6);var Nr=function(t){return t===0?0:t>0?1:-1},va=function(t){return ja(t)&&t.indexOf("%")===t.length-1},oe=function(t){return Z6(t)&&!Ml(t)},Y6=function(t){return Ce(t)},$t=function(t){return oe(t)||ja(t)},Q6=0,hf=function(t){var n=++Q6;return"".concat(t||"").concat(n)},Na=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(!oe(t)&&!ja(t))return r;var o;if(va(t)){var s=t.indexOf("%");o=n*parseFloat(t.slice(0,s))/100}else o=+t;return Ml(o)&&(o=r),i&&o>n&&(o=n),o},mo=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},J6=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},fr=function(t,n){return oe(t)&&oe(n)?function(r){return t+r*(n-t)}:function(){return n}};function Pd(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):mr(r,t))===n})}var eV=function(t,n){return oe(t)&&oe(n)?t-n:ja(t)&&ja(n)?t.localeCompare(n):t instanceof Date&&n instanceof Date?t.getTime()-n.getTime():String(t).localeCompare(String(n))};function Is(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 _y(e){"@babel/helpers - typeof";return _y=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},_y(e)}var tV=["viewBox","children"],nV=["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"],YS=["points","pathLength"],jv={svg:tV,polygon:YS,polyline:YS},L_=["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"],Od=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(j.isValidElement(t)&&(r=t.props),!Tl(r))return null;var i={};return Object.keys(r).forEach(function(o){L_.includes(o)&&(i[o]=n||function(s){return r[o](r,s)})}),i},rV=function(t,n,r){return function(i){return t(n,r,i),null}},Td=function(t,n,r){if(!Tl(t)||_y(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(o){var s=t[o];L_.includes(o)&&typeof s=="function"&&(i||(i={}),i[o]=rV(s,n,r))}),i},iV=["children"],oV=["children"];function QS(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 by(e){"@babel/helpers - typeof";return by=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},by(e)}var JS={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"},Ci=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},eP=null,Nv=null,I_=function e(t){if(t===eP&&Array.isArray(Nv))return Nv;var n=[];return j.Children.forEach(t,function(r){Ce(r)||(V6.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),Nv=n,eP=t,n};function Ir(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(i){return Ci(i)}):r=[Ci(t)],I_(e).forEach(function(i){var o=mr(i,"type.displayName")||mr(i,"type.name");r.indexOf(o)!==-1&&n.push(i)}),n}function Vn(e,t){var n=Ir(e,t);return n&&n[0]}var tP=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,i=n.height;return!(!oe(r)||r<=0||!oe(i)||i<=0)},sV=["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"],lV=function(t){return t&&t.type&&ja(t.type)&&sV.indexOf(t.type)>=0},uV=function(t){return t&&by(t)==="object"&&"clipDot"in t},cV=function(t,n,r,i){var o,s=(o=jv==null?void 0:jv[i])!==null&&o!==void 0?o:[];return n.startsWith("data-")||!Pe(t)&&(i&&s.includes(n)||nV.includes(n))||r&&L_.includes(n)},ke=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(j.isValidElement(t)&&(i=t.props),!Tl(i))return null;var o={};return Object.keys(i).forEach(function(s){var l;cV((l=i)===null||l===void 0?void 0:l[s],s,n,r)&&(o[s]=i[s])}),o},wy=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 nP(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(!nP(o,s))return!1}return!0},nP=function(t,n){if(Ce(t)&&Ce(n))return!0;if(!Ce(t)&&!Ce(n)){var r=t.props||{},i=r.children,o=QS(r,iV),s=n.props||{},l=s.children,u=QS(s,oV);return i&&l?Is(o,u)&&wy(i,l):!i&&!l?Is(o,u):!1}return!1},rP=function(t,n){var r=[],i={};return I_(t).forEach(function(o,s){if(lV(o))r.push(o);else if(o){var l=Ci(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},fV=function(t){var n=t&&t.type;return n&&JS[n]?JS[n]:null},hV=function(t,n){return I_(n).indexOf(t)},dV=["children","width","height","viewBox","className","style","title","desc"];function Sy(){return Sy=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},Sy.apply(this,arguments)}function pV(e,t){if(e==null)return{};var n=mV(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 mV(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 Py(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=pV(e,dV),d=i||{width:n,height:r,x:0,y:0},h=Ie("recharts-surface",o);return I.createElement("svg",Sy({},ke(f,!0,"svg"),{className:h,width:n,height:r,style:s,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height)}),I.createElement("title",null,l),I.createElement("desc",null,u),t)}var vV=["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 gV(e,t){if(e==null)return{};var n=yV(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 yV(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 dt=I.forwardRef(function(e,t){var n=e.children,r=e.className,i=gV(e,vV),o=Ie("recharts-layer",r);return I.createElement("g",Oy({className:o},ke(i,!0),{ref:t}),n)}),ji=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 xV(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 _V=xV,bV=_V;function wV(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:bV(e,t,n)}var SV=wV,PV="\\ud800-\\udfff",OV="\\u0300-\\u036f",TV="\\ufe20-\\ufe2f",AV="\\u20d0-\\u20ff",EV=OV+TV+AV,kV="\\ufe0e\\ufe0f",MV="\\u200d",CV=RegExp("["+MV+PV+EV+kV+"]");function jV(e){return CV.test(e)}var XM=jV;function NV(e){return e.split("")}var $V=NV,YM="\\ud800-\\udfff",LV="\\u0300-\\u036f",IV="\\ufe20-\\ufe2f",DV="\\u20d0-\\u20ff",RV=LV+IV+DV,zV="\\ufe0e\\ufe0f",BV="["+YM+"]",Ty="["+RV+"]",Ay="\\ud83c[\\udffb-\\udfff]",FV="(?:"+Ty+"|"+Ay+")",QM="[^"+YM+"]",JM="(?:\\ud83c[\\udde6-\\uddff]){2}",eC="[\\ud800-\\udbff][\\udc00-\\udfff]",VV="\\u200d",tC=FV+"?",nC="["+zV+"]?",UV="(?:"+VV+"(?:"+[QM,JM,eC].join("|")+")"+nC+tC+")*",WV=nC+tC+UV,HV="(?:"+[QM+Ty+"?",Ty,JM,eC,BV].join("|")+")",GV=RegExp(Ay+"(?="+Ay+")|"+HV+WV,"g");function ZV(e){return e.match(GV)||[]}var KV=ZV,qV=$V,XV=XM,YV=KV;function QV(e){return XV(e)?YV(e):qV(e)}var JV=QV,e9=SV,t9=XM,n9=JV,r9=WM;function i9(e){return function(t){t=r9(t);var n=t9(t)?n9(t):void 0,r=n?n[0]:t.charAt(0),i=n?e9(n,1).join(""):t.slice(1);return r[e]()+i}}var o9=i9,a9=o9,s9=a9("toUpperCase"),l9=s9;const um=Ke(l9);function Qe(e){return function(){return e}}const rC=Math.cos,Ad=Math.sin,Rr=Math.sqrt,Ed=Math.PI,cm=2*Ed,Ey=Math.PI,ky=2*Ey,la=1e-6,u9=ky-la;function iC(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function c9(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return iC;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 f9{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?iC:c9(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>la)if(!(Math.abs(h*u-f*d)>la)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let v=r-s,w=i-l,b=u*u+f*f,P=v*v+w*w,_=Math.sqrt(b),x=Math.sqrt(m),S=o*Math.tan((Ey-Math.acos((b+m-P)/(2*_*x)))/2),E=S/x,O=S/_;Math.abs(E-1)>la&&this._append`L${t+E*d},${n+E*h}`,this._append`A${o},${o},0,0,${+(h*v>d*w)},${this._x1=t+O*u},${this._y1=n+O*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)>la||Math.abs(this._y1-d)>la)&&this._append`L${f},${d}`,r&&(m<0&&(m=m%ky+ky),m>u9?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>la&&this._append`A${r},${r},0,${+(m>=Ey)},${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 D_(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 f9(t)}function R_(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function oC(e){this._context=e}oC.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 fm(e){return new oC(e)}function aC(e){return e[0]}function sC(e){return e[1]}function lC(e,t){var n=Qe(!0),r=null,i=fm,o=null,s=D_(l);e=typeof e=="function"?e:e===void 0?aC:Qe(e),t=typeof t=="function"?t:t===void 0?sC:Qe(t);function l(u){var f,d=(u=R_(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:Qe(+u),l):e},l.y=function(u){return arguments.length?(t=typeof u=="function"?u:Qe(+u),l):t},l.defined=function(u){return arguments.length?(n=typeof u=="function"?u:Qe(!!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 yh(e,t,n){var r=null,i=Qe(!0),o=null,s=fm,l=null,u=D_(f);e=typeof e=="function"?e:e===void 0?aC:Qe(+e),t=typeof t=="function"?t:Qe(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?sC:Qe(+n);function f(h){var m,v,w,b=(h=R_(h)).length,P,_=!1,x,S=new Array(b),E=new Array(b);for(o==null&&(l=s(x=u())),m=0;m<=b;++m){if(!(m<b&&i(P=h[m],m,h))===_)if(_=!_)v=m,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),w=m-1;w>=v;--w)l.point(S[w],E[w]);l.lineEnd(),l.areaEnd()}_&&(S[m]=+e(P,m,h),E[m]=+t(P,m,h),l.point(r?+r(P,m,h):S[m],n?+n(P,m,h):E[m]))}if(x)return l=null,x+""||null}function d(){return lC().defined(i).curve(s).context(o)}return f.x=function(h){return arguments.length?(e=typeof h=="function"?h:Qe(+h),r=null,f):e},f.x0=function(h){return arguments.length?(e=typeof h=="function"?h:Qe(+h),f):e},f.x1=function(h){return arguments.length?(r=h==null?null:typeof h=="function"?h:Qe(+h),f):r},f.y=function(h){return arguments.length?(t=typeof h=="function"?h:Qe(+h),n=null,f):t},f.y0=function(h){return arguments.length?(t=typeof h=="function"?h:Qe(+h),f):t},f.y1=function(h){return arguments.length?(n=h==null?null:typeof h=="function"?h:Qe(+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:Qe(!!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 uC{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 h9(e){return new uC(e,!0)}function d9(e){return new uC(e,!1)}const z_={draw(e,t){const n=Rr(t/Ed);e.moveTo(n,0),e.arc(0,0,n,0,cm)}},p9={draw(e,t){const n=Rr(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()}},cC=Rr(1/3),m9=cC*2,v9={draw(e,t){const n=Rr(t/m9),r=n*cC;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},g9={draw(e,t){const n=Rr(t),r=-n/2;e.rect(r,r,n,n)}},y9=.8908130915292852,fC=Ad(Ed/10)/Ad(7*Ed/10),x9=Ad(cm/10)*fC,_9=-rC(cm/10)*fC,b9={draw(e,t){const n=Rr(t*y9),r=x9*n,i=_9*n;e.moveTo(0,-n),e.lineTo(r,i);for(let o=1;o<5;++o){const s=cm*o/5,l=rC(s),u=Ad(s);e.lineTo(u*n,-l*n),e.lineTo(l*r-u*i,u*r+l*i)}e.closePath()}},$v=Rr(3),w9={draw(e,t){const n=-Rr(t/($v*3));e.moveTo(0,n*2),e.lineTo(-$v*n,-n),e.lineTo($v*n,-n),e.closePath()}},or=-.5,ar=Rr(3)/2,My=1/Rr(12),S9=(My/2+1)*3,P9={draw(e,t){const n=Rr(t/S9),r=n/2,i=n*My,o=r,s=n*My+n,l=-o,u=s;e.moveTo(r,i),e.lineTo(o,s),e.lineTo(l,u),e.lineTo(or*r-ar*i,ar*r+or*i),e.lineTo(or*o-ar*s,ar*o+or*s),e.lineTo(or*l-ar*u,ar*l+or*u),e.lineTo(or*r+ar*i,or*i-ar*r),e.lineTo(or*o+ar*s,or*s-ar*o),e.lineTo(or*l+ar*u,or*u-ar*l),e.closePath()}};function O9(e,t){let n=null,r=D_(i);e=typeof e=="function"?e:Qe(e||z_),t=typeof t=="function"?t:Qe(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:Qe(o),i):e},i.size=function(o){return arguments.length?(t=typeof o=="function"?o:Qe(+o),i):t},i.context=function(o){return arguments.length?(n=o??null,i):n},i}function kd(){}function Md(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 hC(e){this._context=e}hC.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:Md(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:Md(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function T9(e){return new hC(e)}function dC(e){this._context=e}dC.prototype={areaStart:kd,areaEnd:kd,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:Md(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function A9(e){return new dC(e)}function pC(e){this._context=e}pC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._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:Md(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function E9(e){return new pC(e)}function mC(e){this._context=e}mC.prototype={areaStart:kd,areaEnd:kd,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 k9(e){return new mC(e)}function iP(e){return e<0?-1:1}function oP(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(iP(o)+iP(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(l))||0}function aP(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Lv(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 Cd(e){this._context=e}Cd.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:Lv(this,this._t0,aP(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,Lv(this,aP(this,n=oP(this,e,t)),n);break;default:Lv(this,this._t0,n=oP(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function vC(e){this._context=new gC(e)}(vC.prototype=Object.create(Cd.prototype)).point=function(e,t){Cd.prototype.point.call(this,t,e)};function gC(e){this._context=e}gC.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 M9(e){return new Cd(e)}function C9(e){return new vC(e)}function yC(e){this._context=e}yC.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=sP(e),i=sP(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 sP(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 j9(e){return new yC(e)}function hm(e,t){this._context=e,this._t=t}hm.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 N9(e){return new hm(e,.5)}function $9(e){return new hm(e,0)}function L9(e){return new hm(e,1)}function Xs(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 Cy(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function I9(e,t){return e[t]}function D9(e){const t=[];return t.key=e,t}function R9(){var e=Qe([]),t=Cy,n=Xs,r=I9;function i(o){var s=Array.from(e.apply(this,arguments),D9),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=R_(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:Qe(Array.from(o)),i):e},i.value=function(o){return arguments.length?(r=typeof o=="function"?o:Qe(+o),i):r},i.order=function(o){return arguments.length?(t=o==null?Cy:typeof o=="function"?o:Qe(Array.from(o)),i):t},i.offset=function(o){return arguments.length?(n=o??Xs,i):n},i}function z9(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}Xs(e,t)}}function B9(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}Xs(e,t)}}function F9(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,w=0;w<l;++w){var b=e[t[w]],P=b[r][1]||0,_=b[r-1][1]||0;v+=P-_}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,Xs(e,t)}}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)}var V9=["type","size","sizeType"];function jy(){return jy=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},jy.apply(this,arguments)}function lP(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 uP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lP(Object(n),!0).forEach(function(r){U9(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function U9(e,t,n){return t=W9(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function W9(e){var t=H9(e,"string");return yc(t)=="symbol"?t:t+""}function H9(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)}function G9(e,t){if(e==null)return{};var n=Z9(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 Z9(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 xC={symbolCircle:z_,symbolCross:p9,symbolDiamond:v9,symbolSquare:g9,symbolStar:b9,symbolTriangle:w9,symbolWye:P9},K9=Math.PI/180,q9=function(t){var n="symbol".concat(um(t));return xC[n]||z_},X9=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*K9;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}},Y9=function(t,n){xC["symbol".concat(um(t))]=n},B_=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=G9(t,V9),f=uP(uP({},u),{},{type:r,size:o,sizeType:l}),d=function(){var P=q9(r),_=O9().type(P).size(X9(o,l,r));return _()},h=f.className,m=f.cx,v=f.cy,w=ke(f,!0);return m===+m&&v===+v&&o===+o?I.createElement("path",jy({},w,{className:Ie("recharts-symbols",h),transform:"translate(".concat(m,", ").concat(v,")"),d:d()})):null};B_.registerSymbol=Y9;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 Ny(){return Ny=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},Ny.apply(this,arguments)}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 Q9(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){xc(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 J9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eU(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,bC(r.key),r)}}function tU(e,t,n){return t&&eU(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function nU(e,t,n){return t=jd(t),rU(e,_C()?Reflect.construct(t,n||[],jd(e).constructor):t.apply(e,n))}function rU(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 iU(e)}function iU(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _C(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_C=function(){return!!e})()}function jd(e){return jd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},jd(e)}function oU(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 xc(e,t,n){return t=bC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bC(e){var t=aU(e,"string");return Ys(t)=="symbol"?t:t+""}function aU(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 sr=32,F_=function(e){function t(){return J9(this,t),nU(this,t,arguments)}return oU(t,e),tU(t,[{key:"renderIcon",value:function(r){var i=this.props.inactiveColor,o=sr/2,s=sr/6,l=sr/3,u=r.inactive?i:r.color;if(r.type==="plainline")return I.createElement("line",{strokeWidth:4,fill:"none",stroke:u,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:o,x2:sr,y2:o,className:"recharts-legend-icon"});if(r.type==="line")return I.createElement("path",{strokeWidth:4,fill:"none",stroke:u,d:"M0,".concat(o,"h").concat(l,`
|
|
359
|
+
A`).concat(s,",").concat(s,",0,1,1,").concat(2*l,",").concat(o,`
|
|
360
|
+
H`).concat(sr,"M").concat(2*l,",").concat(o,`
|
|
361
|
+
A`).concat(s,",").concat(s,",0,1,1,").concat(l,",").concat(o),className:"recharts-legend-icon"});if(r.type==="rect")return I.createElement("path",{stroke:"none",fill:u,d:"M0,".concat(sr/8,"h").concat(sr,"v").concat(sr*3/4,"h").concat(-sr,"z"),className:"recharts-legend-icon"});if(I.isValidElement(r.legendIcon)){var f=Q9({},r);return delete f.legendIcon,I.cloneElement(r.legendIcon,f)}return I.createElement(B_,{fill:u,cx:o,cy:o,size:sr,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:sr,height:sr},h={display:l==="horizontal"?"inline-block":"block",marginRight:10},m={display:"inline-block",verticalAlign:"middle",marginRight:4};return o.map(function(v,w){var b=v.formatter||u,P=Ie(xc(xc({"recharts-legend-item":!0},"legend-item-".concat(w),!0),"inactive",v.inactive));if(v.type==="none")return null;var _=Pe(v.value)?null:v.value;ji(!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 x=v.inactive?f:v.color;return I.createElement("li",Ny({className:P,style:h,key:"legend-item-".concat(w)},Td(r.props,v,w)),I.createElement(Py,{width:s,height:s,viewBox:d,style:m},r.renderIcon(v)),I.createElement("span",{className:"recharts-legend-item-text",style:{color:x}},b?b(_,v,w):_))})}},{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 I.createElement("ul",{className:"recharts-default-legend",style:l},this.renderItems())}}])}(j.PureComponent);xc(F_,"displayName","Legend");xc(F_,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var sU=Xp;function lU(){this.__data__=new sU,this.size=0}var uU=lU;function cU(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var fU=cU;function hU(e){return this.__data__.get(e)}var dU=hU;function pU(e){return this.__data__.has(e)}var mU=pU,vU=Xp,gU=E_,yU=k_,xU=200;function _U(e,t){var n=this.__data__;if(n instanceof vU){var r=n.__data__;if(!gU||r.length<xU-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new yU(r)}return n.set(e,t),this.size=n.size,this}var bU=_U,wU=Xp,SU=uU,PU=fU,OU=dU,TU=mU,AU=bU;function Cl(e){var t=this.__data__=new wU(e);this.size=t.size}Cl.prototype.clear=SU;Cl.prototype.delete=PU;Cl.prototype.get=OU;Cl.prototype.has=TU;Cl.prototype.set=AU;var wC=Cl,EU="__lodash_hash_undefined__";function kU(e){return this.__data__.set(e,EU),this}var MU=kU;function CU(e){return this.__data__.has(e)}var jU=CU,NU=k_,$U=MU,LU=jU;function Nd(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new NU;++t<n;)this.add(e[t])}Nd.prototype.add=Nd.prototype.push=$U;Nd.prototype.has=LU;var SC=Nd;function IU(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 PC=IU;function DU(e,t){return e.has(t)}var OC=DU,RU=SC,zU=PC,BU=OC,FU=1,VU=2;function UU(e,t,n,r,i,o){var s=n&FU,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&VU?new RU:void 0;for(o.set(e,t),o.set(t,e);++h<l;){var w=e[h],b=t[h];if(r)var P=s?r(b,w,h,t,e,o):r(w,b,h,e,t,o);if(P!==void 0){if(P)continue;m=!1;break}if(v){if(!zU(t,function(_,x){if(!BU(v,x)&&(w===_||i(w,_,n,r,o)))return v.push(x)})){m=!1;break}}else if(!(w===b||i(w,b,n,r,o))){m=!1;break}}return o.delete(e),o.delete(t),m}var TC=UU,WU=si,HU=WU.Uint8Array,GU=HU;function ZU(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var KU=ZU;function qU(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var V_=qU,fP=ff,hP=GU,XU=A_,YU=TC,QU=KU,JU=V_,eW=1,tW=2,nW="[object Boolean]",rW="[object Date]",iW="[object Error]",oW="[object Map]",aW="[object Number]",sW="[object RegExp]",lW="[object Set]",uW="[object String]",cW="[object Symbol]",fW="[object ArrayBuffer]",hW="[object DataView]",dP=fP?fP.prototype:void 0,Iv=dP?dP.valueOf:void 0;function dW(e,t,n,r,i,o,s){switch(n){case hW:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case fW:return!(e.byteLength!=t.byteLength||!o(new hP(e),new hP(t)));case nW:case rW:case aW:return XU(+e,+t);case iW:return e.name==t.name&&e.message==t.message;case sW:case uW:return e==t+"";case oW:var l=QU;case lW:var u=r&eW;if(l||(l=JU),e.size!=t.size&&!u)return!1;var f=s.get(e);if(f)return f==t;r|=tW,s.set(e,t);var d=YU(l(e),l(t),r,i,o,s);return s.delete(e),d;case cW:if(Iv)return Iv.call(e)==Iv.call(t)}return!1}var pW=dW;function mW(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var AC=mW,vW=AC,gW=In;function yW(e,t,n){var r=t(e);return gW(e)?r:vW(r,n(e))}var xW=yW;function _W(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 bW=_W;function wW(){return[]}var SW=wW,PW=bW,OW=SW,TW=Object.prototype,AW=TW.propertyIsEnumerable,pP=Object.getOwnPropertySymbols,EW=pP?function(e){return e==null?[]:(e=Object(e),PW(pP(e),function(t){return AW.call(e,t)}))}:OW,kW=EW;function MW(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var CW=MW,jW=Wi,NW=Hi,$W="[object Arguments]";function LW(e){return NW(e)&&jW(e)==$W}var IW=LW,mP=IW,DW=Hi,EC=Object.prototype,RW=EC.hasOwnProperty,zW=EC.propertyIsEnumerable,BW=mP(function(){return arguments}())?mP:function(e){return DW(e)&&RW.call(e,"callee")&&!zW.call(e,"callee")},U_=BW,$d={exports:{}};function FW(){return!1}var VW=FW;$d.exports;(function(e,t){var n=si,r=VW,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})($d,$d.exports);var kC=$d.exports,UW=9007199254740991,WW=/^(?:0|[1-9]\d*)$/;function HW(e,t){var n=typeof e;return t=t??UW,!!t&&(n=="number"||n!="symbol"&&WW.test(e))&&e>-1&&e%1==0&&e<t}var W_=HW,GW=9007199254740991;function ZW(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=GW}var H_=ZW,KW=Wi,qW=H_,XW=Hi,YW="[object Arguments]",QW="[object Array]",JW="[object Boolean]",e7="[object Date]",t7="[object Error]",n7="[object Function]",r7="[object Map]",i7="[object Number]",o7="[object Object]",a7="[object RegExp]",s7="[object Set]",l7="[object String]",u7="[object WeakMap]",c7="[object ArrayBuffer]",f7="[object DataView]",h7="[object Float32Array]",d7="[object Float64Array]",p7="[object Int8Array]",m7="[object Int16Array]",v7="[object Int32Array]",g7="[object Uint8Array]",y7="[object Uint8ClampedArray]",x7="[object Uint16Array]",_7="[object Uint32Array]",tt={};tt[h7]=tt[d7]=tt[p7]=tt[m7]=tt[v7]=tt[g7]=tt[y7]=tt[x7]=tt[_7]=!0;tt[YW]=tt[QW]=tt[c7]=tt[JW]=tt[f7]=tt[e7]=tt[t7]=tt[n7]=tt[r7]=tt[i7]=tt[o7]=tt[a7]=tt[s7]=tt[l7]=tt[u7]=!1;function b7(e){return XW(e)&&qW(e.length)&&!!tt[KW(e)]}var w7=b7;function S7(e){return function(t){return e(t)}}var MC=S7,Ld={exports:{}};Ld.exports;(function(e,t){var n=RM,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})(Ld,Ld.exports);var P7=Ld.exports,O7=w7,T7=MC,vP=P7,gP=vP&&vP.isTypedArray,A7=gP?T7(gP):O7,CC=A7,E7=CW,k7=U_,M7=In,C7=kC,j7=W_,N7=CC,$7=Object.prototype,L7=$7.hasOwnProperty;function I7(e,t){var n=M7(e),r=!n&&k7(e),i=!n&&!r&&C7(e),o=!n&&!r&&!i&&N7(e),s=n||r||i||o,l=s?E7(e.length,String):[],u=l.length;for(var f in e)(t||L7.call(e,f))&&!(s&&(f=="length"||i&&(f=="offset"||f=="parent")||o&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||j7(f,u)))&&l.push(f);return l}var D7=I7,R7=Object.prototype;function z7(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||R7;return e===n}var B7=z7;function F7(e,t){return function(n){return e(t(n))}}var jC=F7,V7=jC,U7=V7(Object.keys,Object),W7=U7,H7=B7,G7=W7,Z7=Object.prototype,K7=Z7.hasOwnProperty;function q7(e){if(!H7(e))return G7(e);var t=[];for(var n in Object(e))K7.call(e,n)&&n!="constructor"&&t.push(n);return t}var X7=q7,Y7=T_,Q7=H_;function J7(e){return e!=null&&Q7(e.length)&&!Y7(e)}var df=J7,eH=D7,tH=X7,nH=df;function rH(e){return nH(e)?eH(e):tH(e)}var dm=rH,iH=xW,oH=kW,aH=dm;function sH(e){return iH(e,aH,oH)}var lH=sH,yP=lH,uH=1,cH=Object.prototype,fH=cH.hasOwnProperty;function hH(e,t,n,r,i,o){var s=n&uH,l=yP(e),u=l.length,f=yP(t),d=f.length;if(u!=d&&!s)return!1;for(var h=u;h--;){var m=l[h];if(!(s?m in t:fH.call(t,m)))return!1}var v=o.get(e),w=o.get(t);if(v&&w)return v==t&&w==e;var b=!0;o.set(e,t),o.set(t,e);for(var P=s;++h<u;){m=l[h];var _=e[m],x=t[m];if(r)var S=s?r(x,_,m,t,e,o):r(_,x,m,e,t,o);if(!(S===void 0?_===x||i(_,x,n,r,o):S)){b=!1;break}P||(P=m=="constructor")}if(b&&!P){var E=e.constructor,O=t.constructor;E!=O&&"constructor"in e&&"constructor"in t&&!(typeof E=="function"&&E instanceof E&&typeof O=="function"&&O instanceof O)&&(b=!1)}return o.delete(e),o.delete(t),b}var dH=hH,pH=Fa,mH=si,vH=pH(mH,"DataView"),gH=vH,yH=Fa,xH=si,_H=yH(xH,"Promise"),bH=_H,wH=Fa,SH=si,PH=wH(SH,"Set"),NC=PH,OH=Fa,TH=si,AH=OH(TH,"WeakMap"),EH=AH,Ly=gH,Iy=E_,Dy=bH,Ry=NC,zy=EH,$C=Wi,jl=BM,xP="[object Map]",kH="[object Object]",_P="[object Promise]",bP="[object Set]",wP="[object WeakMap]",SP="[object DataView]",MH=jl(Ly),CH=jl(Iy),jH=jl(Dy),NH=jl(Ry),$H=jl(zy),ua=$C;(Ly&&ua(new Ly(new ArrayBuffer(1)))!=SP||Iy&&ua(new Iy)!=xP||Dy&&ua(Dy.resolve())!=_P||Ry&&ua(new Ry)!=bP||zy&&ua(new zy)!=wP)&&(ua=function(e){var t=$C(e),n=t==kH?e.constructor:void 0,r=n?jl(n):"";if(r)switch(r){case MH:return SP;case CH:return xP;case jH:return _P;case NH:return bP;case $H:return wP}return t});var LH=ua,Dv=wC,IH=TC,DH=pW,RH=dH,PP=LH,OP=In,TP=kC,zH=CC,BH=1,AP="[object Arguments]",EP="[object Array]",xh="[object Object]",FH=Object.prototype,kP=FH.hasOwnProperty;function VH(e,t,n,r,i,o){var s=OP(e),l=OP(t),u=s?EP:PP(e),f=l?EP:PP(t);u=u==AP?xh:u,f=f==AP?xh:f;var d=u==xh,h=f==xh,m=u==f;if(m&&TP(e)){if(!TP(t))return!1;s=!0,d=!1}if(m&&!d)return o||(o=new Dv),s||zH(e)?IH(e,t,n,r,i,o):DH(e,t,u,n,r,i,o);if(!(n&BH)){var v=d&&kP.call(e,"__wrapped__"),w=h&&kP.call(t,"__wrapped__");if(v||w){var b=v?e.value():e,P=w?t.value():t;return o||(o=new Dv),i(b,P,n,r,o)}}return m?(o||(o=new Dv),RH(e,t,n,r,i,o)):!1}var UH=VH,WH=UH,MP=Hi;function LC(e,t,n,r,i){return e===t?!0:e==null||t==null||!MP(e)&&!MP(t)?e!==e&&t!==t:WH(e,t,n,r,LC,i)}var G_=LC,HH=wC,GH=G_,ZH=1,KH=2;function qH(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 HH;if(r)var m=r(f,d,u,e,t,h);if(!(m===void 0?GH(d,f,ZH|KH,r,h):m))return!1}}return!0}var XH=qH,YH=Do;function QH(e){return e===e&&!YH(e)}var IC=QH,JH=IC,eG=dm;function tG(e){for(var t=eG(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,JH(i)]}return t}var nG=tG;function rG(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var DC=rG,iG=XH,oG=nG,aG=DC;function sG(e){var t=oG(e);return t.length==1&&t[0][2]?aG(t[0][0],t[0][1]):function(n){return n===e||iG(n,e,t)}}var lG=sG;function uG(e,t){return e!=null&&t in Object(e)}var cG=uG,fG=HM,hG=U_,dG=In,pG=W_,mG=H_,vG=Qp;function gG(e,t,n){t=fG(t,e);for(var r=-1,i=t.length,o=!1;++r<i;){var s=vG(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&&mG(i)&&pG(s,i)&&(dG(e)||hG(e)))}var yG=gG,xG=cG,_G=yG;function bG(e,t){return e!=null&&_G(e,t,xG)}var wG=bG,SG=G_,PG=GM,OG=wG,TG=O_,AG=IC,EG=DC,kG=Qp,MG=1,CG=2;function jG(e,t){return TG(e)&&AG(t)?EG(kG(e),t):function(n){var r=PG(n,e);return r===void 0&&r===t?OG(n,e):SG(t,r,MG|CG)}}var NG=jG;function $G(e){return e}var Nl=$G;function LG(e){return function(t){return t==null?void 0:t[e]}}var IG=LG,DG=j_;function RG(e){return function(t){return DG(t,e)}}var zG=RG,BG=IG,FG=zG,VG=O_,UG=Qp;function WG(e){return VG(e)?BG(UG(e)):FG(e)}var HG=WG,GG=lG,ZG=NG,KG=Nl,qG=In,XG=HG;function YG(e){return typeof e=="function"?e:e==null?KG:typeof e=="object"?qG(e)?ZG(e[0],e[1]):GG(e):XG(e)}var Ro=YG;function QG(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 RC=QG;function JG(e){return e!==e}var eZ=JG;function tZ(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}var nZ=tZ,rZ=RC,iZ=eZ,oZ=nZ;function aZ(e,t,n){return t===t?oZ(e,t,n):rZ(e,iZ,n)}var sZ=aZ,lZ=sZ;function uZ(e,t){var n=e==null?0:e.length;return!!n&&lZ(e,t,0)>-1}var cZ=uZ;function fZ(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 hZ=fZ;function dZ(){}var pZ=dZ,Rv=NC,mZ=pZ,vZ=V_,gZ=1/0,yZ=Rv&&1/vZ(new Rv([,-0]))[1]==gZ?function(e){return new Rv(e)}:mZ,xZ=yZ,_Z=SC,bZ=cZ,wZ=hZ,SZ=OC,PZ=xZ,OZ=V_,TZ=200;function AZ(e,t,n){var r=-1,i=bZ,o=e.length,s=!0,l=[],u=l;if(n)s=!1,i=wZ;else if(o>=TZ){var f=t?null:PZ(e);if(f)return OZ(f);s=!1,i=SZ,u=new _Z}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 EZ=AZ,kZ=Ro,MZ=EZ;function CZ(e,t){return e&&e.length?MZ(e,kZ(t)):[]}var jZ=CZ;const CP=Ke(jZ);function zC(e,t,n){return t===!0?CP(e,n):Pe(t)?CP(e,t):e}function Qs(e){"@babel/helpers - typeof";return Qs=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},Qs(e)}var NZ=["ref"];function jP(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 yi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jP(Object(n),!0).forEach(function(r){pm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $Z(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function NP(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,FC(r.key),r)}}function LZ(e,t,n){return t&&NP(e.prototype,t),n&&NP(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function IZ(e,t,n){return t=Id(t),DZ(e,BC()?Reflect.construct(t,n||[],Id(e).constructor):t.apply(e,n))}function DZ(e,t){if(t&&(Qs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return RZ(e)}function RZ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function BC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(BC=function(){return!!e})()}function Id(e){return Id=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Id(e)}function zZ(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&&By(e,t)}function By(e,t){return By=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},By(e,t)}function pm(e,t,n){return t=FC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FC(e){var t=BZ(e,"string");return Qs(t)=="symbol"?t:t+""}function BZ(e,t){if(Qs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Qs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function FZ(e,t){if(e==null)return{};var n=VZ(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 VZ(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 UZ(e){return e.value}function WZ(e,t){if(I.isValidElement(e))return I.cloneElement(e,t);if(typeof e=="function")return I.createElement(e,t);t.ref;var n=FZ(t,NZ);return I.createElement(F_,n)}var $P=1,Ds=function(e){function t(){var n;$Z(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=IZ(this,t,[].concat(i)),pm(n,"lastBoundingBox",{width:-1,height:-1}),n}return zZ(t,e),LZ(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)>$P||Math.abs(i.height-this.lastBoundingBox.height)>$P)&&(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?yi({},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 w=this.getBBoxSnapshot();m={top:((d||0)-w.height)/2}}else m=l==="bottom"?{bottom:u&&u.bottom||0}:{top:u&&u.top||0};return yi(yi({},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=yi(yi({position:"absolute",width:s||"auto",height:l||"auto"},this.getDefaultPosition(u)),u);return I.createElement("div",{className:"recharts-legend-wrapper",style:h,ref:function(v){r.wrapperNode=v}},WZ(o,yi(yi({},this.props),{},{payload:zC(d,f,UZ)})))}}],[{key:"getWithHeight",value:function(r,i){var o=yi(yi({},this.defaultProps),r.props),s=o.layout;return s==="vertical"&&oe(r.props.height)?{height:r.props.height}:s==="horizontal"?{width:r.props.width||i}:null}}])}(j.PureComponent);pm(Ds,"displayName","Legend");pm(Ds,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var LP=ff,HZ=U_,GZ=In,IP=LP?LP.isConcatSpreadable:void 0;function ZZ(e){return GZ(e)||HZ(e)||!!(IP&&e&&e[IP])}var KZ=ZZ,qZ=AC,XZ=KZ;function VC(e,t,n,r,i){var o=-1,s=e.length;for(n||(n=XZ),i||(i=[]);++o<s;){var l=e[o];t>0&&n(l)?t>1?VC(l,t-1,n,r,i):qZ(i,l):r||(i[i.length]=l)}return i}var UC=VC;function YZ(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 QZ=YZ,JZ=QZ,eK=JZ(),tK=eK,nK=tK,rK=dm;function iK(e,t){return e&&nK(e,t,rK)}var WC=iK,oK=df;function aK(e,t){return function(n,r){if(n==null)return n;if(!oK(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 sK=aK,lK=WC,uK=sK,cK=uK(lK),Z_=cK,fK=Z_,hK=df;function dK(e,t){var n=-1,r=hK(e)?Array(e.length):[];return fK(e,function(i,o,s){r[++n]=t(i,o,s)}),r}var HC=dK;function pK(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var mK=pK,DP=Ol;function vK(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,o=DP(e),s=t!==void 0,l=t===null,u=t===t,f=DP(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 gK=vK,yK=gK;function xK(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,s=i.length,l=n.length;++r<s;){var u=yK(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 _K=xK,zv=C_,bK=j_,wK=Ro,SK=HC,PK=mK,OK=MC,TK=_K,AK=Nl,EK=In;function kK(e,t,n){t.length?t=zv(t,function(o){return EK(o)?function(s){return bK(s,o.length===1?o[0]:o)}:o}):t=[AK];var r=-1;t=zv(t,OK(wK));var i=SK(e,function(o,s,l){var u=zv(t,function(f){return f(o)});return{criteria:u,index:++r,value:o}});return PK(i,function(o,s){return TK(o,s,n)})}var MK=kK;function CK(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 jK=CK,NK=jK,RP=Math.max;function $K(e,t,n){return t=RP(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=RP(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),NK(e,this,l)}}var LK=$K;function IK(e){return function(){return e}}var DK=IK,RK=Fa,zK=function(){try{var e=RK(Object,"defineProperty");return e({},"",{}),e}catch{}}(),GC=zK,BK=DK,zP=GC,FK=Nl,VK=zP?function(e,t){return zP(e,"toString",{configurable:!0,enumerable:!1,value:BK(t),writable:!0})}:FK,UK=VK,WK=800,HK=16,GK=Date.now;function ZK(e){var t=0,n=0;return function(){var r=GK(),i=HK-(r-n);if(n=r,i>0){if(++t>=WK)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var KK=ZK,qK=UK,XK=KK,YK=XK(qK),QK=YK,JK=Nl,eq=LK,tq=QK;function nq(e,t){return tq(eq(e,t,JK),e+"")}var rq=nq,iq=A_,oq=df,aq=W_,sq=Do;function lq(e,t,n){if(!sq(n))return!1;var r=typeof t;return(r=="number"?oq(n)&&aq(t,n.length):r=="string"&&t in n)?iq(n[t],e):!1}var mm=lq,uq=UC,cq=MK,fq=rq,BP=mm,hq=fq(function(e,t){if(e==null)return[];var n=t.length;return n>1&&BP(e,t[0],t[1])?t=[]:n>2&&BP(t[0],t[1],t[2])&&(t=[t[0]]),cq(e,uq(t,1),[])}),dq=hq;const K_=Ke(dq);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 Fy(){return Fy=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},Fy.apply(this,arguments)}function pq(e,t){return yq(e)||gq(e,t)||vq(e,t)||mq()}function mq(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
362
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vq(e,t){if(e){if(typeof e=="string")return FP(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 FP(e,t)}}function FP(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 gq(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 yq(e){if(Array.isArray(e))return e}function VP(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 Bv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?VP(Object(n),!0).forEach(function(r){xq(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xq(e,t,n){return t=_q(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _q(e){var t=bq(e,"string");return _c(t)=="symbol"?t:t+""}function bq(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(t==="string"?String:Number)(e)}function wq(e){return Array.isArray(e)&&$t(e[0])&&$t(e[1])?e.join(" ~ "):e}var Sq=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,w=t.labelClassName,b=t.label,P=t.labelFormatter,_=t.accessibilityLayer,x=_===void 0?!1:_,S=function(){if(d&&d.length){var R={padding:0,margin:0},Y=(m?K_(d,m):d).map(function(H,Z){if(H.type==="none")return null;var K=Bv({display:"block",paddingTop:4,paddingBottom:4,color:H.color||"#000"},l),q=H.formatter||h||wq,D=H.value,U=H.name,V=D,ee=U;if(q&&V!=null&&ee!=null){var te=q(D,U,H,Z,d);if(Array.isArray(te)){var ae=pq(te,2);V=ae[0],ee=ae[1]}else V=te}return I.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(Z),style:K},$t(ee)?I.createElement("span",{className:"recharts-tooltip-item-name"},ee):null,$t(ee)?I.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,I.createElement("span",{className:"recharts-tooltip-item-value"},V),I.createElement("span",{className:"recharts-tooltip-item-unit"},H.unit||""))});return I.createElement("ul",{className:"recharts-tooltip-item-list",style:R},Y)}return null},E=Bv({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},o),O=Bv({margin:0},f),A=!Ce(b),M=A?b:"",C=Ie("recharts-default-tooltip",v),N=Ie("recharts-tooltip-label",w);A&&P&&d!==void 0&&d!==null&&(M=P(b,d));var z=x?{role:"status","aria-live":"assertive"}:{};return I.createElement("div",Fy({className:C,style:E},z),I.createElement("p",{className:N,style:O},I.isValidElement(M)?M:"".concat(M)),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 _h(e,t,n){return t=Pq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pq(e){var t=Oq(e,"string");return bc(t)=="symbol"?t:t+""}function Oq(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)}var cu="recharts-tooltip-wrapper",Tq={visibility:"hidden"};function Aq(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return Ie(cu,_h(_h(_h(_h({},"".concat(cu,"-right"),oe(n)&&t&&oe(t.x)&&n>=t.x),"".concat(cu,"-left"),oe(n)&&t&&oe(t.x)&&n<t.x),"".concat(cu,"-bottom"),oe(r)&&t&&oe(t.y)&&r>=t.y),"".concat(cu,"-top"),oe(r)&&t&&oe(t.y)&&r<t.y))}function UP(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&&oe(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 w=h+l,b=u[r]+f;return w>b?Math.max(d,u[r]):Math.max(h,u[r])}function Eq(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 kq(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=UP({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:i,reverseDirection:o,tooltipDimension:s.width,viewBox:u,viewBoxDimension:u.width}),h=UP({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:i,reverseDirection:o,tooltipDimension:s.height,viewBox:u,viewBoxDimension:u.height}),f=Eq({translateX:d,translateY:h,useTranslate3d:l})):f=Tq,{cssProperties:f,cssClasses:Aq({translateX:d,translateY:h,coordinate:n})}}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 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 HP(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){Uy(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 Mq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cq(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,KC(r.key),r)}}function jq(e,t,n){return t&&Cq(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Nq(e,t,n){return t=Dd(t),$q(e,ZC()?Reflect.construct(t,n||[],Dd(e).constructor):t.apply(e,n))}function $q(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 Lq(e)}function Lq(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ZC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ZC=function(){return!!e})()}function Dd(e){return Dd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Dd(e)}function Iq(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&&Vy(e,t)}function Vy(e,t){return Vy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Vy(e,t)}function Uy(e,t,n){return t=KC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function KC(e){var t=Dq(e,"string");return Js(t)=="symbol"?t:t+""}function Dq(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 GP=1,Rq=function(e){function t(){var n;Mq(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=Nq(this,t,[].concat(i)),Uy(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),Uy(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 Iq(t,e),jq(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>GP||Math.abs(r.height-this.state.lastBoundingBox.height)>GP)&&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,w=i.position,b=i.reverseDirection,P=i.useTranslate3d,_=i.viewBox,x=i.wrapperStyle,S=kq({allowEscapeViewBox:s,coordinate:d,offsetTopLeft:v,position:w,reverseDirection:b,tooltipBox:this.state.lastBoundingBox,useTranslate3d:P,viewBox:_}),E=S.cssClasses,O=S.cssProperties,A=HP(HP({transition:m&&o?"transform ".concat(l,"ms ").concat(u):void 0},O),{},{pointerEvents:"none",visibility:!this.state.dismissed&&o&&h?"visible":"hidden",position:"absolute",top:0,left:0},x);return I.createElement("div",{tabIndex:-1,className:E,style:A,ref:function(C){r.wrapperNode=C}},f)}}])}(j.PureComponent),zq=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},$l={isSsr:zq()};function el(e){"@babel/helpers - typeof";return el=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},el(e)}function ZP(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 KP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ZP(Object(n),!0).forEach(function(r){q_(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZP(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 Fq(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,XC(r.key),r)}}function Vq(e,t,n){return t&&Fq(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Uq(e,t,n){return t=Rd(t),Wq(e,qC()?Reflect.construct(t,n||[],Rd(e).constructor):t.apply(e,n))}function Wq(e,t){if(t&&(el(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Hq(e)}function Hq(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(qC=function(){return!!e})()}function Rd(e){return Rd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Rd(e)}function Gq(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 q_(e,t,n){return t=XC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XC(e){var t=Zq(e,"string");return el(t)=="symbol"?t:t+""}function Zq(e,t){if(el(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(el(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Kq(e){return e.dataKey}function qq(e,t){return I.isValidElement(e)?I.cloneElement(e,t):typeof e=="function"?I.createElement(e,t):I.createElement(Sq,t)}var _i=function(e){function t(){return Bq(this,t),Uq(this,t,arguments)}return Gq(t,e),Vq(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,w=i.payload,b=i.payloadUniqBy,P=i.position,_=i.reverseDirection,x=i.useTranslate3d,S=i.viewBox,E=i.wrapperStyle,O=w??[];h&&O.length&&(O=zC(w.filter(function(M){return M.value!=null&&(M.hide!==!0||r.props.includeHidden)}),b,Kq));var A=O.length>0;return I.createElement(Rq,{allowEscapeViewBox:s,animationDuration:l,animationEasing:u,isAnimationActive:m,active:o,coordinate:d,hasPayload:A,offset:v,position:P,reverseDirection:_,useTranslate3d:x,viewBox:S,wrapperStyle:E},qq(f,KP(KP({},this.props),{},{payload:O})))}}])}(j.PureComponent);q_(_i,"displayName","Tooltip");q_(_i,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!$l.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 Xq=si,Yq=function(){return Xq.Date.now()},Qq=Yq,Jq=/\s/;function eX(e){for(var t=e.length;t--&&Jq.test(e.charAt(t)););return t}var tX=eX,nX=tX,rX=/^\s+/;function iX(e){return e&&e.slice(0,nX(e)+1).replace(rX,"")}var oX=iX,aX=oX,qP=Do,sX=Ol,XP=NaN,lX=/^[-+]0x[0-9a-f]+$/i,uX=/^0b[01]+$/i,cX=/^0o[0-7]+$/i,fX=parseInt;function hX(e){if(typeof e=="number")return e;if(sX(e))return XP;if(qP(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=qP(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=aX(e);var n=uX.test(e);return n||cX.test(e)?fX(e.slice(2),n?2:8):lX.test(e)?XP:+e}var YC=hX,dX=Do,Fv=Qq,YP=YC,pX="Expected a function",mX=Math.max,vX=Math.min;function gX(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(pX);t=YP(t)||0,dX(n)&&(d=!!n.leading,h="maxWait"in n,o=h?mX(YP(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 w(A){return f=A,l=setTimeout(_,t),d?v(A):s}function b(A){var M=A-u,C=A-f,N=t-M;return h?vX(N,o-C):N}function P(A){var M=A-u,C=A-f;return u===void 0||M>=t||M<0||h&&C>=o}function _(){var A=Fv();if(P(A))return x(A);l=setTimeout(_,b(A))}function x(A){return l=void 0,m&&r?v(A):(r=i=void 0,s)}function S(){l!==void 0&&clearTimeout(l),f=0,r=u=i=l=void 0}function E(){return l===void 0?s:x(Fv())}function O(){var A=Fv(),M=P(A);if(r=arguments,i=this,u=A,M){if(l===void 0)return w(u);if(h)return clearTimeout(l),l=setTimeout(_,t),v(u)}return l===void 0&&(l=setTimeout(_,t)),s}return O.cancel=S,O.flush=E,O}var yX=gX,xX=yX,_X=Do,bX="Expected a function";function wX(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(bX);return _X(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),xX(e,t,{leading:r,maxWait:t,trailing:i})}var SX=wX;const QC=Ke(SX);function wc(e){"@babel/helpers - typeof";return wc=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},wc(e)}function QP(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 bh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?QP(Object(n),!0).forEach(function(r){PX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function PX(e,t,n){return t=OX(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function OX(e){var t=TX(e,"string");return wc(t)=="symbol"?t:t+""}function TX(e,t){if(wc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(wc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function AX(e,t){return CX(e)||MX(e,t)||kX(e,t)||EX()}function EX(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
363
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kX(e,t){if(e){if(typeof e=="string")return 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 MX(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 CX(e){if(Array.isArray(e))return e}var eO=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,w=e.debounce,b=w===void 0?0:w,P=e.id,_=e.className,x=e.onResize,S=e.style,E=S===void 0?{}:S,O=j.useRef(null),A=j.useRef();A.current=x,j.useImperativeHandle(t,function(){return Object.defineProperty(O.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),O.current},configurable:!0})});var M=j.useState({containerWidth:i.width,containerHeight:i.height}),C=AX(M,2),N=C[0],z=C[1],B=j.useCallback(function(Y,H){z(function(Z){var K=Math.round(Y),q=Math.round(H);return Z.containerWidth===K&&Z.containerHeight===q?Z:{containerWidth:K,containerHeight:q}})},[]);j.useEffect(function(){var Y=function(U){var V,ee=U[0].contentRect,te=ee.width,ae=ee.height;B(te,ae),(V=A.current)===null||V===void 0||V.call(A,te,ae)};b>0&&(Y=QC(Y,b,{trailing:!0,leading:!1}));var H=new ResizeObserver(Y),Z=O.current.getBoundingClientRect(),K=Z.width,q=Z.height;return B(K,q),H.observe(O.current),function(){H.disconnect()}},[B,b]);var R=j.useMemo(function(){var Y=N.containerWidth,H=N.containerHeight;if(Y<0||H<0)return null;ji(va(s)||va(u),`The width(%s) and height(%s) are both fixed numbers,
|
|
364
|
+
maybe you don't need to use a ResponsiveContainer.`,s,u),ji(!n||n>0,"The aspect(%s) must be greater than zero.",n);var Z=va(s)?Y:s,K=va(u)?H:u;n&&n>0&&(Z?K=Z/n:K&&(Z=K*n),m&&K>m&&(K=m)),ji(Z>0||K>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
|
365
|
+
please check the style of container, or the props width(%s) and height(%s),
|
|
366
|
+
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
|
367
|
+
height and width.`,Z,K,s,u,d,h,n);var q=!Array.isArray(v)&&Ci(v.type).endsWith("Chart");return I.Children.map(v,function(D){return I.isValidElement(D)?j.cloneElement(D,bh({width:Z,height:K},q?{style:bh({height:"100%",width:"100%",maxHeight:K,maxWidth:Z},D.props.style)}:{})):D})},[n,v,u,m,h,d,N,s]);return I.createElement("div",{id:P?"".concat(P):void 0,className:Ie("recharts-responsive-container",_),style:bh(bh({},E),{},{width:s,height:u,minWidth:d,minHeight:h,maxHeight:m}),ref:O},R)}),X_=function(t){return null};X_.displayName="Cell";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 tO(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 Hy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tO(Object(n),!0).forEach(function(r){jX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jX(e,t,n){return t=NX(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function NX(e){var t=$X(e,"string");return Sc(t)=="symbol"?t:t+""}function $X(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 ss={widthCache:{},cacheCount:0},LX=2e3,IX={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},nO="recharts_measurement_span";function DX(e){var t=Hy({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var Hu=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||$l.isSsr)return{width:0,height:0};var r=DX(n),i=JSON.stringify({text:t,copyStyle:r});if(ss.widthCache[i])return ss.widthCache[i];try{var o=document.getElementById(nO);o||(o=document.createElement("span"),o.setAttribute("id",nO),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var s=Hy(Hy({},IX),r);Object.assign(o.style,s),o.textContent="".concat(t);var l=o.getBoundingClientRect(),u={width:l.width,height:l.height};return ss.widthCache[i]=u,++ss.cacheCount>LX&&(ss.cacheCount=0,ss.widthCache={}),u}catch{return{width:0,height:0}}},RX=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};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 zd(e,t){return VX(e)||FX(e,t)||BX(e,t)||zX()}function zX(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
368
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BX(e,t){if(e){if(typeof e=="string")return rO(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 rO(e,t)}}function rO(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 FX(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 VX(e){if(Array.isArray(e))return e}function UX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iO(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,HX(r.key),r)}}function WX(e,t,n){return t&&iO(e.prototype,t),n&&iO(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function HX(e){var t=GX(e,"string");return Pc(t)=="symbol"?t:t+""}function GX(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 String(e)}var oO=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,aO=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,ZX=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,KX=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,JC={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},qX=Object.keys(JC),As="NaN";function XX(e,t){return e*JC[t]}var wh=function(){function e(t,n){UX(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!ZX.test(n)&&(this.num=NaN,this.unit=""),qX.includes(n)&&(this.num=XX(t,n),this.unit="px")}return WX(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=KX.exec(n))!==null&&r!==void 0?r:[],o=zd(i,3),s=o[1],l=o[2];return new e(parseFloat(s),l??"")}}])}();function ej(e){if(e.includes(As))return As;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=oO.exec(t))!==null&&n!==void 0?n:[],i=zd(r,4),o=i[1],s=i[2],l=i[3],u=wh.parse(o??""),f=wh.parse(l??""),d=s==="*"?u.multiply(f):u.divide(f);if(d.isNaN())return As;t=t.replace(oO,d.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var h,m=(h=aO.exec(t))!==null&&h!==void 0?h:[],v=zd(m,4),w=v[1],b=v[2],P=v[3],_=wh.parse(w??""),x=wh.parse(P??""),S=b==="+"?_.add(x):_.subtract(x);if(S.isNaN())return As;t=t.replace(aO,S.toString())}return t}var sO=/\(([^()]*)\)/;function YX(e){for(var t=e;t.includes("(");){var n=sO.exec(t),r=zd(n,2),i=r[1];t=t.replace(sO,ej(i))}return t}function QX(e){var t=e.replace(/\s+/g,"");return t=YX(t),t=ej(t),t}function JX(e){try{return QX(e)}catch{return As}}function Vv(e){var t=JX(e.slice(5,-1));return t===As?"":t}var eY=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],tY=["dx","dy","angle","className","breakAll"];function Gy(){return Gy=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},Gy.apply(this,arguments)}function lO(e,t){if(e==null)return{};var n=nY(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 nY(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 uO(e,t){return aY(e)||oY(e,t)||iY(e,t)||rY()}function rY(){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 iY(e,t){if(e){if(typeof e=="string")return cO(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 cO(e,t)}}function cO(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 oY(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 aY(e){if(Array.isArray(e))return e}var tj=/[ \f\n\r\t\v\u2028\u2029]+/,nj=function(t){var n=t.children,r=t.breakAll,i=t.style;try{var o=[];Ce(n)||(r?o=n.toString().split(""):o=n.toString().split(tj));var s=o.map(function(u){return{word:u,width:Hu(u,i).width}}),l=r?0:Hu(" ",i).width;return{wordsWithComputedWidth:s,spaceWidth:l}}catch{return null}},sY=function(t,n,r,i,o){var s=t.maxLines,l=t.children,u=t.style,f=t.breakAll,d=oe(s),h=l,m=function(){var Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Z.reduce(function(K,q){var D=q.word,U=q.width,V=K[K.length-1];if(V&&(i==null||o||V.width+U+r<Number(i)))V.words.push(D),V.width+=U+r;else{var ee={words:[D],width:U};K.push(ee)}return K},[])},v=m(n),w=function(Z){return Z.reduce(function(K,q){return K.width>q.width?K:q})};if(!d)return v;for(var b="…",P=function(Z){var K=h.slice(0,Z),q=nj({breakAll:f,style:u,children:K+b}).wordsWithComputedWidth,D=m(q),U=D.length>s||w(D).width>Number(i);return[U,D]},_=0,x=h.length-1,S=0,E;_<=x&&S<=h.length-1;){var O=Math.floor((_+x)/2),A=O-1,M=P(A),C=uO(M,2),N=C[0],z=C[1],B=P(O),R=uO(B,1),Y=R[0];if(!N&&!Y&&(_=O+1),N&&Y&&(x=O-1),!N&&Y){E=z;break}S++}return E||v},fO=function(t){var n=Ce(t)?[]:t.toString().split(tj);return[{words:n}]},lY=function(t){var n=t.width,r=t.scaleToFit,i=t.children,o=t.style,s=t.breakAll,l=t.maxLines;if((n||r)&&!$l.isSsr){var u,f,d=nj({breakAll:s,children:i,style:o});if(d){var h=d.wordsWithComputedWidth,m=d.spaceWidth;u=h,f=m}else return fO(i);return sY({breakAll:s,children:i,maxLines:l,style:o},u,f,n,r)}return fO(i)},hO="#808080",Bd=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,w=t.verticalAnchor,b=w===void 0?"end":w,P=t.fill,_=P===void 0?hO:P,x=lO(t,eY),S=j.useMemo(function(){return lY({breakAll:x.breakAll,children:x.children,maxLines:x.maxLines,scaleToFit:h,style:x.style,width:x.width})},[x.breakAll,x.children,x.maxLines,h,x.style,x.width]),E=x.dx,O=x.dy,A=x.angle,M=x.className,C=x.breakAll,N=lO(x,tY);if(!$t(r)||!$t(o))return null;var z=r+(oe(E)?E:0),B=o+(oe(O)?O:0),R;switch(b){case"start":R=Vv("calc(".concat(f,")"));break;case"middle":R=Vv("calc(".concat((S.length-1)/2," * -").concat(l," + (").concat(f," / 2))"));break;default:R=Vv("calc(".concat(S.length-1," * -").concat(l,")"));break}var Y=[];if(h){var H=S[0].width,Z=x.width;Y.push("scale(".concat((oe(Z)?Z/H:1)/H,")"))}return A&&Y.push("rotate(".concat(A,", ").concat(z,", ").concat(B,")")),Y.length&&(N.transform=Y.join(" ")),I.createElement("text",Gy({},ke(N,!0),{x:z,y:B,className:Ie("recharts-text",M),textAnchor:v,fill:_.includes("url")?hO:_}),S.map(function(K,q){var D=K.words.join(C?"":" ");return I.createElement("tspan",{x:z,dy:q===0?R:l,key:"".concat(D,"-").concat(q)},D)}))};function Eo(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function uY(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Y_(e){let t,n,r;e.length!==2?(t=Eo,n=(l,u)=>Eo(e(l),u),r=(l,u)=>e(l)-u):(t=e===Eo||e===uY?e:cY,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 cY(){return 0}function rj(e){return e===null?NaN:+e}function*fY(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const hY=Y_(Eo),pf=hY.right;Y_(rj).center;class dO extends Map{constructor(t,n=mY){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(pO(this,t))}has(t){return super.has(pO(this,t))}set(t,n){return super.set(dY(this,t),n)}delete(t){return super.delete(pY(this,t))}}function pO({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function dY({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function pY({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function mY(e){return e!==null&&typeof e=="object"?e.valueOf():e}function vY(e=Eo){if(e===Eo)return ij;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 ij(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const gY=Math.sqrt(50),yY=Math.sqrt(10),xY=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>=gY?10:o>=yY?5:o>=xY?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 Zy(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 Ky(e,t,n){return t=+t,e=+e,n=+n,Fd(e,t,n)[2]}function qy(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?Ky(t,e,n):Ky(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function mO(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function vO(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function oj(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?ij:vY(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)),w=Math.min(r,Math.floor(t+(u-f)*h/u+m));oj(e,t,v,w,i)}const o=e[t];let s=n,l=r;for(fu(e,n,t),i(e[r],o)>0&&fu(e,n,r);s<l;){for(fu(e,s,l),++s,--l;i(e[s],o)<0;)++s;for(;i(e[l],o)>0;)--l}i(e[n],o)===0?fu(e,n,l):(++l,fu(e,l,r)),l<=t&&(n=l+1),t<=l&&(r=l-1)}return e}function fu(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function _Y(e,t,n){if(e=Float64Array.from(fY(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return vO(e);if(t>=1)return mO(e);var r,i=(r-1)*t,o=Math.floor(i),s=mO(oj(e,o).subarray(0,o+1)),l=vO(e.subarray(o+1));return s+(l-s)*(i-o)}}function bY(e,t,n=rj){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 wY(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 _r(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Gi(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 Xy=Symbol("implicit");function Q_(){var e=new dO,t=[],n=[],r=Xy;function i(o){let s=e.get(o);if(s===void 0){if(r!==Xy)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 dO;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 Q_(t,n).unknown(r)},_r.apply(i,arguments),i}function Oc(){var e=Q_().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,w=v?i:r,b=v?r:i;o=(b-w)/Math.max(1,m-u+f*2),l&&(o=Math.floor(o)),w+=(b-w-o*(m-u))*d,s=o*(1-u),l&&(w=Math.round(w),s=Math.round(s));var P=wY(m).map(function(_){return w+o*_});return n(v?P.reverse():P)}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 Oc(t(),[r,i]).round(l).paddingInner(u).paddingOuter(f).align(d)},_r.apply(h(),arguments)}function aj(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return aj(t())},e}function Gu(){return aj(Oc.apply(null,arguments).paddingInner(1))}function J_(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function sj(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function mf(){}var Tc=.7,Vd=1/Tc,Rs="\\s*([+-]?\\d+)\\s*",Ac="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ri="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",SY=/^#([0-9a-f]{3,8})$/,PY=new RegExp(`^rgb\\(${Rs},${Rs},${Rs}\\)$`),OY=new RegExp(`^rgb\\(${ri},${ri},${ri}\\)$`),TY=new RegExp(`^rgba\\(${Rs},${Rs},${Rs},${Ac}\\)$`),AY=new RegExp(`^rgba\\(${ri},${ri},${ri},${Ac}\\)$`),EY=new RegExp(`^hsl\\(${Ac},${ri},${ri}\\)$`),kY=new RegExp(`^hsla\\(${Ac},${ri},${ri},${Ac}\\)$`),gO={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};J_(mf,Ec,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:yO,formatHex:yO,formatHex8:MY,formatHsl:CY,formatRgb:xO,toString:xO});function yO(){return this.rgb().formatHex()}function MY(){return this.rgb().formatHex8()}function CY(){return lj(this).formatHsl()}function xO(){return this.rgb().formatRgb()}function Ec(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=SY.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?_O(t):n===3?new jn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Sh(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Sh(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=PY.exec(e))?new jn(t[1],t[2],t[3],1):(t=OY.exec(e))?new jn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=TY.exec(e))?Sh(t[1],t[2],t[3],t[4]):(t=AY.exec(e))?Sh(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=EY.exec(e))?SO(t[1],t[2]/100,t[3]/100,1):(t=kY.exec(e))?SO(t[1],t[2]/100,t[3]/100,t[4]):gO.hasOwnProperty(e)?_O(gO[e]):e==="transparent"?new jn(NaN,NaN,NaN,0):null}function _O(e){return new jn(e>>16&255,e>>8&255,e&255,1)}function Sh(e,t,n,r){return r<=0&&(e=t=n=NaN),new jn(e,t,n,r)}function jY(e){return e instanceof mf||(e=Ec(e)),e?(e=e.rgb(),new jn(e.r,e.g,e.b,e.opacity)):new jn}function Yy(e,t,n,r){return arguments.length===1?jY(e):new jn(e,t,n,r??1)}function jn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}J_(jn,Yy,sj(mf,{brighter(e){return e=e==null?Vd:Math.pow(Vd,e),new jn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Tc:Math.pow(Tc,e),new jn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new jn(Pa(this.r),Pa(this.g),Pa(this.b),Ud(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:bO,formatHex:bO,formatHex8:NY,formatRgb:wO,toString:wO}));function bO(){return`#${ga(this.r)}${ga(this.g)}${ga(this.b)}`}function NY(){return`#${ga(this.r)}${ga(this.g)}${ga(this.b)}${ga((isNaN(this.opacity)?1:this.opacity)*255)}`}function wO(){const e=Ud(this.opacity);return`${e===1?"rgb(":"rgba("}${Pa(this.r)}, ${Pa(this.g)}, ${Pa(this.b)}${e===1?")":`, ${e})`}`}function Ud(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Pa(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ga(e){return e=Pa(e),(e<16?"0":"")+e.toString(16)}function SO(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new jr(e,t,n,r)}function lj(e){if(e instanceof jr)return new jr(e.h,e.s,e.l,e.opacity);if(e instanceof mf||(e=Ec(e)),!e)return new jr;if(e instanceof jr)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 jr(s,l,u,e.opacity)}function $Y(e,t,n,r){return arguments.length===1?lj(e):new jr(e,t,n,r??1)}function jr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}J_(jr,$Y,sj(mf,{brighter(e){return e=e==null?Vd:Math.pow(Vd,e),new jr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Tc:Math.pow(Tc,e),new jr(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 jn(Uv(e>=240?e-240:e+120,i,r),Uv(e,i,r),Uv(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new jr(PO(this.h),Ph(this.s),Ph(this.l),Ud(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=Ud(this.opacity);return`${e===1?"hsl(":"hsla("}${PO(this.h)}, ${Ph(this.s)*100}%, ${Ph(this.l)*100}%${e===1?")":`, ${e})`}`}}));function PO(e){return e=(e||0)%360,e<0?e+360:e}function Ph(e){return Math.max(0,Math.min(1,e||0))}function Uv(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 e1=e=>()=>e;function LY(e,t){return function(n){return e+n*t}}function IY(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 DY(e){return(e=+e)==1?uj:function(t,n){return n-t?IY(t,n,e):e1(isNaN(t)?n:t)}}function uj(e,t){var n=t-e;return n?LY(e,n):e1(isNaN(e)?t:e)}const OO=function e(t){var n=DY(t);function r(i,o){var s=n((i=Yy(i)).r,(o=Yy(o)).r),l=n(i.g,o.g),u=n(i.b,o.b),f=uj(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 RY(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 zY(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function BY(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]=Ll(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 FY(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Wd(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function VY(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]=Ll(e[i],t[i]):r[i]=t[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var Qy=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Wv=new RegExp(Qy.source,"g");function UY(e){return function(){return e}}function WY(e){return function(t){return e(t)+""}}function HY(e,t){var n=Qy.lastIndex=Wv.lastIndex=0,r,i,o,s=-1,l=[],u=[];for(e=e+"",t=t+"";(r=Qy.exec(e))&&(i=Wv.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:Wd(r,i)})),n=Wv.lastIndex;return n<t.length&&(o=t.slice(n),l[s]?l[s]+=o:l[++s]=o),l.length<2?u[0]?WY(u[0].x):UY(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 Ll(e,t){var n=typeof t,r;return t==null||n==="boolean"?e1(t):(n==="number"?Wd:n==="string"?(r=Ec(t))?(t=r,OO):HY:t instanceof Ec?OO:t instanceof Date?FY:zY(t)?RY:Array.isArray(t)?BY:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?VY:Wd)(e,t)}function t1(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function GY(e,t){t===void 0&&(t=e,e=Ll);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 ZY(e){return function(){return e}}function Hd(e){return+e}var TO=[0,1];function _n(e){return e}function Jy(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:ZY(isNaN(t)?NaN:.5)}function KY(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function qY(e,t,n){var r=e[0],i=e[1],o=t[0],s=t[1];return i<r?(r=Jy(i,r),o=n(s,o)):(r=Jy(r,i),o=n(o,s)),function(l){return o(r(l))}}function XY(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]=Jy(e[s],e[s+1]),o[s]=n(t[s],t[s+1]);return function(l){var u=pf(e,l,1,r)-1;return o[u](i[u](l))}}function vf(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function vm(){var e=TO,t=TO,n=Ll,r,i,o,s=_n,l,u,f;function d(){var m=Math.min(e.length,t.length);return s!==_n&&(s=KY(e[0],e[m-1])),l=m>2?XY:qY,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),Wd)))(m)))},h.domain=function(m){return arguments.length?(e=Array.from(m,Hd),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=t1,d()},h.clamp=function(m){return arguments.length?(s=m?!0:_n,d()):s!==_n},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 n1(){return vm()(_n,_n)}function YY(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Gd(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 tl(e){return e=Gd(Math.abs(e)),e?e[1]:NaN}function QY(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 JY(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var eQ=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function kc(e){if(!(t=eQ.exec(e)))throw new Error("invalid format: "+e);var t;return new r1({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]})}kc.prototype=r1.prototype;function r1(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+""}r1.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 tQ(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 Zd;function nQ(e,t){var n=Gd(e,t);if(!n)return Zd=void 0,e.toPrecision(t);var r=n[0],i=n[1],o=i-(Zd=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")+Gd(e,Math.max(0,t+o-1))[0]}function AO(e,t){var n=Gd(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 EO={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:YY,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)=>AO(e*100,t),r:AO,s:nQ,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function kO(e){return e}var MO=Array.prototype.map,CO=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function rQ(e){var t=e.grouping===void 0||e.thousands===void 0?kO:QY(MO.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?kO:JY(MO.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=kc(h);var v=h.fill,w=h.align,b=h.sign,P=h.symbol,_=h.zero,x=h.width,S=h.comma,E=h.precision,O=h.trim,A=h.type;A==="n"?(S=!0,A="g"):EO[A]||(E===void 0&&(E=12),O=!0,A="g"),(_||v==="0"&&w==="=")&&(_=!0,v="0",w="=");var M=(m&&m.prefix!==void 0?m.prefix:"")+(P==="$"?n:P==="#"&&/[boxX]/.test(A)?"0"+A.toLowerCase():""),C=(P==="$"?r:/[%p]/.test(A)?s:"")+(m&&m.suffix!==void 0?m.suffix:""),N=EO[A],z=/[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 B(R){var Y=M,H=C,Z,K,q;if(A==="c")H=N(R)+H,R="";else{R=+R;var D=R<0||1/R<0;if(R=isNaN(R)?u:N(Math.abs(R),E),O&&(R=tQ(R)),D&&+R==0&&b!=="+"&&(D=!1),Y=(D?b==="("?b:l:b==="-"||b==="("?"":b)+Y,H=(A==="s"&&!isNaN(R)&&Zd!==void 0?CO[8+Zd/3]:"")+H+(D&&b==="("?")":""),z){for(Z=-1,K=R.length;++Z<K;)if(q=R.charCodeAt(Z),48>q||q>57){H=(q===46?i+R.slice(Z+1):R.slice(Z))+H,R=R.slice(0,Z);break}}}S&&!_&&(R=t(R,1/0));var U=Y.length+R.length+H.length,V=U<x?new Array(x-U+1).join(v):"";switch(S&&_&&(R=t(V+R,V.length?x-H.length:1/0),V=""),w){case"<":R=Y+R+H+V;break;case"=":R=Y+V+R+H;break;case"^":R=V.slice(0,U=V.length>>1)+Y+R+H+V.slice(U);break;default:R=V+Y+R+H;break}return o(R)}return B.toString=function(){return h+""},B}function d(h,m){var v=Math.max(-8,Math.min(8,Math.floor(tl(m)/3)))*3,w=Math.pow(10,-v),b=f((h=kc(h),h.type="f",h),{suffix:CO[8+v/3]});return function(P){return b(w*P)}}return{format:f,formatPrefix:d}}var Oh,i1,cj;iQ({thousands:",",grouping:[3],currency:["$",""]});function iQ(e){return Oh=rQ(e),i1=Oh.format,cj=Oh.formatPrefix,Oh}function oQ(e){return Math.max(0,-tl(Math.abs(e)))}function aQ(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(tl(t)/3)))*3-tl(Math.abs(e)))}function sQ(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,tl(t)-tl(e))+1}function fj(e,t,n,r){var i=qy(e,t,n),o;switch(r=kc(r??",f"),r.type){case"s":{var s=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=aQ(i,s))&&(r.precision=o),cj(r,s)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=sQ(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=oQ(i))&&(r.precision=o-(r.type==="%")*2);break}}return i1(r)}function zo(e){var t=e.domain;return e.ticks=function(n){var r=t();return Zy(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return fj(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=Ky(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 Kd(){var e=n1();return e.copy=function(){return vf(e,Kd())},_r.apply(e,arguments),zo(e)}function hj(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,Hd),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return hj(e).unknown(t)},e=arguments.length?Array.from(e,Hd):[0,1],zo(n)}function dj(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 jO(e){return Math.log(e)}function NO(e){return Math.exp(e)}function lQ(e){return-Math.log(-e)}function uQ(e){return-Math.exp(-e)}function cQ(e){return isFinite(e)?+("1e"+e):e<0?0:e}function fQ(e){return e===10?cQ:e===Math.E?Math.exp:t=>Math.pow(e,t)}function hQ(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 $O(e){return(t,n)=>-e(-t,n)}function o1(e){const t=e(jO,NO),n=t.domain;let r=10,i,o;function s(){return i=hQ(r),o=fQ(r),n()[0]<0?(i=$O(i),o=$O(o),e(lQ,uQ)):e(jO,NO),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),w,b;const P=l==null?10:+l;let _=[];if(!(r%1)&&v-m<P){if(m=Math.floor(m),v=Math.ceil(v),f>0){for(;m<=v;++m)for(w=1;w<r;++w)if(b=m<0?w/o(-m):w*o(m),!(b<f)){if(b>d)break;_.push(b)}}else for(;m<=v;++m)for(w=r-1;w>=1;--w)if(b=m>0?w/o(-m):w*o(m),!(b<f)){if(b>d)break;_.push(b)}_.length*2<P&&(_=Zy(f,d,P))}else _=Zy(m,v,Math.min(v-m,P)).map(o);return h?_.reverse():_},t.tickFormat=(l,u)=>{if(l==null&&(l=10),u==null&&(u=r===10?"s":","),typeof u!="function"&&(!(r%1)&&(u=kc(u)).precision==null&&(u.trim=!0),u=i1(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(dj(n(),{floor:l=>o(Math.floor(i(l))),ceil:l=>o(Math.ceil(i(l)))})),t}function pj(){const e=o1(vm()).domain([1,10]);return e.copy=()=>vf(e,pj()).base(e.base()),_r.apply(e,arguments),e}function LO(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function IO(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function a1(e){var t=1,n=e(LO(t),IO(t));return n.constant=function(r){return arguments.length?e(LO(t=+r),IO(t)):t},zo(n)}function mj(){var e=a1(vm());return e.copy=function(){return vf(e,mj()).constant(e.constant())},_r.apply(e,arguments)}function DO(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function dQ(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function pQ(e){return e<0?-e*e:e*e}function s1(e){var t=e(_n,_n),n=1;function r(){return n===1?e(_n,_n):n===.5?e(dQ,pQ):e(DO(n),DO(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},zo(t)}function l1(){var e=s1(vm());return e.copy=function(){return vf(e,l1()).exponent(e.exponent())},_r.apply(e,arguments),e}function mQ(){return l1.apply(null,arguments).exponent(.5)}function RO(e){return Math.sign(e)*e*e}function vQ(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function vj(){var e=n1(),t=[0,1],n=!1,r;function i(o){var s=vQ(e(o));return isNaN(s)?r:n?Math.round(s):s}return i.invert=function(o){return e.invert(RO(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,Hd)).map(RO)),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 vj(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},_r.apply(i,arguments),zo(i)}function gj(){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]=bY(e,s/l);return o}function o(s){return s==null||isNaN(s=+s)?r:t[pf(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(Eo),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 gj().domain(e).range(t).unknown(r)},_r.apply(o,arguments)}function yj(){var e=0,t=1,n=1,r=[.5],i=[0,1],o;function s(u){return u!=null&&u<=u?i[pf(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 yj().domain([e,t]).range(i).unknown(o)},_r.apply(zo(s),arguments)}function xj(){var e=[.5],t=[0,1],n,r=1;function i(o){return o!=null&&o<=o?t[pf(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 xj().domain(e).range(t).unknown(n)},_r.apply(i,arguments)}const Hv=new Date,Gv=new Date;function Lt(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=>Lt(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)=>(Hv.setTime(+o),Gv.setTime(+s),e(Hv),e(Gv),Math.floor(n(Hv,Gv))),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 qd=Lt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);qd.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Lt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):qd);qd.range;const Oi=1e3,dr=Oi*60,Ti=dr*60,zi=Ti*24,u1=zi*7,zO=zi*30,Zv=zi*365,ya=Lt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Oi)},(e,t)=>(t-e)/Oi,e=>e.getUTCSeconds());ya.range;const c1=Lt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Oi)},(e,t)=>{e.setTime(+e+t*dr)},(e,t)=>(t-e)/dr,e=>e.getMinutes());c1.range;const f1=Lt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*dr)},(e,t)=>(t-e)/dr,e=>e.getUTCMinutes());f1.range;const h1=Lt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Oi-e.getMinutes()*dr)},(e,t)=>{e.setTime(+e+t*Ti)},(e,t)=>(t-e)/Ti,e=>e.getHours());h1.range;const d1=Lt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Ti)},(e,t)=>(t-e)/Ti,e=>e.getUTCHours());d1.range;const gf=Lt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*dr)/zi,e=>e.getDate()-1);gf.range;const gm=Lt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/zi,e=>e.getUTCDate()-1);gm.range;const _j=Lt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/zi,e=>Math.floor(e/zi));_j.range;function Va(e){return Lt(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())*dr)/u1)}const ym=Va(0),Xd=Va(1),gQ=Va(2),yQ=Va(3),nl=Va(4),xQ=Va(5),_Q=Va(6);ym.range;Xd.range;gQ.range;yQ.range;nl.range;xQ.range;_Q.range;function Ua(e){return Lt(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)/u1)}const xm=Ua(0),Yd=Ua(1),bQ=Ua(2),wQ=Ua(3),rl=Ua(4),SQ=Ua(5),PQ=Ua(6);xm.range;Yd.range;bQ.range;wQ.range;rl.range;SQ.range;PQ.range;const p1=Lt(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());p1.range;const m1=Lt(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());m1.range;const Bi=Lt(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Bi.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Lt(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});Bi.range;const Fi=Lt(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Fi.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Lt(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});Fi.range;function bj(e,t,n,r,i,o){const s=[[ya,1,Oi],[ya,5,5*Oi],[ya,15,15*Oi],[ya,30,30*Oi],[o,1,dr],[o,5,5*dr],[o,15,15*dr],[o,30,30*dr],[i,1,Ti],[i,3,3*Ti],[i,6,6*Ti],[i,12,12*Ti],[r,1,zi],[r,2,2*zi],[n,1,u1],[t,1,zO],[t,3,3*zO],[e,1,Zv]];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),w=v?v.range(f,+d+1):[];return m?w.reverse():w}function u(f,d,h){const m=Math.abs(d-f)/h,v=Y_(([,,P])=>P).right(s,m);if(v===s.length)return e.every(qy(f/Zv,d/Zv,h));if(v===0)return qd.every(Math.max(qy(f,d,h),1));const[w,b]=s[m/s[v-1][2]<s[v][2]/m?v-1:v];return w.every(b)}return[l,u]}const[OQ,TQ]=bj(Fi,m1,xm,_j,d1,f1),[AQ,EQ]=bj(Bi,p1,ym,gf,h1,c1);function Kv(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 qv(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 hu(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function kQ(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=du(i),d=pu(i),h=du(o),m=pu(o),v=du(s),w=pu(s),b=du(l),P=pu(l),_=du(u),x=pu(u),S={a:q,A:D,b:U,B:V,c:null,d:HO,e:HO,f:QQ,g:lJ,G:cJ,H:qQ,I:XQ,j:YQ,L:wj,m:JQ,M:eJ,p:ee,q:te,Q:KO,s:qO,S:tJ,u:nJ,U:rJ,V:iJ,w:oJ,W:aJ,x:null,X:null,y:sJ,Y:uJ,Z:fJ,"%":ZO},E={a:ae,A:pe,b:de,B:Q,c:null,d:GO,e:GO,f:mJ,g:OJ,G:AJ,H:hJ,I:dJ,j:pJ,L:Pj,m:vJ,M:gJ,p:qe,q:Re,Q:KO,s:qO,S:yJ,u:xJ,U:_J,V:bJ,w:wJ,W:SJ,x:null,X:null,y:PJ,Y:TJ,Z:EJ,"%":ZO},O={a:z,A:B,b:R,B:Y,c:H,d:UO,e:UO,f:HQ,g:VO,G:FO,H:WO,I:WO,j:FQ,L:WQ,m:BQ,M:VQ,p:N,q:zQ,Q:ZQ,s:KQ,S:UQ,u:$Q,U:LQ,V:IQ,w:NQ,W:DQ,x:Z,X:K,y:VO,Y:FO,Z:RQ,"%":GQ};S.x=A(n,S),S.X=A(r,S),S.c=A(t,S),E.x=A(n,E),E.X=A(r,E),E.c=A(t,E);function A(se,me){return function(ye){var J=[],$e=-1,Se=0,We=se.length,He,ot,Et;for(ye instanceof Date||(ye=new Date(+ye));++$e<We;)se.charCodeAt($e)===37&&(J.push(se.slice(Se,$e)),(ot=BO[He=se.charAt(++$e)])!=null?He=se.charAt(++$e):ot=He==="e"?" ":"0",(Et=me[He])&&(He=Et(ye,ot)),J.push(He),Se=$e+1);return J.push(se.slice(Se,$e)),J.join("")}}function M(se,me){return function(ye){var J=hu(1900,void 0,1),$e=C(J,se,ye+="",0),Se,We;if($e!=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=qv(hu(J.y,0,1)),We=Se.getUTCDay(),Se=We>4||We===0?Yd.ceil(Se):Yd(Se),Se=gm.offset(Se,(J.V-1)*7),J.y=Se.getUTCFullYear(),J.m=Se.getUTCMonth(),J.d=Se.getUTCDate()+(J.w+6)%7):(Se=Kv(hu(J.y,0,1)),We=Se.getDay(),Se=We>4||We===0?Xd.ceil(Se):Xd(Se),Se=gf.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),We="Z"in J?qv(hu(J.y,0,1)).getUTCDay():Kv(hu(J.y,0,1)).getDay(),J.m=0,J.d="W"in J?(J.w+6)%7+J.W*7-(We+5)%7:J.w+J.U*7-(We+6)%7);return"Z"in J?(J.H+=J.Z/100|0,J.M+=J.Z%100,qv(J)):Kv(J)}}function C(se,me,ye,J){for(var $e=0,Se=me.length,We=ye.length,He,ot;$e<Se;){if(J>=We)return-1;if(He=me.charCodeAt($e++),He===37){if(He=me.charAt($e++),ot=O[He in BO?me.charAt($e++):He],!ot||(J=ot(se,ye,J))<0)return-1}else if(He!=ye.charCodeAt(J++))return-1}return J}function N(se,me,ye){var J=f.exec(me.slice(ye));return J?(se.p=d.get(J[0].toLowerCase()),ye+J[0].length):-1}function z(se,me,ye){var J=v.exec(me.slice(ye));return J?(se.w=w.get(J[0].toLowerCase()),ye+J[0].length):-1}function B(se,me,ye){var J=h.exec(me.slice(ye));return J?(se.w=m.get(J[0].toLowerCase()),ye+J[0].length):-1}function R(se,me,ye){var J=_.exec(me.slice(ye));return J?(se.m=x.get(J[0].toLowerCase()),ye+J[0].length):-1}function Y(se,me,ye){var J=b.exec(me.slice(ye));return J?(se.m=P.get(J[0].toLowerCase()),ye+J[0].length):-1}function H(se,me,ye){return C(se,t,me,ye)}function Z(se,me,ye){return C(se,n,me,ye)}function K(se,me,ye){return C(se,r,me,ye)}function q(se){return s[se.getDay()]}function D(se){return o[se.getDay()]}function U(se){return u[se.getMonth()]}function V(se){return l[se.getMonth()]}function ee(se){return i[+(se.getHours()>=12)]}function te(se){return 1+~~(se.getMonth()/3)}function ae(se){return s[se.getUTCDay()]}function pe(se){return o[se.getUTCDay()]}function de(se){return u[se.getUTCMonth()]}function Q(se){return l[se.getUTCMonth()]}function qe(se){return i[+(se.getUTCHours()>=12)]}function Re(se){return 1+~~(se.getUTCMonth()/3)}return{format:function(se){var me=A(se+="",S);return me.toString=function(){return se},me},parse:function(se){var me=M(se+="",!1);return me.toString=function(){return se},me},utcFormat:function(se){var me=A(se+="",E);return me.toString=function(){return se},me},utcParse:function(se){var me=M(se+="",!0);return me.toString=function(){return se},me}}}var BO={"-":"",_:" ",0:"0"},Ft=/^\s*\d+/,MQ=/^%/,CQ=/[\\^$*+?|[\]().{}]/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 jQ(e){return e.replace(CQ,"\\$&")}function du(e){return new RegExp("^(?:"+e.map(jQ).join("|")+")","i")}function pu(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function NQ(e,t,n){var r=Ft.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function $Q(e,t,n){var r=Ft.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function LQ(e,t,n){var r=Ft.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function IQ(e,t,n){var r=Ft.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function DQ(e,t,n){var r=Ft.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function FO(e,t,n){var r=Ft.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function VO(e,t,n){var r=Ft.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function RQ(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 zQ(e,t,n){var r=Ft.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function BQ(e,t,n){var r=Ft.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function UO(e,t,n){var r=Ft.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function FQ(e,t,n){var r=Ft.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function WO(e,t,n){var r=Ft.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function VQ(e,t,n){var r=Ft.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function UQ(e,t,n){var r=Ft.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function WQ(e,t,n){var r=Ft.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function HQ(e,t,n){var r=Ft.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function GQ(e,t,n){var r=MQ.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function ZQ(e,t,n){var r=Ft.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function KQ(e,t,n){var r=Ft.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function HO(e,t){return De(e.getDate(),t,2)}function qQ(e,t){return De(e.getHours(),t,2)}function XQ(e,t){return De(e.getHours()%12||12,t,2)}function YQ(e,t){return De(1+gf.count(Bi(e),e),t,3)}function wj(e,t){return De(e.getMilliseconds(),t,3)}function QQ(e,t){return wj(e,t)+"000"}function JQ(e,t){return De(e.getMonth()+1,t,2)}function eJ(e,t){return De(e.getMinutes(),t,2)}function tJ(e,t){return De(e.getSeconds(),t,2)}function nJ(e){var t=e.getDay();return t===0?7:t}function rJ(e,t){return De(ym.count(Bi(e)-1,e),t,2)}function Sj(e){var t=e.getDay();return t>=4||t===0?nl(e):nl.ceil(e)}function iJ(e,t){return e=Sj(e),De(nl.count(Bi(e),e)+(Bi(e).getDay()===4),t,2)}function oJ(e){return e.getDay()}function aJ(e,t){return De(Xd.count(Bi(e)-1,e),t,2)}function sJ(e,t){return De(e.getFullYear()%100,t,2)}function lJ(e,t){return e=Sj(e),De(e.getFullYear()%100,t,2)}function uJ(e,t){return De(e.getFullYear()%1e4,t,4)}function cJ(e,t){var n=e.getDay();return e=n>=4||n===0?nl(e):nl.ceil(e),De(e.getFullYear()%1e4,t,4)}function fJ(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+De(t/60|0,"0",2)+De(t%60,"0",2)}function GO(e,t){return De(e.getUTCDate(),t,2)}function hJ(e,t){return De(e.getUTCHours(),t,2)}function dJ(e,t){return De(e.getUTCHours()%12||12,t,2)}function pJ(e,t){return De(1+gm.count(Fi(e),e),t,3)}function Pj(e,t){return De(e.getUTCMilliseconds(),t,3)}function mJ(e,t){return Pj(e,t)+"000"}function vJ(e,t){return De(e.getUTCMonth()+1,t,2)}function gJ(e,t){return De(e.getUTCMinutes(),t,2)}function yJ(e,t){return De(e.getUTCSeconds(),t,2)}function xJ(e){var t=e.getUTCDay();return t===0?7:t}function _J(e,t){return De(xm.count(Fi(e)-1,e),t,2)}function Oj(e){var t=e.getUTCDay();return t>=4||t===0?rl(e):rl.ceil(e)}function bJ(e,t){return e=Oj(e),De(rl.count(Fi(e),e)+(Fi(e).getUTCDay()===4),t,2)}function wJ(e){return e.getUTCDay()}function SJ(e,t){return De(Yd.count(Fi(e)-1,e),t,2)}function PJ(e,t){return De(e.getUTCFullYear()%100,t,2)}function OJ(e,t){return e=Oj(e),De(e.getUTCFullYear()%100,t,2)}function TJ(e,t){return De(e.getUTCFullYear()%1e4,t,4)}function AJ(e,t){var n=e.getUTCDay();return e=n>=4||n===0?rl(e):rl.ceil(e),De(e.getUTCFullYear()%1e4,t,4)}function EJ(){return"+0000"}function ZO(){return"%"}function KO(e){return+e}function qO(e){return Math.floor(+e/1e3)}var ls,Tj,Aj;kJ({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 kJ(e){return ls=kQ(e),Tj=ls.format,ls.parse,Aj=ls.utcFormat,ls.utcParse,ls}function MJ(e){return new Date(e)}function CJ(e){return e instanceof Date?+e:+new Date(+e)}function v1(e,t,n,r,i,o,s,l,u,f){var d=n1(),h=d.invert,m=d.domain,v=f(".%L"),w=f(":%S"),b=f("%I:%M"),P=f("%I %p"),_=f("%a %d"),x=f("%b %d"),S=f("%B"),E=f("%Y");function O(A){return(u(A)<A?v:l(A)<A?w:s(A)<A?b:o(A)<A?P:r(A)<A?i(A)<A?_:x:n(A)<A?S:E)(A)}return d.invert=function(A){return new Date(h(A))},d.domain=function(A){return arguments.length?m(Array.from(A,CJ)):m().map(MJ)},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?O: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(dj(M,A)):d},d.copy=function(){return vf(d,v1(e,t,n,r,i,o,s,l,u,f))},d}function jJ(){return _r.apply(v1(AQ,EQ,Bi,p1,ym,gf,h1,c1,ya,Tj).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function NJ(){return _r.apply(v1(OQ,TQ,Fi,m1,xm,gm,d1,f1,ya,Aj).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function _m(){var e=0,t=1,n,r,i,o,s=_n,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,w;return arguments.length?([v,w]=m,s=h(v,w),f):[s(0),s(1)]}}return f.range=d(Ll),f.rangeRound=d(t1),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 Bo(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Ej(){var e=zo(_m()(_n));return e.copy=function(){return Bo(e,Ej())},Gi.apply(e,arguments)}function kj(){var e=o1(_m()).domain([1,10]);return e.copy=function(){return Bo(e,kj()).base(e.base())},Gi.apply(e,arguments)}function Mj(){var e=a1(_m());return e.copy=function(){return Bo(e,Mj()).constant(e.constant())},Gi.apply(e,arguments)}function g1(){var e=s1(_m());return e.copy=function(){return Bo(e,g1()).exponent(e.exponent())},Gi.apply(e,arguments)}function $J(){return g1.apply(null,arguments).exponent(.5)}function Cj(){var e=[],t=_n;function n(r){if(r!=null&&!isNaN(r=+r))return t((pf(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(Eo),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)=>_Y(e,o/r))},n.copy=function(){return Cj(t).domain(e)},Gi.apply(n,arguments)}function bm(){var e=0,t=.5,n=1,r=1,i,o,s,l,u,f=_n,d,h=!1,m;function v(b){return isNaN(b=+b)?m:(b=.5+((b=+d(b))-o)*(r*b<r*o?l:u),f(h?Math.max(0,Math.min(1,b)):b))}v.domain=function(b){return arguments.length?([e,t,n]=b,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(b){return arguments.length?(h=!!b,v):h},v.interpolator=function(b){return arguments.length?(f=b,v):f};function w(b){return function(P){var _,x,S;return arguments.length?([_,x,S]=P,f=GY(b,[_,x,S]),v):[f(0),f(.5),f(1)]}}return v.range=w(Ll),v.rangeRound=w(t1),v.unknown=function(b){return arguments.length?(m=b,v):m},function(b){return d=b,i=b(e),o=b(t),s=b(n),l=i===o?0:.5/(o-i),u=o===s?0:.5/(s-o),r=o<i?-1:1,v}}function jj(){var e=zo(bm()(_n));return e.copy=function(){return Bo(e,jj())},Gi.apply(e,arguments)}function Nj(){var e=o1(bm()).domain([.1,1,10]);return e.copy=function(){return Bo(e,Nj()).base(e.base())},Gi.apply(e,arguments)}function $j(){var e=a1(bm());return e.copy=function(){return Bo(e,$j()).constant(e.constant())},Gi.apply(e,arguments)}function y1(){var e=s1(bm());return e.copy=function(){return Bo(e,y1()).exponent(e.exponent())},Gi.apply(e,arguments)}function LJ(){return y1.apply(null,arguments).exponent(.5)}const XO=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Oc,scaleDiverging:jj,scaleDivergingLog:Nj,scaleDivergingPow:y1,scaleDivergingSqrt:LJ,scaleDivergingSymlog:$j,scaleIdentity:hj,scaleImplicit:Xy,scaleLinear:Kd,scaleLog:pj,scaleOrdinal:Q_,scalePoint:Gu,scalePow:l1,scaleQuantile:gj,scaleQuantize:yj,scaleRadial:vj,scaleSequential:Ej,scaleSequentialLog:kj,scaleSequentialPow:g1,scaleSequentialQuantile:Cj,scaleSequentialSqrt:$J,scaleSequentialSymlog:Mj,scaleSqrt:mQ,scaleSymlog:mj,scaleThreshold:xj,scaleTime:jJ,scaleUtc:NJ,tickFormat:fj},Symbol.toStringTag,{value:"Module"}));var IJ=Ol;function DJ(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&&!IJ(s):n(s,l)))var l=s,u=o}return u}var Lj=DJ;function RJ(e,t){return e>t}var zJ=RJ,BJ=Lj,FJ=zJ,VJ=Nl;function UJ(e){return e&&e.length?BJ(e,VJ,FJ):void 0}var WJ=UJ;const yo=Ke(WJ);function HJ(e,t){return e<t}var GJ=HJ,ZJ=Lj,KJ=GJ,qJ=Nl;function XJ(e){return e&&e.length?ZJ(e,qJ,KJ):void 0}var YJ=XJ;const wm=Ke(YJ);var QJ=C_,JJ=Ro,eee=HC,tee=In;function nee(e,t){var n=tee(e)?QJ:eee;return n(e,JJ(t))}var ree=nee,iee=UC,oee=ree;function aee(e,t){return iee(oee(e,t),1)}var see=aee;const lee=Ke(see);var uee=G_;function cee(e,t){return uee(e,t)}var fee=cee;const Mc=Ke(fee);var Il=1e9,hee={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},_1,lt=!0,yr="[DecimalError] ",Oa=yr+"Invalid argument: ",x1=yr+"Exponent out of range: ",Dl=Math.floor,ca=Math.pow,dee=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Un,Rt=1e7,nt=7,Ij=9007199254740991,Qd=Dl(Ij/nt),fe={};fe.absoluteValue=fe.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};fe.comparedTo=fe.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};fe.decimalPlaces=fe.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*nt;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};fe.dividedBy=fe.div=function(e){return Ni(this,new this.constructor(e))};fe.dividedToIntegerBy=fe.idiv=function(e){var t=this,n=t.constructor;return Xe(Ni(t,new n(e),0,1),n.precision)};fe.equals=fe.eq=function(e){return!this.cmp(e)};fe.exponent=function(){return At(this)};fe.greaterThan=fe.gt=function(e){return this.cmp(e)>0};fe.greaterThanOrEqualTo=fe.gte=function(e){return this.cmp(e)>=0};fe.isInteger=fe.isint=function(){return this.e>this.d.length-2};fe.isNegative=fe.isneg=function(){return this.s<0};fe.isPositive=fe.ispos=function(){return this.s>0};fe.isZero=function(){return this.s===0};fe.lessThan=fe.lt=function(e){return this.cmp(e)<0};fe.lessThanOrEqualTo=fe.lte=function(e){return this.cmp(e)<1};fe.logarithm=fe.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(Un))throw Error(yr+"NaN");if(n.s<1)throw Error(yr+(n.s?"NaN":"-Infinity"));return n.eq(Un)?new r(0):(lt=!1,t=Ni(Cc(n,o),Cc(e,o),o),lt=!0,Xe(t,i))};fe.minus=fe.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?zj(t,e):Dj(t,(e.s=-e.s,e))};fe.modulo=fe.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(yr+"NaN");return n.s?(lt=!1,t=Ni(n,e,0,1).times(e),lt=!0,n.minus(t)):Xe(new r(n),i)};fe.naturalExponential=fe.exp=function(){return Rj(this)};fe.naturalLogarithm=fe.ln=function(){return Cc(this)};fe.negated=fe.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};fe.plus=fe.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Dj(t,e):zj(t,(e.s=-e.s,e))};fe.precision=fe.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Oa+e);if(t=At(i)+1,r=i.d.length-1,n=r*nt+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};fe.squareRoot=fe.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(yr+"NaN")}for(e=At(l),lt=!1,i=Math.sqrt(+l),i==0||i==1/0?(t=Yr(l.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Dl((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(Ni(l,o,s+2)).times(.5),Yr(o.d).slice(0,s)===(t=Yr(r.d)).slice(0,s)){if(t=t.slice(s-3,s+1),i==s&&t=="4999"){if(Xe(o,n+1,0),o.times(o).eq(l)){r=o;break}}else if(t!="9999")break;s+=4}return lt=!0,Xe(r,n)};fe.times=fe.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%Rt|0,t=l/Rt|0;o[i]=(o[i]+t)%Rt|0}for(;!o[--s];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,lt?Xe(e,h.precision):e};fe.toDecimalPlaces=fe.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(ai(e,0,Il),t===void 0?t=r.rounding:ai(t,0,8),Xe(n,e+At(n)+1,t))};fe.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=$a(r,!0):(ai(e,0,Il),t===void 0?t=i.rounding:ai(t,0,8),r=Xe(new i(r),e+1,t),n=$a(r,!0,e+1)),n};fe.toFixed=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?$a(i):(ai(e,0,Il),t===void 0?t=o.rounding:ai(t,0,8),r=Xe(new o(i),e+At(i)+1,t),n=$a(r.abs(),!1,e+At(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};fe.toInteger=fe.toint=function(){var e=this,t=e.constructor;return Xe(new t(e),At(e)+1,t.rounding)};fe.toNumber=function(){return+this};fe.toPower=fe.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(Un);if(l=new u(l),!l.s){if(e.s<1)throw Error(yr+"Infinity");return l}if(l.eq(Un))return l;if(r=u.precision,e.eq(Un))return Xe(l,r);if(t=e.e,n=e.d.length-1,s=t>=n,o=l.s,s){if((n=d<0?-d:d)<=Ij){for(i=new u(Un),t=Math.ceil(r/nt+4),lt=!1;n%2&&(i=i.times(l),QO(i.d,t)),n=Dl(n/2),n!==0;)l=l.times(l),QO(l.d,t);return lt=!0,e.s<0?new u(Un).div(i):Xe(i,r)}}else if(o<0)throw Error(yr+"NaN");return o=o<0&&e.d[Math.max(t,n)]&1?-1:1,l.s=1,lt=!1,i=e.times(Cc(l,r+f)),lt=!0,i=Rj(i),i.s=o,i};fe.toPrecision=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?(n=At(i),r=$a(i,n<=o.toExpNeg||n>=o.toExpPos)):(ai(e,1,Il),t===void 0?t=o.rounding:ai(t,0,8),i=Xe(new o(i),e,t),n=At(i),r=$a(i,e<=n||n<=o.toExpNeg,e)),r};fe.toSignificantDigits=fe.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(ai(e,1,Il),t===void 0?t=r.rounding:ai(t,0,8)),Xe(new r(n),e,t)};fe.toString=fe.valueOf=fe.val=fe.toJSON=fe[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=At(e),n=e.constructor;return $a(e,t<=n.toExpNeg||t>=n.toExpPos)};function Dj(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)),lt?Xe(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/nt),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)/Rt|0,u[o]%=Rt;for(n&&(u.unshift(n),++i),l=u.length;u[--l]==0;)u.pop();return t.d=u,t.e=i,lt?Xe(t,h):t}function ai(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Oa+e)}function Yr(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=nt-r.length,n&&(o+=fo(n)),o+=r;s=e[t],r=s+"",n=nt-r.length,n&&(o+=fo(n))}else if(s===0)return"0";for(;s%10===0;)s/=10;return o+s}var Ni=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%Rt|0,s=o/Rt|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*Rt+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,w,b,P,_,x,S,E,O,A,M,C,N=r.constructor,z=r.s==i.s?1:-1,B=r.d,R=i.d;if(!r.s)return new N(r);if(!i.s)throw Error(yr+"Division by zero");for(u=r.e-i.e,M=R.length,O=B.length,v=new N(z),w=v.d=[],f=0;R[f]==(B[f]||0);)++f;if(R[f]>(B[f]||0)&&--u,o==null?x=o=N.precision:s?x=o+(At(r)-At(i))+1:x=o,x<0)return new N(0);if(x=x/nt+2|0,f=0,M==1)for(d=0,R=R[0],x++;(f<O||d)&&x--;f++)S=d*Rt+(B[f]||0),w[f]=S/R|0,d=S%R|0;else{for(d=Rt/(R[0]+1)|0,d>1&&(R=e(R,d),B=e(B,d),M=R.length,O=B.length),E=M,b=B.slice(0,M),P=b.length;P<M;)b[P++]=0;C=R.slice(),C.unshift(0),A=R[0],R[1]>=Rt/2&&++A;do d=0,l=t(R,b,M,P),l<0?(_=b[0],M!=P&&(_=_*Rt+(b[1]||0)),d=_/A|0,d>1?(d>=Rt&&(d=Rt-1),h=e(R,d),m=h.length,P=b.length,l=t(h,b,m,P),l==1&&(d--,n(h,M<m?C:R,m))):(d==0&&(l=d=1),h=R.slice()),m=h.length,m<P&&h.unshift(0),n(b,h,P),l==-1&&(P=b.length,l=t(R,b,M,P),l<1&&(d++,n(b,M<P?C:R,P))),P=b.length):l===0&&(d++,b=[0]),w[f++]=d,l&&b[0]?b[P++]=B[E]||0:(b=[B[E]],P=1);while((E++<O||b[0]!==void 0)&&x--)}return w[0]||w.shift(),v.e=u,Xe(v,s?o+At(v)+1:o)}}();function Rj(e,t){var n,r,i,o,s,l,u=0,f=0,d=e.constructor,h=d.precision;if(At(e)>16)throw Error(x1+At(e));if(!e.s)return new d(Un);for(lt=!1,l=h,s=new d(.03125);e.abs().gte(.1);)e=e.times(s),f+=5;for(r=Math.log(ca(2,f))/Math.LN10*2+5|0,l+=r,n=i=o=new d(Un),d.precision=l;;){if(i=Xe(i.times(e),l),n=n.times(++u),s=o.plus(Ni(i,n,l)),Yr(s.d).slice(0,l)===Yr(o.d).slice(0,l)){for(;f--;)o=Xe(o.times(o),l);return d.precision=h,t==null?(lt=!0,Xe(o,h)):o}o=s}}function At(e){for(var t=e.e*nt,n=e.d[0];n>=10;n/=10)t++;return t}function Xv(e,t,n){if(t>e.LN10.sd())throw lt=!0,n&&(e.precision=n),Error(yr+"LN10 precision limit exceeded");return Xe(new e(e.LN10),t)}function fo(e){for(var t="";e--;)t+="0";return t}function Cc(e,t){var n,r,i,o,s,l,u,f,d,h=1,m=10,v=e,w=v.d,b=v.constructor,P=b.precision;if(v.s<1)throw Error(yr+(v.s?"NaN":"-Infinity"));if(v.eq(Un))return new b(0);if(t==null?(lt=!1,f=P):f=t,v.eq(10))return t==null&&(lt=!0),Xv(b,f);if(f+=m,b.precision=f,n=Yr(w),r=n.charAt(0),o=At(v),Math.abs(o)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)v=v.times(e),n=Yr(v.d),r=n.charAt(0),h++;o=At(v),r>1?(v=new b("0."+n),o++):v=new b(r+"."+n.slice(1))}else return u=Xv(b,f+2,P).times(o+""),v=Cc(new b(r+"."+n.slice(1)),f-m).plus(u),b.precision=P,t==null?(lt=!0,Xe(v,P)):v;for(l=s=v=Ni(v.minus(Un),v.plus(Un),f),d=Xe(v.times(v),f),i=3;;){if(s=Xe(s.times(d),f),u=l.plus(Ni(s,new b(i),f)),Yr(u.d).slice(0,f)===Yr(l.d).slice(0,f))return l=l.times(2),o!==0&&(l=l.plus(Xv(b,f+2,P).times(o+""))),l=Ni(l,new b(h),f),b.precision=P,t==null?(lt=!0,Xe(l,P)):l;l=u,i+=2}}function YO(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=Dl(n/nt),e.d=[],r=(n+1)%nt,n<0&&(r+=nt),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=nt;r<i;)e.d.push(+t.slice(r,r+=nt));t=t.slice(r),r=nt-t.length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),lt&&(e.e>Qd||e.e<-Qd))throw Error(x1+n)}else e.s=0,e.e=0,e.d=[0];return e}function Xe(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+=nt,i=t,f=h[d=0];else{if(d=Math.ceil((r+1)/nt),o=h.length,d>=o)return e;for(f=o=h[d],s=1;o>=10;o/=10)s++;r%=nt,i=r-nt+s}if(n!==void 0&&(o=ca(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/ca(10,s-i):0:h[d-1])%10&1||n==(e.s<0?8:7))),t<1||!h[0])return u?(o=At(e),h.length=1,t=t-o-1,h[0]=ca(10,(nt-t%nt)%nt),e.e=Dl(-t/nt)||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=ca(10,nt-r),h[d]=i>0?(f/ca(10,s-i)%ca(10,i)|0)*o:0),u)for(;;)if(d==0){(h[0]+=o)==Rt&&(h[0]=1,++e.e);break}else{if(h[d]+=o,h[d]!=Rt)break;h[d--]=0,o=1}for(r=h.length;h[--r]===0;)h.pop();if(lt&&(e.e>Qd||e.e<-Qd))throw Error(x1+At(e));return e}function zj(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),lt?Xe(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/nt),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]=Rt-1;--u[o],u[i]+=Rt}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,lt?Xe(t,v):t):new m(0)}function $a(e,t,n){var r,i=At(e),o=Yr(e.d),s=o.length;return t?(n&&(r=n-s)>0?o=o.charAt(0)+"."+o.slice(1)+fo(r):s>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+fo(-i-1)+o,n&&(r=n-s)>0&&(o+=fo(r))):i>=s?(o+=fo(i+1-s),n&&(r=n-i-1)>0&&(o=o+"."+fo(r))):((r=i+1)<s&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-s)>0&&(i+1===s&&(o+="."),o+=fo(r))),e.s<0?"-"+o:o}function QO(e,t){if(e.length>t)return e.length=t,!0}function Bj(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(Oa+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 YO(s,o.toString())}else if(typeof o!="string")throw Error(Oa+o);if(o.charCodeAt(0)===45?(o=o.slice(1),s.s=-1):s.s=1,dee.test(o))YO(s,o);else throw Error(Oa+o)}if(i.prototype=fe,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=Bj,i.config=i.set=pee,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 pee(e){if(!e||typeof e!="object")throw Error(yr+"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(Dl(r)===r&&r>=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(Oa+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(Oa+n+": "+r);return this}var _1=Bj(hee);Un=new _1(1);const Ze=_1;function mee(e){return xee(e)||yee(e)||gee(e)||vee()}function vee(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
370
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gee(e,t){if(e){if(typeof e=="string")return e0(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 e0(e,t)}}function yee(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function xee(e){if(Array.isArray(e))return e0(e)}function e0(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 _ee=function(t){return t},Fj={},Vj=function(t){return t===Fj},JO=function(t){return function n(){return arguments.length===0||arguments.length===1&&Vj(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},bee=function e(t,n){return t===1?n:JO(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!==Fj}).length;return s>=t?n.apply(void 0,i):e(t-s,JO(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 Vj(h)?u.shift():h});return n.apply(void 0,mee(d).concat(u))}))})},Sm=function(t){return bee(t.length,t)},t0=function(t,n){for(var r=[],i=t;i<n;++i)r[i-t]=i;return r},wee=Sm(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),See=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return _ee;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))}},n0=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},Uj=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 Pee(e){var t;return e===0?t=1:t=Math.floor(new Ze(e).abs().log(10).toNumber())+1,t}function Oee(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 Tee=Sm(function(e,t,n){var r=+e,i=+t;return r+n*(i-r)}),Aee=Sm(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),Eee=Sm(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const Pm={rangeStep:Oee,getDigitCount:Pee,interpolateNumber:Tee,uninterpolateNumber:Aee,uninterpolateTruncation:Eee};function r0(e){return Cee(e)||Mee(e)||Wj(e)||kee()}function kee(){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 Mee(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Cee(e){if(Array.isArray(e))return i0(e)}function jc(e,t){return $ee(e)||Nee(e,t)||Wj(e,t)||jee()}function jee(){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 Wj(e,t){if(e){if(typeof e=="string")return i0(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 i0(e,t)}}function i0(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 Nee(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 $ee(e){if(Array.isArray(e))return e}function Hj(e){var t=jc(e,2),n=t[0],r=t[1],i=n,o=r;return n>r&&(i=r,o=n),[i,o]}function Gj(e,t,n){if(e.lte(0))return new Ze(0);var r=Pm.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 Lee(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(Pm.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=See(wee(function(u){return i.add(new Ze(u-s).mul(r)).toNumber()}),t0);return l(0,t)}function Zj(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=Gj(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?Zj(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 Iee(e){var t=jc(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=Hj([n,r]),u=jc(l,2),f=u[0],d=u[1];if(f===-1/0||d===1/0){var h=d===1/0?[f].concat(r0(t0(0,i-1).map(function(){return 1/0}))):[].concat(r0(t0(0,i-1).map(function(){return-1/0})),[d]);return n>r?n0(h):h}if(f===d)return Lee(f,i,o);var m=Zj(f,d,s,o),v=m.step,w=m.tickMin,b=m.tickMax,P=Pm.rangeStep(w,b.add(new Ze(.1).mul(v)),v);return n>r?n0(P):P}function Dee(e,t){var n=jc(e,2),r=n[0],i=n[1],o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=Hj([r,i]),l=jc(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=Gj(new Ze(f).sub(u).div(d-1),o,0),m=[].concat(r0(Pm.rangeStep(new Ze(u),new Ze(f).sub(new Ze(.99).mul(h)),h)),[f]);return r>i?n0(m):m}var Ree=Uj(Iee),zee=Uj(Dee),Bee="Invariant failed";function La(e,t){throw new Error(Bee)}var Fee=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function il(e){"@babel/helpers - typeof";return il=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},il(e)}function 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 Vee(e,t){return Gee(e)||Hee(e,t)||Wee(e,t)||Uee()}function Uee(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
373
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Wee(e,t){if(e){if(typeof e=="string")return eT(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 eT(e,t)}}function eT(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 Hee(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 Gee(e){if(Array.isArray(e))return e}function Zee(e,t){if(e==null)return{};var n=Kee(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 Kee(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 qee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xee(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,Xj(r.key),r)}}function Yee(e,t,n){return t&&Xee(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qee(e,t,n){return t=ep(t),Jee(e,Kj()?Reflect.construct(t,n||[],ep(e).constructor):t.apply(e,n))}function Jee(e,t){if(t&&(il(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ete(e)}function ete(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Kj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Kj=function(){return!!e})()}function ep(e){return ep=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ep(e)}function tte(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 qj(e,t,n){return t=Xj(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xj(e){var t=nte(e,"string");return il(t)=="symbol"?t:t+""}function nte(e,t){if(il(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(il(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Om=function(e){function t(){return qee(this,t),Qee(this,t,arguments)}return tte(t,e),Yee(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=Zee(r,Fee),v=ke(m,!1);this.props.direction==="x"&&d.type!=="number"&&La();var w=u.map(function(b){var P=f(b,l),_=P.x,x=P.y,S=P.value,E=P.errorVal;if(!E)return null;var O=[],A,M;if(Array.isArray(E)){var C=Vee(E,2);A=C[0],M=C[1]}else A=M=E;if(o==="vertical"){var N=d.scale,z=x+i,B=z+s,R=z-s,Y=N(S-A),H=N(S+M);O.push({x1:H,y1:B,x2:H,y2:R}),O.push({x1:Y,y1:z,x2:H,y2:z}),O.push({x1:Y,y1:B,x2:Y,y2:R})}else if(o==="horizontal"){var Z=h.scale,K=_+i,q=K-s,D=K+s,U=Z(S-A),V=Z(S+M);O.push({x1:q,y1:V,x2:D,y2:V}),O.push({x1:K,y1:U,x2:K,y2:V}),O.push({x1:q,y1:U,x2:D,y2:U})}return I.createElement(dt,Jd({className:"recharts-errorBar",key:"bar-".concat(O.map(function(ee){return"".concat(ee.x1,"-").concat(ee.x2,"-").concat(ee.y1,"-").concat(ee.y2)}))},v),O.map(function(ee){return I.createElement("line",Jd({},ee,{key:"line-".concat(ee.x1,"-").concat(ee.x2,"-").concat(ee.y1,"-").concat(ee.y2)}))}))});return I.createElement(dt,{className:"recharts-errorBars"},w)}}])}(I.Component);qj(Om,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});qj(Om,"displayName","ErrorBar");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 tT(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?tT(Object(n),!0).forEach(function(r){rte(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rte(e,t,n){return t=ite(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ite(e){var t=ote(e,"string");return Nc(t)=="symbol"?t:t+""}function ote(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)}var Yj=function(t){var n=t.children,r=t.formattedGraphicalItems,i=t.legendWidth,o=t.legendContent,s=Vn(n,Ds);if(!s)return null;var l=Ds.defaultProps,u=l!==void 0?ra(ra({},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,w=v.sectors||v.data||[];return d.concat(w.map(function(b){return{type:s.props.iconType||m.props.legendType,value:b.name,color:b.fill,payload:b}}))},[]):f=(r||[]).map(function(d){var h=d.item,m=h.type.defaultProps,v=m!==void 0?ra(ra({},m),h.props):{},w=v.dataKey,b=v.name,P=v.legendType,_=v.hide;return{inactive:_,dataKey:w,type:u.iconType||P||"square",color:b1(h),value:b||w,payload:v}}),ra(ra(ra({},u),Ds.getWithHeight(s,i)),{},{payload:f,item:s})};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 nT(e){return ute(e)||lte(e)||ste(e)||ate()}function ate(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
374
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ste(e,t){if(e){if(typeof e=="string")return a0(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 a0(e,t)}}function lte(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ute(e){if(Array.isArray(e))return a0(e)}function a0(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 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 _t(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){zs(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 zs(e,t,n){return t=cte(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cte(e){var t=fte(e,"string");return $c(t)=="symbol"?t:t+""}function fte(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(t==="string"?String:Number)(e)}function qn(e,t,n){return Ce(e)||Ce(t)?n:$t(t)?mr(e,t,n):Pe(t)?t(e):n}function Zu(e,t,n,r){var i=lee(e,function(l){return qn(l,t)});if(n==="number"){var o=i.filter(function(l){return oe(l)||parseFloat(l)});return o.length?[wm(o),yo(o)]:[1/0,-1/0]}var s=r?i.filter(function(l){return!Ce(l)}):i;return s.map(function(l){return $t(l)||l instanceof Date?l:""})}var hte=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(Nr(h-d)!==Nr(m-h)){var w=[];if(Nr(m-h)===Nr(u[1]-u[0])){v=m;var b=h+u[1]-u[0];w[0]=Math.min(b,(b+d)/2),w[1]=Math.max(b,(b+d)/2)}else{v=d;var P=m+u[1]-u[0];w[0]=Math.min(h,(P+h)/2),w[1]=Math.max(h,(P+h)/2)}var _=[Math.min(h,(v+h)/2),Math.max(h,(v+h)/2)];if(t>_[0]&&t<=_[1]||t>=w[0]&&t<=w[1]){s=i[f].index;break}}else{var x=Math.min(d,m),S=Math.max(d,m);if(t>(x+h)/2&&t<=(S+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},b1=function(t){var n,r=t,i=r.type.displayName,o=(n=t.type)!==null&&n!==void 0&&n.defaultProps?_t(_t({},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},dte=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 w=d[h[m]],b=w.items,P=w.cateAxisId,_=b.filter(function(M){return Ci(M.type).indexOf("Bar")>=0});if(_&&_.length){var x=_[0].type.defaultProps,S=x!==void 0?_t(_t({},x),_[0].props):_[0].props,E=S.barSize,O=S[P];s[O]||(s[O]=[]);var A=Ce(E)?n:E;s[O].push({item:_[0],stackList:_.slice(1),barSize:Ce(A)?void 0:Na(A,r,0)})}}return s},pte=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=Na(n,i,0,!0),d,h=[];if(s[0].barSize===+s[0].barSize){var m=!1,v=i/u,w=s.reduce(function(E,O){return E+O.barSize||0},0);w+=(u-1)*f,w>=i&&(w-=(u-1)*f,f=0),w>=i&&v>0&&(m=!0,v*=.9,w=u*v);var b=(i-w)/2>>0,P={offset:b-f,size:0};d=s.reduce(function(E,O){var A={item:O.item,position:{offset:P.offset+P.size+f,size:m?v:O.barSize}},M=[].concat(nT(E),[A]);return P=M[M.length-1].position,O.stackList&&O.stackList.length&&O.stackList.forEach(function(C){M.push({item:C,position:P})}),M},h)}else{var _=Na(r,i,0,!0);i-2*_-(u-1)*f<=0&&(f=0);var x=(i-2*_-(u-1)*f)/u;x>1&&(x>>=0);var S=l===+l?Math.min(x,l):x;d=s.reduce(function(E,O,A){var M=[].concat(nT(E),[{item:O.item,position:{offset:_+(x+f)*A+(x-S)/2,size:S}}]);return O.stackList&&O.stackList.length&&O.stackList.forEach(function(C){M.push({item:C,position:M[M.length-1].position})}),M},h)}return d},mte=function(t,n,r,i){var o=r.children,s=r.width,l=r.margin,u=s-(l.left||0)-(l.right||0),f=Yj({children:o,legendWidth:u});if(f){var d=i||{},h=d.width,m=d.height,v=f.align,w=f.verticalAlign,b=f.layout;if((b==="vertical"||b==="horizontal"&&w==="middle")&&v!=="center"&&oe(t[v]))return _t(_t({},t),{},zs({},v,t[v]+(h||0)));if((b==="horizontal"||b==="vertical"&&v==="center")&&w!=="middle"&&oe(t[w]))return _t(_t({},t),{},zs({},w,t[w]+(m||0)))}return t},vte=function(t,n,r){return Ce(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},Qj=function(t,n,r,i,o){var s=n.props.children,l=Ir(s,Om).filter(function(f){return vte(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=qn(d,r);if(Ce(h))return f;var m=Array.isArray(h)?[wm(h),yo(h)]:[h,h],v=u.reduce(function(w,b){var P=qn(d,b,0),_=m[0]-Math.abs(Array.isArray(P)?P[0]:P),x=m[1]+Math.abs(Array.isArray(P)?P[1]:P);return[Math.min(_,w[0]),Math.max(x,w[1])]},[1/0,-1/0]);return[Math.min(v[0],f[0]),Math.max(v[1],f[1])]},[1/0,-1/0])}return null},gte=function(t,n,r,i,o){var s=n.map(function(l){return Qj(t,l,r,o,i)}).filter(function(l){return!Ce(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},Jj=function(t,n,r,i,o){var s=n.map(function(u){var f=u.props.dataKey;return r==="number"&&f&&Qj(t,u,f,i)||Zu(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},[])},eN=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},tN=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},Ai=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?Nr(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!Ml(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}})},Yv=new WeakMap,Th=function(t,n){if(typeof n!="function")return t;Yv.has(t)||Yv.set(t,new WeakMap);var r=Yv.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},yte=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:Oc(),realScaleType:"band"}:s==="radial"&&l==="angleAxis"?{scale:Kd(),realScaleType:"linear"}:o==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:Gu(),realScaleType:"point"}:o==="category"?{scale:Oc(),realScaleType:"band"}:{scale:Kd(),realScaleType:"linear"};if(ja(i)){var u="scale".concat(um(i));return{scale:(XO[u]||Gu)(),realScaleType:XO[u]?u:"point"}}return Pe(i)?{scale:i}:{scale:Gu(),realScaleType:"point"}},iT=1e-4,xte=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])-iT,s=Math.max(i[0],i[1])+iT,l=t(n[0]),u=t(n[r-1]);(l<o||l>s||u<o||u>s)&&t.domain([n[0],n[r-1]])}},_te=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},bte=function(t,n){if(!n||n.length!==2||!oe(n[0])||!oe(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(!oe(t[0])||t[0]<r)&&(o[0]=r),(!oe(t[1])||t[1]>i)&&(o[1]=i),o[0]>i&&(o[0]=i),o[1]<r&&(o[1]=r),o},wte=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=Ml(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])}},Ste=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=Ml(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)}},Pte={sign:wte,expand:z9,none:Xs,silhouette:B9,wiggle:F9,positive:Ste},Ote=function(t,n,r){var i=n.map(function(l){return l.props.dataKey}),o=Pte[r],s=R9().keys(i).value(function(l,u){return+qn(l,u,0)}).order(Cy).offset(o);return s(t)},Tte=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,w=(v=m.type)!==null&&v!==void 0&&v.defaultProps?_t(_t({},m.type.defaultProps),m.props):m.props,b=w.stackId,P=w.hide;if(P)return h;var _=w[r],x=h[_]||{hasStack:!1,stackGroups:{}};if($t(b)){var S=x.stackGroups[b]||{numericAxisId:r,cateAxisId:i,items:[]};S.items.push(m),x.hasStack=!0,x.stackGroups[b]=S}else x.stackGroups[hf("_stackId_")]={numericAxisId:r,cateAxisId:i,items:[m]};return _t(_t({},h),{},zs({},_,x))},u),d={};return Object.keys(f).reduce(function(h,m){var v=f[m];if(v.hasStack){var w={};v.stackGroups=Object.keys(v.stackGroups).reduce(function(b,P){var _=v.stackGroups[P];return _t(_t({},b),{},zs({},P,{numericAxisId:r,cateAxisId:i,items:_.items,stackedData:Ote(t,_.items,o)}))},w)}return _t(_t({},h),{},zs({},m,v))},d)},Ate=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=Ree(f,o,l);return t.domain([wm(d),yo(d)]),{niceTicks:d}}if(o&&i==="number"){var h=t.domain(),m=zee(h,o,l);return{niceTicks:m}}return null};function oT(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&&!Ce(i[t.dataKey])){var l=Pd(n,"value",i[t.dataKey]);if(l)return l.coordinate+r/2}return n[o]?n[o].coordinate+r/2:null}var u=qn(i,Ce(s)?t.dataKey:s);return Ce(u)?null:t.scale(u)}var aT=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=qn(s,n.dataKey,n.domain[l]);return Ce(u)?null:n.scale(u)-o/2+i},Ete=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]},kte=function(t,n){var r,i=(r=t.type)!==null&&r!==void 0&&r.defaultProps?_t(_t({},t.type.defaultProps),t.props):t.props,o=i.stackId;if($t(o)){var s=n[o];if(s){var l=s.items.indexOf(t);return l>=0?s.stackedData[l]:null}}return null},Mte=function(t){return t.reduce(function(n,r){return[wm(r.concat([n[0]]).filter(oe)),yo(r.concat([n[1]]).filter(oe))]},[1/0,-1/0])},nN=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=Mte(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})},sT=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,lT=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,s0=function(t,n,r){if(Pe(t))return t(n,r);if(!Array.isArray(t))return n;var i=[];if(oe(t[0]))i[0]=r?t[0]:Math.min(t[0],n[0]);else if(sT.test(t[0])){var o=+sT.exec(t[0])[1];i[0]=n[0]-o}else Pe(t[0])?i[0]=t[0](n[0]):i[0]=n[0];if(oe(t[1]))i[1]=r?t[1]:Math.max(t[1],n[1]);else if(lT.test(t[1])){var s=+lT.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},tp=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=K_(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},uT=function(t,n,r){return!t||!t.length||Mc(t,mr(r,"type.defaultProps.domain"))?n:t},rN=function(t,n){var r=t.type.defaultProps?_t(_t({},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 _t(_t({},ke(t,!1)),{},{dataKey:i,unit:s,formatter:l,name:o||i,color:b1(t),value:qn(n,i),type:u,payload:n,chartType:f,hide:d})};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 cT(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?cT(Object(n),!0).forEach(function(r){Cte(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Cte(e,t,n){return t=jte(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jte(e){var t=Nte(e,"string");return Lc(t)=="symbol"?t:t+""}function Nte(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 np=Math.PI/180,$te=function(t){return t*180/Math.PI},Kt=function(t,n,r,i){return{x:t+Math.cos(-np*i)*r,y:n+Math.sin(-np*i)*r}},Lte=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))},Ite=function(t,n){var r=t.x,i=t.y,o=n.cx,s=n.cy,l=Lte({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:$te(f),angleInRadian:f}},Dte=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}},Rte=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},hT=function(t,n){var r=t.x,i=t.y,o=Ite({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=Dte(n),h=d.startAngle,m=d.endAngle,v=l,w;if(h<=m){for(;v>m;)v-=360;for(;v<h;)v+=360;w=v>=h&&v<=m}else{for(;v>h;)v-=360;for(;v<m;)v+=360;w=v>=m&&v<=h}return w?fT(fT({},n),{},{radius:s,angle:Rte(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 zte=["offset"];function Bte(e){return Wte(e)||Ute(e)||Vte(e)||Fte()}function Fte(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
375
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vte(e,t){if(e){if(typeof e=="string")return l0(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 l0(e,t)}}function Ute(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Wte(e){if(Array.isArray(e))return l0(e)}function l0(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 Hte(e,t){if(e==null)return{};var n=Gte(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 Gte(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 dT(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 Ct(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dT(Object(n),!0).forEach(function(r){Zte(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Zte(e,t,n){return t=Kte(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kte(e){var t=qte(e,"string");return Ic(t)=="symbol"?t:t+""}function qte(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 Dc(){return Dc=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},Dc.apply(this,arguments)}var Xte=function(t){var n=t.value,r=t.formatter,i=Ce(t.children)?n:t.children;return Pe(r)?r(i):i},Yte=function(t,n){var r=Nr(n-t),i=Math.min(Math.abs(n-t),360);return r*i},Qte=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,w=u.endAngle,b=u.clockWise,P=(h+m)/2,_=Yte(v,w),x=_>=0?1:-1,S,E;i==="insideStart"?(S=v+x*s,E=b):i==="insideEnd"?(S=w-x*s,E=!b):i==="end"&&(S=w+x*s,E=b),E=_<=0?E:!E;var O=Kt(f,d,P,S),A=Kt(f,d,P,S+(E?1:-1)*359),M="M".concat(O.x,",").concat(O.y,`
|
|
376
|
+
A`).concat(P,",").concat(P,",0,1,").concat(E?0:1,`,
|
|
377
|
+
`).concat(A.x,",").concat(A.y),C=Ce(t.id)?hf("recharts-radial-line-"):t.id;return I.createElement("text",Dc({},r,{dominantBaseline:"central",className:Ie("recharts-radial-bar-label",l)}),I.createElement("defs",null,I.createElement("path",{id:C,d:M})),I.createElement("textPath",{xlinkHref:"#".concat(C)},n))},Jte=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=Kt(s,l,f+r,m),w=v.x,b=v.y;return{x:w,y:b,textAnchor:w>=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 P=(u+f)/2,_=Kt(s,l,P,m),x=_.x,S=_.y;return{x,y:S,textAnchor:"middle",verticalAnchor:"middle"}},ene=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",w=h>0?"start":"end",b=f>=0?1:-1,P=b*i,_=b>0?"end":"start",x=b>0?"start":"end";if(o==="top"){var S={x:l+f/2,y:u-h*i,textAnchor:"middle",verticalAnchor:v};return Ct(Ct({},S),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:w};return Ct(Ct({},E),r?{height:Math.max(r.y+r.height-(u+d),0),width:f}:{})}if(o==="left"){var O={x:l-P,y:u+d/2,textAnchor:_,verticalAnchor:"middle"};return Ct(Ct({},O),r?{width:Math.max(O.x-r.x,0),height:d}:{})}if(o==="right"){var A={x:l+f+P,y:u+d/2,textAnchor:x,verticalAnchor:"middle"};return Ct(Ct({},A),r?{width:Math.max(r.x+r.width-A.x,0),height:d}:{})}var M=r?{width:f,height:d}:{};return o==="insideLeft"?Ct({x:l+P,y:u+d/2,textAnchor:x,verticalAnchor:"middle"},M):o==="insideRight"?Ct({x:l+f-P,y:u+d/2,textAnchor:_,verticalAnchor:"middle"},M):o==="insideTop"?Ct({x:l+f/2,y:u+m,textAnchor:"middle",verticalAnchor:w},M):o==="insideBottom"?Ct({x:l+f/2,y:u+d-m,textAnchor:"middle",verticalAnchor:v},M):o==="insideTopLeft"?Ct({x:l+P,y:u+m,textAnchor:x,verticalAnchor:w},M):o==="insideTopRight"?Ct({x:l+f-P,y:u+m,textAnchor:_,verticalAnchor:w},M):o==="insideBottomLeft"?Ct({x:l+P,y:u+d-m,textAnchor:x,verticalAnchor:v},M):o==="insideBottomRight"?Ct({x:l+f-P,y:u+d-m,textAnchor:_,verticalAnchor:v},M):Tl(o)&&(oe(o.x)||va(o.x))&&(oe(o.y)||va(o.y))?Ct({x:l+Na(o.x,f),y:u+Na(o.y,d),textAnchor:"end",verticalAnchor:"end"},M):Ct({x:l+f/2,y:u+d/2,textAnchor:"middle",verticalAnchor:"middle"},M)},tne=function(t){return"cx"in t&&oe(t.cx)};function sn(e){var t=e.offset,n=t===void 0?5:t,r=Hte(e,zte),i=Ct({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||Ce(l)&&Ce(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=Xte(i);var w=tne(o),b=ke(i,!0);if(w&&(s==="insideStart"||s==="insideEnd"||s==="end"))return Qte(i,v,b);var P=w?Jte(i):ene(i);return I.createElement(Bd,Dc({className:Ie("recharts-label",h)},b,P,{breakAll:m}),v)}sn.displayName="Label";var iN=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,w=t.left,b=t.width,P=t.height,_=t.clockWise,x=t.labelViewBox;if(x)return x;if(oe(b)&&oe(P)){if(oe(h)&&oe(m))return{x:h,y:m,width:b,height:P};if(oe(v)&&oe(w))return{x:v,y:w,width:b,height:P}}return oe(h)&&oe(m)?{x:h,y:m,width:0,height:0}:oe(n)&&oe(r)?{cx:n,cy:r,startAngle:o||i||0,endAngle:s||i||0,innerRadius:f||0,outerRadius:d||u||l||0,clockWise:_}:t.viewBox?t.viewBox:{}},nne=function(t,n){return t?t===!0?I.createElement(sn,{key:"label-implicit",viewBox:n}):$t(t)?I.createElement(sn,{key:"label-implicit",viewBox:n,value:t}):j.isValidElement(t)?t.type===sn?j.cloneElement(t,{key:"label-implicit",viewBox:n}):I.createElement(sn,{key:"label-implicit",content:t,viewBox:n}):Pe(t)?I.createElement(sn,{key:"label-implicit",content:t,viewBox:n}):Tl(t)?I.createElement(sn,Dc({viewBox:n},t,{key:"label-implicit"})):null:null},rne=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=iN(t),s=Ir(i,sn).map(function(u,f){return j.cloneElement(u,{viewBox:n||o,key:"label-".concat(f)})});if(!r)return s;var l=nne(t.label,n||o);return[l].concat(Bte(s))};sn.parseViewBox=iN;sn.renderCallByParent=rne;function ine(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var one=ine;const ane=Ke(one);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)}var sne=["valueAccessor"],lne=["data","dataKey","clockWise","id","textBreakAll"];function une(e){return dne(e)||hne(e)||fne(e)||cne()}function cne(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
378
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fne(e,t){if(e){if(typeof e=="string")return u0(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 u0(e,t)}}function hne(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function dne(e){if(Array.isArray(e))return u0(e)}function u0(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 rp(){return rp=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},rp.apply(this,arguments)}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 mT(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){pne(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 pne(e,t,n){return t=mne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mne(e){var t=vne(e,"string");return Rc(t)=="symbol"?t:t+""}function vne(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)}function vT(e,t){if(e==null)return{};var n=gne(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 gne(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 yne=function(t){return Array.isArray(t.value)?ane(t.value):t.value};function ii(e){var t=e.valueAccessor,n=t===void 0?yne:t,r=vT(e,sne),i=r.data,o=r.dataKey,s=r.clockWise,l=r.id,u=r.textBreakAll,f=vT(r,lne);return!i||!i.length?null:I.createElement(dt,{className:"recharts-label-list"},i.map(function(d,h){var m=Ce(o)?n(d,h):qn(d&&d.payload,o),v=Ce(l)?{}:{id:"".concat(l,"-").concat(h)};return I.createElement(sn,rp({},ke(d,!0),f,v,{parentViewBox:d.parentViewBox,value:m,textBreakAll:u,viewBox:sn.parseViewBox(Ce(s)?d:mT(mT({},d),{},{clockWise:s})),key:"label-".concat(h),index:h}))}))}ii.displayName="LabelList";function xne(e,t){return e?e===!0?I.createElement(ii,{key:"labelList-implicit",data:t}):I.isValidElement(e)||Pe(e)?I.createElement(ii,{key:"labelList-implicit",data:t,content:e}):Tl(e)?I.createElement(ii,rp({data:t},e,{key:"labelList-implicit"})):null:null}function _ne(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=Ir(r,ii).map(function(s,l){return j.cloneElement(s,{data:t,key:"labelList-".concat(l)})});if(!n)return i;var o=xne(e.label,t);return[o].concat(une(i))}ii.renderCallByParent=_ne;function zc(e){"@babel/helpers - typeof";return zc=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},zc(e)}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 gT(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 yT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gT(Object(n),!0).forEach(function(r){bne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bne(e,t,n){return t=wne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wne(e){var t=Sne(e,"string");return zc(t)=="symbol"?t:t+""}function Sne(e,t){if(zc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(zc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Pne=function(t,n){var r=Nr(n-t),i=Math.min(Math.abs(n-t),359.999);return r*i},Ah=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)/np,m=f?o:o+s*h,v=Kt(n,r,d,m),w=Kt(n,r,i,m),b=f?o-s*h:o,P=Kt(n,r,d*Math.cos(h*np),b);return{center:v,circleTangency:w,lineTangency:P,theta:h}},oN=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,o=t.outerRadius,s=t.startAngle,l=t.endAngle,u=Pne(s,l),f=s+u,d=Kt(n,r,o,s),h=Kt(n,r,o,f),m="M ".concat(d.x,",").concat(d.y,`
|
|
379
|
+
A `).concat(o,",").concat(o,`,0,
|
|
380
|
+
`).concat(+(Math.abs(u)>180),",").concat(+(s>f),`,
|
|
381
|
+
`).concat(h.x,",").concat(h.y,`
|
|
382
|
+
`);if(i>0){var v=Kt(n,r,i,s),w=Kt(n,r,i,f);m+="L ".concat(w.x,",").concat(w.y,`
|
|
383
|
+
A `).concat(i,",").concat(i,`,0,
|
|
384
|
+
`).concat(+(Math.abs(u)>180),",").concat(+(s<=f),`,
|
|
385
|
+
`).concat(v.x,",").concat(v.y," Z")}else m+="L ".concat(n,",").concat(r," Z");return m},One=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=Nr(d-f),m=Ah({cx:n,cy:r,radius:o,angle:f,sign:h,cornerRadius:s,cornerIsExternal:u}),v=m.circleTangency,w=m.lineTangency,b=m.theta,P=Ah({cx:n,cy:r,radius:o,angle:d,sign:-h,cornerRadius:s,cornerIsExternal:u}),_=P.circleTangency,x=P.lineTangency,S=P.theta,E=u?Math.abs(f-d):Math.abs(f-d)-b-S;if(E<0)return l?"M ".concat(w.x,",").concat(w.y,`
|
|
386
|
+
a`).concat(s,",").concat(s,",0,0,1,").concat(s*2,`,0
|
|
387
|
+
a`).concat(s,",").concat(s,",0,0,1,").concat(-s*2,`,0
|
|
388
|
+
`):oN({cx:n,cy:r,innerRadius:i,outerRadius:o,startAngle:f,endAngle:d});var O="M ".concat(w.x,",").concat(w.y,`
|
|
389
|
+
A`).concat(s,",").concat(s,",0,0,").concat(+(h<0),",").concat(v.x,",").concat(v.y,`
|
|
390
|
+
A`).concat(o,",").concat(o,",0,").concat(+(E>180),",").concat(+(h<0),",").concat(_.x,",").concat(_.y,`
|
|
391
|
+
A`).concat(s,",").concat(s,",0,0,").concat(+(h<0),",").concat(x.x,",").concat(x.y,`
|
|
392
|
+
`);if(i>0){var A=Ah({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,z=Ah({cx:n,cy:r,radius:i,angle:d,sign:-h,isExternal:!0,cornerRadius:s,cornerIsExternal:u}),B=z.circleTangency,R=z.lineTangency,Y=z.theta,H=u?Math.abs(f-d):Math.abs(f-d)-N-Y;if(H<0&&s===0)return"".concat(O,"L").concat(n,",").concat(r,"Z");O+="L".concat(R.x,",").concat(R.y,`
|
|
393
|
+
A`).concat(s,",").concat(s,",0,0,").concat(+(h<0),",").concat(B.x,",").concat(B.y,`
|
|
394
|
+
A`).concat(i,",").concat(i,",0,").concat(+(H>180),",").concat(+(h>0),",").concat(M.x,",").concat(M.y,`
|
|
395
|
+
A`).concat(s,",").concat(s,",0,0,").concat(+(h<0),",").concat(C.x,",").concat(C.y,"Z")}else O+="L".concat(n,",").concat(r,"Z");return O},Tne={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},aN=function(t){var n=yT(yT({},Tne),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=Ie("recharts-sector",m),w=s-o,b=Na(l,w,0,!0),P;return b>0&&Math.abs(d-h)<360?P=One({cx:r,cy:i,innerRadius:o,outerRadius:s,cornerRadius:Math.min(b,w/2),forceCornerRadius:u,cornerIsExternal:f,startAngle:d,endAngle:h}):P=oN({cx:r,cy:i,innerRadius:o,outerRadius:s,startAngle:d,endAngle:h}),I.createElement("path",c0({},ke(n,!0),{className:v,d:P,role:"img"}))};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 f0(){return f0=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},f0.apply(this,arguments)}function xT(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?xT(Object(n),!0).forEach(function(r){Ane(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ane(e,t,n){return t=Ene(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ene(e){var t=kne(e,"string");return Bc(t)=="symbol"?t:t+""}function kne(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)}var bT={curveBasisClosed:A9,curveBasisOpen:E9,curveBasis:T9,curveBumpX:h9,curveBumpY:d9,curveLinearClosed:k9,curveLinear:fm,curveMonotoneX:M9,curveMonotoneY:C9,curveNatural:j9,curveStep:N9,curveStepAfter:L9,curveStepBefore:$9},Eh=function(t){return t.x===+t.x&&t.y===+t.y},mu=function(t){return t.x},vu=function(t){return t.y},Mne=function(t,n){if(Pe(t))return t;var r="curve".concat(um(t));return(r==="curveMonotone"||r==="curveBump")&&n?bT["".concat(r).concat(n==="vertical"?"Y":"X")]:bT[r]||fm},Cne=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=Mne(r,l),h=f?o.filter(function(b){return Eh(b)}):o,m;if(Array.isArray(s)){var v=f?s.filter(function(b){return Eh(b)}):s,w=h.map(function(b,P){return _T(_T({},b),{},{base:v[P]})});return l==="vertical"?m=yh().y(vu).x1(mu).x0(function(b){return b.base.x}):m=yh().x(mu).y1(vu).y0(function(b){return b.base.y}),m.defined(Eh).curve(d),m(w)}return l==="vertical"&&oe(s)?m=yh().y(vu).x1(mu).x0(s):oe(s)?m=yh().x(mu).y1(vu).y0(s):m=lC().x(mu).y(vu),m.defined(Eh).curve(d),m(h)},Ku=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?Cne(t):i;return j.createElement("path",f0({},ke(t,!1),Od(t),{className:Ie("recharts-curve",n),d:s,ref:o}))},sN={exports:{}},jne="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Nne=jne,$ne=Nne;function lN(){}function uN(){}uN.resetWarningCache=lN;var Lne=function(){function e(r,i,o,s,l,u){if(u!==$ne){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:uN,resetWarningCache:lN};return n.PropTypes=n,n};sN.exports=Lne();var Ine=sN.exports;const Be=Ke(Ine),{getOwnPropertyNames:Dne,getOwnPropertySymbols:Rne}=Object,{hasOwnProperty:zne}=Object.prototype;function Qv(e,t){return function(r,i,o){return e(r,i,o)&&t(r,i,o)}}function kh(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 Bne(e){return e!=null?e[Symbol.toStringTag]:void 0}function wT(e){return Dne(e).concat(Rne(e))}const Fne=Object.hasOwn||((e,t)=>zne.call(e,t));function Wa(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const Vne="__v",Une="__o",Wne="_owner",{getOwnPropertyDescriptor:ST,keys:PT}=Object;function Hne(e,t){return e.byteLength===t.byteLength&&ip(new Uint8Array(e),new Uint8Array(t))}function Gne(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 Zne(e,t){return e.byteLength===t.byteLength&&ip(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function Kne(e,t){return Wa(e.getTime(),t.getTime())}function qne(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function Xne(e,t){return e===t}function OT(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 Yne=Wa;function Qne(e,t,n){const r=PT(e);let i=r.length;if(PT(t).length!==i)return!1;for(;i-- >0;)if(!cN(e,t,n,r[i]))return!1;return!0}function gu(e,t,n){const r=wT(e);let i=r.length;if(wT(t).length!==i)return!1;let o,s,l;for(;i-- >0;)if(o=r[i],!cN(e,t,n,o)||(s=ST(e,o),l=ST(t,o),(s||l)&&(!s||!l||s.configurable!==l.configurable||s.enumerable!==l.enumerable||s.writable!==l.writable)))return!1;return!0}function Jne(e,t){return Wa(e.valueOf(),t.valueOf())}function ere(e,t){return e.source===t.source&&e.flags===t.flags}function TT(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 ip(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 tre(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 cN(e,t,n,r){return(r===Wne||r===Une||r===Vne)&&(e.$$typeof||t.$$typeof)?!0:Fne(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}const nre="[object ArrayBuffer]",rre="[object Arguments]",ire="[object Boolean]",ore="[object DataView]",are="[object Date]",sre="[object Error]",lre="[object Map]",ure="[object Number]",cre="[object Object]",fre="[object RegExp]",hre="[object Set]",dre="[object String]",pre={"[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},mre="[object URL]",vre=Object.prototype.toString;function gre({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:w}){return function(P,_,x){if(P===_)return!0;if(P==null||_==null)return!1;const S=typeof P;if(S!==typeof _)return!1;if(S!=="object")return S==="number"?l(P,_,x):S==="function"?o(P,_,x):!1;const E=P.constructor;if(E!==_.constructor)return!1;if(E===Object)return u(P,_,x);if(Array.isArray(P))return t(P,_,x);if(E===Date)return r(P,_,x);if(E===RegExp)return d(P,_,x);if(E===Map)return s(P,_,x);if(E===Set)return h(P,_,x);const O=vre.call(P);if(O===are)return r(P,_,x);if(O===fre)return d(P,_,x);if(O===lre)return s(P,_,x);if(O===hre)return h(P,_,x);if(O===cre)return typeof P.then!="function"&&typeof _.then!="function"&&u(P,_,x);if(O===mre)return v(P,_,x);if(O===sre)return i(P,_,x);if(O===rre)return u(P,_,x);if(pre[O])return m(P,_,x);if(O===nre)return e(P,_,x);if(O===ore)return n(P,_,x);if(O===ire||O===ure||O===dre)return f(P,_,x);if(w){let A=w[O];if(!A){const M=Bne(P);M&&(A=w[M])}if(A)return A(P,_,x)}return!1}}function yre({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:Hne,areArraysEqual:n?gu:Gne,areDataViewsEqual:Zne,areDatesEqual:Kne,areErrorsEqual:qne,areFunctionsEqual:Xne,areMapsEqual:n?Qv(OT,gu):OT,areNumbersEqual:Yne,areObjectsEqual:n?gu:Qne,arePrimitiveWrappersEqual:Jne,areRegExpsEqual:ere,areSetsEqual:n?Qv(TT,gu):TT,areTypedArraysEqual:n?Qv(ip,gu):ip,areUrlsEqual:tre,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){const i=kh(r.areArraysEqual),o=kh(r.areMapsEqual),s=kh(r.areObjectsEqual),l=kh(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:i,areMapsEqual:o,areObjectsEqual:s,areSetsEqual:l})}return r}function xre(e){return function(t,n,r,i,o,s,l){return e(t,n,l)}}function _re({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 bre=Fo();Fo({strict:!0});Fo({circular:!0});Fo({circular:!0,strict:!0});Fo({createInternalComparator:()=>Wa});Fo({strict:!0,createInternalComparator:()=>Wa});Fo({circular:!0,createInternalComparator:()=>Wa});Fo({circular:!0,createInternalComparator:()=>Wa,strict:!0});function Fo(e={}){const{circular:t=!1,createInternalComparator:n,createState:r,strict:i=!1}=e,o=yre(e),s=gre(o),l=n?n(s):xre(s);return _re({circular:t,comparator:s,createState:r,equals:l,strict:i})}function wre(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function AT(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):wre(i)};requestAnimationFrame(r)}function h0(e){"@babel/helpers - typeof";return h0=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},h0(e)}function Sre(e){return Are(e)||Tre(e)||Ore(e)||Pre()}function Pre(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
396
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ore(e,t){if(e){if(typeof e=="string")return ET(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 ET(e,t)}}function ET(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 Tre(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Are(e){if(Array.isArray(e))return e}function Ere(){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=Sre(s),u=l[0],f=l.slice(1);if(typeof u=="number"){AT(i.bind(null,f),u);return}i(u),AT(i.bind(null,f));return}h0(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 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 kT(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 MT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kT(Object(n),!0).forEach(function(r){fN(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fN(e,t,n){return t=kre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kre(e){var t=Mre(e,"string");return Fc(t)==="symbol"?t:String(t)}function Mre(e,t){if(Fc(e)!=="object"||e===null)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 Cre=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,i){return r.filter(function(o){return i.includes(o)})})},jre=function(t){return t},Nre=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},qu=function(t,n){return Object.keys(n).reduce(function(r,i){return MT(MT({},r),{},fN({},i,t(i,n[i])))},{})},CT=function(t,n,r){return t.map(function(i){return"".concat(Nre(i)," ").concat(n,"ms ").concat(r)}).join(",")};function $re(e,t){return Dre(e)||Ire(e,t)||hN(e,t)||Lre()}function Lre(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
397
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ire(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 Dre(e){if(Array.isArray(e))return e}function Rre(e){return Fre(e)||Bre(e)||hN(e)||zre()}function zre(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
398
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hN(e,t){if(e){if(typeof e=="string")return d0(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 d0(e,t)}}function Bre(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Fre(e){if(Array.isArray(e))return d0(e)}function d0(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 op=1e-4,dN=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},pN=function(t,n){return t.map(function(r,i){return r*Math.pow(n,i)}).reduce(function(r,i){return r+i})},jT=function(t,n){return function(r){var i=dN(t,n);return pN(i,r)}},Vre=function(t,n){return function(r){var i=dN(t,n),o=[].concat(Rre(i.map(function(s,l){return s*l}).slice(1)),[0]);return pN(o,r)}},NT=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(P){return parseFloat(P)}),d=$re(f,4);i=d[0],o=d[1],s=d[2],l=d[3]}}}var h=jT(i,s),m=jT(o,l),v=Vre(i,s),w=function(_){return _>1?1:_<0?0:_},b=function(_){for(var x=_>1?1:_,S=x,E=0;E<8;++E){var O=h(S)-x,A=v(S);if(Math.abs(O-x)<op||A<op)return m(S);S=w(S-O/A)}return m(S)};return b.isStepper=!1,b},Ure=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,w=m*o,b=m+(v-w)*l/1e3,P=m*l/1e3+d;return Math.abs(P-h)<op&&Math.abs(b)<op?[h,0]:[P,b]};return u.isStepper=!0,u.dt=l,u},Wre=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 NT(i);case"spring":return Ure();default:if(i.split("(")[0]==="cubic-bezier")return NT(i)}return typeof i=="function"?i:null};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 $T(e){return Zre(e)||Gre(e)||mN(e)||Hre()}function Hre(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
399
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gre(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Zre(e){if(Array.isArray(e))return m0(e)}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 Ht(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){p0(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 p0(e,t,n){return t=Kre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kre(e){var t=qre(e,"string");return Vc(t)==="symbol"?t:String(t)}function qre(e,t){if(Vc(e)!=="object"||e===null)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)}function Xre(e,t){return Jre(e)||Qre(e,t)||mN(e,t)||Yre()}function Yre(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
400
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mN(e,t){if(e){if(typeof e=="string")return m0(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 m0(e,t)}}function m0(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 Qre(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 Jre(e){if(Array.isArray(e))return e}var ap=function(t,n,r){return t+(n-t)*r},v0=function(t){var n=t.from,r=t.to;return n!==r},eie=function e(t,n,r){var i=qu(function(o,s){if(v0(s)){var l=t(s.from,s.to,s.velocity),u=Xre(l,2),f=u[0],d=u[1];return Ht(Ht({},s),{},{from:f,velocity:d})}return s},n);return r<1?qu(function(o,s){return v0(s)?Ht(Ht({},s),{},{velocity:ap(s.velocity,i[o].velocity,r),from:ap(s.from,i[o].from,r)}):s},n):e(t,i,r-1)};const tie=function(e,t,n,r,i){var o=Cre(e,t),s=o.reduce(function(P,_){return Ht(Ht({},P),{},p0({},_,[e[_],t[_]]))},{}),l=o.reduce(function(P,_){return Ht(Ht({},P),{},p0({},_,{from:e[_],velocity:0,to:t[_]}))},{}),u=-1,f,d,h=function(){return null},m=function(){return qu(function(_,x){return x.from},l)},v=function(){return!Object.values(l).filter(v0).length},w=function(_){f||(f=_);var x=_-f,S=x/n.dt;l=eie(n,l,S),i(Ht(Ht(Ht({},e),t),m())),f=_,v()||(u=requestAnimationFrame(h))},b=function(_){d||(d=_);var x=(_-d)/r,S=qu(function(O,A){return ap.apply(void 0,$T(A).concat([n(x)]))},s);if(i(Ht(Ht(Ht({},e),t),S)),x<1)u=requestAnimationFrame(h);else{var E=qu(function(O,A){return ap.apply(void 0,$T(A).concat([n(1)]))},s);i(Ht(Ht(Ht({},e),t),E))}};return h=n.isStepper?w:b,function(){return requestAnimationFrame(h),function(){cancelAnimationFrame(u)}}};function ol(e){"@babel/helpers - typeof";return ol=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},ol(e)}var nie=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function rie(e,t){if(e==null)return{};var n=iie(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 iie(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 Jv(e){return lie(e)||sie(e)||aie(e)||oie()}function oie(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
401
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aie(e,t){if(e){if(typeof e=="string")return g0(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 g0(e,t)}}function sie(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function lie(e){if(Array.isArray(e))return g0(e)}function g0(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 IT(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 Tr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?IT(Object(n),!0).forEach(function(r){Eu(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Eu(e,t,n){return t=vN(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cie(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,vN(r.key),r)}}function fie(e,t,n){return t&&cie(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function vN(e){var t=hie(e,"string");return ol(t)==="symbol"?t:String(t)}function hie(e,t){if(ol(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ol(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function die(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&&y0(e,t)}function y0(e,t){return y0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},y0(e,t)}function pie(e){var t=mie();return function(){var r=sp(e),i;if(t){var o=sp(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return x0(this,i)}}function x0(e,t){if(t&&(ol(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _0(e)}function _0(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mie(){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 sp(e){return sp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},sp(e)}var Vi=function(e){die(n,e);var t=pie(n);function n(r,i){var o;uie(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(_0(o)),o.changeStyle=o.changeStyle.bind(_0(o)),!l||v<=0)return o.state={style:{}},typeof m=="function"&&(o.state={style:d}),x0(o);if(h&&h.length)o.state={style:h[0].style};else if(f){if(typeof m=="function")return o.state={style:f},x0(o);o.state={style:u?Eu({},u,f):f}}else o.state={style:{}};return o}return fie(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?Eu({},u,d):d};this.state&&m&&(u&&m[u]!==d||!u&&m!==d)&&this.setState(v);return}if(!(bre(i.to,d)&&i.canBegin&&i.isActive)){var w=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var b=w||f?h:i.to;if(this.state&&m){var P={style:u?Eu({},u,b):b};(u&&m[u]!==b||!u&&m!==b)&&this.setState(P)}this.runAnimation(Tr(Tr({},this.props),{},{from:b,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=tie(s,l,Wre(f),u,this.changeStyle),w=function(){o.stopJSAnimation=v()};this.manager.start([m,d,w,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(b,P,_){if(_===0)return b;var x=P.duration,S=P.easing,E=S===void 0?"ease":S,O=P.style,A=P.properties,M=P.onAnimationEnd,C=_>0?s[_-1]:P,N=A||Object.keys(O);if(typeof E=="function"||E==="spring")return[].concat(Jv(b),[o.runJSAnimation.bind(o,{from:C.style,to:O,duration:x,easing:E}),x]);var z=CT(N,x,E),B=Tr(Tr(Tr({},C.style),O),{},{transition:z});return[].concat(Jv(b),[B,x,M]).filter(jre)};return this.manager.start([u].concat(Jv(s.reduce(v,[d,Math.max(m,l)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=Ere());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,w=this.manager;if(this.unSubscribe=w.subscribe(this.handleStyleChange),typeof f=="function"||typeof v=="function"||f==="spring"){this.runJSAnimation(i);return}if(m.length>1){this.runStepAnimation(i);return}var b=l?Eu({},l,u):u,P=CT(Object.keys(b),s,f);w.start([d,o,Tr(Tr({},b),{},{transition:P}),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=rie(i,nie),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 w=v.props,b=w.style,P=b===void 0?{}:b,_=w.className,x=j.cloneElement(v,Tr(Tr({},u),{},{style:Tr(Tr({},P),d),className:_}));return x};return f===1?h(j.Children.only(o)):I.createElement("div",null,j.Children.map(o,function(m){return h(m)}))}}]),n}(j.PureComponent);Vi.displayName="Animate";Vi.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Vi.propTypes={from:Be.oneOfType([Be.object,Be.string]),to:Be.oneOfType([Be.object,Be.string]),attributeName:Be.string,duration:Be.number,begin:Be.number,easing:Be.oneOfType([Be.string,Be.func]),steps:Be.arrayOf(Be.shape({duration:Be.number.isRequired,style:Be.object.isRequired,easing:Be.oneOfType([Be.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Be.func]),properties:Be.arrayOf("string"),onAnimationEnd:Be.func})),children:Be.oneOfType([Be.node,Be.func]),isActive:Be.bool,canBegin:Be.bool,onAnimationEnd:Be.func,shouldReAnimate:Be.bool,onAnimationStart:Be.func,onAnimationReStart:Be.func};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 lp(){return lp=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},lp.apply(this,arguments)}function vie(e,t){return _ie(e)||xie(e,t)||yie(e,t)||gie()}function gie(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
402
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yie(e,t){if(e){if(typeof e=="string")return DT(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 DT(e,t)}}function DT(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 xie(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 _ie(e){if(Array.isArray(e))return 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){bie(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 bie(e,t,n){return t=wie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wie(e){var t=Sie(e,"string");return Uc(t)=="symbol"?t:t+""}function Sie(e,t){if(Uc(e)!="object"||!e)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 BT=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,`,
|
|
403
|
+
`).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,`,
|
|
404
|
+
`).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,`,
|
|
405
|
+
`).concat(t,",").concat(n+i-l*h[3])),d+="Z"}else if(s>0&&o===+o&&o>0){var w=Math.min(s,o);d="M ".concat(t,",").concat(n+l*w,`
|
|
406
|
+
A `).concat(w,",").concat(w,",0,0,").concat(f,",").concat(t+u*w,",").concat(n,`
|
|
407
|
+
L `).concat(t+r-u*w,",").concat(n,`
|
|
408
|
+
A `).concat(w,",").concat(w,",0,0,").concat(f,",").concat(t+r,",").concat(n+l*w,`
|
|
409
|
+
L `).concat(t+r,",").concat(n+i-l*w,`
|
|
410
|
+
A `).concat(w,",").concat(w,",0,0,").concat(f,",").concat(t+r-u*w,",").concat(n+i,`
|
|
411
|
+
L `).concat(t+u*w,",").concat(n+i,`
|
|
412
|
+
A `).concat(w,",").concat(w,",0,0,").concat(f,",").concat(t,",").concat(n+i-l*w," Z")}else d="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(i," h ").concat(-r," Z");return d},Pie=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},Oie={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},w1=function(t){var n=zT(zT({},Oie),t),r=j.useRef(),i=j.useState(-1),o=vie(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,w=n.animationEasing,b=n.animationDuration,P=n.animationBegin,_=n.isAnimationActive,x=n.isUpdateAnimationActive;if(u!==+u||f!==+f||d!==+d||h!==+h||d===0||h===0)return null;var S=Ie("recharts-rectangle",v);return x?I.createElement(Vi,{canBegin:s>0,from:{width:d,height:h,x:u,y:f},to:{width:d,height:h,x:u,y:f},duration:b,animationEasing:w,isActive:x},function(E){var O=E.width,A=E.height,M=E.x,C=E.y;return I.createElement(Vi,{canBegin:s>0,from:"0px ".concat(s===-1?1:s,"px"),to:"".concat(s,"px 0px"),attributeName:"strokeDasharray",begin:P,duration:b,isActive:_,easing:w},I.createElement("path",lp({},ke(n,!0),{className:S,d:BT(M,C,O,A,m),ref:r})))}):I.createElement("path",lp({},ke(n,!0),{className:S,d:BT(u,f,d,h,m)}))};function b0(){return b0=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},b0.apply(this,arguments)}var S1=function(t){var n=t.cx,r=t.cy,i=t.r,o=t.className,s=Ie("recharts-dot",o);return n===+n&&r===+r&&i===+i?j.createElement("circle",b0({},ke(t,!1),Od(t),{className:s,cx:n,cy:r,r:i})):null};function Wc(e){"@babel/helpers - typeof";return Wc=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},Wc(e)}var Tie=["x","y","top","left","width","height","className"];function w0(){return w0=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},w0.apply(this,arguments)}function FT(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 Aie(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?FT(Object(n),!0).forEach(function(r){Eie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Eie(e,t,n){return t=kie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kie(e){var t=Mie(e,"string");return Wc(t)=="symbol"?t:t+""}function Mie(e,t){if(Wc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Wc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Cie(e,t){if(e==null)return{};var n=jie(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 jie(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 Nie=function(t,n,r,i,o,s){return"M".concat(t,",").concat(o,"v").concat(i,"M").concat(s,",").concat(n,"h").concat(r)},$ie=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,w=t.className,b=Cie(t,Tie),P=Aie({x:r,y:o,top:l,left:f,width:h,height:v},b);return!oe(r)||!oe(o)||!oe(h)||!oe(v)||!oe(l)||!oe(f)?null:I.createElement("path",w0({},ke(P,!0),{className:Ie("recharts-cross",w),d:Nie(r,o,h,v,l,f)}))},Lie=jC,Iie=Lie(Object.getPrototypeOf,Object),Die=Iie,Rie=Wi,zie=Die,Bie=Hi,Fie="[object Object]",Vie=Function.prototype,Uie=Object.prototype,gN=Vie.toString,Wie=Uie.hasOwnProperty,Hie=gN.call(Object);function Gie(e){if(!Bie(e)||Rie(e)!=Fie)return!1;var t=zie(e);if(t===null)return!0;var n=Wie.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&gN.call(n)==Hie}var Zie=Gie;const Kie=Ke(Zie);var qie=Wi,Xie=Hi,Yie="[object Boolean]";function Qie(e){return e===!0||e===!1||Xie(e)&&qie(e)==Yie}var Jie=Qie;const eoe=Ke(Jie);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)}function up(){return up=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},up.apply(this,arguments)}function toe(e,t){return ooe(e)||ioe(e,t)||roe(e,t)||noe()}function noe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
413
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function roe(e,t){if(e){if(typeof e=="string")return VT(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 VT(e,t)}}function VT(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 ioe(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 ooe(e){if(Array.isArray(e))return e}function UT(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 WT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?UT(Object(n),!0).forEach(function(r){aoe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function aoe(e,t,n){return t=soe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function soe(e){var t=loe(e,"string");return Hc(t)=="symbol"?t:t+""}function loe(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)}var HT=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},uoe={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},coe=function(t){var n=WT(WT({},uoe),t),r=j.useRef(),i=j.useState(-1),o=toe(i,2),s=o[0],l=o[1];j.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var S=r.current.getTotalLength();S&&l(S)}catch{}},[]);var u=n.x,f=n.y,d=n.upperWidth,h=n.lowerWidth,m=n.height,v=n.className,w=n.animationEasing,b=n.animationDuration,P=n.animationBegin,_=n.isUpdateAnimationActive;if(u!==+u||f!==+f||d!==+d||h!==+h||m!==+m||d===0&&h===0||m===0)return null;var x=Ie("recharts-trapezoid",v);return _?I.createElement(Vi,{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:b,animationEasing:w,isActive:_},function(S){var E=S.upperWidth,O=S.lowerWidth,A=S.height,M=S.x,C=S.y;return I.createElement(Vi,{canBegin:s>0,from:"0px ".concat(s===-1?1:s,"px"),to:"".concat(s,"px 0px"),attributeName:"strokeDasharray",begin:P,duration:b,easing:w},I.createElement("path",up({},ke(n,!0),{className:x,d:HT(M,C,E,O,A),ref:r})))}):I.createElement("g",null,I.createElement("path",up({},ke(n,!0),{className:x,d:HT(u,f,d,h,m)})))},foe=["option","shapeType","propTransformer","activeClassName","isActive"];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 hoe(e,t){if(e==null)return{};var n=doe(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 doe(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 GT(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 cp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?GT(Object(n),!0).forEach(function(r){poe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function poe(e,t,n){return t=moe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function moe(e){var t=voe(e,"string");return Gc(t)=="symbol"?t:t+""}function voe(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 goe(e,t){return cp(cp({},t),e)}function yoe(e,t){return e==="symbols"}function ZT(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return I.createElement(w1,n);case"trapezoid":return I.createElement(coe,n);case"sector":return I.createElement(aN,n);case"symbols":if(yoe(t))return I.createElement(B_,n);break;default:return null}}function xoe(e){return j.isValidElement(e)?e.props:e}function _oe(e){var t=e.option,n=e.shapeType,r=e.propTransformer,i=r===void 0?goe:r,o=e.activeClassName,s=o===void 0?"recharts-active-shape":o,l=e.isActive,u=hoe(e,foe),f;if(j.isValidElement(t))f=j.cloneElement(t,cp(cp({},u),xoe(t)));else if(Pe(t))f=t(u);else if(Kie(t)&&!eoe(t)){var d=i(t,u);f=I.createElement(ZT,{shapeType:n,elementProps:d})}else{var h=u;f=I.createElement(ZT,{shapeType:n,elementProps:h})}return l?I.createElement(dt,{className:s},f):f}function Tm(e,t){return t!=null&&"trapezoids"in e.props}function Am(e,t){return t!=null&&"sectors"in e.props}function Zc(e,t){return t!=null&&"points"in e.props}function boe(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 woe(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function Soe(e,t){var n=e.x===t.x,r=e.y===t.y,i=e.z===t.z;return n&&r&&i}function Poe(e,t){var n;return Tm(e,t)?n=boe:Am(e,t)?n=woe:Zc(e,t)&&(n=Soe),n}function Ooe(e,t){var n;return Tm(e,t)?n="trapezoids":Am(e,t)?n="sectors":Zc(e,t)&&(n="points"),n}function Toe(e,t){if(Tm(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(Am(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 Zc(e,t)?t.payload:{}}function Aoe(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,i=Ooe(n,t),o=Toe(n,t),s=r.filter(function(u,f){var d=Mc(o,u),h=n.props[i].filter(function(w){var b=Poe(n,t);return b(w,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 Eoe=Math.ceil,koe=Math.max;function Moe(e,t,n,r){for(var i=-1,o=koe(Eoe((t-e)/(n||1)),0),s=Array(o);o--;)s[r?o:++i]=e,e+=n;return s}var Coe=Moe,joe=YC,KT=1/0,Noe=17976931348623157e292;function $oe(e){if(!e)return e===0?e:0;if(e=joe(e),e===KT||e===-KT){var t=e<0?-1:1;return t*Noe}return e===e?e:0}var yN=$oe,Loe=Coe,Ioe=mm,eg=yN;function Doe(e){return function(t,n,r){return r&&typeof r!="number"&&Ioe(t,n,r)&&(n=r=void 0),t=eg(t),n===void 0?(n=t,t=0):n=eg(n),r=r===void 0?t<n?1:-1:eg(r),Loe(t,n,r,e)}}var Roe=Doe,zoe=Roe,Boe=zoe(),Foe=Boe;const fp=Ke(Foe);function Kc(e){"@babel/helpers - typeof";return Kc=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},Kc(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 XT(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){xN(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 xN(e,t,n){return t=Voe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Voe(e){var t=Uoe(e,"string");return Kc(t)=="symbol"?t:t+""}function Uoe(e,t){if(Kc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Kc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Woe=["Webkit","Moz","O","ms"],Hoe=function(t,n){var r=t.replace(/(\w)/,function(o){return o.toUpperCase()}),i=Woe.reduce(function(o,s){return XT(XT({},o),{},xN({},s+r,n))},{});return i[t]=n,i};function al(e){"@babel/helpers - typeof";return al=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},al(e)}function hp(){return hp=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},hp.apply(this,arguments)}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 tg(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){zn(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 Goe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function QT(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,bN(r.key),r)}}function Zoe(e,t,n){return t&&QT(e.prototype,t),n&&QT(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Koe(e,t,n){return t=dp(t),qoe(e,_N()?Reflect.construct(t,n||[],dp(e).constructor):t.apply(e,n))}function qoe(e,t){if(t&&(al(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Xoe(e)}function Xoe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _N(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_N=function(){return!!e})()}function dp(e){return dp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},dp(e)}function Yoe(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&&S0(e,t)}function S0(e,t){return S0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},S0(e,t)}function zn(e,t,n){return t=bN(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bN(e){var t=Qoe(e,"string");return al(t)=="symbol"?t:t+""}function Qoe(e,t){if(al(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(al(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Joe=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=Gu().domain(fp(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}},JT=function(t){return t.changedTouches&&!!t.changedTouches.length},sl=function(e){function t(n){var r;return Goe(this,t),r=Koe(this,t,[n]),zn(r,"handleDrag",function(i){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(i):r.state.isSlideMoving&&r.handleSlideDrag(i)}),zn(r,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&r.handleDrag(i.changedTouches[0])}),zn(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()}),zn(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),zn(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),zn(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),zn(r,"handleSlideDragStart",function(i){var o=JT(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 Yoe(t,e),Zoe(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),w=t.getIndexInRange(s,m);return{startIndex:v-v%u,endIndex:w===d?d:w-w%u}}},{key:"getTextOfTick",value:function(r){var i=this.props,o=i.data,s=i.tickFormatter,l=i.dataKey,u=qn(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,w=u.onChange,b=r.pageX-o;b>0?b=Math.min(b,f+d-h-l,f+d-h-s):b<0&&(b=Math.max(b,f-s,f-l));var P=this.getIndex({startX:s+b,endX:l+b});(P.startIndex!==m||P.endIndex!==v)&&w&&w(P),this.setState({startX:s+b,endX:l+b,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,i){var o=JT(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,w=d.onChange,b=d.gap,P=d.data,_={startX:this.state.startX,endX:this.state.endX},x=r.pageX-o;x>0?x=Math.min(x,h+m-v-f):x<0&&(x=Math.max(x,h-f)),_[s]=f+x;var S=this.getIndex(_),E=S.startIndex,O=S.endIndex,A=function(){var C=P.length-1;return s==="startX"&&(l>u?E%b===0:O%b===0)||l<u&&O===C||s==="endX"&&(l>u?O%b===0:E%b===0)||l>u&&O===C};this.setState(zn(zn({},s,f+x),"brushMoveStartX",r.pageX),function(){w&&A()&&w(S)})}},{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(zn({},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 I.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?I.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,w=u.data,b=u.startIndex,P=u.endIndex,_=Math.max(r,this.props.x),x=tg(tg({},ke(this.props,!1)),{},{x:_,y:f,width:d,height:h}),S=v||"Min value: ".concat((o=w[b])===null||o===void 0?void 0:o.name,", Max value: ").concat((s=w[P])===null||s===void 0?void 0:s.name);return I.createElement(dt,{tabIndex:0,role:"slider","aria-label":S,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(O){["ArrowLeft","ArrowRight"].includes(O.key)&&(O.preventDefault(),O.stopPropagation(),l.handleTravellerMoveKeyboard(O.key==="ArrowRight"?1:-1,i))},onFocus:function(){l.setState({isTravellerFocused:!0})},onBlur:function(){l.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(m,x))}},{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 I.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,w={pointerEvents:"none",fill:f};return I.createElement(dt,{className:"recharts-brush-texts"},I.createElement(Bd,hp({textAnchor:"end",verticalAnchor:"middle",x:Math.min(h,m)-v,y:s+l/2},w),this.getTextOfTick(i)),I.createElement(Bd,hp({textAnchor:"start",verticalAnchor:"middle",x:Math.max(h,m)+u+v,y:s+l/2},w),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,w=m.endX,b=m.isTextActive,P=m.isSlideMoving,_=m.isTravellerMoving,x=m.isTravellerFocused;if(!i||!i.length||!oe(l)||!oe(u)||!oe(f)||!oe(d)||f<=0||d<=0)return null;var S=Ie("recharts-brush",o),E=I.Children.count(s)===1,O=Hoe("userSelect","none");return I.createElement(dt,{className:S,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:O},this.renderBackground(),E&&this.renderPanorama(),this.renderSlide(v,w),this.renderTravellerLayer(v,"startX"),this.renderTravellerLayer(w,"endX"),(b||P||_||x||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 I.createElement(I.Fragment,null,I.createElement("rect",{x:i,y:o,width:s,height:l,fill:u,stroke:"none"}),I.createElement("line",{x1:i+1,y1:f,x2:i+s-1,y2:f,fill:"none",stroke:"#fff"}),I.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 I.isValidElement(r)?o=I.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 tg({prevData:o,prevTravellerWidth:u,prevUpdateId:f,prevX:l,prevWidth:s},o&&o.length?Joe({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);zn(sl,"displayName","Brush");zn(sl,"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 eae=Z_;function tae(e,t){var n;return eae(e,function(r,i,o){return n=t(r,i,o),!n}),!!n}var nae=tae,rae=PC,iae=Ro,oae=nae,aae=In,sae=mm;function lae(e,t,n){var r=aae(e)?rae:oae;return n&&sae(e,t,n)&&(t=void 0),r(e,iae(t))}var uae=lae;const cae=Ke(uae);var oi=function(t,n){var r=t.alwaysShow,i=t.ifOverflow;return r&&(i="extendDomain"),i===n},eA=GC;function fae(e,t,n){t=="__proto__"&&eA?eA(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var hae=fae,dae=hae,pae=WC,mae=Ro;function vae(e,t){var n={};return t=mae(t),pae(e,function(r,i,o){dae(n,i,t(r,i,o))}),n}var gae=vae;const yae=Ke(gae);function xae(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 _ae=xae,bae=Z_;function wae(e,t){var n=!0;return bae(e,function(r,i,o){return n=!!t(r,i,o),n}),n}var Sae=wae,Pae=_ae,Oae=Sae,Tae=Ro,Aae=In,Eae=mm;function kae(e,t,n){var r=Aae(e)?Pae:Oae;return n&&Eae(e,t,n)&&(t=void 0),r(e,Tae(t))}var Mae=kae;const wN=Ke(Mae);var Cae=["x","y"];function qc(e){"@babel/helpers - typeof";return qc=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},qc(e)}function P0(){return P0=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},P0.apply(this,arguments)}function tA(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 yu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tA(Object(n),!0).forEach(function(r){jae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jae(e,t,n){return t=Nae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nae(e){var t=$ae(e,"string");return qc(t)=="symbol"?t:t+""}function $ae(e,t){if(qc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(qc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Lae(e,t){if(e==null)return{};var n=Iae(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 Iae(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 Dae(e,t){var n=e.x,r=e.y,i=Lae(e,Cae),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 yu(yu(yu(yu(yu({},t),i),s?{x:s}:{}),u?{y:u}:{}),{},{height:d,width:m,name:t.name,radius:t.radius})}function nA(e){return I.createElement(_oe,P0({shapeType:"rectangle",propTransformer:Dae,activeClassName:"recharts-active-bar"},e))}var Rae=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=oe(r)||Y6(r);return o?t(r,i):(o||La(),n)}},zae=["value","background"],SN;function ll(e){"@babel/helpers - typeof";return ll=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ll(e)}function Bae(e,t){if(e==null)return{};var n=Fae(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 Fae(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 pp(){return pp=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},pp.apply(this,arguments)}function rA(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 Ot(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rA(Object(n),!0).forEach(function(r){xo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Vae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iA(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,ON(r.key),r)}}function Uae(e,t,n){return t&&iA(e.prototype,t),n&&iA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Wae(e,t,n){return t=mp(t),Hae(e,PN()?Reflect.construct(t,n||[],mp(e).constructor):t.apply(e,n))}function Hae(e,t){if(t&&(ll(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Gae(e)}function Gae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function PN(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(PN=function(){return!!e})()}function mp(e){return mp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},mp(e)}function Zae(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 xo(e,t,n){return t=ON(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ON(e){var t=Kae(e,"string");return ll(t)=="symbol"?t:t+""}function Kae(e,t){if(ll(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ll(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ha=function(e){function t(){var n;Vae(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=Wae(this,t,[].concat(i)),xo(n,"state",{isAnimationFinished:!1}),xo(n,"id",hf("recharts-bar-")),xo(n,"handleAnimationEnd",function(){var s=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),s&&s()}),xo(n,"handleAnimationStart",function(){var s=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),s&&s()}),n}return Zae(t,e),Uae(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=ke(this.props,!1);return r&&r.map(function(h,m){var v=m===u,w=v?f:s,b=Ot(Ot(Ot({},d),h),{},{isActive:v,option:w,index:m,dataKey:l,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return I.createElement(dt,pp({className:"recharts-bar-rectangle"},Td(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)}),I.createElement(nA,b))})}},{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 I.createElement(Vi,{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 w=v.t,b=o.map(function(P,_){var x=m&&m[_];if(x){var S=fr(x.x,P.x),E=fr(x.y,P.y),O=fr(x.width,P.width),A=fr(x.height,P.height);return Ot(Ot({},P),{},{x:S(w),y:E(w),width:O(w),height:A(w)})}if(s==="horizontal"){var M=fr(0,P.height),C=M(w);return Ot(Ot({},P),{},{y:P.y+P.height-C,height:C})}var N=fr(0,P.width),z=N(w);return Ot(Ot({},P),{},{width:z})});return I.createElement(dt,null,r.renderRectanglesStatically(b))})}},{key:"renderRectangles",value:function(){var r=this.props,i=r.data,o=r.isAnimationActive,s=this.state.prevData;return o&&i&&i.length&&(!s||!Mc(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=ke(this.props.background,!1);return o.map(function(f,d){f.value;var h=f.background,m=Bae(f,zae);if(!h)return null;var v=Ot(Ot(Ot(Ot(Ot({},m),{},{fill:"#eee"},h),u),Td(r.props,f,d)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:s,index:d,className:"recharts-bar-background-rectangle"});return I.createElement(nA,pp({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=Ir(d,Om);if(!h)return null;var m=f==="vertical"?s[0].height/2:s[0].width/2,v=function(P,_){var x=Array.isArray(P.value)?P.value[1]:P.value;return{x:P.x,y:P.y,value:x,errorVal:qn(P,_)}},w={clipPath:r?"url(#clipPath-".concat(i,")"):null};return I.createElement(dt,w,h.map(function(b){return I.cloneElement(b,{key:"error-bar-".concat(i,"-").concat(b.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,w=r.background,b=r.id;if(i||!o||!o.length)return null;var P=this.state.isAnimationFinished,_=Ie("recharts-bar",s),x=l&&l.allowDataOverflow,S=u&&u.allowDataOverflow,E=x||S,O=Ce(b)?this.id:b;return I.createElement(dt,{className:_},x||S?I.createElement("defs",null,I.createElement("clipPath",{id:"clipPath-".concat(O)},I.createElement("rect",{x:x?f:f-h/2,y:S?d:d-m/2,width:x?h:h*2,height:S?m:m*2}))):null,I.createElement(dt,{className:"recharts-bar-rectangles",clipPath:E?"url(#clipPath-".concat(O,")"):null},w?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(E,O),(!v||P)&&ii.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);SN=Ha;xo(Ha,"displayName","Bar");xo(Ha,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!$l.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});xo(Ha,"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=_te(r,n);if(!v)return null;var w=t.layout,b=n.type.defaultProps,P=b!==void 0?Ot(Ot({},b),n.props):n.props,_=P.dataKey,x=P.children,S=P.minPointSize,E=w==="horizontal"?s:o,O=f?E.scale.domain():null,A=Ete({numericAxis:E}),M=Ir(x,X_),C=h.map(function(N,z){var B,R,Y,H,Z,K;f?B=bte(f[d+z],O):(B=qn(N,_),Array.isArray(B)||(B=[A,B]));var q=Rae(S,SN.defaultProps.minPointSize)(B[1],z);if(w==="horizontal"){var D,U=[s.scale(B[0]),s.scale(B[1])],V=U[0],ee=U[1];R=aT({axis:o,ticks:l,bandSize:i,offset:v.offset,entry:N,index:z}),Y=(D=ee??V)!==null&&D!==void 0?D:void 0,H=v.size;var te=V-ee;if(Z=Number.isNaN(te)?0:te,K={x:R,y:s.y,width:H,height:s.height},Math.abs(q)>0&&Math.abs(Z)<Math.abs(q)){var ae=Nr(Z||q)*(Math.abs(q)-Math.abs(Z));Y-=ae,Z+=ae}}else{var pe=[o.scale(B[0]),o.scale(B[1])],de=pe[0],Q=pe[1];if(R=de,Y=aT({axis:s,ticks:u,bandSize:i,offset:v.offset,entry:N,index:z}),H=Q-de,Z=v.size,K={x:o.x,y:Y,width:o.width,height:Z},Math.abs(q)>0&&Math.abs(H)<Math.abs(q)){var qe=Nr(H||q)*(Math.abs(q)-Math.abs(H));H+=qe}}return Ot(Ot(Ot({},N),{},{x:R,y:Y,width:H,height:Z,value:f?B:B[1],payload:N,background:K},M&&M[z]&&M[z].props),{},{tooltipPayload:[rN(n,N)],tooltipPosition:{x:R+H/2,y:Y+Z/2}})});return Ot({data:C,layout:w},m)});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 qae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oA(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,TN(r.key),r)}}function Xae(e,t,n){return t&&oA(e.prototype,t),n&&oA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function aA(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 Mr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?aA(Object(n),!0).forEach(function(r){Em(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Em(e,t,n){return t=TN(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TN(e){var t=Yae(e,"string");return Xc(t)=="symbol"?t:t+""}function Yae(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)}var AN=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=!!Vn(f,Ha);return d.reduce(function(v,w){var b=n[w],P=b.orientation,_=b.domain,x=b.padding,S=x===void 0?{}:x,E=b.mirror,O=b.reversed,A="".concat(P).concat(E?"Mirror":""),M,C,N,z,B;if(b.type==="number"&&(b.padding==="gap"||b.padding==="no-gap")){var R=_[1]-_[0],Y=1/0,H=b.categoricalDomain.sort(eV);if(H.forEach(function(pe,de){de>0&&(Y=Math.min((pe||0)-(H[de-1]||0),Y))}),Number.isFinite(Y)){var Z=Y/R,K=b.layout==="vertical"?r.height:r.width;if(b.padding==="gap"&&(M=Z*K/2),b.padding==="no-gap"){var q=Na(t.barCategoryGap,Z*K),D=Z*K/2;M=D-q-(D-q)/K*q}}}i==="xAxis"?C=[r.left+(S.left||0)+(M||0),r.left+r.width-(S.right||0)-(M||0)]:i==="yAxis"?C=u==="horizontal"?[r.top+r.height-(S.bottom||0),r.top+(S.top||0)]:[r.top+(S.top||0)+(M||0),r.top+r.height-(S.bottom||0)-(M||0)]:C=b.range,O&&(C=[C[1],C[0]]);var U=yte(b,o,m),V=U.scale,ee=U.realScaleType;V.domain(_).range(C),xte(V);var te=Ate(V,Mr(Mr({},b),{},{realScaleType:ee}));i==="xAxis"?(B=P==="top"&&!E||P==="bottom"&&E,N=r.left,z=h[A]-B*b.height):i==="yAxis"&&(B=P==="left"&&!E||P==="right"&&E,N=h[A]-B*b.width,z=r.top);var ae=Mr(Mr(Mr({},b),te),{},{realScaleType:ee,x:N,y:z,scale:V,width:i==="xAxis"?r.width:b.width,height:i==="yAxis"?r.height:b.height});return ae.bandSize=tp(ae,te),!b.hide&&i==="xAxis"?h[A]+=(B?-1:1)*ae.height:b.hide||(h[A]+=(B?-1:1)*ae.width),Mr(Mr({},v),{},Em({},w,ae))},{})},EN=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)}},Qae=function(t){var n=t.x1,r=t.y1,i=t.x2,o=t.y2;return EN({x:n,y:r},{x:i,y:o})},kN=function(){function e(t){qae(this,e),this.scale=t}return Xae(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)}}])}();Em(kN,"EPS",1e-4);var P1=function(t){var n=Object.keys(t).reduce(function(r,i){return Mr(Mr({},r),{},Em({},i,kN.create(t[i])))},{});return Mr(Mr({},n),{},{apply:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=o.bandAware,l=o.position;return yae(i,function(u,f){return n[f].apply(u,{bandAware:s,position:l})})},isInRange:function(i){return wN(i,function(o,s){return n[s].isInRange(o)})}})};function Jae(e){return(e%180+180)%180}var ese=function(t){var n=t.width,r=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=Jae(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)},tse=Ro,nse=df,rse=dm;function ise(e){return function(t,n,r){var i=Object(t);if(!nse(t)){var o=tse(n);t=rse(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 ose=ise,ase=yN;function sse(e){var t=ase(e),n=t%1;return t===t?n?t-n:t:0}var lse=sse,use=RC,cse=Ro,fse=lse,hse=Math.max;function dse(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:fse(n);return i<0&&(i=hse(r+i,0)),use(e,cse(t),i)}var pse=dse,mse=ose,vse=pse,gse=mse(vse),yse=gse;const xse=Ke(yse);var _se=r6(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),T1=j.createContext(void 0),MN=j.createContext(void 0),CN=j.createContext({}),jN=j.createContext(void 0),NN=j.createContext(0),$N=j.createContext(0),sA=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=_se(o);return I.createElement(O1.Provider,{value:r},I.createElement(T1.Provider,{value:i},I.createElement(CN.Provider,{value:o},I.createElement(MN.Provider,{value:d},I.createElement(jN.Provider,{value:s},I.createElement(NN.Provider,{value:f},I.createElement($N.Provider,{value:u},l)))))))},bse=function(){return j.useContext(jN)},LN=function(t){var n=j.useContext(O1);n==null&&La();var r=n[t];return r==null&&La(),r},wse=function(){var t=j.useContext(O1);return mo(t)},Sse=function(){var t=j.useContext(T1),n=xse(t,function(r){return wN(r.domain,Number.isFinite)});return n||mo(t)},IN=function(t){var n=j.useContext(T1);n==null&&La();var r=n[t];return r==null&&La(),r},Pse=function(){var t=j.useContext(MN);return t},Ose=function(){return j.useContext(CN)},A1=function(){return j.useContext($N)},E1=function(){return j.useContext(NN)};function ul(e){"@babel/helpers - typeof";return ul=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ul(e)}function Tse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ase(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,RN(r.key),r)}}function Ese(e,t,n){return t&&Ase(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function kse(e,t,n){return t=vp(t),Mse(e,DN()?Reflect.construct(t,n||[],vp(e).constructor):t.apply(e,n))}function Mse(e,t){if(t&&(ul(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Cse(e)}function Cse(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function DN(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(DN=function(){return!!e})()}function vp(e){return vp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},vp(e)}function jse(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&&T0(e,t)}function T0(e,t){return T0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},T0(e,t)}function lA(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 uA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lA(Object(n),!0).forEach(function(r){k1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function k1(e,t,n){return t=RN(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RN(e){var t=Nse(e,"string");return ul(t)=="symbol"?t:t+""}function Nse(e,t){if(ul(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ul(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function $se(e,t){return Rse(e)||Dse(e,t)||Ise(e,t)||Lse()}function Lse(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
414
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ise(e,t){if(e){if(typeof e=="string")return cA(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 cA(e,t)}}function cA(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 Dse(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 Rse(e){if(Array.isArray(e))return e}function A0(){return A0=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},A0.apply(this,arguments)}var zse=function(t,n){var r;return I.isValidElement(t)?r=I.cloneElement(t,n):Pe(t)?r=t(n):r=I.createElement("line",A0({},n,{className:"recharts-reference-line-line"})),r},Bse=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 w=f.y,b=t.y.apply(w,{position:s});if(oi(f,"discard")&&!t.y.isInRange(b))return null;var P=[{x:d+m,y:b},{x:d,y:b}];return u==="left"?P.reverse():P}if(n){var _=f.x,x=t.x.apply(_,{position:s});if(oi(f,"discard")&&!t.x.isInRange(x))return null;var S=[{x,y:h+v},{x,y:h}];return l==="top"?S.reverse():S}if(i){var E=f.segment,O=E.map(function(A){return t.apply(A,{position:s})});return oi(f,"discard")&&cae(O,function(A){return!t.isInRange(A)})?null:O}return null};function Fse(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=bse(),d=LN(i),h=IN(o),m=Pse();if(!f||!m)return null;ji(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var v=P1({x:d.scale,y:h.scale}),w=$t(t),b=$t(n),P=r&&r.length===2,_=Bse(v,w,b,P,m,e.position,d.orientation,h.orientation,e);if(!_)return null;var x=$se(_,2),S=x[0],E=S.x,O=S.y,A=x[1],M=A.x,C=A.y,N=oi(e,"hidden")?"url(#".concat(f,")"):void 0,z=uA(uA({clipPath:N},ke(e,!0)),{},{x1:E,y1:O,x2:M,y2:C});return I.createElement(dt,{className:Ie("recharts-reference-line",l)},zse(s,z),sn.renderCallByParent(e,Qae({x1:E,y1:O,x2:M,y2:C})))}var M1=function(e){function t(){return Tse(this,t),kse(this,t,arguments)}return jse(t,e),Ese(t,[{key:"render",value:function(){return I.createElement(Fse,this.props)}}])}(I.Component);k1(M1,"displayName","ReferenceLine");k1(M1,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function E0(){return E0=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},E0.apply(this,arguments)}function cl(e){"@babel/helpers - typeof";return cl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cl(e)}function fA(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 hA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fA(Object(n),!0).forEach(function(r){km(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fA(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,BN(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=gp(t),Gse(e,zN()?Reflect.construct(t,n||[],gp(e).constructor):t.apply(e,n))}function Gse(e,t){if(t&&(cl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Zse(e)}function Zse(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zN(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(zN=function(){return!!e})()}function gp(e){return gp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},gp(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&&k0(e,t)}function k0(e,t){return k0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},k0(e,t)}function km(e,t,n){return t=BN(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BN(e){var t=qse(e,"string");return cl(t)=="symbol"?t:t+""}function qse(e,t){if(cl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(cl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Xse=function(t){var n=t.x,r=t.y,i=t.xAxis,o=t.yAxis,s=P1({x:i.scale,y:o.scale}),l=s.apply({x:n,y:r},{bandAware:!0});return oi(t,"discard")&&!s.isInRange(l)?null:l},Ta=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.x,o=r.y,s=r.r,l=r.alwaysShow,u=r.clipPathId,f=$t(i),d=$t(o);if(ji(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!f||!d)return null;var h=Xse(this.props);if(!h)return null;var m=h.x,v=h.y,w=this.props,b=w.shape,P=w.className,_=oi(this.props,"hidden")?"url(#".concat(u,")"):void 0,x=hA(hA({clipPath:_},ke(this.props,!0)),{},{cx:m,cy:v});return I.createElement(dt,{className:Ie("recharts-reference-dot",P)},t.renderDot(b,x),sn.renderCallByParent(this.props,{x:m-s,y:v-s,width:2*s,height:2*s}))}}])}(I.Component);km(Ta,"displayName","ReferenceDot");km(Ta,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});km(Ta,"renderDot",function(e,t){var n;return I.isValidElement(e)?n=I.cloneElement(e,t):Pe(e)?n=e(t):n=I.createElement(S1,E0({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function M0(){return M0=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},M0.apply(this,arguments)}function fl(e){"@babel/helpers - typeof";return fl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fl(e)}function dA(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 pA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dA(Object(n),!0).forEach(function(r){Mm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Yse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qse(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,VN(r.key),r)}}function Jse(e,t,n){return t&&Qse(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ele(e,t,n){return t=yp(t),tle(e,FN()?Reflect.construct(t,n||[],yp(e).constructor):t.apply(e,n))}function tle(e,t){if(t&&(fl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nle(e)}function nle(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function FN(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(FN=function(){return!!e})()}function yp(e){return yp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},yp(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&&C0(e,t)}function C0(e,t){return C0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},C0(e,t)}function Mm(e,t,n){return t=VN(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VN(e){var t=ile(e,"string");return fl(t)=="symbol"?t:t+""}function ile(e,t){if(fl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(fl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ole=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=P1({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},w={x:n?m.x.apply(l,{position:"end"}):m.x.rangeMax,y:i?m.y.apply(f,{position:"end"}):m.y.rangeMax};return oi(o,"discard")&&(!m.isInRange(v)||!m.isInRange(w))?null:EN(v,w)},Cm=function(e){function t(){return Yse(this,t),ele(this,t,arguments)}return rle(t,e),Jse(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;ji(f===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=$t(i),m=$t(o),v=$t(s),w=$t(l),b=this.props.shape;if(!h&&!m&&!v&&!w&&!b)return null;var P=ole(h,m,v,w,this.props);if(!P&&!b)return null;var _=oi(this.props,"hidden")?"url(#".concat(d,")"):void 0;return I.createElement(dt,{className:Ie("recharts-reference-area",u)},t.renderRect(b,pA(pA({clipPath:_},ke(this.props,!0)),P)),sn.renderCallByParent(this.props,P))}}])}(I.Component);Mm(Cm,"displayName","ReferenceArea");Mm(Cm,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});Mm(Cm,"renderRect",function(e,t){var n;return I.isValidElement(e)?n=I.cloneElement(e,t):Pe(e)?n=e(t):n=I.createElement(w1,M0({},t,{className:"recharts-reference-area-rect"})),n});function UN(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 ale(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return ese(r,n)}function sle(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 xp(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 lle(e,t){return UN(e,t+1)}function ule(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 w=r==null?void 0:r[u];if(w===void 0)return{v:UN(r,f)};var b=u,P,_=function(){return P===void 0&&(P=n(w,b)),P},x=w.coordinate,S=u===0||xp(e,x,_,d,l);S||(u=0,d=s,f+=1),S&&(d=x+e*(_()/2+i),u+=f)},m;f<=o.length;)if(m=h(),m)return m.v;return[]}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 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 on(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){cle(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 cle(e,t,n){return t=fle(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fle(e){var t=hle(e,"string");return Yc(t)=="symbol"?t:t+""}function hle(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)}function dle(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],w,b=function(){return w===void 0&&(w=n(v,m)),w};if(m===s-1){var P=e*(v.coordinate+e*b()/2-u);o[m]=v=on(on({},v),{},{tickCoord:P>0?v.coordinate-P*e:v.coordinate})}else o[m]=v=on(on({},v),{},{tickCoord:v.coordinate});var _=xp(e,v.tickCoord,b,l,u);_&&(u=v.tickCoord-e*(b()/2+i),o[m]=on(on({},v),{},{isShow:!0}))},d=s-1;d>=0;d--)f(d);return o}function ple(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=on(on({},d),{},{tickCoord:m>0?d.coordinate-m*e:d.coordinate});var v=xp(e,d.tickCoord,function(){return h},u,f);v&&(f=d.tickCoord-e*(h/2+i),s[l-1]=on(on({},d),{},{isShow:!0}))}for(var w=o?l-1:l,b=function(x){var S=s[x],E,O=function(){return E===void 0&&(E=n(S,x)),E};if(x===0){var A=e*(S.coordinate-e*O()/2-u);s[x]=S=on(on({},S),{},{tickCoord:A<0?S.coordinate-A*e:S.coordinate})}else s[x]=S=on(on({},S),{},{tickCoord:S.coordinate});var M=xp(e,S.tickCoord,O,u,f);M&&(u=S.tickCoord+e*(O()/2+i),s[x]=on(on({},S),{},{isShow:!0}))},P=0;P<w;P++)b(P);return s}function C1(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(oe(u)||$l.isSsr)return lle(i,typeof u=="number"&&oe(u)?u:0);var m=[],v=l==="top"||l==="bottom"?"width":"height",w=d&&v==="width"?Hu(d,{fontSize:t,letterSpacing:n}):{width:0,height:0},b=function(S,E){var O=Pe(f)?f(S.value,E):S.value;return v==="width"?ale(Hu(O,{fontSize:t,letterSpacing:n}),w,h):Hu(O,{fontSize:t,letterSpacing:n})[v]},P=i.length>=2?Nr(i[1].coordinate-i[0].coordinate):1,_=sle(o,P,v);return u==="equidistantPreserveStart"?ule(P,_,b,i,s):(u==="preserveStart"||u==="preserveStartEnd"?m=ple(P,_,b,i,s,u==="preserveStartEnd"):m=dle(P,_,b,i,s),m.filter(function(x){return x.isShow}))}var mle=["viewBox"],vle=["viewBox"],gle=["ticks"];function hl(e){"@babel/helpers - typeof";return hl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hl(e)}function Es(){return Es=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},Es.apply(this,arguments)}function vA(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 Mt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vA(Object(n),!0).forEach(function(r){j1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ng(e,t){if(e==null)return{};var n=yle(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 yle(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 xle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gA(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,HN(r.key),r)}}function _le(e,t,n){return t&&gA(e.prototype,t),n&&gA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ble(e,t,n){return t=_p(t),wle(e,WN()?Reflect.construct(t,n||[],_p(e).constructor):t.apply(e,n))}function wle(e,t){if(t&&(hl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Sle(e)}function Sle(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function WN(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(WN=function(){return!!e})()}function _p(e){return _p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_p(e)}function Ple(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&&j0(e,t)}function j0(e,t){return j0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},j0(e,t)}function j1(e,t,n){return t=HN(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HN(e){var t=Ole(e,"string");return hl(t)=="symbol"?t:t+""}function Ole(e,t){if(hl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(hl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Rl=function(e){function t(n){var r;return xle(this,t),r=ble(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return Ple(t,e),_le(t,[{key:"shouldComponentUpdate",value:function(r,i){var o=r.viewBox,s=ng(r,mle),l=this.props,u=l.viewBox,f=ng(l,vle);return!Is(o,u)||!Is(s,f)||!Is(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,w,b,P,_,x,S=h?-1:1,E=r.tickSize||d,O=oe(r.tickCoord)?r.tickCoord:r.coordinate;switch(f){case"top":v=w=r.coordinate,P=s+ +!h*u,b=P-S*E,x=b-S*m,_=O;break;case"left":b=P=r.coordinate,w=o+ +!h*l,v=w-S*E,_=v-S*m,x=O;break;case"right":b=P=r.coordinate,w=o+ +h*l,v=w+S*E,_=v+S*m,x=O;break;default:v=w=r.coordinate,P=s+ +h*u,b=P+S*E,x=b+S*m,_=O;break}return{line:{x1:v,y1:b,x2:w,y2:P},tick:{x:_,y:x}}}},{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=Mt(Mt(Mt({},ke(this.props,!1)),ke(d,!1)),{},{fill:"none"});if(u==="top"||u==="bottom"){var m=+(u==="top"&&!f||u==="bottom"&&f);h=Mt(Mt({},h),{},{x1:i,y1:o+m*l,x2:i+s,y2:o+m*l})}else{var v=+(u==="left"&&!f||u==="right"&&f);h=Mt(Mt({},h),{},{x1:i+v*s,y1:o,x2:i+v*s,y2:o+l})}return I.createElement("line",Es({},h,{className:Ie("recharts-cartesian-axis-line",mr(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=C1(Mt(Mt({},this.props),{},{ticks:r}),i,o),w=this.getTickTextAnchor(),b=this.getTickVerticalAnchor(),P=ke(this.props,!1),_=ke(d,!1),x=Mt(Mt({},P),{},{fill:"none"},ke(u,!1)),S=v.map(function(E,O){var A=s.getTickLineCoord(E),M=A.line,C=A.tick,N=Mt(Mt(Mt(Mt({textAnchor:w,verticalAnchor:b},P),{},{stroke:"none",fill:f},_),C),{},{index:O,payload:E,visibleTicksCount:v.length,tickFormatter:h});return I.createElement(dt,Es({className:"recharts-cartesian-axis-tick",key:"tick-".concat(E.value,"-").concat(E.coordinate,"-").concat(E.tickCoord)},Td(s.props,E,O)),u&&I.createElement("line",Es({},x,M,{className:Ie("recharts-cartesian-axis-tick-line",mr(u,"className"))})),d&&t.renderTickItem(d,N,"".concat(Pe(h)?h(E.value,O):E.value).concat(m||"")))});return I.createElement("g",{className:"recharts-cartesian-axis-ticks"},S)}},{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=ng(h,gle),w=m;return Pe(u)&&(w=m&&m.length>0?u(this.props):u(v)),s<=0||l<=0||!w||!w.length?null:I.createElement(dt,{className:Ie("recharts-cartesian-axis",f),ref:function(P){r.layerReference=P}},o&&this.renderAxisLine(),this.renderTicks(w,this.state.fontSize,this.state.letterSpacing),sn.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,i,o){var s,l=Ie(i.className,"recharts-cartesian-axis-tick-value");return I.isValidElement(r)?s=I.cloneElement(r,Mt(Mt({},i),{},{className:l})):Pe(r)?s=r(Mt(Mt({},i),{},{className:l})):s=I.createElement(Bd,Es({},i,{className:"recharts-cartesian-axis-tick-value"}),o),s}}])}(j.Component);j1(Rl,"displayName","CartesianAxis");j1(Rl,"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 Tle=["x1","y1","x2","y2","key"],Ale=["offset"];function Ia(e){"@babel/helpers - typeof";return Ia=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},Ia(e)}function yA(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 ln(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yA(Object(n),!0).forEach(function(r){Ele(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ele(e,t,n){return t=kle(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kle(e){var t=Mle(e,"string");return Ia(t)=="symbol"?t:t+""}function Mle(e,t){if(Ia(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ia(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(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 xA(e,t){if(e==null)return{};var n=Cle(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 Cle(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 jle=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 I.createElement("rect",{x:i,y:o,ry:u,width:s,height:l,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function GN(e,t){var n;if(I.isValidElement(e))n=I.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=xA(t,Tle),f=ke(u,!1);f.offset;var d=xA(f,Ale);n=I.createElement("line",xa({},d,{x1:r,y1:i,x2:o,y2:s,fill:"none",key:l}))}return n}function Nle(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=ln(ln({},e),{},{x1:t,y1:l,x2:t+n,y2:l,key:"line-".concat(u),index:u});return GN(i,f)});return I.createElement("g",{className:"recharts-cartesian-grid-horizontal"},s)}function $le(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=ln(ln({},e),{},{x1:l,y1:t,x2:l,y2:t+n,key:"line-".concat(u),index:u});return GN(i,f)});return I.createElement("g",{className:"recharts-cartesian-grid-vertical"},s)}function Lle(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 w=!d[v+1],b=w?i+s-m:d[v+1]-m;if(b<=0)return null;var P=v%t.length;return I.createElement("rect",{key:"react-".concat(v),y:m,x:r,height:b,width:o,stroke:"none",fill:t[P],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return I.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},h)}function Ile(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 w=!d[v+1],b=w?o+l-m:d[v+1]-m;if(b<=0)return null;var P=v%r.length;return I.createElement("rect",{key:"react-".concat(v),x:m,y:s,width:b,height:u,stroke:"none",fill:r[P],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return I.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},h)}var Dle=function(t,n){var r=t.xAxis,i=t.width,o=t.height,s=t.offset;return tN(C1(ln(ln(ln({},Rl.defaultProps),r),{},{ticks:Ai(r,!0),viewBox:{x:0,y:0,width:i,height:o}})),s.left,s.left+s.width,n)},Rle=function(t,n){var r=t.yAxis,i=t.width,o=t.height,s=t.offset;return tN(C1(ln(ln(ln({},Rl.defaultProps),r),{},{ticks:Ai(r,!0),viewBox:{x:0,y:0,width:i,height:o}})),s.top,s.top+s.height,n)},us={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function N0(e){var t,n,r,i,o,s,l=A1(),u=E1(),f=Ose(),d=ln(ln({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:us.stroke,fill:(n=e.fill)!==null&&n!==void 0?n:us.fill,horizontal:(r=e.horizontal)!==null&&r!==void 0?r:us.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:us.horizontalFill,vertical:(o=e.vertical)!==null&&o!==void 0?o:us.vertical,verticalFill:(s=e.verticalFill)!==null&&s!==void 0?s:us.verticalFill,x:oe(e.x)?e.x:f.left,y:oe(e.y)?e.y:f.top,width:oe(e.width)?e.width:f.width,height:oe(e.height)?e.height:f.height}),h=d.x,m=d.y,v=d.width,w=d.height,b=d.syncWithTicks,P=d.horizontalValues,_=d.verticalValues,x=wse(),S=Sse();if(!oe(v)||v<=0||!oe(w)||w<=0||!oe(h)||h!==+h||!oe(m)||m!==+m)return null;var E=d.verticalCoordinatesGenerator||Dle,O=d.horizontalCoordinatesGenerator||Rle,A=d.horizontalPoints,M=d.verticalPoints;if((!A||!A.length)&&Pe(O)){var C=P&&P.length,N=O({yAxis:S?ln(ln({},S),{},{ticks:C?P:S.ticks}):void 0,width:l,height:u,offset:f},C?!0:b);ji(Array.isArray(N),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Ia(N),"]")),Array.isArray(N)&&(A=N)}if((!M||!M.length)&&Pe(E)){var z=_&&_.length,B=E({xAxis:x?ln(ln({},x),{},{ticks:z?_:x.ticks}):void 0,width:l,height:u,offset:f},z?!0:b);ji(Array.isArray(B),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Ia(B),"]")),Array.isArray(B)&&(M=B)}return I.createElement("g",{className:"recharts-cartesian-grid"},I.createElement(jle,{fill:d.fill,fillOpacity:d.fillOpacity,x:d.x,y:d.y,width:d.width,height:d.height,ry:d.ry}),I.createElement(Nle,xa({},d,{offset:f,horizontalPoints:A,xAxis:x,yAxis:S})),I.createElement($le,xa({},d,{offset:f,verticalPoints:M,xAxis:x,yAxis:S})),I.createElement(Lle,xa({},d,{horizontalPoints:A})),I.createElement(Ile,xa({},d,{verticalPoints:M})))}N0.displayName="CartesianGrid";var zle=["layout","type","stroke","connectNulls","isRange","ref"],Ble=["key"],ZN;function dl(e){"@babel/helpers - typeof";return dl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dl(e)}function KN(e,t){if(e==null)return{};var n=Fle(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 Fle(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 _a(){return _a=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},_a.apply(this,arguments)}function _A(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 lo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_A(Object(n),!0).forEach(function(r){Qr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_A(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Vle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bA(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,XN(r.key),r)}}function Ule(e,t,n){return t&&bA(e.prototype,t),n&&bA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Wle(e,t,n){return t=bp(t),Hle(e,qN()?Reflect.construct(t,n||[],bp(e).constructor):t.apply(e,n))}function Hle(e,t){if(t&&(dl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Gle(e)}function Gle(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qN(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(qN=function(){return!!e})()}function bp(e){return bp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},bp(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&&$0(e,t)}function $0(e,t){return $0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},$0(e,t)}function Qr(e,t,n){return t=XN(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XN(e){var t=Kle(e,"string");return dl(t)=="symbol"?t:t+""}function Kle(e,t){if(dl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(dl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Vo=function(e){function t(){var n;Vle(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=Wle(this,t,[].concat(i)),Qr(n,"state",{isAnimationFinished:!0}),Qr(n,"id",hf("recharts-area-")),Qr(n,"handleAnimationEnd",function(){var s=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),Pe(s)&&s()}),Qr(n,"handleAnimationStart",function(){var s=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),Pe(s)&&s()}),n}return Zle(t,e),Ule(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=ke(this.props,!1),v=ke(f,!0),w=d.map(function(P,_){var x=lo(lo(lo({key:"dot-".concat(_),r:3},m),v),{},{index:_,cx:P.x,cy:P.y,dataKey:h,value:P.value,payload:P.payload,points:d});return t.renderDotItem(f,x)}),b={clipPath:r?"url(#clipPath-".concat(i?"":"dots-").concat(o,")"):null};return I.createElement(dt,_a({className:"recharts-area-dots"},b),w)}},{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=yo(s.map(function(m){return m.y||0}));return oe(o)&&typeof o=="number"?h=Math.max(o,h):o&&Array.isArray(o)&&o.length&&(h=Math.max(yo(o.map(function(m){return m.y||0})),h)),oe(h)?I.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=yo(s.map(function(m){return m.x||0}));return oe(o)&&typeof o=="number"?h=Math.max(o,h):o&&Array.isArray(o)&&o.length&&(h=Math.max(yo(o.map(function(m){return m.x||0})),h)),oe(h)?I.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=KN(l,zle);return I.createElement(dt,{clipPath:o?"url(#clipPath-".concat(s,")"):null},I.createElement(Ku,_a({},ke(v,!0),{points:r,connectNulls:h,type:f,baseLine:i,layout:u,stroke:"none",className:"recharts-area-area"})),d!=="none"&&I.createElement(Ku,_a({},ke(this.props,!1),{className:"recharts-area-curve",layout:u,type:f,connectNulls:h,fill:"none",points:r})),d!=="none"&&m&&I.createElement(Ku,_a({},ke(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,w=this.state,b=w.prevPoints,P=w.prevBaseLine;return I.createElement(Vi,{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(_){var x=_.t;if(b){var S=b.length/l.length,E=l.map(function(C,N){var z=Math.floor(N*S);if(b[z]){var B=b[z],R=fr(B.x,C.x),Y=fr(B.y,C.y);return lo(lo({},C),{},{x:R(x),y:Y(x)})}return C}),O;if(oe(u)&&typeof u=="number"){var A=fr(P,u);O=A(x)}else if(Ce(u)||Ml(u)){var M=fr(P,0);O=M(x)}else O=u.map(function(C,N){var z=Math.floor(N*S);if(P[z]){var B=P[z],R=fr(B.x,C.x),Y=fr(B.y,C.y);return lo(lo({},C),{},{x:R(x),y:Y(x)})}return C});return o.renderAreaStatically(E,O,r,i)}return I.createElement(dt,null,I.createElement("defs",null,I.createElement("clipPath",{id:"animationClipPath-".concat(i)},o.renderClipRect(x))),I.createElement(dt,{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||!Mc(d,s)||!Mc(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,w=i.height,b=i.isAnimationActive,P=i.id;if(o||!l||!l.length)return null;var _=this.state.isAnimationFinished,x=l.length===1,S=Ie("recharts-area",u),E=h&&h.allowDataOverflow,O=m&&m.allowDataOverflow,A=E||O,M=Ce(P)?this.id:P,C=(r=ke(s,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},N=C.r,z=N===void 0?3:N,B=C.strokeWidth,R=B===void 0?2:B,Y=uV(s)?s:{},H=Y.clipDot,Z=H===void 0?!0:H,K=z*2+R;return I.createElement(dt,{className:S},E||O?I.createElement("defs",null,I.createElement("clipPath",{id:"clipPath-".concat(M)},I.createElement("rect",{x:E?d:d-v/2,y:O?f:f-w/2,width:E?v:v*2,height:O?w:w*2})),!Z&&I.createElement("clipPath",{id:"clipPath-dots-".concat(M)},I.createElement("rect",{x:d-K/2,y:f-K/2,width:v+K,height:w+K}))):null,x?null:this.renderArea(A,M),(s||x)&&this.renderDots(A,Z,M),(!b||_)&&ii.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);ZN=Vo;Qr(Vo,"displayName","Area");Qr(Vo,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!$l.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});Qr(Vo,"getBaseValue",function(e,t,n,r){var i=e.layout,o=e.baseValue,s=t.props.baseValue,l=s??o;if(oe(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]});Qr(Vo,"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,w=f&&f.length,b=ZN.getBaseValue(t,n,r,i),P=v==="horizontal",_=!1,x=h.map(function(E,O){var A;w?A=f[d+O]:(A=qn(E,u),Array.isArray(A)?_=!0:A=[b,A]);var M=A[1]==null||w&&qn(E,u)==null;return P?{x:oT({axis:r,ticks:o,bandSize:l,entry:E,index:O}),y:M?null:i.scale(A[1]),value:A,payload:E}:{x:M?null:r.scale(A[1]),y:oT({axis:i,ticks:s,bandSize:l,entry:E,index:O}),value:A,payload:E}}),S;return w||_?S=x.map(function(E){var O=Array.isArray(E.value)?E.value[0]:null;return P?{x:E.x,y:O!=null&&E.y!=null?i.scale(O):null}:{x:O!=null?r.scale(O):null,y:E.y}}):S=P?i.scale(b):r.scale(b),lo({points:x,baseLine:S,layout:v,isRange:_},m)});Qr(Vo,"renderDotItem",function(e,t){var n;if(I.isValidElement(e))n=I.cloneElement(e,t);else if(Pe(e))n=e(t);else{var r=Ie("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,o=KN(t,Ble);n=I.createElement(S1,_a({},o,{key:i,className:r}))}return n});function pl(e){"@babel/helpers - typeof";return pl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pl(e)}function 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,JN(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=wp(t),Jle(e,YN()?Reflect.construct(t,n||[],wp(e).constructor):t.apply(e,n))}function Jle(e,t){if(t&&(pl(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 YN(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(YN=function(){return!!e})()}function wp(e){return wp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},wp(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&&L0(e,t)}function L0(e,t){return L0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},L0(e,t)}function QN(e,t,n){return t=JN(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JN(e){var t=nue(e,"string");return pl(t)=="symbol"?t:t+""}function nue(e,t){if(pl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(pl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(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 rue(e){var t=e.xAxisId,n=A1(),r=E1(),i=LN(t);return i==null?null:j.createElement(Rl,I0({},i,{className:Ie("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(s){return Ai(s,!0)}}))}var ml=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);QN(ml,"displayName","XAxis");QN(ml,"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 vl(e){"@babel/helpers - typeof";return vl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vl(e)}function iue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oue(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 aue(e,t,n){return t&&oue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function sue(e,t,n){return t=Sp(t),lue(e,e$()?Reflect.construct(t,n||[],Sp(e).constructor):t.apply(e,n))}function lue(e,t){if(t&&(vl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return uue(e)}function uue(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 Sp(e){return Sp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Sp(e)}function cue(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&&D0(e,t)}function D0(e,t){return D0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},D0(e,t)}function t$(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=fue(e,"string");return vl(t)=="symbol"?t:t+""}function fue(e,t){if(vl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(vl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function R0(){return R0=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},R0.apply(this,arguments)}var hue=function(t){var n=t.yAxisId,r=A1(),i=E1(),o=IN(n);return o==null?null:j.createElement(Rl,R0({},o,{className:Ie("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:r,height:i},ticksGenerator:function(l){return Ai(l,!0)}}))},gl=function(e){function t(){return iue(this,t),sue(this,t,arguments)}return cue(t,e),aue(t,[{key:"render",value:function(){return j.createElement(hue,this.props)}}])}(j.Component);t$(gl,"displayName","YAxis");t$(gl,"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 wA(e){return vue(e)||mue(e)||pue(e)||due()}function due(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
415
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pue(e,t){if(e){if(typeof e=="string")return z0(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 z0(e,t)}}function mue(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function vue(e){if(Array.isArray(e))return z0(e)}function z0(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 B0=function(t,n,r,i,o){var s=Ir(t,M1),l=Ir(t,Ta),u=[].concat(wA(s),wA(l)),f=Ir(t,Cm),d="".concat(i,"Id"),h=i[0],m=n;if(u.length&&(m=u.reduce(function(b,P){if(P.props[d]===r&&oi(P.props,"extendDomain")&&oe(P.props[h])){var _=P.props[h];return[Math.min(b[0],_),Math.max(b[1],_)]}return b},m)),f.length){var v="".concat(h,"1"),w="".concat(h,"2");m=f.reduce(function(b,P){if(P.props[d]===r&&oi(P.props,"extendDomain")&&oe(P.props[v])&&oe(P.props[w])){var _=P.props[v],x=P.props[w];return[Math.min(b[0],_,x),Math.max(b[1],_,x)]}return b},m)}return o&&o.length&&(m=o.reduce(function(b,P){return oe(P)?[Math.min(b[0],P),Math.max(b[1],P)]:b},m)),m},r$={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),w=n?n+f:f;return u._events[w]?u._events[w].fn?u._events[w]=[u._events[w],v]:u._events[w].push(v):(u._events[w]=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,w=new Array(v);m<v;m++)w[m]=h[m].fn;return w},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,w){var b=n?n+f:f;if(!this._events[b])return!1;var P=this._events[b],_=arguments.length,x,S;if(P.fn){switch(P.once&&this.removeListener(f,P.fn,void 0,!0),_){case 1:return P.fn.call(P.context),!0;case 2:return P.fn.call(P.context,d),!0;case 3:return P.fn.call(P.context,d,h),!0;case 4:return P.fn.call(P.context,d,h,m),!0;case 5:return P.fn.call(P.context,d,h,m,v),!0;case 6:return P.fn.call(P.context,d,h,m,v,w),!0}for(S=1,x=new Array(_-1);S<_;S++)x[S-1]=arguments[S];P.fn.apply(P.context,x)}else{var E=P.length,O;for(S=0;S<E;S++)switch(P[S].once&&this.removeListener(f,P[S].fn,void 0,!0),_){case 1:P[S].fn.call(P[S].context);break;case 2:P[S].fn.call(P[S].context,d);break;case 3:P[S].fn.call(P[S].context,d,h);break;case 4:P[S].fn.call(P[S].context,d,h,m);break;default:if(!x)for(O=1,x=new Array(_-1);O<_;O++)x[O-1]=arguments[O];P[S].fn.apply(P[S].context,x)}}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 w=this._events[v];if(w.fn)w.fn===d&&(!m||w.once)&&(!h||w.context===h)&&s(this,v);else{for(var b=0,P=[],_=w.length;b<_;b++)(w[b].fn!==d||m&&!w[b].once||h&&w[b].context!==h)&&P.push(w[b]);P.length?this._events[v]=P.length===1?P[0]:P: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})(r$);var gue=r$.exports;const yue=Ke(gue);var rg=new yue,ig="recharts.syncMouseEvents";function Qc(e){"@babel/helpers - typeof";return Qc=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},Qc(e)}function xue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _ue(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,i$(r.key),r)}}function bue(e,t,n){return t&&_ue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function og(e,t,n){return t=i$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i$(e){var t=wue(e,"string");return Qc(t)=="symbol"?t:t+""}function wue(e,t){if(Qc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Qc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Sue=function(){function e(){xue(this,e),og(this,"activeIndex",0),og(this,"coordinateList",[]),og(this,"layout","horizontal")}return bue(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 Pue(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&&oe(r)&&oe(i))return!0}return!1}function Oue(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 o$(e){var t=e.cx,n=e.cy,r=e.radius,i=e.startAngle,o=e.endAngle,s=Kt(t,n,r,i),l=Kt(t,n,r,o);return{points:[s,l],cx:t,cy:n,radius:r,startAngle:i,endAngle:o}}function Tue(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=Kt(l,u,f,h),v=Kt(l,u,d,h);r=m.x,i=m.y,o=v.x,s=v.y}else return o$(t);return[{x:r,y:i},{x:o,y:s}]}function Jc(e){"@babel/helpers - typeof";return Jc=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},Jc(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 Mh(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){Aue(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 Aue(e,t,n){return t=Eue(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Eue(e){var t=kue(e,"string");return Jc(t)=="symbol"?t:t+""}function kue(e,t){if(Jc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Jc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Mue(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 w,b=Ku;if(m==="ScatterChart")w=s,b=$ie;else if(m==="BarChart")w=Oue(h,s,u,d),b=w1;else if(h==="radial"){var P=o$(s),_=P.cx,x=P.cy,S=P.radius,E=P.startAngle,O=P.endAngle;w={cx:_,cy:x,startAngle:E,endAngle:O,innerRadius:S,outerRadius:S},b=aN}else w={points:Tue(h,s,u)},b=Ku;var A=Mh(Mh(Mh(Mh({stroke:"#ccc",pointerEvents:"none"},u),w),ke(v,!1)),{},{payload:l,payloadIndex:f,className:Ie("recharts-tooltip-cursor",v.className)});return j.isValidElement(v)?j.cloneElement(v,A):j.createElement(b,A)}var Cue=["item"],jue=["children","className","width","height","style","compact","title","desc"];function yl(e){"@babel/helpers - typeof";return yl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yl(e)}function ks(){return ks=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},ks.apply(this,arguments)}function PA(e,t){return Lue(e)||$ue(e,t)||s$(e,t)||Nue()}function Nue(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
416
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $ue(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 Lue(e){if(Array.isArray(e))return e}function OA(e,t){if(e==null)return{};var n=Iue(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 Iue(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 Due(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rue(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,l$(r.key),r)}}function zue(e,t,n){return t&&Rue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Bue(e,t,n){return t=Pp(t),Fue(e,a$()?Reflect.construct(t,n||[],Pp(e).constructor):t.apply(e,n))}function Fue(e,t){if(t&&(yl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Vue(e)}function Vue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(a$=function(){return!!e})()}function Pp(e){return Pp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Pp(e)}function Uue(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 xl(e){return Gue(e)||Hue(e)||s$(e)||Wue()}function Wue(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
417
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function s$(e,t){if(e){if(typeof e=="string")return V0(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 V0(e,t)}}function Hue(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Gue(e){if(Array.isArray(e))return V0(e)}function V0(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 TA(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?TA(Object(n),!0).forEach(function(r){ve(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ve(e,t,n){return t=l$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l$(e){var t=Zue(e,"string");return yl(t)=="symbol"?t:t+""}function Zue(e,t){if(yl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(yl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Kue={xAxis:["bottom","top"],yAxis:["left","right"]},que={width:"100%",height:"100%"},u$={x:0,y:0};function Ch(e){return e}var Xue=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},Yue=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),Kt(i.cx,i.cy,l,s)),{},{angle:s,radius:l})}var u=o.coordinate,f=i.angle;return X(X(X({},i),Kt(i.cx,i.cy,u,f)),{},{angle:f,radius:u})}return u$},jm=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(xl(l),xl(f)):l},[]);return s.length>0?s:t&&t.length&&oe(i)&&oe(o)?t.slice(i,o+1):[]};function c$(e){return e==="number"?[0,"auto"]:void 0}var U0=function(t,n,r,i){var o=t.graphicalItems,s=t.tooltipAxis,l=jm(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=Pd(v,s.dataKey,i)}else m=h&&h[r]||l[r];return m?[].concat(xl(u),[rN(f,m)]):u},[])},AA=function(t,n,r,i){var o=i||{x:t.chartX,y:t.chartY},s=Xue(o,r),l=t.orderedTooltipTicks,u=t.tooltipAxis,f=t.tooltipTicks,d=hte(s,l,f,u);if(d>=0&&f){var h=f[d]&&f[d].value,m=U0(t,n,d,h),v=Yue(r,l,d,o);return{activeTooltipIndex:d,activeLabel:h,activePayload:m,activeCoordinate:v}}return null},Que=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=eN(d,o);return r.reduce(function(w,b){var P,_=b.type.defaultProps!==void 0?X(X({},b.type.defaultProps),b.props):b.props,x=_.type,S=_.dataKey,E=_.allowDataOverflow,O=_.allowDuplicatedCategory,A=_.scale,M=_.ticks,C=_.includeHidden,N=_[s];if(w[N])return w;var z=jm(t.data,{graphicalItems:i.filter(function(te){var ae,pe=s in te.props?te.props[s]:(ae=te.type.defaultProps)===null||ae===void 0?void 0:ae[s];return pe===N}),dataStartIndex:u,dataEndIndex:f}),B=z.length,R,Y,H;Pue(_.domain,E,x)&&(R=s0(_.domain,null,E),v&&(x==="number"||A!=="auto")&&(H=Zu(z,S,"category")));var Z=c$(x);if(!R||R.length===0){var K,q=(K=_.domain)!==null&&K!==void 0?K:Z;if(S){if(R=Zu(z,S,x),x==="category"&&v){var D=J6(R);O&&D?(Y=R,R=fp(0,B)):O||(R=uT(q,R,b).reduce(function(te,ae){return te.indexOf(ae)>=0?te:[].concat(xl(te),[ae])},[]))}else if(x==="category")O?R=R.filter(function(te){return te!==""&&!Ce(te)}):R=uT(q,R,b).reduce(function(te,ae){return te.indexOf(ae)>=0||ae===""||Ce(ae)?te:[].concat(xl(te),[ae])},[]);else if(x==="number"){var U=gte(z,i.filter(function(te){var ae,pe,de=s in te.props?te.props[s]:(ae=te.type.defaultProps)===null||ae===void 0?void 0:ae[s],Q="hide"in te.props?te.props.hide:(pe=te.type.defaultProps)===null||pe===void 0?void 0:pe.hide;return de===N&&(C||!Q)}),S,o,d);U&&(R=U)}v&&(x==="number"||A!=="auto")&&(H=Zu(z,S,"category"))}else v?R=fp(0,B):l&&l[N]&&l[N].hasStack&&x==="number"?R=m==="expand"?[0,1]:nN(l[N].stackGroups,u,f):R=Jj(z,i.filter(function(te){var ae=s in te.props?te.props[s]:te.type.defaultProps[s],pe="hide"in te.props?te.props.hide:te.type.defaultProps.hide;return ae===N&&(C||!pe)}),x,d,!0);if(x==="number")R=B0(h,R,N,o,M),q&&(R=s0(q,R,E));else if(x==="category"&&q){var V=q,ee=R.every(function(te){return V.indexOf(te)>=0});ee&&(R=V)}}return X(X({},w),{},ve({},N,X(X({},_),{},{axisType:o,domain:R,categoricalDomain:H,duplicateDomain:Y,originalDomain:(P=_.domain)!==null&&P!==void 0?P:Z,isCategorical:v,layout:d})))},{})},Jue=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=jm(t.data,{graphicalItems:r,dataStartIndex:u,dataEndIndex:f}),v=m.length,w=eN(d,o),b=-1;return r.reduce(function(P,_){var x=_.type.defaultProps!==void 0?X(X({},_.type.defaultProps),_.props):_.props,S=x[s],E=c$("number");if(!P[S]){b++;var O;return w?O=fp(0,v):l&&l[S]&&l[S].hasStack?(O=nN(l[S].stackGroups,u,f),O=B0(h,O,S,o)):(O=s0(E,Jj(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],z="hide"in A.props?A.props.hide:(C=A.type.defaultProps)===null||C===void 0?void 0:C.hide;return N===S&&!z}),"number",d),i.defaultProps.allowDataOverflow),O=B0(h,O,S,o)),X(X({},P),{},ve({},S,X(X({axisType:o},i.defaultProps),{},{hide:!0,orientation:mr(Kue,"".concat(o,".").concat(b%2),null),domain:O,originalDomain:E,isCategorical:w,layout:d})))}return P},{})},ece=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=Ir(d,o),v={};return m&&m.length?v=Que(t,{axes:m,graphicalItems:s,axisType:i,axisIdKey:h,stackGroups:l,dataStartIndex:u,dataEndIndex:f}):s&&s.length&&(v=Jue(t,{Axis:o,graphicalItems:s,axisType:i,axisIdKey:h,stackGroups:l,dataStartIndex:u,dataEndIndex:f})),v},tce=function(t){var n=mo(t),r=Ai(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:K_(r,function(i){return i.coordinate}),tooltipAxis:n,tooltipAxisBandSize:tp(n,r)}},EA=function(t){var n=t.children,r=t.defaultShowTooltip,i=Vn(n,sl),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}},nce=function(t){return!t||!t.length?!1:t.some(function(n){var r=Ci(n&&n.type);return r&&r.indexOf("Bar")>=0})},kA=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"}},rce=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=Vn(h,sl),w=Vn(h,Ds),b=Object.keys(u).reduce(function(O,A){var M=u[A],C=M.orientation;return!M.mirror&&!M.hide?X(X({},O),{},ve({},C,O[C]+M.width)):O},{left:m.left||0,right:m.right||0}),P=Object.keys(s).reduce(function(O,A){var M=s[A],C=M.orientation;return!M.mirror&&!M.hide?X(X({},O),{},ve({},C,mr(O,"".concat(C))+M.height)):O},{top:m.top||0,bottom:m.bottom||0}),_=X(X({},P),b),x=_.bottom;v&&(_.bottom+=v.props.height||sl.defaultProps.height),w&&n&&(_=mte(_,i,r,n));var S=f-_.left-_.right,E=d-_.top-_.bottom;return X(X({brushBottom:x},_),{},{width:Math.max(S,0),height:Math.max(E,0)})},ice=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},f$=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(_,x){var S=x.graphicalItems,E=x.stackGroups,O=x.offset,A=x.updateId,M=x.dataStartIndex,C=x.dataEndIndex,N=_.barSize,z=_.layout,B=_.barGap,R=_.barCategoryGap,Y=_.maxBarSize,H=kA(z),Z=H.numericAxisName,K=H.cateAxisName,q=nce(S),D=[];return S.forEach(function(U,V){var ee=jm(_.data,{graphicalItems:[U],dataStartIndex:M,dataEndIndex:C}),te=U.type.defaultProps!==void 0?X(X({},U.type.defaultProps),U.props):U.props,ae=te.dataKey,pe=te.maxBarSize,de=te["".concat(Z,"Id")],Q=te["".concat(K,"Id")],qe={},Re=u.reduce(function(Vt,Yt){var Qn=x["".concat(Yt.axisType,"Map")],zr=te["".concat(Yt.axisType,"Id")];Qn&&Qn[zr]||Yt.axisType==="zAxis"||La();var Br=Qn[zr];return X(X({},Vt),{},ve(ve({},Yt.axisType,Br),"".concat(Yt.axisType,"Ticks"),Ai(Br)))},qe),se=Re[K],me=Re["".concat(K,"Ticks")],ye=E&&E[de]&&E[de].hasStack&&kte(U,E[de].stackGroups),J=Ci(U.type).indexOf("Bar")>=0,$e=tp(se,me),Se=[],We=q&&dte({barSize:N,stackGroups:E,totalSize:ice(Re,K)});if(J){var He,ot,Et=Ce(pe)?Y:pe,Pn=(He=(ot=tp(se,me,!0))!==null&&ot!==void 0?ot:Et)!==null&&He!==void 0?He:0;Se=pte({barGap:B,barCategoryGap:R,bandSize:Pn!==$e?Pn:$e,sizeList:We[Q],maxBarSize:Et}),Pn!==$e&&(Se=Se.map(function(Vt){return X(X({},Vt),{},{position:X(X({},Vt.position),{},{offset:Vt.position.offset-Pn/2})})}))}var Dn=U&&U.type&&U.type.getComposedData;Dn&&D.push({props:X(X({},Dn(X(X({},Re),{},{displayedData:ee,props:_,dataKey:ae,item:U,bandSize:$e,barPosition:Se,offset:O,stackedData:ye,layout:z,dataStartIndex:M,dataEndIndex:C}))),{},ve(ve(ve({key:U.key||"item-".concat(V)},Z,Re[Z]),K,Re[K]),"animationId",A)),childIndex:hV(U,_.children),item:U})}),D},v=function(_,x){var S=_.props,E=_.dataStartIndex,O=_.dataEndIndex,A=_.updateId;if(!tP({props:S}))return null;var M=S.children,C=S.layout,N=S.stackOffset,z=S.data,B=S.reverseStackOrder,R=kA(C),Y=R.numericAxisName,H=R.cateAxisName,Z=Ir(M,r),K=Tte(z,Z,"".concat(Y,"Id"),"".concat(H,"Id"),N,B),q=u.reduce(function(te,ae){var pe="".concat(ae.axisType,"Map");return X(X({},te),{},ve({},pe,ece(S,X(X({},ae),{},{graphicalItems:Z,stackGroups:ae.axisType===Y&&K,dataStartIndex:E,dataEndIndex:O}))))},{}),D=rce(X(X({},q),{},{props:S,graphicalItems:Z}),x==null?void 0:x.legendBBox);Object.keys(q).forEach(function(te){q[te]=d(S,q[te],D,te.replace("Map",""),n)});var U=q["".concat(H,"Map")],V=tce(U),ee=m(S,X(X({},q),{},{dataStartIndex:E,dataEndIndex:O,updateId:A,graphicalItems:Z,stackGroups:K,offset:D}));return X(X({formattedGraphicalItems:ee,graphicalItems:Z,offset:D,stackGroups:K},V),q)},w=function(P){function _(x){var S,E,O;return Due(this,_),O=Bue(this,_,[x]),ve(O,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),ve(O,"accessibilityManager",new Sue),ve(O,"handleLegendBBoxUpdate",function(A){if(A){var M=O.state,C=M.dataStartIndex,N=M.dataEndIndex,z=M.updateId;O.setState(X({legendBBox:A},v({props:O.props,dataStartIndex:C,dataEndIndex:N,updateId:z},X(X({},O.state),{},{legendBBox:A}))))}}),ve(O,"handleReceiveSyncEvent",function(A,M,C){if(O.props.syncId===A){if(C===O.eventEmitterSymbol&&typeof O.props.syncMethod!="function")return;O.applySyncEvent(M)}}),ve(O,"handleBrushChange",function(A){var M=A.startIndex,C=A.endIndex;if(M!==O.state.dataStartIndex||C!==O.state.dataEndIndex){var N=O.state.updateId;O.setState(function(){return X({dataStartIndex:M,dataEndIndex:C},v({props:O.props,dataStartIndex:M,dataEndIndex:C,updateId:N},O.state))}),O.triggerSyncEvent({dataStartIndex:M,dataEndIndex:C})}}),ve(O,"handleMouseEnter",function(A){var M=O.getMouseInfo(A);if(M){var C=X(X({},M),{},{isTooltipActive:!0});O.setState(C),O.triggerSyncEvent(C);var N=O.props.onMouseEnter;Pe(N)&&N(C,A)}}),ve(O,"triggeredAfterMouseMove",function(A){var M=O.getMouseInfo(A),C=M?X(X({},M),{},{isTooltipActive:!0}):{isTooltipActive:!1};O.setState(C),O.triggerSyncEvent(C);var N=O.props.onMouseMove;Pe(N)&&N(C,A)}),ve(O,"handleItemMouseEnter",function(A){O.setState(function(){return{isTooltipActive:!0,activeItem:A,activePayload:A.tooltipPayload,activeCoordinate:A.tooltipPosition||{x:A.cx,y:A.cy}}})}),ve(O,"handleItemMouseLeave",function(){O.setState(function(){return{isTooltipActive:!1}})}),ve(O,"handleMouseMove",function(A){A.persist(),O.throttleTriggeredAfterMouseMove(A)}),ve(O,"handleMouseLeave",function(A){O.throttleTriggeredAfterMouseMove.cancel();var M={isTooltipActive:!1};O.setState(M),O.triggerSyncEvent(M);var C=O.props.onMouseLeave;Pe(C)&&C(M,A)}),ve(O,"handleOuterEvent",function(A){var M=fV(A),C=mr(O.props,"".concat(M));if(M&&Pe(C)){var N,z;/.*touch.*/i.test(M)?z=O.getMouseInfo(A.changedTouches[0]):z=O.getMouseInfo(A),C((N=z)!==null&&N!==void 0?N:{},A)}}),ve(O,"handleClick",function(A){var M=O.getMouseInfo(A);if(M){var C=X(X({},M),{},{isTooltipActive:!0});O.setState(C),O.triggerSyncEvent(C);var N=O.props.onClick;Pe(N)&&N(C,A)}}),ve(O,"handleMouseDown",function(A){var M=O.props.onMouseDown;if(Pe(M)){var C=O.getMouseInfo(A);M(C,A)}}),ve(O,"handleMouseUp",function(A){var M=O.props.onMouseUp;if(Pe(M)){var C=O.getMouseInfo(A);M(C,A)}}),ve(O,"handleTouchMove",function(A){A.changedTouches!=null&&A.changedTouches.length>0&&O.throttleTriggeredAfterMouseMove(A.changedTouches[0])}),ve(O,"handleTouchStart",function(A){A.changedTouches!=null&&A.changedTouches.length>0&&O.handleMouseDown(A.changedTouches[0])}),ve(O,"handleTouchEnd",function(A){A.changedTouches!=null&&A.changedTouches.length>0&&O.handleMouseUp(A.changedTouches[0])}),ve(O,"handleDoubleClick",function(A){var M=O.props.onDoubleClick;if(Pe(M)){var C=O.getMouseInfo(A);M(C,A)}}),ve(O,"handleContextMenu",function(A){var M=O.props.onContextMenu;if(Pe(M)){var C=O.getMouseInfo(A);M(C,A)}}),ve(O,"triggerSyncEvent",function(A){O.props.syncId!==void 0&&rg.emit(ig,O.props.syncId,A,O.eventEmitterSymbol)}),ve(O,"applySyncEvent",function(A){var M=O.props,C=M.layout,N=M.syncMethod,z=O.state.updateId,B=A.dataStartIndex,R=A.dataEndIndex;if(A.dataStartIndex!==void 0||A.dataEndIndex!==void 0)O.setState(X({dataStartIndex:B,dataEndIndex:R},v({props:O.props,dataStartIndex:B,dataEndIndex:R,updateId:z},O.state)));else if(A.activeTooltipIndex!==void 0){var Y=A.chartX,H=A.chartY,Z=A.activeTooltipIndex,K=O.state,q=K.offset,D=K.tooltipTicks;if(!q)return;if(typeof N=="function")Z=N(D,A);else if(N==="value"){Z=-1;for(var U=0;U<D.length;U++)if(D[U].value===A.activeLabel){Z=U;break}}var V=X(X({},q),{},{x:q.left,y:q.top}),ee=Math.min(Y,V.x+V.width),te=Math.min(H,V.y+V.height),ae=D[Z]&&D[Z].value,pe=U0(O.state,O.props.data,Z),de=D[Z]?{x:C==="horizontal"?D[Z].coordinate:ee,y:C==="horizontal"?te:D[Z].coordinate}:u$;O.setState(X(X({},A),{},{activeLabel:ae,activeCoordinate:de,activePayload:pe,activeTooltipIndex:Z}))}else O.setState(A)}),ve(O,"renderCursor",function(A){var M,C=O.state,N=C.isTooltipActive,z=C.activeCoordinate,B=C.activePayload,R=C.offset,Y=C.activeTooltipIndex,H=C.tooltipAxisBandSize,Z=O.getTooltipEventType(),K=(M=A.props.active)!==null&&M!==void 0?M:N,q=O.props.layout,D=A.key||"_recharts-cursor";return I.createElement(Mue,{key:D,activeCoordinate:z,activePayload:B,activeTooltipIndex:Y,chartName:n,element:A,isActive:K,layout:q,offset:R,tooltipAxisBandSize:H,tooltipEventType:Z})}),ve(O,"renderPolarAxis",function(A,M,C){var N=mr(A,"type.axisType"),z=mr(O.state,"".concat(N,"Map")),B=A.type.defaultProps,R=B!==void 0?X(X({},B),A.props):A.props,Y=z&&z[R["".concat(N,"Id")]];return j.cloneElement(A,X(X({},Y),{},{className:Ie(N,Y.className),key:A.key||"".concat(M,"-").concat(C),ticks:Ai(Y,!0)}))}),ve(O,"renderPolarGrid",function(A){var M=A.props,C=M.radialLines,N=M.polarAngles,z=M.polarRadius,B=O.state,R=B.radiusAxisMap,Y=B.angleAxisMap,H=mo(R),Z=mo(Y),K=Z.cx,q=Z.cy,D=Z.innerRadius,U=Z.outerRadius;return j.cloneElement(A,{polarAngles:Array.isArray(N)?N:Ai(Z,!0).map(function(V){return V.coordinate}),polarRadius:Array.isArray(z)?z:Ai(H,!0).map(function(V){return V.coordinate}),cx:K,cy:q,innerRadius:D,outerRadius:U,key:A.key||"polar-grid",radialLines:C})}),ve(O,"renderLegend",function(){var A=O.state.formattedGraphicalItems,M=O.props,C=M.children,N=M.width,z=M.height,B=O.props.margin||{},R=N-(B.left||0)-(B.right||0),Y=Yj({children:C,formattedGraphicalItems:A,legendWidth:R,legendContent:f});if(!Y)return null;var H=Y.item,Z=OA(Y,Cue);return j.cloneElement(H,X(X({},Z),{},{chartWidth:N,chartHeight:z,margin:B,onBBoxUpdate:O.handleLegendBBoxUpdate}))}),ve(O,"renderTooltip",function(){var A,M=O.props,C=M.children,N=M.accessibilityLayer,z=Vn(C,_i);if(!z)return null;var B=O.state,R=B.isTooltipActive,Y=B.activeCoordinate,H=B.activePayload,Z=B.activeLabel,K=B.offset,q=(A=z.props.active)!==null&&A!==void 0?A:R;return j.cloneElement(z,{viewBox:X(X({},K),{},{x:K.left,y:K.top}),active:q,label:Z,payload:q?H:[],coordinate:Y,accessibilityLayer:N})}),ve(O,"renderBrush",function(A){var M=O.props,C=M.margin,N=M.data,z=O.state,B=z.offset,R=z.dataStartIndex,Y=z.dataEndIndex,H=z.updateId;return j.cloneElement(A,{key:A.key||"_recharts-brush",onChange:Th(O.handleBrushChange,A.props.onChange),data:N,x:oe(A.props.x)?A.props.x:B.left,y:oe(A.props.y)?A.props.y:B.top+B.height+B.brushBottom-(C.bottom||0),width:oe(A.props.width)?A.props.width:B.width,startIndex:R,endIndex:Y,updateId:"brush-".concat(H)})}),ve(O,"renderReferenceElement",function(A,M,C){if(!A)return null;var N=O,z=N.clipPathId,B=O.state,R=B.xAxisMap,Y=B.yAxisMap,H=B.offset,Z=A.type.defaultProps||{},K=A.props,q=K.xAxisId,D=q===void 0?Z.xAxisId:q,U=K.yAxisId,V=U===void 0?Z.yAxisId:U;return j.cloneElement(A,{key:A.key||"".concat(M,"-").concat(C),xAxis:R[D],yAxis:Y[V],viewBox:{x:H.left,y:H.top,width:H.width,height:H.height},clipPathId:z})}),ve(O,"renderActivePoints",function(A){var M=A.item,C=A.activePoint,N=A.basePoint,z=A.childIndex,B=A.isRange,R=[],Y=M.props.key,H=M.item.type.defaultProps!==void 0?X(X({},M.item.type.defaultProps),M.item.props):M.item.props,Z=H.activeDot,K=H.dataKey,q=X(X({index:z,dataKey:K,cx:C.x,cy:C.y,r:4,fill:b1(M.item),strokeWidth:2,stroke:"#fff",payload:C.payload,value:C.value},ke(Z,!1)),Od(Z));return R.push(_.renderActiveDot(Z,q,"".concat(Y,"-activePoint-").concat(z))),N?R.push(_.renderActiveDot(Z,X(X({},q),{},{cx:N.x,cy:N.y}),"".concat(Y,"-basePoint-").concat(z))):B&&R.push(null),R}),ve(O,"renderGraphicChild",function(A,M,C){var N=O.filterFormatItem(A,M,C);if(!N)return null;var z=O.getTooltipEventType(),B=O.state,R=B.isTooltipActive,Y=B.tooltipAxis,H=B.activeTooltipIndex,Z=B.activeLabel,K=O.props.children,q=Vn(K,_i),D=N.props,U=D.points,V=D.isRange,ee=D.baseLine,te=N.item.type.defaultProps!==void 0?X(X({},N.item.type.defaultProps),N.item.props):N.item.props,ae=te.activeDot,pe=te.hide,de=te.activeBar,Q=te.activeShape,qe=!!(!pe&&R&&q&&(ae||de||Q)),Re={};z!=="axis"&&q&&q.props.trigger==="click"?Re={onClick:Th(O.handleItemMouseEnter,A.props.onClick)}:z!=="axis"&&(Re={onMouseLeave:Th(O.handleItemMouseLeave,A.props.onMouseLeave),onMouseEnter:Th(O.handleItemMouseEnter,A.props.onMouseEnter)});var se=j.cloneElement(A,X(X({},N.props),Re));function me(Yt){return typeof Y.dataKey=="function"?Y.dataKey(Yt.payload):null}if(qe)if(H>=0){var ye,J;if(Y.dataKey&&!Y.allowDuplicatedCategory){var $e=typeof Y.dataKey=="function"?me:"payload.".concat(Y.dataKey.toString());ye=Pd(U,$e,Z),J=V&&ee&&Pd(ee,$e,Z)}else ye=U==null?void 0:U[H],J=V&&ee&&ee[H];if(Q||de){var Se=A.props.activeIndex!==void 0?A.props.activeIndex:H;return[j.cloneElement(A,X(X(X({},N.props),Re),{},{activeIndex:Se})),null,null]}if(!Ce(ye))return[se].concat(xl(O.renderActivePoints({item:N,activePoint:ye,basePoint:J,childIndex:H,isRange:V})))}else{var We,He=(We=O.getItemByXY(O.state.activeCoordinate))!==null&&We!==void 0?We:{graphicalItem:se},ot=He.graphicalItem,Et=ot.item,Pn=Et===void 0?A:Et,Dn=ot.childIndex,Vt=X(X(X({},N.props),Re),{},{activeIndex:Dn});return[j.cloneElement(Pn,Vt),null,null]}return V?[se,null,null]:[se,null]}),ve(O,"renderCustomized",function(A,M,C){return j.cloneElement(A,X(X({key:"recharts-customized-".concat(C)},O.props),O.state))}),ve(O,"renderMap",{CartesianGrid:{handler:Ch,once:!0},ReferenceArea:{handler:O.renderReferenceElement},ReferenceLine:{handler:Ch},ReferenceDot:{handler:O.renderReferenceElement},XAxis:{handler:Ch},YAxis:{handler:Ch},Brush:{handler:O.renderBrush,once:!0},Bar:{handler:O.renderGraphicChild},Line:{handler:O.renderGraphicChild},Area:{handler:O.renderGraphicChild},Radar:{handler:O.renderGraphicChild},RadialBar:{handler:O.renderGraphicChild},Scatter:{handler:O.renderGraphicChild},Pie:{handler:O.renderGraphicChild},Funnel:{handler:O.renderGraphicChild},Tooltip:{handler:O.renderCursor,once:!0},PolarGrid:{handler:O.renderPolarGrid,once:!0},PolarAngleAxis:{handler:O.renderPolarAxis},PolarRadiusAxis:{handler:O.renderPolarAxis},Customized:{handler:O.renderCustomized}}),O.clipPathId="".concat((S=x.id)!==null&&S!==void 0?S:hf("recharts"),"-clip"),O.throttleTriggeredAfterMouseMove=QC(O.triggeredAfterMouseMove,(E=x.throttleDelay)!==null&&E!==void 0?E:1e3/60),O.state={},O}return Uue(_,P),zue(_,[{key:"componentDidMount",value:function(){var S,E;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(S=this.props.margin.left)!==null&&S!==void 0?S: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 S=this.props,E=S.children,O=S.data,A=S.height,M=S.layout,C=Vn(E,_i);if(C){var N=C.props.defaultIndex;if(!(typeof N!="number"||N<0||N>this.state.tooltipTicks.length-1)){var z=this.state.tooltipTicks[N]&&this.state.tooltipTicks[N].value,B=U0(this.state,O,N,z),R=this.state.tooltipTicks[N].coordinate,Y=(this.state.offset.top+A)/2,H=M==="horizontal",Z=H?{x:R,y:Y}:{y:R,x:Y},K=this.state.formattedGraphicalItems.find(function(D){var U=D.item;return U.type.name==="Scatter"});K&&(Z=X(X({},Z),K.props.points[N].tooltipPosition),B=K.props.points[N].tooltipPayload);var q={activeTooltipIndex:N,isTooltipActive:!0,activeLabel:z,activePayload:B,activeCoordinate:Z};this.setState(q),this.renderCursor(C),this.accessibilityManager.setIndex(N)}}}},{key:"getSnapshotBeforeUpdate",value:function(S,E){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==E.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==S.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==S.margin){var O,A;this.accessibilityManager.setDetails({offset:{left:(O=this.props.margin.left)!==null&&O!==void 0?O:0,top:(A=this.props.margin.top)!==null&&A!==void 0?A:0}})}return null}},{key:"componentDidUpdate",value:function(S){wy([Vn(S.children,_i)],[Vn(this.props.children,_i)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var S=Vn(this.props.children,_i);if(S&&typeof S.props.shared=="boolean"){var E=S.props.shared?"axis":"item";return l.indexOf(E)>=0?E:o}return o}},{key:"getMouseInfo",value:function(S){if(!this.container)return null;var E=this.container,O=E.getBoundingClientRect(),A=RX(O),M={chartX:Math.round(S.pageX-A.left),chartY:Math.round(S.pageY-A.top)},C=O.width/E.offsetWidth||1,N=this.inRange(M.chartX,M.chartY,C);if(!N)return null;var z=this.state,B=z.xAxisMap,R=z.yAxisMap,Y=this.getTooltipEventType(),H=AA(this.state,this.props.data,this.props.layout,N);if(Y!=="axis"&&B&&R){var Z=mo(B).scale,K=mo(R).scale,q=Z&&Z.invert?Z.invert(M.chartX):null,D=K&&K.invert?K.invert(M.chartY):null;return X(X({},M),{},{xValue:q,yValue:D},H)}return H?X(X({},M),H):null}},{key:"inRange",value:function(S,E){var O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,A=this.props.layout,M=S/O,C=E/O;if(A==="horizontal"||A==="vertical"){var N=this.state.offset,z=M>=N.left&&M<=N.left+N.width&&C>=N.top&&C<=N.top+N.height;return z?{x:M,y:C}:null}var B=this.state,R=B.angleAxisMap,Y=B.radiusAxisMap;if(R&&Y){var H=mo(R);return hT({x:M,y:C},H)}return null}},{key:"parseEventsOfWrapper",value:function(){var S=this.props.children,E=this.getTooltipEventType(),O=Vn(S,_i),A={};O&&E==="axis"&&(O.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=Od(this.props,this.handleOuterEvent);return X(X({},M),A)}},{key:"addListener",value:function(){rg.on(ig,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){rg.removeListener(ig,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(S,E,O){for(var A=this.state.formattedGraphicalItems,M=0,C=A.length;M<C;M++){var N=A[M];if(N.item===S||N.props.key===S.key||E===Ci(N.item.type)&&O===N.childIndex)return N}return null}},{key:"renderClipPath",value:function(){var S=this.clipPathId,E=this.state.offset,O=E.left,A=E.top,M=E.height,C=E.width;return I.createElement("defs",null,I.createElement("clipPath",{id:S},I.createElement("rect",{x:O,y:A,height:M,width:C})))}},{key:"getXScales",value:function(){var S=this.state.xAxisMap;return S?Object.entries(S).reduce(function(E,O){var A=PA(O,2),M=A[0],C=A[1];return X(X({},E),{},ve({},M,C.scale))},{}):null}},{key:"getYScales",value:function(){var S=this.state.yAxisMap;return S?Object.entries(S).reduce(function(E,O){var A=PA(O,2),M=A[0],C=A[1];return X(X({},E),{},ve({},M,C.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(S){var E;return(E=this.state.xAxisMap)===null||E===void 0||(E=E[S])===null||E===void 0?void 0:E.scale}},{key:"getYScaleByAxisId",value:function(S){var E;return(E=this.state.yAxisMap)===null||E===void 0||(E=E[S])===null||E===void 0?void 0:E.scale}},{key:"getItemByXY",value:function(S){var E=this.state,O=E.formattedGraphicalItems,A=E.activeItem;if(O&&O.length)for(var M=0,C=O.length;M<C;M++){var N=O[M],z=N.props,B=N.item,R=B.type.defaultProps!==void 0?X(X({},B.type.defaultProps),B.props):B.props,Y=Ci(B.type);if(Y==="Bar"){var H=(z.data||[]).find(function(D){return Pie(S,D)});if(H)return{graphicalItem:N,payload:H}}else if(Y==="RadialBar"){var Z=(z.data||[]).find(function(D){return hT(S,D)});if(Z)return{graphicalItem:N,payload:Z}}else if(Tm(N,A)||Am(N,A)||Zc(N,A)){var K=Aoe({graphicalItem:N,activeTooltipItem:A,itemData:R.data}),q=R.activeIndex===void 0?K:R.activeIndex;return{graphicalItem:X(X({},N),{},{childIndex:q}),payload:Zc(N,A)?R.data[K]:N.props.data[K]}}}return null}},{key:"render",value:function(){var S=this;if(!tP(this))return null;var E=this.props,O=E.children,A=E.className,M=E.width,C=E.height,N=E.style,z=E.compact,B=E.title,R=E.desc,Y=OA(E,jue),H=ke(Y,!1);if(z)return I.createElement(sA,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},I.createElement(Py,ks({},H,{width:M,height:C,title:B,desc:R}),this.renderClipPath(),rP(O,this.renderMap)));if(this.props.accessibilityLayer){var Z,K;H.tabIndex=(Z=this.props.tabIndex)!==null&&Z!==void 0?Z:0,H.role=(K=this.props.role)!==null&&K!==void 0?K:"application",H.onKeyDown=function(D){S.accessibilityManager.keyboardEvent(D)},H.onFocus=function(){S.accessibilityManager.focus()}}var q=this.parseEventsOfWrapper();return I.createElement(sA,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},I.createElement("div",ks({className:Ie("recharts-wrapper",A),style:X({position:"relative",cursor:"default",width:M,height:C},N)},q,{ref:function(U){S.container=U}}),I.createElement(Py,ks({},H,{width:M,height:C,title:B,desc:R,style:que}),this.renderClipPath(),rP(O,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(j.Component);ve(w,"displayName",n),ve(w,"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(w,"getDerivedStateFromProps",function(P,_){var x=P.dataKey,S=P.data,E=P.children,O=P.width,A=P.height,M=P.layout,C=P.stackOffset,N=P.margin,z=_.dataStartIndex,B=_.dataEndIndex;if(_.updateId===void 0){var R=EA(P);return X(X(X({},R),{},{updateId:0},v(X(X({props:P},R),{},{updateId:0}),_)),{},{prevDataKey:x,prevData:S,prevWidth:O,prevHeight:A,prevLayout:M,prevStackOffset:C,prevMargin:N,prevChildren:E})}if(x!==_.prevDataKey||S!==_.prevData||O!==_.prevWidth||A!==_.prevHeight||M!==_.prevLayout||C!==_.prevStackOffset||!Is(N,_.prevMargin)){var Y=EA(P),H={chartX:_.chartX,chartY:_.chartY,isTooltipActive:_.isTooltipActive},Z=X(X({},AA(_,S,M)),{},{updateId:_.updateId+1}),K=X(X(X({},Y),H),Z);return X(X(X({},K),v(X({props:P},K),_)),{},{prevDataKey:x,prevData:S,prevWidth:O,prevHeight:A,prevLayout:M,prevStackOffset:C,prevMargin:N,prevChildren:E})}if(!wy(E,_.prevChildren)){var q,D,U,V,ee=Vn(E,sl),te=ee&&(q=(D=ee.props)===null||D===void 0?void 0:D.startIndex)!==null&&q!==void 0?q:z,ae=ee&&(U=(V=ee.props)===null||V===void 0?void 0:V.endIndex)!==null&&U!==void 0?U:B,pe=te!==z||ae!==B,de=!Ce(S),Q=de&&!pe?_.updateId:_.updateId+1;return X(X({updateId:Q},v(X(X({props:P},_),{},{updateId:Q,dataStartIndex:te,dataEndIndex:ae}),_)),{},{prevChildren:E,dataStartIndex:te,dataEndIndex:ae})}return null}),ve(w,"renderActiveDot",function(P,_,x){var S;return j.isValidElement(P)?S=j.cloneElement(P,_):Pe(P)?S=P(_):S=I.createElement(S1,_),I.createElement(dt,{className:"recharts-active-dot",key:x},S)});var b=j.forwardRef(function(_,x){return I.createElement(w,ks({},_,{ref:x}))});return b.displayName=w.displayName,b},oce=f$({chartName:"BarChart",GraphicalChild:Ha,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:ml},{axisType:"yAxis",AxisComp:gl}],formatAxisMap:AN}),ace=f$({chartName:"AreaChart",GraphicalChild:Vo,axisComponents:[{axisType:"xAxis",AxisComp:ml},{axisType:"yAxis",AxisComp:gl}],formatAxisMap:AN});const sce=({manager:e})=>{const{data:t}=e;if(!t)return y.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 y.jsxs("div",{className:"px-2 pt-5 pb-24 landscape:pt-4 space-y-2",children:[y.jsxs("div",{className:"flex flex-col landscape:flex-row gap-2 w-full",children:[y.jsxs("div",{className:"w-full landscape:w-1/2 bg-white/5 p-5 rounded-[2rem] border border-white/10 shadow-2xl",children:[y.jsxs("h3",{className:"text-[10px] font-black font-mono text-cyan-400 mb-2 flex items-center gap-2 tracking-widest uppercase",children:[y.jsx(mz,{size:14})," STATO DI CARICA (24h)"]}),y.jsx("div",{className:"h-56 w-full",children:y.jsx(eO,{width:"100%",height:"100%",children:y.jsxs(ace,{data:o,margin:{top:25,right:65,left:0,bottom:10},children:[y.jsx("defs",{children:y.jsxs("linearGradient",{id:"colorSoc",x1:"0",y1:"0",x2:"0",y2:"1",children:[y.jsx("stop",{offset:"5%",stopColor:r<40?"#ef4444":"#22c55e",stopOpacity:.4}),y.jsx("stop",{offset:"95%",stopColor:"#121212",stopOpacity:0})]})}),y.jsx(N0,{strokeDasharray:"3 3",stroke:"#ffffff40",vertical:!1}),y.jsx(gl,{domain:[40,100],ticks:[40,60,80,100],tick:{fill:"#666",fontSize:11,fontWeight:"bold"},axisLine:!1,tickLine:!1,width:27}),y.jsx(ml,{dataKey:"index",hide:!0}),y.jsx(Vo,{type:"monotone",dataKey:"soc",stroke:r<40?"#ef4444":"#22c55e",strokeWidth:4,fill:"url(#colorSoc)",isAnimationActive:!1}),y.jsx(Ta,{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}}),y.jsx(Ta,{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}}),y.jsx(Ta,{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}})]})})})]}),y.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:[y.jsxs("h3",{className:"text-[10px] font-black font-mono text-orange-400 mb-2 flex items-center gap-2 tracking-widest uppercase",children:[y.jsx(y_,{size:14})," PRODUZIONE SOLARE"]}),y.jsxs("div",{className:"grid grid-cols-3 gap-2 text-center",children:[y.jsx(ag,{title:"OGGI",val:t.solar.today_kwh,color:"text-orange-400"}),y.jsx(ag,{title:"PREV.",val:t.solar.forecast_kwh,color:"text-yellow-400"}),y.jsx(ag,{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,w=Math.max(m,v,1);return y.jsxs("div",{className:"space-y-5 pt-2",children:[y.jsx(MA,{label:"PRUA",current:t.solar.prua_w,localMax:m,globalMax:w}),y.jsx(MA,{label:"POPPA",current:t.solar.poppa_w,localMax:v,globalMax:w})]})})()]})]}),y.jsxs("div",{className:"bg-white/5 p-5 rounded-[2rem] border border-white/10 shadow-2xl",children:[y.jsxs("h3",{className:"text-[10px] font-black font-mono text-cyan-400 mb-6 flex items-center gap-2 tracking-widest uppercase",children:[y.jsx(Ez,{size:14})," MIN/MAX SETTIMANALE"]}),y.jsx("div",{className:"h-64 w-full",children:y.jsx(eO,{width:"100%",height:"100%",children:y.jsxs(oce,{data:h,margin:{top:25,right:0,left:0,bottom:40},children:[y.jsx("defs",{children:h.map((m,v)=>{const w=m.max-m.min||1,b=(35-m.min)/w*100,P=(65-m.min)/w*100;return y.jsxs("linearGradient",{id:`grad-${v}`,x1:"0",y1:"1",x2:"0",y2:"0",children:[y.jsx("stop",{offset:"0%",stopColor:m.min<35?"#ef4444":m.min<65?"#f97316":"#22c55e"}),b>0&&b<100&&y.jsx("stop",{offset:`${b}%`,stopColor:"#f97316"}),P>0&&P<100&&y.jsx("stop",{offset:`${P}%`,stopColor:"#eab308"}),y.jsx("stop",{offset:"100%",stopColor:m.max>65?"#22c55e":m.max>35?"#eab308":"#ef4444"})]},`grad-${v}`)})}),y.jsx(N0,{strokeDasharray:"3 3",stroke:"#ffffff40",vertical:!1}),y.jsx(ml,{dataKey:"day",axisLine:!1,tickLine:!1,tick:{fill:"#d1d5db",fontSize:11,fontWeight:"bold"}}),y.jsx(gl,{domain:[0,100],ticks:[0,50,100],hide:!0}),y.jsxs(Ha,{dataKey:m=>[m.min,m.max],radius:[6,6,6,6],barSize:18,isAnimationActive:!1,children:[h.map((m,v)=>y.jsx(X_,{fill:`url(#grad-${v})`},`cell-${v}`)),y.jsx(ii,{dataKey:"max",position:"top",content:m=>{const{x:v,y:w,width:b,value:P}=m;return y.jsxs("text",{x:v+b/2,y:w-8,fill:"#fff",fontSize:"10",fontWeight:"900",textAnchor:"middle",children:[P.toFixed(0),"%"]})}}),y.jsx(ii,{dataKey:"min",position:"bottom",content:m=>{const{x:v,y:w,width:b,value:P,height:_}=m;return y.jsxs("text",{x:v+b/2,y:w+_+18,fill:P<40?"#ef4444":"#d1d5db",fontSize:"10",fontWeight:"bold",textAnchor:"middle",children:[P.toFixed(0),"%"]})}})]})]})})})]})]})},ag=({title:e,val:t,color:n})=>y.jsxs("div",{className:"bg-white/5 p-3 rounded-2xl border border-white/5",children:[y.jsx("div",{className:"text-[8px] font-black text-gray-300 mb-1 tracking-tighter uppercase",children:e}),y.jsxs("div",{className:`text-xl font-black ${n}`,children:[t.toFixed(1),y.jsx("span",{className:"text-[10px] ml-0.5 opacity-50",children:"kWh"})]})]}),MA=({label:e,current:t,localMax:n,globalMax:r})=>{const i=t/r*100,o=n/r*100;return y.jsxs("div",{className:"space-y-1.5",children:[y.jsxs("div",{className:"flex justify-between text-[10px] font-black",children:[y.jsx("span",{className:"text-gray-300 font-mono tracking-tighter uppercase",children:e}),y.jsxs("span",{className:"text-orange-400 font-mono",children:[t,"W ",y.jsxs("span",{className:"text-gray-300 font-bold uppercase",children:["/ Peak ",n,"W"]})]})]}),y.jsxs("div",{className:"relative h-2.5 w-full",children:[y.jsx("div",{className:"absolute inset-0 bg-white/5 rounded-full"}),o<99&&y.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}}),y.jsx("div",{className:"absolute inset-y-0 left-0 bg-white/10 rounded-full",style:{width:`${o}%`}}),y.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}%`}})]})]})},CA=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},ku=e=>e<10?"text-cyan-400":e<18?"text-green-400":e<25?"text-yellow-400":e<35?"text-orange-500":"text-red-500",lce=e=>{if(e==null||isNaN(e))return"";const t=["N","NE","E","SE","S","SO","O","NO"],n=Math.round((e%360+360)%360/45)%8;return t[n]},h$=(e,t=24)=>{if(!e)return y.jsx(LS,{size:t,className:"text-gray-400"});const n=e.precipitation||0,r=e.icon.toLowerCase();return n>=1.5?y.jsx(uz,{size:t,className:"text-purple-400"}):n>=.4?y.jsx(cz,{size:t,className:"text-cyan-400"}):n>0?y.jsx(lz,{size:t,className:"text-cyan-200"}):r.includes("sun")||r.includes("clear")?y.jsx(fz,{size:t,className:"text-yellow-400"}):r.includes("moon")?y.jsx(SM,{size:t,className:"text-blue-300"}):r.includes("cloud")?y.jsx(LS,{size:t,className:"text-gray-400"}):y.jsx(y_,{size:t,className:"text-orange-400"})},uce=({manager:e})=>{const{data:t}=e;if(!t)return y.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 y.jsxs("div",{className:"px-2 pt-5 pb-24 landscape:pt-4 space-y-2 text-white",children:[y.jsxs("div",{className:"grid grid-cols-2 landscape:grid-cols-4 gap-2",children:[y.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:[y.jsxs("div",{className:"flex flex-col items-center landscape:items-start",children:[y.jsx("div",{className:`text-6xl landscape:text-4xl font-black tracking-tighter ${ku(n.wind_now)} drop-shadow-lg leading-none`,children:n.wind_now.toFixed(0)}),y.jsx("div",{className:"text-[10px] landscape:text-[8px] font-black text-gray-300 tracking-widest mt-1 uppercase font-mono",children:"Knots"})]}),y.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:y.jsx("div",{className:`bg-current ${ku(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}%`}})})]}),y.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:[y.jsx(sg,{label:"MIN 30m",val:n.wind_min_30m,color:"text-cyan-400"}),y.jsx("div",{className:"h-px bg-white/5 w-full"}),y.jsx(sg,{label:"MAX 30m",val:n.wind_max_30m,color:"text-orange-400"}),y.jsx("div",{className:"h-px bg-white/5 w-full"}),y.jsx(sg,{label:"MAX 24h",val:n.wind_max_24h,color:"text-red-500"})]}),y.jsx(jA,{title:"APPARENTE",windAngle:n.wind_dir_rel,boatAngle:0,color:ku(n.wind_now)}),y.jsx(jA,{title:"REALE",windAngle:n.wind_dir_true,boatAngle:n.heading,color:ku(n.wind_now),isTrue:!0})]}),y.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[y.jsx(NA,{icon:y.jsx(TM,{className:"text-yellow-500"}),title:"POZZETTO",val:n.temp_pozzetto,sub:`Umidità: ${n.hum_pozzetto.toFixed(0)}%`}),y.jsx(NA,{icon:h$(n.hourly_forecast[0],28),title:"MODELLO",val:n.temp_forecast,sub:"OpenMeteo"})]}),y.jsxs("div",{className:"bg-white/5 p-3 rounded-[2.5rem] border border-white/10 shadow-2xl",children:[y.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"}),y.jsx("div",{className:"grid grid-cols-3 gap-2",children:n.hourly_forecast.slice(0,6).map((i,o)=>y.jsx(cce,{hour:i},o))})]})]})},jA=({title:e,windAngle:t,boatAngle:n,color:r,isTrue:i=!1})=>{const o=CA(t),s=CA(n);return y.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:[y.jsxs("div",{className:"relative w-28 h-28 landscape:w-16 landscape:h-16 flex items-center justify-center shrink-0",children:[y.jsx("div",{className:"absolute inset-0 border-2 border-white/10 rounded-full"}),i&&y.jsxs("div",{className:"absolute inset-0 flex items-center justify-center text-[8px] font-black opacity-30 text-white",children:[y.jsx("span",{className:"absolute top-0 text-red-500 font-mono",children:"N"}),y.jsx("span",{className:"absolute bottom-0 text-white/50 font-mono",children:"S"})]}),y.jsx("div",{className:"absolute transition-transform duration-1000 ease-in-out",style:{transform:`rotate(${s}deg)`},children:y.jsx(kz,{size:18,fill:"white",className:"text-white opacity-20 scale-x-75 scale-y-125"})}),y.jsx("div",{className:"absolute inset-0 transition-transform duration-1000 ease-in-out",style:{transform:`rotate(${o}deg)`},children:y.jsx("div",{className:`absolute top-0 left-1/2 -translate-x-1/2 -mt-1 ${r}`,children:y.jsx(bM,{size:16,strokeWidth:4,fill:"currentColor"})})})]}),y.jsxs("div",{className:"flex flex-col items-center landscape:items-end leading-none",children:[y.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}),y.jsxs("span",{className:`text-2xl landscape:text-lg font-black font-mono tracking-tighter ${r} whitespace-nowrap`,children:[t.toFixed(0),"° ",i?lce(t):""]})]})]})},sg=({label:e,val:t,color:n})=>y.jsxs("div",{className:"flex justify-between items-baseline px-1 leading-none text-white",children:[y.jsx("span",{className:"text-[9px] landscape:text-[7px] font-black text-gray-300 uppercase font-mono",children:e}),y.jsx("span",{className:`text-lg landscape:text-sm font-black font-mono ${n}`,children:t.toFixed(1)})]}),NA=({icon:e,title:t,val:n,sub:r})=>y.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:[y.jsxs("div",{className:"flex flex-col landscape:flex-row items-center gap-1 landscape:gap-3 text-white",children:[y.jsx("div",{className:"bg-white/5 p-2 landscape:p-1.5 rounded-full flex items-center justify-center",children:I.cloneElement(e,{size:18,className:`${e.props.className} landscape:scale-90`})}),y.jsx("span",{className:"text-[9px] font-black text-gray-300 uppercase tracking-widest font-mono whitespace-nowrap",children:t})]}),y.jsxs("div",{className:"flex flex-col items-center landscape:items-end leading-tight text-white",children:[y.jsxs("span",{className:"text-3xl landscape:text-2xl font-black text-white",children:[n.toFixed(1),"°"]}),y.jsx("span",{className:"text-[10px] landscape:text-[8px] font-bold text-gray-300 uppercase font-mono whitespace-nowrap opacity-80",children:r})]})]}),cce=({hour:e})=>y.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:[y.jsx("span",{className:"text-[9px] font-black text-gray-300 font-mono tracking-tighter uppercase",children:e.time}),y.jsx("div",{className:"my-0.5",children:h$(e,26)}),y.jsxs("span",{className:"text-lg font-black text-white leading-none",children:[e.temp,"°"]}),e.rainChance>15?y.jsx("div",{className:"flex items-center gap-1 text-cyan-400 bg-cyan-400/10 px-1.5 py-0.5 rounded-full",children:y.jsxs("span",{className:"text-[9px] font-black",children:[e.rainChance,"%"]})}):y.jsx("div",{className:"h-4"}),y.jsx("div",{className:"flex flex-col items-center w-full border-t border-white/5 pt-1.5 text-white",children:y.jsxs("div",{className:"flex items-center gap-1 justify-center w-full text-white",children:[y.jsx("span",{className:"text-lg landscape:text-base font-bold text-gray-400 font-mono leading-none",children:e.windSpeed}),y.jsx(oz,{size:10,className:"text-gray-300 shrink-0"}),y.jsx("span",{className:`text-lg landscape:text-base font-black font-mono leading-none ${ku(e.windGust)}`,children:e.windGust})]})})]}),fce=({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 y.jsxs("div",{className:"p-4 space-y-6 pb-32",children:[y.jsx("header",{className:"px-2 pt-4 flex justify-between items-center",children:y.jsxs("div",{children:[y.jsxs("h2",{className:"text-xl font-black text-white flex items-center gap-2",children:[y.jsx(Sz,{className:"text-gray-300",size:20}),"CONTROLLI AVANZATI"]}),y.jsx("p",{className:"text-[10px] text-gray-300 font-bold uppercase tracking-widest mt-1",children:"Gestione Sistemi di Bordo"})]})}),y.jsxs("div",{className:"space-y-3",children:[y.jsx("h3",{className:"text-[10px] font-black text-gray-300 tracking-[0.2em] uppercase px-2",children:"Inverter / Caricabatterie"}),y.jsxs("div",{className:"bg-white/5 rounded-[2.5rem] border border-white/10 overflow-hidden shadow-2xl divide-y divide-white/5",children:[y.jsxs("div",{className:"flex items-center justify-between p-6 bg-white/[0.02]",children:[y.jsxs("div",{className:"flex items-center gap-4",children:[y.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:y.jsx(nz,{className:s?"text-yellow-500":"text-white",size:28})}),y.jsxs("div",{className:"flex flex-col",children:[y.jsx("span",{className:"text-[15px] font-black text-white tracking-tight uppercase",children:"Banchina"}),y.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"})]})]}),y.jsxs("label",{className:"relative inline-flex items-center cursor-pointer",children:[y.jsx("input",{type:"checkbox",className:"sr-only peer",checked:s,onChange:d=>n("multiplus",d.target.checked),disabled:i}),y.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":""}`})]})]}),y.jsxs("div",{className:`p-6 transition-all duration-700 ${s?"opacity-100":"opacity-20 grayscale pointer-events-none"}`,children:[y.jsxs("div",{className:"flex justify-between items-end mb-5",children:[y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx("div",{className:"p-2 bg-cyan-500/10 rounded-xl",children:y.jsx(_z,{size:20,className:"text-cyan-400"})}),y.jsxs("div",{className:"flex flex-col",children:[y.jsx("span",{className:"text-sm font-black uppercase text-white tracking-tight",children:"Limite Banchina"}),y.jsx("span",{className:"text-[9px] font-bold text-gray-300 uppercase tracking-widest",children:"Seleziona Ampere AC"})]})]}),y.jsxs("div",{className:"flex items-baseline gap-1",children:[y.jsx("span",{className:"text-3xl font-black font-mono text-cyan-400",children:l.toFixed(0)}),y.jsx("span",{className:"text-sm font-bold text-gray-600",children:"A"})]})]}),y.jsx("div",{className:"flex gap-2.5 w-full mt-2",children:o.map(d=>y.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))})]}),y.jsxs("div",{className:"p-6 flex items-center justify-between opacity-10 grayscale",children:[y.jsxs("div",{className:"flex items-center gap-4",children:[y.jsx("div",{className:"p-3 bg-white/5 rounded-2xl text-gray-400",children:y.jsx(Pz,{size:26})}),y.jsxs("div",{className:"flex flex-col",children:[y.jsx("span",{className:"text-sm font-black text-white uppercase tracking-tight",children:"Safe Power Mode"}),y.jsx("span",{className:"text-[9px] font-bold text-gray-300 uppercase",children:"Configurazione automatica carichi"})]})]}),y.jsx("div",{className:"w-10 h-5 bg-gray-900 rounded-full border border-white/5"})]})]})]})]})},hce=""+new URL("AppIcon-CV7HxdmO.png",import.meta.url).href;function dce(){const[e,t]=j.useState(()=>{if(new URLSearchParams(window.location.search).get("mmsi"))return 3;const w=localStorage.getItem("rotevista_active_tab");return w!==null?parseInt(w,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=Nz();I.useEffect(()=>{const w=new URLSearchParams(window.location.search).get("mmsi");w&&(l(w),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,w)=>{if(v.target.closest(".leaflet-container"))return;const b=50;w.offset.x<-b&&e<4?d(e+1):w.offset.x>b&&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 y.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:[y.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:[y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx("img",{src:hce,alt:"Logo",className:"w-9 h-9 rounded-lg object-cover bg-white/10 shadow-lg"}),y.jsx("h1",{className:"text-xl font-black tracking-widest uppercase font-mono text-white",children:"ROTEVISTA"})]}),y.jsxs("div",{className:"flex items-center gap-3",children:[u.isUpdating&&y.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:[y.jsx(gz,{size:12,className:"animate-spin"}),y.jsx("span",{className:"text-[10px] font-black uppercase font-mono",children:"Sync"})]}),y.jsx("button",{onClick:v=>{v.stopPropagation();const w=!i;o(w),localStorage.setItem("rotevista_night_mode",String(w))},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?y.jsx(y_,{size:16}):y.jsx(SM,{size:16})}),y.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:[y.jsx("span",{className:"text-xs font-bold text-gray-400",children:u.isDataStale?"OFF":`${u.secondsSinceLastUpdate}s`}),y.jsx("div",{className:`w-2 h-2 rounded-full ${u.statusColor} shadow-[0_0_8px_currentColor]`})]})]})]}),y.jsx("main",{className:"flex-1 relative mt-16 landscape:mt-14 h-[calc(100%-4rem)] landscape:h-[calc(100%-3.5rem)] w-full",children:y.jsx(MD,{initial:!1,custom:n,children:y.jsxs(J4.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&&y.jsx(lB,{manager:u,onTabChange:d}),e===1&&y.jsx(sce,{manager:u}),e===2&&y.jsx(uce,{manager:u}),e===3&&y.jsx(_B,{manager:u,isNightMode:i,initialMmsi:s}),e===4&&y.jsx(fce,{manager:u})]},e)})}),y.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:[y.jsx(xu,{icon:y.jsx(vz,{}),label:"Home",isActive:e===0,onClick:()=>d(0)}),y.jsx(xu,{icon:y.jsx(Cz,{}),label:"Energia",isActive:e===1,onClick:()=>d(1)}),y.jsx(xu,{icon:y.jsx(Mz,{}),label:"Ambiente",isActive:e===2,onClick:()=>d(2)}),y.jsx(xu,{icon:y.jsx(wz,{}),label:"AIS",isActive:e===3,onClick:()=>d(3)}),y.jsx(xu,{icon:y.jsx(Tz,{}),label:"Extra",isActive:e===4,onClick:()=>d(4)})]})]})}const xu=({icon:e,label:t,isActive:n,onClick:r})=>y.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:[I.cloneElement(e,{size:20,strokeWidth:n?2.5:2}),y.jsx("span",{className:`text-[9px] font-black uppercase tracking-tighter ${n?"opacity-100":"opacity-60"}`,children:t})]});lg.createRoot(document.getElementById("root")).render(y.jsx(I.StrictMode,{children:y.jsx(dce,{})}));
|