@sailingrotevista/rotevista-webapp 2.0.4 → 2.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,373 @@
|
|
|
1
|
+
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var Vl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ge(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var PA={exports:{}},qd={},OA={exports:{}},ke={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var bc=Symbol.for("react.element"),YN=Symbol.for("react.portal"),QN=Symbol.for("react.fragment"),JN=Symbol.for("react.strict_mode"),eL=Symbol.for("react.profiler"),tL=Symbol.for("react.provider"),nL=Symbol.for("react.context"),rL=Symbol.for("react.forward_ref"),iL=Symbol.for("react.suspense"),oL=Symbol.for("react.memo"),aL=Symbol.for("react.lazy"),J1=Symbol.iterator;function sL(e){return e===null||typeof e!="object"?null:(e=J1&&e[J1]||e["@@iterator"],typeof e=="function"?e:null)}var TA={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},AA=Object.assign,EA={};function Bs(e,t,n){this.props=e,this.context=t,this.refs=EA,this.updater=n||TA}Bs.prototype.isReactComponent={};Bs.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")};Bs.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function kA(){}kA.prototype=Bs.prototype;function P0(e,t,n){this.props=e,this.context=t,this.refs=EA,this.updater=n||TA}var O0=P0.prototype=new kA;O0.constructor=P0;AA(O0,Bs.prototype);O0.isPureReactComponent=!0;var eb=Array.isArray,MA=Object.prototype.hasOwnProperty,T0={current:null},CA={key:!0,ref:!0,__self:!0,__source:!0};function jA(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)MA.call(t,r)&&!CA.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:bc,type:e,key:o,ref:s,props:i,_owner:T0.current}}function lL(e,t){return{$$typeof:bc,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function A0(e){return typeof e=="object"&&e!==null&&e.$$typeof===bc}function uL(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var tb=/\/+/g;function Pm(e,t){return typeof e=="object"&&e!==null&&e.key!=null?uL(""+e.key):t.toString(36)}function nh(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case bc:case YN:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+Pm(s,0):r,eb(i)?(n="",e!=null&&(n=e.replace(tb,"$&/")+"/"),nh(i,t,n,"",function(f){return f})):i!=null&&(A0(i)&&(i=lL(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(tb,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",eb(e))for(var l=0;l<e.length;l++){o=e[l];var u=r+Pm(o,l);s+=nh(o,t,n,u,i)}else if(u=sL(e),typeof u=="function")for(e=u.call(e),l=0;!(o=e.next()).done;)o=o.value,u=r+Pm(o,l++),s+=nh(o,t,n,u,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function yf(e,t,n){if(e==null)return e;var r=[],i=0;return nh(e,r,"","",function(o){return t.call(n,o,i++)}),r}function cL(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 cn={current:null},rh={transition:null},fL={ReactCurrentDispatcher:cn,ReactCurrentBatchConfig:rh,ReactCurrentOwner:T0};function $A(){throw Error("act(...) is not supported in production builds of React.")}ke.Children={map:yf,forEach:function(e,t,n){yf(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return yf(e,function(){t++}),t},toArray:function(e){return yf(e,function(t){return t})||[]},only:function(e){if(!A0(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ke.Component=Bs;ke.Fragment=QN;ke.Profiler=eL;ke.PureComponent=P0;ke.StrictMode=JN;ke.Suspense=iL;ke.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=fL;ke.act=$A;ke.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=AA({},e.props),i=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=T0.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)MA.call(t,u)&&!CA.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:bc,type:e.type,key:i,ref:o,props:r,_owner:s}};ke.createContext=function(e){return e={$$typeof:nL,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:tL,_context:e},e.Consumer=e};ke.createElement=jA;ke.createFactory=function(e){var t=jA.bind(null,e);return t.type=e,t};ke.createRef=function(){return{current:null}};ke.forwardRef=function(e){return{$$typeof:rL,render:e}};ke.isValidElement=A0;ke.lazy=function(e){return{$$typeof:aL,_payload:{_status:-1,_result:e},_init:cL}};ke.memo=function(e,t){return{$$typeof:oL,type:e,compare:t===void 0?null:t}};ke.startTransition=function(e){var t=rh.transition;rh.transition={};try{e()}finally{rh.transition=t}};ke.unstable_act=$A;ke.useCallback=function(e,t){return cn.current.useCallback(e,t)};ke.useContext=function(e){return cn.current.useContext(e)};ke.useDebugValue=function(){};ke.useDeferredValue=function(e){return cn.current.useDeferredValue(e)};ke.useEffect=function(e,t){return cn.current.useEffect(e,t)};ke.useId=function(){return cn.current.useId()};ke.useImperativeHandle=function(e,t,n){return cn.current.useImperativeHandle(e,t,n)};ke.useInsertionEffect=function(e,t){return cn.current.useInsertionEffect(e,t)};ke.useLayoutEffect=function(e,t){return cn.current.useLayoutEffect(e,t)};ke.useMemo=function(e,t){return cn.current.useMemo(e,t)};ke.useReducer=function(e,t,n){return cn.current.useReducer(e,t,n)};ke.useRef=function(e){return cn.current.useRef(e)};ke.useState=function(e){return cn.current.useState(e)};ke.useSyncExternalStore=function(e,t,n){return cn.current.useSyncExternalStore(e,t,n)};ke.useTransition=function(){return cn.current.useTransition()};ke.version="18.3.1";OA.exports=ke;var j=OA.exports;const I=Ge(j);/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.production.min.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var hL=j,dL=Symbol.for("react.element"),pL=Symbol.for("react.fragment"),mL=Object.prototype.hasOwnProperty,vL=hL.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,gL={key:!0,ref:!0,__self:!0,__source:!0};function NA(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)mL.call(t,r)&&!gL.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:dL,type:e,key:o,ref:s,props:i,_owner:vL.current}}qd.Fragment=pL;qd.jsx=NA;qd.jsxs=NA;PA.exports=qd;var O=PA.exports,Vv={},LA={exports:{}},Bn={},IA={exports:{}},DA={};/**
|
|
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,q){var V=D.length;D.push(q);e:for(;0<V;){var te=V-1>>>1,Y=D[te];if(0<i(Y,q))D[te]=q,D[V]=Y,V=te;else break e}}function n(D){return D.length===0?null:D[0]}function r(D){if(D.length===0)return null;var q=D[0],V=D.pop();if(V!==q){D[0]=V;e:for(var te=0,Y=D.length,ae=Y>>>1;te<ae;){var fe=2*(te+1)-1,he=D[fe],ce=fe+1,Ve=D[ce];if(0>i(he,V))ce<Y&&0>i(Ve,he)?(D[te]=Ve,D[ce]=V,te=ce):(D[te]=he,D[fe]=V,te=fe);else if(ce<Y&&0>i(Ve,V))D[te]=Ve,D[ce]=V,te=ce;else break e}}return q}function i(D,q){var V=D.sortIndex-q.sortIndex;return V!==0?V:D.id-q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var u=[],f=[],h=1,d=null,m=3,v=!1,b=!1,x=!1,S=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(D){for(var q=n(f);q!==null;){if(q.callback===null)r(f);else if(q.startTime<=D)r(f),q.sortIndex=q.expirationTime,t(u,q);else break;q=n(f)}}function E(D){if(x=!1,w(D),!b)if(n(u)!==null)b=!0,Z(P);else{var q=n(f);q!==null&&K(E,q.startTime-D)}}function P(D,q){b=!1,x&&(x=!1,y(C),C=-1),v=!0;var V=m;try{for(w(q),d=n(u);d!==null&&(!(d.expirationTime>q)||D&&!z());){var te=d.callback;if(typeof te=="function"){d.callback=null,m=d.priorityLevel;var Y=te(d.expirationTime<=q);q=e.unstable_now(),typeof Y=="function"?d.callback=Y:d===n(u)&&r(u),w(q)}else r(u);d=n(u)}if(d!==null)var ae=!0;else{var fe=n(f);fe!==null&&K(E,fe.startTime-q),ae=!1}return ae}finally{d=null,m=V,v=!1}}var A=!1,M=null,C=-1,$=5,B=-1;function z(){return!(e.unstable_now()-B<$)}function R(){if(M!==null){var D=e.unstable_now();B=D;var q=!0;try{q=M(!0,D)}finally{q?G():(A=!1,M=null)}}else A=!1}var G;if(typeof _=="function")G=function(){_(R)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,H=W.port2;W.port1.onmessage=R,G=function(){H.postMessage(null)}}else G=function(){S(R,0)};function Z(D){M=D,A||(A=!0,G())}function K(D,q){C=S(function(){D(e.unstable_now())},q)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(D){D.callback=null},e.unstable_continueExecution=function(){b||v||(b=!0,Z(P))},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"):$=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 q=3;break;default:q=m}var V=m;m=q;try{return D()}finally{m=V}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(D,q){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var V=m;m=D;try{return q()}finally{m=V}},e.unstable_scheduleCallback=function(D,q,V){var te=e.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?te+V:te):V=te,D){case 1:var Y=-1;break;case 2:Y=250;break;case 5:Y=1073741823;break;case 4:Y=1e4;break;default:Y=5e3}return Y=V+Y,D={id:h++,callback:q,priorityLevel:D,startTime:V,expirationTime:Y,sortIndex:-1},V>te?(D.sortIndex=V,t(f,D),n(u)===null&&D===n(f)&&(x?(y(C),C=-1):x=!0,K(E,V-te))):(D.sortIndex=Y,t(u,D),b||v||(b=!0,Z(P))),D},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(D){var q=m;return function(){var V=m;m=q;try{return D.apply(this,arguments)}finally{m=V}}}})(DA);IA.exports=DA;var yL=IA.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 xL=j,Dn=yL;function re(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var RA=new Set,gu={};function la(e,t){as(e,t),as(e+"Capture",t)}function as(e,t){for(gu[e]=t,e=0;e<t.length;e++)RA.add(t[e])}var gi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Uv=Object.prototype.hasOwnProperty,_L=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,nb={},rb={};function bL(e){return Uv.call(rb,e)?!0:Uv.call(nb,e)?!1:_L.test(e)?rb[e]=!0:(nb[e]=!0,!1)}function wL(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 SL(e,t,n,r){if(t===null||typeof t>"u"||wL(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 fn(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var Zt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Zt[e]=new fn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Zt[t]=new fn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Zt[e]=new fn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Zt[e]=new fn(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Zt[e]=new fn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Zt[e]=new fn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Zt[e]=new fn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Zt[e]=new fn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Zt[e]=new fn(e,5,!1,e.toLowerCase(),null,!1,!1)});var E0=/[\-:]([a-z])/g;function k0(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(E0,k0);Zt[t]=new fn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(E0,k0);Zt[t]=new fn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(E0,k0);Zt[t]=new fn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Zt[e]=new fn(e,1,!1,e.toLowerCase(),null,!1,!1)});Zt.xlinkHref=new fn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Zt[e]=new fn(e,1,!1,e.toLowerCase(),null,!0,!0)});function M0(e,t,n,r){var i=Zt.hasOwnProperty(t)?Zt[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(SL(t,n,i,r)&&(n=null),r||i===null?bL(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 Ti=xL.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,xf=Symbol.for("react.element"),Ma=Symbol.for("react.portal"),Ca=Symbol.for("react.fragment"),C0=Symbol.for("react.strict_mode"),Wv=Symbol.for("react.profiler"),zA=Symbol.for("react.provider"),BA=Symbol.for("react.context"),j0=Symbol.for("react.forward_ref"),Hv=Symbol.for("react.suspense"),Zv=Symbol.for("react.suspense_list"),$0=Symbol.for("react.memo"),Bi=Symbol.for("react.lazy"),FA=Symbol.for("react.offscreen"),ib=Symbol.iterator;function wl(e){return e===null||typeof e!="object"?null:(e=ib&&e[ib]||e["@@iterator"],typeof e=="function"?e:null)}var dt=Object.assign,Om;function Ul(e){if(Om===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Om=t&&t[1]||""}return`
|
|
34
|
+
`+Om+e}var Tm=!1;function Am(e,t){if(!e||Tm)return"";Tm=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(f){var r=f}Reflect.construct(e,[],t)}else{try{t.call()}catch(f){r=f}e.call(t.prototype)}else{try{throw Error()}catch(f){r=f}e()}}catch(f){if(f&&r&&typeof f.stack=="string"){for(var i=f.stack.split(`
|
|
35
|
+
`),o=r.stack.split(`
|
|
36
|
+
`),s=i.length-1,l=o.length-1;1<=s&&0<=l&&i[s]!==o[l];)l--;for(;1<=s&&0<=l;s--,l--)if(i[s]!==o[l]){if(s!==1||l!==1)do if(s--,l--,0>l||i[s]!==o[l]){var u=`
|
|
37
|
+
`+i[s].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=s&&0<=l);break}}}finally{Tm=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ul(e):""}function PL(e){switch(e.tag){case 5:return Ul(e.type);case 16:return Ul("Lazy");case 13:return Ul("Suspense");case 19:return Ul("SuspenseList");case 0:case 2:case 15:return e=Am(e.type,!1),e;case 11:return e=Am(e.type.render,!1),e;case 1:return e=Am(e.type,!0),e;default:return""}}function Gv(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ca:return"Fragment";case Ma:return"Portal";case Wv:return"Profiler";case C0:return"StrictMode";case Hv:return"Suspense";case Zv:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case BA:return(e.displayName||"Context")+".Consumer";case zA:return(e._context.displayName||"Context")+".Provider";case j0:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $0:return t=e.displayName||null,t!==null?t:Gv(e.type)||"Memo";case Bi:t=e._payload,e=e._init;try{return Gv(e(t))}catch{}}return null}function OL(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Gv(t);case 8:return t===C0?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function oo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function VA(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function TL(e){var t=VA(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function _f(e){e._valueTracker||(e._valueTracker=TL(e))}function UA(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=VA(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function gh(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Kv(e,t){var n=t.checked;return dt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ob(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=oo(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function WA(e,t){t=t.checked,t!=null&&M0(e,"checked",t,!1)}function qv(e,t){WA(e,t);var n=oo(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Xv(e,t.type,n):t.hasOwnProperty("defaultValue")&&Xv(e,t.type,oo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ab(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Xv(e,t,n){(t!=="number"||gh(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Wl=Array.isArray;function Xa(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+oo(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Yv(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(re(91));return dt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function sb(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(re(92));if(Wl(n)){if(1<n.length)throw Error(re(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:oo(n)}}function HA(e,t){var n=oo(t.value),r=oo(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function lb(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function ZA(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Qv(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?ZA(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var bf,GA=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(bf=bf||document.createElement("div"),bf.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=bf.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function 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 Ql={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},AL=["Webkit","ms","Moz","O"];Object.keys(Ql).forEach(function(e){AL.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ql[t]=Ql[e]})});function KA(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ql.hasOwnProperty(e)&&Ql[e]?(""+t).trim():t+"px"}function qA(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=KA(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var EL=dt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Jv(e,t){if(t){if(EL[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(re(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(re(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(re(61))}if(t.style!=null&&typeof t.style!="object")throw Error(re(62))}}function eg(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var tg=null;function N0(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ng=null,Ya=null,Qa=null;function ub(e){if(e=Pc(e)){if(typeof ng!="function")throw Error(re(280));var t=e.stateNode;t&&(t=ep(t),ng(e.stateNode,e.type,t))}}function XA(e){Ya?Qa?Qa.push(e):Qa=[e]:Ya=e}function YA(){if(Ya){var e=Ya,t=Qa;if(Qa=Ya=null,ub(e),t)for(e=0;e<t.length;e++)ub(t[e])}}function QA(e,t){return e(t)}function JA(){}var Em=!1;function e2(e,t,n){if(Em)return e(t,n);Em=!0;try{return QA(e,t,n)}finally{Em=!1,(Ya!==null||Qa!==null)&&(JA(),YA())}}function xu(e,t){var n=e.stateNode;if(n===null)return null;var r=ep(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(re(231,t,typeof n));return n}var rg=!1;if(gi)try{var Sl={};Object.defineProperty(Sl,"passive",{get:function(){rg=!0}}),window.addEventListener("test",Sl,Sl),window.removeEventListener("test",Sl,Sl)}catch{rg=!1}function kL(e,t,n,r,i,o,s,l,u){var f=Array.prototype.slice.call(arguments,3);try{t.apply(n,f)}catch(h){this.onError(h)}}var Jl=!1,yh=null,xh=!1,ig=null,ML={onError:function(e){Jl=!0,yh=e}};function CL(e,t,n,r,i,o,s,l,u){Jl=!1,yh=null,kL.apply(ML,arguments)}function jL(e,t,n,r,i,o,s,l,u){if(CL.apply(this,arguments),Jl){if(Jl){var f=yh;Jl=!1,yh=null}else throw Error(re(198));xh||(xh=!0,ig=f)}}function ua(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 t2(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function cb(e){if(ua(e)!==e)throw Error(re(188))}function $L(e){var t=e.alternate;if(!t){if(t=ua(e),t===null)throw Error(re(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return cb(i),e;if(o===r)return cb(i),t;o=o.sibling}throw Error(re(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s)throw Error(re(189))}}if(n.alternate!==r)throw Error(re(190))}if(n.tag!==3)throw Error(re(188));return n.stateNode.current===n?e:t}function n2(e){return e=$L(e),e!==null?r2(e):null}function r2(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=r2(e);if(t!==null)return t;e=e.sibling}return null}var i2=Dn.unstable_scheduleCallback,fb=Dn.unstable_cancelCallback,NL=Dn.unstable_shouldYield,LL=Dn.unstable_requestPaint,_t=Dn.unstable_now,IL=Dn.unstable_getCurrentPriorityLevel,L0=Dn.unstable_ImmediatePriority,o2=Dn.unstable_UserBlockingPriority,_h=Dn.unstable_NormalPriority,DL=Dn.unstable_LowPriority,a2=Dn.unstable_IdlePriority,Xd=null,zr=null;function RL(e){if(zr&&typeof zr.onCommitFiberRoot=="function")try{zr.onCommitFiberRoot(Xd,e,void 0,(e.current.flags&128)===128)}catch{}}var Pr=Math.clz32?Math.clz32:FL,zL=Math.log,BL=Math.LN2;function FL(e){return e>>>=0,e===0?32:31-(zL(e)/BL|0)|0}var wf=64,Sf=4194304;function Hl(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function bh(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~i;l!==0?r=Hl(l):(o&=s,o!==0&&(r=Hl(o)))}else s=n&~i,s!==0?r=Hl(s):o!==0&&(r=Hl(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-Pr(t),i=1<<n,r|=e[n],t&=~i;return r}function VL(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 UL(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-Pr(o),l=1<<s,u=i[s];u===-1?(!(l&n)||l&r)&&(i[s]=VL(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 s2(){var e=wf;return wf<<=1,!(wf&4194240)&&(wf=64),e}function km(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function wc(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Pr(t),e[t]=n}function WL(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-Pr(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function I0(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Pr(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var Be=0;function l2(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var u2,D0,c2,f2,h2,ag=!1,Pf=[],Xi=null,Yi=null,Qi=null,_u=new Map,bu=new Map,Ui=[],HL="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function hb(e,t){switch(e){case"focusin":case"focusout":Xi=null;break;case"dragenter":case"dragleave":Yi=null;break;case"mouseover":case"mouseout":Qi=null;break;case"pointerover":case"pointerout":_u.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":bu.delete(t.pointerId)}}function Pl(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=Pc(t),t!==null&&D0(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function ZL(e,t,n,r,i){switch(t){case"focusin":return Xi=Pl(Xi,e,t,n,r,i),!0;case"dragenter":return Yi=Pl(Yi,e,t,n,r,i),!0;case"mouseover":return Qi=Pl(Qi,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return _u.set(o,Pl(_u.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,bu.set(o,Pl(bu.get(o)||null,e,t,n,r,i)),!0}return!1}function d2(e){var t=Io(e.target);if(t!==null){var n=ua(t);if(n!==null){if(t=n.tag,t===13){if(t=t2(n),t!==null){e.blockedOn=t,h2(e.priority,function(){c2(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ih(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=sg(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);tg=r,n.target.dispatchEvent(r),tg=null}else return t=Pc(n),t!==null&&D0(t),e.blockedOn=n,!1;t.shift()}return!0}function db(e,t,n){ih(e)&&n.delete(t)}function GL(){ag=!1,Xi!==null&&ih(Xi)&&(Xi=null),Yi!==null&&ih(Yi)&&(Yi=null),Qi!==null&&ih(Qi)&&(Qi=null),_u.forEach(db),bu.forEach(db)}function Ol(e,t){e.blockedOn===t&&(e.blockedOn=null,ag||(ag=!0,Dn.unstable_scheduleCallback(Dn.unstable_NormalPriority,GL)))}function wu(e){function t(i){return Ol(i,e)}if(0<Pf.length){Ol(Pf[0],e);for(var n=1;n<Pf.length;n++){var r=Pf[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Xi!==null&&Ol(Xi,e),Yi!==null&&Ol(Yi,e),Qi!==null&&Ol(Qi,e),_u.forEach(t),bu.forEach(t),n=0;n<Ui.length;n++)r=Ui[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Ui.length&&(n=Ui[0],n.blockedOn===null);)d2(n),n.blockedOn===null&&Ui.shift()}var Ja=Ti.ReactCurrentBatchConfig,wh=!0;function KL(e,t,n,r){var i=Be,o=Ja.transition;Ja.transition=null;try{Be=1,R0(e,t,n,r)}finally{Be=i,Ja.transition=o}}function qL(e,t,n,r){var i=Be,o=Ja.transition;Ja.transition=null;try{Be=4,R0(e,t,n,r)}finally{Be=i,Ja.transition=o}}function R0(e,t,n,r){if(wh){var i=sg(e,t,n,r);if(i===null)zm(e,t,r,Sh,n),hb(e,r);else if(ZL(i,e,t,n,r))r.stopPropagation();else if(hb(e,r),t&4&&-1<HL.indexOf(e)){for(;i!==null;){var o=Pc(i);if(o!==null&&u2(o),o=sg(e,t,n,r),o===null&&zm(e,t,r,Sh,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else zm(e,t,r,null,n)}}var Sh=null;function sg(e,t,n,r){if(Sh=null,e=N0(r),e=Io(e),e!==null)if(t=ua(e),t===null)e=null;else if(n=t.tag,n===13){if(e=t2(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Sh=e,null}function 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(IL()){case L0:return 1;case o2:return 4;case _h:case DL:return 16;case a2:return 536870912;default:return 16}default:return 16}}var Zi=null,z0=null,oh=null;function m2(){if(oh)return oh;var e,t=z0,n=t.length,r,i="value"in Zi?Zi.value:Zi.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===i[o-r];r++);return oh=i.slice(e,1<r?1-r:void 0)}function ah(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Of(){return!0}function pb(){return!1}function Fn(e){function t(n,r,i,o,s){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(o):o[l]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Of:pb,this.isPropagationStopped=pb,this}return dt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Of)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Of)},persist:function(){},isPersistent:Of}),t}var Fs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},B0=Fn(Fs),Sc=dt({},Fs,{view:0,detail:0}),XL=Fn(Sc),Mm,Cm,Tl,Yd=dt({},Sc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:F0,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Tl&&(Tl&&e.type==="mousemove"?(Mm=e.screenX-Tl.screenX,Cm=e.screenY-Tl.screenY):Cm=Mm=0,Tl=e),Mm)},movementY:function(e){return"movementY"in e?e.movementY:Cm}}),mb=Fn(Yd),YL=dt({},Yd,{dataTransfer:0}),QL=Fn(YL),JL=dt({},Sc,{relatedTarget:0}),jm=Fn(JL),eI=dt({},Fs,{animationName:0,elapsedTime:0,pseudoElement:0}),tI=Fn(eI),nI=dt({},Fs,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),rI=Fn(nI),iI=dt({},Fs,{data:0}),vb=Fn(iI),oI={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},aI={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"},sI={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function lI(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=sI[e])?!!t[e]:!1}function F0(){return lI}var uI=dt({},Sc,{key:function(e){if(e.key){var t=oI[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ah(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?aI[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:F0,charCode:function(e){return e.type==="keypress"?ah(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ah(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),cI=Fn(uI),fI=dt({},Yd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),gb=Fn(fI),hI=dt({},Sc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:F0}),dI=Fn(hI),pI=dt({},Fs,{propertyName:0,elapsedTime:0,pseudoElement:0}),mI=Fn(pI),vI=dt({},Yd,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),gI=Fn(vI),yI=[9,13,27,32],V0=gi&&"CompositionEvent"in window,eu=null;gi&&"documentMode"in document&&(eu=document.documentMode);var xI=gi&&"TextEvent"in window&&!eu,v2=gi&&(!V0||eu&&8<eu&&11>=eu),yb=" ",xb=!1;function g2(e,t){switch(e){case"keyup":return yI.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function y2(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ja=!1;function _I(e,t){switch(e){case"compositionend":return y2(t);case"keypress":return t.which!==32?null:(xb=!0,yb);case"textInput":return e=t.data,e===yb&&xb?null:e;default:return null}}function bI(e,t){if(ja)return e==="compositionend"||!V0&&g2(e,t)?(e=m2(),oh=z0=Zi=null,ja=!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 v2&&t.locale!=="ko"?null:t.data;default:return null}}var wI={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function _b(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!wI[e.type]:t==="textarea"}function x2(e,t,n,r){XA(r),t=Ph(t,"onChange"),0<t.length&&(n=new B0("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var tu=null,Su=null;function SI(e){M2(e,0)}function Qd(e){var t=La(e);if(UA(t))return e}function PI(e,t){if(e==="change")return t}var _2=!1;if(gi){var $m;if(gi){var Nm="oninput"in document;if(!Nm){var bb=document.createElement("div");bb.setAttribute("oninput","return;"),Nm=typeof bb.oninput=="function"}$m=Nm}else $m=!1;_2=$m&&(!document.documentMode||9<document.documentMode)}function wb(){tu&&(tu.detachEvent("onpropertychange",b2),Su=tu=null)}function b2(e){if(e.propertyName==="value"&&Qd(Su)){var t=[];x2(t,Su,e,N0(e)),e2(SI,t)}}function OI(e,t,n){e==="focusin"?(wb(),tu=t,Su=n,tu.attachEvent("onpropertychange",b2)):e==="focusout"&&wb()}function TI(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Qd(Su)}function AI(e,t){if(e==="click")return Qd(t)}function EI(e,t){if(e==="input"||e==="change")return Qd(t)}function kI(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ar=typeof Object.is=="function"?Object.is:kI;function Pu(e,t){if(Ar(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Uv.call(t,i)||!Ar(e[i],t[i]))return!1}return!0}function Sb(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Pb(e,t){var n=Sb(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Sb(n)}}function w2(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?w2(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function S2(){for(var e=window,t=gh();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=gh(e.document)}return t}function U0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function MI(e){var t=S2(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&w2(n.ownerDocument.documentElement,n)){if(r!==null&&U0(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=Pb(n,o);var s=Pb(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var CI=gi&&"documentMode"in document&&11>=document.documentMode,$a=null,lg=null,nu=null,ug=!1;function Ob(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ug||$a==null||$a!==gh(r)||(r=$a,"selectionStart"in r&&U0(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),nu&&Pu(nu,r)||(nu=r,r=Ph(lg,"onSelect"),0<r.length&&(t=new B0("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=$a)))}function Tf(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Na={animationend:Tf("Animation","AnimationEnd"),animationiteration:Tf("Animation","AnimationIteration"),animationstart:Tf("Animation","AnimationStart"),transitionend:Tf("Transition","TransitionEnd")},Lm={},P2={};gi&&(P2=document.createElement("div").style,"AnimationEvent"in window||(delete Na.animationend.animation,delete Na.animationiteration.animation,delete Na.animationstart.animation),"TransitionEvent"in window||delete Na.transitionend.transition);function Jd(e){if(Lm[e])return Lm[e];if(!Na[e])return e;var t=Na[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in P2)return Lm[e]=t[n];return e}var O2=Jd("animationend"),T2=Jd("animationiteration"),A2=Jd("animationstart"),E2=Jd("transitionend"),k2=new Map,Tb="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function uo(e,t){k2.set(e,t),la(t,[e])}for(var Im=0;Im<Tb.length;Im++){var Dm=Tb[Im],jI=Dm.toLowerCase(),$I=Dm[0].toUpperCase()+Dm.slice(1);uo(jI,"on"+$I)}uo(O2,"onAnimationEnd");uo(T2,"onAnimationIteration");uo(A2,"onAnimationStart");uo("dblclick","onDoubleClick");uo("focusin","onFocus");uo("focusout","onBlur");uo(E2,"onTransitionEnd");as("onMouseEnter",["mouseout","mouseover"]);as("onMouseLeave",["mouseout","mouseover"]);as("onPointerEnter",["pointerout","pointerover"]);as("onPointerLeave",["pointerout","pointerover"]);la("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));la("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));la("onBeforeInput",["compositionend","keypress","textInput","paste"]);la("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));la("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));la("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Zl="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(" "),NI=new Set("cancel close invalid load scroll toggle".split(" ").concat(Zl));function Ab(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,jL(r,t,void 0,e),e.currentTarget=null}function M2(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var s=r.length-1;0<=s;s--){var l=r[s],u=l.instance,f=l.currentTarget;if(l=l.listener,u!==o&&i.isPropagationStopped())break e;Ab(i,l,f),o=u}else for(s=0;s<r.length;s++){if(l=r[s],u=l.instance,f=l.currentTarget,l=l.listener,u!==o&&i.isPropagationStopped())break e;Ab(i,l,f),o=u}}}if(xh)throw e=ig,xh=!1,ig=null,e}function Je(e,t){var n=t[pg];n===void 0&&(n=t[pg]=new Set);var r=e+"__bubble";n.has(r)||(C2(t,e,2,!1),n.add(r))}function Rm(e,t,n){var r=0;t&&(r|=4),C2(n,e,r,t)}var Af="_reactListening"+Math.random().toString(36).slice(2);function Ou(e){if(!e[Af]){e[Af]=!0,RA.forEach(function(n){n!=="selectionchange"&&(NI.has(n)||Rm(n,!1,e),Rm(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Af]||(t[Af]=!0,Rm("selectionchange",!1,t))}}function C2(e,t,n,r){switch(p2(t)){case 1:var i=KL;break;case 4:i=qL;break;default:i=R0}n=i.bind(null,t,n,e),i=void 0,!rg||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function zm(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var l=r.stateNode.containerInfo;if(l===i||l.nodeType===8&&l.parentNode===i)break;if(s===4)for(s=r.return;s!==null;){var u=s.tag;if((u===3||u===4)&&(u=s.stateNode.containerInfo,u===i||u.nodeType===8&&u.parentNode===i))return;s=s.return}for(;l!==null;){if(s=Io(l),s===null)return;if(u=s.tag,u===5||u===6){r=o=s;continue e}l=l.parentNode}}r=r.return}e2(function(){var f=o,h=N0(n),d=[];e:{var m=k2.get(e);if(m!==void 0){var v=B0,b=e;switch(e){case"keypress":if(ah(n)===0)break e;case"keydown":case"keyup":v=cI;break;case"focusin":b="focus",v=jm;break;case"focusout":b="blur",v=jm;break;case"beforeblur":case"afterblur":v=jm;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":v=mb;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=QL;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=dI;break;case O2:case T2:case A2:v=tI;break;case E2:v=mI;break;case"scroll":v=XL;break;case"wheel":v=gI;break;case"copy":case"cut":case"paste":v=rI;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=gb}var x=(t&4)!==0,S=!x&&e==="scroll",y=x?m!==null?m+"Capture":null:m;x=[];for(var _=f,w;_!==null;){w=_;var E=w.stateNode;if(w.tag===5&&E!==null&&(w=E,y!==null&&(E=xu(_,y),E!=null&&x.push(Tu(_,E,w)))),S)break;_=_.return}0<x.length&&(m=new v(m,b,null,n,h),d.push({event:m,listeners:x}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",m&&n!==tg&&(b=n.relatedTarget||n.fromElement)&&(Io(b)||b[yi]))break e;if((v||m)&&(m=h.window===h?h:(m=h.ownerDocument)?m.defaultView||m.parentWindow:window,v?(b=n.relatedTarget||n.toElement,v=f,b=b?Io(b):null,b!==null&&(S=ua(b),b!==S||b.tag!==5&&b.tag!==6)&&(b=null)):(v=null,b=f),v!==b)){if(x=mb,E="onMouseLeave",y="onMouseEnter",_="mouse",(e==="pointerout"||e==="pointerover")&&(x=gb,E="onPointerLeave",y="onPointerEnter",_="pointer"),S=v==null?m:La(v),w=b==null?m:La(b),m=new x(E,_+"leave",v,n,h),m.target=S,m.relatedTarget=w,E=null,Io(h)===f&&(x=new x(y,_+"enter",b,n,h),x.target=w,x.relatedTarget=S,E=x),S=E,v&&b)t:{for(x=v,y=b,_=0,w=x;w;w=Ta(w))_++;for(w=0,E=y;E;E=Ta(E))w++;for(;0<_-w;)x=Ta(x),_--;for(;0<w-_;)y=Ta(y),w--;for(;_--;){if(x===y||y!==null&&x===y.alternate)break t;x=Ta(x),y=Ta(y)}x=null}else x=null;v!==null&&Eb(d,m,v,x,!1),b!==null&&S!==null&&Eb(d,S,b,x,!0)}}e:{if(m=f?La(f):window,v=m.nodeName&&m.nodeName.toLowerCase(),v==="select"||v==="input"&&m.type==="file")var P=PI;else if(_b(m))if(_2)P=EI;else{P=TI;var A=OI}else(v=m.nodeName)&&v.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(P=AI);if(P&&(P=P(e,f))){x2(d,P,n,h);break e}A&&A(e,m,f),e==="focusout"&&(A=m._wrapperState)&&A.controlled&&m.type==="number"&&Xv(m,"number",m.value)}switch(A=f?La(f):window,e){case"focusin":(_b(A)||A.contentEditable==="true")&&($a=A,lg=f,nu=null);break;case"focusout":nu=lg=$a=null;break;case"mousedown":ug=!0;break;case"contextmenu":case"mouseup":case"dragend":ug=!1,Ob(d,n,h);break;case"selectionchange":if(CI)break;case"keydown":case"keyup":Ob(d,n,h)}var M;if(V0)e:{switch(e){case"compositionstart":var C="onCompositionStart";break e;case"compositionend":C="onCompositionEnd";break e;case"compositionupdate":C="onCompositionUpdate";break e}C=void 0}else ja?g2(e,n)&&(C="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(C="onCompositionStart");C&&(v2&&n.locale!=="ko"&&(ja||C!=="onCompositionStart"?C==="onCompositionEnd"&&ja&&(M=m2()):(Zi=h,z0="value"in Zi?Zi.value:Zi.textContent,ja=!0)),A=Ph(f,C),0<A.length&&(C=new vb(C,e,null,n,h),d.push({event:C,listeners:A}),M?C.data=M:(M=y2(n),M!==null&&(C.data=M)))),(M=xI?_I(e,n):bI(e,n))&&(f=Ph(f,"onBeforeInput"),0<f.length&&(h=new vb("onBeforeInput","beforeinput",null,n,h),d.push({event:h,listeners:f}),h.data=M))}M2(d,t)})}function Tu(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ph(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=xu(e,n),o!=null&&r.unshift(Tu(e,o,i)),o=xu(e,t),o!=null&&r.push(Tu(e,o,i))),e=e.return}return r}function Ta(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Eb(e,t,n,r,i){for(var o=t._reactName,s=[];n!==null&&n!==r;){var l=n,u=l.alternate,f=l.stateNode;if(u!==null&&u===r)break;l.tag===5&&f!==null&&(l=f,i?(u=xu(n,o),u!=null&&s.unshift(Tu(n,u,l))):i||(u=xu(n,o),u!=null&&s.push(Tu(n,u,l)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var LI=/\r\n?/g,II=/\u0000|\uFFFD/g;function kb(e){return(typeof e=="string"?e:""+e).replace(LI,`
|
|
38
|
+
`).replace(II,"")}function Ef(e,t,n){if(t=kb(t),kb(e)!==t&&n)throw Error(re(425))}function Oh(){}var cg=null,fg=null;function hg(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var dg=typeof setTimeout=="function"?setTimeout:void 0,DI=typeof clearTimeout=="function"?clearTimeout:void 0,Mb=typeof Promise=="function"?Promise:void 0,RI=typeof queueMicrotask=="function"?queueMicrotask:typeof Mb<"u"?function(e){return Mb.resolve(null).then(e).catch(zI)}:dg;function zI(e){setTimeout(function(){throw e})}function Bm(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),wu(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);wu(t)}function Ji(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Cb(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Vs=Math.random().toString(36).slice(2),Ir="__reactFiber$"+Vs,Au="__reactProps$"+Vs,yi="__reactContainer$"+Vs,pg="__reactEvents$"+Vs,BI="__reactListeners$"+Vs,FI="__reactHandles$"+Vs;function Io(e){var t=e[Ir];if(t)return t;for(var n=e.parentNode;n;){if(t=n[yi]||n[Ir]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Cb(e);e!==null;){if(n=e[Ir])return n;e=Cb(e)}return t}e=n,n=e.parentNode}return null}function Pc(e){return e=e[Ir]||e[yi],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function La(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(re(33))}function ep(e){return e[Au]||null}var mg=[],Ia=-1;function co(e){return{current:e}}function nt(e){0>Ia||(e.current=mg[Ia],mg[Ia]=null,Ia--)}function Qe(e,t){Ia++,mg[Ia]=e.current,e.current=t}var ao={},tn=co(ao),_n=co(!1),Qo=ao;function ss(e,t){var n=e.type.contextTypes;if(!n)return ao;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function bn(e){return e=e.childContextTypes,e!=null}function Th(){nt(_n),nt(tn)}function jb(e,t,n){if(tn.current!==ao)throw Error(re(168));Qe(tn,t),Qe(_n,n)}function j2(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(re(108,OL(e)||"Unknown",i));return dt({},n,r)}function Ah(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ao,Qo=tn.current,Qe(tn,e),Qe(_n,_n.current),!0}function $b(e,t,n){var r=e.stateNode;if(!r)throw Error(re(169));n?(e=j2(e,t,Qo),r.__reactInternalMemoizedMergedChildContext=e,nt(_n),nt(tn),Qe(tn,e)):nt(_n),Qe(_n,n)}var ii=null,tp=!1,Fm=!1;function $2(e){ii===null?ii=[e]:ii.push(e)}function VI(e){tp=!0,$2(e)}function fo(){if(!Fm&&ii!==null){Fm=!0;var e=0,t=Be;try{var n=ii;for(Be=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}ii=null,tp=!1}catch(i){throw ii!==null&&(ii=ii.slice(e+1)),i2(L0,fo),i}finally{Be=t,Fm=!1}}return null}var Da=[],Ra=0,Eh=null,kh=0,er=[],tr=0,Jo=null,ai=1,si="";function ko(e,t){Da[Ra++]=kh,Da[Ra++]=Eh,Eh=e,kh=t}function N2(e,t,n){er[tr++]=ai,er[tr++]=si,er[tr++]=Jo,Jo=e;var r=ai;e=si;var i=32-Pr(r)-1;r&=~(1<<i),n+=1;var o=32-Pr(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,ai=1<<32-Pr(t)+i|n<<i|r,si=o+e}else ai=1<<o|n<<i|r,si=e}function W0(e){e.return!==null&&(ko(e,1),N2(e,1,0))}function H0(e){for(;e===Eh;)Eh=Da[--Ra],Da[Ra]=null,kh=Da[--Ra],Da[Ra]=null;for(;e===Jo;)Jo=er[--tr],er[tr]=null,si=er[--tr],er[tr]=null,ai=er[--tr],er[tr]=null}var Ln=null,Nn=null,at=!1,br=null;function L2(e,t){var n=rr(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Nb(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ln=e,Nn=Ji(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ln=e,Nn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Jo!==null?{id:ai,overflow:si}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=rr(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ln=e,Nn=null,!0):!1;default:return!1}}function vg(e){return(e.mode&1)!==0&&(e.flags&128)===0}function gg(e){if(at){var t=Nn;if(t){var n=t;if(!Nb(e,t)){if(vg(e))throw Error(re(418));t=Ji(n.nextSibling);var r=Ln;t&&Nb(e,t)?L2(r,n):(e.flags=e.flags&-4097|2,at=!1,Ln=e)}}else{if(vg(e))throw Error(re(418));e.flags=e.flags&-4097|2,at=!1,Ln=e}}}function Lb(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ln=e}function kf(e){if(e!==Ln)return!1;if(!at)return Lb(e),at=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!hg(e.type,e.memoizedProps)),t&&(t=Nn)){if(vg(e))throw I2(),Error(re(418));for(;t;)L2(e,t),t=Ji(t.nextSibling)}if(Lb(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(re(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Nn=Ji(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Nn=null}}else Nn=Ln?Ji(e.stateNode.nextSibling):null;return!0}function I2(){for(var e=Nn;e;)e=Ji(e.nextSibling)}function ls(){Nn=Ln=null,at=!1}function Z0(e){br===null?br=[e]:br.push(e)}var UI=Ti.ReactCurrentBatchConfig;function Al(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(re(309));var r=n.stateNode}if(!r)throw Error(re(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(s){var l=i.refs;s===null?delete l[o]:l[o]=s},t._stringRef=o,t)}if(typeof e!="string")throw Error(re(284));if(!n._owner)throw Error(re(290,e))}return e}function Mf(e,t){throw e=Object.prototype.toString.call(t),Error(re(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ib(e){var t=e._init;return t(e._payload)}function D2(e){function t(y,_){if(e){var w=y.deletions;w===null?(y.deletions=[_],y.flags|=16):w.push(_)}}function n(y,_){if(!e)return null;for(;_!==null;)t(y,_),_=_.sibling;return null}function r(y,_){for(y=new Map;_!==null;)_.key!==null?y.set(_.key,_):y.set(_.index,_),_=_.sibling;return y}function i(y,_){return y=ro(y,_),y.index=0,y.sibling=null,y}function o(y,_,w){return y.index=w,e?(w=y.alternate,w!==null?(w=w.index,w<_?(y.flags|=2,_):w):(y.flags|=2,_)):(y.flags|=1048576,_)}function s(y){return e&&y.alternate===null&&(y.flags|=2),y}function l(y,_,w,E){return _===null||_.tag!==6?(_=Km(w,y.mode,E),_.return=y,_):(_=i(_,w),_.return=y,_)}function u(y,_,w,E){var P=w.type;return P===Ca?h(y,_,w.props.children,E,w.key):_!==null&&(_.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===Bi&&Ib(P)===_.type)?(E=i(_,w.props),E.ref=Al(y,_,w),E.return=y,E):(E=dh(w.type,w.key,w.props,null,y.mode,E),E.ref=Al(y,_,w),E.return=y,E)}function f(y,_,w,E){return _===null||_.tag!==4||_.stateNode.containerInfo!==w.containerInfo||_.stateNode.implementation!==w.implementation?(_=qm(w,y.mode,E),_.return=y,_):(_=i(_,w.children||[]),_.return=y,_)}function h(y,_,w,E,P){return _===null||_.tag!==7?(_=Go(w,y.mode,E,P),_.return=y,_):(_=i(_,w),_.return=y,_)}function d(y,_,w){if(typeof _=="string"&&_!==""||typeof _=="number")return _=Km(""+_,y.mode,w),_.return=y,_;if(typeof _=="object"&&_!==null){switch(_.$$typeof){case xf:return w=dh(_.type,_.key,_.props,null,y.mode,w),w.ref=Al(y,null,_),w.return=y,w;case Ma:return _=qm(_,y.mode,w),_.return=y,_;case Bi:var E=_._init;return d(y,E(_._payload),w)}if(Wl(_)||wl(_))return _=Go(_,y.mode,w,null),_.return=y,_;Mf(y,_)}return null}function m(y,_,w,E){var P=_!==null?_.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return P!==null?null:l(y,_,""+w,E);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case xf:return w.key===P?u(y,_,w,E):null;case Ma:return w.key===P?f(y,_,w,E):null;case Bi:return P=w._init,m(y,_,P(w._payload),E)}if(Wl(w)||wl(w))return P!==null?null:h(y,_,w,E,null);Mf(y,w)}return null}function v(y,_,w,E,P){if(typeof E=="string"&&E!==""||typeof E=="number")return y=y.get(w)||null,l(_,y,""+E,P);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case xf:return y=y.get(E.key===null?w:E.key)||null,u(_,y,E,P);case Ma:return y=y.get(E.key===null?w:E.key)||null,f(_,y,E,P);case Bi:var A=E._init;return v(y,_,w,A(E._payload),P)}if(Wl(E)||wl(E))return y=y.get(w)||null,h(_,y,E,P,null);Mf(_,E)}return null}function b(y,_,w,E){for(var P=null,A=null,M=_,C=_=0,$=null;M!==null&&C<w.length;C++){M.index>C?($=M,M=null):$=M.sibling;var B=m(y,M,w[C],E);if(B===null){M===null&&(M=$);break}e&&M&&B.alternate===null&&t(y,M),_=o(B,_,C),A===null?P=B:A.sibling=B,A=B,M=$}if(C===w.length)return n(y,M),at&&ko(y,C),P;if(M===null){for(;C<w.length;C++)M=d(y,w[C],E),M!==null&&(_=o(M,_,C),A===null?P=M:A.sibling=M,A=M);return at&&ko(y,C),P}for(M=r(y,M);C<w.length;C++)$=v(M,y,C,w[C],E),$!==null&&(e&&$.alternate!==null&&M.delete($.key===null?C:$.key),_=o($,_,C),A===null?P=$:A.sibling=$,A=$);return e&&M.forEach(function(z){return t(y,z)}),at&&ko(y,C),P}function x(y,_,w,E){var P=wl(w);if(typeof P!="function")throw Error(re(150));if(w=P.call(w),w==null)throw Error(re(151));for(var A=P=null,M=_,C=_=0,$=null,B=w.next();M!==null&&!B.done;C++,B=w.next()){M.index>C?($=M,M=null):$=M.sibling;var z=m(y,M,B.value,E);if(z===null){M===null&&(M=$);break}e&&M&&z.alternate===null&&t(y,M),_=o(z,_,C),A===null?P=z:A.sibling=z,A=z,M=$}if(B.done)return n(y,M),at&&ko(y,C),P;if(M===null){for(;!B.done;C++,B=w.next())B=d(y,B.value,E),B!==null&&(_=o(B,_,C),A===null?P=B:A.sibling=B,A=B);return at&&ko(y,C),P}for(M=r(y,M);!B.done;C++,B=w.next())B=v(M,y,C,B.value,E),B!==null&&(e&&B.alternate!==null&&M.delete(B.key===null?C:B.key),_=o(B,_,C),A===null?P=B:A.sibling=B,A=B);return e&&M.forEach(function(R){return t(y,R)}),at&&ko(y,C),P}function S(y,_,w,E){if(typeof w=="object"&&w!==null&&w.type===Ca&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case xf:e:{for(var P=w.key,A=_;A!==null;){if(A.key===P){if(P=w.type,P===Ca){if(A.tag===7){n(y,A.sibling),_=i(A,w.props.children),_.return=y,y=_;break e}}else if(A.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===Bi&&Ib(P)===A.type){n(y,A.sibling),_=i(A,w.props),_.ref=Al(y,A,w),_.return=y,y=_;break e}n(y,A);break}else t(y,A);A=A.sibling}w.type===Ca?(_=Go(w.props.children,y.mode,E,w.key),_.return=y,y=_):(E=dh(w.type,w.key,w.props,null,y.mode,E),E.ref=Al(y,_,w),E.return=y,y=E)}return s(y);case Ma:e:{for(A=w.key;_!==null;){if(_.key===A)if(_.tag===4&&_.stateNode.containerInfo===w.containerInfo&&_.stateNode.implementation===w.implementation){n(y,_.sibling),_=i(_,w.children||[]),_.return=y,y=_;break e}else{n(y,_);break}else t(y,_);_=_.sibling}_=qm(w,y.mode,E),_.return=y,y=_}return s(y);case Bi:return A=w._init,S(y,_,A(w._payload),E)}if(Wl(w))return b(y,_,w,E);if(wl(w))return x(y,_,w,E);Mf(y,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,_!==null&&_.tag===6?(n(y,_.sibling),_=i(_,w),_.return=y,y=_):(n(y,_),_=Km(w,y.mode,E),_.return=y,y=_),s(y)):n(y,_)}return S}var us=D2(!0),R2=D2(!1),Mh=co(null),Ch=null,za=null,G0=null;function K0(){G0=za=Ch=null}function q0(e){var t=Mh.current;nt(Mh),e._currentValue=t}function yg(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function es(e,t){Ch=e,G0=za=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(yn=!0),e.firstContext=null)}function sr(e){var t=e._currentValue;if(G0!==e)if(e={context:e,memoizedValue:t,next:null},za===null){if(Ch===null)throw Error(re(308));za=e,Ch.dependencies={lanes:0,firstContext:e}}else za=za.next=e;return t}var Do=null;function X0(e){Do===null?Do=[e]:Do.push(e)}function z2(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,X0(t)):(n.next=i.next,i.next=n),t.interleaved=n,xi(e,r)}function xi(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Fi=!1;function Y0(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function B2(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 fi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function eo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,$e&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,xi(e,n)}return i=r.interleaved,i===null?(t.next=t,X0(r)):(t.next=i.next,i.next=t),r.interleaved=t,xi(e,n)}function sh(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,I0(e,n)}}function Db(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function jh(e,t,n,r){var i=e.updateQueue;Fi=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var u=l,f=u.next;u.next=null,s===null?o=f:s.next=f,s=u;var h=e.alternate;h!==null&&(h=h.updateQueue,l=h.lastBaseUpdate,l!==s&&(l===null?h.firstBaseUpdate=f:l.next=f,h.lastBaseUpdate=u))}if(o!==null){var d=i.baseState;s=0,h=f=u=null,l=o;do{var m=l.lane,v=l.eventTime;if((r&m)===m){h!==null&&(h=h.next={eventTime:v,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var b=e,x=l;switch(m=t,v=n,x.tag){case 1:if(b=x.payload,typeof b=="function"){d=b.call(v,d,m);break e}d=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=x.payload,m=typeof b=="function"?b.call(v,d,m):b,m==null)break e;d=dt({},d,m);break e;case 2:Fi=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,m=i.effects,m===null?i.effects=[l]:m.push(l))}else v={eventTime:v,lane:m,tag:l.tag,payload:l.payload,callback:l.callback,next:null},h===null?(f=h=v,u=d):h=h.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(h===null&&(u=d),i.baseState=u,i.firstBaseUpdate=f,i.lastBaseUpdate=h,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);ta|=s,e.lanes=s,e.memoizedState=d}}function Rb(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(re(191,i));i.call(r)}}}var Oc={},Br=co(Oc),Eu=co(Oc),ku=co(Oc);function Ro(e){if(e===Oc)throw Error(re(174));return e}function Q0(e,t){switch(Qe(ku,t),Qe(Eu,e),Qe(Br,Oc),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Qv(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Qv(t,e)}nt(Br),Qe(Br,t)}function cs(){nt(Br),nt(Eu),nt(ku)}function F2(e){Ro(ku.current);var t=Ro(Br.current),n=Qv(t,e.type);t!==n&&(Qe(Eu,e),Qe(Br,n))}function J0(e){Eu.current===e&&(nt(Br),nt(Eu))}var ut=co(0);function $h(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Vm=[];function ex(){for(var e=0;e<Vm.length;e++)Vm[e]._workInProgressVersionPrimary=null;Vm.length=0}var lh=Ti.ReactCurrentDispatcher,Um=Ti.ReactCurrentBatchConfig,ea=0,ht=null,kt=null,It=null,Nh=!1,ru=!1,Mu=0,WI=0;function Gt(){throw Error(re(321))}function tx(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ar(e[n],t[n]))return!1;return!0}function nx(e,t,n,r,i,o){if(ea=o,ht=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,lh.current=e===null||e.memoizedState===null?KI:qI,e=n(r,i),ru){o=0;do{if(ru=!1,Mu=0,25<=o)throw Error(re(301));o+=1,It=kt=null,t.updateQueue=null,lh.current=XI,e=n(r,i)}while(ru)}if(lh.current=Lh,t=kt!==null&&kt.next!==null,ea=0,It=kt=ht=null,Nh=!1,t)throw Error(re(300));return e}function rx(){var e=Mu!==0;return Mu=0,e}function Lr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return It===null?ht.memoizedState=It=e:It=It.next=e,It}function lr(){if(kt===null){var e=ht.alternate;e=e!==null?e.memoizedState:null}else e=kt.next;var t=It===null?ht.memoizedState:It.next;if(t!==null)It=t,kt=e;else{if(e===null)throw Error(re(310));kt=e,e={memoizedState:kt.memoizedState,baseState:kt.baseState,baseQueue:kt.baseQueue,queue:kt.queue,next:null},It===null?ht.memoizedState=It=e:It=It.next=e}return It}function Cu(e,t){return typeof t=="function"?t(e):t}function Wm(e){var t=lr(),n=t.queue;if(n===null)throw Error(re(311));n.lastRenderedReducer=e;var r=kt,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var l=s=null,u=null,f=o;do{var h=f.lane;if((ea&h)===h)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 d={lane:h,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null};u===null?(l=u=d,s=r):u=u.next=d,ht.lanes|=h,ta|=h}f=f.next}while(f!==null&&f!==o);u===null?s=r:u.next=l,Ar(r,t.memoizedState)||(yn=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,ht.lanes|=o,ta|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Hm(e){var t=lr(),n=t.queue;if(n===null)throw Error(re(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);Ar(o,t.memoizedState)||(yn=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function V2(){}function U2(e,t){var n=ht,r=lr(),i=t(),o=!Ar(r.memoizedState,i);if(o&&(r.memoizedState=i,yn=!0),r=r.queue,ix(Z2.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||It!==null&&It.memoizedState.tag&1){if(n.flags|=2048,ju(9,H2.bind(null,n,r,i,t),void 0,null),Dt===null)throw Error(re(349));ea&30||W2(n,t,i)}return i}function W2(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ht.updateQueue,t===null?(t={lastEffect:null,stores:null},ht.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function H2(e,t,n,r){t.value=n,t.getSnapshot=r,G2(t)&&K2(e)}function Z2(e,t,n){return n(function(){G2(t)&&K2(e)})}function G2(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ar(e,n)}catch{return!0}}function K2(e){var t=xi(e,1);t!==null&&Or(t,e,1,-1)}function zb(e){var t=Lr();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Cu,lastRenderedState:e},t.queue=e,e=e.dispatch=GI.bind(null,ht,e),[t.memoizedState,e]}function ju(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ht.updateQueue,t===null?(t={lastEffect:null,stores:null},ht.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function q2(){return lr().memoizedState}function uh(e,t,n,r){var i=Lr();ht.flags|=e,i.memoizedState=ju(1|t,n,void 0,r===void 0?null:r)}function np(e,t,n,r){var i=lr();r=r===void 0?null:r;var o=void 0;if(kt!==null){var s=kt.memoizedState;if(o=s.destroy,r!==null&&tx(r,s.deps)){i.memoizedState=ju(t,n,o,r);return}}ht.flags|=e,i.memoizedState=ju(1|t,n,o,r)}function Bb(e,t){return uh(8390656,8,e,t)}function ix(e,t){return np(2048,8,e,t)}function X2(e,t){return np(4,2,e,t)}function Y2(e,t){return np(4,4,e,t)}function Q2(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 J2(e,t,n){return n=n!=null?n.concat([e]):null,np(4,4,Q2.bind(null,t,e),n)}function ox(){}function eE(e,t){var n=lr();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&tx(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function tE(e,t){var n=lr();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&tx(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function nE(e,t,n){return ea&21?(Ar(n,t)||(n=s2(),ht.lanes|=n,ta|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,yn=!0),e.memoizedState=n)}function HI(e,t){var n=Be;Be=n!==0&&4>n?n:4,e(!0);var r=Um.transition;Um.transition={};try{e(!1),t()}finally{Be=n,Um.transition=r}}function rE(){return lr().memoizedState}function ZI(e,t,n){var r=no(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},iE(e))oE(t,n);else if(n=z2(e,t,n,r),n!==null){var i=un();Or(n,e,r,i),aE(n,t,r)}}function GI(e,t,n){var r=no(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(iE(e))oE(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,Ar(l,s)){var u=t.interleaved;u===null?(i.next=i,X0(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}n=z2(e,t,i,r),n!==null&&(i=un(),Or(n,e,r,i),aE(n,t,r))}}function iE(e){var t=e.alternate;return e===ht||t!==null&&t===ht}function oE(e,t){ru=Nh=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function aE(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,I0(e,n)}}var Lh={readContext:sr,useCallback:Gt,useContext:Gt,useEffect:Gt,useImperativeHandle:Gt,useInsertionEffect:Gt,useLayoutEffect:Gt,useMemo:Gt,useReducer:Gt,useRef:Gt,useState:Gt,useDebugValue:Gt,useDeferredValue:Gt,useTransition:Gt,useMutableSource:Gt,useSyncExternalStore:Gt,useId:Gt,unstable_isNewReconciler:!1},KI={readContext:sr,useCallback:function(e,t){return Lr().memoizedState=[e,t===void 0?null:t],e},useContext:sr,useEffect:Bb,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,uh(4194308,4,Q2.bind(null,t,e),n)},useLayoutEffect:function(e,t){return uh(4194308,4,e,t)},useInsertionEffect:function(e,t){return uh(4,2,e,t)},useMemo:function(e,t){var n=Lr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Lr();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=ZI.bind(null,ht,e),[r.memoizedState,e]},useRef:function(e){var t=Lr();return e={current:e},t.memoizedState=e},useState:zb,useDebugValue:ox,useDeferredValue:function(e){return Lr().memoizedState=e},useTransition:function(){var e=zb(!1),t=e[0];return e=HI.bind(null,e[1]),Lr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ht,i=Lr();if(at){if(n===void 0)throw Error(re(407));n=n()}else{if(n=t(),Dt===null)throw Error(re(349));ea&30||W2(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Bb(Z2.bind(null,r,o,e),[e]),r.flags|=2048,ju(9,H2.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Lr(),t=Dt.identifierPrefix;if(at){var n=si,r=ai;n=(r&~(1<<32-Pr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Mu++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=WI++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},qI={readContext:sr,useCallback:eE,useContext:sr,useEffect:ix,useImperativeHandle:J2,useInsertionEffect:X2,useLayoutEffect:Y2,useMemo:tE,useReducer:Wm,useRef:q2,useState:function(){return Wm(Cu)},useDebugValue:ox,useDeferredValue:function(e){var t=lr();return nE(t,kt.memoizedState,e)},useTransition:function(){var e=Wm(Cu)[0],t=lr().memoizedState;return[e,t]},useMutableSource:V2,useSyncExternalStore:U2,useId:rE,unstable_isNewReconciler:!1},XI={readContext:sr,useCallback:eE,useContext:sr,useEffect:ix,useImperativeHandle:J2,useInsertionEffect:X2,useLayoutEffect:Y2,useMemo:tE,useReducer:Hm,useRef:q2,useState:function(){return Hm(Cu)},useDebugValue:ox,useDeferredValue:function(e){var t=lr();return kt===null?t.memoizedState=e:nE(t,kt.memoizedState,e)},useTransition:function(){var e=Hm(Cu)[0],t=lr().memoizedState;return[e,t]},useMutableSource:V2,useSyncExternalStore:U2,useId:rE,unstable_isNewReconciler:!1};function yr(e,t){if(e&&e.defaultProps){t=dt({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function xg(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:dt({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var rp={isMounted:function(e){return(e=e._reactInternals)?ua(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=un(),i=no(e),o=fi(r,i);o.payload=t,n!=null&&(o.callback=n),t=eo(e,o,i),t!==null&&(Or(t,e,i,r),sh(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=un(),i=no(e),o=fi(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=eo(e,o,i),t!==null&&(Or(t,e,i,r),sh(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=un(),r=no(e),i=fi(n,r);i.tag=2,t!=null&&(i.callback=t),t=eo(e,i,r),t!==null&&(Or(t,e,r,n),sh(t,e,r))}};function Fb(e,t,n,r,i,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,s):t.prototype&&t.prototype.isPureReactComponent?!Pu(n,r)||!Pu(i,o):!0}function sE(e,t,n){var r=!1,i=ao,o=t.contextType;return typeof o=="object"&&o!==null?o=sr(o):(i=bn(t)?Qo:tn.current,r=t.contextTypes,o=(r=r!=null)?ss(e,i):ao),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=rp,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Vb(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&rp.enqueueReplaceState(t,t.state,null)}function _g(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Y0(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=sr(o):(o=bn(t)?Qo:tn.current,i.context=ss(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(xg(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&rp.enqueueReplaceState(i,i.state,null),jh(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function fs(e,t){try{var n="",r=t;do n+=PL(r),r=r.return;while(r);var i=n}catch(o){i=`
|
|
39
|
+
Error generating stack: `+o.message+`
|
|
40
|
+
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function Zm(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function bg(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var YI=typeof WeakMap=="function"?WeakMap:Map;function lE(e,t,n){n=fi(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Dh||(Dh=!0,Cg=r),bg(e,t)},n}function uE(e,t,n){n=fi(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){bg(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){bg(e,t),typeof r!="function"&&(to===null?to=new Set([this]):to.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Ub(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new YI;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=fD.bind(null,e,t,n),t.then(e,e))}function Wb(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Hb(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=fi(-1,1),t.tag=2,eo(n,t,1))),n.lanes|=1),e)}var QI=Ti.ReactCurrentOwner,yn=!1;function sn(e,t,n,r){t.child=e===null?R2(t,null,n,r):us(t,e.child,n,r)}function Zb(e,t,n,r,i){n=n.render;var o=t.ref;return es(t,i),r=nx(e,t,n,r,o,i),n=rx(),e!==null&&!yn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,_i(e,t,i)):(at&&n&&W0(t),t.flags|=1,sn(e,t,r,i),t.child)}function Gb(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!dx(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,cE(e,t,o,r,i)):(e=dh(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:Pu,n(s,r)&&e.ref===t.ref)return _i(e,t,i)}return t.flags|=1,e=ro(o,r),e.ref=t.ref,e.return=t,t.child=e}function cE(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Pu(o,r)&&e.ref===t.ref)if(yn=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(yn=!0);else return t.lanes=e.lanes,_i(e,t,i)}return wg(e,t,n,r,i)}function fE(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Qe(Fa,Cn),Cn|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Qe(Fa,Cn),Cn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Qe(Fa,Cn),Cn|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Qe(Fa,Cn),Cn|=r;return sn(e,t,i,n),t.child}function hE(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function wg(e,t,n,r,i){var o=bn(n)?Qo:tn.current;return o=ss(t,o),es(t,i),n=nx(e,t,n,r,o,i),r=rx(),e!==null&&!yn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,_i(e,t,i)):(at&&r&&W0(t),t.flags|=1,sn(e,t,n,i),t.child)}function Kb(e,t,n,r,i){if(bn(n)){var o=!0;Ah(t)}else o=!1;if(es(t,i),t.stateNode===null)ch(e,t),sE(t,n,r),_g(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,l=t.memoizedProps;s.props=l;var u=s.context,f=n.contextType;typeof f=="object"&&f!==null?f=sr(f):(f=bn(n)?Qo:tn.current,f=ss(t,f));var h=n.getDerivedStateFromProps,d=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function";d||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==r||u!==f)&&Vb(t,s,r,f),Fi=!1;var m=t.memoizedState;s.state=m,jh(t,r,s,i),u=t.memoizedState,l!==r||m!==u||_n.current||Fi?(typeof h=="function"&&(xg(t,n,h,r),u=t.memoizedState),(l=Fi||Fb(t,n,l,r,m,u,f))?(d||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,B2(e,t),l=t.memoizedProps,f=t.type===t.elementType?l:yr(t.type,l),s.props=f,d=t.pendingProps,m=s.context,u=n.contextType,typeof u=="object"&&u!==null?u=sr(u):(u=bn(n)?Qo:tn.current,u=ss(t,u));var v=n.getDerivedStateFromProps;(h=typeof v=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==d||m!==u)&&Vb(t,s,r,u),Fi=!1,m=t.memoizedState,s.state=m,jh(t,r,s,i);var b=t.memoizedState;l!==d||m!==b||_n.current||Fi?(typeof v=="function"&&(xg(t,n,v,r),b=t.memoizedState),(f=Fi||Fb(t,n,f,r,m,b,u)||!1)?(h||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,b,u),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,b,u)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=b),s.props=r,s.state=b,s.context=u,r=f):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return Sg(e,t,n,r,o,i)}function Sg(e,t,n,r,i,o){hE(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&$b(t,n,!1),_i(e,t,o);r=t.stateNode,QI.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)):sn(e,t,l,o),t.memoizedState=r.state,i&&$b(t,n,!0),t.child}function dE(e){var t=e.stateNode;t.pendingContext?jb(e,t.pendingContext,t.pendingContext!==t.context):t.context&&jb(e,t.context,!1),Q0(e,t.containerInfo)}function qb(e,t,n,r,i){return ls(),Z0(i),t.flags|=256,sn(e,t,n,r),t.child}var Pg={dehydrated:null,treeContext:null,retryLane:0};function Og(e){return{baseLanes:e,cachePool:null,transitions:null}}function pE(e,t,n){var r=t.pendingProps,i=ut.current,o=!1,s=(t.flags&128)!==0,l;if((l=s)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Qe(ut,i&1),e===null)return gg(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,o?(r=t.mode,o=t.child,s={mode:"hidden",children:s},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=ap(s,r,0,null),e=Go(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Og(n),t.memoizedState=Pg,e):ax(t,s));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return JI(e,t,s,r,l,i,n);if(o){o=r.fallback,s=t.mode,i=e.child,l=i.sibling;var u={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=ro(i,u),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?o=ro(l,o):(o=Go(o,s,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,s=e.child.memoizedState,s=s===null?Og(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=Pg,r}return o=e.child,e=o.sibling,r=ro(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function ax(e,t){return t=ap({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Cf(e,t,n,r){return r!==null&&Z0(r),us(t,e.child,null,n),e=ax(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function JI(e,t,n,r,i,o,s){if(n)return t.flags&256?(t.flags&=-257,r=Zm(Error(re(422))),Cf(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=ap({mode:"visible",children:r.children},i,0,null),o=Go(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=Og(s),t.memoizedState=Pg,o);if(!(t.mode&1))return Cf(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var l=r.dgst;return r=l,o=Error(re(419)),r=Zm(o,r,void 0),Cf(e,t,s,r)}if(l=(s&e.childLanes)!==0,yn||l){if(r=Dt,r!==null){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|s)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,xi(e,i),Or(r,e,i,-1))}return hx(),r=Zm(Error(re(421))),Cf(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=hD.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Nn=Ji(i.nextSibling),Ln=t,at=!0,br=null,e!==null&&(er[tr++]=ai,er[tr++]=si,er[tr++]=Jo,ai=e.id,si=e.overflow,Jo=t),t=ax(t,r.children),t.flags|=4096,t)}function Xb(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),yg(e.return,t,n)}function Gm(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function mE(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(sn(e,t,r.children,n),r=ut.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Xb(e,n,t);else if(e.tag===19)Xb(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Qe(ut,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&$h(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Gm(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&$h(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Gm(t,!0,n,null,o);break;case"together":Gm(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ch(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function _i(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ta|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(re(153));if(t.child!==null){for(e=t.child,n=ro(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ro(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function eD(e,t,n){switch(t.tag){case 3:dE(t),ls();break;case 5:F2(t);break;case 1:bn(t.type)&&Ah(t);break;case 4:Q0(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Qe(Mh,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Qe(ut,ut.current&1),t.flags|=128,null):n&t.child.childLanes?pE(e,t,n):(Qe(ut,ut.current&1),e=_i(e,t,n),e!==null?e.sibling:null);Qe(ut,ut.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return mE(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Qe(ut,ut.current),r)break;return null;case 22:case 23:return t.lanes=0,fE(e,t,n)}return _i(e,t,n)}var vE,Tg,gE,yE;vE=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Tg=function(){};gE=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Ro(Br.current);var o=null;switch(n){case"input":i=Kv(e,i),r=Kv(e,r),o=[];break;case"select":i=dt({},i,{value:void 0}),r=dt({},r,{value:void 0}),o=[];break;case"textarea":i=Yv(e,i),r=Yv(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Oh)}Jv(n,r);var s;n=null;for(f in i)if(!r.hasOwnProperty(f)&&i.hasOwnProperty(f)&&i[f]!=null)if(f==="style"){var l=i[f];for(s in l)l.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else f!=="dangerouslySetInnerHTML"&&f!=="children"&&f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&f!=="autoFocus"&&(gu.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"&&(gu.hasOwnProperty(f)?(u!=null&&f==="onScroll"&&Je("scroll",e),o||l===u||(o=[])):(o=o||[]).push(f,u))}n&&(o=o||[]).push("style",n);var f=o;(t.updateQueue=f)&&(t.flags|=4)}};yE=function(e,t,n,r){n!==r&&(t.flags|=4)};function El(e,t){if(!at)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Kt(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 tD(e,t,n){var r=t.pendingProps;switch(H0(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Kt(t),null;case 1:return bn(t.type)&&Th(),Kt(t),null;case 3:return r=t.stateNode,cs(),nt(_n),nt(tn),ex(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(kf(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,br!==null&&(Ng(br),br=null))),Tg(e,t),Kt(t),null;case 5:J0(t);var i=Ro(ku.current);if(n=t.type,e!==null&&t.stateNode!=null)gE(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(re(166));return Kt(t),null}if(e=Ro(Br.current),kf(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Ir]=t,r[Au]=o,e=(t.mode&1)!==0,n){case"dialog":Je("cancel",r),Je("close",r);break;case"iframe":case"object":case"embed":Je("load",r);break;case"video":case"audio":for(i=0;i<Zl.length;i++)Je(Zl[i],r);break;case"source":Je("error",r);break;case"img":case"image":case"link":Je("error",r),Je("load",r);break;case"details":Je("toggle",r);break;case"input":ob(r,o),Je("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Je("invalid",r);break;case"textarea":sb(r,o),Je("invalid",r)}Jv(n,o),i=null;for(var s in o)if(o.hasOwnProperty(s)){var l=o[s];s==="children"?typeof l=="string"?r.textContent!==l&&(o.suppressHydrationWarning!==!0&&Ef(r.textContent,l,e),i=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(o.suppressHydrationWarning!==!0&&Ef(r.textContent,l,e),i=["children",""+l]):gu.hasOwnProperty(s)&&l!=null&&s==="onScroll"&&Je("scroll",r)}switch(n){case"input":_f(r),ab(r,o,!0);break;case"textarea":_f(r),lb(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Oh)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=ZA(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[Ir]=t,e[Au]=r,vE(e,t,!1,!1),t.stateNode=e;e:{switch(s=eg(n,r),n){case"dialog":Je("cancel",e),Je("close",e),i=r;break;case"iframe":case"object":case"embed":Je("load",e),i=r;break;case"video":case"audio":for(i=0;i<Zl.length;i++)Je(Zl[i],e);i=r;break;case"source":Je("error",e),i=r;break;case"img":case"image":case"link":Je("error",e),Je("load",e),i=r;break;case"details":Je("toggle",e),i=r;break;case"input":ob(e,r),i=Kv(e,r),Je("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=dt({},r,{value:void 0}),Je("invalid",e);break;case"textarea":sb(e,r),i=Yv(e,r),Je("invalid",e);break;default:i=r}Jv(n,i),l=i;for(o in l)if(l.hasOwnProperty(o)){var u=l[o];o==="style"?qA(e,u):o==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&GA(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"&&(gu.hasOwnProperty(o)?u!=null&&o==="onScroll"&&Je("scroll",e):u!=null&&M0(e,o,u,s))}switch(n){case"input":_f(e),ab(e,r,!1);break;case"textarea":_f(e),lb(e);break;case"option":r.value!=null&&e.setAttribute("value",""+oo(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Xa(e,!!r.multiple,o,!1):r.defaultValue!=null&&Xa(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Oh)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Kt(t),null;case 6:if(e&&t.stateNode!=null)yE(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(re(166));if(n=Ro(ku.current),Ro(Br.current),kf(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ir]=t,(o=r.nodeValue!==n)&&(e=Ln,e!==null))switch(e.tag){case 3:Ef(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ef(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ir]=t,t.stateNode=r}return Kt(t),null;case 13:if(nt(ut),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(at&&Nn!==null&&t.mode&1&&!(t.flags&128))I2(),ls(),t.flags|=98560,o=!1;else if(o=kf(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(re(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(re(317));o[Ir]=t}else ls(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Kt(t),o=!1}else br!==null&&(Ng(br),br=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||ut.current&1?Mt===0&&(Mt=3):hx())),t.updateQueue!==null&&(t.flags|=4),Kt(t),null);case 4:return cs(),Tg(e,t),e===null&&Ou(t.stateNode.containerInfo),Kt(t),null;case 10:return q0(t.type._context),Kt(t),null;case 17:return bn(t.type)&&Th(),Kt(t),null;case 19:if(nt(ut),o=t.memoizedState,o===null)return Kt(t),null;if(r=(t.flags&128)!==0,s=o.rendering,s===null)if(r)El(o,!1);else{if(Mt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=$h(e),s!==null){for(t.flags|=128,El(o,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Qe(ut,ut.current&1|2),t.child}e=e.sibling}o.tail!==null&&_t()>hs&&(t.flags|=128,r=!0,El(o,!1),t.lanes=4194304)}else{if(!r)if(e=$h(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),El(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!at)return Kt(t),null}else 2*_t()-o.renderingStartTime>hs&&n!==1073741824&&(t.flags|=128,r=!0,El(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=_t(),t.sibling=null,n=ut.current,Qe(ut,r?n&1|2:n&1),t):(Kt(t),null);case 22:case 23:return fx(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Cn&1073741824&&(Kt(t),t.subtreeFlags&6&&(t.flags|=8192)):Kt(t),null;case 24:return null;case 25:return null}throw Error(re(156,t.tag))}function nD(e,t){switch(H0(t),t.tag){case 1:return bn(t.type)&&Th(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return cs(),nt(_n),nt(tn),ex(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return J0(t),null;case 13:if(nt(ut),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(re(340));ls()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return nt(ut),null;case 4:return cs(),null;case 10:return q0(t.type._context),null;case 22:case 23:return fx(),null;case 24:return null;default:return null}}var jf=!1,Yt=!1,rD=typeof WeakSet=="function"?WeakSet:Set,le=null;function Ba(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){vt(e,t,r)}else n.current=null}function Ag(e,t,n){try{n()}catch(r){vt(e,t,r)}}var Yb=!1;function iD(e,t){if(cg=wh,e=S2(),U0(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,l=-1,u=-1,f=0,h=0,d=e,m=null;t:for(;;){for(var v;d!==n||i!==0&&d.nodeType!==3||(l=s+i),d!==o||r!==0&&d.nodeType!==3||(u=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(v=d.firstChild)!==null;)m=d,d=v;for(;;){if(d===e)break t;if(m===n&&++f===i&&(l=s),m===o&&++h===r&&(u=s),(v=d.nextSibling)!==null)break;d=m,m=d.parentNode}d=v}n=l===-1||u===-1?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(fg={focusedElem:e,selectionRange:n},wh=!1,le=t;le!==null;)if(t=le,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,le=e;else for(;le!==null;){t=le;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var x=b.memoizedProps,S=b.memoizedState,y=t.stateNode,_=y.getSnapshotBeforeUpdate(t.elementType===t.type?x:yr(t.type,x),S);y.__reactInternalSnapshotBeforeUpdate=_}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(re(163))}}catch(E){vt(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,le=e;break}le=t.return}return b=Yb,Yb=!1,b}function 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&&Ag(t,n,o)}i=i.next}while(i!==r)}}function ip(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Eg(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function xE(e){var t=e.alternate;t!==null&&(e.alternate=null,xE(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ir],delete t[Au],delete t[pg],delete t[BI],delete t[FI])),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 _E(e){return e.tag===5||e.tag===3||e.tag===4}function Qb(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||_E(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function kg(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Oh));else if(r!==4&&(e=e.child,e!==null))for(kg(e,t,n),e=e.sibling;e!==null;)kg(e,t,n),e=e.sibling}function Mg(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Mg(e,t,n),e=e.sibling;e!==null;)Mg(e,t,n),e=e.sibling}var Vt=null,xr=!1;function Di(e,t,n){for(n=n.child;n!==null;)bE(e,t,n),n=n.sibling}function bE(e,t,n){if(zr&&typeof zr.onCommitFiberUnmount=="function")try{zr.onCommitFiberUnmount(Xd,n)}catch{}switch(n.tag){case 5:Yt||Ba(n,t);case 6:var r=Vt,i=xr;Vt=null,Di(e,t,n),Vt=r,xr=i,Vt!==null&&(xr?(e=Vt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Vt.removeChild(n.stateNode));break;case 18:Vt!==null&&(xr?(e=Vt,n=n.stateNode,e.nodeType===8?Bm(e.parentNode,n):e.nodeType===1&&Bm(e,n),wu(e)):Bm(Vt,n.stateNode));break;case 4:r=Vt,i=xr,Vt=n.stateNode.containerInfo,xr=!0,Di(e,t,n),Vt=r,xr=i;break;case 0:case 11:case 14:case 15:if(!Yt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&Ag(n,t,s),i=i.next}while(i!==r)}Di(e,t,n);break;case 1:if(!Yt&&(Ba(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){vt(n,t,l)}Di(e,t,n);break;case 21:Di(e,t,n);break;case 22:n.mode&1?(Yt=(r=Yt)||n.memoizedState!==null,Di(e,t,n),Yt=r):Di(e,t,n);break;default:Di(e,t,n)}}function Jb(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new rD),t.forEach(function(r){var i=dD.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function mr(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,s=t,l=s;e:for(;l!==null;){switch(l.tag){case 5:Vt=l.stateNode,xr=!1;break e;case 3:Vt=l.stateNode.containerInfo,xr=!0;break e;case 4:Vt=l.stateNode.containerInfo,xr=!0;break e}l=l.return}if(Vt===null)throw Error(re(160));bE(o,s,i),Vt=null,xr=!1;var u=i.alternate;u!==null&&(u.return=null),i.return=null}catch(f){vt(i,t,f)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)wE(t,e),t=t.sibling}function wE(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(mr(t,e),Nr(e),r&4){try{iu(3,e,e.return),ip(3,e)}catch(x){vt(e,e.return,x)}try{iu(5,e,e.return)}catch(x){vt(e,e.return,x)}}break;case 1:mr(t,e),Nr(e),r&512&&n!==null&&Ba(n,n.return);break;case 5:if(mr(t,e),Nr(e),r&512&&n!==null&&Ba(n,n.return),e.flags&32){var i=e.stateNode;try{yu(i,"")}catch(x){vt(e,e.return,x)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,s=n!==null?n.memoizedProps:o,l=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{l==="input"&&o.type==="radio"&&o.name!=null&&WA(i,o),eg(l,s);var f=eg(l,o);for(s=0;s<u.length;s+=2){var h=u[s],d=u[s+1];h==="style"?qA(i,d):h==="dangerouslySetInnerHTML"?GA(i,d):h==="children"?yu(i,d):M0(i,h,d,f)}switch(l){case"input":qv(i,o);break;case"textarea":HA(i,o);break;case"select":var m=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var v=o.value;v!=null?Xa(i,!!o.multiple,v,!1):m!==!!o.multiple&&(o.defaultValue!=null?Xa(i,!!o.multiple,o.defaultValue,!0):Xa(i,!!o.multiple,o.multiple?[]:"",!1))}i[Au]=o}catch(x){vt(e,e.return,x)}}break;case 6:if(mr(t,e),Nr(e),r&4){if(e.stateNode===null)throw Error(re(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(x){vt(e,e.return,x)}}break;case 3:if(mr(t,e),Nr(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{wu(t.containerInfo)}catch(x){vt(e,e.return,x)}break;case 4:mr(t,e),Nr(e);break;case 13:mr(t,e),Nr(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(ux=_t())),r&4&&Jb(e);break;case 22:if(h=n!==null&&n.memoizedState!==null,e.mode&1?(Yt=(f=Yt)||h,mr(t,e),Yt=f):mr(t,e),Nr(e),r&8192){if(f=e.memoizedState!==null,(e.stateNode.isHidden=f)&&!h&&e.mode&1)for(le=e,h=e.child;h!==null;){for(d=le=h;le!==null;){switch(m=le,v=m.child,m.tag){case 0:case 11:case 14:case 15:iu(4,m,m.return);break;case 1:Ba(m,m.return);var b=m.stateNode;if(typeof b.componentWillUnmount=="function"){r=m,n=m.return;try{t=r,b.props=t.memoizedProps,b.state=t.memoizedState,b.componentWillUnmount()}catch(x){vt(r,n,x)}}break;case 5:Ba(m,m.return);break;case 22:if(m.memoizedState!==null){tw(d);continue}}v!==null?(v.return=m,le=v):tw(d)}h=h.sibling}e:for(h=null,d=e;;){if(d.tag===5){if(h===null){h=d;try{i=d.stateNode,f?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(l=d.stateNode,u=d.memoizedProps.style,s=u!=null&&u.hasOwnProperty("display")?u.display:null,l.style.display=KA("display",s))}catch(x){vt(e,e.return,x)}}}else if(d.tag===6){if(h===null)try{d.stateNode.nodeValue=f?"":d.memoizedProps}catch(x){vt(e,e.return,x)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;h===d&&(h=null),d=d.return}h===d&&(h=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:mr(t,e),Nr(e),r&4&&Jb(e);break;case 21:break;default:mr(t,e),Nr(e)}}function Nr(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(_E(n)){var r=n;break e}n=n.return}throw Error(re(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(yu(i,""),r.flags&=-33);var o=Qb(e);Mg(e,o,i);break;case 3:case 4:var s=r.stateNode.containerInfo,l=Qb(e);kg(e,l,s);break;default:throw Error(re(161))}}catch(u){vt(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function oD(e,t,n){le=e,SE(e)}function SE(e,t,n){for(var r=(e.mode&1)!==0;le!==null;){var i=le,o=i.child;if(i.tag===22&&r){var s=i.memoizedState!==null||jf;if(!s){var l=i.alternate,u=l!==null&&l.memoizedState!==null||Yt;l=jf;var f=Yt;if(jf=s,(Yt=u)&&!f)for(le=i;le!==null;)s=le,u=s.child,s.tag===22&&s.memoizedState!==null?nw(i):u!==null?(u.return=s,le=u):nw(i);for(;o!==null;)le=o,SE(o),o=o.sibling;le=i,jf=l,Yt=f}ew(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,le=o):ew(e)}}function ew(e){for(;le!==null;){var t=le;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Yt||ip(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Yt)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:yr(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&Rb(t,o,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Rb(t,s,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var f=t.alternate;if(f!==null){var h=f.memoizedState;if(h!==null){var d=h.dehydrated;d!==null&&wu(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(re(163))}Yt||t.flags&512&&Eg(t)}catch(m){vt(t,t.return,m)}}if(t===e){le=null;break}if(n=t.sibling,n!==null){n.return=t.return,le=n;break}le=t.return}}function tw(e){for(;le!==null;){var t=le;if(t===e){le=null;break}var n=t.sibling;if(n!==null){n.return=t.return,le=n;break}le=t.return}}function nw(e){for(;le!==null;){var t=le;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ip(4,t)}catch(u){vt(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(u){vt(t,i,u)}}var o=t.return;try{Eg(t)}catch(u){vt(t,o,u)}break;case 5:var s=t.return;try{Eg(t)}catch(u){vt(t,s,u)}}}catch(u){vt(t,t.return,u)}if(t===e){le=null;break}var l=t.sibling;if(l!==null){l.return=t.return,le=l;break}le=t.return}}var aD=Math.ceil,Ih=Ti.ReactCurrentDispatcher,sx=Ti.ReactCurrentOwner,or=Ti.ReactCurrentBatchConfig,$e=0,Dt=null,Pt=null,Ht=0,Cn=0,Fa=co(0),Mt=0,$u=null,ta=0,op=0,lx=0,ou=null,gn=null,ux=0,hs=1/0,ni=null,Dh=!1,Cg=null,to=null,$f=!1,Gi=null,Rh=0,au=0,jg=null,fh=-1,hh=0;function un(){return $e&6?_t():fh!==-1?fh:fh=_t()}function no(e){return e.mode&1?$e&2&&Ht!==0?Ht&-Ht:UI.transition!==null?(hh===0&&(hh=s2()),hh):(e=Be,e!==0||(e=window.event,e=e===void 0?16:p2(e.type)),e):1}function Or(e,t,n,r){if(50<au)throw au=0,jg=null,Error(re(185));wc(e,n,r),(!($e&2)||e!==Dt)&&(e===Dt&&(!($e&2)&&(op|=n),Mt===4&&Wi(e,Ht)),wn(e,r),n===1&&$e===0&&!(t.mode&1)&&(hs=_t()+500,tp&&fo()))}function wn(e,t){var n=e.callbackNode;UL(e,t);var r=bh(e,e===Dt?Ht:0);if(r===0)n!==null&&fb(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&fb(n),t===1)e.tag===0?VI(rw.bind(null,e)):$2(rw.bind(null,e)),RI(function(){!($e&6)&&fo()}),n=null;else{switch(l2(r)){case 1:n=L0;break;case 4:n=o2;break;case 16:n=_h;break;case 536870912:n=a2;break;default:n=_h}n=CE(n,PE.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function PE(e,t){if(fh=-1,hh=0,$e&6)throw Error(re(327));var n=e.callbackNode;if(ts()&&e.callbackNode!==n)return null;var r=bh(e,e===Dt?Ht:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=zh(e,r);else{t=r;var i=$e;$e|=2;var o=TE();(Dt!==e||Ht!==t)&&(ni=null,hs=_t()+500,Zo(e,t));do try{uD();break}catch(l){OE(e,l)}while(!0);K0(),Ih.current=o,$e=i,Pt!==null?t=0:(Dt=null,Ht=0,t=Mt)}if(t!==0){if(t===2&&(i=og(e),i!==0&&(r=i,t=$g(e,i))),t===1)throw n=$u,Zo(e,0),Wi(e,r),wn(e,_t()),n;if(t===6)Wi(e,r);else{if(i=e.current.alternate,!(r&30)&&!sD(i)&&(t=zh(e,r),t===2&&(o=og(e),o!==0&&(r=o,t=$g(e,o))),t===1))throw n=$u,Zo(e,0),Wi(e,r),wn(e,_t()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(re(345));case 2:Mo(e,gn,ni);break;case 3:if(Wi(e,r),(r&130023424)===r&&(t=ux+500-_t(),10<t)){if(bh(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){un(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=dg(Mo.bind(null,e,gn,ni),t);break}Mo(e,gn,ni);break;case 4:if(Wi(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-Pr(r);o=1<<s,s=t[s],s>i&&(i=s),r&=~o}if(r=i,r=_t()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*aD(r/1960))-r,10<r){e.timeoutHandle=dg(Mo.bind(null,e,gn,ni),r);break}Mo(e,gn,ni);break;case 5:Mo(e,gn,ni);break;default:throw Error(re(329))}}}return wn(e,_t()),e.callbackNode===n?PE.bind(null,e):null}function $g(e,t){var n=ou;return e.current.memoizedState.isDehydrated&&(Zo(e,t).flags|=256),e=zh(e,t),e!==2&&(t=gn,gn=n,t!==null&&Ng(t)),e}function Ng(e){gn===null?gn=e:gn.push.apply(gn,e)}function sD(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(!Ar(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Wi(e,t){for(t&=~lx,t&=~op,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Pr(t),r=1<<n;e[n]=-1,t&=~r}}function rw(e){if($e&6)throw Error(re(327));ts();var t=bh(e,0);if(!(t&1))return wn(e,_t()),null;var n=zh(e,t);if(e.tag!==0&&n===2){var r=og(e);r!==0&&(t=r,n=$g(e,r))}if(n===1)throw n=$u,Zo(e,0),Wi(e,t),wn(e,_t()),n;if(n===6)throw Error(re(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Mo(e,gn,ni),wn(e,_t()),null}function cx(e,t){var n=$e;$e|=1;try{return e(t)}finally{$e=n,$e===0&&(hs=_t()+500,tp&&fo())}}function na(e){Gi!==null&&Gi.tag===0&&!($e&6)&&ts();var t=$e;$e|=1;var n=or.transition,r=Be;try{if(or.transition=null,Be=1,e)return e()}finally{Be=r,or.transition=n,$e=t,!($e&6)&&fo()}}function fx(){Cn=Fa.current,nt(Fa)}function Zo(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,DI(n)),Pt!==null)for(n=Pt.return;n!==null;){var r=n;switch(H0(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Th();break;case 3:cs(),nt(_n),nt(tn),ex();break;case 5:J0(r);break;case 4:cs();break;case 13:nt(ut);break;case 19:nt(ut);break;case 10:q0(r.type._context);break;case 22:case 23:fx()}n=n.return}if(Dt=e,Pt=e=ro(e.current,null),Ht=Cn=t,Mt=0,$u=null,lx=op=ta=0,gn=ou=null,Do!==null){for(t=0;t<Do.length;t++)if(n=Do[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}Do=null}return e}function OE(e,t){do{var n=Pt;try{if(K0(),lh.current=Lh,Nh){for(var r=ht.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Nh=!1}if(ea=0,It=kt=ht=null,ru=!1,Mu=0,sx.current=null,n===null||n.return===null){Mt=1,$u=t,Pt=null;break}e:{var o=e,s=n.return,l=n,u=t;if(t=Ht,l.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var f=u,h=l,d=h.tag;if(!(h.mode&1)&&(d===0||d===11||d===15)){var m=h.alternate;m?(h.updateQueue=m.updateQueue,h.memoizedState=m.memoizedState,h.lanes=m.lanes):(h.updateQueue=null,h.memoizedState=null)}var v=Wb(s);if(v!==null){v.flags&=-257,Hb(v,s,l,o,t),v.mode&1&&Ub(o,f,t),t=v,u=f;var b=t.updateQueue;if(b===null){var x=new Set;x.add(u),t.updateQueue=x}else b.add(u);break e}else{if(!(t&1)){Ub(o,f,t),hx();break e}u=Error(re(426))}}else if(at&&l.mode&1){var S=Wb(s);if(S!==null){!(S.flags&65536)&&(S.flags|=256),Hb(S,s,l,o,t),Z0(fs(u,l));break e}}o=u=fs(u,l),Mt!==4&&(Mt=2),ou===null?ou=[o]:ou.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var y=lE(o,u,t);Db(o,y);break e;case 1:l=u;var _=o.type,w=o.stateNode;if(!(o.flags&128)&&(typeof _.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(to===null||!to.has(w)))){o.flags|=65536,t&=-t,o.lanes|=t;var E=uE(o,l,t);Db(o,E);break e}}o=o.return}while(o!==null)}EE(n)}catch(P){t=P,Pt===n&&n!==null&&(Pt=n=n.return);continue}break}while(!0)}function TE(){var e=Ih.current;return Ih.current=Lh,e===null?Lh:e}function hx(){(Mt===0||Mt===3||Mt===2)&&(Mt=4),Dt===null||!(ta&268435455)&&!(op&268435455)||Wi(Dt,Ht)}function zh(e,t){var n=$e;$e|=2;var r=TE();(Dt!==e||Ht!==t)&&(ni=null,Zo(e,t));do try{lD();break}catch(i){OE(e,i)}while(!0);if(K0(),$e=n,Ih.current=r,Pt!==null)throw Error(re(261));return Dt=null,Ht=0,Mt}function lD(){for(;Pt!==null;)AE(Pt)}function uD(){for(;Pt!==null&&!NL();)AE(Pt)}function AE(e){var t=ME(e.alternate,e,Cn);e.memoizedProps=e.pendingProps,t===null?EE(e):Pt=t,sx.current=null}function EE(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=nD(n,t),n!==null){n.flags&=32767,Pt=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Mt=6,Pt=null;return}}else if(n=tD(n,t,Cn),n!==null){Pt=n;return}if(t=t.sibling,t!==null){Pt=t;return}Pt=t=e}while(t!==null);Mt===0&&(Mt=5)}function Mo(e,t,n){var r=Be,i=or.transition;try{or.transition=null,Be=1,cD(e,t,n,r)}finally{or.transition=i,Be=r}return null}function cD(e,t,n,r){do ts();while(Gi!==null);if($e&6)throw Error(re(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(re(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(WL(e,o),e===Dt&&(Pt=Dt=null,Ht=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||$f||($f=!0,CE(_h,function(){return ts(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=or.transition,or.transition=null;var s=Be;Be=1;var l=$e;$e|=4,sx.current=null,iD(e,n),wE(n,e),MI(fg),wh=!!cg,fg=cg=null,e.current=n,oD(n),LL(),$e=l,Be=s,or.transition=o}else e.current=n;if($f&&($f=!1,Gi=e,Rh=i),o=e.pendingLanes,o===0&&(to=null),RL(n.stateNode),wn(e,_t()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Dh)throw Dh=!1,e=Cg,Cg=null,e;return Rh&1&&e.tag!==0&&ts(),o=e.pendingLanes,o&1?e===jg?au++:(au=0,jg=e):au=0,fo(),null}function ts(){if(Gi!==null){var e=l2(Rh),t=or.transition,n=Be;try{if(or.transition=null,Be=16>e?16:e,Gi===null)var r=!1;else{if(e=Gi,Gi=null,Rh=0,$e&6)throw Error(re(331));var i=$e;for($e|=4,le=e.current;le!==null;){var o=le,s=o.child;if(le.flags&16){var l=o.deletions;if(l!==null){for(var u=0;u<l.length;u++){var f=l[u];for(le=f;le!==null;){var h=le;switch(h.tag){case 0:case 11:case 15:iu(8,h,o)}var d=h.child;if(d!==null)d.return=h,le=d;else for(;le!==null;){h=le;var m=h.sibling,v=h.return;if(xE(h),h===f){le=null;break}if(m!==null){m.return=v,le=m;break}le=v}}}var b=o.alternate;if(b!==null){var x=b.child;if(x!==null){b.child=null;do{var S=x.sibling;x.sibling=null,x=S}while(x!==null)}}le=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,le=s;else e:for(;le!==null;){if(o=le,o.flags&2048)switch(o.tag){case 0:case 11:case 15:iu(9,o,o.return)}var y=o.sibling;if(y!==null){y.return=o.return,le=y;break e}le=o.return}}var _=e.current;for(le=_;le!==null;){s=le;var w=s.child;if(s.subtreeFlags&2064&&w!==null)w.return=s,le=w;else e:for(s=_;le!==null;){if(l=le,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:ip(9,l)}}catch(P){vt(l,l.return,P)}if(l===s){le=null;break e}var E=l.sibling;if(E!==null){E.return=l.return,le=E;break e}le=l.return}}if($e=i,fo(),zr&&typeof zr.onPostCommitFiberRoot=="function")try{zr.onPostCommitFiberRoot(Xd,e)}catch{}r=!0}return r}finally{Be=n,or.transition=t}}return!1}function iw(e,t,n){t=fs(n,t),t=lE(e,t,1),e=eo(e,t,1),t=un(),e!==null&&(wc(e,1,t),wn(e,t))}function vt(e,t,n){if(e.tag===3)iw(e,e,n);else for(;t!==null;){if(t.tag===3){iw(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(to===null||!to.has(r))){e=fs(n,e),e=uE(t,e,1),t=eo(t,e,1),e=un(),t!==null&&(wc(t,1,e),wn(t,e));break}}t=t.return}}function fD(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=un(),e.pingedLanes|=e.suspendedLanes&n,Dt===e&&(Ht&n)===n&&(Mt===4||Mt===3&&(Ht&130023424)===Ht&&500>_t()-ux?Zo(e,0):lx|=n),wn(e,t)}function kE(e,t){t===0&&(e.mode&1?(t=Sf,Sf<<=1,!(Sf&130023424)&&(Sf=4194304)):t=1);var n=un();e=xi(e,t),e!==null&&(wc(e,t,n),wn(e,n))}function hD(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),kE(e,n)}function dD(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(re(314))}r!==null&&r.delete(t),kE(e,n)}var ME;ME=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||_n.current)yn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return yn=!1,eD(e,t,n);yn=!!(e.flags&131072)}else yn=!1,at&&t.flags&1048576&&N2(t,kh,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ch(e,t),e=t.pendingProps;var i=ss(t,tn.current);es(t,n),i=nx(null,t,r,e,i,n);var o=rx();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,bn(r)?(o=!0,Ah(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Y0(t),i.updater=rp,t.stateNode=i,i._reactInternals=t,_g(t,r,e,n),t=Sg(null,t,r,!0,o,n)):(t.tag=0,at&&o&&W0(t),sn(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ch(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=mD(r),e=yr(r,e),i){case 0:t=wg(null,t,r,e,n);break e;case 1:t=Kb(null,t,r,e,n);break e;case 11:t=Zb(null,t,r,e,n);break e;case 14:t=Gb(null,t,r,yr(r.type,e),n);break e}throw Error(re(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:yr(r,i),wg(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:yr(r,i),Kb(e,t,r,i,n);case 3:e:{if(dE(t),e===null)throw Error(re(387));r=t.pendingProps,o=t.memoizedState,i=o.element,B2(e,t),jh(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=fs(Error(re(423)),t),t=qb(e,t,r,n,i);break e}else if(r!==i){i=fs(Error(re(424)),t),t=qb(e,t,r,n,i);break e}else for(Nn=Ji(t.stateNode.containerInfo.firstChild),Ln=t,at=!0,br=null,n=R2(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ls(),r===i){t=_i(e,t,n);break e}sn(e,t,r,n)}t=t.child}return t;case 5:return F2(t),e===null&&gg(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,hg(r,i)?s=null:o!==null&&hg(r,o)&&(t.flags|=32),hE(e,t),sn(e,t,s,n),t.child;case 6:return e===null&&gg(t),null;case 13:return pE(e,t,n);case 4:return Q0(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=us(t,null,r,n):sn(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:yr(r,i),Zb(e,t,r,i,n);case 7:return sn(e,t,t.pendingProps,n),t.child;case 8:return sn(e,t,t.pendingProps.children,n),t.child;case 12:return sn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,Qe(Mh,r._currentValue),r._currentValue=s,o!==null)if(Ar(o.value,s)){if(o.children===i.children&&!_n.current){t=_i(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=fi(-1,n&-n),u.tag=2;var f=o.updateQueue;if(f!==null){f=f.shared;var h=f.pending;h===null?u.next=u:(u.next=h.next,h.next=u),f.pending=u}}o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),yg(o.return,n,t),l.lanes|=n;break}u=u.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(re(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),yg(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}sn(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,es(t,n),i=sr(i),r=r(i),t.flags|=1,sn(e,t,r,n),t.child;case 14:return r=t.type,i=yr(r,t.pendingProps),i=yr(r.type,i),Gb(e,t,r,i,n);case 15:return cE(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:yr(r,i),ch(e,t),t.tag=1,bn(r)?(e=!0,Ah(t)):e=!1,es(t,n),sE(t,r,i),_g(t,r,i,n),Sg(null,t,r,!0,e,n);case 19:return mE(e,t,n);case 22:return fE(e,t,n)}throw Error(re(156,t.tag))};function CE(e,t){return i2(e,t)}function pD(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function rr(e,t,n,r){return new pD(e,t,n,r)}function dx(e){return e=e.prototype,!(!e||!e.isReactComponent)}function mD(e){if(typeof e=="function")return dx(e)?1:0;if(e!=null){if(e=e.$$typeof,e===j0)return 11;if(e===$0)return 14}return 2}function ro(e,t){var n=e.alternate;return n===null?(n=rr(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function dh(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")dx(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Ca:return Go(n.children,i,o,t);case C0:s=8,i|=8;break;case Wv:return e=rr(12,n,t,i|2),e.elementType=Wv,e.lanes=o,e;case Hv:return e=rr(13,n,t,i),e.elementType=Hv,e.lanes=o,e;case Zv:return e=rr(19,n,t,i),e.elementType=Zv,e.lanes=o,e;case FA:return ap(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case zA:s=10;break e;case BA:s=9;break e;case j0:s=11;break e;case $0:s=14;break e;case Bi:s=16,r=null;break e}throw Error(re(130,e==null?e:typeof e,""))}return t=rr(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Go(e,t,n,r){return e=rr(7,e,r,t),e.lanes=n,e}function ap(e,t,n,r){return e=rr(22,e,r,t),e.elementType=FA,e.lanes=n,e.stateNode={isHidden:!1},e}function Km(e,t,n){return e=rr(6,e,null,t),e.lanes=n,e}function qm(e,t,n){return t=rr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function vD(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=km(0),this.expirationTimes=km(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=km(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function px(e,t,n,r,i,o,s,l,u){return e=new vD(e,t,n,l,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=rr(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Y0(o),e}function gD(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ma,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function jE(e){if(!e)return ao;e=e._reactInternals;e:{if(ua(e)!==e||e.tag!==1)throw Error(re(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(bn(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(re(171))}if(e.tag===1){var n=e.type;if(bn(n))return j2(e,n,t)}return t}function $E(e,t,n,r,i,o,s,l,u){return e=px(n,r,!0,e,i,o,s,l,u),e.context=jE(null),n=e.current,r=un(),i=no(n),o=fi(r,i),o.callback=t??null,eo(n,o,i),e.current.lanes=i,wc(e,i,r),wn(e,r),e}function sp(e,t,n,r){var i=t.current,o=un(),s=no(i);return n=jE(n),t.context===null?t.context=n:t.pendingContext=n,t=fi(o,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=eo(i,t,s),e!==null&&(Or(e,i,s,o),sh(e,i,s)),s}function Bh(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function ow(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function mx(e,t){ow(e,t),(e=e.alternate)&&ow(e,t)}function yD(){return null}var NE=typeof reportError=="function"?reportError:function(e){console.error(e)};function vx(e){this._internalRoot=e}lp.prototype.render=vx.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(re(409));sp(e,t,null,null)};lp.prototype.unmount=vx.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;na(function(){sp(null,e,null,null)}),t[yi]=null}};function lp(e){this._internalRoot=e}lp.prototype.unstable_scheduleHydration=function(e){if(e){var t=f2();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ui.length&&t!==0&&t<Ui[n].priority;n++);Ui.splice(n,0,e),n===0&&d2(e)}};function gx(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function up(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function aw(){}function xD(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var f=Bh(s);o.call(f)}}var s=$E(t,r,e,0,null,!1,!1,"",aw);return e._reactRootContainer=s,e[yi]=s.current,Ou(e.nodeType===8?e.parentNode:e),na(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var l=r;r=function(){var f=Bh(u);l.call(f)}}var u=px(e,0,!1,null,null,!1,!1,"",aw);return e._reactRootContainer=u,e[yi]=u.current,Ou(e.nodeType===8?e.parentNode:e),na(function(){sp(t,u,n,r)}),u}function cp(e,t,n,r,i){var o=n._reactRootContainer;if(o){var s=o;if(typeof i=="function"){var l=i;i=function(){var u=Bh(s);l.call(u)}}sp(t,s,e,i)}else s=xD(n,t,e,i,r);return Bh(s)}u2=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Hl(t.pendingLanes);n!==0&&(I0(t,n|1),wn(t,_t()),!($e&6)&&(hs=_t()+500,fo()))}break;case 13:na(function(){var r=xi(e,1);if(r!==null){var i=un();Or(r,e,1,i)}}),mx(e,1)}};D0=function(e){if(e.tag===13){var t=xi(e,134217728);if(t!==null){var n=un();Or(t,e,134217728,n)}mx(e,134217728)}};c2=function(e){if(e.tag===13){var t=no(e),n=xi(e,t);if(n!==null){var r=un();Or(n,e,t,r)}mx(e,t)}};f2=function(){return Be};h2=function(e,t){var n=Be;try{return Be=e,t()}finally{Be=n}};ng=function(e,t,n){switch(t){case"input":if(qv(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=ep(r);if(!i)throw Error(re(90));UA(r),qv(r,i)}}}break;case"textarea":HA(e,n);break;case"select":t=n.value,t!=null&&Xa(e,!!n.multiple,t,!1)}};QA=cx;JA=na;var _D={usingClientEntryPoint:!1,Events:[Pc,La,ep,XA,YA,cx]},kl={findFiberByHostInstance:Io,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},bD={bundleType:kl.bundleType,version:kl.version,rendererPackageName:kl.rendererPackageName,rendererConfig:kl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ti.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=n2(e),e===null?null:e.stateNode},findFiberByHostInstance:kl.findFiberByHostInstance||yD,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Nf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Nf.isDisabled&&Nf.supportsFiber)try{Xd=Nf.inject(bD),zr=Nf}catch{}}Bn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=_D;Bn.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!gx(t))throw Error(re(200));return gD(e,t,null,n)};Bn.createRoot=function(e,t){if(!gx(e))throw Error(re(299));var n=!1,r="",i=NE;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=px(e,1,!1,null,null,n,!1,r,i),e[yi]=t.current,Ou(e.nodeType===8?e.parentNode:e),new vx(t)};Bn.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(re(188)):(e=Object.keys(e).join(","),Error(re(268,e)));return e=n2(t),e=e===null?null:e.stateNode,e};Bn.flushSync=function(e){return na(e)};Bn.hydrate=function(e,t,n){if(!up(t))throw Error(re(200));return cp(null,e,t,!0,n)};Bn.hydrateRoot=function(e,t,n){if(!gx(e))throw Error(re(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",s=NE;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=$E(t,null,e,1,n??null,i,!1,o,s),e[yi]=t.current,Ou(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new lp(t)};Bn.render=function(e,t,n){if(!up(t))throw Error(re(200));return cp(null,e,t,!1,n)};Bn.unmountComponentAtNode=function(e){if(!up(e))throw Error(re(40));return e._reactRootContainer?(na(function(){cp(null,null,e,!1,function(){e._reactRootContainer=null,e[yi]=null})}),!0):!1};Bn.unstable_batchedUpdates=cx;Bn.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!up(n))throw Error(re(200));if(e==null||e._reactInternals===void 0)throw Error(re(38));return cp(e,t,n,!1,r)};Bn.version="18.3.1-next-f1338f8080-20240426";function LE(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(LE)}catch(e){console.error(e)}}LE(),LA.exports=Bn;var wD=LA.exports,sw=wD;Vv.createRoot=sw.createRoot,Vv.hydrateRoot=sw.hydrateRoot;const yx=j.createContext({});function xx(e){const t=j.useRef(null);return t.current===null&&(t.current=e()),t.current}const fp=j.createContext(null),_x=j.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class SD 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 PD({children:e,isPresent:t}){const n=j.useId(),r=j.useRef(null),i=j.useRef({width:0,height:0,top:0,left:0}),{nonce:o}=j.useContext(_x);return j.useInsertionEffect(()=>{const{width:s,height:l,top:u,left:f}=i.current;if(t||!r.current||!s||!l)return;r.current.dataset.motionPopId=n;const h=document.createElement("style");return o&&(h.nonce=o),document.head.appendChild(h),h.sheet&&h.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(h)}},[t]),O.jsx(SD,{isPresent:t,childRef:r,sizeRef:i,children:j.cloneElement(e,{ref:r})})}const OD=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:s})=>{const l=xx(TD),u=j.useId(),f=j.useCallback(d=>{l.set(d,!0);for(const m of l.values())if(!m)return;r&&r()},[l,r]),h=j.useMemo(()=>({id:u,initial:t,isPresent:n,custom:i,onExitComplete:f,register:d=>(l.set(d,!1),()=>l.delete(d))}),o?[Math.random(),f]:[n,f]);return j.useMemo(()=>{l.forEach((d,m)=>l.set(m,!1))},[n]),j.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),s==="popLayout"&&(e=O.jsx(PD,{isPresent:n,children:e})),O.jsx(fp.Provider,{value:h,children:e})};function TD(){return new Map}function IE(e=!0){const t=j.useContext(fp);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=j.useId();j.useEffect(()=>{e&&i(o)},[e]);const s=j.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,s]:[!0]}const Lf=e=>e.key||"";function lw(e){const t=[];return j.Children.forEach(e,n=>{j.isValidElement(n)&&t.push(n)}),t}const bx=typeof window<"u",DE=bx?j.useLayoutEffect:j.useEffect,AD=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:s=!1})=>{const[l,u]=IE(s),f=j.useMemo(()=>lw(e),[e]),h=s&&!l?[]:f.map(Lf),d=j.useRef(!0),m=j.useRef(f),v=xx(()=>new Map),[b,x]=j.useState(f),[S,y]=j.useState(f);DE(()=>{d.current=!1,m.current=f;for(let E=0;E<S.length;E++){const P=Lf(S[E]);h.includes(P)?v.delete(P):v.get(P)!==!0&&v.set(P,!1)}},[S,h.length,h.join("-")]);const _=[];if(f!==b){let E=[...f];for(let P=0;P<S.length;P++){const A=S[P],M=Lf(A);h.includes(M)||(E.splice(P,0,A),_.push(A))}o==="wait"&&_.length&&(E=_),y(lw(E)),x(f);return}const{forceRender:w}=j.useContext(yx);return O.jsx(O.Fragment,{children:S.map(E=>{const P=Lf(E),A=s&&!l?!1:f===S||h.includes(P),M=()=>{if(v.has(P))v.set(P,!0);else return;let C=!0;v.forEach($=>{$||(C=!1)}),C&&(w==null||w(),y(m.current),s&&(u==null||u()),r&&r())};return O.jsx(OD,{isPresent:A,initial:!d.current||n?void 0:!1,custom:A?void 0:t,presenceAffectsLayout:i,mode:o,onExitComplete:A?void 0:M,children:E},P)})})},In=e=>e;let RE=In;function wx(e){let t;return()=>(t===void 0&&(t=e()),t)}const ds=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},hi=e=>e*1e3,di=e=>e/1e3,ED={useManualTiming:!1};function kD(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,h=!1,d=!1)=>{const v=d&&r?t:n;return h&&o.add(f),v.has(f)||v.add(f),f},cancel:f=>{n.delete(f),o.delete(f)},process:f=>{if(s=f,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(l),t.clear(),r=!1,i&&(i=!1,u.process(f))}};return u}const If=["read","resolveKeyframes","update","preRender","render","postRender"],MD=40;function zE(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=If.reduce((y,_)=>(y[_]=kD(o),y),{}),{read:l,resolveKeyframes:u,update:f,preRender:h,render:d,postRender:m}=s,v=()=>{const y=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(y-i.timestamp,MD),1),i.timestamp=y,i.isProcessing=!0,l.process(i),u.process(i),f.process(i),h.process(i),d.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(v))},b=()=>{n=!0,r=!0,i.isProcessing||e(v)};return{schedule:If.reduce((y,_)=>{const w=s[_];return y[_]=(E,P=!1,A=!1)=>(n||b(),w.schedule(E,P,A)),y},{}),cancel:y=>{for(let _=0;_<If.length;_++)s[If[_]].cancel(y)},state:i,steps:s}}const{schedule:rt,cancel:so,state:Ut,steps:Xm}=zE(typeof requestAnimationFrame<"u"?requestAnimationFrame:In,!0),BE=j.createContext({strict:!1}),uw={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},ps={};for(const e in uw)ps[e]={isEnabled:t=>uw[e].some(n=>!!t[n])};function CD(e){for(const t in e)ps[t]={...ps[t],...e[t]}}const jD=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Fh(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||jD.has(e)}let FE=e=>!Fh(e);function $D(e){e&&(FE=t=>t.startsWith("on")?!Fh(t):e(t))}try{$D(require("@emotion/is-prop-valid").default)}catch{}function ND(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(FE(i)||n===!0&&Fh(i)||!t&&!Fh(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function LD(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const hp=j.createContext({});function Nu(e){return typeof e=="string"||Array.isArray(e)}function dp(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Sx=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Px=["initial",...Sx];function pp(e){return dp(e.animate)||Px.some(t=>Nu(e[t]))}function VE(e){return!!(pp(e)||e.variants)}function ID(e,t){if(pp(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Nu(n)?n:void 0,animate:Nu(r)?r:void 0}}return e.inherit!==!1?t:{}}function DD(e){const{initial:t,animate:n}=ID(e,j.useContext(hp));return j.useMemo(()=>({initial:t,animate:n}),[cw(t),cw(n)])}function cw(e){return Array.isArray(e)?e.join(" "):e}const RD=Symbol.for("motionComponentSymbol");function Va(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function zD(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):Va(n)&&(n.current=r))},[t])}const Ox=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),BD="framerAppearId",UE="data-"+Ox(BD),{schedule:Tx}=zE(queueMicrotask,!1),WE=j.createContext({});function FD(e,t,n,r,i){var o,s;const{visualElement:l}=j.useContext(hp),u=j.useContext(BE),f=j.useContext(fp),h=j.useContext(_x).reducedMotion,d=j.useRef(null);r=r||u.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:l,props:n,presenceContext:f,blockInitialAnimation:f?f.initial===!1:!1,reducedMotionConfig:h}));const m=d.current,v=j.useContext(WE);m&&!m.projection&&i&&(m.type==="html"||m.type==="svg")&&VD(d.current,n,i,v);const b=j.useRef(!1);j.useInsertionEffect(()=>{m&&b.current&&m.update(n,f)});const x=n[UE],S=j.useRef(!!x&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,x))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,x)));return DE(()=>{m&&(b.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),Tx.render(m.render),S.current&&m.animationState&&m.animationState.animateChanges())}),j.useEffect(()=>{m&&(!S.current&&m.animationState&&m.animationState.animateChanges(),S.current&&(queueMicrotask(()=>{var y;(y=window.MotionHandoffMarkAsComplete)===null||y===void 0||y.call(window,x)}),S.current=!1))}),m}function VD(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:HE(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!s||l&&Va(l),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:u,layoutRoot:f})}function HE(e){if(e)return e.options.allowProjection!==!1?e.projection:HE(e.parent)}function UD({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,s;e&&CD(e);function l(f,h){let d;const m={...j.useContext(_x),...f,layoutId:WD(f)},{isStatic:v}=m,b=DD(f),x=r(f,v);if(!v&&bx){HD();const S=ZD(m);d=S.MeasureLayout,b.visualElement=FD(i,x,m,t,S.ProjectionNode)}return O.jsxs(hp.Provider,{value:b,children:[d&&b.visualElement?O.jsx(d,{visualElement:b.visualElement,...m}):null,n(i,f,zD(x,b.visualElement,h),x,v,b.visualElement)]})}l.displayName=`motion.${typeof i=="string"?i:`create(${(s=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&s!==void 0?s:""})`}`;const u=j.forwardRef(l);return u[RD]=i,u}function WD({layoutId:e}){const t=j.useContext(yx).id;return t&&e!==void 0?t+"-"+e:e}function HD(e,t){j.useContext(BE).strict}function ZD(e){const{drag:t,layout:n}=ps;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 GD=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Ax(e){return typeof e!="string"||e.includes("-")?!1:!!(GD.indexOf(e)>-1||/[A-Z]/u.test(e))}function fw(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Ex(e,t,n,r){if(typeof t=="function"){const[i,o]=fw(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=fw(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const Lg=e=>Array.isArray(e),KD=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),qD=e=>Lg(e)?e[e.length-1]||0:e,en=e=>!!(e&&e.getVelocity);function ph(e){const t=en(e)?e.get():e;return KD(t)?t.toValue():t}function XD({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const s={latestValues:YD(r,i,o,e),renderState:t()};return n&&(s.onMount=l=>n({props:r,current:l,...s}),s.onUpdate=l=>n(l)),s}const ZE=e=>(t,n)=>{const r=j.useContext(hp),i=j.useContext(fp),o=()=>XD(e,t,r,i);return n?o():xx(o)};function YD(e,t,n,r){const i={},o=r(e,{});for(const m in o)i[m]=ph(o[m]);let{initial:s,animate:l}=e;const u=pp(e),f=VE(e);t&&f&&!u&&e.inherit!==!1&&(s===void 0&&(s=t.initial),l===void 0&&(l=t.animate));let h=n?n.initial===!1:!1;h=h||s===!1;const d=h?l:s;if(d&&typeof d!="boolean"&&!dp(d)){const m=Array.isArray(d)?d:[d];for(let v=0;v<m.length;v++){const b=Ex(e,m[v]);if(b){const{transitionEnd:x,transition:S,...y}=b;for(const _ in y){let w=y[_];if(Array.isArray(w)){const E=h?w.length-1:0;w=w[E]}w!==null&&(i[_]=w)}for(const _ in x)i[_]=x[_]}}}return i}const Us=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ca=new Set(Us),GE=e=>t=>typeof t=="string"&&t.startsWith(e),KE=GE("--"),QD=GE("var(--"),kx=e=>QD(e)?JD.test(e.split("/*")[0].trim()):!1,JD=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,qE=(e,t)=>t&&typeof e=="number"?t.transform(e):e,bi=(e,t,n)=>n>t?t:n<e?e:n,Ws={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Lu={...Ws,transform:e=>bi(0,1,e)},Df={...Ws,default:1},Tc=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ri=Tc("deg"),Fr=Tc("%"),ge=Tc("px"),eR=Tc("vh"),tR=Tc("vw"),hw={...Fr,parse:e=>Fr.parse(e)/100,transform:e=>Fr.transform(e*100)},nR={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},rR={rotate:Ri,rotateX:Ri,rotateY:Ri,rotateZ:Ri,scale:Df,scaleX:Df,scaleY:Df,scaleZ:Df,skew:Ri,skewX:Ri,skewY:Ri,distance:ge,translateX:ge,translateY:ge,translateZ:ge,x:ge,y:ge,z:ge,perspective:ge,transformPerspective:ge,opacity:Lu,originX:hw,originY:hw,originZ:ge},dw={...Ws,transform:Math.round},Mx={...nR,...rR,zIndex:dw,size:ge,fillOpacity:Lu,strokeOpacity:Lu,numOctaves:dw},iR={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},oR=Us.length;function aR(e,t,n){let r="",i=!0;for(let o=0;o<oR;o++){const s=Us[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=qE(l,Mx[s]);if(!u){i=!1;const h=iR[s]||s;r+=`${h}(${f}) `}n&&(t[s]=f)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function Cx(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let s=!1,l=!1;for(const u in t){const f=t[u];if(ca.has(u)){s=!0;continue}else if(KE(u)){i[u]=f;continue}else{const h=qE(f,Mx[u]);u.startsWith("origin")?(l=!0,o[u]=h):r[u]=h}}if(t.transform||(s||n?r.transform=aR(t,e.transform,n):r.transform&&(r.transform="none")),l){const{originX:u="50%",originY:f="50%",originZ:h=0}=o;r.transformOrigin=`${u} ${f} ${h}`}}const sR={offset:"stroke-dashoffset",array:"stroke-dasharray"},lR={offset:"strokeDashoffset",array:"strokeDasharray"};function uR(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?sR:lR;e[o.offset]=ge.transform(-r);const s=ge.transform(t),l=ge.transform(n);e[o.array]=`${s} ${l}`}function pw(e,t,n){return typeof e=="string"?e:ge.transform(t+n*e)}function cR(e,t,n){const r=pw(t,e.x,e.width),i=pw(n,e.y,e.height);return`${r} ${i}`}function jx(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:l=1,pathOffset:u=0,...f},h,d){if(Cx(e,f,d),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:v,dimensions:b}=e;m.transform&&(b&&(v.transform=m.transform),delete m.transform),b&&(i!==void 0||o!==void 0||v.transform)&&(v.transformOrigin=cR(b,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),s!==void 0&&uR(m,s,l,u,!1)}const $x=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),XE=()=>({...$x(),attrs:{}}),Nx=e=>typeof e=="string"&&e.toLowerCase()==="svg";function YE(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 QE=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 JE(e,t,n,r){YE(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(QE.has(i)?i:Ox(i),t.attrs[i])}const Vh={};function fR(e){Object.assign(Vh,e)}function ek(e,{layout:t,layoutId:n}){return ca.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Vh[e]||e==="opacity")}function Lx(e,t,n){var r;const{style:i}=e,o={};for(const s in i)(en(i[s])||t.style&&en(t.style[s])||ek(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 tk(e,t,n){const r=Lx(e,t,n);for(const i in e)if(en(e[i])||en(t[i])){const o=Us.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}function hR(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const mw=["x","y","width","height","cx","cy","r"],dR={useVisualState:ZE({scrapeMotionValuesFromProps:tk,createRenderState:XE,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(ca.has(l)){o=!0;break}}if(!o)return;let s=!t;if(t)for(let l=0;l<mw.length;l++){const u=mw[l];e[u]!==t[u]&&(s=!0)}s&&rt.read(()=>{hR(n,r),rt.render(()=>{jx(r,i,Nx(n.tagName),e.transformTemplate),JE(n,r)})})}})},pR={useVisualState:ZE({scrapeMotionValuesFromProps:Lx,createRenderState:$x})};function nk(e,t,n){for(const r in t)!en(t[r])&&!ek(r,n)&&(e[r]=t[r])}function mR({transformTemplate:e},t){return j.useMemo(()=>{const n=$x();return Cx(n,t,e),Object.assign({},n.vars,n.style)},[t])}function vR(e,t){const n=e.style||{},r={};return nk(r,n,e),Object.assign(r,mR(e,t)),r}function gR(e,t){const n={},r=vR(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 yR(e,t,n,r){const i=j.useMemo(()=>{const o=XE();return jx(o,t,Nx(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};nk(o,e.style,e),i.style={...o,...i.style}}return i}function xR(e=!1){return(n,r,i,{latestValues:o},s)=>{const u=(Ax(n)?yR:gR)(r,o,s,n),f=ND(r,typeof n=="string",e),h=n!==j.Fragment?{...f,...u,ref:i}:{},{children:d}=r,m=j.useMemo(()=>en(d)?d.get():d,[d]);return j.createElement(n,{...h,children:m})}}function _R(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const s={...Ax(r)?dR:pR,preloadedFeatures:e,useRender:xR(i),createVisualElement:t,Component:r};return UD(s)}}function rk(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function mp(e,t,n){const r=e.getProps();return Ex(r,t,n!==void 0?n:r.custom,e)}const bR=wx(()=>window.ScrollTimeline!==void 0);class wR{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(bR()&&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 SR extends wR{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function Ix(e,t){return e?e[t]||e.default||e:void 0}const Ig=2e4;function ik(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Ig;)t+=n,r=e.next(t);return t>=Ig?1/0:t}function Dx(e){return typeof e=="function"}function vw(e,t){e.timeline=t,e.onfinish=null}const Rx=e=>Array.isArray(e)&&typeof e[0]=="number",PR={linearEasing:void 0};function OR(e,t){const n=wx(e);return()=>{var r;return(r=PR[t])!==null&&r!==void 0?r:n()}}const Uh=OR(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ok=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(ds(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function ak(e){return!!(typeof e=="function"&&Uh()||!e||typeof e=="string"&&(e in Dg||Uh())||Rx(e)||Array.isArray(e)&&e.every(ak))}const Gl=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Dg={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Gl([0,.65,.55,1]),circOut:Gl([.55,0,1,.45]),backIn:Gl([.31,.01,.66,-.59]),backOut:Gl([.33,1.53,.69,.99])};function sk(e,t){if(e)return typeof e=="function"&&Uh()?ok(e,t):Rx(e)?Gl(e):Array.isArray(e)?e.map(n=>sk(n,t)||Dg.easeOut):Dg[e]}const gr={x:!1,y:!1};function lk(){return gr.x||gr.y}function TR(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 uk(e,t){const n=TR(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function gw(e){return t=>{t.pointerType==="touch"||lk()||e(t)}}function AR(e,t,n={}){const[r,i,o]=uk(e,n),s=gw(l=>{const{target:u}=l,f=t(l);if(typeof f!="function"||!u)return;const h=gw(d=>{f(d),u.removeEventListener("pointerleave",h)});u.addEventListener("pointerleave",h,i)});return r.forEach(l=>{l.addEventListener("pointerenter",s,i)}),o}const ck=(e,t)=>t?e===t?!0:ck(e,t.parentElement):!1,zx=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,ER=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function kR(e){return ER.has(e.tagName)||e.tabIndex!==-1}const Kl=new WeakSet;function yw(e){return t=>{t.key==="Enter"&&e(t)}}function Ym(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const MR=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=yw(()=>{if(Kl.has(n))return;Ym(n,"down");const i=yw(()=>{Ym(n,"up")}),o=()=>Ym(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function xw(e){return zx(e)&&!lk()}function CR(e,t,n={}){const[r,i,o]=uk(e,n),s=l=>{const u=l.currentTarget;if(!xw(l)||Kl.has(u))return;Kl.add(u);const f=t(l),h=(v,b)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",m),!(!xw(v)||!Kl.has(u))&&(Kl.delete(u),typeof f=="function"&&f(v,{success:b}))},d=v=>{h(v,n.useGlobalTarget||ck(u,v.target))},m=v=>{h(v,!1)};window.addEventListener("pointerup",d,i),window.addEventListener("pointercancel",m,i)};return r.forEach(l=>{!kR(l)&&l.getAttribute("tabindex")===null&&(l.tabIndex=0),(n.useGlobalTarget?window:l).addEventListener("pointerdown",s,i),l.addEventListener("focus",f=>MR(f,i),i)}),o}function jR(e){return e==="x"||e==="y"?gr[e]?null:(gr[e]=!0,()=>{gr[e]=!1}):gr.x||gr.y?null:(gr.x=gr.y=!0,()=>{gr.x=gr.y=!1})}const fk=new Set(["width","height","top","left","right","bottom",...Us]);let mh;function $R(){mh=void 0}const Vr={now:()=>(mh===void 0&&Vr.set(Ut.isProcessing||ED.useManualTiming?Ut.timestamp:performance.now()),mh),set:e=>{mh=e,queueMicrotask($R)}};function Bx(e,t){e.indexOf(t)===-1&&e.push(t)}function Fx(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Vx{constructor(){this.subscriptions=[]}add(t){return Bx(this.subscriptions,t),()=>Fx(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const s=this.subscriptions[o];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function hk(e,t){return t?e*(1e3/t):0}const _w=30,NR=e=>!isNaN(parseFloat(e));class LR{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=Vr.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=Vr.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=NR(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Vx);const r=this.events[t].add(n);return t==="change"?()=>{r(),rt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Vr.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>_w)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,_w);return hk(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 Iu(e,t){return new LR(e,t)}function IR(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Iu(n))}function DR(e,t){const n=mp(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const s in o){const l=qD(o[s]);IR(e,s,l)}}function RR(e){return!!(en(e)&&e.add)}function Rg(e,t){const n=e.getValue("willChange");if(RR(n))return n.add(t)}function dk(e){return e.props[UE]}const pk=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,zR=1e-7,BR=12;function FR(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)>zR&&++l<BR);return s}function Ac(e,t,n,r){if(e===t&&n===r)return In;const i=o=>FR(o,0,1,e,n);return o=>o===0||o===1?o:pk(i(o),t,r)}const mk=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,vk=e=>t=>1-e(1-t),gk=Ac(.33,1.53,.69,.99),Ux=vk(gk),yk=mk(Ux),xk=e=>(e*=2)<1?.5*Ux(e):.5*(2-Math.pow(2,-10*(e-1))),Wx=e=>1-Math.sin(Math.acos(e)),_k=vk(Wx),bk=mk(Wx),wk=e=>/^0[^.\s]+$/u.test(e);function VR(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||wk(e):!0}const su=e=>Math.round(e*1e5)/1e5,Hx=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function UR(e){return e==null}const WR=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Zx=(e,t)=>n=>!!(typeof n=="string"&&WR.test(n)&&n.startsWith(e)||t&&!UR(n)&&Object.prototype.hasOwnProperty.call(n,t)),Sk=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,s,l]=r.match(Hx);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:l!==void 0?parseFloat(l):1}},HR=e=>bi(0,255,e),Qm={...Ws,transform:e=>Math.round(HR(e))},zo={test:Zx("rgb","red"),parse:Sk("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Qm.transform(e)+", "+Qm.transform(t)+", "+Qm.transform(n)+", "+su(Lu.transform(r))+")"};function ZR(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const zg={test:Zx("#"),parse:ZR,transform:zo.transform},Ua={test:Zx("hsl","hue"),parse:Sk("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Fr.transform(su(t))+", "+Fr.transform(su(n))+", "+su(Lu.transform(r))+")"},qt={test:e=>zo.test(e)||zg.test(e)||Ua.test(e),parse:e=>zo.test(e)?zo.parse(e):Ua.test(e)?Ua.parse(e):zg.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?zo.transform(e):Ua.transform(e)},GR=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function KR(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Hx))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(GR))===null||n===void 0?void 0:n.length)||0)>0}const Pk="number",Ok="color",qR="var",XR="var(",bw="${}",YR=/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 Du(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const l=t.replace(YR,u=>(qt.test(u)?(r.color.push(o),i.push(Ok),n.push(qt.parse(u))):u.startsWith(XR)?(r.var.push(o),i.push(qR),n.push(u)):(r.number.push(o),i.push(Pk),n.push(parseFloat(u))),++o,bw)).split(bw);return{values:n,split:l,indexes:r,types:i}}function Tk(e){return Du(e).values}function Ak(e){const{split:t,types:n}=Du(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===Pk?o+=su(i[s]):l===Ok?o+=qt.transform(i[s]):o+=i[s]}return o}}const QR=e=>typeof e=="number"?0:e;function JR(e){const t=Tk(e);return Ak(e)(t.map(QR))}const lo={test:KR,parse:Tk,createTransformer:Ak,getAnimatableNone:JR},e5=new Set(["brightness","contrast","saturate","opacity"]);function t5(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Hx)||[];if(!r)return e;const i=n.replace(r,"");let o=e5.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const n5=/\b([a-z-]*)\(.*?\)/gu,Bg={...lo,getAnimatableNone:e=>{const t=e.match(n5);return t?t.map(t5).join(" "):e}},r5={...Mx,color:qt,backgroundColor:qt,outlineColor:qt,fill:qt,stroke:qt,borderColor:qt,borderTopColor:qt,borderRightColor:qt,borderBottomColor:qt,borderLeftColor:qt,filter:Bg,WebkitFilter:Bg},Gx=e=>r5[e];function Ek(e,t){let n=Gx(e);return n!==Bg&&(n=lo),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const i5=new Set(["auto","none","0"]);function o5(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!i5.has(o)&&Du(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=Ek(n,i)}const ww=e=>e===Ws||e===ge,Sw=(e,t)=>parseFloat(e.split(", ")[t]),Pw=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return Sw(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?Sw(o[1],e):0}},a5=new Set(["x","y","z"]),s5=Us.filter(e=>!a5.has(e));function l5(e){const t=[];return s5.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const ms={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Pw(4,13),y:Pw(5,14)};ms.translateX=ms.x;ms.translateY=ms.y;const Ko=new Set;let Fg=!1,Vg=!1;function kk(){if(Vg){const e=Array.from(Ko).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=l5(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,s])=>{var l;(l=r.getValue(o))===null||l===void 0||l.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Vg=!1,Fg=!1,Ko.forEach(e=>e.complete()),Ko.clear()}function Mk(){Ko.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Vg=!0)})}function u5(){Mk(),kk()}class Kx{constructor(t,n,r,i,o,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Ko.add(this),Fg||(Fg=!0,rt.read(Mk),rt.resolveKeyframes(kk))):(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),Ko.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Ko.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Ck=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),c5=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function f5(e){const t=c5.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function jk(e,t,n=1){const[r,i]=f5(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const s=o.trim();return Ck(s)?parseFloat(s):s}return kx(i)?jk(i,t,n+1):i}const $k=e=>t=>t.test(e),h5={test:e=>e==="auto",parse:e=>e},Nk=[Ws,ge,Fr,Ri,tR,eR,h5],Ow=e=>Nk.find($k(e));class Lk extends Kx{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let f=t[u];if(typeof f=="string"&&(f=f.trim(),kx(f))){const h=jk(f,n.current);h!==void 0&&(t[u]=h),u===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!fk.has(r)||t.length!==2)return;const[i,o]=t,s=Ow(i),l=Ow(o);if(s!==l)if(ww(s)&&ww(l))for(let u=0;u<t.length;u++){const f=t[u];typeof f=="string"&&(t[u]=parseFloat(f))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)VR(t[i])&&r.push(i);r.length&&o5(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=ms[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]=ms[r](n.measureViewportBox(),window.getComputedStyle(n.current)),l!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=l),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([u,f])=>{n.getValue(u).set(f)}),this.resolveNoneKeyframes()}}const Tw=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(lo.test(e)||e==="0")&&!e.startsWith("url("));function d5(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 p5(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],s=Tw(i,t),l=Tw(o,t);return!s||!l?!1:d5(e)||(n==="spring"||Dx(n))&&r}const m5=e=>e!==null;function vp(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(m5),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const v5=40;class Ik{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=Vr.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>v5?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&u5(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Vr.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:s,onComplete:l,onUpdate:u,isGenerator:f}=this.options;if(!f&&!p5(t,r,i,o))if(s)this.options.duration=0;else{u&&u(vp(t,this.options,n)),l&&l(),this.resolveFinishedPromise();return}const h=this.initPlayback(t,n);h!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...h},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const ct=(e,t,n)=>e+(t-e)*n;function Jm(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function g5({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const l=n<.5?n*(1+t):n+t-n*t,u=2*n-l;i=Jm(u,l,e+1/3),o=Jm(u,l,e),s=Jm(u,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}function Wh(e,t){return n=>n>0?t:e}const ev=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},y5=[zg,zo,Ua],x5=e=>y5.find(t=>t.test(e));function Aw(e){const t=x5(e);if(!t)return!1;let n=t.parse(e);return t===Ua&&(n=g5(n)),n}const Ew=(e,t)=>{const n=Aw(e),r=Aw(t);if(!n||!r)return Wh(e,t);const i={...n};return o=>(i.red=ev(n.red,r.red,o),i.green=ev(n.green,r.green,o),i.blue=ev(n.blue,r.blue,o),i.alpha=ct(n.alpha,r.alpha,o),zo.transform(i))},_5=(e,t)=>n=>t(e(n)),Ec=(...e)=>e.reduce(_5),Ug=new Set(["none","hidden"]);function b5(e,t){return Ug.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function w5(e,t){return n=>ct(e,t,n)}function qx(e){return typeof e=="number"?w5:typeof e=="string"?kx(e)?Wh:qt.test(e)?Ew:O5:Array.isArray(e)?Dk:typeof e=="object"?qt.test(e)?Ew:S5:Wh}function Dk(e,t){const n=[...e],r=n.length,i=e.map((o,s)=>qx(o)(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}}function S5(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=qx(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function P5(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 O5=(e,t)=>{const n=lo.createTransformer(t),r=Du(e),i=Du(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Ug.has(e)&&!i.values.length||Ug.has(t)&&!r.values.length?b5(e,t):Ec(Dk(P5(r,i),i.values),n):Wh(e,t)};function Rk(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ct(e,t,n):qx(e)(e,t)}const T5=5;function zk(e,t,n){const r=Math.max(t-T5,0);return hk(n-e(r),t-r)}const mt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},tv=.001;function A5({duration:e=mt.duration,bounce:t=mt.bounce,velocity:n=mt.velocity,mass:r=mt.mass}){let i,o,s=1-t;s=bi(mt.minDamping,mt.maxDamping,s),e=bi(mt.minDuration,mt.maxDuration,di(e)),s<1?(i=f=>{const h=f*s,d=h*e,m=h-n,v=Wg(f,s),b=Math.exp(-d);return tv-m/v*b},o=f=>{const d=f*s*e,m=d*n+n,v=Math.pow(s,2)*Math.pow(f,2)*e,b=Math.exp(-d),x=Wg(Math.pow(f,2),s);return(-i(f)+tv>0?-1:1)*((m-v)*b)/x}):(i=f=>{const h=Math.exp(-f*e),d=(f-n)*e+1;return-tv+h*d},o=f=>{const h=Math.exp(-f*e),d=(n-f)*(e*e);return h*d});const l=5/e,u=k5(i,o,l);if(e=hi(e),isNaN(u))return{stiffness:mt.stiffness,damping:mt.damping,duration:e};{const f=Math.pow(u,2)*r;return{stiffness:f,damping:s*2*Math.sqrt(r*f),duration:e}}}const E5=12;function k5(e,t,n){let r=n;for(let i=1;i<E5;i++)r=r-e(r)/t(r);return r}function Wg(e,t){return e*Math.sqrt(1-t*t)}const M5=["duration","bounce"],C5=["stiffness","damping","mass"];function kw(e,t){return t.some(n=>e[n]!==void 0)}function j5(e){let t={velocity:mt.velocity,stiffness:mt.stiffness,damping:mt.damping,mass:mt.mass,isResolvedFromDuration:!1,...e};if(!kw(e,C5)&&kw(e,M5))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*bi(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:mt.mass,stiffness:i,damping:o}}else{const n=A5(e);t={...t,...n,mass:mt.mass},t.isResolvedFromDuration=!0}return t}function Bk(e=mt.visualDuration,t=mt.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:h,duration:d,velocity:m,isResolvedFromDuration:v}=j5({...n,velocity:-di(n.velocity||0)}),b=m||0,x=f/(2*Math.sqrt(u*h)),S=s-o,y=di(Math.sqrt(u/h)),_=Math.abs(S)<5;r||(r=_?mt.restSpeed.granular:mt.restSpeed.default),i||(i=_?mt.restDelta.granular:mt.restDelta.default);let w;if(x<1){const P=Wg(y,x);w=A=>{const M=Math.exp(-x*y*A);return s-M*((b+x*y*S)/P*Math.sin(P*A)+S*Math.cos(P*A))}}else if(x===1)w=P=>s-Math.exp(-y*P)*(S+(b+y*S)*P);else{const P=y*Math.sqrt(x*x-1);w=A=>{const M=Math.exp(-x*y*A),C=Math.min(P*A,300);return s-M*((b+x*y*S)*Math.sinh(C)+P*S*Math.cosh(C))/P}}const E={calculatedDuration:v&&d||null,next:P=>{const A=w(P);if(v)l.done=P>=d;else{let M=0;x<1&&(M=P===0?hi(b):zk(w,P,A));const C=Math.abs(M)<=r,$=Math.abs(s-A)<=i;l.done=C&&$}return l.value=l.done?s:A,l},toString:()=>{const P=Math.min(ik(E),Ig),A=ok(M=>E.next(P*M).value,P,30);return P+"ms "+A}};return E}function Mw({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:l,max:u,restDelta:f=.5,restSpeed:h}){const d=e[0],m={done:!1,value:d},v=C=>l!==void 0&&C<l||u!==void 0&&C>u,b=C=>l===void 0?u:u===void 0||Math.abs(l-C)<Math.abs(u-C)?l:u;let x=n*t;const S=d+x,y=s===void 0?S:s(S);y!==S&&(x=y-d);const _=C=>-x*Math.exp(-C/r),w=C=>y+_(C),E=C=>{const $=_(C),B=w(C);m.done=Math.abs($)<=f,m.value=m.done?y:B};let P,A;const M=C=>{v(m.value)&&(P=C,A=Bk({keyframes:[m.value,b(m.value)],velocity:zk(w,C,m.value),damping:i,stiffness:o,restDelta:f,restSpeed:h}))};return M(0),{calculatedDuration:null,next:C=>{let $=!1;return!A&&P===void 0&&($=!0,E(C),M(C)),P!==void 0&&C>=P?A.next(C-P):(!$&&E(C),m)}}}const $5=Ac(.42,0,1,1),N5=Ac(0,0,.58,1),Fk=Ac(.42,0,.58,1),L5=e=>Array.isArray(e)&&typeof e[0]!="number",I5={linear:In,easeIn:$5,easeInOut:Fk,easeOut:N5,circIn:Wx,circInOut:bk,circOut:_k,backIn:Ux,backInOut:yk,backOut:gk,anticipate:xk},Cw=e=>{if(Rx(e)){RE(e.length===4);const[t,n,r,i]=e;return Ac(t,n,r,i)}else if(typeof e=="string")return I5[e];return e};function D5(e,t,n){const r=[],i=n||Rk,o=e.length-1;for(let s=0;s<o;s++){let l=i(e[s],e[s+1]);if(t){const u=Array.isArray(t)?t[s]||In:t;l=Ec(u,l)}r.push(l)}return r}function R5(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(RE(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=D5(t,r,i),u=l.length,f=h=>{if(s&&h<e[0])return t[0];let d=0;if(u>1)for(;d<e.length-2&&!(h<e[d+1]);d++);const m=ds(e[d],e[d+1],h);return l[d](m)};return n?h=>f(bi(e[0],e[o-1],h)):f}function z5(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=ds(0,t,r);e.push(ct(n,1,i))}}function B5(e){const t=[0];return z5(t,e.length-1),t}function F5(e,t){return e.map(n=>n*t)}function V5(e,t){return e.map(()=>t||Fk).splice(0,e.length-1)}function Hh({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=L5(r)?r.map(Cw):Cw(r),o={done:!1,value:t[0]},s=F5(n&&n.length===t.length?n:B5(t),e),l=R5(s,t,{ease:Array.isArray(i)?i:V5(t,i)});return{calculatedDuration:e,next:u=>(o.value=l(u),o.done=u>=e,o)}}const U5=e=>{const t=({timestamp:n})=>e(n);return{start:()=>rt.update(t,!0),stop:()=>so(t),now:()=>Ut.isProcessing?Ut.timestamp:Vr.now()}},W5={decay:Mw,inertia:Mw,tween:Hh,keyframes:Hh,spring:Bk},H5=e=>e/100;class Xx extends Ik{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:u}=this.options;u&&u()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,s=(i==null?void 0:i.KeyframeResolver)||Kx,l=(u,f)=>this.onKeyframesResolved(u,f);this.resolver=new s(o,l,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:s=0}=this.options,l=Dx(n)?n:W5[n]||Hh;let u,f;l!==Hh&&typeof t[0]!="number"&&(u=Ec(H5,Rk(t[0],t[1])),t=[0,100]);const h=l({...this.options,keyframes:t});o==="mirror"&&(f=l({...this.options,keyframes:[...t].reverse(),velocity:-s})),h.calculatedDuration===null&&(h.calculatedDuration=ik(h));const{calculatedDuration:d}=h,m=d+i,v=m*(r+1)-i;return{generator:h,mirroredGenerator:f,mapPercentToKeyframes:u,calculatedDuration:d,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:h,resolvedDuration:d}=r;if(this.startTime===null)return o.next(0);const{delay:m,repeat:v,repeatType:b,repeatDelay:x,onUpdate:S}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-h/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const y=this.currentTime-m*(this.speed>=0?1:-1),_=this.speed>=0?y<0:y>h;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=h);let w=this.currentTime,E=o;if(v){const C=Math.min(this.currentTime,h)/d;let $=Math.floor(C),B=C%1;!B&&C>=1&&(B=1),B===1&&$--,$=Math.min($,v+1),!!($%2)&&(b==="reverse"?(B=1-B,x&&(B-=x/d)):b==="mirror"&&(E=s)),w=bi(0,1,B)*d}const P=_?{done:!1,value:u[0]}:E.next(w);l&&(P.value=l(P.value));let{done:A}=P;!_&&f!==null&&(A=this.speed>=0?this.currentTime>=h:this.currentTime<=0);const M=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return M&&i!==void 0&&(P.value=vp(u,this.options,i)),S&&S(P.value),M&&this.finish(),P}get duration(){const{resolved:t}=this;return t?di(t.calculatedDuration):0}get time(){return di(this.currentTime)}set time(t){t=hi(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=di(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=U5,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 Z5=new Set(["opacity","clipPath","filter","transform"]);function G5(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 h=sk(l,i);return Array.isArray(h)&&(f.easing=h),e.animate(f,{delay:r,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}const K5=wx(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Zh=10,q5=2e4;function X5(e){return Dx(e.type)||e.type==="spring"||!ak(e.ease)}function Y5(e,t){const n=new Xx({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&o<q5;)r=n.sample(o),i.push(r.value),o+=Zh;return{times:void 0,keyframes:i,duration:o-Zh,ease:"linear"}}const Vk={anticipate:xk,backInOut:yk,circInOut:bk};function Q5(e){return e in Vk}class jw extends Ik{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new Lk(o,(s,l)=>this.onKeyframesResolved(s,l),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:o,type:s,motionValue:l,name:u,startTime:f}=this.options;if(!l.owner||!l.owner.current)return!1;if(typeof o=="string"&&Uh()&&Q5(o)&&(o=Vk[o]),X5(this.options)){const{onComplete:d,onUpdate:m,motionValue:v,element:b,...x}=this.options,S=Y5(t,x);t=S.keyframes,t.length===1&&(t[1]=t[0]),r=S.duration,i=S.times,o=S.ease,s="keyframes"}const h=G5(l.owner.current,u,t,{...this.options,duration:r,times:i,ease:o});return h.startTime=f??this.calcStartTime(),this.pendingTimeline?(vw(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:d}=this.options;l.set(vp(t,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:h,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 di(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return di(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=hi(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return In;const{animation:r}=n;vw(r,t)}return In}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:s,times:l}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:f,onUpdate:h,onComplete:d,element:m,...v}=this.options,b=new Xx({...v,keyframes:r,duration:i,type:o,ease:s,times:l,isGenerator:!0}),x=hi(this.time);f.setWithVelocity(b.sample(x-Zh).value,b.sample(x).value,Zh)}const{onStop:u}=this.options;u&&u(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:s,type:l}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:f}=n.owner.getProps();return K5()&&r&&Z5.has(r)&&!u&&!f&&!i&&o!=="mirror"&&s!==0&&l!=="inertia"}}const J5={type:"spring",stiffness:500,damping:25,restSpeed:10},e3=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),t3={type:"keyframes",duration:.8},n3={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},r3=(e,{keyframes:t})=>t.length>2?t3:ca.has(e)?e.startsWith("scale")?e3(t[1]):J5:n3;function i3({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:l,from:u,elapsed:f,...h}){return!!Object.keys(h).length}const Yx=(e,t,n,r={},i,o)=>s=>{const l=Ix(r,e)||{},u=l.delay||r.delay||0;let{elapsed:f=0}=r;f=f-hi(u);let h={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};i3(l)||(h={...h,...r3(e,h)}),h.duration&&(h.duration=hi(h.duration)),h.repeatDelay&&(h.repeatDelay=hi(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let d=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(h.duration=0,h.delay===0&&(d=!0)),d&&!o&&t.get()!==void 0){const m=vp(h.keyframes,l);if(m!==void 0)return rt.update(()=>{h.onUpdate(m),h.onComplete()}),new SR([])}return!o&&jw.supports(h)?new jw(h):new Xx(h)};function o3({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Uk(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=[],h=i&&e.animationState&&e.animationState.getState()[i];for(const d in u){const m=e.getValue(d,(o=e.latestValues[d])!==null&&o!==void 0?o:null),v=u[d];if(v===void 0||h&&o3(h,d))continue;const b={delay:n,...Ix(s||{},d)};let x=!1;if(window.MotionHandoffAnimation){const y=dk(e);if(y){const _=window.MotionHandoffAnimation(y,d,rt);_!==null&&(b.startTime=_,x=!0)}}Rg(e,d),m.start(Yx(d,m,v,e.shouldReduceMotion&&fk.has(d)?{type:!1}:b,e,x));const S=m.animation;S&&f.push(S)}return l&&Promise.all(f).then(()=>{rt.update(()=>{l&&DR(e,l)})}),f}function Hg(e,t,n={}){var r;const i=mp(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const s=i?()=>Promise.all(Uk(e,i,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(f=0)=>{const{delayChildren:h=0,staggerChildren:d,staggerDirection:m}=o;return a3(e,t,h+f,d,m,n)}:()=>Promise.resolve(),{when:u}=o;if(u){const[f,h]=u==="beforeChildren"?[s,l]:[l,s];return f().then(()=>h())}else return Promise.all([s(),l(n.delay)])}function a3(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(s3).forEach((f,h)=>{f.notify("AnimationStart",t),s.push(Hg(f,t,{...o,delay:n+u(h)}).then(()=>f.notify("AnimationComplete",t)))}),Promise.all(s)}function s3(e,t){return e.sortNodePosition(t)}function l3(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>Hg(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=Hg(e,t,n);else{const i=typeof t=="function"?mp(e,t,n.custom):t;r=Promise.all(Uk(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const u3=Px.length;function Wk(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Wk(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<u3;n++){const r=Px[n],i=e.props[r];(Nu(i)||i===!1)&&(t[r]=i)}return t}const c3=[...Sx].reverse(),f3=Sx.length;function h3(e){return t=>Promise.all(t.map(({animation:n,options:r})=>l3(e,n,r)))}function d3(e){let t=h3(e),n=$w(),r=!0;const i=u=>(f,h)=>{var d;const m=mp(e,h,u==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(m){const{transition:v,transitionEnd:b,...x}=m;f={...f,...x,...b}}return f};function o(u){t=u(e)}function s(u){const{props:f}=e,h=Wk(e.parent)||{},d=[],m=new Set;let v={},b=1/0;for(let S=0;S<f3;S++){const y=c3[S],_=n[y],w=f[y]!==void 0?f[y]:h[y],E=Nu(w),P=y===u?_.isActive:null;P===!1&&(b=S);let A=w===h[y]&&w!==f[y]&&E;if(A&&r&&e.manuallyAnimateOnMount&&(A=!1),_.protectedKeys={...v},!_.isActive&&P===null||!w&&!_.prevProp||dp(w)||typeof w=="boolean")continue;const M=p3(_.prevProp,w);let C=M||y===u&&_.isActive&&!A&&E||S>b&&E,$=!1;const B=Array.isArray(w)?w:[w];let z=B.reduce(i(y),{});P===!1&&(z={});const{prevResolvedValues:R={}}=_,G={...R,...z},W=K=>{C=!0,m.has(K)&&($=!0,m.delete(K)),_.needsAnimating[K]=!0;const D=e.getValue(K);D&&(D.liveStyle=!1)};for(const K in G){const D=z[K],q=R[K];if(v.hasOwnProperty(K))continue;let V=!1;Lg(D)&&Lg(q)?V=!rk(D,q):V=D!==q,V?D!=null?W(K):m.add(K):D!==void 0&&m.has(K)?W(K):_.protectedKeys[K]=!0}_.prevProp=w,_.prevResolvedValues=z,_.isActive&&(v={...v,...z}),r&&e.blockInitialAnimation&&(C=!1),C&&(!(A&&M)||$)&&d.push(...B.map(K=>({animation:K,options:{type:y}})))}if(m.size){const S={};m.forEach(y=>{const _=e.getBaseTarget(y),w=e.getValue(y);w&&(w.liveStyle=!0),S[y]=_??null}),d.push({animation:S})}let x=!!d.length;return r&&(f.initial===!1||f.initial===f.animate)&&!e.manuallyAnimateOnMount&&(x=!1),r=!1,x?t(d):Promise.resolve()}function l(u,f){var h;if(n[u].isActive===f)return Promise.resolve();(h=e.variantChildren)===null||h===void 0||h.forEach(m=>{var v;return(v=m.animationState)===null||v===void 0?void 0:v.setActive(u,f)}),n[u].isActive=f;const d=s(u);for(const m in n)n[m].protectedKeys={};return d}return{animateChanges:s,setActive:l,setAnimateFunction:o,getState:()=>n,reset:()=>{n=$w(),r=!0}}}function p3(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!rk(t,e):!1}function Ao(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function $w(){return{animate:Ao(!0),whileInView:Ao(),whileHover:Ao(),whileTap:Ao(),whileDrag:Ao(),whileFocus:Ao(),exit:Ao()}}class ho{constructor(t){this.isMounted=!1,this.node=t}update(){}}class m3 extends ho{constructor(t){super(t),t.animationState||(t.animationState=d3(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();dp(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let v3=0;class g3 extends ho{constructor(){super(...arguments),this.id=v3++}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 y3={animation:{Feature:m3},exit:{Feature:g3}};function Ru(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function kc(e){return{point:{x:e.pageX,y:e.pageY}}}const x3=e=>t=>zx(t)&&e(t,kc(t));function lu(e,t,n,r){return Ru(e,t,x3(n),r)}const Nw=(e,t)=>Math.abs(e-t);function _3(e,t){const n=Nw(e.x,t.x),r=Nw(e.y,t.y);return Math.sqrt(n**2+r**2)}class Hk{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 d=rv(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,v=_3(d.offset,{x:0,y:0})>=3;if(!m&&!v)return;const{point:b}=d,{timestamp:x}=Ut;this.history.push({...b,timestamp:x});const{onStart:S,onMove:y}=this.handlers;m||(S&&S(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,d)},this.handlePointerMove=(d,m)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=nv(m,this.transformPagePoint),rt.update(this.updatePoint,!0)},this.handlePointerUp=(d,m)=>{this.end();const{onEnd:v,onSessionEnd:b,resumeAnimation:x}=this.handlers;if(this.dragSnapToOrigin&&x&&x(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const S=rv(d.type==="pointercancel"?this.lastMoveEventInfo:nv(m,this.transformPagePoint),this.history);this.startEvent&&v&&v(d,S),b&&b(d,S)},!zx(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const s=kc(t),l=nv(s,this.transformPagePoint),{point:u}=l,{timestamp:f}=Ut;this.history=[{...u,timestamp:f}];const{onSessionStart:h}=n;h&&h(t,rv(l,this.history)),this.removeListeners=Ec(lu(this.contextWindow,"pointermove",this.handlePointerMove),lu(this.contextWindow,"pointerup",this.handlePointerUp),lu(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),so(this.updatePoint)}}function nv(e,t){return t?{point:t(e.point)}:e}function Lw(e,t){return{x:e.x-t.x,y:e.y-t.y}}function rv({point:e},t){return{point:e,delta:Lw(e,Zk(t)),offset:Lw(e,b3(t)),velocity:w3(t,.1)}}function b3(e){return e[0]}function Zk(e){return e[e.length-1]}function w3(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Zk(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>hi(t)));)n--;if(!r)return{x:0,y:0};const o=di(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 Gk=1e-4,S3=1-Gk,P3=1+Gk,Kk=.01,O3=0-Kk,T3=0+Kk;function Rn(e){return e.max-e.min}function A3(e,t,n){return Math.abs(e-t)<=n}function Iw(e,t,n,r=.5){e.origin=r,e.originPoint=ct(t.min,t.max,e.origin),e.scale=Rn(n)/Rn(t),e.translate=ct(n.min,n.max,e.origin)-e.originPoint,(e.scale>=S3&&e.scale<=P3||isNaN(e.scale))&&(e.scale=1),(e.translate>=O3&&e.translate<=T3||isNaN(e.translate))&&(e.translate=0)}function uu(e,t,n,r){Iw(e.x,t.x,n.x,r?r.originX:void 0),Iw(e.y,t.y,n.y,r?r.originY:void 0)}function Dw(e,t,n){e.min=n.min+t.min,e.max=e.min+Rn(t)}function E3(e,t,n){Dw(e.x,t.x,n.x),Dw(e.y,t.y,n.y)}function Rw(e,t,n){e.min=t.min-n.min,e.max=e.min+Rn(t)}function cu(e,t,n){Rw(e.x,t.x,n.x),Rw(e.y,t.y,n.y)}function k3(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?ct(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?ct(n,e,r.max):Math.min(e,n)),e}function zw(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function M3(e,{top:t,left:n,bottom:r,right:i}){return{x:zw(e.x,n,i),y:zw(e.y,t,r)}}function Bw(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function C3(e,t){return{x:Bw(e.x,t.x),y:Bw(e.y,t.y)}}function j3(e,t){let n=.5;const r=Rn(e),i=Rn(t);return i>r?n=ds(t.min,t.max-r,e.min):r>i&&(n=ds(e.min,e.max-i,t.min)),bi(0,1,n)}function $3(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Zg=.35;function N3(e=Zg){return e===!1?e=0:e===!0&&(e=Zg),{x:Fw(e,"left","right"),y:Fw(e,"top","bottom")}}function Fw(e,t,n){return{min:Vw(e,t),max:Vw(e,n)}}function Vw(e,t){return typeof e=="number"?e:e[t]||0}const Uw=()=>({translate:0,scale:1,origin:0,originPoint:0}),Wa=()=>({x:Uw(),y:Uw()}),Ww=()=>({min:0,max:0}),xt=()=>({x:Ww(),y:Ww()});function Qn(e){return[e("x"),e("y")]}function qk({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function L3({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function I3(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function iv(e){return e===void 0||e===1}function Gg({scale:e,scaleX:t,scaleY:n}){return!iv(e)||!iv(t)||!iv(n)}function Co(e){return Gg(e)||Xk(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Xk(e){return Hw(e.x)||Hw(e.y)}function Hw(e){return e&&e!=="0%"}function Gh(e,t,n){const r=e-n,i=t*r;return n+i}function Zw(e,t,n,r,i){return i!==void 0&&(e=Gh(e,i,r)),Gh(e,n,r)+t}function Kg(e,t=0,n=1,r,i){e.min=Zw(e.min,t,n,r,i),e.max=Zw(e.max,t,n,r,i)}function Yk(e,{x:t,y:n}){Kg(e.x,t.translate,t.scale,t.originPoint),Kg(e.y,n.translate,n.scale,n.originPoint)}const Gw=.999999999999,Kw=1.0000000000001;function D3(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&&Za(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,Yk(e,s)),r&&Co(o.latestValues)&&Za(e,o.latestValues))}t.x<Kw&&t.x>Gw&&(t.x=1),t.y<Kw&&t.y>Gw&&(t.y=1)}function Ha(e,t){e.min=e.min+t,e.max=e.max+t}function qw(e,t,n,r,i=.5){const o=ct(e.min,e.max,i);Kg(e,t,n,o,r)}function Za(e,t){qw(e.x,t.x,t.scaleX,t.scale,t.originX),qw(e.y,t.y,t.scaleY,t.scale,t.originY)}function Qk(e,t){return qk(I3(e.getBoundingClientRect(),t))}function R3(e,t,n){const r=Qk(e,n),{scroll:i}=t;return i&&(Ha(r.x,i.offset.x),Ha(r.y,i.offset.y)),r}const Jk=({current:e})=>e?e.ownerDocument.defaultView:null,z3=new WeakMap;class B3{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=xt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=h=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(kc(h).point)},o=(h,d)=>{const{drag:m,dragPropagation:v,onDragStart:b}=this.getProps();if(m&&!v&&(this.openDragLock&&this.openDragLock(),this.openDragLock=jR(m),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Qn(S=>{let y=this.getAxisMotionValue(S).get()||0;if(Fr.test(y)){const{projection:_}=this.visualElement;if(_&&_.layout){const w=_.layout.layoutBox[S];w&&(y=Rn(w)*(parseFloat(y)/100))}}this.originPoint[S]=y}),b&&rt.postRender(()=>b(h,d)),Rg(this.visualElement,"transform");const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},s=(h,d)=>{const{dragPropagation:m,dragDirectionLock:v,onDirectionLock:b,onDrag:x}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:S}=d;if(v&&this.currentDirection===null){this.currentDirection=F3(S),this.currentDirection!==null&&b&&b(this.currentDirection);return}this.updateAxis("x",d.point,S),this.updateAxis("y",d.point,S),this.visualElement.render(),x&&x(h,d)},l=(h,d)=>this.stop(h,d),u=()=>Qn(h=>{var d;return this.getAnimationState(h)==="paused"&&((d=this.getAxisMotionValue(h).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:f}=this.getProps();this.panSession=new Hk(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:f,contextWindow:Jk(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&rt.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Rf(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=k3(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&&Va(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=M3(i.layoutBox,n):this.constraints=!1,this.elastic=N3(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Qn(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=$3(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Va(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=R3(r,i.root,this.visualElement.getTransformPagePoint());let s=C3(i.layout.layoutBox,o);if(n){const l=n(L3(s));this.hasMutatedConstraints=!!l,l&&(s=qk(l))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:l}=this.getProps(),u=this.constraints||{},f=Qn(h=>{if(!Rf(h,n,this.currentDirection))return;let d=u&&u[h]||{};s&&(d={min:0,max:0});const m=i?200:1e6,v=i?40:1e7,b={type:"inertia",velocity:r?t[h]:0,bounceStiffness:m,bounceDamping:v,timeConstant:750,restDelta:1,restSpeed:10,...o,...d};return this.startAxisValueAnimation(h,b)});return Promise.all(f).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Rg(this.visualElement,t),r.start(Yx(t,r,0,n,this.visualElement,!1))}stopAnimation(){Qn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Qn(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Qn(n=>{const{drag:r}=this.getProps();if(!Rf(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:l}=i.layout.layoutBox[n];o.set(t[n]-ct(s,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Va(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Qn(s=>{const l=this.getAxisMotionValue(s);if(l&&this.constraints!==!1){const u=l.get();i[s]=j3({min:u,max:u},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Qn(s=>{if(!Rf(s,t,null))return;const l=this.getAxisMotionValue(s),{min:u,max:f}=this.constraints[s];l.set(ct(u,f,i[s]))})}addListeners(){if(!this.visualElement.current)return;z3.set(this.visualElement,this);const t=this.visualElement.current,n=lu(t,"pointerdown",u=>{const{drag:f,dragListener:h=!0}=this.getProps();f&&h&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();Va(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),rt.read(r);const s=Ru(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:u,hasLayoutChanged:f})=>{this.isDragging&&f&&(Qn(h=>{const d=this.getAxisMotionValue(h);d&&(this.originPoint[h]+=u[h].translate,d.set(d.get()+u[h].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=Zg,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:l}}}function Rf(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function F3(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class V3 extends ho{constructor(t){super(t),this.removeGroupControls=In,this.removeListeners=In,this.controls=new B3(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||In}unmount(){this.removeGroupControls(),this.removeListeners()}}const Xw=e=>(t,n)=>{e&&rt.postRender(()=>e(t,n))};class U3 extends ho{constructor(){super(...arguments),this.removePointerDownListener=In}onPointerDown(t){this.session=new Hk(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Jk(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Xw(t),onStart:Xw(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&rt.postRender(()=>i(o,s))}}}mount(){this.removePointerDownListener=lu(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const vh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Yw(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ml={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ge.test(e))e=parseFloat(e);else return e;const n=Yw(e,t.target.x),r=Yw(e,t.target.y);return`${n}% ${r}%`}},W3={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=lo.parse(e);if(i.length>5)return r;const o=lo.createTransformer(e),s=typeof i[0]!="number"?1:0,l=n.x.scale*t.x,u=n.y.scale*t.y;i[0+s]/=l,i[1+s]/=u;const f=ct(l,u,.5);return typeof i[2+s]=="number"&&(i[2+s]/=f),typeof i[3+s]=="number"&&(i[3+s]/=f),o(i)}};class H3 extends j.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;fR(Z3),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),vh.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,s=r.projection;return s&&(s.isPresent=o,i||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||rt.postRender(()=>{const l=s.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Tx.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function eM(e){const[t,n]=IE(),r=j.useContext(yx);return O.jsx(H3,{...e,layoutGroup:r,switchLayoutGroup:j.useContext(WE),isPresent:t,safeToRemove:n})}const Z3={borderRadius:{...Ml,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ml,borderTopRightRadius:Ml,borderBottomLeftRadius:Ml,borderBottomRightRadius:Ml,boxShadow:W3};function G3(e,t,n){const r=en(e)?e:Iu(e);return r.start(Yx("",r,t,n)),r.animation}function K3(e){return e instanceof SVGElement&&e.tagName!=="svg"}const q3=(e,t)=>e.depth-t.depth;class X3{constructor(){this.children=[],this.isDirty=!1}add(t){Bx(this.children,t),this.isDirty=!0}remove(t){Fx(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(q3),this.isDirty=!1,this.children.forEach(t)}}function Y3(e,t){const n=Vr.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(so(r),e(o-t))};return rt.read(r,!0),()=>so(r)}const tM=["TopLeft","TopRight","BottomLeft","BottomRight"],Q3=tM.length,Qw=e=>typeof e=="string"?parseFloat(e):e,Jw=e=>typeof e=="number"||ge.test(e);function J3(e,t,n,r,i,o){i?(e.opacity=ct(0,n.opacity!==void 0?n.opacity:1,ez(r)),e.opacityExit=ct(t.opacity!==void 0?t.opacity:1,0,tz(r))):o&&(e.opacity=ct(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;s<Q3;s++){const l=`border${tM[s]}Radius`;let u=eS(t,l),f=eS(n,l);if(u===void 0&&f===void 0)continue;u||(u=0),f||(f=0),u===0||f===0||Jw(u)===Jw(f)?(e[l]=Math.max(ct(Qw(u),Qw(f),r),0),(Fr.test(f)||Fr.test(u))&&(e[l]+="%")):e[l]=f}(t.rotate||n.rotate)&&(e.rotate=ct(t.rotate||0,n.rotate||0,r))}function eS(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const ez=nM(0,.5,_k),tz=nM(.5,.95,In);function nM(e,t,n){return r=>r<e?0:r>t?1:n(ds(e,t,r))}function tS(e,t){e.min=t.min,e.max=t.max}function Kn(e,t){tS(e.x,t.x),tS(e.y,t.y)}function nS(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function rS(e,t,n,r,i){return e-=t,e=Gh(e,1/n,r),i!==void 0&&(e=Gh(e,1/i,r)),e}function nz(e,t=0,n=1,r=.5,i,o=e,s=e){if(Fr.test(t)&&(t=parseFloat(t),t=ct(s.min,s.max,t/100)-s.min),typeof t!="number")return;let l=ct(o.min,o.max,r);e===o&&(l-=t),e.min=rS(e.min,t,n,l,i),e.max=rS(e.max,t,n,l,i)}function iS(e,t,[n,r,i],o,s){nz(e,t[n],t[r],t[i],t.scale,o,s)}const rz=["x","scaleX","originX"],iz=["y","scaleY","originY"];function oS(e,t,n,r){iS(e.x,t,rz,n?n.x:void 0,r?r.x:void 0),iS(e.y,t,iz,n?n.y:void 0,r?r.y:void 0)}function aS(e){return e.translate===0&&e.scale===1}function rM(e){return aS(e.x)&&aS(e.y)}function sS(e,t){return e.min===t.min&&e.max===t.max}function oz(e,t){return sS(e.x,t.x)&&sS(e.y,t.y)}function lS(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function iM(e,t){return lS(e.x,t.x)&&lS(e.y,t.y)}function uS(e){return Rn(e.x)/Rn(e.y)}function cS(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class az{constructor(){this.members=[]}add(t){Bx(this.members,t),t.scheduleRender()}remove(t){if(Fx(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function sz(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:h,rotateX:d,rotateY:m,skewX:v,skewY:b}=n;f&&(r=`perspective(${f}px) ${r}`),h&&(r+=`rotate(${h}deg) `),d&&(r+=`rotateX(${d}deg) `),m&&(r+=`rotateY(${m}deg) `),v&&(r+=`skewX(${v}deg) `),b&&(r+=`skewY(${b}deg) `)}const l=e.x.scale*t.x,u=e.y.scale*t.y;return(l!==1||u!==1)&&(r+=`scale(${l}, ${u})`),r||"none"}const jo={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},ql=typeof window<"u"&&window.MotionDebug!==void 0,ov=["","X","Y","Z"],lz={visibility:"hidden"},fS=1e3;let uz=0;function av(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function oM(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=dk(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",rt,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&oM(r)}function aM({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},l=t==null?void 0:t()){this.id=uz++,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,ql&&(jo.totalNodes=jo.resolvedTargetDeltas=jo.recalculatedProjection=0),this.nodes.forEach(hz),this.nodes.forEach(gz),this.nodes.forEach(yz),this.nodes.forEach(dz),ql&&window.MotionDebug.record(jo)},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 X3)}addEventListener(s,l){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Vx),this.eventHandlers.get(s).add(l)}notifyListeners(s,...l){const u=this.eventHandlers.get(s);u&&u.notify(...l)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,l=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=K3(s),this.instance=s;const{layoutId:u,layout:f,visualElement:h}=this.options;if(h&&!h.current&&h.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),l&&(f||u)&&(this.isLayoutDirty=!0),e){let d;const m=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=Y3(m,250),vh.hasAnimatedSinceResize&&(vh.hasAnimatedSinceResize=!1,this.nodes.forEach(dS))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&h&&(u||f)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:m,hasRelativeTargetChanged:v,layout:b})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||h.getDefaultTransition()||Sz,{onLayoutAnimationStart:S,onLayoutAnimationComplete:y}=h.getProps(),_=!this.targetLayout||!iM(this.targetLayout,b)||v,w=!m&&v;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||w||m&&(_||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,w);const E={...Ix(x,"layout"),onPlay:S,onComplete:y};(h.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=!1),this.startAnimation(E)}else m||dS(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=b})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,so(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(xz),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&&oM(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let h=0;h<this.path.length;h++){const d=this.path[h];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:l,layout:u}=this.options;if(l===void 0&&!u)return;const f=this.getTransformTemplate();this.prevTransformTemplateValue=f?f(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(hS);return}this.isUpdating||this.nodes.forEach(mz),this.isUpdating=!1,this.nodes.forEach(vz),this.nodes.forEach(cz),this.nodes.forEach(fz),this.clearAllSnapshots();const l=Vr.now();Ut.delta=bi(0,1e3/60,l-Ut.timestamp),Ut.timestamp=l,Ut.isProcessing=!0,Xm.update.process(Ut),Xm.preRender.process(Ut),Xm.render.process(Ut),Ut.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Tx.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(pz),this.sharedNodes.forEach(_z)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,rt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){rt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=xt(),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&&!rM(this.projectionDelta),u=this.getTransformTemplate(),f=u?u(this.latestValues,""):void 0,h=f!==this.prevTransformTemplateValue;s&&(l||Co(this.latestValues)||h)&&(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)),Pz(u),{animationId:this.root.animationId,measuredBox:l,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var s;const{visualElement:l}=this.options;if(!l)return xt();const u=l.measureViewportBox();if(!(((s=this.scroll)===null||s===void 0?void 0:s.wasRoot)||this.path.some(Oz))){const{scroll:h}=this.root;h&&(Ha(u.x,h.offset.x),Ha(u.y,h.offset.y))}return u}removeElementScroll(s){var l;const u=xt();if(Kn(u,s),!((l=this.scroll)===null||l===void 0)&&l.wasRoot)return u;for(let f=0;f<this.path.length;f++){const h=this.path[f],{scroll:d,options:m}=h;h!==this.root&&d&&m.layoutScroll&&(d.wasRoot&&Kn(u,s),Ha(u.x,d.offset.x),Ha(u.y,d.offset.y))}return u}applyTransform(s,l=!1){const u=xt();Kn(u,s);for(let f=0;f<this.path.length;f++){const h=this.path[f];!l&&h.options.layoutScroll&&h.scroll&&h!==h.root&&Za(u,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),Co(h.latestValues)&&Za(u,h.latestValues)}return Co(this.latestValues)&&Za(u,this.latestValues),u}removeTransform(s){const l=xt();Kn(l,s);for(let u=0;u<this.path.length;u++){const f=this.path[u];if(!f.instance||!Co(f.latestValues))continue;Gg(f.latestValues)&&f.updateSnapshot();const h=xt(),d=f.measurePageBox();Kn(h,d),oS(l,f.latestValues,f.snapshot?f.snapshot.layoutBox:void 0,h)}return Co(this.latestValues)&&oS(l,this.latestValues),l}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Ut.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var l;const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const f=!!this.resumingFrom||this!==u;if(!(s||f&&this.isSharedProjectionDirty||this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:m}=this.options;if(!(!this.layout||!(d||m))){if(this.resolvedRelativeTargetAt=Ut.timestamp,!this.targetDelta&&!this.relativeTarget){const v=this.getClosestProjectingParent();v&&v.layout&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=xt(),this.relativeTargetOrigin=xt(),cu(this.relativeTargetOrigin,this.layout.layoutBox,v.layout.layoutBox),Kn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=xt(),this.targetWithTransforms=xt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),E3(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Kn(this.target,this.layout.layoutBox),Yk(this.target,this.targetDelta)):Kn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const v=this.getClosestProjectingParent();v&&!!v.resumingFrom==!!this.resumingFrom&&!v.options.layoutScroll&&v.target&&this.animationProgress!==1?(this.relativeParent=v,this.forceRelativeParentToResolveTarget(),this.relativeTarget=xt(),this.relativeTargetOrigin=xt(),cu(this.relativeTargetOrigin,this.target,v.target),Kn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}ql&&jo.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Gg(this.parent.latestValues)||Xk(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var s;const l=this.getLead(),u=!!this.resumingFrom||this!==l;let f=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(f=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(f=!1),this.resolvedRelativeTargetAt===Ut.timestamp&&(f=!1),f)return;const{layout:h,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||d))return;Kn(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,v=this.treeScale.y;D3(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=xt());const{target:b}=l;if(!b){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(nS(this.prevProjectionDelta.x,this.projectionDelta.x),nS(this.prevProjectionDelta.y,this.projectionDelta.y)),uu(this.projectionDelta,this.layoutCorrected,b,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==v||!cS(this.projectionDelta.x,this.prevProjectionDelta.x)||!cS(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",b)),ql&&jo.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=Wa(),this.projectionDelta=Wa(),this.projectionDeltaWithTransform=Wa()}setAnimationOrigin(s,l=!1){const u=this.snapshot,f=u?u.latestValues:{},h={...this.latestValues},d=Wa();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const m=xt(),v=u?u.source:void 0,b=this.layout?this.layout.source:void 0,x=v!==b,S=this.getStack(),y=!S||S.members.length<=1,_=!!(x&&!y&&this.options.crossfade===!0&&!this.path.some(wz));this.animationProgress=0;let w;this.mixTargetDelta=E=>{const P=E/1e3;pS(d.x,s.x,P),pS(d.y,s.y,P),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(cu(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox),bz(this.relativeTarget,this.relativeTargetOrigin,m,P),w&&oz(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=xt()),Kn(w,this.relativeTarget)),x&&(this.animationValues=h,J3(h,f,this.latestValues,P,_,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(so(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=rt.update(()=>{vh.hasAnimatedSinceResize=!0,this.currentAnimation=G3(0,fS,{...s,onUpdate:l=>{this.mixTargetDelta(l),s.onUpdate&&s.onUpdate(l)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(fS),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:l,target:u,layout:f,latestValues:h}=s;if(!(!l||!u||!f)){if(this!==s&&this.layout&&f&&sM(this.options.animationType,this.layout.layoutBox,f.layoutBox)){u=this.target||xt();const d=Rn(this.layout.layoutBox.x);u.x.min=s.target.x.min,u.x.max=u.x.min+d;const m=Rn(this.layout.layoutBox.y);u.y.min=s.target.y.min,u.y.max=u.y.min+m}Kn(l,u),Za(l,h),uu(this.projectionDeltaWithTransform,this.layoutCorrected,l,h)}}registerSharedNode(s,l){this.sharedNodes.has(s)||this.sharedNodes.set(s,new az),this.sharedNodes.get(s).add(l);const f=l.options.initialPromotionConfig;l.promote({transition:f?f.transition:void 0,preserveFollowOpacity:f&&f.shouldPreserveFollowOpacity?f.shouldPreserveFollowOpacity(l):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:l}=this.options;return l?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:l}=this.options;return l?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:l,preserveFollowOpacity:u}={}){const f=this.getStack();f&&f.promote(this,u),s&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let l=!1;const{latestValues:u}=s;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(l=!0),!l)return;const f={};u.z&&av("z",s,f,this.animationValues);for(let h=0;h<ov.length;h++)av(`rotate${ov[h]}`,s,f,this.animationValues),av(`skew${ov[h]}`,s,f,this.animationValues);s.render();for(const h in f)s.setStaticValue(h,f[h]),this.animationValues&&(this.animationValues[h]=f[h]);s.scheduleRender()}getProjectionStyles(s){var l,u;if(!this.instance||this.isSVG)return;if(!this.isVisible)return lz;const f={visibility:""},h=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,f.opacity="",f.pointerEvents=ph(s==null?void 0:s.pointerEvents)||"",f.transform=h?h(this.latestValues,""):"none",f;const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){const x={};return this.options.layoutId&&(x.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,x.pointerEvents=ph(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!Co(this.latestValues)&&(x.transform=h?h({},""):"none",this.hasProjected=!1),x}const m=d.animationValues||d.latestValues;this.applyTransformsToTarget(),f.transform=sz(this.projectionDeltaWithTransform,this.treeScale,m),h&&(f.transform=h(m,f.transform));const{x:v,y:b}=this.projectionDelta;f.transformOrigin=`${v.origin*100}% ${b.origin*100}% 0`,d.animationValues?f.opacity=d===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=d===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(const x in Vh){if(m[x]===void 0)continue;const{correct:S,applyTo:y}=Vh[x],_=f.transform==="none"?m[x]:S(m[x],d);if(y){const w=y.length;for(let E=0;E<w;E++)f[y[E]]=_}else f[x]=_}return this.options.layoutId&&(f.pointerEvents=d===this?ph(s==null?void 0:s.pointerEvents)||"":"none"),f}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var l;return(l=s.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(hS),this.root.sharedNodes.clear()}}}function cz(e){e.updateLayout()}function fz(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,s=n.source!==e.layout.source;o==="size"?Qn(d=>{const m=s?n.measuredBox[d]:n.layoutBox[d],v=Rn(m);m.min=r[d].min,m.max=m.min+v}):sM(o,n.layoutBox,r)&&Qn(d=>{const m=s?n.measuredBox[d]:n.layoutBox[d],v=Rn(r[d]);m.max=m.min+v,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+v)});const l=Wa();uu(l,r,n.layoutBox);const u=Wa();s?uu(u,e.applyTransform(i,!0),n.measuredBox):uu(u,r,n.layoutBox);const f=!rM(l);let h=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:m,layout:v}=d;if(m&&v){const b=xt();cu(b,n.layoutBox,m.layoutBox);const x=xt();cu(x,r,v.layoutBox),iM(b,x)||(h=!0),d.options.layoutRoot&&(e.relativeTarget=x,e.relativeTargetOrigin=b,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:u,layoutDelta:l,hasLayoutChanged:f,hasRelativeTargetChanged:h})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function hz(e){ql&&jo.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 dz(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function pz(e){e.clearSnapshot()}function hS(e){e.clearMeasurements()}function mz(e){e.isLayoutDirty=!1}function vz(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function dS(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function gz(e){e.resolveTargetDelta()}function yz(e){e.calcProjection()}function xz(e){e.resetSkewAndRotation()}function _z(e){e.removeLeadSnapshot()}function pS(e,t,n){e.translate=ct(t.translate,0,n),e.scale=ct(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function mS(e,t,n,r){e.min=ct(t.min,n.min,r),e.max=ct(t.max,n.max,r)}function bz(e,t,n,r){mS(e.x,t.x,n.x,r),mS(e.y,t.y,n.y,r)}function wz(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Sz={duration:.45,ease:[.4,0,.1,1]},vS=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),gS=vS("applewebkit/")&&!vS("chrome/")?Math.round:In;function yS(e){e.min=gS(e.min),e.max=gS(e.max)}function Pz(e){yS(e.x),yS(e.y)}function sM(e,t,n){return e==="position"||e==="preserve-aspect"&&!A3(uS(t),uS(n),.2)}function Oz(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const Tz=aM({attachResizeListener:(e,t)=>Ru(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),sv={current:void 0},lM=aM({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!sv.current){const e=new Tz({});e.mount(window),e.setOptions({layoutScroll:!0}),sv.current=e}return sv.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Az={pan:{Feature:U3},drag:{Feature:V3,ProjectionNode:lM,MeasureLayout:eM}};function xS(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&rt.postRender(()=>o(t,kc(t)))}class Ez extends ho{mount(){const{current:t}=this.node;t&&(this.unmount=AR(t,n=>(xS(this.node,n,"Start"),r=>xS(this.node,r,"End"))))}unmount(){}}class kz extends ho{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Ec(Ru(this.node.current,"focus",()=>this.onFocus()),Ru(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function _S(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&rt.postRender(()=>o(t,kc(t)))}class Mz extends ho{mount(){const{current:t}=this.node;t&&(this.unmount=CR(t,n=>(_S(this.node,n,"Start"),(r,{success:i})=>_S(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const qg=new WeakMap,lv=new WeakMap,Cz=e=>{const t=qg.get(e.target);t&&t(e)},jz=e=>{e.forEach(Cz)};function $z({root:e,...t}){const n=e||document;lv.has(n)||lv.set(n,{});const r=lv.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(jz,{root:e,...t})),r[i]}function Nz(e,t,n){const r=$z(t);return qg.set(e,n),r.observe(e),()=>{qg.delete(e),r.unobserve(e)}}const Lz={some:0,all:1};class Iz extends ho{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Lz[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:h,onViewportLeave:d}=this.node.getProps(),m=f?h:d;m&&m(u)};return Nz(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(Dz(t,n))&&this.startObserver()}unmount(){}}function Dz({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Rz={inView:{Feature:Iz},tap:{Feature:Mz},focus:{Feature:kz},hover:{Feature:Ez}},zz={layout:{ProjectionNode:lM,MeasureLayout:eM}},Xg={current:null},uM={current:!1};function Bz(){if(uM.current=!0,!!bx)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Xg.current=e.matches;e.addListener(t),t()}else Xg.current=!1}const Fz=[...Nk,qt,lo],Vz=e=>Fz.find($k(e)),bS=new WeakMap;function Uz(e,t,n){for(const r in t){const i=t[r],o=n[r];if(en(i))e.addValue(r,i);else if(en(o))e.addValue(r,Iu(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,Iu(s!==void 0?s:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const wS=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Wz{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:s},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Kx,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const v=Vr.now();this.renderScheduledAt<v&&(this.renderScheduledAt=v,rt.render(this.render,!1,!0))};const{latestValues:u,renderState:f,onUpdate:h}=s;this.onUpdate=h,this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=f,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=l,this.blockInitialAnimation=!!o,this.isControllingVariants=pp(n),this.isVariantNode=VE(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...m}=this.scrapeMotionValuesFromProps(n,{},this);for(const v in m){const b=m[v];u[v]!==void 0&&en(b)&&b.set(u[v],!1)}}mount(t){this.current=t,bS.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),uM.current||Bz(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Xg.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){bS.delete(this.current),this.projection&&this.projection.unmount(),so(this.notifyUpdate),so(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=ca.has(t),i=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&rt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in ps){const n=ps[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):xt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<wS.length;r++){const i=wS[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,s=t[o];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=Uz(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=Iu(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"&&(Ck(i)||wk(i))?i=parseFloat(i):!Vz(i)&&lo.test(n)&&(i=Ek(t,n)),this.setBaseTarget(t,en(i)?i.get():i)),en(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const s=Ex(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(i=s[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!en(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Vx),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class cM extends Wz{constructor(){super(...arguments),this.KeyframeResolver=Lk}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;en(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Hz(e){return window.getComputedStyle(e)}class Zz extends cM{constructor(){super(...arguments),this.type="html",this.renderInstance=YE}readValueFromInstance(t,n){if(ca.has(n)){const r=Gx(n);return r&&r.default||0}else{const r=Hz(t),i=(KE(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Qk(t,n)}build(t,n,r){Cx(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Lx(t,n,r)}}class Gz extends cM{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=xt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ca.has(n)){const r=Gx(n);return r&&r.default||0}return n=QE.has(n)?n:Ox(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return tk(t,n,r)}build(t,n,r){jx(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){JE(t,n,r,i)}mount(t){this.isSVGTag=Nx(t.tagName),super.mount(t)}}const Kz=(e,t)=>Ax(e)?new Gz(t):new Zz(t,{allowProjection:e!==j.Fragment}),qz=_R({...y3,...Rz,...Az,...zz},Kz),Xz=LD(qz);/**
|
|
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 Yz={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 Qz=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),Pe=(e,t)=>{const n=j.forwardRef(({color:r="currentColor",size:i=24,strokeWidth:o=2,absoluteStrokeWidth:s,className:l="",children:u,...f},h)=>j.createElement("svg",{ref:h,...Yz,width:i,height:i,stroke:r,strokeWidth:s?Number(o)*24/Number(i):o,className:["lucide",`lucide-${Qz(e)}`,l].join(" "),...f},[...t.map(([d,m])=>j.createElement(d,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 Jz=Pe("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 e4=Pe("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 t4=Pe("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 n4=Pe("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 r4=Pe("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 i4=Pe("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 fM=Pe("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 o4=Pe("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 a4=Pe("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 s4=Pe("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 l4=Pe("CloudSun",[["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}],["path",{d:"M15.947 12.65a4 4 0 0 0-5.925-4.128",key:"dpwdj0"}],["path",{d:"M13 22H7a5 5 0 1 1 4.9-6H13a3 3 0 0 1 0 6Z",key:"s09mg5"}]]);/**
|
|
114
|
+
* @license lucide-react v0.344.0 - ISC
|
|
115
|
+
*
|
|
116
|
+
* This source code is licensed under the ISC license.
|
|
117
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
118
|
+
*/const SS=Pe("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 u4=Pe("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 c4=Pe("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 f4=Pe("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 h4=Pe("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 d4=Pe("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 p4=Pe("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 m4=Pe("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 v4=Pe("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 hM=Pe("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 dM=Pe("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
|
|
169
|
+
* @license lucide-react v0.344.0 - ISC
|
|
170
|
+
*
|
|
171
|
+
* This source code is licensed under the ISC license.
|
|
172
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
173
|
+
*/const PS=Pe("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 g4=Pe("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=Pe("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 y4=Pe("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 x4=Pe("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 _4=Pe("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 b4=Pe("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 w4=Pe("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 S4=Pe("SlidersHorizontal",[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]]);/**
|
|
214
|
+
* @license lucide-react v0.344.0 - ISC
|
|
215
|
+
*
|
|
216
|
+
* This source code is licensed under the ISC license.
|
|
217
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
218
|
+
*/const OS=Pe("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 P4=Pe("Sofa",[["path",{d:"M20 9V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v3",key:"1dgpiv"}],["path",{d:"M2 11v5a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5a2 2 0 0 0-4 0v2H6v-2a2 2 0 0 0-4 0Z",key:"u5qfb7"}],["path",{d:"M4 18v2",key:"jwo5n2"}],["path",{d:"M20 18v2",key:"1ar1qi"}],["path",{d:"M12 4v9",key:"oqhhn3"}]]);/**
|
|
224
|
+
* @license lucide-react v0.344.0 - ISC
|
|
225
|
+
*
|
|
226
|
+
* This source code is licensed under the ISC license.
|
|
227
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
228
|
+
*/const Qx=Pe("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 mM=Pe("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 vM=Pe("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 O4=Pe("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 T4=Pe("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 A4=Pe("Wind",[["path",{d:"M17.7 7.7a2.5 2.5 0 1 1 1.8 4.3H2",key:"1k4u03"}],["path",{d:"M9.6 4.6A2 2 0 1 1 11 8H2",key:"b7d0fd"}],["path",{d:"M12.6 19.4A2 2 0 1 0 14 16H2",key:"1p5cb3"}]]);/**
|
|
254
|
+
* @license lucide-react v0.344.0 - ISC
|
|
255
|
+
*
|
|
256
|
+
* This source code is licensed under the ISC license.
|
|
257
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
258
|
+
*/const uv=Pe("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 E4=Pe("Zap",[["polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2",key:"45s27k"}]]),k4=()=>{const e=window.location.hostname;return e==="localhost"||e==="127.0.0.1"||e.startsWith("192.168.")?"https://192.168.111.240:1881":`https://${e}:1881`},M4=()=>{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),[h,d]=j.useState(!1),m=k4(),v=`${m}/api/boat`,b=`${m}/api/boat/control`,x=j.useRef(!1),S=j.useCallback(async()=>{if(x.current)return;x.current=!0;const w=new AbortController,E=setTimeout(()=>w.abort(),4e3);try{const P=await fetch(v,{signal:w.signal});if(clearTimeout(E),!P.ok)throw new Error(`Errore Server: ${P.status}`);const A=await P.json();t(A),r(new Date),l(!1),f(null),d(!1)}catch(P){clearTimeout(E),P.name!=="AbortError"&&(console.error("Fetch Error:",P),f(P.message)),l(!0),d(!1)}finally{x.current=!1}},[v]),y=async(w,E)=>{d(!0);try{if(!(await fetch(b,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({device:w,state:E})})).ok)throw new Error("Comando fallito");setTimeout(S,1e3)}catch(P){console.error("Errore invio comando:",P),d(!1)}};j.useEffect(()=>{let w=null;const E=()=>{w&&(clearInterval(w),w=null),document.hidden||(S(),w=setInterval(S,5e3))};return E(),document.addEventListener("visibilitychange",E),window.addEventListener("pageshow",E),window.addEventListener("focus",E),window.addEventListener("online",E),()=>{w&&clearInterval(w),document.removeEventListener("visibilitychange",E),window.removeEventListener("pageshow",E),window.removeEventListener("focus",E),window.removeEventListener("online",E)}},[]),j.useEffect(()=>{const w=setInterval(()=>{if(!document.hidden)if(n){const E=Math.floor((new Date-n)/1e3);o(E),l(E>30),E>=8&&!h&&!x.current&&S()}else x.current||S()},1e3);return()=>clearInterval(w)},[n,h,S]);const _=i<15?"bg-green-500":i<30?"bg-orange-500":"bg-red-500";return{data:e,secondsSinceLastUpdate:i,isDataStale:s,statusColor:_,isUpdating:h,error:u,apiUrl:m,toggleSwitch:(w,E)=>y(w,E),setShoreLimit:w=>y("shore_limit",w)}};function C4(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 j4(e,t,n){t.center!==n.center&&e.setLatLng(t.center),t.radius!=null&&t.radius!==n.radius&&e.setRadius(t.radius)}const $4=1;function N4(e){return Object.freeze({__version:$4,map:e})}function Jx(e,t){return Object.freeze({...e,...t})}const gM=j.createContext(null),yM=gM.Provider;function e_(){const e=j.useContext(gM);if(e==null)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return e}function xM(e){function t(n,r){const{instance:i,context:o}=e(n).current;return j.useImperativeHandle(r,()=>i),n.children==null?null:I.createElement(yM,{value:o},n.children)}return j.forwardRef(t)}function L4(e){function t(n,r){const{instance:i}=e(n).current;return j.useImperativeHandle(r,()=>i),null}return j.forwardRef(t)}function _M(e,t){const n=j.useRef();j.useEffect(function(){return t!=null&&e.instance.on(t),n.current=t,function(){n.current!=null&&e.instance.off(n.current),n.current=null}},[e,t])}function t_(e,t){const n=e.pane??t.pane;return n?{...e,pane:n}:e}var Yg={exports:{}};/* @preserve
|
|
264
|
+
* Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
|
|
265
|
+
* (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
|
|
266
|
+
*/(function(e,t){(function(n,r){r(t)})(Vl,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,N;return N=function(){g=!1,T&&(k.apply(p,T),T=!1)},k=function(){g?T=arguments:(a.apply(p,arguments),setTimeout(N,c),g=!0)},k}function h(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 d(){return!1}function m(a,c){if(c===!1)return a;var p=Math.pow(10,c===void 0?6:c);return Math.round(a*p)/p}function v(a){return a.trim?a.trim():a.replace(/^\s+|\s+$/g,"")}function b(a){return v(a).split(/\s+/)}function x(a,c){Object.prototype.hasOwnProperty.call(a,"options")||(a.options=a.options?o(a.options):{});for(var p in c)a.options[p]=c[p];return a.options}function S(a,c,p){var g=[];for(var T in a)g.push(encodeURIComponent(p?T.toUpperCase():T)+"="+encodeURIComponent(a[T]));return(!c||c.indexOf("?")===-1?"?":"&")+g.join("&")}var y=/\{ *([\w_ -]+) *\}/g;function _(a,c){return a.replace(y,function(p,g){var T=c[g];if(T===void 0)throw new Error("No value provided for variable "+p);return typeof T=="function"&&(T=T(c)),T})}var w=Array.isArray||function(a){return Object.prototype.toString.call(a)==="[object Array]"};function E(a,c){for(var p=0;p<a.length;p++)if(a[p]===c)return p;return-1}var P="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function A(a){return window["webkit"+a]||window["moz"+a]||window["ms"+a]}var M=0;function C(a){var c=+new Date,p=Math.max(0,16-(c-M));return M=c+p,window.setTimeout(a,p)}var $=window.requestAnimationFrame||A("RequestAnimationFrame")||C,B=window.cancelAnimationFrame||A("CancelAnimationFrame")||A("CancelRequestAnimationFrame")||function(a){window.clearTimeout(a)};function z(a,c,p){if(p&&$===C)a.call(c);else return $.call(window,s(a,c))}function R(a){a&&B.call(window,a)}var G={__proto__:null,extend:i,create:o,bind:s,get lastId(){return l},stamp:u,throttle:f,wrapNum:h,falseFn:d,formatNum:m,trim:v,splitWords:b,setOptions:x,getParamString:S,template:_,isArray:w,indexOf:E,emptyImageUrl:P,requestFn:$,cancelFn:B,requestAnimFrame:z,cancelAnimFrame:R};function W(){}W.extend=function(a){var c=function(){x(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},p=c.__super__=this.prototype,g=o(p);g.constructor=c,c.prototype=g;for(var T in this)Object.prototype.hasOwnProperty.call(this,T)&&T!=="prototype"&&T!=="__super__"&&(c[T]=this[T]);return a.statics&&i(c,a.statics),a.includes&&(H(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,N=g._initHooks.length;k<N;k++)g._initHooks[k].call(this)}},c},W.include=function(a){var c=this.prototype.options;return i(this.prototype,a),a.options&&(this.prototype.options=c,this.mergeOptions(a.options)),this},W.mergeOptions=function(a){return i(this.prototype.options,a),this},W.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 H(a){if(!(typeof L>"u"||!L||!L.Mixin)){a=w(a)?a:[a];for(var c=0;c<a.length;c++)a[c]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var Z={on:function(a,c,p){if(typeof a=="object")for(var g in a)this._on(g,a[g],c);else{a=b(a);for(var T=0,k=a.length;T<k;T++)this._on(a[T],c,p)}return this},off:function(a,c,p){if(!arguments.length)delete this._events;else if(typeof a=="object")for(var g in a)this._off(g,a[g],c);else{a=b(a);for(var T=arguments.length===1,k=0,N=a.length;k<N;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=d;delete this._events[a];return}if(typeof c!="function"){console.warn("wrong listener type: "+typeof c);return}var N=this._listens(a,c,p);if(N!==!1){var F=g[N];this._firingCount&&(F.fn=d,this._events[a]=g=g.slice()),g.splice(N,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,N=T.length;k<N;k++){var F=T[k],U=F.fn;F.once&&this.off(a,U,F.ctx),U.call(F.ctx||this,g)}this._firingCount--}}return p&&this._propagateEvent(g),this},listens:function(a,c,p,g){typeof a!="string"&&console.warn('"string" type argument expected');var T=c;typeof c!="function"&&(g=!!c,T=void 0,p=void 0);var k=this._events&&this._events[a];if(k&&k.length&&this._listens(a,T,p)!==!1)return!0;if(g){for(var N in this._eventParents)if(this._eventParents[N].listens(a,c,p,g))return!0}return!1},_listens:function(a,c,p){if(!this._events)return!1;var g=this._events[a]||[];if(!c)return!!g.length;p===this&&(p=void 0);for(var T=0,k=g.length;T<k;T++)if(g[T].fn===c&&g[T].ctx===p)return T;return!1},once:function(a,c,p){if(typeof a=="object")for(var g in a)this._on(g,a[g],c,!0);else{a=b(a);for(var T=0,k=a.length;T<k;T++)this._on(a[T],c,p,!0)}return this},addEventParent:function(a){return this._eventParents=this._eventParents||{},this._eventParents[u(a)]=a,this},removeEventParent:function(a){return this._eventParents&&delete this._eventParents[u(a)],this},_propagateEvent:function(a){for(var c in this._eventParents)this._eventParents[c].fire(a.type,i({layer:a.target,propagatedFrom:a.target},a),!0)}};Z.addEventListener=Z.on,Z.removeEventListener=Z.clearAllEventListeners=Z.off,Z.addOneTimeEventListener=Z.once,Z.fireEvent=Z.fire,Z.hasEventListeners=Z.listens;var K=W.extend(Z);function D(a,c,p){this.x=p?Math.round(a):a,this.y=p?Math.round(c):c}var q=Math.trunc||function(a){return a>0?Math.floor(a):Math.ceil(a)};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=q(this.x),this.y=q(this.y),this},distanceTo:function(a){a=V(a);var c=a.x-this.x,p=a.y-this.y;return Math.sqrt(c*c+p*p)},equals:function(a){return a=V(a),a.x===this.x&&a.y===this.y},contains:function(a){return a=V(a),Math.abs(a.x)<=Math.abs(this.x)&&Math.abs(a.y)<=Math.abs(this.y)},toString:function(){return"Point("+m(this.x)+", "+m(this.y)+")"}};function V(a,c,p){return a instanceof D?a:w(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 te(a,c){if(a)for(var p=c?[a,c]:a,g=0,T=p.length;g<T;g++)this.extend(p[g])}te.prototype={extend:function(a){var c,p;if(!a)return this;if(a instanceof D||typeof a[0]=="number"||"x"in a)c=p=V(a);else if(a=Y(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=Y(a),a instanceof te?(c=a.min,p=a.max):c=p=a,c.x>=this.min.x&&p.x<=this.max.x&&c.y>=this.min.y&&p.y<=this.max.y},intersects:function(a){a=Y(a);var c=this.min,p=this.max,g=a.min,T=a.max,k=T.x>=c.x&&g.x<=p.x,N=T.y>=c.y&&g.y<=p.y;return k&&N},overlaps:function(a){a=Y(a);var c=this.min,p=this.max,g=a.min,T=a.max,k=T.x>c.x&&g.x<p.x,N=T.y>c.y&&g.y<p.y;return k&&N},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 Y(V(c.x-g,c.y-T),V(p.x+g,p.y+T))},equals:function(a){return a?(a=Y(a),this.min.equals(a.getTopLeft())&&this.max.equals(a.getBottomRight())):!1}};function Y(a,c){return!a||a instanceof te?a:new te(a,c)}function ae(a,c){if(a)for(var p=c?[a,c]:a,g=0,T=p.length;g<T;g++)this.extend(p[g])}ae.prototype={extend:function(a){var c=this._southWest,p=this._northEast,g,T;if(a instanceof he)g=a,T=a;else if(a instanceof ae){if(g=a._southWest,T=a._northEast,!g||!T)return this}else return a?this.extend(ce(a)||fe(a)):this;return!c&&!p?(this._southWest=new he(g.lat,g.lng),this._northEast=new he(T.lat,T.lng)):(c.lat=Math.min(g.lat,c.lat),c.lng=Math.min(g.lng,c.lng),p.lat=Math.max(T.lat,p.lat),p.lng=Math.max(T.lng,p.lng)),this},pad:function(a){var c=this._southWest,p=this._northEast,g=Math.abs(c.lat-p.lat)*a,T=Math.abs(c.lng-p.lng)*a;return new ae(new he(c.lat-g,c.lng-T),new he(p.lat+g,p.lng+T))},getCenter:function(){return new he((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new he(this.getNorth(),this.getWest())},getSouthEast:function(){return new he(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(a){typeof a[0]=="number"||a instanceof he||"lat"in a?a=ce(a):a=fe(a);var c=this._southWest,p=this._northEast,g,T;return a instanceof ae?(g=a.getSouthWest(),T=a.getNorthEast()):g=T=a,g.lat>=c.lat&&T.lat<=p.lat&&g.lng>=c.lng&&T.lng<=p.lng},intersects:function(a){a=fe(a);var c=this._southWest,p=this._northEast,g=a.getSouthWest(),T=a.getNorthEast(),k=T.lat>=c.lat&&g.lat<=p.lat,N=T.lng>=c.lng&&g.lng<=p.lng;return k&&N},overlaps:function(a){a=fe(a);var c=this._southWest,p=this._northEast,g=a.getSouthWest(),T=a.getNorthEast(),k=T.lat>c.lat&&g.lat<p.lat,N=T.lng>c.lng&&g.lng<p.lng;return k&&N},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(a,c){return a?(a=fe(a),this._southWest.equals(a.getSouthWest(),c)&&this._northEast.equals(a.getNorthEast(),c)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function fe(a,c){return a instanceof ae?a:new ae(a,c)}function he(a,c,p){if(isNaN(a)||isNaN(c))throw new Error("Invalid LatLng object: ("+a+", "+c+")");this.lat=+a,this.lng=+c,p!==void 0&&(this.alt=+p)}he.prototype={equals:function(a,c){if(!a)return!1;a=ce(a);var p=Math.max(Math.abs(this.lat-a.lat),Math.abs(this.lng-a.lng));return p<=(c===void 0?1e-9:c)},toString:function(a){return"LatLng("+m(this.lat,a)+", "+m(this.lng,a)+")"},distanceTo:function(a){return ze.distance(this,ce(a))},wrap:function(){return ze.wrapLatLng(this)},toBounds:function(a){var c=180*a/40075017,p=c/Math.cos(Math.PI/180*this.lat);return fe([this.lat-c,this.lng-p],[this.lat+c,this.lng+p])},clone:function(){return new he(this.lat,this.lng,this.alt)}};function ce(a,c,p){return a instanceof he?a:w(a)&&typeof a[0]!="object"?a.length===3?new he(a[0],a[1],a[2]):a.length===2?new he(a[0],a[1]):null:a==null?a:typeof a=="object"&&"lat"in a?new he(a.lat,"lng"in a?a.lng:a.lon,a.alt):c===void 0?null:new he(a,c,p)}var Ve={latLngToPoint:function(a,c){var p=this.projection.project(a),g=this.scale(c);return this.transformation._transform(p,g)},pointToLatLng:function(a,c){var p=this.scale(c),g=this.transformation.untransform(a,p);return this.projection.unproject(g)},project:function(a){return this.projection.project(a)},unproject:function(a){return this.projection.unproject(a)},scale:function(a){return 256*Math.pow(2,a)},zoom:function(a){return Math.log(a/256)/Math.LN2},getProjectedBounds:function(a){if(this.infinite)return null;var c=this.projection.bounds,p=this.scale(a),g=this.transformation.transform(c.min,p),T=this.transformation.transform(c.max,p);return new te(g,T)},infinite:!1,wrapLatLng:function(a){var c=this.wrapLng?h(a.lng,this.wrapLng,!0):a.lng,p=this.wrapLat?h(a.lat,this.wrapLat,!0):a.lat,g=a.alt;return new he(p,c,g)},wrapLatLngBounds:function(a){var c=a.getCenter(),p=this.wrapLatLng(c),g=c.lat-p.lat,T=c.lng-p.lng;if(g===0&&T===0)return a;var k=a.getSouthWest(),N=a.getNorthEast(),F=new he(k.lat-g,k.lng-T),U=new he(N.lat-g,N.lng-T);return new ae(F,U)}},ze=i({},Ve,{wrapLng:[-180,180],R:6371e3,distance:function(a,c){var p=Math.PI/180,g=a.lat*p,T=c.lat*p,k=Math.sin((c.lat-a.lat)*p/2),N=Math.sin((c.lng-a.lng)*p/2),F=k*k+Math.cos(g)*Math.cos(T)*N*N,U=2*Math.atan2(Math.sqrt(F),Math.sqrt(1-F));return this.R*U}}),oe=6378137,me={R:oe,MAX_LATITUDE:85.0511287798,project:function(a){var c=Math.PI/180,p=this.MAX_LATITUDE,g=Math.max(Math.min(p,a.lat),-p),T=Math.sin(g*c);return new 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 he((2*Math.atan(Math.exp(a.y/this.R))-Math.PI/2)*c,a.x*c/this.R)},bounds:function(){var a=oe*Math.PI;return new te([-a,-a],[a,a])}()};function ye(a,c,p,g){if(w(a)){this._a=a[0],this._b=a[1],this._c=a[2],this._d=a[3];return}this._a=a,this._b=c,this._c=p,this._d=g}ye.prototype={transform:function(a,c){return this._transform(a.clone(),c)},_transform:function(a,c){return c=c||1,a.x=c*(this._a*a.x+this._b),a.y=c*(this._c*a.y+this._d),a},untransform:function(a,c){return c=c||1,new 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 Le=i({},ze,{code:"EPSG:3857",projection:me,transformation:function(){var a=.5/(Math.PI*me.R);return J(a,.5,-a,.5)}()}),we=i({},Le,{code:"EPSG:900913"});function Ue(a){return document.createElementNS("http://www.w3.org/2000/svg",a)}function We(a,c){var p="",g,T,k,N,F,U;for(g=0,k=a.length;g<k;g++){for(F=a[g],T=0,N=F.length;T<N;T++)U=F[T],p+=(T?"L":"M")+U.x+" "+U.y;p+=c?de.svg?"z":"x":""}return p||"M0 0"}var it=document.documentElement.style,Tt="ActiveXObject"in window,hn=Tt&&!document.addEventListener,On="msLaunchUri"in navigator&&!("documentMode"in document),zt=En("webkit"),Q=En("android"),_e=En("android 2")||En("android 3"),Oe=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),Ie=Q&&En("Google")&&Oe<537&&!("AudioNode"in window),yt=!!window.opera,He=!On&&En("chrome"),pt=En("gecko")&&!zt&&!yt&&!Tt,dn=!He&&En("safari"),nn=En("phantom"),pn="OTransition"in it,rn=navigator.platform.indexOf("Win")===0,Vn=Tt&&"transition"in it,Tn="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!_e,Un="MozPerspective"in it,kr=!window.L_DISABLE_3D&&(Vn||Tn||Un)&&!pn&&!nn,An=typeof orientation<"u"||En("mobile"),_o=An&&zt,Kr=An&&Tn,bo=!window.PointerEvent&&window.MSPointerEvent,wo=!!(window.PointerEvent||bo),Mi="ontouchstart"in window||!!window.TouchEvent,Dc=!window.L_NO_TOUCH&&(Mi||wo),Rc=An&&yt,zc=An&&pt,Bc=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Fc=function(){var a=!1;try{var c=Object.defineProperty({},"passive",{get:function(){a=!0}});window.addEventListener("testPassiveEventSupport",d,c),window.removeEventListener("testPassiveEventSupport",d,c)}catch{}return a}(),Vc=function(){return!!document.createElement("canvas").getContext}(),va=!!(document.createElementNS&&Ue("svg").createSVGRect),Uc=!!va&&function(){var a=document.createElement("div");return a.innerHTML="<svg/>",(a.firstChild&&a.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),Wc=!va&&function(){try{var a=document.createElement("div");a.innerHTML='<v:shape adj="1"/>';var c=a.firstChild;return c.style.behavior="url(#default#VML)",c&&typeof c.adj=="object"}catch{return!1}}(),Hc=navigator.platform.indexOf("Mac")===0,Zc=navigator.platform.indexOf("Linux")===0;function En(a){return navigator.userAgent.toLowerCase().indexOf(a)>=0}var de={ie:Tt,ielt9:hn,edge:On,webkit:zt,android:Q,android23:_e,androidStock:Ie,opera:yt,chrome:He,gecko:pt,safari:dn,phantom:nn,opera12:pn,win:rn,ie3d:Vn,webkit3d:Tn,gecko3d:Un,any3d:kr,mobile:An,mobileWebkit:_o,mobileWebkit3d:Kr,msPointer:bo,pointer:wo,touch:Dc,touchNative:Mi,mobileOpera:Rc,mobileGecko:zc,retina:Bc,passiveEvents:Fc,canvas:Vc,svg:va,vml:Wc,inlineSvg:Uc,mac:Hc,linux:Zc},al=de.msPointer?"MSPointerDown":"pointerdown",sl=de.msPointer?"MSPointerMove":"pointermove",ll=de.msPointer?"MSPointerUp":"pointerup",ul=de.msPointer?"MSPointerCancel":"pointercancel",ga={touchstart:al,touchmove:sl,touchend:ll,touchcancel:ul},cl={touchstart:Qc,touchmove:So,touchend:So,touchcancel:So},qr={},fl=!1;function Gc(a,c,p){return c==="touchstart"&&Yc(),cl[c]?(p=cl[c].bind(this,p),a.addEventListener(ga[c],p,!1),p):(console.warn("wrong event specified:",c),d)}function Kc(a,c,p){if(!ga[c]){console.warn("wrong event specified:",c);return}a.removeEventListener(ga[c],p,!1)}function qc(a){qr[a.pointerId]=a}function Xc(a){qr[a.pointerId]&&(qr[a.pointerId]=a)}function hl(a){delete qr[a.pointerId]}function Yc(){fl||(document.addEventListener(al,qc,!0),document.addEventListener(sl,Xc,!0),document.addEventListener(ll,hl,!0),document.addEventListener(ul,hl,!0),fl=!0)}function So(a,c){if(c.pointerType!==(c.MSPOINTER_TYPE_MOUSE||"mouse")){c.touches=[];for(var p in qr)c.touches.push(qr[p]);c.changedTouches=[c],a(c)}}function Qc(a,c){c.MSPOINTER_TYPE_TOUCH&&c.pointerType===c.MSPOINTER_TYPE_TOUCH&&Bt(c),So(a,c)}function Jc(a){var c={},p,g;for(g in a)p=a[g],c[g]=p&&p.bind?p.bind(a):p;return a=c,c.type="dblclick",c.detail=2,c.isTrusted=!1,c._simulated=!0,c}var ef=200;function tf(a,c){a.addEventListener("dblclick",c);var p=0,g;function T(k){if(k.detail!==1){g=k.detail;return}if(!(k.pointerType==="mouse"||k.sourceCapabilities&&!k.sourceCapabilities.firesTouchEvents)){var N=m1(k);if(!(N.some(function(U){return U instanceof HTMLLabelElement&&U.attributes.for})&&!N.some(function(U){return U instanceof HTMLInputElement||U instanceof HTMLSelectElement}))){var F=Date.now();F-p<=ef?(g++,g===2&&c(Jc(k))):g=1,p=F}}}return a.addEventListener("click",T),{dblclick:c,simDblclick:T}}function nf(a,c){a.removeEventListener("dblclick",c.dblclick),a.removeEventListener("click",c.simDblclick)}var ya=Hn(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Ci=Hn(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),dl=Ci==="webkitTransition"||Ci==="OTransition"?Ci+"End":"transitionend";function pl(a){return typeof a=="string"?document.getElementById(a):a}function ji(a,c){var p=a.style[c]||a.currentStyle&&a.currentStyle[c];if((!p||p==="auto")&&document.defaultView){var g=document.defaultView.getComputedStyle(a,null);p=g?g[c]:null}return p==="auto"?null:p}function Ce(a,c,p){var g=document.createElement(a);return g.className=c||"",p&&p.appendChild(g),g}function ne(a){var c=a.parentNode;c&&c.removeChild(a)}function lt(a){for(;a.firstChild;)a.removeChild(a.firstChild)}function ot(a){var c=a.parentNode;c&&c.lastChild!==a&&c.appendChild(a)}function on(a){var c=a.parentNode;c&&c.firstChild!==a&&c.insertBefore(a,c.firstChild)}function bt(a,c){if(a.classList!==void 0)return a.classList.contains(c);var p=Mr(a);return p.length>0&&new RegExp("(^|\\s)"+c+"(\\s|$)").test(p)}function pe(a,c){if(a.classList!==void 0)for(var p=b(c),g=0,T=p.length;g<T;g++)a.classList.add(p[g]);else if(!bt(a,c)){var k=Mr(a);kn(a,(k?k+" ":"")+c)}}function Ae(a,c){a.classList!==void 0?a.classList.remove(c):kn(a,v((" "+Mr(a)+" ").replace(" "+c+" "," ")))}function kn(a,c){a.className.baseVal===void 0?a.className=c:a.className.baseVal=c}function Mr(a){return a.correspondingElement&&(a=a.correspondingElement),a.className.baseVal===void 0?a.className:a.className.baseVal}function $t(a,c){"opacity"in a.style?a.style.opacity=c:"filter"in a.style&&Wn(a,c)}function Wn(a,c){var p=!1,g="DXImageTransform.Microsoft.Alpha";try{p=a.filters.item(g)}catch{if(c===1)return}c=Math.round(c*100),p?(p.Enabled=c!==100,p.Opacity=c):a.style.filter+=" progid:"+g+"(opacity="+c+")"}function Hn(a){for(var c=document.documentElement.style,p=0;p<a.length;p++)if(a[p]in c)return a[p];return!1}function mn(a,c,p){var g=c||new D(0,0);a.style[ya]=(de.ie3d?"translate("+g.x+"px,"+g.y+"px)":"translate3d("+g.x+"px,"+g.y+"px,0)")+(p?" scale("+p+")":"")}function Ke(a,c){a._leaflet_pos=c,de.any3d?mn(a,c):(a.style.left=c.x+"px",a.style.top=c.y+"px")}function hr(a){return a._leaflet_pos||new D(0,0)}var $i,Xr,xa;if("onselectstart"in document)$i=function(){be(window,"selectstart",Bt)},Xr=function(){Xe(window,"selectstart",Bt)};else{var Ni=Hn(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);$i=function(){if(Ni){var a=document.documentElement.style;xa=a[Ni],a[Ni]="none"}},Xr=function(){Ni&&(document.documentElement.style[Ni]=xa,xa=void 0)}}function rm(){be(window,"dragstart",Bt)}function im(){Xe(window,"dragstart",Bt)}var rf,om;function am(a){for(;a.tabIndex===-1;)a=a.parentNode;a.style&&(of(),rf=a,om=a.style.outlineStyle,a.style.outlineStyle="none",be(window,"keydown",of))}function of(){rf&&(rf.style.outlineStyle=om,rf=void 0,om=void 0,Xe(window,"keydown",of))}function d1(a){do a=a.parentNode;while((!a.offsetWidth||!a.offsetHeight)&&a!==document.body);return a}function sm(a){var c=a.getBoundingClientRect();return{x:c.width/a.offsetWidth||1,y:c.height/a.offsetHeight||1,boundingClientRect:c}}var rN={__proto__:null,TRANSFORM:ya,TRANSITION:Ci,TRANSITION_END:dl,get:pl,getStyle:ji,create:Ce,remove:ne,empty:lt,toFront:ot,toBack:on,hasClass:bt,addClass:pe,removeClass:Ae,setClass:kn,getClass:Mr,setOpacity:$t,testProp:Hn,setTransform:mn,setPosition:Ke,getPosition:hr,get disableTextSelection(){return $i},get enableTextSelection(){return Xr},disableImageDrag:rm,enableImageDrag:im,preventOutline:am,restoreOutline:of,getSizedParentNode:d1,getScale:sm};function be(a,c,p,g){if(c&&typeof c=="object")for(var T in c)um(a,T,c[T],p);else{c=b(c);for(var k=0,N=c.length;k<N;k++)um(a,c[k],p,g)}return this}var Cr="_leaflet_events";function Xe(a,c,p,g){if(arguments.length===1)p1(a),delete a[Cr];else if(c&&typeof c=="object")for(var T in c)cm(a,T,c[T],p);else if(c=b(c),arguments.length===2)p1(a,function(F){return E(c,F)!==-1});else for(var k=0,N=c.length;k<N;k++)cm(a,c[k],p,g);return this}function p1(a,c){for(var p in a[Cr]){var g=p.split(/\d/)[0];(!c||c(g))&&cm(a,g,null,null,p)}}var lm={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function um(a,c,p,g){var T=c+u(p)+(g?"_"+u(g):"");if(a[Cr]&&a[Cr][T])return this;var k=function(F){return p.call(g||a,F||window.event)},N=k;!de.touchNative&&de.pointer&&c.indexOf("touch")===0?k=Gc(a,c,k):de.touch&&c==="dblclick"?k=tf(a,k):"addEventListener"in a?c==="touchstart"||c==="touchmove"||c==="wheel"||c==="mousewheel"?a.addEventListener(lm[c]||c,k,de.passiveEvents?{passive:!1}:!1):c==="mouseenter"||c==="mouseleave"?(k=function(F){F=F||window.event,hm(a,F)&&N(F)},a.addEventListener(lm[c],k,!1)):a.addEventListener(c,N,!1):a.attachEvent("on"+c,k),a[Cr]=a[Cr]||{},a[Cr][T]=k}function cm(a,c,p,g,T){T=T||c+u(p)+(g?"_"+u(g):"");var k=a[Cr]&&a[Cr][T];if(!k)return this;!de.touchNative&&de.pointer&&c.indexOf("touch")===0?Kc(a,c,k):de.touch&&c==="dblclick"?nf(a,k):"removeEventListener"in a?a.removeEventListener(lm[c]||c,k,!1):a.detachEvent("on"+c,k),a[Cr][T]=null}function Po(a){return a.stopPropagation?a.stopPropagation():a.originalEvent?a.originalEvent._stopped=!0:a.cancelBubble=!0,this}function fm(a){return um(a,"wheel",Po),this}function ml(a){return be(a,"mousedown touchstart dblclick contextmenu",Po),a._leaflet_disable_click=!0,this}function Bt(a){return a.preventDefault?a.preventDefault():a.returnValue=!1,this}function Oo(a){return Bt(a),Po(a),this}function m1(a){if(a.composedPath)return a.composedPath();for(var c=[],p=a.target;p;)c.push(p),p=p.parentNode;return c}function v1(a,c){if(!c)return new D(a.clientX,a.clientY);var p=sm(c),g=p.boundingClientRect;return new D((a.clientX-g.left)/p.x-c.clientLeft,(a.clientY-g.top)/p.y-c.clientTop)}var iN=de.linux&&de.chrome?window.devicePixelRatio:de.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function g1(a){return de.edge?a.wheelDeltaY/2:a.deltaY&&a.deltaMode===0?-a.deltaY/iN:a.deltaY&&a.deltaMode===1?-a.deltaY*20:a.deltaY&&a.deltaMode===2?-a.deltaY*60:a.deltaX||a.deltaZ?0:a.wheelDelta?(a.wheelDeltaY||a.wheelDelta)/2:a.detail&&Math.abs(a.detail)<32765?-a.detail*20:a.detail?a.detail/-32765*60:0}function hm(a,c){var p=c.relatedTarget;if(!p)return!0;try{for(;p&&p!==a;)p=p.parentNode}catch{return!1}return p!==a}var oN={__proto__:null,on:be,off:Xe,stopPropagation:Po,disableScrollPropagation:fm,disableClickPropagation:ml,preventDefault:Bt,stop:Oo,getPropagationPath:m1,getMousePosition:v1,getWheelDelta:g1,isExternalTarget:hm,addListener:be,removeListener:Xe},y1=K.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=hr(a),this._offset=c.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=z(this._animate,this),this._step()},_step:function(a){var c=+new Date-this._startTime,p=this._duration*1e3;c<p?this._runFrame(this._easeOut(c/p),a):(this._runFrame(1),this._complete())},_runFrame:function(a,c){var p=this._startPos.add(this._offset.multiplyBy(a));c&&p._round(),Ke(this._el,p),this.fire("step")},_complete:function(){R(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(a){return 1-Math.pow(1-a,this._easeOutPower)}}),je=K.extend({options:{crs:Le,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(a,c){c=x(this,c),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(a),this._initLayout(),this._onResize=s(this._onResize,this),this._initEvents(),c.maxBounds&&this.setMaxBounds(c.maxBounds),c.zoom!==void 0&&(this._zoom=this._limitZoom(c.zoom)),c.center&&c.zoom!==void 0&&this.setView(ce(c.center),c.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=Ci&&de.any3d&&!de.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),be(this._proxy,dl,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(a,c,p){if(c=c===void 0?this._zoom:this._limitZoom(c),a=this._limitCenter(ce(a),c,this.options.maxBounds),p=p||{},this._stop(),this._loaded&&!p.reset&&p!==!0){p.animate!==void 0&&(p.zoom=i({animate:p.animate},p.zoom),p.pan=i({animate:p.animate,duration:p.duration},p.pan));var g=this._zoom!==c?this._tryAnimatedZoom&&this._tryAnimatedZoom(a,c,p.zoom):this._tryAnimatedPan(a,p.pan);if(g)return clearTimeout(this._sizeTimer),this}return this._resetView(a,c,p.pan&&p.pan.noMoveStart),this},setZoom:function(a,c){return this._loaded?this.setView(this.getCenter(),a,{zoom:c}):(this._zoom=a,this)},zoomIn:function(a,c){return a=a||(de.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+a,c)},zoomOut:function(a,c){return a=a||(de.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-a,c)},setZoomAround:function(a,c,p){var g=this.getZoomScale(c),T=this.getSize().divideBy(2),k=a instanceof D?a:this.latLngToContainerPoint(a),N=k.subtract(T).multiplyBy(1-1/g),F=this.containerPointToLatLng(T.add(N));return this.setView(F,c,{zoom:p})},_getBoundsCenterZoom:function(a,c){c=c||{},a=a.getBounds?a.getBounds():fe(a);var p=V(c.paddingTopLeft||c.padding||[0,0]),g=V(c.paddingBottomRight||c.padding||[0,0]),T=this.getBoundsZoom(a,!1,p.add(g));if(T=typeof c.maxZoom=="number"?Math.min(c.maxZoom,T):T,T===1/0)return{center:a.getCenter(),zoom:T};var k=g.subtract(p).divideBy(2),N=this.project(a.getSouthWest(),T),F=this.project(a.getNorthEast(),T),U=this.unproject(N.add(F).divideBy(2).add(k),T);return{center:U,zoom:T}},fitBounds:function(a,c){if(a=fe(a),!a.isValid())throw new Error("Bounds are not valid.");var p=this._getBoundsCenterZoom(a,c);return this.setView(p.center,p.zoom,c)},fitWorld:function(a){return this.fitBounds([[-90,-180],[90,180]],a)},panTo:function(a,c){return this.setView(a,this._zoom,{pan:c})},panBy:function(a,c){if(a=V(a).round(),c=c||{},!a.x&&!a.y)return this.fire("moveend");if(c.animate!==!0&&!this.getSize().contains(a))return this._resetView(this.unproject(this.project(this.getCenter()).add(a)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new y1,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),c.noMoveStart||this.fire("movestart"),c.animate!==!1){pe(this._mapPane,"leaflet-pan-anim");var p=this._getMapPanePos().subtract(a).round();this._panAnim.run(this._mapPane,p,c.duration||.25,c.easeLinearity)}else this._rawPanBy(a),this.fire("move").fire("moveend");return this},flyTo:function(a,c,p){if(p=p||{},p.animate===!1||!de.any3d)return this.setView(a,c,p);this._stop();var g=this.project(this.getCenter()),T=this.project(a),k=this.getSize(),N=this._zoom;a=ce(a),c=c===void 0?N:c;var F=Math.max(k.x,k.y),U=F*this.getZoomScale(N,c),ee=T.distanceTo(g)||1,se=1.42,xe=se*se;function Te(wt){var gf=wt?-1:1,GN=wt?U:F,KN=U*U-F*F+gf*xe*xe*ee*ee,qN=2*GN*xe*ee,Sm=KN/qN,Q1=Math.sqrt(Sm*Sm+1)-Sm,XN=Q1<1e-9?-18:Math.log(Q1);return XN}function an(wt){return(Math.exp(wt)-Math.exp(-wt))/2}function Nt(wt){return(Math.exp(wt)+Math.exp(-wt))/2}function Gn(wt){return an(wt)/Nt(wt)}var vn=Te(0);function Oa(wt){return F*(Nt(vn)/Nt(vn+se*wt))}function UN(wt){return F*(Nt(vn)*Gn(vn+se*wt)-an(vn))/xe}function WN(wt){return 1-Math.pow(1-wt,1.5)}var HN=Date.now(),X1=(Te(1)-vn)/se,ZN=p.duration?1e3*p.duration:1e3*X1*.8;function Y1(){var wt=(Date.now()-HN)/ZN,gf=WN(wt)*X1;wt<=1?(this._flyToFrame=z(Y1,this),this._move(this.unproject(g.add(T.subtract(g).multiplyBy(UN(gf)/ee)),N),this.getScaleZoom(F/Oa(gf),N),{flyTo:!0})):this._move(a,c)._moveEnd(!0)}return this._moveStart(!0,p.noMoveStart),Y1.call(this),this},flyToBounds:function(a,c){var p=this._getBoundsCenterZoom(a,c);return this.flyTo(p.center,p.zoom,c)},setMaxBounds:function(a){return a=fe(a),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),a.isValid()?(this.options.maxBounds=a,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(a){var c=this.options.minZoom;return this.options.minZoom=a,this._loaded&&c!==a&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(a):this},setMaxZoom:function(a){var c=this.options.maxZoom;return this.options.maxZoom=a,this._loaded&&c!==a&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(a):this},panInsideBounds:function(a,c){this._enforcingBounds=!0;var p=this.getCenter(),g=this._limitCenter(p,this._zoom,fe(a));return p.equals(g)||this.panTo(g,c),this._enforcingBounds=!1,this},panInside:function(a,c){c=c||{};var p=V(c.paddingTopLeft||c.padding||[0,0]),g=V(c.paddingBottomRight||c.padding||[0,0]),T=this.project(this.getCenter()),k=this.project(a),N=this.getPixelBounds(),F=Y([N.min.add(p),N.max.subtract(g)]),U=F.getSize();if(!F.contains(k)){this._enforcingBounds=!0;var ee=k.subtract(F.getCenter()),se=F.extend(k).getSize().subtract(U);T.x+=ee.x<0?-se.x:se.x,T.y+=ee.y<0?-se.y:se.y,this.panTo(this.unproject(T),c),this._enforcingBounds=!1}return this},invalidateSize:function(a){if(!this._loaded)return this;a=i({animate:!1,pan:!0},a===!0?{animate:!0}:a);var c=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var p=this.getSize(),g=c.divideBy(2).round(),T=p.divideBy(2).round(),k=g.subtract(T);return!k.x&&!k.y?this:(a.animate&&a.pan?this.panBy(k):(a.pan&&this._rawPanBy(k),this.fire("move"),a.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(s(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:c,newSize:p}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(a){if(a=this._locateOptions=i({timeout:1e4,watch:!1},a),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var c=s(this._handleGeolocationResponse,this),p=s(this._handleGeolocationError,this);return a.watch?this._locationWatchId=navigator.geolocation.watchPosition(c,p,a):navigator.geolocation.getCurrentPosition(c,p,a),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(a){if(this._container._leaflet_id){var c=a.code,p=a.message||(c===1?"permission denied":c===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:c,message:"Geolocation error: "+p+"."})}},_handleGeolocationResponse:function(a){if(this._container._leaflet_id){var c=a.coords.latitude,p=a.coords.longitude,g=new he(c,p),T=g.toBounds(a.coords.accuracy*2),k=this._locateOptions;if(k.setView){var N=this.getBoundsZoom(T);this.setView(g,k.maxZoom?Math.min(N,k.maxZoom):N)}var F={latlng:g,bounds:T,timestamp:a.timestamp};for(var U in a.coords)typeof a.coords[U]=="number"&&(F[U]=a.coords[U]);this.fire("locationfound",F)}},addHandler:function(a,c){if(!c)return this;var p=this[a]=new c(this);return this._handlers.push(p),this.options[a]&&p.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),ne(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(R(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var a;for(a in this._layers)this._layers[a].remove();for(a in this._panes)ne(this._panes[a]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(a,c){var p="leaflet-pane"+(a?" leaflet-"+a.replace("Pane","")+"-pane":""),g=Ce("div",p,c||this._mapPane);return a&&(this._panes[a]=g),g},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var a=this.getPixelBounds(),c=this.unproject(a.getBottomLeft()),p=this.unproject(a.getTopRight());return new ae(c,p)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(a,c,p){a=fe(a),p=V(p||[0,0]);var g=this.getZoom()||0,T=this.getMinZoom(),k=this.getMaxZoom(),N=a.getNorthWest(),F=a.getSouthEast(),U=this.getSize().subtract(p),ee=Y(this.project(F,g),this.project(N,g)).getSize(),se=de.any3d?this.options.zoomSnap:1,xe=U.x/ee.x,Te=U.y/ee.y,an=c?Math.max(xe,Te):Math.min(xe,Te);return g=this.getScaleZoom(an,g),se&&(g=Math.round(g/(se/100))*(se/100),g=c?Math.ceil(g/se)*se:Math.floor(g/se)*se),Math.max(T,Math.min(k,g))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new 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 te(p,p.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(a){return this.options.crs.getProjectedBounds(a===void 0?this.getZoom():a)},getPane:function(a){return typeof a=="string"?this._panes[a]:a},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(a,c){var p=this.options.crs;return c=c===void 0?this._zoom:c,p.scale(a)/p.scale(c)},getScaleZoom:function(a,c){var p=this.options.crs;c=c===void 0?this._zoom:c;var g=p.zoom(a*p.scale(c));return isNaN(g)?1/0:g},project:function(a,c){return c=c===void 0?this._zoom:c,this.options.crs.latLngToPoint(ce(a),c)},unproject:function(a,c){return c=c===void 0?this._zoom:c,this.options.crs.pointToLatLng(V(a),c)},layerPointToLatLng:function(a){var c=V(a).add(this.getPixelOrigin());return this.unproject(c)},latLngToLayerPoint:function(a){var c=this.project(ce(a))._round();return c._subtract(this.getPixelOrigin())},wrapLatLng:function(a){return this.options.crs.wrapLatLng(ce(a))},wrapLatLngBounds:function(a){return this.options.crs.wrapLatLngBounds(fe(a))},distance:function(a,c){return this.options.crs.distance(ce(a),ce(c))},containerPointToLayerPoint:function(a){return V(a).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(a){return V(a).add(this._getMapPanePos())},containerPointToLatLng:function(a){var c=this.containerPointToLayerPoint(V(a));return this.layerPointToLatLng(c)},latLngToContainerPoint:function(a){return this.layerPointToContainerPoint(this.latLngToLayerPoint(ce(a)))},mouseEventToContainerPoint:function(a){return v1(a,this._container)},mouseEventToLayerPoint:function(a){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(a))},mouseEventToLatLng:function(a){return this.layerPointToLatLng(this.mouseEventToLayerPoint(a))},_initContainer:function(a){var c=this._container=pl(a);if(c){if(c._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");be(c,"scroll",this._onScroll,this),this._containerId=u(c)},_initLayout:function(){var a=this._container;this._fadeAnimated=this.options.fadeAnimation&&de.any3d,pe(a,"leaflet-container"+(de.touch?" leaflet-touch":"")+(de.retina?" leaflet-retina":"")+(de.ielt9?" leaflet-oldie":"")+(de.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var c=ji(a,"position");c!=="absolute"&&c!=="relative"&&c!=="fixed"&&c!=="sticky"&&(a.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var a=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Ke(this._mapPane,new D(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(pe(a.markerPane,"leaflet-zoom-hide"),pe(a.shadowPane,"leaflet-zoom-hide"))},_resetView:function(a,c,p){Ke(this._mapPane,new 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){Ke(this._mapPane,this._getMapPanePos().subtract(a))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(a){this._targets={},this._targets[u(this._container)]=this;var c=a?Xe:be;c(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&c(window,"resize",this._onResize,this),de.any3d&&this.options.transform3DLimit&&(a?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){R(this._resizeRequest),this._resizeRequest=z(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var a=this._getMapPanePos();Math.max(Math.abs(a.x),Math.abs(a.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(a,c){for(var p=[],g,T=c==="mouseout"||c==="mouseover",k=a.target||a.srcElement,N=!1;k;){if(g=this._targets[u(k)],g&&(c==="click"||c==="preclick")&&this._draggableMoved(g)){N=!0;break}if(g&&g.listens(c,!0)&&(T&&!hm(k,a)||(p.push(g),T))||k===this._container)break;k=k.parentNode}return!p.length&&!N&&!T&&this.listens(c,!0)&&(p=[this]),p},_isClickDisabled:function(a){for(;a&&a!==this._container;){if(a._leaflet_disable_click)return!0;a=a.parentNode}},_handleDOMEvent:function(a){var c=a.target||a.srcElement;if(!(!this._loaded||c._leaflet_disable_events||a.type==="click"&&this._isClickDisabled(c))){var p=a.type;p==="mousedown"&&am(c),this._fireDOMEvent(a,p)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(a,c,p){if(a.type==="click"){var g=i({},a);g.type="preclick",this._fireDOMEvent(g,g.type,p)}var T=this._findEventTargets(a,c);if(p){for(var k=[],N=0;N<p.length;N++)p[N].listens(c,!0)&&k.push(p[N]);T=k.concat(T)}if(T.length){c==="contextmenu"&&Bt(a);var F=T[0],U={originalEvent:a};if(a.type!=="keypress"&&a.type!=="keydown"&&a.type!=="keyup"){var ee=F.getLatLng&&(!F._radius||F._radius<=10);U.containerPoint=ee?this.latLngToContainerPoint(F.getLatLng()):this.mouseEventToContainerPoint(a),U.layerPoint=this.containerPointToLayerPoint(U.containerPoint),U.latlng=ee?F.getLatLng():this.layerPointToLatLng(U.layerPoint)}for(N=0;N<T.length;N++)if(T[N].fire(c,U,!0),U.originalEvent._stopped||T[N].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 hr(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 Y([this.project(a.getSouthWest(),c)._subtract(g),this.project(a.getNorthWest(),c)._subtract(g),this.project(a.getSouthEast(),c)._subtract(g),this.project(a.getNorthEast(),c)._subtract(g)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(a){return this.latLngToLayerPoint(a).subtract(this._getCenterLayerPoint())},_limitCenter:function(a,c,p){if(!p)return a;var g=this.project(a,c),T=this.getSize().divideBy(2),k=new te(g.subtract(T),g.add(T)),N=this._getBoundsOffset(k,p,c);return Math.abs(N.x)<=1&&Math.abs(N.y)<=1?a:this.unproject(g.add(N),c)},_limitOffset:function(a,c){if(!c)return a;var p=this.getPixelBounds(),g=new te(p.min.add(a),p.max.add(a));return a.add(this._getBoundsOffset(g,c))},_getBoundsOffset:function(a,c,p){var g=Y(this.project(c.getNorthEast(),p),this.project(c.getSouthWest(),p)),T=g.min.subtract(a.min),k=g.max.subtract(a.max),N=this._rebound(T.x,-k.x),F=this._rebound(T.y,-k.y);return new D(N,F)},_rebound:function(a,c){return a+c>0?Math.round(a-c)/2:Math.max(0,Math.ceil(a))-Math.max(0,Math.floor(c))},_limitZoom:function(a){var c=this.getMinZoom(),p=this.getMaxZoom(),g=de.any3d?this.options.zoomSnap:1;return g&&(a=Math.round(a/g)*g),Math.max(c,Math.min(p,a))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){Ae(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(a,c){var p=this._getCenterOffset(a)._trunc();return(c&&c.animate)!==!0&&!this.getSize().contains(p)?!1:(this.panBy(p,c),!0)},_createAnimProxy:function(){var a=this._proxy=Ce("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(a),this.on("zoomanim",function(c){var p=ya,g=this._proxy.style[p];mn(this._proxy,this.project(c.center,c.zoom),this.getZoomScale(c.zoom,1)),g===this._proxy.style[p]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){ne(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var a=this.getCenter(),c=this.getZoom();mn(this._proxy,this.project(a,c),this.getZoomScale(c,1))},_catchTransitionEnd:function(a){this._animatingZoom&&a.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(a,c,p){if(this._animatingZoom)return!0;if(p=p||{},!this._zoomAnimated||p.animate===!1||this._nothingToAnimate()||Math.abs(c-this._zoom)>this.options.zoomAnimationThreshold)return!1;var g=this.getZoomScale(c),T=this._getCenterOffset(a)._divideBy(1-1/g);return p.animate!==!0&&!this.getSize().contains(T)?!1:(z(function(){this._moveStart(!0,p.noMoveStart||!1)._animateZoom(a,c,!0)},this),!0)},_animateZoom:function(a,c,p,g){this._mapPane&&(p&&(this._animatingZoom=!0,this._animateToCenter=a,this._animateToZoom=c,pe(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:a,zoom:c,noUpdate:g}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(s(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&Ae(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function aN(a,c){return new je(a,c)}var dr=W.extend({options:{position:"topright"},initialize:function(a){x(this,a)},getPosition:function(){return this.options.position},setPosition:function(a){var c=this._map;return c&&c.removeControl(this),this.options.position=a,c&&c.addControl(this),this},getContainer:function(){return this._container},addTo:function(a){this.remove(),this._map=a;var c=this._container=this.onAdd(a),p=this.getPosition(),g=a._controlCorners[p];return pe(c,"leaflet-control"),p.indexOf("bottom")!==-1?g.insertBefore(c,g.firstChild):g.appendChild(c),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(ne(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(a){this._map&&a&&a.screenX>0&&a.screenY>0&&this._map.getContainer().focus()}}),vl=function(a){return new dr(a)};je.include({addControl:function(a){return a.addTo(this),this},removeControl:function(a){return a.remove(),this},_initControlPos:function(){var a=this._controlCorners={},c="leaflet-",p=this._controlContainer=Ce("div",c+"control-container",this._container);function g(T,k){var N=c+T+" "+c+k;a[T+k]=Ce("div",N,p)}g("top","left"),g("top","right"),g("bottom","left"),g("bottom","right")},_clearControlPos:function(){for(var a in this._controlCorners)ne(this._controlCorners[a]);ne(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var x1=dr.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(a,c,p,g){return p<g?-1:g<p?1:0}},initialize:function(a,c,p){x(this,p),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var g in a)this._addLayer(a[g],g);for(g in c)this._addLayer(c[g],g,!0)},onAdd:function(a){this._initLayout(),this._update(),this._map=a,a.on("zoomend",this._checkDisabledLayers,this);for(var c=0;c<this._layers.length;c++)this._layers[c].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(a){return dr.prototype.addTo.call(this,a),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var a=0;a<this._layers.length;a++)this._layers[a].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(a,c){return this._addLayer(a,c),this._map?this._update():this},addOverlay:function(a,c){return this._addLayer(a,c,!0),this._map?this._update():this},removeLayer:function(a){a.off("add remove",this._onLayerChange,this);var c=this._getLayer(u(a));return c&&this._layers.splice(this._layers.indexOf(c),1),this._map?this._update():this},expand:function(){pe(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var a=this._map.getSize().y-(this._container.offsetTop+50);return a<this._section.clientHeight?(pe(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=a+"px"):Ae(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return Ae(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var a="leaflet-control-layers",c=this._container=Ce("div",a),p=this.options.collapsed;c.setAttribute("aria-haspopup",!0),ml(c),fm(c);var g=this._section=Ce("section",a+"-list");p&&(this._map.on("click",this.collapse,this),be(c,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var T=this._layersLink=Ce("a",a+"-toggle",c);T.href="#",T.title="Layers",T.setAttribute("role","button"),be(T,{keydown:function(k){k.keyCode===13&&this._expandSafely()},click:function(k){Bt(k),this._expandSafely()}},this),p||this.expand(),this._baseLayersList=Ce("div",a+"-base",g),this._separator=Ce("div",a+"-separator",g),this._overlaysList=Ce("div",a+"-overlays",g),c.appendChild(g)},_getLayer:function(a){for(var c=0;c<this._layers.length;c++)if(this._layers[c]&&u(this._layers[c].layer)===a)return this._layers[c]},_addLayer:function(a,c,p){this._map&&a.on("add remove",this._onLayerChange,this),this._layers.push({layer:a,name:c,overlay:p}),this.options.sortLayers&&this._layers.sort(s(function(g,T){return this.options.sortFunction(g.layer,T.layer,g.name,T.name)},this)),this.options.autoZIndex&&a.setZIndex&&(this._lastZIndex++,a.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;lt(this._baseLayersList),lt(this._overlaysList),this._layerControlInputs=[];var a,c,p,g,T=0;for(p=0;p<this._layers.length;p++)g=this._layers[p],this._addItem(g),c=c||g.overlay,a=a||!g.overlay,T+=g.overlay?0:1;return this.options.hideSingleBase&&(a=a&&T>1,this._baseLayersList.style.display=a?"":"none"),this._separator.style.display=c&&a?"":"none",this},_onLayerChange:function(a){this._handlingClick||this._update();var c=this._getLayer(u(a.target)),p=c.overlay?a.type==="add"?"overlayadd":"overlayremove":a.type==="add"?"baselayerchange":null;p&&this._map.fire(p,c)},_createRadioElement:function(a,c){var p='<input type="radio" class="leaflet-control-layers-selector" name="'+a+'"'+(c?' checked="checked"':"")+"/>",g=document.createElement("div");return g.innerHTML=p,g.firstChild},_addItem:function(a){var c=document.createElement("label"),p=this._map.hasLayer(a.layer),g;a.overlay?(g=document.createElement("input"),g.type="checkbox",g.className="leaflet-control-layers-selector",g.defaultChecked=p):g=this._createRadioElement("leaflet-base-layers_"+u(this),p),this._layerControlInputs.push(g),g.layerId=u(a.layer),be(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 N=a.overlay?this._overlaysList:this._baseLayersList;return N.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,be(a,"click",Bt),this.expand();var c=this;setTimeout(function(){Xe(a,"click",Bt),c._preventClick=!1})}}),sN=function(a,c,p){return new x1(a,c,p)},dm=dr.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</span>',zoomOutTitle:"Zoom out"},onAdd:function(a){var c="leaflet-control-zoom",p=Ce("div",c+" leaflet-bar"),g=this.options;return this._zoomInButton=this._createButton(g.zoomInText,g.zoomInTitle,c+"-in",p,this._zoomIn),this._zoomOutButton=this._createButton(g.zoomOutText,g.zoomOutTitle,c+"-out",p,this._zoomOut),this._updateDisabled(),a.on("zoomend zoomlevelschange",this._updateDisabled,this),p},onRemove:function(a){a.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(a){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(a.shiftKey?3:1))},_zoomOut:function(a){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(a.shiftKey?3:1))},_createButton:function(a,c,p,g,T){var k=Ce("a",p,g);return k.innerHTML=a,k.href="#",k.title=c,k.setAttribute("role","button"),k.setAttribute("aria-label",c),ml(k),be(k,"click",Oo),be(k,"click",T,this),be(k,"click",this._refocusOnMap,this),k},_updateDisabled:function(){var a=this._map,c="leaflet-disabled";Ae(this._zoomInButton,c),Ae(this._zoomOutButton,c),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||a._zoom===a.getMinZoom())&&(pe(this._zoomOutButton,c),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||a._zoom===a.getMaxZoom())&&(pe(this._zoomInButton,c),this._zoomInButton.setAttribute("aria-disabled","true"))}});je.mergeOptions({zoomControl:!0}),je.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new dm,this.addControl(this.zoomControl))});var lN=function(a){return new dm(a)},_1=dr.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(a){var c="leaflet-control-scale",p=Ce("div",c),g=this.options;return this._addScales(g,c+"-line",p),a.on(g.updateWhenIdle?"moveend":"move",this._update,this),a.whenReady(this._update,this),p},onRemove:function(a){a.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(a,c,p){a.metric&&(this._mScale=Ce("div",c,p)),a.imperial&&(this._iScale=Ce("div",c,p))},_update:function(){var a=this._map,c=a.getSize().y/2,p=a.distance(a.containerPointToLatLng([0,c]),a.containerPointToLatLng([this.options.maxWidth,c]));this._updateScales(p)},_updateScales:function(a){this.options.metric&&a&&this._updateMetric(a),this.options.imperial&&a&&this._updateImperial(a)},_updateMetric:function(a){var c=this._getRoundNum(a),p=c<1e3?c+" m":c/1e3+" km";this._updateScale(this._mScale,p,c/a)},_updateImperial:function(a){var c=a*3.2808399,p,g,T;c>5280?(p=c/5280,g=this._getRoundNum(p),this._updateScale(this._iScale,g+" mi",g/p)):(T=this._getRoundNum(c),this._updateScale(this._iScale,T+" ft",T/c))},_updateScale:function(a,c,p){a.style.width=Math.round(this.options.maxWidth*p)+"px",a.innerHTML=c},_getRoundNum:function(a){var c=Math.pow(10,(Math.floor(a)+"").length-1),p=a/c;return p=p>=10?10:p>=5?5:p>=3?3:p>=2?2:1,c*p}}),uN=function(a){return new _1(a)},cN='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',pm=dr.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(de.inlineSvg?cN+" ":"")+"Leaflet</a>"},initialize:function(a){x(this,a),this._attributions={}},onAdd:function(a){a.attributionControl=this,this._container=Ce("div","leaflet-control-attribution"),ml(this._container);for(var c in a._layers)a._layers[c].getAttribution&&this.addAttribution(a._layers[c].getAttribution());return this._update(),a.on("layeradd",this._addAttribution,this),this._container},onRemove:function(a){a.off("layeradd",this._addAttribution,this)},_addAttribution:function(a){a.layer.getAttribution&&(this.addAttribution(a.layer.getAttribution()),a.layer.once("remove",function(){this.removeAttribution(a.layer.getAttribution())},this))},setPrefix:function(a){return this.options.prefix=a,this._update(),this},addAttribution:function(a){return a?(this._attributions[a]||(this._attributions[a]=0),this._attributions[a]++,this._update(),this):this},removeAttribution:function(a){return a?(this._attributions[a]&&(this._attributions[a]--,this._update()),this):this},_update:function(){if(this._map){var a=[];for(var c in this._attributions)this._attributions[c]&&a.push(c);var p=[];this.options.prefix&&p.push(this.options.prefix),a.length&&p.push(a.join(", ")),this._container.innerHTML=p.join(' <span aria-hidden="true">|</span> ')}}});je.mergeOptions({attributionControl:!0}),je.addInitHook(function(){this.options.attributionControl&&new pm().addTo(this)});var fN=function(a){return new pm(a)};dr.Layers=x1,dr.Zoom=dm,dr.Scale=_1,dr.Attribution=pm,vl.layers=sN,vl.zoom=lN,vl.scale=uN,vl.attribution=fN;var jr=W.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}});jr.addTo=function(a,c){return a.addHandler(c,this),this};var hN={Events:Z},b1=de.touch?"touchstart mousedown":"mousedown",Li=K.extend({options:{clickTolerance:3},initialize:function(a,c,p,g){x(this,g),this._element=a,this._dragStartTarget=c||a,this._preventOutline=p},enable:function(){this._enabled||(be(this._dragStartTarget,b1,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Li._dragging===this&&this.finishDrag(!0),Xe(this._dragStartTarget,b1,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(a){if(this._enabled&&(this._moved=!1,!bt(this._element,"leaflet-zoom-anim"))){if(a.touches&&a.touches.length!==1){Li._dragging===this&&this.finishDrag();return}if(!(Li._dragging||a.shiftKey||a.which!==1&&a.button!==1&&!a.touches)&&(Li._dragging=this,this._preventOutline&&am(this._element),rm(),$i(),!this._moving)){this.fire("down");var c=a.touches?a.touches[0]:a,p=d1(this._element);this._startPoint=new D(c.clientX,c.clientY),this._startPos=hr(this._element),this._parentScale=sm(p);var g=a.type==="mousedown";be(document,g?"mousemove":"touchmove",this._onMove,this),be(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,Bt(a),this._moved||(this.fire("dragstart"),this._moved=!0,pe(document.body,"leaflet-dragging"),this._lastTarget=a.target||a.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),pe(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(p),this._moving=!0,this._lastEvent=a,this._updatePosition())}},_updatePosition:function(){var a={originalEvent:this._lastEvent};this.fire("predrag",a),Ke(this._element,this._newPos),this.fire("drag",a)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(a){Ae(document.body,"leaflet-dragging"),this._lastTarget&&(Ae(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),Xe(document,"mousemove touchmove",this._onMove,this),Xe(document,"mouseup touchend touchcancel",this._onUp,this),im(),Xr();var c=this._moved&&this._moving;this._moving=!1,Li._dragging=!1,c&&this.fire("dragend",{noInertia:a,distance:this._newPos.distanceTo(this._startPos)})}});function w1(a,c,p){var g,T=[1,4,2,8],k,N,F,U,ee,se,xe,Te;for(k=0,se=a.length;k<se;k++)a[k]._code=To(a[k],c);for(F=0;F<4;F++){for(xe=T[F],g=[],k=0,se=a.length,N=se-1;k<se;N=k++)U=a[k],ee=a[N],U._code&xe?ee._code&xe||(Te=af(ee,U,xe,c,p),Te._code=To(Te,c),g.push(Te)):(ee._code&xe&&(Te=af(ee,U,xe,c,p),Te._code=To(Te,c),g.push(Te)),g.push(U));a=g}return a}function S1(a,c){var p,g,T,k,N,F,U,ee,se;if(!a||a.length===0)throw new Error("latlngs not passed");Zn(a)||(console.warn("latlngs are not flat! Only the first ring will be used"),a=a[0]);var xe=ce([0,0]),Te=fe(a),an=Te.getNorthWest().distanceTo(Te.getSouthWest())*Te.getNorthEast().distanceTo(Te.getNorthWest());an<1700&&(xe=mm(a));var Nt=a.length,Gn=[];for(p=0;p<Nt;p++){var vn=ce(a[p]);Gn.push(c.project(ce([vn.lat-xe.lat,vn.lng-xe.lng])))}for(F=U=ee=0,p=0,g=Nt-1;p<Nt;g=p++)T=Gn[p],k=Gn[g],N=T.y*k.x-k.y*T.x,U+=(T.x+k.x)*N,ee+=(T.y+k.y)*N,F+=N*3;F===0?se=Gn[0]:se=[U/F,ee/F];var Oa=c.unproject(V(se));return ce([Oa.lat+xe.lat,Oa.lng+xe.lng])}function mm(a){for(var c=0,p=0,g=0,T=0;T<a.length;T++){var k=ce(a[T]);c+=k.lat,p+=k.lng,g++}return ce([c/g,p/g])}var dN={__proto__:null,clipPolygon:w1,polygonCenter:S1,centroid:mm};function P1(a,c){if(!c||!a.length)return a.slice();var p=c*c;return a=vN(a,p),a=mN(a,p),a}function O1(a,c,p){return Math.sqrt(gl(a,c,p,!0))}function pN(a,c,p){return gl(a,c,p)}function mN(a,c){var p=a.length,g=typeof Uint8Array<"u"?Uint8Array:Array,T=new g(p);T[0]=T[p-1]=1,vm(a,T,c,0,p-1);var k,N=[];for(k=0;k<p;k++)T[k]&&N.push(a[k]);return N}function vm(a,c,p,g,T){var k=0,N,F,U;for(F=g+1;F<=T-1;F++)U=gl(a[F],a[g],a[T],!0),U>k&&(N=F,k=U);k>p&&(c[N]=1,vm(a,c,p,g,N),vm(a,c,p,N,T))}function vN(a,c){for(var p=[a[0]],g=1,T=0,k=a.length;g<k;g++)gN(a[g],a[T])>c&&(p.push(a[g]),T=g);return T<k-1&&p.push(a[k-1]),p}var T1;function A1(a,c,p,g,T){var k=g?T1:To(a,p),N=To(c,p),F,U,ee;for(T1=N;;){if(!(k|N))return[a,c];if(k&N)return!1;F=k||N,U=af(a,c,F,p,T),ee=To(U,p),F===k?(a=U,k=ee):(c=U,N=ee)}}function af(a,c,p,g,T){var k=c.x-a.x,N=c.y-a.y,F=g.min,U=g.max,ee,se;return p&8?(ee=a.x+k*(U.y-a.y)/N,se=U.y):p&4?(ee=a.x+k*(F.y-a.y)/N,se=F.y):p&2?(ee=U.x,se=a.y+N*(U.x-a.x)/k):p&1&&(ee=F.x,se=a.y+N*(F.x-a.x)/k),new D(ee,se,T)}function To(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 gN(a,c){var p=c.x-a.x,g=c.y-a.y;return p*p+g*g}function gl(a,c,p,g){var T=c.x,k=c.y,N=p.x-T,F=p.y-k,U=N*N+F*F,ee;return U>0&&(ee=((a.x-T)*N+(a.y-k)*F)/U,ee>1?(T=p.x,k=p.y):ee>0&&(T+=N*ee,k+=F*ee)),N=a.x-T,F=a.y-k,g?N*N+F*F:new D(T,k)}function Zn(a){return!w(a[0])||typeof a[0][0]!="object"&&typeof a[0][0]<"u"}function E1(a){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Zn(a)}function k1(a,c){var p,g,T,k,N,F,U,ee;if(!a||a.length===0)throw new Error("latlngs not passed");Zn(a)||(console.warn("latlngs are not flat! Only the first ring will be used"),a=a[0]);var se=ce([0,0]),xe=fe(a),Te=xe.getNorthWest().distanceTo(xe.getSouthWest())*xe.getNorthEast().distanceTo(xe.getNorthWest());Te<1700&&(se=mm(a));var an=a.length,Nt=[];for(p=0;p<an;p++){var Gn=ce(a[p]);Nt.push(c.project(ce([Gn.lat-se.lat,Gn.lng-se.lng])))}for(p=0,g=0;p<an-1;p++)g+=Nt[p].distanceTo(Nt[p+1])/2;if(g===0)ee=Nt[0];else for(p=0,k=0;p<an-1;p++)if(N=Nt[p],F=Nt[p+1],T=N.distanceTo(F),k+=T,k>g){U=(k-g)/T,ee=[F.x-U*(F.x-N.x),F.y-U*(F.y-N.y)];break}var vn=c.unproject(V(ee));return ce([vn.lat+se.lat,vn.lng+se.lng])}var yN={__proto__:null,simplify:P1,pointToSegmentDistance:O1,closestPointOnSegment:pN,clipSegment:A1,_getEdgeIntersection:af,_getBitCode:To,_sqClosestPointOnSegment:gl,isFlat:Zn,_flat:E1,polylineCenter:k1},gm={project:function(a){return new D(a.lng,a.lat)},unproject:function(a){return new he(a.y,a.x)},bounds:new te([-180,-90],[180,90])},ym={R:6378137,R_MINOR:6356752314245179e-9,bounds:new te([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(a){var c=Math.PI/180,p=this.R,g=a.lat*c,T=this.R_MINOR/p,k=Math.sqrt(1-T*T),N=k*Math.sin(g),F=Math.tan(Math.PI/4-g/2)/Math.pow((1-N)/(1+N),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),N=Math.PI/2-2*Math.atan(k),F=0,U=.1,ee;F<15&&Math.abs(U)>1e-7;F++)ee=T*Math.sin(N),ee=Math.pow((1-ee)/(1+ee),T/2),U=Math.PI/2-2*Math.atan(k*ee)-N,N+=U;return new he(N*c,a.x*c/p)}},xN={__proto__:null,LonLat:gm,Mercator:ym,SphericalMercator:me},_N=i({},ze,{code:"EPSG:3395",projection:ym,transformation:function(){var a=.5/(Math.PI*ym.R);return J(a,.5,-a,.5)}()}),M1=i({},ze,{code:"EPSG:4326",projection:gm,transformation:J(1/180,1,-1/180,.5)}),bN=i({},Ve,{projection:gm,transformation:J(1,0,-1,0),scale:function(a){return Math.pow(2,a)},zoom:function(a){return Math.log(a)/Math.LN2},distance:function(a,c){var p=c.lng-a.lng,g=c.lat-a.lat;return Math.sqrt(p*p+g*g)},infinite:!0});Ve.Earth=ze,Ve.EPSG3395=_N,Ve.EPSG3857=Le,Ve.EPSG900913=we,Ve.EPSG4326=M1,Ve.Simple=bN;var pr=K.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(a){return a.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(a){return a&&a.removeLayer(this),this},getPane:function(a){return this._map.getPane(a?this.options[a]||a:this.options.pane)},addInteractiveTarget:function(a){return this._map._targets[u(a)]=this,this},removeInteractiveTarget:function(a){return delete this._map._targets[u(a)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(a){var c=a.target;if(c.hasLayer(this)){if(this._map=c,this._zoomAnimated=c._zoomAnimated,this.getEvents){var p=this.getEvents();c.on(p,this),this.once("remove",function(){c.off(p,this)},this)}this.onAdd(c),this.fire("add"),c.fire("layeradd",{layer:this})}}});je.include({addLayer:function(a){if(!a._layerAdd)throw new Error("The provided object is not a Layer.");var c=u(a);return this._layers[c]?this:(this._layers[c]=a,a._mapToAdd=this,a.beforeAdd&&a.beforeAdd(this),this.whenReady(a._layerAdd,a),this)},removeLayer:function(a){var c=u(a);return this._layers[c]?(this._loaded&&a.onRemove(this),delete this._layers[c],this._loaded&&(this.fire("layerremove",{layer:a}),a.fire("remove")),a._map=a._mapToAdd=null,this):this},hasLayer:function(a){return u(a)in this._layers},eachLayer:function(a,c){for(var p in this._layers)a.call(c,this._layers[p]);return this},_addLayers:function(a){a=a?w(a)?a:[a]:[];for(var c=0,p=a.length;c<p;c++)this.addLayer(a[c])},_addZoomLimit:function(a){(!isNaN(a.options.maxZoom)||!isNaN(a.options.minZoom))&&(this._zoomBoundLayers[u(a)]=a,this._updateZoomLevels())},_removeZoomLimit:function(a){var c=u(a);this._zoomBoundLayers[c]&&(delete this._zoomBoundLayers[c],this._updateZoomLevels())},_updateZoomLevels:function(){var a=1/0,c=-1/0,p=this._getZoomSpan();for(var g in this._zoomBoundLayers){var T=this._zoomBoundLayers[g].options;a=T.minZoom===void 0?a:Math.min(a,T.minZoom),c=T.maxZoom===void 0?c:Math.max(c,T.maxZoom)}this._layersMaxZoom=c===-1/0?void 0:c,this._layersMinZoom=a===1/0?void 0:a,p!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var _a=pr.extend({initialize:function(a,c){x(this,c),this._layers={};var p,g;if(a)for(p=0,g=a.length;p<g;p++)this.addLayer(a[p])},addLayer:function(a){var c=this.getLayerId(a);return this._layers[c]=a,this._map&&this._map.addLayer(a),this},removeLayer:function(a){var c=a in this._layers?a:this.getLayerId(a);return this._map&&this._layers[c]&&this._map.removeLayer(this._layers[c]),delete this._layers[c],this},hasLayer:function(a){var c=typeof a=="number"?a:this.getLayerId(a);return c in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(a){var c=Array.prototype.slice.call(arguments,1),p,g;for(p in this._layers)g=this._layers[p],g[a]&&g[a].apply(g,c);return this},onAdd:function(a){this.eachLayer(a.addLayer,a)},onRemove:function(a){this.eachLayer(a.removeLayer,a)},eachLayer:function(a,c){for(var p in this._layers)a.call(c,this._layers[p]);return this},getLayer:function(a){return this._layers[a]},getLayers:function(){var a=[];return this.eachLayer(a.push,a),a},setZIndex:function(a){return this.invoke("setZIndex",a)},getLayerId:function(a){return u(a)}}),wN=function(a,c){return new _a(a,c)},Yr=_a.extend({addLayer:function(a){return this.hasLayer(a)?this:(a.addEventParent(this),_a.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),_a.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}}),SN=function(a,c){return new Yr(a,c)},ba=W.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(a){x(this,a)},createIcon:function(a){return this._createIcon("icon",a)},createShadow:function(a){return this._createIcon("shadow",a)},_createIcon:function(a,c){var p=this._getIconUrl(a);if(!p){if(a==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var g=this._createImg(p,c&&c.tagName==="IMG"?c:null);return this._setIconStyles(g,a),(this.options.crossOrigin||this.options.crossOrigin==="")&&(g.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),g},_setIconStyles:function(a,c){var p=this.options,g=p[c+"Size"];typeof g=="number"&&(g=[g,g]);var T=V(g),k=V(c==="shadow"&&p.shadowAnchor||p.iconAnchor||T&&T.divideBy(2,!0));a.className="leaflet-marker-"+c+" "+(p.className||""),k&&(a.style.marginLeft=-k.x+"px",a.style.marginTop=-k.y+"px"),T&&(a.style.width=T.x+"px",a.style.height=T.y+"px")},_createImg:function(a,c){return c=c||document.createElement("img"),c.src=a,c},_getIconUrl:function(a){return de.retina&&this.options[a+"RetinaUrl"]||this.options[a+"Url"]}});function PN(a){return new ba(a)}var yl=ba.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 yl.imagePath!="string"&&(yl.imagePath=this._detectIconPath()),(this.options.imagePath||yl.imagePath)+ba.prototype._getIconUrl.call(this,a)},_stripUrl:function(a){var c=function(p,g,T){var k=g.exec(p);return k&&k[T]};return a=c(a,/^url\((['"])?(.+)\1\)$/,2),a&&c(a,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var a=Ce("div","leaflet-default-icon-path",document.body),c=ji(a,"background-image")||ji(a,"backgroundImage");if(document.body.removeChild(a),c=this._stripUrl(c),c)return c;var p=document.querySelector('link[href$="leaflet.css"]');return p?p.href.substring(0,p.href.length-11-1):""}}),C1=jr.extend({initialize:function(a){this._marker=a},addHooks:function(){var a=this._marker._icon;this._draggable||(this._draggable=new Li(a,a,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),pe(a,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&Ae(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(a){var c=this._marker,p=c._map,g=this._marker.options.autoPanSpeed,T=this._marker.options.autoPanPadding,k=hr(c._icon),N=p.getPixelBounds(),F=p.getPixelOrigin(),U=Y(N.min._subtract(F).add(T),N.max._subtract(F).subtract(T));if(!U.contains(k)){var ee=V((Math.max(U.max.x,k.x)-U.max.x)/(N.max.x-U.max.x)-(Math.min(U.min.x,k.x)-U.min.x)/(N.min.x-U.min.x),(Math.max(U.max.y,k.y)-U.max.y)/(N.max.y-U.max.y)-(Math.min(U.min.y,k.y)-U.min.y)/(N.min.y-U.min.y)).multiplyBy(g);p.panBy(ee,{animate:!1}),this._draggable._newPos._add(ee),this._draggable._startPos._add(ee),Ke(c._icon,this._draggable._newPos),this._onDrag(a),this._panRequest=z(this._adjustPan.bind(this,a))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(a){this._marker.options.autoPan&&(R(this._panRequest),this._panRequest=z(this._adjustPan.bind(this,a)))},_onDrag:function(a){var c=this._marker,p=c._shadow,g=hr(c._icon),T=c._map.layerPointToLatLng(g);p&&Ke(p,g),c._latlng=T,a.latlng=T,a.oldLatLng=this._oldLatLng,c.fire("move",a).fire("drag",a)},_onDragEnd:function(a){R(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",a)}}),sf=pr.extend({options:{icon:new yl,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(a,c){x(this,c),this._latlng=ce(a)},onAdd:function(a){this._zoomAnimated=this._zoomAnimated&&a.options.markerZoomAnimation,this._zoomAnimated&&a.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(a){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&a.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(a){var c=this._latlng;return this._latlng=ce(a),this.update(),this.fire("move",{oldLatLng:c,latlng:this._latlng})},setZIndexOffset:function(a){return this.options.zIndexOffset=a,this.update()},getIcon:function(){return this.options.icon},setIcon:function(a){return this.options.icon=a,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var a=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(a)}return this},_initIcon:function(){var a=this.options,c="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),p=a.icon.createIcon(this._icon),g=!1;p!==this._icon&&(this._icon&&this._removeIcon(),g=!0,a.title&&(p.title=a.title),p.tagName==="IMG"&&(p.alt=a.alt||"")),pe(p,c),a.keyboard&&(p.tabIndex="0",p.setAttribute("role","button")),this._icon=p,a.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&be(p,"focus",this._panOnFocus,this);var T=a.icon.createShadow(this._shadow),k=!1;T!==this._shadow&&(this._removeShadow(),k=!0),T&&(pe(T,c),T.alt=""),this._shadow=T,a.opacity<1&&this._updateOpacity(),g&&this.getPane().appendChild(this._icon),this._initInteraction(),T&&k&&this.getPane(a.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Xe(this._icon,"focus",this._panOnFocus,this),ne(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&ne(this._shadow),this._shadow=null},_setPos:function(a){this._icon&&Ke(this._icon,a),this._shadow&&Ke(this._shadow,a),this._zIndex=a.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(a){this._icon&&(this._icon.style.zIndex=this._zIndex+a)},_animateZoom:function(a){var c=this._map._latLngToNewLayerPoint(this._latlng,a.zoom,a.center).round();this._setPos(c)},_initInteraction:function(){if(this.options.interactive&&(pe(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),C1)){var a=this.options.draggable;this.dragging&&(a=this.dragging.enabled(),this.dragging.disable()),this.dragging=new C1(this),a&&this.dragging.enable()}},setOpacity:function(a){return this.options.opacity=a,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var a=this.options.opacity;this._icon&&$t(this._icon,a),this._shadow&&$t(this._shadow,a)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var a=this._map;if(a){var c=this.options.icon.options,p=c.iconSize?V(c.iconSize):V(0,0),g=c.iconAnchor?V(c.iconAnchor):V(0,0);a.panInside(this._latlng,{paddingTopLeft:g,paddingBottomRight:p.subtract(g)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function ON(a,c){return new sf(a,c)}var Ii=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 x(this,a),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&a&&Object.prototype.hasOwnProperty.call(a,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),lf=Ii.extend({options:{fill:!0,radius:10},initialize:function(a,c){x(this,c),this._latlng=ce(a),this._radius=this.options.radius},setLatLng:function(a){var c=this._latlng;return this._latlng=ce(a),this.redraw(),this.fire("move",{oldLatLng:c,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(a){return this.options.radius=this._radius=a,this.redraw()},getRadius:function(){return this._radius},setStyle:function(a){var c=a&&a.radius||this._radius;return Ii.prototype.setStyle.call(this,a),this.setRadius(c),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var a=this._radius,c=this._radiusY||a,p=this._clickTolerance(),g=[a+p,c+p];this._pxBounds=new te(this._point.subtract(g),this._point.add(g))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(a){return a.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function TN(a,c){return new lf(a,c)}var xm=lf.extend({initialize:function(a,c,p){if(typeof c=="number"&&(c=i({},p,{radius:c})),x(this,c),this._latlng=ce(a),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(a){return this._mRadius=a,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var a=[this._radius,this._radiusY||this._radius];return new ae(this._map.layerPointToLatLng(this._point.subtract(a)),this._map.layerPointToLatLng(this._point.add(a)))},setStyle:Ii.prototype.setStyle,_project:function(){var a=this._latlng.lng,c=this._latlng.lat,p=this._map,g=p.options.crs;if(g.distance===ze.distance){var T=Math.PI/180,k=this._mRadius/ze.R/T,N=p.project([c+k,a]),F=p.project([c-k,a]),U=N.add(F).divideBy(2),ee=p.unproject(U).lat,se=Math.acos((Math.cos(k*T)-Math.sin(c*T)*Math.sin(ee*T))/(Math.cos(c*T)*Math.cos(ee*T)))/T;(isNaN(se)||se===0)&&(se=k/Math.cos(Math.PI/180*c)),this._point=U.subtract(p.getPixelOrigin()),this._radius=isNaN(se)?0:U.x-p.project([ee,a-se]).x,this._radiusY=U.y-N.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 AN(a,c,p){return new xm(a,c,p)}var Qr=Ii.extend({options:{smoothFactor:1,noClip:!1},initialize:function(a,c){x(this,c),this._setLatLngs(a)},getLatLngs:function(){return this._latlngs},setLatLngs:function(a){return this._setLatLngs(a),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(a){for(var c=1/0,p=null,g=gl,T,k,N=0,F=this._parts.length;N<F;N++)for(var U=this._parts[N],ee=1,se=U.length;ee<se;ee++){T=U[ee-1],k=U[ee];var xe=g(a,T,k,!0);xe<c&&(c=xe,p=g(a,T,k))}return p&&(p.distance=Math.sqrt(c)),p},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return k1(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(a,c){return c=c||this._defaultShape(),a=ce(a),c.push(a),this._bounds.extend(a),this.redraw()},_setLatLngs:function(a){this._bounds=new ae,this._latlngs=this._convertLatLngs(a)},_defaultShape:function(){return Zn(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(a){for(var c=[],p=Zn(a),g=0,T=a.length;g<T;g++)p?(c[g]=ce(a[g]),this._bounds.extend(c[g])):c[g]=this._convertLatLngs(a[g]);return c},_project:function(){var a=new te;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,a),this._bounds.isValid()&&a.isValid()&&(this._rawPxBounds=a,this._updateBounds())},_updateBounds:function(){var a=this._clickTolerance(),c=new D(a,a);this._rawPxBounds&&(this._pxBounds=new te([this._rawPxBounds.min.subtract(c),this._rawPxBounds.max.add(c)]))},_projectLatlngs:function(a,c,p){var g=a[0]instanceof he,T=a.length,k,N;if(g){for(N=[],k=0;k<T;k++)N[k]=this._map.latLngToLayerPoint(a[k]),p.extend(N[k]);c.push(N)}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,N,F,U;for(p=0,T=0,k=this._rings.length;p<k;p++)for(U=this._rings[p],g=0,N=U.length;g<N-1;g++)F=A1(U[g],U[g+1],a,g,!0),F&&(c[T]=c[T]||[],c[T].push(F[0]),(F[1]!==U[g+1]||g===N-2)&&(c[T].push(F[1]),T++))}},_simplifyPoints:function(){for(var a=this._parts,c=this.options.smoothFactor,p=0,g=a.length;p<g;p++)a[p]=P1(a[p],c)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(a,c){var p,g,T,k,N,F,U=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(a))return!1;for(p=0,k=this._parts.length;p<k;p++)for(F=this._parts[p],g=0,N=F.length,T=N-1;g<N;T=g++)if(!(!c&&g===0)&&O1(a,F[T],F[g])<=U)return!0;return!1}});function EN(a,c){return new Qr(a,c)}Qr._flat=E1;var wa=Qr.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return S1(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(a){var c=Qr.prototype._convertLatLngs.call(this,a),p=c.length;return p>=2&&c[0]instanceof he&&c[0].equals(c[p-1])&&c.pop(),c},_setLatLngs:function(a){Qr.prototype._setLatLngs.call(this,a),Zn(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Zn(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var a=this._renderer._bounds,c=this.options.weight,p=new D(c,c);if(a=new te(a.min.subtract(p),a.max.add(p)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(a))){if(this.options.noClip){this._parts=this._rings;return}for(var g=0,T=this._rings.length,k;g<T;g++)k=w1(this._rings[g],a,!0),k.length&&this._parts.push(k)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(a){var c=!1,p,g,T,k,N,F,U,ee;if(!this._pxBounds||!this._pxBounds.contains(a))return!1;for(k=0,U=this._parts.length;k<U;k++)for(p=this._parts[k],N=0,ee=p.length,F=ee-1;N<ee;F=N++)g=p[N],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||Qr.prototype._containsPoint.call(this,a,!0)}});function kN(a,c){return new wa(a,c)}var Jr=Yr.extend({initialize:function(a,c){x(this,c),this._layers={},a&&this.addData(a)},addData:function(a){var c=w(a)?a:a.features,p,g,T;if(c){for(p=0,g=c.length;p<g;p++)T=c[p],(T.geometries||T.geometry||T.features||T.coordinates)&&this.addData(T);return this}var k=this.options;if(k.filter&&!k.filter(a))return this;var N=uf(a,k);return N?(N.feature=hf(a),N.defaultOptions=N.options,this.resetStyle(N),k.onEachFeature&&k.onEachFeature(a,N),this.addLayer(N)):this},resetStyle:function(a){return a===void 0?this.eachLayer(this.resetStyle,this):(a.options=i({},a.defaultOptions),this._setLayerStyle(a,this.options.style),this)},setStyle:function(a){return this.eachLayer(function(c){this._setLayerStyle(c,a)},this)},_setLayerStyle:function(a,c){a.setStyle&&(typeof c=="function"&&(c=c(a.feature)),a.setStyle(c))}});function uf(a,c){var p=a.type==="Feature"?a.geometry:a,g=p?p.coordinates:null,T=[],k=c&&c.pointToLayer,N=c&&c.coordsToLatLng||_m,F,U,ee,se;if(!g&&!p)return null;switch(p.type){case"Point":return F=N(g),j1(k,a,F,c);case"MultiPoint":for(ee=0,se=g.length;ee<se;ee++)F=N(g[ee]),T.push(j1(k,a,F,c));return new Yr(T);case"LineString":case"MultiLineString":return U=cf(g,p.type==="LineString"?0:1,N),new Qr(U,c);case"Polygon":case"MultiPolygon":return U=cf(g,p.type==="Polygon"?1:2,N),new wa(U,c);case"GeometryCollection":for(ee=0,se=p.geometries.length;ee<se;ee++){var xe=uf({geometry:p.geometries[ee],type:"Feature",properties:a.properties},c);xe&&T.push(xe)}return new Yr(T);case"FeatureCollection":for(ee=0,se=p.features.length;ee<se;ee++){var Te=uf(p.features[ee],c);Te&&T.push(Te)}return new Yr(T);default:throw new Error("Invalid GeoJSON object.")}}function j1(a,c,p,g){return a?a(c,p):new sf(p,g&&g.markersInheritOptions&&g)}function _m(a){return new he(a[1],a[0],a[2])}function cf(a,c,p){for(var g=[],T=0,k=a.length,N;T<k;T++)N=c?cf(a[T],c-1,p):(p||_m)(a[T]),g.push(N);return g}function bm(a,c){return a=ce(a),a.alt!==void 0?[m(a.lng,c),m(a.lat,c),m(a.alt,c)]:[m(a.lng,c),m(a.lat,c)]}function ff(a,c,p,g){for(var T=[],k=0,N=a.length;k<N;k++)T.push(c?ff(a[k],Zn(a[k])?0:c-1,p,g):bm(a[k],g));return!c&&p&&T.length>0&&T.push(T[0].slice()),T}function Sa(a,c){return a.feature?i({},a.feature,{geometry:c}):hf(c)}function hf(a){return a.type==="Feature"||a.type==="FeatureCollection"?a:{type:"Feature",properties:{},geometry:a}}var wm={toGeoJSON:function(a){return Sa(this,{type:"Point",coordinates:bm(this.getLatLng(),a)})}};sf.include(wm),xm.include(wm),lf.include(wm),Qr.include({toGeoJSON:function(a){var c=!Zn(this._latlngs),p=ff(this._latlngs,c?1:0,!1,a);return Sa(this,{type:(c?"Multi":"")+"LineString",coordinates:p})}}),wa.include({toGeoJSON:function(a){var c=!Zn(this._latlngs),p=c&&!Zn(this._latlngs[0]),g=ff(this._latlngs,p?2:c?1:0,!0,a);return c||(g=[g]),Sa(this,{type:(p?"Multi":"")+"Polygon",coordinates:g})}}),_a.include({toMultiPoint:function(a){var c=[];return this.eachLayer(function(p){c.push(p.toGeoJSON(a).geometry.coordinates)}),Sa(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 N=hf(k);N.type==="FeatureCollection"?g.push.apply(g,N.features):g.push(N)}}}),p?Sa(this,{geometries:g,type:"GeometryCollection"}):{type:"FeatureCollection",features:g}}});function $1(a,c){return new Jr(a,c)}var MN=$1,df=pr.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(a,c,p){this._url=a,this._bounds=fe(c),x(this,p)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(pe(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){ne(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(a){return this.options.opacity=a,this._image&&this._updateOpacity(),this},setStyle:function(a){return a.opacity&&this.setOpacity(a.opacity),this},bringToFront:function(){return this._map&&ot(this._image),this},bringToBack:function(){return this._map&&on(this._image),this},setUrl:function(a){return this._url=a,this._image&&(this._image.src=a),this},setBounds:function(a){return this._bounds=fe(a),this._map&&this._reset(),this},getEvents:function(){var a={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(a.zoomanim=this._animateZoom),a},setZIndex:function(a){return this.options.zIndex=a,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var a=this._url.tagName==="IMG",c=this._image=a?this._url:Ce("img");if(pe(c,"leaflet-image-layer"),this._zoomAnimated&&pe(c,"leaflet-zoom-animated"),this.options.className&&pe(c,this.options.className),c.onselectstart=d,c.onmousemove=d,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;mn(this._image,p,c)},_reset:function(){var a=this._image,c=new te(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),p=c.getSize();Ke(a,c.min),a.style.width=p.x+"px",a.style.height=p.y+"px"},_updateOpacity:function(){$t(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var a=this.options.errorOverlayUrl;a&&this._url!==a&&(this._url=a,this._image.src=a)},getCenter:function(){return this._bounds.getCenter()}}),CN=function(a,c,p){return new df(a,c,p)},N1=df.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var a=this._url.tagName==="VIDEO",c=this._image=a?this._url:Ce("video");if(pe(c,"leaflet-image-layer"),this._zoomAnimated&&pe(c,"leaflet-zoom-animated"),this.options.className&&pe(c,this.options.className),c.onselectstart=d,c.onmousemove=d,c.onloadeddata=s(this.fire,this,"load"),a){for(var p=c.getElementsByTagName("source"),g=[],T=0;T<p.length;T++)g.push(p[T].src);this._url=p.length>0?g:[c.src];return}w(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(c.style,"objectFit")&&(c.style.objectFit="fill"),c.autoplay=!!this.options.autoplay,c.loop=!!this.options.loop,c.muted=!!this.options.muted,c.playsInline=!!this.options.playsInline;for(var k=0;k<this._url.length;k++){var N=Ce("source");N.src=this._url[k],c.appendChild(N)}}});function jN(a,c,p){return new N1(a,c,p)}var L1=df.extend({_initImage:function(){var a=this._image=this._url;pe(a,"leaflet-image-layer"),this._zoomAnimated&&pe(a,"leaflet-zoom-animated"),this.options.className&&pe(a,this.options.className),a.onselectstart=d,a.onmousemove=d}});function $N(a,c,p){return new L1(a,c,p)}var $r=pr.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(a,c){a&&(a instanceof he||w(a))?(this._latlng=ce(a),x(this,c)):(x(this,a),this._source=c),this.options.content&&(this._content=this.options.content)},openOn:function(a){return a=arguments.length?a:this._source._map,a.hasLayer(this)||a.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(a){return this._map?this.close():(arguments.length?this._source=a:a=this._source,this._prepareOpen(),this.openOn(a._map)),this},onAdd:function(a){this._zoomAnimated=a._zoomAnimated,this._container||this._initLayout(),a._fadeAnimated&&$t(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),a._fadeAnimated&&$t(this._container,1),this.bringToFront(),this.options.interactive&&(pe(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(a){a._fadeAnimated?($t(this._container,0),this._removeTimeout=setTimeout(s(ne,void 0,this._container),200)):ne(this._container),this.options.interactive&&(Ae(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(a){return this._latlng=ce(a),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(a){return this._content=a,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var a={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(a.zoomanim=this._animateZoom),a},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&ot(this._container),this},bringToBack:function(){return this._map&&on(this._container),this},_prepareOpen:function(a){var c=this._source;if(!c._map)return!1;if(c instanceof Yr){c=null;var p=this._source._layers;for(var g in p)if(p[g]._map){c=p[g];break}if(!c)return!1;this._source=c}if(!a)if(c.getCenter)a=c.getCenter();else if(c.getLatLng)a=c.getLatLng();else if(c.getBounds)a=c.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(a),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var a=this._contentNode,c=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof c=="string")a.innerHTML=c;else{for(;a.hasChildNodes();)a.removeChild(a.firstChild);a.appendChild(c)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var a=this._map.latLngToLayerPoint(this._latlng),c=V(this.options.offset),p=this._getAnchor();this._zoomAnimated?Ke(this._container,a.add(p)):c=c.add(a).add(p);var g=this._containerBottom=-c.y,T=this._containerLeft=-Math.round(this._containerWidth/2)+c.x;this._container.style.bottom=g+"px",this._container.style.left=T+"px"}},_getAnchor:function(){return[0,0]}});je.include({_initOverlay:function(a,c,p,g){var T=c;return T instanceof a||(T=new a(g).setContent(c)),p&&T.setLatLng(p),T}}),pr.include({_initOverlay:function(a,c,p,g){var T=p;return T instanceof a?(x(T,g),T._source=this):(T=c&&!g?c:new a(g,this),T.setContent(p)),T}});var pf=$r.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,$r.prototype.openOn.call(this,a)},onAdd:function(a){$r.prototype.onAdd.call(this,a),a.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Ii||this._source.on("preclick",Po))},onRemove:function(a){$r.prototype.onRemove.call(this,a),a.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Ii||this._source.off("preclick",Po))},getEvents:function(){var a=$r.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(a.preclick=this.close),this.options.keepInView&&(a.moveend=this._adjustPan),a},_initLayout:function(){var a="leaflet-popup",c=this._container=Ce("div",a+" "+(this.options.className||"")+" leaflet-zoom-animated"),p=this._wrapper=Ce("div",a+"-content-wrapper",c);if(this._contentNode=Ce("div",a+"-content",p),ml(c),fm(this._contentNode),be(c,"contextmenu",Po),this._tipContainer=Ce("div",a+"-tip-container",c),this._tip=Ce("div",a+"-tip",this._tipContainer),this.options.closeButton){var g=this._closeButton=Ce("a",a+"-close-button",c);g.setAttribute("role","button"),g.setAttribute("aria-label","Close popup"),g.href="#close",g.innerHTML='<span aria-hidden="true">×</span>',be(g,"click",function(T){Bt(T),this.close()},this)}},_updateLayout:function(){var a=this._contentNode,c=a.style;c.width="",c.whiteSpace="nowrap";var p=a.offsetWidth;p=Math.min(p,this.options.maxWidth),p=Math.max(p,this.options.minWidth),c.width=p+1+"px",c.whiteSpace="",c.height="";var g=a.offsetHeight,T=this.options.maxHeight,k="leaflet-popup-scrolled";T&&g>T?(c.height=T+"px",pe(a,k)):Ae(a,k),this._containerWidth=this._container.offsetWidth},_animateZoom:function(a){var c=this._map._latLngToNewLayerPoint(this._latlng,a.zoom,a.center),p=this._getAnchor();Ke(this._container,c.add(p))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var a=this._map,c=parseInt(ji(this._container,"marginBottom"),10)||0,p=this._container.offsetHeight+c,g=this._containerWidth,T=new D(this._containerLeft,-p-this._containerBottom);T._add(hr(this._container));var k=a.layerPointToContainerPoint(T),N=V(this.options.autoPanPadding),F=V(this.options.autoPanPaddingTopLeft||N),U=V(this.options.autoPanPaddingBottomRight||N),ee=a.getSize(),se=0,xe=0;k.x+g+U.x>ee.x&&(se=k.x+g-ee.x+U.x),k.x-se-F.x<0&&(se=k.x-F.x),k.y+p+U.y>ee.y&&(xe=k.y+p-ee.y+U.y),k.y-xe-F.y<0&&(xe=k.y-F.y),(se||xe)&&(this.options.keepInView&&(this._autopanning=!0),a.fire("autopanstart").panBy([se,xe]))}},_getAnchor:function(){return V(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),NN=function(a,c){return new pf(a,c)};je.mergeOptions({closePopupOnClick:!0}),je.include({openPopup:function(a,c,p){return this._initOverlay(pf,a,c,p).openOn(this),this},closePopup:function(a){return a=arguments.length?a:this._popup,a&&a.close(),this}}),pr.include({bindPopup:function(a,c){return this._popup=this._initOverlay(pf,this._popup,a,c),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(a){return this._popup&&(this instanceof Yr||(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)){Oo(a);var c=a.layer||a.target;if(this._popup._source===c&&!(c instanceof Ii)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(a.latlng);return}this._popup._source=c,this.openPopup(a.latlng)}},_movePopup:function(a){this._popup.setLatLng(a.latlng)},_onKeyPress:function(a){a.originalEvent.keyCode===13&&this._openPopup(a)}});var mf=$r.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(a){$r.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){$r.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=$r.prototype.getEvents.call(this);return this.options.permanent||(a.preclick=this.close),a},_initLayout:function(){var a="leaflet-tooltip",c=a+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=Ce("div",c),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+u(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(a){var c,p,g=this._map,T=this._container,k=g.latLngToContainerPoint(g.getCenter()),N=g.layerPointToContainerPoint(a),F=this.options.direction,U=T.offsetWidth,ee=T.offsetHeight,se=V(this.options.offset),xe=this._getAnchor();F==="top"?(c=U/2,p=ee):F==="bottom"?(c=U/2,p=0):F==="center"?(c=U/2,p=ee/2):F==="right"?(c=0,p=ee/2):F==="left"?(c=U,p=ee/2):N.x<k.x?(F="right",c=0,p=ee/2):(F="left",c=U+(se.x+xe.x)*2,p=ee/2),a=a.subtract(V(c,p,!0)).add(se).add(xe),Ae(T,"leaflet-tooltip-right"),Ae(T,"leaflet-tooltip-left"),Ae(T,"leaflet-tooltip-top"),Ae(T,"leaflet-tooltip-bottom"),pe(T,"leaflet-tooltip-"+F),Ke(T,a)},_updatePosition:function(){var a=this._map.latLngToLayerPoint(this._latlng);this._setPosition(a)},setOpacity:function(a){this.options.opacity=a,this._container&&$t(this._container,a)},_animateZoom:function(a){var c=this._map._latLngToNewLayerPoint(this._latlng,a.zoom,a.center);this._setPosition(c)},_getAnchor:function(){return V(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),LN=function(a,c){return new mf(a,c)};je.include({openTooltip:function(a,c,p){return this._initOverlay(mf,a,c,p).openOn(this),this},closeTooltip:function(a){return a.close(),this}}),pr.include({bindTooltip:function(a,c){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(mf,this._tooltip,a,c),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(a){if(!(!a&&this._tooltipHandlersAdded)){var c=a?"off":"on",p={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?p.add=this._openTooltip:(p.mouseover=this._openTooltip,p.mouseout=this.closeTooltip,p.click=this._openTooltip,this._map?this._addFocusListeners():p.add=this._addFocusListeners),this._tooltip.options.sticky&&(p.mousemove=this._moveTooltip),this[c](p),this._tooltipHandlersAdded=!a}},openTooltip:function(a){return this._tooltip&&(this instanceof Yr||(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&&(be(c,"focus",function(){this._tooltip._source=a,this.openTooltip()},this),be(c,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(a){var c=typeof a.getElement=="function"&&a.getElement();c&&c.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(a){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var c=this;this._map.once("moveend",function(){c._openOnceFlag=!1,c._openTooltip(a)});return}this._tooltip._source=a.layer||a.target,this.openTooltip(this._tooltip.options.sticky?a.latlng:void 0)}},_moveTooltip:function(a){var c=a.latlng,p,g;this._tooltip.options.sticky&&a.originalEvent&&(p=this._map.mouseEventToContainerPoint(a.originalEvent),g=this._map.containerPointToLayerPoint(p),c=this._map.layerPointToLatLng(g)),this._tooltip.setLatLng(c)}});var I1=ba.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(a){var c=a&&a.tagName==="DIV"?a:document.createElement("div"),p=this.options;if(p.html instanceof Element?(lt(c),c.appendChild(p.html)):c.innerHTML=p.html!==!1?p.html:"",p.bgPos){var g=V(p.bgPos);c.style.backgroundPosition=-g.x+"px "+-g.y+"px"}return this._setIconStyles(c,"icon"),c},createShadow:function(){return null}});function IN(a){return new I1(a)}ba.Default=yl;var xl=pr.extend({options:{tileSize:256,opacity:1,updateWhenIdle:de.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(a){x(this,a)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(a){a._addZoomLimit(this)},onRemove:function(a){this._removeAllTiles(),ne(this._container),a._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(ot(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(on(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&&!de.ielt9){$t(this._container,this.options.opacity);var a=+new Date,c=!1,p=!1;for(var g in this._tiles){var T=this._tiles[g];if(!(!T.current||!T.loaded)){var k=Math.min(1,(a-T.loaded)/200);$t(T.el,k),k<1?c=!0:(T.active?p=!0:this._onOpaqueTile(T),T.active=!0)}}p&&!this._noPrune&&this._pruneTiles(),c&&(R(this._fadeFrame),this._fadeFrame=z(this._updateOpacity,this))}},_onOpaqueTile:d,_initContainer:function(){this._container||(this._container=Ce("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var a=this._tileZoom,c=this.options.maxZoom;if(a!==void 0){for(var p in this._levels)p=Number(p),this._levels[p].el.children.length||p===a?(this._levels[p].el.style.zIndex=c-Math.abs(a-p),this._onUpdateLevel(p)):(ne(this._levels[p].el),this._removeTilesAtZoom(p),this._onRemoveLevel(p),delete this._levels[p]);var g=this._levels[a],T=this._map;return g||(g=this._levels[a]={},g.el=Ce("div","leaflet-tile-container leaflet-zoom-animated",this._container),g.el.style.zIndex=c,g.origin=T.project(T.unproject(T.getPixelOrigin()),a).round(),g.zoom=a,this._setZoomTransform(g,T.getCenter(),T.getZoom()),d(g.el.offsetWidth),this._onCreateLevel(g)),this._level=g,g}},_onUpdateLevel:d,_onRemoveLevel:d,_onCreateLevel:d,_pruneTiles:function(){if(this._map){var a,c,p=this._map.getZoom();if(p>this.options.maxZoom||p<this.options.minZoom){this._removeAllTiles();return}for(a in this._tiles)c=this._tiles[a],c.retain=c.current;for(a in this._tiles)if(c=this._tiles[a],c.current&&!c.active){var g=c.coords;this._retainParent(g.x,g.y,g.z,g.z-5)||this._retainChildren(g.x,g.y,g.z,g.z+2)}for(a in this._tiles)this._tiles[a].retain||this._removeTile(a)}},_removeTilesAtZoom:function(a){for(var c in this._tiles)this._tiles[c].coords.z===a&&this._removeTile(c)},_removeAllTiles:function(){for(var a in this._tiles)this._removeTile(a)},_invalidateAll:function(){for(var a in this._levels)ne(this._levels[a].el),this._onRemoveLevel(Number(a)),delete this._levels[a];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(a,c,p,g){var T=Math.floor(a/2),k=Math.floor(c/2),N=p-1,F=new D(+T,+k);F.z=+N;var U=this._tileCoordsToKey(F),ee=this._tiles[U];return ee&&ee.active?(ee.retain=!0,!0):(ee&&ee.loaded&&(ee.retain=!0),N>g?this._retainParent(T,k,N,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 N=new D(T,k);N.z=p+1;var F=this._tileCoordsToKey(N),U=this._tiles[F];if(U&&U.active){U.retain=!0;continue}else U&&U.loaded&&(U.retain=!0);p+1<g&&this._retainChildren(T,k,p+1,g)}},_resetView:function(a){var c=a&&(a.pinch||a.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),c,c)},_animateZoom:function(a){this._setView(a.center,a.zoom,!0,a.noUpdate)},_clampZoom:function(a){var c=this.options;return c.minNativeZoom!==void 0&&a<c.minNativeZoom?c.minNativeZoom:c.maxNativeZoom!==void 0&&c.maxNativeZoom<a?c.maxNativeZoom:a},_setView:function(a,c,p,g){var T=Math.round(c);this.options.maxZoom!==void 0&&T>this.options.maxZoom||this.options.minZoom!==void 0&&T<this.options.minZoom?T=void 0:T=this._clampZoom(T);var k=this.options.updateWhenZooming&&T!==this._tileZoom;(!g||k)&&(this._tileZoom=T,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),T!==void 0&&this._update(a),p||this._pruneTiles(),this._noPrune=!!p),this._setZoomTransforms(a,c)},_setZoomTransforms:function(a,c){for(var p in this._levels)this._setZoomTransform(this._levels[p],a,c)},_setZoomTransform:function(a,c,p){var g=this._map.getZoomScale(p,a.zoom),T=a.origin.multiplyBy(g).subtract(this._map._getNewPixelOrigin(c,p)).round();de.any3d?mn(a.el,T,g):Ke(a.el,T)},_resetGrid:function(){var a=this._map,c=a.options.crs,p=this._tileSize=this.getTileSize(),g=this._tileZoom,T=this._map.getPixelWorldBounds(this._tileZoom);T&&(this._globalTileRange=this._pxBoundsToTileRange(T)),this._wrapX=c.wrapLng&&!this.options.noWrap&&[Math.floor(a.project([0,c.wrapLng[0]],g).x/p.x),Math.ceil(a.project([0,c.wrapLng[1]],g).x/p.y)],this._wrapY=c.wrapLat&&!this.options.noWrap&&[Math.floor(a.project([c.wrapLat[0],0],g).y/p.x),Math.ceil(a.project([c.wrapLat[1],0],g).y/p.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(a){var c=this._map,p=c._animatingZoom?Math.max(c._animateToZoom,c.getZoom()):c.getZoom(),g=c.getZoomScale(p,this._tileZoom),T=c.project(a,this._tileZoom).floor(),k=c.getSize().divideBy(g*2);return new te(T.subtract(k),T.add(k))},_update:function(a){var c=this._map;if(c){var p=this._clampZoom(c.getZoom());if(a===void 0&&(a=c.getCenter()),this._tileZoom!==void 0){var g=this._getTiledPixelBounds(a),T=this._pxBoundsToTileRange(g),k=T.getCenter(),N=[],F=this.options.keepBuffer,U=new te(T.getBottomLeft().subtract([F,-F]),T.getTopRight().add([F,-F]));if(!(isFinite(T.min.x)&&isFinite(T.min.y)&&isFinite(T.max.x)&&isFinite(T.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var ee in this._tiles){var se=this._tiles[ee].coords;(se.z!==this._tileZoom||!U.contains(new D(se.x,se.y)))&&(this._tiles[ee].current=!1)}if(Math.abs(p-this._tileZoom)>1){this._setView(a,p);return}for(var xe=T.min.y;xe<=T.max.y;xe++)for(var Te=T.min.x;Te<=T.max.x;Te++){var an=new D(Te,xe);if(an.z=this._tileZoom,!!this._isValidTile(an)){var Nt=this._tiles[this._tileCoordsToKey(an)];Nt?Nt.current=!0:N.push(an)}}if(N.sort(function(vn,Oa){return vn.distanceTo(k)-Oa.distanceTo(k)}),N.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var Gn=document.createDocumentFragment();for(Te=0;Te<N.length;Te++)this._addTile(N[Te],Gn);this._level.el.appendChild(Gn)}}}},_isValidTile:function(a){var c=this._map.options.crs;if(!c.infinite){var p=this._globalTileRange;if(!c.wrapLng&&(a.x<p.min.x||a.x>p.max.x)||!c.wrapLat&&(a.y<p.min.y||a.y>p.max.y))return!1}if(!this.options.bounds)return!0;var g=this._tileCoordsToBounds(a);return fe(this.options.bounds).overlaps(g)},_keyToBounds:function(a){return this._tileCoordsToBounds(this._keyToTileCoords(a))},_tileCoordsToNwSe:function(a){var c=this._map,p=this.getTileSize(),g=a.scaleBy(p),T=g.add(p),k=c.unproject(g,a.z),N=c.unproject(T,a.z);return[k,N]},_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&&(ne(c.el),delete this._tiles[a],this.fire("tileunload",{tile:c.el,coords:this._keyToTileCoords(a)}))},_initTile:function(a){pe(a,"leaflet-tile");var c=this.getTileSize();a.style.width=c.x+"px",a.style.height=c.y+"px",a.onselectstart=d,a.onmousemove=d,de.ielt9&&this.options.opacity<1&&$t(a,this.options.opacity)},_addTile:function(a,c){var p=this._getTilePos(a),g=this._tileCoordsToKey(a),T=this.createTile(this._wrapCoords(a),s(this._tileReady,this,a));this._initTile(T),this.createTile.length<2&&z(s(this._tileReady,this,a,null,T)),Ke(T,p),this._tiles[g]={el:T,coords:a,current:!0},c.appendChild(T),this.fire("tileloadstart",{tile:T,coords:a})},_tileReady:function(a,c,p){c&&this.fire("tileerror",{error:c,tile:p,coords:a});var g=this._tileCoordsToKey(a);p=this._tiles[g],p&&(p.loaded=+new Date,this._map._fadeAnimated?($t(p.el,0),R(this._fadeFrame),this._fadeFrame=z(this._updateOpacity,this)):(p.active=!0,this._pruneTiles()),c||(pe(p.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:p.el,coords:a})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),de.ielt9||!this._map._fadeAnimated?z(this._pruneTiles,this):setTimeout(s(this._pruneTiles,this),250)))},_getTilePos:function(a){return a.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(a){var c=new D(this._wrapX?h(a.x,this._wrapX):a.x,this._wrapY?h(a.y,this._wrapY):a.y);return c.z=a.z,c},_pxBoundsToTileRange:function(a){var c=this.getTileSize();return new te(a.min.unscaleBy(c).floor(),a.max.unscaleBy(c).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var a in this._tiles)if(!this._tiles[a].loaded)return!1;return!0}});function DN(a){return new xl(a)}var Pa=xl.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(a,c){this._url=a,c=x(this,c),c.detectRetina&&de.retina&&c.maxZoom>0?(c.tileSize=Math.floor(c.tileSize/2),c.zoomReverse?(c.zoomOffset--,c.minZoom=Math.min(c.maxZoom,c.minZoom+1)):(c.zoomOffset++,c.maxZoom=Math.max(c.minZoom,c.maxZoom-1)),c.minZoom=Math.max(0,c.minZoom)):c.zoomReverse?c.minZoom=Math.min(c.maxZoom,c.minZoom):c.maxZoom=Math.max(c.minZoom,c.maxZoom),typeof c.subdomains=="string"&&(c.subdomains=c.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(a,c){return this._url===a&&c===void 0&&(c=!0),this._url=a,c||this.redraw(),this},createTile:function(a,c){var p=document.createElement("img");return be(p,"load",s(this._tileOnLoad,this,c,p)),be(p,"error",s(this._tileOnError,this,c,p)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(p.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(p.referrerPolicy=this.options.referrerPolicy),p.alt="",p.src=this.getTileUrl(a),p},getTileUrl:function(a){var c={r:de.retina?"@2x":"",s:this._getSubdomain(a),x:a.x,y:a.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var p=this._globalTileRange.max.y-a.y;this.options.tms&&(c.y=p),c["-y"]=p}return _(this._url,i(c,this.options))},_tileOnLoad:function(a,c){de.ielt9?setTimeout(s(a,this,null,c),0):a(null,c)},_tileOnError:function(a,c,p){var g=this.options.errorTileUrl;g&&c.getAttribute("src")!==g&&(c.src=g),a(p,c)},_onTileRemove:function(a){a.tile.onload=null},_getZoomForUrl:function(){var a=this._tileZoom,c=this.options.maxZoom,p=this.options.zoomReverse,g=this.options.zoomOffset;return p&&(a=c-a),a+g},_getSubdomain:function(a){var c=Math.abs(a.x+a.y)%this.options.subdomains.length;return this.options.subdomains[c]},_abortLoading:function(){var a,c;for(a in this._tiles)if(this._tiles[a].coords.z!==this._tileZoom&&(c=this._tiles[a].el,c.onload=d,c.onerror=d,!c.complete)){c.src=P;var p=this._tiles[a].coords;ne(c),delete this._tiles[a],this.fire("tileabort",{tile:c,coords:p})}},_removeTile:function(a){var c=this._tiles[a];if(c)return c.el.setAttribute("src",P),xl.prototype._removeTile.call(this,a)},_tileReady:function(a,c,p){if(!(!this._map||p&&p.getAttribute("src")===P))return xl.prototype._tileReady.call(this,a,c,p)}});function D1(a,c){return new Pa(a,c)}var R1=Pa.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(a,c){this._url=a;var p=i({},this.defaultWmsParams);for(var g in c)g in this.options||(p[g]=c[g]);c=x(this,c);var T=c.detectRetina&&de.retina?2:1,k=this.getTileSize();p.width=k.x*T,p.height=k.y*T,this.wmsParams=p},onAdd:function(a){this._crs=this.options.crs||a.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var c=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[c]=this._crs.code,Pa.prototype.onAdd.call(this,a)},getTileUrl:function(a){var c=this._tileCoordsToNwSe(a),p=this._crs,g=Y(p.project(c[0]),p.project(c[1])),T=g.min,k=g.max,N=(this._wmsVersion>=1.3&&this._crs===M1?[T.y,T.x,k.y,k.x]:[T.x,T.y,k.x,k.y]).join(","),F=Pa.prototype.getTileUrl.call(this,a);return F+S(this.wmsParams,F,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+N},setParams:function(a,c){return i(this.wmsParams,a),c||this.redraw(),this}});function RN(a,c){return new R1(a,c)}Pa.WMS=R1,D1.wms=RN;var ei=pr.extend({options:{padding:.1},initialize:function(a){x(this,a),u(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),pe(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var a={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(a.zoomanim=this._onAnimZoom),a},_onAnimZoom:function(a){this._updateTransform(a.center,a.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(a,c){var p=this._map.getZoomScale(c,this._zoom),g=this._map.getSize().multiplyBy(.5+this.options.padding),T=this._map.project(this._center,c),k=g.multiplyBy(-p).add(T).subtract(this._map._getNewPixelOrigin(a,c));de.any3d?mn(this._container,k,p):Ke(this._container,k)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var a in this._layers)this._layers[a]._reset()},_onZoomEnd:function(){for(var a in this._layers)this._layers[a]._project()},_updatePaths:function(){for(var a in this._layers)this._layers[a]._update()},_update:function(){var a=this.options.padding,c=this._map.getSize(),p=this._map.containerPointToLayerPoint(c.multiplyBy(-a)).round();this._bounds=new te(p,p.add(c.multiplyBy(1+a*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),z1=ei.extend({options:{tolerance:0},getEvents:function(){var a=ei.prototype.getEvents.call(this);return a.viewprereset=this._onViewPreReset,a},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){ei.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var a=this._container=document.createElement("canvas");be(a,"mousemove",this._onMouseMove,this),be(a,"click dblclick mousedown mouseup contextmenu",this._onClick,this),be(a,"mouseout",this._handleMouseOut,this),a._leaflet_disable_events=!0,this._ctx=a.getContext("2d")},_destroyContainer:function(){R(this._redrawRequest),delete this._ctx,ne(this._container),Xe(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var a;this._redrawBounds=null;for(var c in this._layers)a=this._layers[c],a._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){ei.prototype._update.call(this);var a=this._bounds,c=this._container,p=a.getSize(),g=de.retina?2:1;Ke(c,a.min),c.width=g*p.x,c.height=g*p.y,c.style.width=p.x+"px",c.style.height=p.y+"px",de.retina&&this._ctx.scale(2,2),this._ctx.translate(-a.min.x,-a.min.y),this.fire("update")}},_reset:function(){ei.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(a){this._updateDashArray(a),this._layers[u(a)]=a;var c=a._order={layer:a,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=c),this._drawLast=c,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(a){this._requestRedraw(a)},_removePath:function(a){var c=a._order,p=c.next,g=c.prev;p?p.prev=g:this._drawLast=g,g?g.next=p:this._drawFirst=p,delete a._order,delete this._layers[u(a)],this._requestRedraw(a)},_updatePath:function(a){this._extendRedrawBounds(a),a._project(),a._update(),this._requestRedraw(a)},_updateStyle:function(a){this._updateDashArray(a),this._requestRedraw(a)},_updateDashArray:function(a){if(typeof a.options.dashArray=="string"){var c=a.options.dashArray.split(/[, ]+/),p=[],g,T;for(T=0;T<c.length;T++){if(g=Number(c[T]),isNaN(g))return;p.push(g)}a.options._dashArray=p}else a.options._dashArray=a.options.dashArray},_requestRedraw:function(a){this._map&&(this._extendRedrawBounds(a),this._redrawRequest=this._redrawRequest||z(this._redraw,this))},_extendRedrawBounds:function(a){if(a._pxBounds){var c=(a.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new te,this._redrawBounds.extend(a._pxBounds.min.subtract([c,c])),this._redrawBounds.extend(a._pxBounds.max.add([c,c]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var a=this._redrawBounds;if(a){var c=a.getSize();this._ctx.clearRect(a.min.x,a.min.y,c.x,c.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var a,c=this._redrawBounds;if(this._ctx.save(),c){var p=c.getSize();this._ctx.beginPath(),this._ctx.rect(c.min.x,c.min.y,p.x,p.y),this._ctx.clip()}this._drawing=!0;for(var g=this._drawFirst;g;g=g.next)a=g.layer,(!c||a._pxBounds&&a._pxBounds.intersects(c))&&a._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(a,c){if(this._drawing){var p,g,T,k,N=a._parts,F=N.length,U=this._ctx;if(F){for(U.beginPath(),p=0;p<F;p++){for(g=0,T=N[p].length;g<T;g++)k=N[p][g],U[g?"lineTo":"moveTo"](k.x,k.y);c&&U.closePath()}this._fillStroke(U,a)}}},_updateCircle:function(a){if(!(!this._drawing||a._empty())){var c=a._point,p=this._ctx,g=Math.max(Math.round(a._radius),1),T=(Math.max(Math.round(a._radiusY),1)||g)/g;T!==1&&(p.save(),p.scale(1,T)),p.beginPath(),p.arc(c.x,c.y/T,g,0,Math.PI*2,!1),T!==1&&p.restore(),this._fillStroke(p,a)}},_fillStroke:function(a,c){var p=c.options;p.fill&&(a.globalAlpha=p.fillOpacity,a.fillStyle=p.fillColor||p.color,a.fill(p.fillRule||"evenodd")),p.stroke&&p.weight!==0&&(a.setLineDash&&a.setLineDash(c.options&&c.options._dashArray||[]),a.globalAlpha=p.opacity,a.lineWidth=p.weight,a.strokeStyle=p.color,a.lineCap=p.lineCap,a.lineJoin=p.lineJoin,a.stroke())},_onClick:function(a){for(var c=this._map.mouseEventToLayerPoint(a),p,g,T=this._drawFirst;T;T=T.next)p=T.layer,p.options.interactive&&p._containsPoint(c)&&(!(a.type==="click"||a.type==="preclick")||!this._map._draggableMoved(p))&&(g=p);this._fireEvent(g?[g]:!1,a)},_onMouseMove:function(a){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var c=this._map.mouseEventToLayerPoint(a);this._handleMouseHover(a,c)}},_handleMouseOut:function(a){var c=this._hoveredLayer;c&&(Ae(this._container,"leaflet-interactive"),this._fireEvent([c],a,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(a,c){if(!this._mouseHoverThrottled){for(var p,g,T=this._drawFirst;T;T=T.next)p=T.layer,p.options.interactive&&p._containsPoint(c)&&(g=p);g!==this._hoveredLayer&&(this._handleMouseOut(a),g&&(pe(this._container,"leaflet-interactive"),this._fireEvent([g],a,"mouseover"),this._hoveredLayer=g)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,a),this._mouseHoverThrottled=!0,setTimeout(s(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(a,c,p){this._map._fireDOMEvent(c,p||c.type,a)},_bringToFront:function(a){var c=a._order;if(c){var p=c.next,g=c.prev;if(p)p.prev=g;else return;g?g.next=p:p&&(this._drawFirst=p),c.prev=this._drawLast,this._drawLast.next=c,c.next=null,this._drawLast=c,this._requestRedraw(a)}},_bringToBack:function(a){var c=a._order;if(c){var p=c.next,g=c.prev;if(g)g.next=p;else return;p?p.prev=g:g&&(this._drawLast=g),c.prev=null,c.next=this._drawFirst,this._drawFirst.prev=c,this._drawFirst=c,this._requestRedraw(a)}}});function B1(a){return de.canvas?new z1(a):null}var _l=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">')}}(),zN={_initContainer:function(){this._container=Ce("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(ei.prototype._update.call(this),this.fire("update"))},_initPath:function(a){var c=a._container=_l("shape");pe(c,"leaflet-vml-shape "+(this.options.className||"")),c.coordsize="1 1",a._path=_l("path"),c.appendChild(a._path),this._updateStyle(a),this._layers[u(a)]=a},_addPath:function(a){var c=a._container;this._container.appendChild(c),a.options.interactive&&a.addInteractiveTarget(c)},_removePath:function(a){var c=a._container;ne(c),a.removeInteractiveTarget(c),delete this._layers[u(a)]},_updateStyle:function(a){var c=a._stroke,p=a._fill,g=a.options,T=a._container;T.stroked=!!g.stroke,T.filled=!!g.fill,g.stroke?(c||(c=a._stroke=_l("stroke")),T.appendChild(c),c.weight=g.weight+"px",c.color=g.color,c.opacity=g.opacity,g.dashArray?c.dashStyle=w(g.dashArray)?g.dashArray.join(" "):g.dashArray.replace(/( *, *)/g," "):c.dashStyle="",c.endcap=g.lineCap.replace("butt","flat"),c.joinstyle=g.lineJoin):c&&(T.removeChild(c),a._stroke=null),g.fill?(p||(p=a._fill=_l("fill")),T.appendChild(p),p.color=g.fillColor||g.color,p.opacity=g.fillOpacity):p&&(T.removeChild(p),a._fill=null)},_updateCircle:function(a){var c=a._point.round(),p=Math.round(a._radius),g=Math.round(a._radiusY||p);this._setPath(a,a._empty()?"M0 0":"AL "+c.x+","+c.y+" "+p+","+g+" 0,"+65535*360)},_setPath:function(a,c){a._path.v=c},_bringToFront:function(a){ot(a._container)},_bringToBack:function(a){on(a._container)}},vf=de.vml?_l:Ue,bl=ei.extend({_initContainer:function(){this._container=vf("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=vf("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){ne(this._container),Xe(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){ei.prototype._update.call(this);var a=this._bounds,c=a.getSize(),p=this._container;(!this._svgSize||!this._svgSize.equals(c))&&(this._svgSize=c,p.setAttribute("width",c.x),p.setAttribute("height",c.y)),Ke(p,a.min),p.setAttribute("viewBox",[a.min.x,a.min.y,c.x,c.y].join(" ")),this.fire("update")}},_initPath:function(a){var c=a._path=vf("path");a.options.className&&pe(c,a.options.className),a.options.interactive&&pe(c,"leaflet-interactive"),this._updateStyle(a),this._layers[u(a)]=a},_addPath:function(a){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(a._path),a.addInteractiveTarget(a._path)},_removePath:function(a){ne(a._path),a.removeInteractiveTarget(a._path),delete this._layers[u(a)]},_updatePath:function(a){a._project(),a._update()},_updateStyle:function(a){var c=a._path,p=a.options;c&&(p.stroke?(c.setAttribute("stroke",p.color),c.setAttribute("stroke-opacity",p.opacity),c.setAttribute("stroke-width",p.weight),c.setAttribute("stroke-linecap",p.lineCap),c.setAttribute("stroke-linejoin",p.lineJoin),p.dashArray?c.setAttribute("stroke-dasharray",p.dashArray):c.removeAttribute("stroke-dasharray"),p.dashOffset?c.setAttribute("stroke-dashoffset",p.dashOffset):c.removeAttribute("stroke-dashoffset")):c.setAttribute("stroke","none"),p.fill?(c.setAttribute("fill",p.fillColor||p.color),c.setAttribute("fill-opacity",p.fillOpacity),c.setAttribute("fill-rule",p.fillRule||"evenodd")):c.setAttribute("fill","none"))},_updatePoly:function(a,c){this._setPath(a,We(a._parts,c))},_updateCircle:function(a){var c=a._point,p=Math.max(Math.round(a._radius),1),g=Math.max(Math.round(a._radiusY),1)||p,T="a"+p+","+g+" 0 1,0 ",k=a._empty()?"M0 0":"M"+(c.x-p)+","+c.y+T+p*2+",0 "+T+-p*2+",0 ";this._setPath(a,k)},_setPath:function(a,c){a._path.setAttribute("d",c)},_bringToFront:function(a){ot(a._path)},_bringToBack:function(a){on(a._path)}});de.vml&&bl.include(zN);function F1(a){return de.svg||de.vml?new bl(a):null}je.include({getRenderer:function(a){var c=a.options.renderer||this._getPaneRenderer(a.options.pane)||this.options.renderer||this._renderer;return c||(c=this._renderer=this._createRenderer()),this.hasLayer(c)||this.addLayer(c),c},_getPaneRenderer:function(a){if(a==="overlayPane"||a===void 0)return!1;var c=this._paneRenderers[a];return c===void 0&&(c=this._createRenderer({pane:a}),this._paneRenderers[a]=c),c},_createRenderer:function(a){return this.options.preferCanvas&&B1(a)||F1(a)}});var V1=wa.extend({initialize:function(a,c){wa.prototype.initialize.call(this,this._boundsToLatLngs(a),c)},setBounds:function(a){return this.setLatLngs(this._boundsToLatLngs(a))},_boundsToLatLngs:function(a){return a=fe(a),[a.getSouthWest(),a.getNorthWest(),a.getNorthEast(),a.getSouthEast()]}});function BN(a,c){return new V1(a,c)}bl.create=vf,bl.pointsToPath=We,Jr.geometryToLayer=uf,Jr.coordsToLatLng=_m,Jr.coordsToLatLngs=cf,Jr.latLngToCoords=bm,Jr.latLngsToCoords=ff,Jr.getFeature=Sa,Jr.asFeature=hf,je.mergeOptions({boxZoom:!0});var U1=jr.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(){be(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Xe(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){ne(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(a){if(!a.shiftKey||a.which!==1&&a.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),$i(),rm(),this._startPoint=this._map.mouseEventToContainerPoint(a),be(document,{contextmenu:Oo,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(a){this._moved||(this._moved=!0,this._box=Ce("div","leaflet-zoom-box",this._container),pe(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(a);var c=new te(this._point,this._startPoint),p=c.getSize();Ke(this._box,c.min),this._box.style.width=p.x+"px",this._box.style.height=p.y+"px"},_finish:function(){this._moved&&(ne(this._box),Ae(this._container,"leaflet-crosshair")),Xr(),im(),Xe(document,{contextmenu:Oo,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(a){if(!(a.which!==1&&a.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(s(this._resetState,this),0);var c=new ae(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(c).fire("boxzoomend",{boxZoomBounds:c})}},_onKeyDown:function(a){a.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});je.addInitHook("addHandler","boxZoom",U1),je.mergeOptions({doubleClickZoom:!0});var W1=jr.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(a){var c=this._map,p=c.getZoom(),g=c.options.zoomDelta,T=a.originalEvent.shiftKey?p-g:p+g;c.options.doubleClickZoom==="center"?c.setZoom(T):c.setZoomAround(a.containerPoint,T)}});je.addInitHook("addHandler","doubleClickZoom",W1),je.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var H1=jr.extend({addHooks:function(){if(!this._draggable){var a=this._map;this._draggable=new Li(a._mapPane,a._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),a.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),a.on("zoomend",this._onZoomEnd,this),a.whenReady(this._onZoomEnd,this))}pe(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){Ae(this._map._container,"leaflet-grab"),Ae(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var a=this._map;if(a._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var c=fe(this._map.options.maxBounds);this._offsetLimit=Y(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,N=Math.abs(T+p)<Math.abs(k+p)?T:k;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=N},_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,N=p.easeLinearity,F=T.multiplyBy(N/k),U=F.distanceTo([0,0]),ee=Math.min(p.inertiaMaxSpeed,U),se=F.multiplyBy(ee/U),xe=ee/(p.inertiaDeceleration*N),Te=se.multiplyBy(-xe/2).round();!Te.x&&!Te.y?c.fire("moveend"):(Te=c._limitOffset(Te,c.options.maxBounds),z(function(){c.panBy(Te,{duration:xe,easeLinearity:N,noMoveStart:!0,animate:!0})}))}}});je.addInitHook("addHandler","dragging",H1),je.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Z1=jr.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"),be(a,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),Xe(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var a=document.body,c=document.documentElement,p=a.scrollTop||c.scrollTop,g=a.scrollLeft||c.scrollLeft;this._map._container.focus(),window.scrollTo(g,p)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(a){var c=this._panKeys={},p=this.keyCodes,g,T;for(g=0,T=p.left.length;g<T;g++)c[p.left[g]]=[-1*a,0];for(g=0,T=p.right.length;g<T;g++)c[p.right[g]]=[a,0];for(g=0,T=p.down.length;g<T;g++)c[p.down[g]]=[0,a];for(g=0,T=p.up.length;g<T;g++)c[p.up[g]]=[0,-1*a]},_setZoomDelta:function(a){var c=this._zoomKeys={},p=this.keyCodes,g,T;for(g=0,T=p.zoomIn.length;g<T;g++)c[p.zoomIn[g]]=a;for(g=0,T=p.zoomOut.length;g<T;g++)c[p.zoomOut[g]]=-a},_addHooks:function(){be(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Xe(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(a){if(!(a.altKey||a.ctrlKey||a.metaKey)){var c=a.keyCode,p=this._map,g;if(c in this._panKeys){if(!p._panAnim||!p._panAnim._inProgress)if(g=this._panKeys[c],a.shiftKey&&(g=V(g).multiplyBy(3)),p.options.maxBounds&&(g=p._limitOffset(V(g),p.options.maxBounds)),p.options.worldCopyJump){var T=p.wrapLatLng(p.unproject(p.project(p.getCenter()).add(g)));p.panTo(T)}else p.panBy(g)}else if(c in this._zoomKeys)p.setZoom(p.getZoom()+(a.shiftKey?3:1)*this._zoomKeys[c]);else if(c===27&&p._popup&&p._popup.options.closeOnEscapeKey)p.closePopup();else return;Oo(a)}}});je.addInitHook("addHandler","keyboard",Z1),je.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var G1=jr.extend({addHooks:function(){be(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Xe(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(a){var c=g1(a),p=this._map.options.wheelDebounceTime;this._delta+=c,this._lastMousePos=this._map.mouseEventToContainerPoint(a),this._startTime||(this._startTime=+new Date);var g=Math.max(p-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(s(this._performZoom,this),g),Oo(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,N=a._limitZoom(c+(this._delta>0?k:-k))-c;this._delta=0,this._startTime=null,N&&(a.options.scrollWheelZoom==="center"?a.setZoom(c+N):a.setZoomAround(this._lastMousePos,c+N))}});je.addInitHook("addHandler","scrollWheelZoom",G1);var FN=600;je.mergeOptions({tapHold:de.touchNative&&de.safari&&de.mobile,tapTolerance:15});var K1=jr.extend({addHooks:function(){be(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Xe(this._map._container,"touchstart",this._onDown,this)},_onDown:function(a){if(clearTimeout(this._holdTimeout),a.touches.length===1){var c=a.touches[0];this._startPos=this._newPos=new D(c.clientX,c.clientY),this._holdTimeout=setTimeout(s(function(){this._cancel(),this._isTapValid()&&(be(document,"touchend",Bt),be(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",c))},this),FN),be(document,"touchend touchcancel contextmenu",this._cancel,this),be(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function a(){Xe(document,"touchend",Bt),Xe(document,"touchend touchcancel",a)},_cancel:function(){clearTimeout(this._holdTimeout),Xe(document,"touchend touchcancel contextmenu",this._cancel,this),Xe(document,"touchmove",this._onMove,this)},_onMove:function(a){var c=a.touches[0];this._newPos=new 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)}});je.addInitHook("addHandler","tapHold",K1),je.mergeOptions({touchZoom:de.touch,bounceAtZoomLimits:!0});var q1=jr.extend({addHooks:function(){pe(this._map._container,"leaflet-touch-zoom"),be(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Ae(this._map._container,"leaflet-touch-zoom"),Xe(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(a){var c=this._map;if(!(!a.touches||a.touches.length!==2||c._animatingZoom||this._zooming)){var p=c.mouseEventToContainerPoint(a.touches[0]),g=c.mouseEventToContainerPoint(a.touches[1]);this._centerPoint=c.getSize()._divideBy(2),this._startLatLng=c.containerPointToLatLng(this._centerPoint),c.options.touchZoom!=="center"&&(this._pinchStartLatLng=c.containerPointToLatLng(p.add(g)._divideBy(2))),this._startDist=p.distanceTo(g),this._startZoom=c.getZoom(),this._moved=!1,this._zooming=!0,c._stop(),be(document,"touchmove",this._onTouchMove,this),be(document,"touchend touchcancel",this._onTouchEnd,this),Bt(a)}},_onTouchMove:function(a){if(!(!a.touches||a.touches.length!==2||!this._zooming)){var c=this._map,p=c.mouseEventToContainerPoint(a.touches[0]),g=c.mouseEventToContainerPoint(a.touches[1]),T=p.distanceTo(g)/this._startDist;if(this._zoom=c.getScaleZoom(T,this._startZoom),!c.options.bounceAtZoomLimits&&(this._zoom<c.getMinZoom()&&T<1||this._zoom>c.getMaxZoom()&&T>1)&&(this._zoom=c._limitZoom(this._zoom)),c.options.touchZoom==="center"){if(this._center=this._startLatLng,T===1)return}else{var k=p._add(g)._divideBy(2)._subtract(this._centerPoint);if(T===1&&k.x===0&&k.y===0)return;this._center=c.unproject(c.project(this._pinchStartLatLng,this._zoom).subtract(k),this._zoom)}this._moved||(c._moveStart(!0,!1),this._moved=!0),R(this._animRequest);var N=s(c._move,c,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=z(N,this,!0),Bt(a)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,R(this._animRequest),Xe(document,"touchmove",this._onTouchMove,this),Xe(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});je.addInitHook("addHandler","touchZoom",q1),je.BoxZoom=U1,je.DoubleClickZoom=W1,je.Drag=H1,je.Keyboard=Z1,je.ScrollWheelZoom=G1,je.TapHold=K1,je.TouchZoom=q1,n.Bounds=te,n.Browser=de,n.CRS=Ve,n.Canvas=z1,n.Circle=xm,n.CircleMarker=lf,n.Class=W,n.Control=dr,n.DivIcon=I1,n.DivOverlay=$r,n.DomEvent=oN,n.DomUtil=rN,n.Draggable=Li,n.Evented=K,n.FeatureGroup=Yr,n.GeoJSON=Jr,n.GridLayer=xl,n.Handler=jr,n.Icon=ba,n.ImageOverlay=df,n.LatLng=he,n.LatLngBounds=ae,n.Layer=pr,n.LayerGroup=_a,n.LineUtil=yN,n.Map=je,n.Marker=sf,n.Mixin=hN,n.Path=Ii,n.Point=D,n.PolyUtil=dN,n.Polygon=wa,n.Polyline=Qr,n.Popup=pf,n.PosAnimation=y1,n.Projection=xN,n.Rectangle=V1,n.Renderer=ei,n.SVG=bl,n.SVGOverlay=L1,n.TileLayer=Pa,n.Tooltip=mf,n.Transformation=ye,n.Util=G,n.VideoOverlay=N1,n.bind=s,n.bounds=Y,n.canvas=B1,n.circle=AN,n.circleMarker=TN,n.control=vl,n.divIcon=IN,n.extend=i,n.featureGroup=SN,n.geoJSON=$1,n.geoJson=MN,n.gridLayer=DN,n.icon=PN,n.imageOverlay=CN,n.latLng=ce,n.latLngBounds=fe,n.layerGroup=wN,n.map=aN,n.marker=ON,n.point=V,n.polygon=kN,n.polyline=EN,n.popup=NN,n.rectangle=BN,n.setOptions=x,n.stamp=u,n.svg=F1,n.svgOverlay=$N,n.tileLayer=D1,n.tooltip=LN,n.transformation=J,n.version=r,n.videoOverlay=jN;var VN=window.L;n.noConflict=function(){return window.L=VN,this},window.L=n})})(Yg,Yg.exports);var Hs=Yg.exports;const Sn=Ge(Hs);function gp(e,t,n){return Object.freeze({instance:e,context:t,container:n})}function n_(e,t){return t==null?function(r,i){const o=j.useRef();return o.current||(o.current=e(r,i)),o}:function(r,i){const o=j.useRef();o.current||(o.current=e(r,i));const s=j.useRef(r),{instance:l}=o.current;return j.useEffect(function(){s.current!==r&&(t(l,r,s.current),s.current=r)},[l,r,i]),o}}function bM(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 wM(e){return function(n){const r=e_(),i=e(t_(n,r),r);return C4(r.map,n.attribution),_M(i.current,n.eventHandlers),bM(i.current,r),i}}function I4(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 D4(e){return function(n){const r=e_(),i=e(t_(n,r),r);return _M(i.current,n.eventHandlers),bM(i.current,r),I4(i.current,n),i}}function R4(e,t){const n=n_(e,t),r=wM(n);return xM(r)}function SM(e,t){const n=n_(e,t),r=D4(n);return xM(r)}function z4(e,t){const n=n_(e,t),r=wM(n);return L4(r)}function B4(e,t,n){const{opacity:r,zIndex:i}=t;r!=null&&r!==n.opacity&&e.setOpacity(r),i!=null&&i!==n.zIndex&&e.setZIndex(i)}function r_(){return e_().map}function PM(e){const t=r_();return j.useEffect(function(){return t.on(e),function(){t.off(e)}},[t,e]),t}const oi=SM(function({center:t,children:n,...r},i){const o=new Hs.Circle(t,r);return gp(o,Jx(i,{overlayContainer:o}))},j4);function Qg(){return Qg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qg.apply(this,arguments)}function F4({bounds:e,boundsOptions:t,center:n,children:r,className:i,id:o,placeholder:s,style:l,whenReady:u,zoom:f,...h},d){const[m]=j.useState({className:i,id:o,style:l}),[v,b]=j.useState(null);j.useImperativeHandle(d,()=>(v==null?void 0:v.map)??null,[v]);const x=j.useCallback(y=>{if(y!==null&&v===null){const _=new Hs.Map(y,h);n!=null&&f!=null?_.setView(n,f):e!=null&&_.fitBounds(e,t),u!=null&&_.whenReady(u),b(N4(_))}},[]);j.useEffect(()=>()=>{v==null||v.map.remove()},[v]);const S=v?I.createElement(yM,{value:v},r):s??null;return I.createElement("div",Qg({},m,{ref:x}),S)}const OM=j.forwardRef(F4),Jn=R4(function({position:t,...n},r){const i=new Hs.Marker(t,n);return gp(i,Jx(r,{overlayContainer:i}))},function(t,n,r){n.position!==r.position&&t.setLatLng(n.position),n.icon!=null&&n.icon!==r.icon&&t.setIcon(n.icon),n.zIndexOffset!=null&&n.zIndexOffset!==r.zIndexOffset&&t.setZIndexOffset(n.zIndexOffset),n.opacity!=null&&n.opacity!==r.opacity&&t.setOpacity(n.opacity),t.dragging!=null&&n.draggable!==r.draggable&&(n.draggable===!0?t.dragging.enable():t.dragging.disable())}),Bo=SM(function({positions:t,...n},r){const i=new Hs.Polyline(t,n);return gp(i,Jx(r,{overlayContainer:i}))},function(t,n,r){n.positions!==r.positions&&t.setLatLngs(n.positions)}),Jg=z4(function({url:t,...n},r){const i=new Hs.TileLayer(t,t_(n,r));return gp(i,r)},function(t,n,r){B4(t,n,r);const{url:i}=n;i!=null&&i!==r.url&&t.setUrl(i)}),V4=new Sn.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]}),U4=e=>new Sn.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]}),W4=new Sn.DivIcon({html:'<div style="font-size: 18px; color: #ef4444; filter: drop-shadow(0 0 3px black);">⚓︎</div>',className:"nearby-anchor-marker animate-pulse",iconSize:[20,20],iconAnchor:[10,10]}),zf=(e,t)=>{if(e==null||isNaN(e))return"";const n=t?e>=0?"N":"S":e>=0?"E":"W",r=Math.abs(e),i=Math.floor(r),o=((r-i)*60).toFixed(4);return`${i}° ${o}'${n}`},H4=(e,t)=>{const n=Math.PI/180,r=-t/(111139*Math.cos(e.lat*n));return[e.lat,e.lon+r]},Z4=(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)},G4=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"}],K4=(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]},q4=e=>{let t="rgba(225, 225, 225, 0.85)";return e==="RED"?t="#ef4444":e==="ORANGE"&&(t="#f97316"),new Sn.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]})},X4=e=>e.risk==="RED"?"#ef4444":e.risk==="ORANGE"?"#f97316":e.color||"rgba(225, 225, 225, 0.85)",i_=e=>e>=18?{nameSize:"15px",subSize:"11px",emojiSize:"26px",markerSize:20,iconSize:[400,64],iconAnchor:[-14,32]}:e<=14?{nameSize:"10px",subSize:"7.5px",emojiSize:"16px",markerSize:12,iconSize:[280,42],iconAnchor:[-8,21]}:{nameSize:"13px",subSize:"9.5px",emojiSize:"22px",markerSize:16,iconSize:[350,56],iconAnchor:[-12,28]},Y4=(e,t,n)=>{const r=i_(n);return new Sn.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]})},TM=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?"🚤":""},Q4=(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 d=Math.round(i/60);u=u?`${u} • RIT: ${d} MIN`:`RIT: ${d} MIN`}const f=TM(o),h=i_(s);return new Sn.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: ${h.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: ${h.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: ${h.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:h.iconSize,iconAnchor:h.iconAnchor})},J4=(e,t,n,r,i,o,s,l,u,f,h)=>{let d="";l>=120&&(d=` • RIT: ${Math.round(l/60)} MIN`);let m=`${t} kn${d}`,v="";if(o==="RED"){let S=s||"COLLISIONE!",y=i?` (${i})`:"",_=r!==null&&r>=0?` IN ${Math.round(r)} MIN`:"";v=`🚨 ${S} - CPA: ${n}m${y}${_}`}else r!==null&&r>=0&&(v=`CPA: ${n}m (${i}) IN ${Math.round(r)} MIN`);const b=TM(f),x=i_(h);return new Sn.DivIcon({html:`
|
|
275
|
+
<div style="display: flex; flex-direction: row; align-items: center; gap: 5px; white-space: nowrap; text-transform: uppercase;">
|
|
276
|
+
${b?`<span style="font-size: ${x.emojiSize}; line-height: 1;">${b}</span>`:""}
|
|
277
|
+
<div style="display: flex; flex-direction: column; align-items: flex-start; justify-content: center; line-height: 1.15;">
|
|
278
|
+
<span style="font-size: ${x.nameSize}; font-weight: 900; color: ${u}; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;">${e}</span>
|
|
279
|
+
<span style="font-size: ${x.subSize}; font-weight: 900; color: ${u}; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; margin-top: 1px;">${m}</span>
|
|
280
|
+
${v?`<span style="font-size: ${x.nameSize}; font-weight: 900; color: ${u}; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; margin-top: 2px;">${v}</span>`:""}
|
|
281
|
+
</div>
|
|
282
|
+
</div>
|
|
283
|
+
`,className:"ais-moving-label",iconSize:x.iconSize,iconAnchor:x.iconAnchor})},eB=e=>!e||e<50?"text-gray-300":e<195||e>255?"text-red-500":e<210||e>245?"text-orange-500":"text-gray-400",tB=(e,t,n,r)=>{const i=Math.abs(e),o=r&&n>180,s=o?t*n:1200,l=i/(s>100?s:1200);return l>.9?"text-red-500 animate-pulse font-black":l>.7?"text-orange-500 font-black":o&&i>1e3?"text-yellow-400 font-black":"text-gray-100"},TS=e=>e==null?"text-white":e<=-12?"text-blue-600":e<-4?"text-blue-400":e<4?"text-orange-500":e<=9?"text-white":e<=12?"text-orange-500":"text-red-500",nB=({coords:e,anchorCoords:t,isAnchored:n,trailSegments:r,autoFollow:i,setAutoFollow:o,isMapFull:s,setIsMapFull:l,smartZoom:u,onZoomChange:f})=>{const h=r_(),d=j.useRef(!1);PM({dragstart:()=>{o(!1)},zoomstart:y=>{y&&y.originalEvent&&(d.current=!0)},zoomend:()=>{f&&f(h.getZoom())}}),j.useEffect(()=>{f&&f(h.getZoom())},[h,f]);const m=y=>{d.current=!0;const _=h.getZoom(),w=y==="in"?_+1:_-1;h.setZoom(w),f&&f(w)},v=j.useMemo(()=>n&&t&&t[0]&&t[1]?t:e,[n,t,e]),[b,x]=v,S=j.useRef(!0);return j.useEffect(()=>{const y=setTimeout(()=>{if(h.invalidateSize(!1),i&&b!==0){const w=d.current?h.getZoom():u;h.setView([b,x],w,{animate:!1})}},60),_=setTimeout(()=>{h.invalidateSize(!1)},300);return()=>{clearTimeout(y),clearTimeout(_)}},[s,i,b,x,u,h]),j.useEffect(()=>{if(!i||b===0)return;const y=requestAnimationFrame(()=>{const _=h.getZoom();S.current?(d.current=!1,h.setView([b,x],u,{animate:!1}),S.current=!1,f&&f(u)):!d.current&&_!==u?h.flyTo([b,x],u,{duration:.8}):h.panTo([b,x],{animate:!0,duration:1,easeLinearity:.25})});return()=>cancelAnimationFrame(y)},[i,b,x,u,h,f]),O.jsxs(O.Fragment,{children:[r.map((y,_)=>O.jsx(Bo,{positions:y.positions,color:y.color,weight:y.weight,opacity:y.opacity,lineCap:"round",lineJoin:"round",smoothFactor:0},`trail-seg-${_}`)),O.jsxs("div",{className:"absolute right-4 top-1/2 -translate-y-1/2 flex flex-col gap-3 z-[1000]",children:[O.jsx("button",{onClick:()=>m("in"),className:"w-12 h-12 rounded-2xl bg-black/50 backdrop-blur-xl border border-white/20 flex items-center justify-center text-white shadow-xl active:scale-90 transition-all hover:bg-black/60",children:O.jsx(pM,{size:24})}),O.jsx("button",{onClick:()=>m("out"),className:"w-12 h-12 rounded-2xl bg-black/50 backdrop-blur-xl border border-white/20 flex items-center justify-center text-white shadow-xl active:scale-90 transition-all hover:bg-black/60",children:O.jsx(hM,{size:24})}),O.jsx("button",{onClick:()=>{d.current=!1,o(!0),h.flyTo(v,u,{duration:.6})},className:`w-12 h-12 rounded-2xl backdrop-blur-xl border transition-all flex items-center justify-center shadow-xl active:scale-90 ${i?"bg-cyan-500/40 border-cyan-400 shadow-[0_0_20px_rgba(6,182,212,0.3)]":"bg-black/50 border-white/20"}`,children:O.jsx(mM,{size:24,className:i?"text-white":"text-gray-300"})}),O.jsx("button",{onClick:y=>{y.stopPropagation(),l(_=>!_)},className:"w-12 h-12 rounded-2xl bg-black/50 backdrop-blur-xl border border-white/20 flex items-center justify-center text-white shadow-xl active:scale-90 transition-all hover:bg-black/60",children:s?O.jsx(v4,{size:20}):O.jsx(m4,{size:20})})]})]})},rB=({manager:e,onTabChange:t})=>{var W,H,Z,K,D,q,V,te,Y,ae,fe,he,ce,Ve,ze,oe,me,ye,J,Le,we,Ue,We,it,Tt,hn,On,zt,Q,_e,Oe,Ie,yt,He,pt,dn,nn,pn,rn,Vn,Tn,Un,kr,An,_o,Kr,bo,wo,Mi,Dc,Rc,zc,Bc,Fc,Vc,va,Uc,Wc,Hc,Zc,En,de,al,sl,ll,ul,ga,cl,qr,fl,Gc,Kc,qc,Xc,hl,Yc,So,Qc,Jc,ef,tf,nf,ya,Ci,dl,pl,ji,Ce;const{data:n,toggleSwitch:r,apiUrl:i,error:o,isUpdating:s}=e,[l,u]=j.useState(!0),[f,h]=j.useState(!1),[d,m]=j.useState(!1),[v,b]=j.useState(!1),x=parseFloat((W=n==null?void 0:n.gps)==null?void 0:W.lat)||36.78,S=parseFloat((H=n==null?void 0:n.gps)==null?void 0:H.lon)||14.54,y=j.useMemo(()=>[x,S],[x,S]),_=((Z=n==null?void 0:n.anchor)==null?void 0:Z.sog)!==void 0?n.anchor.sog:((K=n==null?void 0:n.gps)==null?void 0:K.sog)||0,w=parseFloat(((D=n==null?void 0:n.anchor)==null?void 0:D.depth)||((q=n==null?void 0:n.environment)==null?void 0:q.depth)||0),E=!!((V=n==null?void 0:n.anchor)!=null&&V.engine_on),P=((te=n==null?void 0:n.anchor)==null?void 0:te.status)||"MOVING",A=P!=="MOVING",M=j.useMemo(()=>Z4(P,_,w,E),[P,_,w,E]),[C,$]=j.useState(M);j.useEffect(()=>{h(!!o)},[o]);const B=j.useMemo(()=>{var ne,lt;return A&&((ne=n==null?void 0:n.anchor)!=null&&ne.lat)&&((lt=n==null?void 0:n.anchor)!=null&<.lon)?{lat:parseFloat(n.anchor.lat),lon:parseFloat(n.anchor.lon)}:{lat:x,lon:S}},[A,(Y=n==null?void 0:n.anchor)==null?void 0:Y.lat,(ae=n==null?void 0:n.anchor)==null?void 0:ae.lon,x,S]),z=j.useMemo(()=>{var ne;return(((ne=n==null?void 0:n.environment)==null?void 0:ne.ais_targets)||[]).some(lt=>lt.risk==="RED"&<.riskMsg==="SOPRA TUA ANCORA!")},[(fe=n==null?void 0:n.environment)==null?void 0:fe.ais_targets]),R=j.useMemo(()=>{var lt;return(((lt=n==null?void 0:n.environment)==null?void 0:lt.ais_targets)||[]).filter(ot=>ot.risk==="RED"||ot.riskMsg==="SOPRA TUA ANCORA!"?!0:ot.dist<=1852)},[(he=n==null?void 0:n.environment)==null?void 0:he.ais_targets]),G=j.useMemo(()=>{var Mr,$t,Wn;const ne=((Mr=n==null?void 0:n.environment)==null?void 0:Mr.gps_history)||[],lt=(($t=n==null?void 0:n.anchor)==null?void 0:$t.engine_on)||!1,ot=((Wn=n==null?void 0:n.anchor)==null?void 0:Wn.status)==="MOVING"?lt?"engine":"sail":"anchor",on={lat:y[0],lon:y[1],m:ot},bt=[...ne,on];if(bt.length<2)return[];const pe=[];let Ae=[[parseFloat(bt[0].lat),parseFloat(bt[0].lon)]],kn=bt[0].m||"sail";for(let Hn=1;Hn<bt.length;Hn++){const mn=bt[Hn],Ke=parseFloat(mn.lat),hr=parseFloat(mn.lon),$i=mn.m||"sail";if($i===kn)Ae.push([Ke,hr]);else{Ae.push([Ke,hr]);let Xr="#38bdf8",xa=3,Ni=.85;kn==="engine"?Xr="#f97316":kn==="anchor"&&(Xr="rgba(220, 220, 220, 0.55)",xa=2,Ni=.6),pe.push({positions:Ae,color:Xr,weight:xa,opacity:Ni}),Ae=[[Ke,hr]],kn=$i}}if(Ae.length>=2){let Hn="#38bdf8",mn=3,Ke=.85;kn==="engine"?Hn="#f97316":kn==="anchor"&&(Hn="rgba(220, 220, 220, 0.55)",mn=2,Ke=.6),pe.push({positions:Ae,color:Hn,weight:mn,opacity:Ke})}return pe},[(ce=n==null?void 0:n.environment)==null?void 0:ce.gps_history,(Ve=n==null?void 0:n.anchor)==null?void 0:Ve.engine_on,(ze=n==null?void 0:n.anchor)==null?void 0:ze.status,y]);return O.jsxs("div",{className:"px-2 pt-5 pb-4 landscape:p-2 landscape:pt-4 space-y-2 landscape:space-y-2",children:[f&&O.jsx("div",{className:"fixed inset-0 z-[5000] flex items-center justify-center p-4 bg-black/80 backdrop-blur-md overflow-y-auto",children:O.jsxs("div",{className:"bg-[#1a1a1a] border border-white/10 p-6 landscape:p-5 rounded-[2rem] shadow-2xl max-w-sm w-full space-y-4 landscape:space-y-3 my-auto",children:[O.jsx("div",{className:"bg-red-500/20 w-12 h-12 rounded-full flex items-center justify-center mx-auto shadow-lg text-red-500",children:O.jsx(e4,{size:24})}),O.jsxs("div",{className:"space-y-1 text-center",children:[O.jsx("h2",{className:"text-lg font-black uppercase tracking-tight text-white font-mono leading-none",children:"Sicurezza API"}),O.jsx("p",{className:"text-gray-400 text-[11px] font-bold px-2",children:"Autorizza il certificato per ricevere i dati."})]}),O.jsxs("div",{className:"space-y-2 pt-2",children:[O.jsx("button",{onClick:()=>window.open(`${i}`,"_blank"),className:"w-full bg-red-500 hover:bg-red-600 text-white font-black py-3.5 rounded-2xl transition-all shadow-lg active:scale-95 flex items-center justify-center gap-2 uppercase text-[11px] tracking-widest font-mono",children:"1. Autorizza SSL"}),O.jsx("p",{className:"text-[9px] text-gray-300 font-black uppercase tracking-tighter text-center",children:"Poi chiudi la scheda e torna qui"}),O.jsx("button",{onClick:()=>h(!1),className:"w-full bg-white/5 hover:bg-white/10 text-white font-black py-3 rounded-2xl border border-white/10 active:scale-95 uppercase text-[11px] tracking-widest font-mono",children:"2. Ho fatto"})]})]})}),O.jsxs("div",{className:"grid grid-cols-2 gap-2 landscape:gap-2",children:[O.jsx("div",{onClick:()=>t(1),className:"cursor-pointer active:scale-95 transition-transform",children:O.jsx(AS,{title:"BATTERIA",icon:O.jsx(r4,{className:"text-green-500"}),value:`${((me=(oe=n==null?void 0:n.power)==null?void 0:oe.soc)==null?void 0:me.toFixed(1))||"-"}%`,sub:O.jsxs("span",{className:((ye=n==null?void 0:n.power)==null?void 0:ye.dc_draw_w)>=0?"text-green-400":"text-gray-100",children:[((J=n==null?void 0:n.power)==null?void 0:J.dc_draw_w)>0?`+${Math.round(n.power.dc_draw_w)}`:Math.round(((Le=n==null?void 0:n.power)==null?void 0:Le.dc_draw_w)||0),O.jsx("span",{className:"opacity-40 ml-0.5 font-black uppercase text-[12px]",children:"w"})]})})}),O.jsx("div",{onClick:()=>t(4),className:"cursor-pointer active:scale-95 transition-transform",children:O.jsx(AS,{title:"BANCHINA",icon:O.jsx(y4,{className:(we=n==null?void 0:n.power)!=null&&we.shore_power?"text-green-500":"text-red-500"}),value:(Ue=n==null?void 0:n.power)!=null&&Ue.shore_power?"ON":"OFF",sub:O.jsxs("div",{className:"flex flex-col items-end leading-none",children:[O.jsxs("span",{className:tB((We=n==null?void 0:n.power)==null?void 0:We.ac_power_w,(it=n==null?void 0:n.switches)==null?void 0:it.shore_limit,(Tt=n==null?void 0:n.power)==null?void 0:Tt.shore_v,(hn=n==null?void 0:n.power)==null?void 0:hn.shore_power),children:[Math.round(((On=n==null?void 0:n.power)==null?void 0:On.ac_power_w)||0),O.jsx("span",{className:"opacity-40 ml-0.5 font-black uppercase text-[12px]",children:"w"})]}),((zt=n==null?void 0:n.power)==null?void 0:zt.shore_power)&&((Q=n==null?void 0:n.power)==null?void 0:Q.shore_v)>50&&O.jsxs("span",{className:`${eB((_e=n==null?void 0:n.power)==null?void 0:_e.shore_v)} text-[12px] font-bold mt-1.5`,children:["(",(Ie=(Oe=n==null?void 0:n.power)==null?void 0:Oe.shore_v)==null?void 0:Ie.toFixed(0),"V)"]})]})})})]}),O.jsxs("div",{className:"flex flex-col md:flex-row gap-2 landscape:gap-2 w-full",children:[O.jsxs("div",{className:"w-full md:w-1/2 grid grid-cols-4 md:grid-cols-2 gap-2",children:[O.jsx("div",{onClick:()=>t(2),className:"cursor-pointer active:scale-95 transition-transform h-full",children:O.jsx(Bf,{icon:O.jsx(vM,{size:18}),title:"POZZ.",val:(yt=n==null?void 0:n.environment)==null?void 0:yt.temp_pozzetto,color:"text-yellow-500"})}),O.jsx(Bf,{icon:O.jsx(P4,{size:18}),title:"QUADR.",val:(He=n==null?void 0:n.environment)==null?void 0:He.temp_quadrato,color:"text-orange-500"}),O.jsx(Bf,{icon:O.jsx(OS,{size:18}),title:"FRIGO",val:(pt=n==null?void 0:n.environment)==null?void 0:pt.temp_frigo,color:"text-cyan-400",valueColor:TS((dn=n==null?void 0:n.environment)==null?void 0:dn.temp_frigo)}),O.jsx(Bf,{icon:O.jsx(OS,{size:18}),title:"FREEZER",val:(nn=n==null?void 0:n.environment)==null?void 0:nn.temp_freezer,color:"text-blue-500",valueColor:TS((pn=n==null?void 0:n.environment)==null?void 0:pn.temp_freezer)})]}),O.jsxs("div",{className:`w-full md:w-1/2 bg-white/5 rounded-[2rem] flex flex-col divide-y divide-white/5 border border-white/10 overflow-hidden shadow-xl ${s?"opacity-60 grayscale-[0.5]":"opacity-100"}`,children:[O.jsx(cv,{icon:O.jsx(c4,{className:"text-blue-400"}),name:"Pompa Acqua",isOn:(rn=n==null?void 0:n.switches)==null?void 0:rn.pump_on,onToggle:ne=>r("pump",ne),disabled:s}),O.jsx(cv,{icon:O.jsx(f4,{className:"text-orange-400"}),name:"Boiler",isOn:(Vn=n==null?void 0:n.switches)==null?void 0:Vn.boiler_on,onToggle:ne=>r("boiler",ne),disabled:s}),O.jsx(cv,{icon:O.jsx(w4,{className:"text-purple-400"}),name:"Lavatrice",isOn:(Tn=n==null?void 0:n.switches)==null?void 0:Tn.washing_machine_on,onToggle:ne=>r("washer",ne),disabled:s})]})]}),O.jsxs("div",{className:"space-y-3 pb-24 flex flex-col items-center w-full",children:[!d&&O.jsxs("div",{className:"w-full bg-[#121212]/90 backdrop-blur-xl border border-white/10 p-4 rounded-[2rem] shadow-2xl flex flex-col gap-2.5 text-white",children:[O.jsxs("div",{className:"flex items-center gap-2 w-full",children:[O.jsx(t4,{size:14,className:`${((Un=n==null?void 0:n.anchor)==null?void 0:Un.status)==="LOCKED"?"text-cyan-400":((kr=n==null?void 0:n.anchor)==null?void 0:kr.status)==="DRAGGING"||((An=n==null?void 0:n.anchor)==null?void 0:An.status)==="DRIFTING"?"text-red-500 animate-pulse":((_o=n==null?void 0:n.anchor)==null?void 0:_o.status)==="LEARNING"||((Kr=n==null?void 0:n.anchor)==null?void 0:Kr.status)==="SETTLING"?"text-yellow-400 animate-spin-slow":"text-green-400"}`}),O.jsx("span",{className:"text-[11px] font-black uppercase tracking-widest text-white font-mono leading-none whitespace-nowrap",children:((bo=n==null?void 0:n.anchor)==null?void 0:bo.description)||"In Navigazione"})]}),((wo=n==null?void 0:n.anchor)==null?void 0:wo.lat)&&O.jsx("div",{className:"w-full flex items-center justify-between mt-0.5 border-b border-white/5 pb-2",children:O.jsx("span",{onClick:ne=>{var on,bt,pe,Ae,kn,Mr,$t;if(ne.stopPropagation(),!((on=n==null?void 0:n.anchor)!=null&&on.status))return;const ot=n.anchor.status==="LOCKED"||n.anchor.status==="DRAGGING"||n.anchor.status==="DRIFTING"||n.anchor.status==="LEARNING"?`⛵ ROTEVISTA: [${n.anchor.description||n.anchor.status}] | D: ${((bt=n.anchor.boat_dist)==null?void 0:bt.toFixed(1))||"0.0"}m | ${zf(n.anchor.lat,!0)} ${zf(n.anchor.lon,!1)} | R: ${((pe=n.anchor.radius)==null?void 0:pe.toFixed(0))||"0"}m | Prec: ±${((Ae=n.anchor.std_dev)==null?void 0:Ae.toFixed(1))||"0.0"}m | Fondale: ${((kn=n.anchor.depth)==null?void 0:kn.toFixed(1))||"0.0"}m | Catena: ${((Mr=n.anchor.chain)==null?void 0:Mr.toFixed(0))||"0"}m | Volvo: ${n.anchor.engine_on?"ON":"OFF"} (${(($t=n.anchor.engine_v)==null?void 0:$t.toFixed(1))||"0.0"}V)${n.anchor.score>0?` [Score: ${n.anchor.score}/70]`:""}`:`⛵ ROTEVISTA: ${n.anchor.description||n.anchor.status}`;if(navigator.clipboard&&window.isSecureContext)navigator.clipboard.writeText(ot).then(()=>{b(!0),setTimeout(()=>b(!1),2e3)});else{const Wn=document.createElement("textarea");Wn.value=ot,Wn.style.position="fixed",Wn.style.opacity="0",document.body.appendChild(Wn),Wn.focus(),Wn.select(),document.execCommand("copy"),b(!0),setTimeout(()=>b(!1),2e3),document.body.removeChild(Wn)}},className:`text-[10px] font-mono tracking-tight cursor-pointer transition-colors duration-200 uppercase font-black leading-none ${v?"text-green-400 animate-pulse":"text-gray-400 hover:text-white"}`,children:v?"✓ Copiato in appunti":`📌 Posiz: ${zf(n.anchor.lat,!0)} ${zf(n.anchor.lon,!1)}`})}),((Mi=n==null?void 0:n.anchor)==null?void 0:Mi.status)&&O.jsx("div",{className:`grid ${n.anchor.status==="MOVING"&&(!n.anchor.radius||n.anchor.radius===0)?"grid-cols-2 sm:grid-cols-4":"grid-cols-3"} gap-2 py-2.5 border-t border-b border-white/5 text-center bg-white/[0.01] rounded-2xl`,children:n.anchor.status==="MOVING"&&n.anchor.radius>0?O.jsxs(O.Fragment,{children:[O.jsxs("div",{className:"flex flex-col",children:[O.jsx("span",{className:"text-[7.5px] font-black uppercase text-gray-400 tracking-wider",children:"Distanza"}),O.jsx("span",{className:"text-sm font-black font-mono mt-0.5 text-gray-500",children:"--"})]}),O.jsxs("div",{className:"flex flex-col border-l border-r border-white/5",children:[O.jsx("span",{className:"text-[7.5px] font-black uppercase text-cyan-400 tracking-wider",children:"Raggio Previsto"}),O.jsxs("span",{className:"text-sm font-black font-mono mt-0.5 text-cyan-400",children:[((Dc=n.anchor.radius)==null?void 0:Dc.toFixed(0))||"0",O.jsx("span",{className:"text-[10px] font-bold text-gray-400 ml-0.5",children:"m"})]})]}),O.jsxs("div",{className:"flex flex-col font-mono",children:[O.jsx("span",{className:"text-[7.5px] font-black uppercase text-gray-400 tracking-wider",children:"Spazio in Baia"}),O.jsx("span",{className:`text-sm font-black mt-0.5 ${n.anchor.description&&n.anchor.description.includes("Ristretto")?"text-orange-400 animate-pulse":"text-green-400"}`,children:n.anchor.description&&n.anchor.description.includes("Ristretto")?"OCCUPATO":"LIBERO"})]})]}):n.anchor.status==="MOVING"?O.jsxs(O.Fragment,{children:[O.jsxs("div",{className:"flex flex-col font-mono items-center justify-center",children:[O.jsx("span",{className:"text-[7.5px] font-black uppercase text-cyan-400 tracking-wider",children:"Velocità (SOG)"}),O.jsxs("span",{className:"text-base font-black mt-0.5 text-cyan-400 leading-none",children:[(((Rc=n==null?void 0:n.anchor)==null?void 0:Rc.sog)!==void 0?n.anchor.sog:((zc=n==null?void 0:n.gps)==null?void 0:zc.sog)!==void 0?n.gps.sog:(Bc=n==null?void 0:n.gps)!=null&&Bc.speed?parseFloat(n.gps.speed)*1.94384:0).toFixed(1),O.jsx("span",{className:"text-[10px] font-bold ml-0.5",children:"kn"})]})]}),O.jsxs("div",{className:"flex flex-col font-mono items-center justify-center border-l border-white/5",children:[O.jsx("span",{className:"text-[7.5px] font-black uppercase text-gray-300 tracking-wider",children:"Prua (HDG)"}),O.jsxs("span",{className:"text-base font-black text-white mt-0.5 leading-none",children:[Math.round(((Fc=n==null?void 0:n.environment)==null?void 0:Fc.heading)!==void 0?n.environment.heading:((Vc=n==null?void 0:n.gps)==null?void 0:Vc.cog)||0),"°"]})]})]}):O.jsxs(O.Fragment,{children:[O.jsxs("div",{className:"flex flex-col",children:[O.jsx("span",{className:"text-[7.5px] font-black uppercase text-gray-400 tracking-wider",children:"Distanza"}),O.jsxs("span",{className:`text-sm font-black font-mono mt-0.5 ${n.anchor.status==="LEARNING"||n.anchor.status==="SETTLING"?"text-orange-500":"text-cyan-400"}`,children:[((va=n.anchor.boat_dist)==null?void 0:va.toFixed(1))||"0.0",O.jsx("span",{className:"text-[10px] font-bold text-gray-400 ml-0.5",children:"m"})]})]}),O.jsxs("div",{className:"flex flex-col border-l border-r border-white/5",children:[O.jsx("span",{className:"text-[7.5px] font-black uppercase text-gray-400 tracking-wider",children:"Raggio Guardia"}),O.jsxs("span",{className:`text-sm font-black font-mono mt-0.5 ${n.anchor.status==="LEARNING"||n.anchor.status==="SETTLING"?"text-orange-500":"text-white"}`,children:[((Uc=n.anchor.radius)==null?void 0:Uc.toFixed(0))||"0",O.jsx("span",{className:"text-[10px] font-bold text-gray-400 ml-0.5",children:"m"})]})]}),O.jsxs("div",{className:"flex flex-col font-mono",children:[O.jsx("span",{className:"text-[7.5px] font-black uppercase text-gray-400 tracking-wider",children:(Wc=n==null?void 0:n.trip)!=null&&Wc.anchor_time&&((Hc=n==null?void 0:n.trip)==null?void 0:Hc.anchor_time)!=="0m"?"Tempo Sosta":"Precisione"}),O.jsx("span",{className:`text-sm font-black mt-0.5 ${n.anchor.status==="LEARNING"||n.anchor.status==="SETTLING"?"text-orange-400":"text-cyan-400"}`,children:(Zc=n==null?void 0:n.trip)!=null&&Zc.anchor_time&&((En=n==null?void 0:n.trip)==null?void 0:En.anchor_time)!=="0m"?n.trip.anchor_time:n.anchor.status==="LEARNING"||n.anchor.status==="SETTLING"?"Calcolo...":n.anchor.std_dev>0?`±${n.anchor.std_dev.toFixed(1)}m`:"±0.0m"})]})]})}),O.jsxs("div",{className:"flex justify-between items-start w-full font-mono border-t border-white/5 pt-2 mt-0.5",children:[O.jsxs("div",{className:"flex items-start gap-4 flex-shrink-0",children:[O.jsxs("div",{className:"flex flex-col items-start leading-none",children:[O.jsx("span",{className:"text-[7.5px] font-black uppercase text-gray-400 tracking-wider",children:"Fondo"}),O.jsx("span",{className:"text-xs font-black text-white mt-1",children:((de=n==null?void 0:n.anchor)==null?void 0:de.depth)>0?`${n.anchor.depth.toFixed(1)}m`:"--"})]}),(((al=n==null?void 0:n.anchor)==null?void 0:al.chain)>0&&((sl=n==null?void 0:n.anchor)==null?void 0:sl.status)!=="MOVING"||((ll=n==null?void 0:n.anchor)==null?void 0:ll.status)==="MOVING"&&((ul=n==null?void 0:n.anchor)==null?void 0:ul.radius)>0&&((ga=n==null?void 0:n.anchor)==null?void 0:ga.chain)>0)&&O.jsxs("div",{className:"flex flex-col items-start leading-none border-l border-white/5 pl-3",children:[O.jsx("span",{className:"text-[7.5px] font-black uppercase text-gray-400 tracking-wider",children:((cl=n==null?void 0:n.anchor)==null?void 0:cl.status)==="MOVING"?"Suggerita":"Catena"}),O.jsxs("span",{className:"text-xs font-black text-white mt-1",children:[n.anchor.chain.toFixed(0),"m"]})]})]}),O.jsxs("div",{className:"flex flex-col items-end leading-none text-right pl-2 truncate flex-1",children:[O.jsx("span",{className:"text-[7.5px] font-black uppercase text-gray-400 tracking-wider",children:(qr=n==null?void 0:n.anchor)!=null&&qr.engine_on?"Motore":((fl=n==null?void 0:n.anchor)==null?void 0:fl.status)==="LEARNING"&&((Gc=n==null?void 0:n.anchor)!=null&&Gc.low_conf_reason)?"Nota":"Stato"}),O.jsx("div",{className:"mt-1",children:(Kc=n==null?void 0:n.anchor)!=null&&Kc.engine_on?O.jsxs("span",{className:"text-yellow-400 font-black text-xs whitespace-nowrap animate-pulse flex items-center gap-1",children:["⚡ Volvo: ",(qc=n.anchor.engine_v)==null?void 0:qc.toFixed(1),"V ",n.anchor.status!=="MOVING"&&n.anchor.score>0?`[${n.anchor.score}/70]`:""]}):((Xc=n==null?void 0:n.anchor)==null?void 0:Xc.status)==="LEARNING"&&((hl=n==null?void 0:n.anchor)!=null&&hl.low_conf_reason)?O.jsx("span",{className:"text-orange-400 font-bold text-[9.5px] tracking-tight whitespace-nowrap",children:n.anchor.low_conf_reason}):((Yc=n==null?void 0:n.anchor)==null?void 0:Yc.status)!=="MOVING"&&((So=n==null?void 0:n.anchor)==null?void 0:So.std_dev)>0?O.jsxs("span",{className:"text-gray-300 font-medium text-xs whitespace-nowrap",children:["Prec: ",O.jsxs("span",{className:"text-cyan-400 font-bold",children:["±",n.anchor.std_dev.toFixed(1),"m"]})]}):O.jsx("span",{className:"text-green-400 font-black text-xs uppercase whitespace-nowrap",children:"Ottima"})})]})]})]}),O.jsx("div",{className:`${d?"map-full-screen":"h-64 landscape:h-80 w-[88%] rounded-[2.5rem]"} overflow-hidden border border-white/10 shadow-2xl relative isolate transition-opacity duration-200`,children:O.jsxs(OM,{center:y,zoom:M,maxZoom:22,style:{height:"100%",width:"100%"},zoomControl:!1,attributionControl:!1,children:[O.jsx(Jg,{url:"https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}",maxZoom:22,maxNativeZoom:18,errorTileUrl:""}),O.jsx(nB,{coords:y,anchorCoords:(Qc=n==null?void 0:n.anchor)!=null&&Qc.lat&&((Jc=n==null?void 0:n.anchor)!=null&&Jc.lon)?[parseFloat(n.anchor.lat),parseFloat(n.anchor.lon)]:null,isAnchored:A,trailSegments:G,autoFollow:l,setAutoFollow:u,isMapFull:d,setIsMapFull:m,smartZoom:M,onZoomChange:$}),((ef=n==null?void 0:n.anchor)==null?void 0:ef.lat)&&((tf=n==null?void 0:n.anchor)==null?void 0:tf.lon)&&n.anchor.radius>0&&n.anchor.status==="MOVING"&&O.jsx(oi,{center:[n.anchor.lat,n.anchor.lon],radius:n.anchor.radius,pathOptions:{color:n.anchor.description&&n.anchor.description.includes("Ristretto")?"#f97316":"#22d3ee",fillColor:"#22d3ee",fillOpacity:.04,weight:1.5,dashArray:"4, 8",interactive:!1}}),((nf=n==null?void 0:n.anchor)==null?void 0:nf.lat)&&((ya=n==null?void 0:n.anchor)==null?void 0:ya.lon)&&n.anchor.radius>0&&(n.anchor.status==="LEARNING"||n.anchor.status==="SETTLING")&&O.jsx(oi,{center:[n.anchor.lat,n.anchor.lon],radius:n.anchor.radius,pathOptions:{color:"#f97316",fillOpacity:0,weight:1.5,dashArray:"6, 10",interactive:!1}}),((Ci=n==null?void 0:n.anchor)==null?void 0:Ci.lat)&&((dl=n==null?void 0:n.anchor)==null?void 0:dl.lon)&&n.anchor.radius>0&&(n.anchor.status==="LOCKED"||n.anchor.status==="DRAGGING"||n.anchor.status==="DRIFTING")&&O.jsx(oi,{center:[n.anchor.lat,n.anchor.lon],radius:n.anchor.radius+Math.max(15,n.anchor.radius*.3),pathOptions:{color:n.anchor.status==="DRAGGING"||n.anchor.status==="DRIFTING"?"#ef4444":"#22d3ee",fillOpacity:0,weight:1.5,dashArray:"8, 12",interactive:!1}}),G4(C).map(ne=>{const lt=H4(B,ne.r);return O.jsxs(I.Fragment,{children:[O.jsx(oi,{center:[B.lat,B.lon],radius:ne.r,pathOptions:{color:"#ffffff",weight:1,opacity:.55,fillOpacity:0,dashArray:"4, 12",interactive:!1}}),O.jsx(Jn,{position:lt,icon:new Sn.DivIcon({html:`<div style="font-size: 8px; font-weight: 900; color: rgba(255, 255, 255, 0.90); font-family: monospace; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; white-space: nowrap; text-align: right; width: 100%;">${ne.label}</div>`,className:"range-label-marker",iconSize:[50,10],iconAnchor:[53,5]}),interactive:!1})]},`ring-${ne.r}`)}),R.map(ne=>{var pe;const lt=ne.isMoving!==void 0?ne.isMoving:!ne.isAnchored&&ne.sog>=.3,ot=X4(ne),on=ne.risk==="RED"||ne.risk==="ORANGE",bt=ne.isTactical!==!1&&(ne.isTactical||on||C>=15);return O.jsxs(I.Fragment,{children:[bt&&ne.trail&&ne.trail.length>=2&&O.jsx(Bo,{positions:ne.trail.map(Ae=>[Ae.lat,Ae.lon]),color:"#ffffff",weight:1.5,opacity:.4,dashArray:"2, 6",interactive:!1}),lt?O.jsxs(I.Fragment,{children:[bt&&O.jsx(Bo,{positions:[[ne.lat,ne.lon],K4(ne.lat,ne.lon,ne.cog,ne.sog)],pathOptions:{color:ot,weight:2.5,opacity:.8,dashArray:"6, 6"},interactive:!1}),O.jsx(Jn,{position:[ne.lat,ne.lon],icon:Y4(ne.cog,ot,C),interactive:!1}),bt&&O.jsx(Jn,{position:[ne.lat,ne.lon],icon:J4(ne.name,ne.sog,ne.cpa,ne.tcpa,ne.crossDir,ne.risk,ne.riskMsg,ne.age,ot,ne.type,C),interactive:!1})]}):O.jsxs(I.Fragment,{children:[O.jsx(Jn,{position:[ne.lat,ne.lon],icon:q4(ne.risk),interactive:!1}),bt&&O.jsx(Jn,{position:[ne.lat,ne.lon],icon:Q4(ne.name,ne.risk,ne.riskMsg,ne.dist,ne.age,ne.type,C),interactive:!1}),ne.risk==="RED"&&ne.riskMsg==="SOPRA SUA ANCORA!"&&ne.anchorLat&&ne.anchorLon&&O.jsxs(I.Fragment,{children:[O.jsx(oi,{center:[ne.anchorLat,ne.anchorLon],radius:((pe=n==null?void 0:n.anchor)==null?void 0:pe.radius)||15,pathOptions:{color:"#ef4444",weight:1,opacity:.5,fillColor:"#ef4444",fillOpacity:.05,dashArray:"6, 12",interactive:!1}}),O.jsx(Jn,{position:[ne.anchorLat,ne.anchorLon],icon:W4,zIndexOffset:400,interactive:!1})]})]})]},ne.id)}),((pl=n==null?void 0:n.anchor)==null?void 0:pl.lat)&&((ji=n==null?void 0:n.anchor)==null?void 0:ji.lon)&&n.anchor.status!=="MOVING"&&O.jsx(Jn,{position:[n.anchor.lat,n.anchor.lon],icon:U4(z),zIndexOffset:500}),O.jsx(Jn,{position:y,icon:V4,zIndexOffset:1e3})]})}),!d&&((Ce=n==null?void 0:n.trip)==null?void 0:Ce.total_nav_time)&&n.trip.total_nav_time!=="0m"&&(()=>{var pe,Ae;const ne=parseFloat((pe=n==null?void 0:n.trip)==null?void 0:pe.engine_nm)||0,lt=parseFloat((Ae=n==null?void 0:n.trip)==null?void 0:Ae.sail_nm)||0,ot=ne+lt,on=ot>0?Math.round(ne/ot*100):0,bt=ot>0?Math.round(lt/ot*100):0;return O.jsxs("div",{className:"w-full bg-[#121212]/90 backdrop-blur-xl border border-white/10 p-4 rounded-[2rem] shadow-2xl flex flex-col gap-2 font-mono text-white",children:[O.jsx("span",{className:"text-[9px] font-black text-gray-400 uppercase tracking-widest border-b border-white/5 pb-1.5",children:"Statistiche Ultima Navigazione"}),O.jsxs("div",{className:"grid grid-cols-[75px_55px_1fr_45px] items-center text-[10px] leading-none",children:[O.jsxs("span",{className:"flex items-center gap-1 text-cyan-400 font-bold",children:[O.jsx("span",{className:"text-xs",children:"⛵"})," Vela"]}),O.jsx("span",{className:"text-white font-medium",children:n.trip.sail_time||"0m"}),O.jsx("span",{className:"text-cyan-400 font-bold text-right text-[10px]",children:n.trip.sail_nm||"0.00 NM"}),O.jsxs("span",{className:"text-gray-500 font-normal text-right text-[9px]",children:["(",bt,"%)"]})]}),O.jsxs("div",{className:"grid grid-cols-[75px_55px_1fr_45px] items-center text-[10px] leading-none",children:[O.jsxs("span",{className:"flex items-center gap-1 text-yellow-400 font-bold",children:[O.jsx("span",{className:"text-xs",children:"🚤"})," Motore"]}),O.jsx("span",{className:"text-white font-medium",children:n.trip.engine_time||"0m"}),O.jsx("span",{className:"text-yellow-400 font-bold text-right text-[10px]",children:n.trip.engine_nm||"0.00 NM"}),O.jsxs("span",{className:"text-gray-500 font-normal text-right text-[9px]",children:["(",on,"%)"]})]}),O.jsxs("div",{className:"grid grid-cols-[75px_55px_1fr_45px] items-center text-[10px] border-t border-white/5 pt-2 leading-none",children:[O.jsxs("span",{className:"flex items-center gap-1 text-gray-400 font-bold",children:[O.jsx("span",{className:"text-xs",children:"⏱️"})," Totale"]}),O.jsx("span",{className:"text-gray-200 font-medium",children:n.trip.total_nav_time||"0m"}),O.jsx("span",{className:"text-white font-black text-right text-[11px]",children:n.trip.total_nm||"0.00 NM"}),O.jsx("span",{className:"text-right"})]})]})})()]})]})},AS=({icon:e,title:t,value:n,sub:r})=>O.jsxs("div",{className:"bg-white/5 p-5 rounded-[2rem] border border-white/10 flex flex-row items-center justify-between shadow-lg text-white group hover:bg-white/10 transition-colors h-full",children:[O.jsxs("div",{className:"flex flex-col",children:[O.jsxs("div",{className:"flex items-center gap-1 text-gray-300 text-[9px] font-black tracking-widest uppercase whitespace-nowrap",children:[e," ",t]}),O.jsx("div",{className:"text-3xl font-black mt-1 tracking-tighter",children:n})]}),O.jsx("div",{className:"text-[18px] text-gray-200 font-black uppercase tracking-tight text-right pl-2 leading-tight",children:r})]}),Bf=({icon:e,title:t,val:n,color:r,valueColor:i="text-white"})=>O.jsxs("div",{className:"bg-white/5 py-4 landscape:py-3 rounded-3xl border border-white/5 flex flex-col items-center gap-1 text-center shadow-md hover:bg-white/10 transition-colors h-full justify-center text-white",children:[O.jsx("div",{className:r,children:e}),O.jsx("div",{className:"text-[8px] font-black text-gray-300 uppercase tracking-tighter mt-1",children:t}),O.jsxs("div",{className:`text-lg font-black ${i}`,children:[(n==null?void 0:n.toFixed(1))||"-","°"]})]}),cv=({icon:e,name:t,isOn:n,onToggle:r,disabled:i})=>O.jsxs("div",{className:`flex flex-1 items-center justify-between p-5 landscape:p-4 bg-white/[0.02] text-white transition-all ${i?"pointer-events-none opacity-40":"hover:bg-white/5"}`,children:[O.jsxs("div",{className:"flex items-center gap-3",children:[I.cloneElement(e,{size:20,className:n?e.props.className:"text-gray-700 opacity-50"}),O.jsx("span",{className:"text-sm font-bold text-white tracking-tight uppercase",children:t})]}),O.jsxs("label",{className:"relative inline-flex items-center cursor-pointer",children:[O.jsx("input",{type:"checkbox",className:"sr-only peer",checked:n||!1,onChange:o=>r(o.target.checked),disabled:i}),O.jsx("div",{className:"w-11 h-6 bg-gray-800 rounded-full peer peer-checked:bg-cyan-500 after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:after:translate-x-full shadow-inner"})]})]}),iB=(e,t="#38bdf8")=>new Sn.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]}),oB=(e,t,n=14)=>{const i=fu(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 Sn.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 Sn.DivIcon({html:`
|
|
294
|
+
<div style="width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer;">
|
|
295
|
+
<div style="width: ${o}px; height: ${o}px; background-color: ${i}; border-radius: 50%; ${u}"></div>
|
|
296
|
+
</div>
|
|
297
|
+
`,className:"ais-target-stationary",iconSize:[32,32],iconAnchor:[16,16]})},ES=(e,t,n,r,i=15)=>{const o=Math.PI/180,s=r*1852*(i/60),l=e+s*Math.cos(n*o)/111139,u=t+s*Math.sin(n*o)/(111139*Math.cos(e*o));return[l,u]},fu=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"}},aB=e=>e>=7.5?12:e>=3.5?14:e>=1.5?15:17,Ff=e=>{if(e==null||isNaN(e))return"--";const t=Math.round(e),n=e/1852;return t<500?`${t} m`:t<1852?`${t} m (${n.toFixed(1)} NM)`:`${n.toFixed(1)} NM (${(t/1e3).toFixed(1)} km)`},kS=e=>{if(e==null||isNaN(e))return"--";const t=Math.round(e);return t<1852?`${t}m`:`${(e/1852).toFixed(1)} NM`},MS=(e,t)=>{if(e==null||isNaN(e))return"";const n=t?e>=0?"N":"S":e>=0?"E":"W",r=Math.abs(e),i=Math.floor(r),o=((r-i)*60).toFixed(4);return`${i}° ${o}'${n}`},sB=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"}],lB=(e,t)=>{const n=Math.PI/180,r=-t/(111139*Math.cos(e.lat*n));return[e.lat,e.lon+r]},uB=e=>{const t=e.risk==="RED",n=t?"#ef4444":"#f97316",r=fu(e.type),o=(e.isMoving!==void 0?e.isMoving:!e.isAnchored&&e.sog>=.3)?`${e.sog} kn • ${e.cog}°`:`ALL'ANCORA (${e.dist}m)`;let s="";if(t){const u=e.riskMsg||"COLLISIONE!",f=e.tcpa!==null&&e.tcpa!==void 0&&e.tcpa>=0?` in ${Math.round(e.tcpa)}m`:"",h=e.cpa!==null&&e.cpa!==void 0?` • CPA: ${e.cpa}m`:"";s=`🚨 ${u}${h}${f}`}else{const u=e.tcpa!==null&&e.tcpa!==void 0&&e.tcpa>=0?` in ${Math.round(e.tcpa)}m`:"";s=`⚠️ ${e.cpa!==null&&e.cpa!==void 0?`CPA: ${e.cpa}m`:`Dist: ${e.dist}m`}${u}`}const l="-1.5px -1.5px 0 #000, 1.5px -1.5px 0 #000, -1.5px 1.5px 0 #000, 1.5px 1.5px 0 #000, 0 0 5px #000";return new Sn.DivIcon({html:`
|
|
298
|
+
<div style="display: flex; flex-direction: row; align-items: flex-start; gap: 4px; white-space: nowrap; font-family: monospace; line-height: 1.15; pointer-events: none;">
|
|
299
|
+
<span style="font-size: 16px; line-height: 1; filter: drop-shadow(0 0 3px black);">${r.emoji}</span>
|
|
300
|
+
<div style="display: flex; flex-direction: column; align-items: flex-start;">
|
|
301
|
+
<span style="font-size: 12px; font-weight: 900; color: ${n}; text-shadow: ${l}; text-transform: uppercase;">${e.name||"Sconosciuto"}</span>
|
|
302
|
+
<span style="font-size: 9px; font-weight: 800; color: #ffffff; text-shadow: ${l}; margin-top: 1px;">${o}</span>
|
|
303
|
+
<span style="font-size: 10px; font-weight: 900; color: ${n}; text-shadow: ${l}; margin-top: 1.5px;">${s}</span>
|
|
304
|
+
</div>
|
|
305
|
+
</div>
|
|
306
|
+
`,className:"ais-threat-floating-label",iconSize:[280,48],iconAnchor:[-12,24]})},cB=({centerCoords:e,hasValidGps:t,autoCenter:n,setAutoCenter:r,smartZoom:i,flyTarget:o,isTargetSelected:s,cameraSnapshotRef:l,restoreSignal:u,onZoomChange:f,onBoundsChange:h})=>{const d=r_(),m=j.useRef(!1),v=j.useRef(!0),b=j.useCallback(()=>{f&&f(d.getZoom()),h&&h(d.getBounds().pad(.15))},[d,f,h]);PM({dragstart:()=>{d.stop(),r(!1)},zoomstart:()=>{m.current=!0,r(!1)},zoomend:b,moveend:b}),j.useEffect(()=>{b()},[b]);const x=j.useRef(null);j.useEffect(()=>{if(!n||e[0]===0||s)return;if(v.current&&t){d.setView(e,i,{animate:!1}),x.current=e,v.current=!1,b();return}const y=d.getZoom();if(!m.current&&y!==i){d.flyTo(e,i,{duration:.8}),x.current=e;return}x.current||(x.current=e);const _=(e[0]-x.current[0])*111139,w=(e[1]-x.current[1])*111139*Math.cos(e[0]*Math.PI/180),E=Math.sqrt(_*_+w*w),P=y>=16?25:y>=14?45:100;E>=P&&(d.panTo(e,{animate:!0,duration:.8,easeLinearity:.25}),x.current=e)},[n,e,t,i,s,d,b]),j.useEffect(()=>{if(o&&o.lat&&o.lon){const y=Math.max(d.getZoom(),15),w=window.innerHeight>window.innerWidth?50:20,E=d.project([o.lat,o.lon],y),P=Sn.point(E.x,E.y-w),A=d.unproject(P,y);d.flyTo(A,y,{duration:.8})}},[o,d]),j.useEffect(()=>{if(u&&l.current){const y=l.current;d.flyTo(y.center,y.zoom,{duration:.7}),r(y.autoCenter),l.current=null}},[u,l,d,r]);const S=y=>{m.current=!0;const _=d.getZoom(),w=y==="in"?_+1:_-1;d.setZoom(w),f&&f(w)};return O.jsxs("div",{className:"absolute right-3 bottom-48 landscape:right-auto landscape:left-3 landscape:bottom-auto landscape:top-1/2 landscape:-translate-y-1/2 flex flex-col gap-2.5 z-[1000]",children:[O.jsx("button",{onClick:()=>S("in"),className:"w-11 h-11 landscape:w-10 landscape:h-10 rounded-2xl bg-[#161b22]/90 backdrop-blur-xl border border-white/20 flex items-center justify-center text-white active:scale-95 shadow-2xl",children:O.jsx(pM,{size:20})}),O.jsx("button",{onClick:()=>S("out"),className:"w-11 h-11 landscape:w-10 landscape:h-10 rounded-2xl bg-[#161b22]/90 backdrop-blur-xl border border-white/20 flex items-center justify-center text-white active:scale-95 shadow-2xl",children:O.jsx(hM,{size:20})}),O.jsx("button",{onClick:()=>{n?(m.current=!1,d.flyTo(e,i,{duration:.6})):(r(!0),d.flyTo(e,d.getZoom(),{duration:.5}))},className:`w-11 h-11 landscape:w-10 landscape:h-10 rounded-2xl border transition-all flex items-center justify-center shadow-2xl active:scale-95 ${n?"bg-cyan-500/40 border-cyan-400 text-white shadow-[0_0_15px_rgba(6,182,212,0.4)]":"bg-[#161b22]/90 border-white/20 text-gray-400"}`,title:n?"Tocca per attivare Smart Zoom dinamico":"Tocca per centrare sulla barca",children:O.jsx(mM,{size:20})})]})},fB=()=>{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]},hB=({manager:e,isNightMode:t=!1,initialMmsi:n=null})=>{var fe,he,ce,Ve,ze,oe,me,ye,J,Le,we,Ue,We,it,Tt,hn,On,zt;const{data:r}=e,[i,o]=j.useState(!0),[s,l]=j.useState(null),[u,f]=j.useState(!1),[h,d]=j.useState(14),[m,v]=j.useState(null),[b,x]=j.useState(!1);j.useEffect(()=>{var Q,_e;(Q=r==null?void 0:r.gps)!=null&&Q.lat&&((_e=r==null?void 0:r.gps)!=null&&_e.lon)&&localStorage.setItem("rotevista_last_known_gps",JSON.stringify({lat:r.gps.lat,lon:r.gps.lon}))},[(fe=r==null?void 0:r.gps)==null?void 0:fe.lat,(he=r==null?void 0:r.gps)==null?void 0:he.lon]);const S=Q=>{if(Q)if(navigator.clipboard&&window.isSecureContext)navigator.clipboard.writeText(Q).then(()=>{x(!0),setTimeout(()=>x(!1),2e3)});else{const _e=document.createElement("textarea");_e.value=Q,_e.style.position="fixed",_e.style.opacity="0",document.body.appendChild(_e),_e.focus(),_e.select(),document.execCommand("copy"),x(!0),setTimeout(()=>x(!1),2e3),document.body.removeChild(_e)}},y=j.useRef(null),_=j.useRef(!1),[w,E]=j.useState(0),[P,A]=j.useState(null),M=!!((ce=r==null?void 0:r.gps)!=null&&ce.lat&&((Ve=r==null?void 0:r.gps)!=null&&Ve.lon)),C=j.useMemo(()=>fB(),[]),$=parseFloat((ze=r==null?void 0:r.gps)==null?void 0:ze.lat)||C[0],B=parseFloat((oe=r==null?void 0:r.gps)==null?void 0:oe.lon)||C[1],z=j.useMemo(()=>[$,B],[$,B]),R=((me=r==null?void 0:r.environment)==null?void 0:me.heading)||((ye=r==null?void 0:r.gps)==null?void 0:ye.cog)||0,G=((J=r==null?void 0:r.anchor)==null?void 0:J.sog)!==void 0?r.anchor.sog:((Le=r==null?void 0:r.gps)==null?void 0:Le.sog)||0,W=j.useMemo(()=>aB(G),[G]),H=j.useMemo(()=>({id:"self",name:"ROTEVISTA",isOwnShip:!0,lat:z[0],lon:z[1],sog:G,cog:R}),[z,G,R]),Z=j.useMemo(()=>s&&!s.isOwnShip&&s.lat&&s.lon?{lat:s.lat,lon:s.lon}:{lat:z[0],lon:z[1]},[s,z]),K=j.useMemo(()=>{var dn,nn,pn;const Q=((dn=r==null?void 0:r.environment)==null?void 0:dn.gps_history)||[],Oe=((nn=r==null?void 0:r.anchor)==null?void 0:nn.engine_on)||!1?"engine":"sail",Ie=Q.filter(rn=>rn.m!=="anchor");if(((pn=r==null?void 0:r.anchor)==null?void 0:pn.status)==="MOVING"&&Ie.push({lat:z[0],lon:z[1],m:Oe}),Ie.length<2)return[];const yt=[];let He=[[parseFloat(Ie[0].lat),parseFloat(Ie[0].lon)]],pt=Ie[0].m||"sail";for(let rn=1;rn<Ie.length;rn++){const Vn=Ie[rn],Tn=parseFloat(Vn.lat),Un=parseFloat(Vn.lon),kr=Vn.m||"sail";if(kr===pt)He.push([Tn,Un]);else{He.push([Tn,Un]);const An=pt==="engine"?"#f97316":t?"#38bdf8":"#0284c7";yt.push({positions:He,color:An,weight:2.2,opacity:.85}),He=[[Tn,Un]],pt=kr}}if(He.length>=2){const rn=pt==="engine"?"#f97316":t?"#38bdf8":"#0284c7";yt.push({positions:He,color:rn,weight:2.2,opacity:.85})}return yt},[(we=r==null?void 0:r.environment)==null?void 0:we.gps_history,(Ue=r==null?void 0:r.anchor)==null?void 0:Ue.engine_on,(We=r==null?void 0:r.anchor)==null?void 0:We.status,z,t]),D=Q=>{y.current||(y.current={center:z,zoom:14,autoCenter:i}),l(Q),A(Q),o(!1)},q=Q=>{l(Q),A(null)},V=()=>{l(null),A(null),y.current&&E(Q=>Q+1)},te=()=>{l(null),A(null),f(!1),y.current&&E(Q=>Q+1)},Y=j.useMemo(()=>{var _e;return[...((_e=r==null?void 0:r.environment)==null?void 0:_e.ais_targets)||[]].sort((Oe,Ie)=>{const yt={RED:3,ORANGE:2,GREY:1},He=yt[Oe.risk]||1,pt=yt[Ie.risk]||1;if(He!==pt)return pt-He;const dn=Oe.cpa!==null&&Oe.cpa!==void 0&&Oe.cpa>=0?Oe.cpa:Oe.dist,nn=Ie.cpa!==null&&Ie.cpa!==void 0&&Ie.cpa>=0?Ie.cpa:Ie.dist;return dn-nn})},[(it=r==null?void 0:r.environment)==null?void 0:it.ais_targets]),ae=j.useMemo(()=>m?Y.filter(Q=>Q.risk==="RED"||(s==null?void 0:s.id)===Q.id?!0:m.contains([Q.lat,Q.lon])):Y,[Y,m,s]);return j.useEffect(()=>{if(!n||_.current||Y.length===0)return;const Q=Y.find(_e=>String(_e.id||"").split(":").pop()===String(n).trim()||String(_e.id).includes(String(n).trim()));if(Q){_.current=!0,o(!1),l(Q),A(Q);const _e=new URL(window.location.href);_e.searchParams.delete("mmsi"),window.history.replaceState({},"",_e.toString())}},[n,Y]),O.jsxs("div",{className:"relative w-full h-full overflow-hidden bg-[#0d1117] text-white",children:[O.jsx("div",{className:"absolute inset-0 z-0",children:O.jsxs(OM,{center:z,zoom:14,maxZoom:20,preferCanvas:!0,style:{height:"100%",width:"100%"},zoomControl:!1,attributionControl:!1,children:[O.jsx(Jg,{url:t?"https://server.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Dark_Gray_Base/MapServer/tile/{z}/{y}/{x}":"https://server.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Base/MapServer/tile/{z}/{y}/{x}",maxZoom:20,maxNativeZoom:16},t?"esri-dark":"esri-light"),O.jsx(Jg,{url:"https://tiles.openseamap.org/seamark/{z}/{x}/{y}.png",maxZoom:18,opacity:t?.85:.75}),K.map((Q,_e)=>O.jsx(Bo,{positions:Q.positions,color:Q.color,weight:Q.weight,opacity:Q.opacity,lineCap:"round",lineJoin:"round",interactive:!1},`own-nav-trail-${_e}`)),O.jsx(cB,{centerCoords:z,hasValidGps:M,autoCenter:i,setAutoCenter:o,smartZoom:W,flyTarget:P,isTargetSelected:!!s,cameraSnapshotRef:y,restoreSignal:w,onZoomChange:d,onBoundsChange:v}),sB(h).map(Q=>{const _e=lB(Z,Q.r),Oe=!!s,Ie=Oe?"#06b6d4":t?"#38bdf8":"#0369a1",yt=Oe?"#0891b2":t?"#ffffff":"#0f172a",He=t?"-1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000":"-1px -1px 0 rgba(255,255,255,0.9), 1px -1px 0 rgba(255,255,255,0.9), -1px 1px 0 rgba(255,255,255,0.9), 1px 1px 0 rgba(255,255,255,0.9)";return O.jsxs(I.Fragment,{children:[O.jsx(oi,{center:[Z.lat,Z.lon],radius:Q.r,pathOptions:{color:Ie,weight:Oe?1.8:1.4,opacity:t?.65:.8,fillOpacity:0,dashArray:Oe?"6, 6":"5, 8",interactive:!1}}),O.jsx(Jn,{position:_e,icon:new Sn.DivIcon({html:`<div style="font-size: 9px; font-weight: 900; color: ${yt}; font-family: monospace; text-shadow: ${He}; white-space: nowrap; text-align: right; width: 100%;">${Q.label}</div>`,className:"range-label-marker",iconSize:[50,10],iconAnchor:[53,5]}),interactive:!1})]},`ais-ring-${Q.r}`)}),ae.map(Q=>{const _e=Q.isMoving!==void 0?Q.isMoving:!Q.isAnchored&&Q.sog>=.3,Oe=(s==null?void 0:s.id)===Q.id,yt=fu(Q.type).color,He=Q.risk==="RED",pt=Q.risk==="ORANGE",dn=Q.trail&&Q.trail.length>=2&&(He||pt||Oe||Q.dist<=3704),nn=_e&&(He||pt||Oe||Q.dist<=5556);return O.jsxs(I.Fragment,{children:[dn&&O.jsx(Bo,{positions:Q.trail.map(pn=>[pn.lat,pn.lon]),color:yt,weight:Oe?2:1.2,opacity:.5,dashArray:"3, 5",interactive:!1}),nn&&O.jsx(Bo,{positions:[[Q.lat,Q.lon],ES(Q.lat,Q.lon,Q.cog,Q.sog,15)],color:yt,weight:Oe?3:2,opacity:.85,dashArray:"6, 6",interactive:!1}),He&&O.jsx(oi,{center:[Q.lat,Q.lon],radius:Math.max(100,(Q.sog||1)*45),pathOptions:{color:"#ef4444",weight:2.5,fillColor:"#ef4444",fillOpacity:.15,dashArray:"5, 5",interactive:!1}}),!He&&pt&&O.jsx(oi,{center:[Q.lat,Q.lon],radius:Math.max(70,(Q.sog||1)*35),pathOptions:{color:"#f97316",weight:2,fillColor:"#f97316",fillOpacity:.1,dashArray:"6, 6",interactive:!1}}),Oe&&O.jsx(oi,{center:[Q.lat,Q.lon],radius:Math.max(80,(Q.sog||1)*35),pathOptions:{color:"#22d3ee",weight:2.2,fillColor:"#22d3ee",fillOpacity:.18,dashArray:"3, 5",interactive:!1}}),O.jsx(Jn,{position:[Q.lat,Q.lon],icon:oB(Q,Oe,h),zIndexOffset:He?700:pt?500:Oe?600:100,eventHandlers:{click:()=>q(Q)}}),(He||pt)&&O.jsx(Jn,{position:[Q.lat,Q.lon],icon:uB(Q),zIndexOffset:He?800:650,interactive:!1})]},Q.id)}),G>=.5&&((Tt=r==null?void 0:r.anchor)==null?void 0:Tt.status)==="MOVING"&&(()=>{var Oe;const Q=(Oe=r==null?void 0:r.anchor)!=null&&Oe.engine_on?"#f97316":t?"#38bdf8":"#0284c7",_e=ES(z[0],z[1],R,G,15);return O.jsx(Bo,{positions:[z,_e],color:Q,weight:2.2,opacity:.9,dashArray:"12, 8, 3, 8",lineCap:"round",lineJoin:"round",interactive:!1})})(),O.jsx(Jn,{position:z,icon:iB(R,(hn=r==null?void 0:r.anchor)!=null&&hn.engine_on?"#f97316":t?"#38bdf8":"#0284c7"),zIndexOffset:1e3,eventHandlers:{click:()=>q(H)}})]})}),!u&&!s&&O.jsx("div",{className:"absolute top-3 right-3 z-[1001]",children:O.jsxs("button",{onClick:()=>f(!0),className:"flex items-center gap-2 bg-[#161b22]/90 backdrop-blur-xl border border-white/20 px-3.5 py-2 rounded-2xl shadow-xl active:scale-95 transition-all text-white",children:[O.jsx(PS,{size:15,className:"text-cyan-400"}),O.jsx("span",{className:"text-xs font-black font-mono tracking-wider",children:Y.length}),Y.some(Q=>Q.risk==="RED")&&O.jsx("span",{className:"bg-red-500 text-white text-[9px] font-black px-1.5 py-0.5 rounded-md animate-pulse",children:"🚨"}),O.jsx(fM,{size:16,className:"text-gray-400"})]})}),(u||s)&&O.jsx("div",{onPointerDownCapture:Q=>Q.stopPropagation(),onTouchStartCapture:Q=>Q.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:s?(()=>{var Oe,Ie,yt,He,pt,dn,nn,pn,rn,Vn,Tn,Un,kr;if(s.isOwnShip){const An=parseFloat((Oe=r==null?void 0:r.trip)==null?void 0:Oe.engine_nm)||0,_o=parseFloat((Ie=r==null?void 0:r.trip)==null?void 0:Ie.sail_nm)||0,Kr=An+_o,bo=Kr>0?Math.round(An/Kr*100):0,wo=Kr>0?Math.round(_o/Kr*100):0,Mi=((yt=r==null?void 0:r.anchor)==null?void 0:yt.depth)||((He=r==null?void 0:r.environment)==null?void 0:He.depth)||0;return O.jsxs("div",{className:"flex flex-col p-3 font-mono gap-2 overflow-y-auto",children:[O.jsxs("div",{className:"flex items-center justify-between border-b border-white/10 pb-2",children:[O.jsxs("button",{onClick:V,className:"flex items-center gap-1 text-[11px] font-black text-cyan-400 hover:text-cyan-300 active:scale-95 transition-transform shrink-0",children:[O.jsx("span",{children:"←"})," LISTA"]}),O.jsxs("div",{className:"text-center truncate px-2",children:[O.jsx("h4",{className:"text-sm font-black uppercase text-cyan-400 truncate tracking-tight",children:"⛵ ROTEVISTA"}),O.jsxs("span",{className:"text-[8.5px] text-gray-400 uppercase block tracking-tight mt-0.5",children:[MS(z[0],!0)," ",MS(z[1],!1)]})]}),O.jsx("button",{onClick:te,className:"text-gray-400 hover:text-white p-1 shrink-0",children:O.jsx(uv,{size:16})})]}),O.jsxs("div",{className:"grid grid-cols-4 gap-1 text-[10px] shrink-0 text-center",children:[O.jsxs("div",{className:"bg-white/5 p-1.5 rounded-xl",children:[O.jsx("span",{className:"text-[7.5px] text-gray-400 uppercase block",children:"SOG"}),O.jsxs("span",{className:"font-bold text-cyan-400 text-xs",children:[G.toFixed(1),"k"]})]}),O.jsxs("div",{className:"bg-white/5 p-1.5 rounded-xl",children:[O.jsx("span",{className:"text-[7.5px] text-gray-400 uppercase block",children:"Prua"}),O.jsxs("span",{className:"font-bold text-white text-xs",children:[Math.round(R),"°"]})]}),O.jsxs("div",{className:"bg-white/5 p-1.5 rounded-xl",children:[O.jsx("span",{className:"text-[7.5px] text-gray-400 uppercase block",children:"Fondo"}),O.jsx("span",{className:"font-bold text-white text-xs",children:Mi>0?`${Mi.toFixed(1)}m`:"--"})]}),O.jsxs("div",{className:"bg-white/5 p-1.5 rounded-xl",children:[O.jsx("span",{className:"text-[7.5px] text-gray-400 uppercase block",children:"Volvo"}),O.jsx("span",{className:`font-bold text-xs ${(pt=r==null?void 0:r.anchor)!=null&&pt.engine_on?"text-yellow-400 animate-pulse":"text-gray-400"}`,children:(dn=r==null?void 0:r.anchor)!=null&&dn.engine_on?"ON":"OFF"})]})]}),O.jsxs("div",{className:"bg-white/5 p-2 rounded-xl border border-white/5 flex flex-col gap-1 text-[10px]",children:[O.jsx("span",{className:"text-[8px] font-black text-gray-400 uppercase tracking-widest border-b border-white/5 pb-1",children:"Statistiche Tratta"}),O.jsxs("div",{className:"flex justify-between items-center text-cyan-400 font-bold",children:[O.jsxs("span",{children:["⛵ Vela: ",((nn=r==null?void 0:r.trip)==null?void 0:nn.sail_time)||"0m"]}),O.jsxs("span",{children:[((pn=r==null?void 0:r.trip)==null?void 0:pn.sail_nm)||"0.00 NM"," ",O.jsxs("span",{className:"text-gray-500 font-normal",children:["(",wo,"%)"]})]})]}),O.jsxs("div",{className:"flex justify-between items-center text-yellow-400 font-bold",children:[O.jsxs("span",{children:["🚤 Motore: ",((rn=r==null?void 0:r.trip)==null?void 0:rn.engine_time)||"0m"]}),O.jsxs("span",{children:[((Vn=r==null?void 0:r.trip)==null?void 0:Vn.engine_nm)||"0.00 NM"," ",O.jsxs("span",{className:"text-gray-500 font-normal",children:["(",bo,"%)"]})]})]}),O.jsxs("div",{className:"flex justify-between items-center text-white font-black border-t border-white/5 pt-1 mt-0.5",children:[O.jsxs("span",{children:["⏱️ Totale: ",((Tn=r==null?void 0:r.trip)==null?void 0:Tn.total_nav_time)||"0m"]}),O.jsx("span",{children:((Un=r==null?void 0:r.trip)==null?void 0:Un.total_nm)||"0.00 NM"})]})]})]})}const Q=fu(s.type),_e=s.age!==void 0?s.age<60?`${s.age}s fa`:`${Math.round(s.age/60)}m fa`:"";return O.jsxs("div",{className:"flex flex-col p-3 font-mono gap-2 overflow-y-auto",children:[O.jsxs("div",{className:"flex flex-col border-b border-white/10 pb-2 px-1 pt-0.5 shrink-0 gap-1",children:[O.jsxs("div",{className:"flex items-center justify-between",children:[O.jsxs("button",{onClick:V,className:"flex items-center gap-1 text-[11px] font-black text-cyan-400 hover:text-cyan-300 active:scale-95 transition-transform shrink-0 px-1 py-0.5",children:[O.jsx("span",{children:"←"})," LISTA"]}),O.jsxs("div",{className:"flex items-center justify-center gap-1.5 truncate px-2",children:[O.jsx("span",{className:"text-base shrink-0",children:Q.emoji}),O.jsx("h4",{className:"text-sm font-black uppercase text-white truncate tracking-tight",children:s.name||"Sconosciuto"})]}),O.jsx("button",{onClick:te,className:"text-gray-400 hover:text-white p-1 shrink-0 rounded-lg active:scale-95 transition-transform",children:O.jsx(uv,{size:16})})]}),O.jsxs("div",{className:"flex items-center justify-center gap-1.5 text-[9.5px] font-bold text-gray-300 uppercase tracking-tight",children:[O.jsx("span",{children:Q.label}),O.jsx("span",{className:"text-gray-600",children:"•"}),(kr=s.id)!=null&&kr.includes("mmsi:")?O.jsx("button",{onClick:()=>S(s.id.split(":").pop()),className:`flex items-center gap-1 cursor-pointer active:scale-95 transition-all px-1.5 py-0.5 rounded-md border ${b?"text-green-400 bg-green-500/15 border-green-500/30":"text-cyan-400 hover:text-cyan-300 bg-white/5 border-white/10"}`,title:"Tocca per copiare l'MMSI negli appunti",children:b?O.jsxs(O.Fragment,{children:[O.jsx(i4,{size:11,className:"shrink-0 text-green-400"}),O.jsx("span",{className:"text-[9px]",children:"Copiato!"})]}):O.jsxs(O.Fragment,{children:[O.jsx(u4,{size:9,className:"shrink-0 opacity-80"}),O.jsxs("span",{children:["MMSI ",s.id.split(":").pop()]})]})}):O.jsx("span",{className:"text-gray-400",children:"MMSI: --"}),_e&&O.jsxs(O.Fragment,{children:[O.jsx("span",{className:"text-gray-600",children:"•"}),O.jsx("span",{className:"text-gray-400",children:_e})]})]})]}),O.jsxs("div",{className:"grid grid-cols-2 gap-1.5 text-[10px] shrink-0",children:[O.jsxs("div",{className:"bg-white/5 p-2 rounded-xl",children:[O.jsx("span",{className:"text-[7.5px] text-gray-400 uppercase block",children:"SOG / COG"}),O.jsxs("span",{className:"font-bold text-white text-xs",children:[s.sog," kn @ ",s.cog,"°"]})]}),O.jsxs("div",{className:"bg-white/5 p-2 rounded-xl",children:[O.jsx("span",{className:"text-[7.5px] text-gray-400 uppercase block",children:"Distanza"}),O.jsx("span",{className:"font-bold text-white text-xs truncate",title:Ff(s.dist),children:Ff(s.dist)})]}),O.jsxs("div",{className:"bg-white/5 p-2 rounded-xl",children:[O.jsx("span",{className:"text-[7.5px] text-gray-400 uppercase block",children:"CPA Minimo"}),O.jsx("span",{className:"font-bold text-cyan-400 text-xs truncate",title:Ff(s.cpa),children:Ff(s.cpa)})]}),O.jsxs("div",{className:"bg-white/5 p-2 rounded-xl",children:[O.jsx("span",{className:"text-[7.5px] text-gray-400 uppercase block",children:"Tempo a CPA"}),O.jsx("span",{className:"font-bold text-cyan-400 text-xs",children:s.tcpa!==null&&s.tcpa!==void 0&&s.tcpa>=0?`${Math.round(s.tcpa)} min`:"--"})]})]}),s.sightingTxt&&O.jsxs("div",{className:"bg-cyan-500/10 border border-cyan-500/30 px-2.5 py-1.5 rounded-xl text-[9px] text-cyan-200 shrink-0 flex items-center gap-1.5",children:[O.jsx("span",{className:"text-cyan-400 font-black uppercase shrink-0",children:"👀 Vista:"}),O.jsx("span",{className:"truncate",children:s.sightingTxt})]}),s.crossDir&&O.jsxs("div",{className:"bg-white/5 p-2 rounded-xl text-[9px] text-gray-300 border border-white/5 overflow-y-auto leading-normal whitespace-pre-line max-h-20",children:[O.jsx("span",{className:"text-orange-400 font-bold uppercase block mb-1",children:"Analisi Incrocio:"}),s.crossDir]})]})})():O.jsxs("div",{className:"flex flex-col h-full font-mono",children:[O.jsxs("div",{className:"h-10 px-3.5 flex items-center justify-between border-b border-white/10 shrink-0",children:[O.jsxs("div",{className:"flex items-center gap-2",children:[O.jsx(PS,{size:14,className:"text-cyan-400"}),O.jsxs("span",{className:"text-[11px] font-black uppercase tracking-wider text-white",children:["Bersagli (",Y.length,")"]})]}),O.jsx("button",{onClick:te,className:"text-gray-400 hover:text-white p-1",children:O.jsx(uv,{size:16})})]}),O.jsxs("div",{className:"flex-1 overflow-y-auto p-1.5 space-y-1.5",children:[O.jsxs("div",{onClick:()=>D(H),className:"p-2 rounded-xl border border-cyan-500/30 bg-cyan-500/10 hover:bg-cyan-500/20 transition-all cursor-pointer flex items-center justify-between",children:[O.jsxs("div",{className:"flex flex-col truncate pr-2",children:[O.jsx("span",{className:"text-[11px] font-black uppercase text-cyan-400 truncate flex items-center gap-1",children:"⛵ ROTEVISTA (LA TUA BARCA)"}),O.jsxs("span",{className:"text-[8px] text-gray-300 mt-0.5",children:[((On=r==null?void 0:r.anchor)==null?void 0:On.status)!=="MOVING"?"ALL'ANCORA":(zt=r==null?void 0:r.anchor)!=null&&zt.engine_on?"A MOTORE":"A VELA"," • HDG: ",Math.round(R),"°"]})]}),O.jsxs("div",{className:"flex flex-col items-end text-right shrink-0 leading-none",children:[O.jsxs("span",{className:"text-xs font-black text-cyan-400 font-mono",children:[G.toFixed(1)," kn"]}),O.jsx("span",{className:"text-[7.5px] text-gray-400 mt-1",children:"SOG"})]})]}),Y.map(Q=>{const _e=Q.risk==="RED",Oe=Q.risk==="ORANGE",Ie=fu(Q.type);return O.jsxs("div",{onClick:()=>D(Q),className:`p-2 rounded-xl border transition-all cursor-pointer flex items-center justify-between ${_e?"bg-red-500/15 border-red-500/40 text-red-100":Oe?"bg-orange-500/15 border-orange-500/40 text-orange-100":"bg-white/5 border-white/5 hover:bg-white/10"}`,children:[O.jsxs("div",{className:"flex flex-col truncate pr-2",children:[O.jsxs("div",{className:"flex items-center gap-1.5 truncate",children:[O.jsx("span",{style:{color:Ie.color},className:"text-xs shrink-0",children:Ie.emoji}),O.jsx("span",{className:"text-[11px] font-black uppercase text-white truncate",children:Q.name||"Sconosciuto"}),_e&&O.jsx("span",{className:"text-red-500 text-[9px] shrink-0",children:"🚨"})]}),O.jsxs("span",{className:"text-[9.5px] font-bold text-gray-300 mt-0.5 tracking-tight leading-tight",children:[Ie.label," • ",Q.isMoving?`${Q.sog}k • ${Q.cog}°`:"ALL'ANCORA"]})]}),O.jsxs("div",{className:"flex flex-col items-end text-right shrink-0 leading-none",children:[O.jsx("span",{className:`text-xs font-black ${_e?"text-red-400":Oe?"text-orange-400":"text-cyan-400"}`,children:Q.cpa!==null&&Q.cpa!==void 0?`CPA: ${kS(Q.cpa)}`:kS(Q.dist)}),Q.tcpa!==null&&Q.tcpa>=0&&O.jsxs("span",{className:"text-[8.5px] font-bold text-gray-300 mt-1",children:["in ",Math.round(Q.tcpa),"m"]})]})]},Q.id)})]})]})})]})};function AM(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=AM(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ne(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=AM(e))&&(r&&(r+=" "),r+=t);return r}var dB=Array.isArray,Pn=dB,pB=typeof Vl=="object"&&Vl&&Vl.Object===Object&&Vl,EM=pB,mB=EM,vB=typeof self=="object"&&self&&self.Object===Object&&self,gB=mB||vB||Function("return this")(),Gr=gB,yB=Gr,xB=yB.Symbol,Mc=xB,CS=Mc,kM=Object.prototype,_B=kM.hasOwnProperty,bB=kM.toString,Cl=CS?CS.toStringTag:void 0;function wB(e){var t=_B.call(e,Cl),n=e[Cl];try{e[Cl]=void 0;var r=!0}catch{}var i=bB.call(e);return r&&(t?e[Cl]=n:delete e[Cl]),i}var SB=wB,PB=Object.prototype,OB=PB.toString;function TB(e){return OB.call(e)}var AB=TB,jS=Mc,EB=SB,kB=AB,MB="[object Null]",CB="[object Undefined]",$S=jS?jS.toStringTag:void 0;function jB(e){return e==null?e===void 0?CB:MB:$S&&$S in Object(e)?EB(e):kB(e)}var Ai=jB;function $B(e){return e!=null&&typeof e=="object"}var Ei=$B,NB=Ai,LB=Ei,IB="[object Symbol]";function DB(e){return typeof e=="symbol"||LB(e)&&NB(e)==IB}var Zs=DB,RB=Pn,zB=Zs,BB=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,FB=/^\w*$/;function VB(e,t){if(RB(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||zB(e)?!0:FB.test(e)||!BB.test(e)||t!=null&&e in Object(t)}var o_=VB;function UB(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var po=UB;const Gs=Ge(po);var WB=Ai,HB=po,ZB="[object AsyncFunction]",GB="[object Function]",KB="[object GeneratorFunction]",qB="[object Proxy]";function XB(e){if(!HB(e))return!1;var t=WB(e);return t==GB||t==KB||t==ZB||t==qB}var a_=XB;const Se=Ge(a_);var YB=Gr,QB=YB["__core-js_shared__"],JB=QB,fv=JB,NS=function(){var e=/[^.]+$/.exec(fv&&fv.keys&&fv.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function eF(e){return!!NS&&NS in e}var tF=eF,nF=Function.prototype,rF=nF.toString;function iF(e){if(e!=null){try{return rF.call(e)}catch{}try{return e+""}catch{}}return""}var MM=iF,oF=a_,aF=tF,sF=po,lF=MM,uF=/[\\^$.*+?()[\]{}|]/g,cF=/^\[object .+?Constructor\]$/,fF=Function.prototype,hF=Object.prototype,dF=fF.toString,pF=hF.hasOwnProperty,mF=RegExp("^"+dF.call(pF).replace(uF,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function vF(e){if(!sF(e)||aF(e))return!1;var t=oF(e)?mF:cF;return t.test(lF(e))}var gF=vF;function yF(e,t){return e==null?void 0:e[t]}var xF=yF,_F=gF,bF=xF;function wF(e,t){var n=bF(e,t);return _F(n)?n:void 0}var fa=wF,SF=fa,PF=SF(Object,"create"),yp=PF,LS=yp;function OF(){this.__data__=LS?LS(null):{},this.size=0}var TF=OF;function AF(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var EF=AF,kF=yp,MF="__lodash_hash_undefined__",CF=Object.prototype,jF=CF.hasOwnProperty;function $F(e){var t=this.__data__;if(kF){var n=t[e];return n===MF?void 0:n}return jF.call(t,e)?t[e]:void 0}var NF=$F,LF=yp,IF=Object.prototype,DF=IF.hasOwnProperty;function RF(e){var t=this.__data__;return LF?t[e]!==void 0:DF.call(t,e)}var zF=RF,BF=yp,FF="__lodash_hash_undefined__";function VF(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=BF&&t===void 0?FF:t,this}var UF=VF,WF=TF,HF=EF,ZF=NF,GF=zF,KF=UF;function Ks(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])}}Ks.prototype.clear=WF;Ks.prototype.delete=HF;Ks.prototype.get=ZF;Ks.prototype.has=GF;Ks.prototype.set=KF;var qF=Ks;function XF(){this.__data__=[],this.size=0}var YF=XF;function QF(e,t){return e===t||e!==e&&t!==t}var s_=QF,JF=s_;function e8(e,t){for(var n=e.length;n--;)if(JF(e[n][0],t))return n;return-1}var xp=e8,t8=xp,n8=Array.prototype,r8=n8.splice;function i8(e){var t=this.__data__,n=t8(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():r8.call(t,n,1),--this.size,!0}var o8=i8,a8=xp;function s8(e){var t=this.__data__,n=a8(t,e);return n<0?void 0:t[n][1]}var l8=s8,u8=xp;function c8(e){return u8(this.__data__,e)>-1}var f8=c8,h8=xp;function d8(e,t){var n=this.__data__,r=h8(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var p8=d8,m8=YF,v8=o8,g8=l8,y8=f8,x8=p8;function qs(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}qs.prototype.clear=m8;qs.prototype.delete=v8;qs.prototype.get=g8;qs.prototype.has=y8;qs.prototype.set=x8;var _p=qs,_8=fa,b8=Gr,w8=_8(b8,"Map"),l_=w8,IS=qF,S8=_p,P8=l_;function O8(){this.size=0,this.__data__={hash:new IS,map:new(P8||S8),string:new IS}}var T8=O8;function A8(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var E8=A8,k8=E8;function M8(e,t){var n=e.__data__;return k8(t)?n[typeof t=="string"?"string":"hash"]:n.map}var bp=M8,C8=bp;function j8(e){var t=C8(this,e).delete(e);return this.size-=t?1:0,t}var $8=j8,N8=bp;function L8(e){return N8(this,e).get(e)}var I8=L8,D8=bp;function R8(e){return D8(this,e).has(e)}var z8=R8,B8=bp;function F8(e,t){var n=B8(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var V8=F8,U8=T8,W8=$8,H8=I8,Z8=z8,G8=V8;function Xs(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Xs.prototype.clear=U8;Xs.prototype.delete=W8;Xs.prototype.get=H8;Xs.prototype.has=Z8;Xs.prototype.set=G8;var u_=Xs,CM=u_,K8="Expected a function";function c_(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(K8);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=e.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(c_.Cache||CM),n}c_.Cache=CM;var jM=c_;const q8=Ge(jM);var X8=jM,Y8=500;function Q8(e){var t=X8(e,function(r){return n.size===Y8&&n.clear(),r}),n=t.cache;return t}var J8=Q8,e6=J8,t6=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n6=/\\(\\)?/g,r6=e6(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(t6,function(n,r,i,o){t.push(i?o.replace(n6,"$1"):r||n)}),t}),i6=r6;function o6(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var f_=o6,DS=Mc,a6=f_,s6=Pn,l6=Zs,RS=DS?DS.prototype:void 0,zS=RS?RS.toString:void 0;function $M(e){if(typeof e=="string")return e;if(s6(e))return a6(e,$M)+"";if(l6(e))return zS?zS.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var u6=$M,c6=u6;function f6(e){return e==null?"":c6(e)}var NM=f6,h6=Pn,d6=o_,p6=i6,m6=NM;function v6(e,t){return h6(e)?e:d6(e,t)?[e]:p6(m6(e))}var LM=v6,g6=Zs;function y6(e){if(typeof e=="string"||g6(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var wp=y6,x6=LM,_6=wp;function b6(e,t){t=x6(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[_6(t[n++])];return n&&n==r?e:void 0}var h_=b6,w6=h_;function S6(e,t,n){var r=e==null?void 0:w6(e,t);return r===void 0?n:r}var IM=S6;const ar=Ge(IM);function P6(e){return e==null}var O6=P6;const Me=Ge(O6);var T6=Ai,A6=Pn,E6=Ei,k6="[object String]";function M6(e){return typeof e=="string"||!A6(e)&&E6(e)&&T6(e)==k6}var C6=M6;const ra=Ge(C6);var DM={exports:{}},Fe={};/**
|
|
307
|
+
* @license React
|
|
308
|
+
* react-is.production.min.js
|
|
309
|
+
*
|
|
310
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
311
|
+
*
|
|
312
|
+
* This source code is licensed under the MIT license found in the
|
|
313
|
+
* LICENSE file in the root directory of this source tree.
|
|
314
|
+
*/var d_=Symbol.for("react.element"),p_=Symbol.for("react.portal"),Sp=Symbol.for("react.fragment"),Pp=Symbol.for("react.strict_mode"),Op=Symbol.for("react.profiler"),Tp=Symbol.for("react.provider"),Ap=Symbol.for("react.context"),j6=Symbol.for("react.server_context"),Ep=Symbol.for("react.forward_ref"),kp=Symbol.for("react.suspense"),Mp=Symbol.for("react.suspense_list"),Cp=Symbol.for("react.memo"),jp=Symbol.for("react.lazy"),$6=Symbol.for("react.offscreen"),RM;RM=Symbol.for("react.module.reference");function cr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case d_:switch(e=e.type,e){case Sp:case Op:case Pp:case kp:case Mp:return e;default:switch(e=e&&e.$$typeof,e){case j6:case Ap:case Ep:case jp:case Cp:case Tp:return e;default:return t}}case p_:return t}}}Fe.ContextConsumer=Ap;Fe.ContextProvider=Tp;Fe.Element=d_;Fe.ForwardRef=Ep;Fe.Fragment=Sp;Fe.Lazy=jp;Fe.Memo=Cp;Fe.Portal=p_;Fe.Profiler=Op;Fe.StrictMode=Pp;Fe.Suspense=kp;Fe.SuspenseList=Mp;Fe.isAsyncMode=function(){return!1};Fe.isConcurrentMode=function(){return!1};Fe.isContextConsumer=function(e){return cr(e)===Ap};Fe.isContextProvider=function(e){return cr(e)===Tp};Fe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===d_};Fe.isForwardRef=function(e){return cr(e)===Ep};Fe.isFragment=function(e){return cr(e)===Sp};Fe.isLazy=function(e){return cr(e)===jp};Fe.isMemo=function(e){return cr(e)===Cp};Fe.isPortal=function(e){return cr(e)===p_};Fe.isProfiler=function(e){return cr(e)===Op};Fe.isStrictMode=function(e){return cr(e)===Pp};Fe.isSuspense=function(e){return cr(e)===kp};Fe.isSuspenseList=function(e){return cr(e)===Mp};Fe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Sp||e===Op||e===Pp||e===kp||e===Mp||e===$6||typeof e=="object"&&e!==null&&(e.$$typeof===jp||e.$$typeof===Cp||e.$$typeof===Tp||e.$$typeof===Ap||e.$$typeof===Ep||e.$$typeof===RM||e.getModuleId!==void 0)};Fe.typeOf=cr;DM.exports=Fe;var N6=DM.exports,L6=Ai,I6=Ei,D6="[object Number]";function R6(e){return typeof e=="number"||I6(e)&&L6(e)==D6}var zM=R6;const z6=Ge(zM);var B6=zM;function F6(e){return B6(e)&&e!=+e}var V6=F6;const Ys=Ge(V6);var Sr=function(t){return t===0?0:t>0?1:-1},Fo=function(t){return ra(t)&&t.indexOf("%")===t.length-1},ie=function(t){return z6(t)&&!Ys(t)},U6=function(t){return Me(t)},Ct=function(t){return ie(t)||ra(t)},W6=0,Cc=function(t){var n=++W6;return"".concat(t||"").concat(n)},ia=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!ie(t)&&!ra(t))return r;var o;if(Fo(t)){var s=t.indexOf("%");o=n*parseFloat(t.slice(0,s))/100}else o=+t;return Ys(o)&&(o=r),i&&o>n&&(o=n),o},Hi=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},H6=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,r={},i=0;i<n;i++)if(!r[t[i]])r[t[i]]=!0;else return!0;return!1},nr=function(t,n){return ie(t)&&ie(n)?function(r){return t+r*(n-t)}:function(){return n}};function Kh(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):ar(r,t))===n})}var Z6=function(t,n){return ie(t)&&ie(n)?t-n:ra(t)&&ra(n)?t.localeCompare(n):t instanceof Date&&n instanceof Date?t.getTime()-n.getTime():String(t).localeCompare(String(n))};function ns(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function ey(e){"@babel/helpers - typeof";return ey=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ey(e)}var G6=["viewBox","children"],K6=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],BS=["points","pathLength"],hv={svg:G6,polygon:BS,polyline:BS},m_=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],qh=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(j.isValidElement(t)&&(r=t.props),!Gs(r))return null;var i={};return Object.keys(r).forEach(function(o){m_.includes(o)&&(i[o]=n||function(s){return r[o](r,s)})}),i},q6=function(t,n,r){return function(i){return t(n,r,i),null}},Xh=function(t,n,r){if(!Gs(t)||ey(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(o){var s=t[o];m_.includes(o)&&typeof s=="function"&&(i||(i={}),i[o]=q6(s,n,r))}),i},X6=["children"],Y6=["children"];function FS(e,t){if(e==null)return{};var n=Q6(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 Q6(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function ty(e){"@babel/helpers - typeof";return ty=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ty(e)}var VS={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},pi=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},US=null,dv=null,v_=function e(t){if(t===US&&Array.isArray(dv))return dv;var n=[];return j.Children.forEach(t,function(r){Me(r)||(N6.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),dv=n,US=t,n};function Tr(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(i){return pi(i)}):r=[pi(t)],v_(e).forEach(function(i){var o=ar(i,"type.displayName")||ar(i,"type.name");r.indexOf(o)!==-1&&n.push(i)}),n}function jn(e,t){var n=Tr(e,t);return n&&n[0]}var WS=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,i=n.height;return!(!ie(r)||r<=0||!ie(i)||i<=0)},J6=["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"],eV=function(t){return t&&t.type&&ra(t.type)&&J6.indexOf(t.type)>=0},tV=function(t){return t&&ty(t)==="object"&&"clipDot"in t},nV=function(t,n,r,i){var o,s=(o=hv==null?void 0:hv[i])!==null&&o!==void 0?o:[];return n.startsWith("data-")||!Se(t)&&(i&&s.includes(n)||K6.includes(n))||r&&m_.includes(n)},Ee=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(j.isValidElement(t)&&(i=t.props),!Gs(i))return null;var o={};return Object.keys(i).forEach(function(s){var l;nV((l=i)===null||l===void 0?void 0:l[s],s,n,r)&&(o[s]=i[s])}),o},ny=function e(t,n){if(t===n)return!0;var r=j.Children.count(t);if(r!==j.Children.count(n))return!1;if(r===0)return!0;if(r===1)return HS(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var i=0;i<r;i++){var o=t[i],s=n[i];if(Array.isArray(o)||Array.isArray(s)){if(!e(o,s))return!1}else if(!HS(o,s))return!1}return!0},HS=function(t,n){if(Me(t)&&Me(n))return!0;if(!Me(t)&&!Me(n)){var r=t.props||{},i=r.children,o=FS(r,X6),s=n.props||{},l=s.children,u=FS(s,Y6);return i&&l?ns(o,u)&&ny(i,l):!i&&!l?ns(o,u):!1}return!1},ZS=function(t,n){var r=[],i={};return v_(t).forEach(function(o,s){if(eV(o))r.push(o);else if(o){var l=pi(o.type),u=n[l]||{},f=u.handler,h=u.once;if(f&&(!h||!i[l])){var d=f(o,l,s);r.push(d),i[l]=!0}}}),r},rV=function(t){var n=t&&t.type;return n&&VS[n]?VS[n]:null},iV=function(t,n){return v_(n).indexOf(t)},oV=["children","width","height","viewBox","className","style","title","desc"];function ry(){return ry=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ry.apply(this,arguments)}function aV(e,t){if(e==null)return{};var n=sV(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 sV(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function iy(e){var t=e.children,n=e.width,r=e.height,i=e.viewBox,o=e.className,s=e.style,l=e.title,u=e.desc,f=aV(e,oV),h=i||{width:n,height:r,x:0,y:0},d=Ne("recharts-surface",o);return I.createElement("svg",ry({},Ee(f,!0,"svg"),{className:d,width:n,height:r,style:s,viewBox:"".concat(h.x," ").concat(h.y," ").concat(h.width," ").concat(h.height)}),I.createElement("title",null,l),I.createElement("desc",null,u),t)}var lV=["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 uV(e,t){if(e==null)return{};var n=cV(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 cV(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var ft=I.forwardRef(function(e,t){var n=e.children,r=e.className,i=uV(e,lV),o=Ne("recharts-layer",r);return I.createElement("g",oy({className:o},Ee(i,!0),{ref:t}),n)}),mi=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 fV(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 hV=fV,dV=hV;function pV(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:dV(e,t,n)}var mV=pV,vV="\\ud800-\\udfff",gV="\\u0300-\\u036f",yV="\\ufe20-\\ufe2f",xV="\\u20d0-\\u20ff",_V=gV+yV+xV,bV="\\ufe0e\\ufe0f",wV="\\u200d",SV=RegExp("["+wV+vV+_V+bV+"]");function PV(e){return SV.test(e)}var BM=PV;function OV(e){return e.split("")}var TV=OV,FM="\\ud800-\\udfff",AV="\\u0300-\\u036f",EV="\\ufe20-\\ufe2f",kV="\\u20d0-\\u20ff",MV=AV+EV+kV,CV="\\ufe0e\\ufe0f",jV="["+FM+"]",ay="["+MV+"]",sy="\\ud83c[\\udffb-\\udfff]",$V="(?:"+ay+"|"+sy+")",VM="[^"+FM+"]",UM="(?:\\ud83c[\\udde6-\\uddff]){2}",WM="[\\ud800-\\udbff][\\udc00-\\udfff]",NV="\\u200d",HM=$V+"?",ZM="["+CV+"]?",LV="(?:"+NV+"(?:"+[VM,UM,WM].join("|")+")"+ZM+HM+")*",IV=ZM+HM+LV,DV="(?:"+[VM+ay+"?",ay,UM,WM,jV].join("|")+")",RV=RegExp(sy+"(?="+sy+")|"+DV+IV,"g");function zV(e){return e.match(RV)||[]}var BV=zV,FV=TV,VV=BM,UV=BV;function WV(e){return VV(e)?UV(e):FV(e)}var HV=WV,ZV=mV,GV=BM,KV=HV,qV=NM;function XV(e){return function(t){t=qV(t);var n=GV(t)?KV(t):void 0,r=n?n[0]:t.charAt(0),i=n?ZV(n,1).join(""):t.slice(1);return r[e]()+i}}var YV=XV,QV=YV,JV=QV("toUpperCase"),eU=JV;const $p=Ge(eU);function Ye(e){return function(){return e}}const GM=Math.cos,Yh=Math.sin,Er=Math.sqrt,Qh=Math.PI,Np=2*Qh,ly=Math.PI,uy=2*ly,$o=1e-6,tU=uy-$o;function KM(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function nU(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return KM;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 rU{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?KM:nU(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,h=s-t,d=l-n,m=h*h+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(m>$o)if(!(Math.abs(d*u-f*h)>$o)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let v=r-s,b=i-l,x=u*u+f*f,S=v*v+b*b,y=Math.sqrt(x),_=Math.sqrt(m),w=o*Math.tan((ly-Math.acos((x+m-S)/(2*y*_)))/2),E=w/_,P=w/y;Math.abs(E-1)>$o&&this._append`L${t+E*h},${n+E*d}`,this._append`A${o},${o},0,0,${+(d*v>h*b)},${this._x1=t+P*u},${this._y1=n+P*f}`}}arc(t,n,r,i,o,s){if(t=+t,n=+n,r=+r,s=!!s,r<0)throw new Error(`negative radius: ${r}`);let l=r*Math.cos(i),u=r*Math.sin(i),f=t+l,h=n+u,d=1^s,m=s?i-o:o-i;this._x1===null?this._append`M${f},${h}`:(Math.abs(this._x1-f)>$o||Math.abs(this._y1-h)>$o)&&this._append`L${f},${h}`,r&&(m<0&&(m=m%uy+uy),m>tU?this._append`A${r},${r},0,1,${d},${t-l},${n-u}A${r},${r},0,1,${d},${this._x1=f},${this._y1=h}`:m>$o&&this._append`A${r},${r},0,${+(m>=ly)},${d},${this._x1=t+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function g_(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new rU(t)}function y_(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function qM(e){this._context=e}qM.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Lp(e){return new qM(e)}function XM(e){return e[0]}function YM(e){return e[1]}function QM(e,t){var n=Ye(!0),r=null,i=Lp,o=null,s=g_(l);e=typeof e=="function"?e:e===void 0?XM:Ye(e),t=typeof t=="function"?t:t===void 0?YM:Ye(t);function l(u){var f,h=(u=y_(u)).length,d,m=!1,v;for(r==null&&(o=i(v=s())),f=0;f<=h;++f)!(f<h&&n(d=u[f],f,u))===m&&((m=!m)?o.lineStart():o.lineEnd()),m&&o.point(+e(d,f,u),+t(d,f,u));if(v)return o=null,v+""||null}return l.x=function(u){return arguments.length?(e=typeof u=="function"?u:Ye(+u),l):e},l.y=function(u){return arguments.length?(t=typeof u=="function"?u:Ye(+u),l):t},l.defined=function(u){return arguments.length?(n=typeof u=="function"?u:Ye(!!u),l):n},l.curve=function(u){return arguments.length?(i=u,r!=null&&(o=i(r)),l):i},l.context=function(u){return arguments.length?(u==null?r=o=null:o=i(r=u),l):r},l}function Vf(e,t,n){var r=null,i=Ye(!0),o=null,s=Lp,l=null,u=g_(f);e=typeof e=="function"?e:e===void 0?XM:Ye(+e),t=typeof t=="function"?t:Ye(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?YM:Ye(+n);function f(d){var m,v,b,x=(d=y_(d)).length,S,y=!1,_,w=new Array(x),E=new Array(x);for(o==null&&(l=s(_=u())),m=0;m<=x;++m){if(!(m<x&&i(S=d[m],m,d))===y)if(y=!y)v=m,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),b=m-1;b>=v;--b)l.point(w[b],E[b]);l.lineEnd(),l.areaEnd()}y&&(w[m]=+e(S,m,d),E[m]=+t(S,m,d),l.point(r?+r(S,m,d):w[m],n?+n(S,m,d):E[m]))}if(_)return l=null,_+""||null}function h(){return QM().defined(i).curve(s).context(o)}return f.x=function(d){return arguments.length?(e=typeof d=="function"?d:Ye(+d),r=null,f):e},f.x0=function(d){return arguments.length?(e=typeof d=="function"?d:Ye(+d),f):e},f.x1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:Ye(+d),f):r},f.y=function(d){return arguments.length?(t=typeof d=="function"?d:Ye(+d),n=null,f):t},f.y0=function(d){return arguments.length?(t=typeof d=="function"?d:Ye(+d),f):t},f.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:Ye(+d),f):n},f.lineX0=f.lineY0=function(){return h().x(e).y(t)},f.lineY1=function(){return h().x(e).y(n)},f.lineX1=function(){return h().x(r).y(t)},f.defined=function(d){return arguments.length?(i=typeof d=="function"?d:Ye(!!d),f):i},f.curve=function(d){return arguments.length?(s=d,o!=null&&(l=s(o)),f):s},f.context=function(d){return arguments.length?(d==null?o=l=null:l=s(o=d),f):o},f}class JM{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 iU(e){return new JM(e,!0)}function oU(e){return new JM(e,!1)}const x_={draw(e,t){const n=Er(t/Qh);e.moveTo(n,0),e.arc(0,0,n,0,Np)}},aU={draw(e,t){const n=Er(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()}},eC=Er(1/3),sU=eC*2,lU={draw(e,t){const n=Er(t/sU),r=n*eC;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},uU={draw(e,t){const n=Er(t),r=-n/2;e.rect(r,r,n,n)}},cU=.8908130915292852,tC=Yh(Qh/10)/Yh(7*Qh/10),fU=Yh(Np/10)*tC,hU=-GM(Np/10)*tC,dU={draw(e,t){const n=Er(t*cU),r=fU*n,i=hU*n;e.moveTo(0,-n),e.lineTo(r,i);for(let o=1;o<5;++o){const s=Np*o/5,l=GM(s),u=Yh(s);e.lineTo(u*n,-l*n),e.lineTo(l*r-u*i,u*r+l*i)}e.closePath()}},pv=Er(3),pU={draw(e,t){const n=-Er(t/(pv*3));e.moveTo(0,n*2),e.lineTo(-pv*n,-n),e.lineTo(pv*n,-n),e.closePath()}},qn=-.5,Xn=Er(3)/2,cy=1/Er(12),mU=(cy/2+1)*3,vU={draw(e,t){const n=Er(t/mU),r=n/2,i=n*cy,o=r,s=n*cy+n,l=-o,u=s;e.moveTo(r,i),e.lineTo(o,s),e.lineTo(l,u),e.lineTo(qn*r-Xn*i,Xn*r+qn*i),e.lineTo(qn*o-Xn*s,Xn*o+qn*s),e.lineTo(qn*l-Xn*u,Xn*l+qn*u),e.lineTo(qn*r+Xn*i,qn*i-Xn*r),e.lineTo(qn*o+Xn*s,qn*s-Xn*o),e.lineTo(qn*l+Xn*u,qn*u-Xn*l),e.closePath()}};function gU(e,t){let n=null,r=g_(i);e=typeof e=="function"?e:Ye(e||x_),t=typeof t=="function"?t:Ye(t===void 0?64:+t);function i(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return i.type=function(o){return arguments.length?(e=typeof o=="function"?o:Ye(o),i):e},i.size=function(o){return arguments.length?(t=typeof o=="function"?o:Ye(+o),i):t},i.context=function(o){return arguments.length?(n=o??null,i):n},i}function Jh(){}function ed(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function nC(e){this._context=e}nC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:ed(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:ed(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function yU(e){return new nC(e)}function rC(e){this._context=e}rC.prototype={areaStart:Jh,areaEnd:Jh,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:ed(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function xU(e){return new rC(e)}function iC(e){this._context=e}iC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:ed(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function _U(e){return new iC(e)}function oC(e){this._context=e}oC.prototype={areaStart:Jh,areaEnd:Jh,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function bU(e){return new oC(e)}function GS(e){return e<0?-1:1}function KS(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),s=(n-e._y1)/(i||r<0&&-0),l=(o*i+s*r)/(r+i);return(GS(o)+GS(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(l))||0}function qS(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function mv(e,t,n){var r=e._x0,i=e._y0,o=e._x1,s=e._y1,l=(o-r)/3;e._context.bezierCurveTo(r+l,i+l*t,o-l,s-l*n,o,s)}function td(e){this._context=e}td.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:mv(this,this._t0,qS(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,mv(this,qS(this,n=KS(this,e,t)),n);break;default:mv(this,this._t0,n=KS(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function aC(e){this._context=new sC(e)}(aC.prototype=Object.create(td.prototype)).point=function(e,t){td.prototype.point.call(this,t,e)};function sC(e){this._context=e}sC.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 wU(e){return new td(e)}function SU(e){return new aC(e)}function lC(e){this._context=e}lC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=XS(e),i=XS(t),o=0,s=1;s<n;++o,++s)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[s],t[s]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function XS(e){var t,n=e.length-1,r,i=new Array(n),o=new Array(n),s=new Array(n);for(i[0]=0,o[0]=2,s[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,o[t]=4,s[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,o[n-1]=7,s[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/o[t-1],o[t]-=r,s[t]-=r*s[t-1];for(i[n-1]=s[n-1]/o[n-1],t=n-2;t>=0;--t)i[t]=(s[t]-i[t+1])/o[t];for(o[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function PU(e){return new lC(e)}function Ip(e,t){this._context=e,this._t=t}Ip.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function OU(e){return new Ip(e,.5)}function TU(e){return new Ip(e,0)}function AU(e){return new Ip(e,1)}function vs(e,t){if((s=e.length)>1)for(var n=1,r,i,o=e[t[0]],s,l=o.length;n<s;++n)for(i=o,o=e[t[n]],r=0;r<l;++r)o[r][1]+=o[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function fy(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function EU(e,t){return e[t]}function kU(e){const t=[];return t.key=e,t}function MU(){var e=Ye([]),t=fy,n=vs,r=EU;function i(o){var s=Array.from(e.apply(this,arguments),kU),l,u=s.length,f=-1,h;for(const d of o)for(l=0,++f;l<u;++l)(s[l][f]=[0,+r(d,s[l].key,f,o)]).data=d;for(l=0,h=y_(t(s));l<u;++l)s[h[l]].index=l;return n(s,h),s}return i.keys=function(o){return arguments.length?(e=typeof o=="function"?o:Ye(Array.from(o)),i):e},i.value=function(o){return arguments.length?(r=typeof o=="function"?o:Ye(+o),i):r},i.order=function(o){return arguments.length?(t=o==null?fy:typeof o=="function"?o:Ye(Array.from(o)),i):t},i.offset=function(o){return arguments.length?(n=o??vs,i):n},i}function CU(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}vs(e,t)}}function jU(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}vs(e,t)}}function $U(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 h=e[t[l]],d=h[r][1]||0,m=h[r-1][1]||0,v=(d-m)/2,b=0;b<l;++b){var x=e[t[b]],S=x[r][1]||0,y=x[r-1][1]||0;v+=S-y}u+=d,f+=v*d}i[r-1][1]+=i[r-1][0]=n,u&&(n-=f/u)}i[r-1][1]+=i[r-1][0]=n,vs(e,t)}}function zu(e){"@babel/helpers - typeof";return zu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zu(e)}var NU=["type","size","sizeType"];function hy(){return hy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hy.apply(this,arguments)}function YS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function QS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?YS(Object(n),!0).forEach(function(r){LU(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function LU(e,t,n){return t=IU(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IU(e){var t=DU(e,"string");return zu(t)=="symbol"?t:t+""}function DU(e,t){if(zu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(zu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function RU(e,t){if(e==null)return{};var n=zU(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 zU(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 uC={symbolCircle:x_,symbolCross:aU,symbolDiamond:lU,symbolSquare:uU,symbolStar:dU,symbolTriangle:pU,symbolWye:vU},BU=Math.PI/180,FU=function(t){var n="symbol".concat($p(t));return uC[n]||x_},VU=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*BU;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}},UU=function(t,n){uC["symbol".concat($p(t))]=n},__=function(t){var n=t.type,r=n===void 0?"circle":n,i=t.size,o=i===void 0?64:i,s=t.sizeType,l=s===void 0?"area":s,u=RU(t,NU),f=QS(QS({},u),{},{type:r,size:o,sizeType:l}),h=function(){var S=FU(r),y=gU().type(S).size(VU(o,l,r));return y()},d=f.className,m=f.cx,v=f.cy,b=Ee(f,!0);return m===+m&&v===+v&&o===+o?I.createElement("path",hy({},b,{className:Ne("recharts-symbols",d),transform:"translate(".concat(m,", ").concat(v,")"),d:h()})):null};__.registerSymbol=UU;function gs(e){"@babel/helpers - typeof";return gs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gs(e)}function dy(){return dy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dy.apply(this,arguments)}function JS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function WU(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JS(Object(n),!0).forEach(function(r){Bu(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function HU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZU(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 GU(e,t,n){return t&&ZU(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function KU(e,t,n){return t=nd(t),qU(e,cC()?Reflect.construct(t,n||[],nd(e).constructor):t.apply(e,n))}function qU(e,t){if(t&&(gs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return XU(e)}function XU(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(cC=function(){return!!e})()}function nd(e){return nd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},nd(e)}function YU(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&py(e,t)}function py(e,t){return py=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},py(e,t)}function Bu(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=QU(e,"string");return gs(t)=="symbol"?t:t+""}function QU(e,t){if(gs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(gs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Yn=32,b_=function(e){function t(){return HU(this,t),KU(this,t,arguments)}return YU(t,e),GU(t,[{key:"renderIcon",value:function(r){var i=this.props.inactiveColor,o=Yn/2,s=Yn/6,l=Yn/3,u=r.inactive?i:r.color;if(r.type==="plainline")return I.createElement("line",{strokeWidth:4,fill:"none",stroke:u,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:o,x2:Yn,y2:o,className:"recharts-legend-icon"});if(r.type==="line")return I.createElement("path",{strokeWidth:4,fill:"none",stroke:u,d:"M0,".concat(o,"h").concat(l,`
|
|
315
|
+
A`).concat(s,",").concat(s,",0,1,1,").concat(2*l,",").concat(o,`
|
|
316
|
+
H`).concat(Yn,"M").concat(2*l,",").concat(o,`
|
|
317
|
+
A`).concat(s,",").concat(s,",0,1,1,").concat(l,",").concat(o),className:"recharts-legend-icon"});if(r.type==="rect")return I.createElement("path",{stroke:"none",fill:u,d:"M0,".concat(Yn/8,"h").concat(Yn,"v").concat(Yn*3/4,"h").concat(-Yn,"z"),className:"recharts-legend-icon"});if(I.isValidElement(r.legendIcon)){var f=WU({},r);return delete f.legendIcon,I.cloneElement(r.legendIcon,f)}return I.createElement(__,{fill:u,cx:o,cy:o,size:Yn,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,i=this.props,o=i.payload,s=i.iconSize,l=i.layout,u=i.formatter,f=i.inactiveColor,h={x:0,y:0,width:Yn,height:Yn},d={display:l==="horizontal"?"inline-block":"block",marginRight:10},m={display:"inline-block",verticalAlign:"middle",marginRight:4};return o.map(function(v,b){var x=v.formatter||u,S=Ne(Bu(Bu({"recharts-legend-item":!0},"legend-item-".concat(b),!0),"inactive",v.inactive));if(v.type==="none")return null;var y=Se(v.value)?null:v.value;mi(!Se(v.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var _=v.inactive?f:v.color;return I.createElement("li",dy({className:S,style:d,key:"legend-item-".concat(b)},Xh(r.props,v,b)),I.createElement(iy,{width:s,height:s,viewBox:h,style:m},r.renderIcon(v)),I.createElement("span",{className:"recharts-legend-item-text",style:{color:_}},x?x(y,v,b):y))})}},{key:"render",value:function(){var r=this.props,i=r.payload,o=r.layout,s=r.align;if(!i||!i.length)return null;var l={padding:0,margin:0,textAlign:o==="horizontal"?s:"left"};return I.createElement("ul",{className:"recharts-default-legend",style:l},this.renderItems())}}])}(j.PureComponent);Bu(b_,"displayName","Legend");Bu(b_,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var JU=_p;function eW(){this.__data__=new JU,this.size=0}var tW=eW;function nW(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var rW=nW;function iW(e){return this.__data__.get(e)}var oW=iW;function aW(e){return this.__data__.has(e)}var sW=aW,lW=_p,uW=l_,cW=u_,fW=200;function hW(e,t){var n=this.__data__;if(n instanceof lW){var r=n.__data__;if(!uW||r.length<fW-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new cW(r)}return n.set(e,t),this.size=n.size,this}var dW=hW,pW=_p,mW=tW,vW=rW,gW=oW,yW=sW,xW=dW;function Qs(e){var t=this.__data__=new pW(e);this.size=t.size}Qs.prototype.clear=mW;Qs.prototype.delete=vW;Qs.prototype.get=gW;Qs.prototype.has=yW;Qs.prototype.set=xW;var hC=Qs,_W="__lodash_hash_undefined__";function bW(e){return this.__data__.set(e,_W),this}var wW=bW;function SW(e){return this.__data__.has(e)}var PW=SW,OW=u_,TW=wW,AW=PW;function rd(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new OW;++t<n;)this.add(e[t])}rd.prototype.add=rd.prototype.push=TW;rd.prototype.has=AW;var dC=rd;function EW(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=EW;function kW(e,t){return e.has(t)}var mC=kW,MW=dC,CW=pC,jW=mC,$W=1,NW=2;function LW(e,t,n,r,i,o){var s=n&$W,l=e.length,u=t.length;if(l!=u&&!(s&&u>l))return!1;var f=o.get(e),h=o.get(t);if(f&&h)return f==t&&h==e;var d=-1,m=!0,v=n&NW?new MW:void 0;for(o.set(e,t),o.set(t,e);++d<l;){var b=e[d],x=t[d];if(r)var S=s?r(x,b,d,t,e,o):r(b,x,d,e,t,o);if(S!==void 0){if(S)continue;m=!1;break}if(v){if(!CW(t,function(y,_){if(!jW(v,_)&&(b===y||i(b,y,n,r,o)))return v.push(_)})){m=!1;break}}else if(!(b===x||i(b,x,n,r,o))){m=!1;break}}return o.delete(e),o.delete(t),m}var vC=LW,IW=Gr,DW=IW.Uint8Array,RW=DW;function zW(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var BW=zW;function FW(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var w_=FW,eP=Mc,tP=RW,VW=s_,UW=vC,WW=BW,HW=w_,ZW=1,GW=2,KW="[object Boolean]",qW="[object Date]",XW="[object Error]",YW="[object Map]",QW="[object Number]",JW="[object RegExp]",e9="[object Set]",t9="[object String]",n9="[object Symbol]",r9="[object ArrayBuffer]",i9="[object DataView]",nP=eP?eP.prototype:void 0,vv=nP?nP.valueOf:void 0;function o9(e,t,n,r,i,o,s){switch(n){case i9:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case r9:return!(e.byteLength!=t.byteLength||!o(new tP(e),new tP(t)));case KW:case qW:case QW:return VW(+e,+t);case XW:return e.name==t.name&&e.message==t.message;case JW:case t9:return e==t+"";case YW:var l=WW;case e9:var u=r&ZW;if(l||(l=HW),e.size!=t.size&&!u)return!1;var f=s.get(e);if(f)return f==t;r|=GW,s.set(e,t);var h=UW(l(e),l(t),r,i,o,s);return s.delete(e),h;case n9:if(vv)return vv.call(e)==vv.call(t)}return!1}var a9=o9;function s9(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var gC=s9,l9=gC,u9=Pn;function c9(e,t,n){var r=t(e);return u9(e)?r:l9(r,n(e))}var f9=c9;function h9(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 d9=h9;function p9(){return[]}var m9=p9,v9=d9,g9=m9,y9=Object.prototype,x9=y9.propertyIsEnumerable,rP=Object.getOwnPropertySymbols,_9=rP?function(e){return e==null?[]:(e=Object(e),v9(rP(e),function(t){return x9.call(e,t)}))}:g9,b9=_9;function w9(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var S9=w9,P9=Ai,O9=Ei,T9="[object Arguments]";function A9(e){return O9(e)&&P9(e)==T9}var E9=A9,iP=E9,k9=Ei,yC=Object.prototype,M9=yC.hasOwnProperty,C9=yC.propertyIsEnumerable,j9=iP(function(){return arguments}())?iP:function(e){return k9(e)&&M9.call(e,"callee")&&!C9.call(e,"callee")},S_=j9,id={exports:{}};function $9(){return!1}var N9=$9;id.exports;(function(e,t){var n=Gr,r=N9,i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,s=o&&o.exports===i,l=s?n.Buffer:void 0,u=l?l.isBuffer:void 0,f=u||r;e.exports=f})(id,id.exports);var xC=id.exports,L9=9007199254740991,I9=/^(?:0|[1-9]\d*)$/;function D9(e,t){var n=typeof e;return t=t??L9,!!t&&(n=="number"||n!="symbol"&&I9.test(e))&&e>-1&&e%1==0&&e<t}var P_=D9,R9=9007199254740991;function z9(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=R9}var O_=z9,B9=Ai,F9=O_,V9=Ei,U9="[object Arguments]",W9="[object Array]",H9="[object Boolean]",Z9="[object Date]",G9="[object Error]",K9="[object Function]",q9="[object Map]",X9="[object Number]",Y9="[object Object]",Q9="[object RegExp]",J9="[object Set]",e7="[object String]",t7="[object WeakMap]",n7="[object ArrayBuffer]",r7="[object DataView]",i7="[object Float32Array]",o7="[object Float64Array]",a7="[object Int8Array]",s7="[object Int16Array]",l7="[object Int32Array]",u7="[object Uint8Array]",c7="[object Uint8ClampedArray]",f7="[object Uint16Array]",h7="[object Uint32Array]",et={};et[i7]=et[o7]=et[a7]=et[s7]=et[l7]=et[u7]=et[c7]=et[f7]=et[h7]=!0;et[U9]=et[W9]=et[n7]=et[H9]=et[r7]=et[Z9]=et[G9]=et[K9]=et[q9]=et[X9]=et[Y9]=et[Q9]=et[J9]=et[e7]=et[t7]=!1;function d7(e){return V9(e)&&F9(e.length)&&!!et[B9(e)]}var p7=d7;function m7(e){return function(t){return e(t)}}var _C=m7,od={exports:{}};od.exports;(function(e,t){var n=EM,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,s=o&&n.process,l=function(){try{var u=i&&i.require&&i.require("util").types;return u||s&&s.binding&&s.binding("util")}catch{}}();e.exports=l})(od,od.exports);var v7=od.exports,g7=p7,y7=_C,oP=v7,aP=oP&&oP.isTypedArray,x7=aP?y7(aP):g7,bC=x7,_7=S9,b7=S_,w7=Pn,S7=xC,P7=P_,O7=bC,T7=Object.prototype,A7=T7.hasOwnProperty;function E7(e,t){var n=w7(e),r=!n&&b7(e),i=!n&&!r&&S7(e),o=!n&&!r&&!i&&O7(e),s=n||r||i||o,l=s?_7(e.length,String):[],u=l.length;for(var f in e)(t||A7.call(e,f))&&!(s&&(f=="length"||i&&(f=="offset"||f=="parent")||o&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||P7(f,u)))&&l.push(f);return l}var k7=E7,M7=Object.prototype;function C7(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||M7;return e===n}var j7=C7;function $7(e,t){return function(n){return e(t(n))}}var wC=$7,N7=wC,L7=N7(Object.keys,Object),I7=L7,D7=j7,R7=I7,z7=Object.prototype,B7=z7.hasOwnProperty;function F7(e){if(!D7(e))return R7(e);var t=[];for(var n in Object(e))B7.call(e,n)&&n!="constructor"&&t.push(n);return t}var V7=F7,U7=a_,W7=O_;function H7(e){return e!=null&&W7(e.length)&&!U7(e)}var jc=H7,Z7=k7,G7=V7,K7=jc;function q7(e){return K7(e)?Z7(e):G7(e)}var Dp=q7,X7=f9,Y7=b9,Q7=Dp;function J7(e){return X7(e,Q7,Y7)}var eH=J7,sP=eH,tH=1,nH=Object.prototype,rH=nH.hasOwnProperty;function iH(e,t,n,r,i,o){var s=n&tH,l=sP(e),u=l.length,f=sP(t),h=f.length;if(u!=h&&!s)return!1;for(var d=u;d--;){var m=l[d];if(!(s?m in t:rH.call(t,m)))return!1}var v=o.get(e),b=o.get(t);if(v&&b)return v==t&&b==e;var x=!0;o.set(e,t),o.set(t,e);for(var S=s;++d<u;){m=l[d];var y=e[m],_=t[m];if(r)var w=s?r(_,y,m,t,e,o):r(y,_,m,e,t,o);if(!(w===void 0?y===_||i(y,_,n,r,o):w)){x=!1;break}S||(S=m=="constructor")}if(x&&!S){var E=e.constructor,P=t.constructor;E!=P&&"constructor"in e&&"constructor"in t&&!(typeof E=="function"&&E instanceof E&&typeof P=="function"&&P instanceof P)&&(x=!1)}return o.delete(e),o.delete(t),x}var oH=iH,aH=fa,sH=Gr,lH=aH(sH,"DataView"),uH=lH,cH=fa,fH=Gr,hH=cH(fH,"Promise"),dH=hH,pH=fa,mH=Gr,vH=pH(mH,"Set"),SC=vH,gH=fa,yH=Gr,xH=gH(yH,"WeakMap"),_H=xH,my=uH,vy=l_,gy=dH,yy=SC,xy=_H,PC=Ai,Js=MM,lP="[object Map]",bH="[object Object]",uP="[object Promise]",cP="[object Set]",fP="[object WeakMap]",hP="[object DataView]",wH=Js(my),SH=Js(vy),PH=Js(gy),OH=Js(yy),TH=Js(xy),No=PC;(my&&No(new my(new ArrayBuffer(1)))!=hP||vy&&No(new vy)!=lP||gy&&No(gy.resolve())!=uP||yy&&No(new yy)!=cP||xy&&No(new xy)!=fP)&&(No=function(e){var t=PC(e),n=t==bH?e.constructor:void 0,r=n?Js(n):"";if(r)switch(r){case wH:return hP;case SH:return lP;case PH:return uP;case OH:return cP;case TH:return fP}return t});var AH=No,gv=hC,EH=vC,kH=a9,MH=oH,dP=AH,pP=Pn,mP=xC,CH=bC,jH=1,vP="[object Arguments]",gP="[object Array]",Uf="[object Object]",$H=Object.prototype,yP=$H.hasOwnProperty;function NH(e,t,n,r,i,o){var s=pP(e),l=pP(t),u=s?gP:dP(e),f=l?gP:dP(t);u=u==vP?Uf:u,f=f==vP?Uf:f;var h=u==Uf,d=f==Uf,m=u==f;if(m&&mP(e)){if(!mP(t))return!1;s=!0,h=!1}if(m&&!h)return o||(o=new gv),s||CH(e)?EH(e,t,n,r,i,o):kH(e,t,u,n,r,i,o);if(!(n&jH)){var v=h&&yP.call(e,"__wrapped__"),b=d&&yP.call(t,"__wrapped__");if(v||b){var x=v?e.value():e,S=b?t.value():t;return o||(o=new gv),i(x,S,n,r,o)}}return m?(o||(o=new gv),MH(e,t,n,r,i,o)):!1}var LH=NH,IH=LH,xP=Ei;function OC(e,t,n,r,i){return e===t?!0:e==null||t==null||!xP(e)&&!xP(t)?e!==e&&t!==t:IH(e,t,n,r,OC,i)}var T_=OC,DH=hC,RH=T_,zH=1,BH=2;function FH(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],h=l[1];if(s&&l[2]){if(f===void 0&&!(u in e))return!1}else{var d=new DH;if(r)var m=r(f,h,u,e,t,d);if(!(m===void 0?RH(h,f,zH|BH,r,d):m))return!1}}return!0}var VH=FH,UH=po;function WH(e){return e===e&&!UH(e)}var TC=WH,HH=TC,ZH=Dp;function GH(e){for(var t=ZH(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,HH(i)]}return t}var KH=GH;function qH(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var AC=qH,XH=VH,YH=KH,QH=AC;function JH(e){var t=YH(e);return t.length==1&&t[0][2]?QH(t[0][0],t[0][1]):function(n){return n===e||XH(n,e,t)}}var eZ=JH;function tZ(e,t){return e!=null&&t in Object(e)}var nZ=tZ,rZ=LM,iZ=S_,oZ=Pn,aZ=P_,sZ=O_,lZ=wp;function uZ(e,t,n){t=rZ(t,e);for(var r=-1,i=t.length,o=!1;++r<i;){var s=lZ(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&&sZ(i)&&aZ(s,i)&&(oZ(e)||iZ(e)))}var cZ=uZ,fZ=nZ,hZ=cZ;function dZ(e,t){return e!=null&&hZ(e,t,fZ)}var pZ=dZ,mZ=T_,vZ=IM,gZ=pZ,yZ=o_,xZ=TC,_Z=AC,bZ=wp,wZ=1,SZ=2;function PZ(e,t){return yZ(e)&&xZ(t)?_Z(bZ(e),t):function(n){var r=vZ(n,e);return r===void 0&&r===t?gZ(n,e):mZ(t,r,wZ|SZ)}}var OZ=PZ;function TZ(e){return e}var el=TZ;function AZ(e){return function(t){return t==null?void 0:t[e]}}var EZ=AZ,kZ=h_;function MZ(e){return function(t){return kZ(t,e)}}var CZ=MZ,jZ=EZ,$Z=CZ,NZ=o_,LZ=wp;function IZ(e){return NZ(e)?jZ(LZ(e)):$Z(e)}var DZ=IZ,RZ=eZ,zZ=OZ,BZ=el,FZ=Pn,VZ=DZ;function UZ(e){return typeof e=="function"?e:e==null?BZ:typeof e=="object"?FZ(e)?zZ(e[0],e[1]):RZ(e):VZ(e)}var mo=UZ;function WZ(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 EC=WZ;function HZ(e){return e!==e}var ZZ=HZ;function GZ(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}var KZ=GZ,qZ=EC,XZ=ZZ,YZ=KZ;function QZ(e,t,n){return t===t?YZ(e,t,n):qZ(e,XZ,n)}var JZ=QZ,eG=JZ;function tG(e,t){var n=e==null?0:e.length;return!!n&&eG(e,t,0)>-1}var nG=tG;function rG(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 iG=rG;function oG(){}var aG=oG,yv=SC,sG=aG,lG=w_,uG=1/0,cG=yv&&1/lG(new yv([,-0]))[1]==uG?function(e){return new yv(e)}:sG,fG=cG,hG=dC,dG=nG,pG=iG,mG=mC,vG=fG,gG=w_,yG=200;function xG(e,t,n){var r=-1,i=dG,o=e.length,s=!0,l=[],u=l;if(n)s=!1,i=pG;else if(o>=yG){var f=t?null:vG(e);if(f)return gG(f);s=!1,i=mG,u=new hG}else u=t?[]:l;e:for(;++r<o;){var h=e[r],d=t?t(h):h;if(h=n||h!==0?h:0,s&&d===d){for(var m=u.length;m--;)if(u[m]===d)continue e;t&&u.push(d),l.push(h)}else i(u,d,n)||(u!==l&&u.push(d),l.push(h))}return l}var _G=xG,bG=mo,wG=_G;function SG(e,t){return e&&e.length?wG(e,bG(t)):[]}var PG=SG;const _P=Ge(PG);function kC(e,t,n){return t===!0?_P(e,n):Se(t)?_P(e,t):e}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)}var OG=["ref"];function bP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ti(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bP(Object(n),!0).forEach(function(r){Rp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function TG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,CC(r.key),r)}}function AG(e,t,n){return t&&wP(e.prototype,t),n&&wP(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function EG(e,t,n){return t=ad(t),kG(e,MC()?Reflect.construct(t,n||[],ad(e).constructor):t.apply(e,n))}function kG(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 MG(e)}function MG(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function MC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(MC=function(){return!!e})()}function ad(e){return ad=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ad(e)}function CG(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_y(e,t)}function _y(e,t){return _y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},_y(e,t)}function Rp(e,t,n){return t=CC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CC(e){var t=jG(e,"string");return ys(t)=="symbol"?t:t+""}function jG(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)}function $G(e,t){if(e==null)return{};var n=NG(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 NG(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 LG(e){return e.value}function IG(e,t){if(I.isValidElement(e))return I.cloneElement(e,t);if(typeof e=="function")return I.createElement(e,t);t.ref;var n=$G(t,OG);return I.createElement(b_,n)}var SP=1,rs=function(e){function t(){var n;TG(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=EG(this,t,[].concat(i)),Rp(n,"lastBoundingBox",{width:-1,height:-1}),n}return CG(t,e),AG(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();return r.height=this.wrapperNode.offsetHeight,r.width=this.wrapperNode.offsetWidth,r}return null}},{key:"updateBBox",value:function(){var r=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>SP||Math.abs(i.height-this.lastBoundingBox.height)>SP)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,r&&r(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,r&&r(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?ti({},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,h=i.chartHeight,d,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();d={left:((f||0)-v.width)/2}}else d=s==="right"?{right:u&&u.right||0}:{left:u&&u.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(l==="middle"){var b=this.getBBoxSnapshot();m={top:((h||0)-b.height)/2}}else m=l==="bottom"?{bottom:u&&u.bottom||0}:{top:u&&u.top||0};return ti(ti({},d),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,h=i.payload,d=ti(ti({position:"absolute",width:s||"auto",height:l||"auto"},this.getDefaultPosition(u)),u);return I.createElement("div",{className:"recharts-legend-wrapper",style:d,ref:function(v){r.wrapperNode=v}},IG(o,ti(ti({},this.props),{},{payload:kC(h,f,LG)})))}}],[{key:"getWithHeight",value:function(r,i){var o=ti(ti({},this.defaultProps),r.props),s=o.layout;return s==="vertical"&&ie(r.props.height)?{height:r.props.height}:s==="horizontal"?{width:r.props.width||i}:null}}])}(j.PureComponent);Rp(rs,"displayName","Legend");Rp(rs,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var PP=Mc,DG=S_,RG=Pn,OP=PP?PP.isConcatSpreadable:void 0;function zG(e){return RG(e)||DG(e)||!!(OP&&e&&e[OP])}var BG=zG,FG=gC,VG=BG;function jC(e,t,n,r,i){var o=-1,s=e.length;for(n||(n=VG),i||(i=[]);++o<s;){var l=e[o];t>0&&n(l)?t>1?jC(l,t-1,n,r,i):FG(i,l):r||(i[i.length]=l)}return i}var $C=jC;function UG(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 WG=UG,HG=WG,ZG=HG(),GG=ZG,KG=GG,qG=Dp;function XG(e,t){return e&&KG(e,t,qG)}var NC=XG,YG=jc;function QG(e,t){return function(n,r){if(n==null)return n;if(!YG(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 JG=QG,eK=NC,tK=JG,nK=tK(eK),A_=nK,rK=A_,iK=jc;function oK(e,t){var n=-1,r=iK(e)?Array(e.length):[];return rK(e,function(i,o,s){r[++n]=t(i,o,s)}),r}var LC=oK;function aK(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var sK=aK,TP=Zs;function lK(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,o=TP(e),s=t!==void 0,l=t===null,u=t===t,f=TP(t);if(!l&&!f&&!o&&e>t||o&&s&&u&&!l&&!f||r&&s&&u||!n&&u||!i)return 1;if(!r&&!o&&!f&&e<t||f&&n&&i&&!r&&!o||l&&n&&i||!s&&i||!u)return-1}return 0}var uK=lK,cK=uK;function fK(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,s=i.length,l=n.length;++r<s;){var u=cK(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 hK=fK,xv=f_,dK=h_,pK=mo,mK=LC,vK=sK,gK=_C,yK=hK,xK=el,_K=Pn;function bK(e,t,n){t.length?t=xv(t,function(o){return _K(o)?function(s){return dK(s,o.length===1?o[0]:o)}:o}):t=[xK];var r=-1;t=xv(t,gK(pK));var i=mK(e,function(o,s,l){var u=xv(t,function(f){return f(o)});return{criteria:u,index:++r,value:o}});return vK(i,function(o,s){return yK(o,s,n)})}var wK=bK;function SK(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 PK=SK,OK=PK,AP=Math.max;function TK(e,t,n){return t=AP(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=AP(r.length-t,0),s=Array(o);++i<o;)s[i]=r[t+i];i=-1;for(var l=Array(t+1);++i<t;)l[i]=r[i];return l[t]=n(s),OK(e,this,l)}}var AK=TK;function EK(e){return function(){return e}}var kK=EK,MK=fa,CK=function(){try{var e=MK(Object,"defineProperty");return e({},"",{}),e}catch{}}(),IC=CK,jK=kK,EP=IC,$K=el,NK=EP?function(e,t){return EP(e,"toString",{configurable:!0,enumerable:!1,value:jK(t),writable:!0})}:$K,LK=NK,IK=800,DK=16,RK=Date.now;function zK(e){var t=0,n=0;return function(){var r=RK(),i=DK-(r-n);if(n=r,i>0){if(++t>=IK)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var BK=zK,FK=LK,VK=BK,UK=VK(FK),WK=UK,HK=el,ZK=AK,GK=WK;function KK(e,t){return GK(ZK(e,t,HK),e+"")}var qK=KK,XK=s_,YK=jc,QK=P_,JK=po;function eq(e,t,n){if(!JK(n))return!1;var r=typeof t;return(r=="number"?YK(n)&&QK(t,n.length):r=="string"&&t in n)?XK(n[t],e):!1}var zp=eq,tq=$C,nq=wK,rq=qK,kP=zp,iq=rq(function(e,t){if(e==null)return[];var n=t.length;return n>1&&kP(e,t[0],t[1])?t=[]:n>2&&kP(t[0],t[1],t[2])&&(t=[t[0]]),nq(e,tq(t,1),[])}),oq=iq;const E_=Ge(oq);function Fu(e){"@babel/helpers - typeof";return Fu=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},Fu(e)}function by(){return by=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},by.apply(this,arguments)}function aq(e,t){return cq(e)||uq(e,t)||lq(e,t)||sq()}function sq(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
318
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lq(e,t){if(e){if(typeof e=="string")return MP(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return MP(e,t)}}function MP(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function uq(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(h){f=!0,i=h}finally{try{if(!u&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw i}}return l}}function cq(e){if(Array.isArray(e))return e}function CP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function _v(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?CP(Object(n),!0).forEach(function(r){fq(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 fq(e,t,n){return t=hq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hq(e){var t=dq(e,"string");return Fu(t)=="symbol"?t:t+""}function dq(e,t){if(Fu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Fu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pq(e){return Array.isArray(e)&&Ct(e[0])&&Ct(e[1])?e.join(" ~ "):e}var mq=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,h=t.payload,d=t.formatter,m=t.itemSorter,v=t.wrapperClassName,b=t.labelClassName,x=t.label,S=t.labelFormatter,y=t.accessibilityLayer,_=y===void 0?!1:y,w=function(){if(h&&h.length){var R={padding:0,margin:0},G=(m?E_(h,m):h).map(function(W,H){if(W.type==="none")return null;var Z=_v({display:"block",paddingTop:4,paddingBottom:4,color:W.color||"#000"},l),K=W.formatter||d||pq,D=W.value,q=W.name,V=D,te=q;if(K&&V!=null&&te!=null){var Y=K(D,q,W,H,h);if(Array.isArray(Y)){var ae=aq(Y,2);V=ae[0],te=ae[1]}else V=Y}return I.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(H),style:Z},Ct(te)?I.createElement("span",{className:"recharts-tooltip-item-name"},te):null,Ct(te)?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"},W.unit||""))});return I.createElement("ul",{className:"recharts-tooltip-item-list",style:R},G)}return null},E=_v({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},o),P=_v({margin:0},f),A=!Me(x),M=A?x:"",C=Ne("recharts-default-tooltip",v),$=Ne("recharts-tooltip-label",b);A&&S&&h!==void 0&&h!==null&&(M=S(x,h));var B=_?{role:"status","aria-live":"assertive"}:{};return I.createElement("div",by({className:C,style:E},B),I.createElement("p",{className:$,style:P},I.isValidElement(M)?M:"".concat(M)),w())};function Vu(e){"@babel/helpers - typeof";return Vu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vu(e)}function Wf(e,t,n){return t=vq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vq(e){var t=gq(e,"string");return Vu(t)=="symbol"?t:t+""}function gq(e,t){if(Vu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Vu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var jl="recharts-tooltip-wrapper",yq={visibility:"hidden"};function xq(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return Ne(jl,Wf(Wf(Wf(Wf({},"".concat(jl,"-right"),ie(n)&&t&&ie(t.x)&&n>=t.x),"".concat(jl,"-left"),ie(n)&&t&&ie(t.x)&&n<t.x),"".concat(jl,"-bottom"),ie(r)&&t&&ie(t.y)&&r>=t.y),"".concat(jl,"-top"),ie(r)&&t&&ie(t.y)&&r<t.y))}function jP(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,i=e.offsetTopLeft,o=e.position,s=e.reverseDirection,l=e.tooltipDimension,u=e.viewBox,f=e.viewBoxDimension;if(o&&ie(o[r]))return o[r];var h=n[r]-l-i,d=n[r]+i;if(t[r])return s[r]?h:d;if(s[r]){var m=h,v=u[r];return m<v?Math.max(d,u[r]):Math.max(h,u[r])}var b=d+l,x=u[r]+f;return b>x?Math.max(h,u[r]):Math.max(d,u[r])}function _q(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 bq(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,h,d;return s.height>0&&s.width>0&&n?(h=jP({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:i,reverseDirection:o,tooltipDimension:s.width,viewBox:u,viewBoxDimension:u.width}),d=jP({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:i,reverseDirection:o,tooltipDimension:s.height,viewBox:u,viewBoxDimension:u.height}),f=_q({translateX:h,translateY:d,useTranslate3d:l})):f=yq,{cssProperties:f,cssClasses:xq({translateX:h,translateY:d,coordinate:n})}}function xs(e){"@babel/helpers - typeof";return xs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xs(e)}function $P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function NP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$P(Object(n),!0).forEach(function(r){Sy(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$P(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sq(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,RC(r.key),r)}}function Pq(e,t,n){return t&&Sq(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Oq(e,t,n){return t=sd(t),Tq(e,DC()?Reflect.construct(t,n||[],sd(e).constructor):t.apply(e,n))}function Tq(e,t){if(t&&(xs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Aq(e)}function Aq(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function DC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(DC=function(){return!!e})()}function sd(e){return sd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},sd(e)}function Eq(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wy(e,t)}function wy(e,t){return wy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},wy(e,t)}function Sy(e,t,n){return t=RC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RC(e){var t=kq(e,"string");return xs(t)=="symbol"?t:t+""}function kq(e,t){if(xs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(xs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var LP=1,Mq=function(e){function t(){var n;wq(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=Oq(this,t,[].concat(i)),Sy(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),Sy(n,"handleKeyDown",function(s){if(s.key==="Escape"){var l,u,f,h;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=(h=n.props.coordinate)===null||h===void 0?void 0:h.y)!==null&&f!==void 0?f:0}})}}),n}return Eq(t,e),Pq(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>LP||Math.abs(r.height-this.state.lastBoundingBox.height)>LP)&&this.setState({lastBoundingBox:{width:r.width,height:r.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var r,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,i=this.props,o=i.active,s=i.allowEscapeViewBox,l=i.animationDuration,u=i.animationEasing,f=i.children,h=i.coordinate,d=i.hasPayload,m=i.isAnimationActive,v=i.offset,b=i.position,x=i.reverseDirection,S=i.useTranslate3d,y=i.viewBox,_=i.wrapperStyle,w=bq({allowEscapeViewBox:s,coordinate:h,offsetTopLeft:v,position:b,reverseDirection:x,tooltipBox:this.state.lastBoundingBox,useTranslate3d:S,viewBox:y}),E=w.cssClasses,P=w.cssProperties,A=NP(NP({transition:m&&o?"transform ".concat(l,"ms ").concat(u):void 0},P),{},{pointerEvents:"none",visibility:!this.state.dismissed&&o&&d?"visible":"hidden",position:"absolute",top:0,left:0},_);return I.createElement("div",{tabIndex:-1,className:E,style:A,ref:function(C){r.wrapperNode=C}},f)}}])}(j.PureComponent),Cq=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},tl={isSsr:Cq()};function _s(e){"@babel/helpers - typeof";return _s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_s(e)}function IP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function DP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?IP(Object(n),!0).forEach(function(r){k_(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $q(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 Nq(e,t,n){return t&&$q(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Lq(e,t,n){return t=ld(t),Iq(e,zC()?Reflect.construct(t,n||[],ld(e).constructor):t.apply(e,n))}function Iq(e,t){if(t&&(_s(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Dq(e)}function Dq(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 ld(e){return ld=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ld(e)}function Rq(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Py(e,t)}function Py(e,t){return Py=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Py(e,t)}function k_(e,t,n){return t=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=zq(e,"string");return _s(t)=="symbol"?t:t+""}function zq(e,t){if(_s(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(_s(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Bq(e){return e.dataKey}function Fq(e,t){return I.isValidElement(e)?I.cloneElement(e,t):typeof e=="function"?I.createElement(e,t):I.createElement(mq,t)}var ri=function(e){function t(){return jq(this,t),Lq(this,t,arguments)}return Rq(t,e),Nq(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,h=i.coordinate,d=i.filterNull,m=i.isAnimationActive,v=i.offset,b=i.payload,x=i.payloadUniqBy,S=i.position,y=i.reverseDirection,_=i.useTranslate3d,w=i.viewBox,E=i.wrapperStyle,P=b??[];d&&P.length&&(P=kC(b.filter(function(M){return M.value!=null&&(M.hide!==!0||r.props.includeHidden)}),x,Bq));var A=P.length>0;return I.createElement(Mq,{allowEscapeViewBox:s,animationDuration:l,animationEasing:u,isAnimationActive:m,active:o,coordinate:h,hasPayload:A,offset:v,position:S,reverseDirection:y,useTranslate3d:_,viewBox:w,wrapperStyle:E},Fq(f,DP(DP({},this.props),{},{payload:P})))}}])}(j.PureComponent);k_(ri,"displayName","Tooltip");k_(ri,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!tl.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 Vq=Gr,Uq=function(){return Vq.Date.now()},Wq=Uq,Hq=/\s/;function Zq(e){for(var t=e.length;t--&&Hq.test(e.charAt(t)););return t}var Gq=Zq,Kq=Gq,qq=/^\s+/;function Xq(e){return e&&e.slice(0,Kq(e)+1).replace(qq,"")}var Yq=Xq,Qq=Yq,RP=po,Jq=Zs,zP=NaN,eX=/^[-+]0x[0-9a-f]+$/i,tX=/^0b[01]+$/i,nX=/^0o[0-7]+$/i,rX=parseInt;function iX(e){if(typeof e=="number")return e;if(Jq(e))return zP;if(RP(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=RP(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Qq(e);var n=tX.test(e);return n||nX.test(e)?rX(e.slice(2),n?2:8):eX.test(e)?zP:+e}var FC=iX,oX=po,bv=Wq,BP=FC,aX="Expected a function",sX=Math.max,lX=Math.min;function uX(e,t,n){var r,i,o,s,l,u,f=0,h=!1,d=!1,m=!0;if(typeof e!="function")throw new TypeError(aX);t=BP(t)||0,oX(n)&&(h=!!n.leading,d="maxWait"in n,o=d?sX(BP(n.maxWait)||0,t):o,m="trailing"in n?!!n.trailing:m);function v(A){var M=r,C=i;return r=i=void 0,f=A,s=e.apply(C,M),s}function b(A){return f=A,l=setTimeout(y,t),h?v(A):s}function x(A){var M=A-u,C=A-f,$=t-M;return d?lX($,o-C):$}function S(A){var M=A-u,C=A-f;return u===void 0||M>=t||M<0||d&&C>=o}function y(){var A=bv();if(S(A))return _(A);l=setTimeout(y,x(A))}function _(A){return l=void 0,m&&r?v(A):(r=i=void 0,s)}function w(){l!==void 0&&clearTimeout(l),f=0,r=u=i=l=void 0}function E(){return l===void 0?s:_(bv())}function P(){var A=bv(),M=S(A);if(r=arguments,i=this,u=A,M){if(l===void 0)return b(u);if(d)return clearTimeout(l),l=setTimeout(y,t),v(u)}return l===void 0&&(l=setTimeout(y,t)),s}return P.cancel=w,P.flush=E,P}var cX=uX,fX=cX,hX=po,dX="Expected a function";function pX(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(dX);return hX(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),fX(e,t,{leading:r,maxWait:t,trailing:i})}var mX=pX;const VC=Ge(mX);function Uu(e){"@babel/helpers - typeof";return Uu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Uu(e)}function FP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Hf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?FP(Object(n),!0).forEach(function(r){vX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function vX(e,t,n){return t=gX(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gX(e){var t=yX(e,"string");return Uu(t)=="symbol"?t:t+""}function yX(e,t){if(Uu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Uu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xX(e,t){return SX(e)||wX(e,t)||bX(e,t)||_X()}function _X(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
319
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bX(e,t){if(e){if(typeof e=="string")return VP(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return VP(e,t)}}function VP(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function wX(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(h){f=!0,i=h}finally{try{if(!u&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw i}}return l}}function SX(e){if(Array.isArray(e))return e}var UP=j.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,i=r===void 0?{width:-1,height:-1}:r,o=e.width,s=o===void 0?"100%":o,l=e.height,u=l===void 0?"100%":l,f=e.minWidth,h=f===void 0?0:f,d=e.minHeight,m=e.maxHeight,v=e.children,b=e.debounce,x=b===void 0?0:b,S=e.id,y=e.className,_=e.onResize,w=e.style,E=w===void 0?{}:w,P=j.useRef(null),A=j.useRef();A.current=_,j.useImperativeHandle(t,function(){return Object.defineProperty(P.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),P.current},configurable:!0})});var M=j.useState({containerWidth:i.width,containerHeight:i.height}),C=xX(M,2),$=C[0],B=C[1],z=j.useCallback(function(G,W){B(function(H){var Z=Math.round(G),K=Math.round(W);return H.containerWidth===Z&&H.containerHeight===K?H:{containerWidth:Z,containerHeight:K}})},[]);j.useEffect(function(){var G=function(q){var V,te=q[0].contentRect,Y=te.width,ae=te.height;z(Y,ae),(V=A.current)===null||V===void 0||V.call(A,Y,ae)};x>0&&(G=VC(G,x,{trailing:!0,leading:!1}));var W=new ResizeObserver(G),H=P.current.getBoundingClientRect(),Z=H.width,K=H.height;return z(Z,K),W.observe(P.current),function(){W.disconnect()}},[z,x]);var R=j.useMemo(function(){var G=$.containerWidth,W=$.containerHeight;if(G<0||W<0)return null;mi(Fo(s)||Fo(u),`The width(%s) and height(%s) are both fixed numbers,
|
|
320
|
+
maybe you don't need to use a ResponsiveContainer.`,s,u),mi(!n||n>0,"The aspect(%s) must be greater than zero.",n);var H=Fo(s)?G:s,Z=Fo(u)?W:u;n&&n>0&&(H?Z=H/n:Z&&(H=Z*n),m&&Z>m&&(Z=m)),mi(H>0||Z>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
|
321
|
+
please check the style of container, or the props width(%s) and height(%s),
|
|
322
|
+
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
|
323
|
+
height and width.`,H,Z,s,u,h,d,n);var K=!Array.isArray(v)&&pi(v.type).endsWith("Chart");return I.Children.map(v,function(D){return I.isValidElement(D)?j.cloneElement(D,Hf({width:H,height:Z},K?{style:Hf({height:"100%",width:"100%",maxHeight:Z,maxWidth:H},D.props.style)}:{})):D})},[n,v,u,m,d,h,$,s]);return I.createElement("div",{id:S?"".concat(S):void 0,className:Ne("recharts-responsive-container",y),style:Hf(Hf({},E),{},{width:s,height:u,minWidth:h,minHeight:d,maxHeight:m}),ref:P},R)}),M_=function(t){return null};M_.displayName="Cell";function Wu(e){"@babel/helpers - typeof";return Wu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wu(e)}function WP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Oy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?WP(Object(n),!0).forEach(function(r){PX(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 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 Wu(t)=="symbol"?t:t+""}function TX(e,t){if(Wu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Wu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Aa={widthCache:{},cacheCount:0},AX=2e3,EX={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},HP="recharts_measurement_span";function kX(e){var t=Oy({},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||tl.isSsr)return{width:0,height:0};var r=kX(n),i=JSON.stringify({text:t,copyStyle:r});if(Aa.widthCache[i])return Aa.widthCache[i];try{var o=document.getElementById(HP);o||(o=document.createElement("span"),o.setAttribute("id",HP),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var s=Oy(Oy({},EX),r);Object.assign(o.style,s),o.textContent="".concat(t);var l=o.getBoundingClientRect(),u={width:l.width,height:l.height};return Aa.widthCache[i]=u,++Aa.cacheCount>AX&&(Aa.cacheCount=0,Aa.widthCache={}),u}catch{return{width:0,height:0}}},MX=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Hu(e){"@babel/helpers - typeof";return Hu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hu(e)}function ud(e,t){return NX(e)||$X(e,t)||jX(e,t)||CX()}function CX(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
324
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jX(e,t){if(e){if(typeof e=="string")return ZP(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ZP(e,t)}}function ZP(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $X(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(h){f=!0,i=h}finally{try{if(!u&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw i}}return l}}function NX(e){if(Array.isArray(e))return e}function LX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,DX(r.key),r)}}function IX(e,t,n){return t&&GP(e.prototype,t),n&&GP(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function DX(e){var t=RX(e,"string");return Hu(t)=="symbol"?t:t+""}function RX(e,t){if(Hu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Hu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var KP=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,qP=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,zX=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,BX=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,UC={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},FX=Object.keys(UC),Ga="NaN";function VX(e,t){return e*UC[t]}var Zf=function(){function e(t,n){LX(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=""),FX.includes(n)&&(this.num=VX(t,n),this.unit="px")}return IX(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=BX.exec(n))!==null&&r!==void 0?r:[],o=ud(i,3),s=o[1],l=o[2];return new e(parseFloat(s),l??"")}}])}();function WC(e){if(e.includes(Ga))return Ga;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=KP.exec(t))!==null&&n!==void 0?n:[],i=ud(r,4),o=i[1],s=i[2],l=i[3],u=Zf.parse(o??""),f=Zf.parse(l??""),h=s==="*"?u.multiply(f):u.divide(f);if(h.isNaN())return Ga;t=t.replace(KP,h.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var d,m=(d=qP.exec(t))!==null&&d!==void 0?d:[],v=ud(m,4),b=v[1],x=v[2],S=v[3],y=Zf.parse(b??""),_=Zf.parse(S??""),w=x==="+"?y.add(_):y.subtract(_);if(w.isNaN())return Ga;t=t.replace(qP,w.toString())}return t}var XP=/\(([^()]*)\)/;function UX(e){for(var t=e;t.includes("(");){var n=XP.exec(t),r=ud(n,2),i=r[1];t=t.replace(XP,WC(i))}return t}function WX(e){var t=e.replace(/\s+/g,"");return t=UX(t),t=WC(t),t}function HX(e){try{return WX(e)}catch{return Ga}}function wv(e){var t=HX(e.slice(5,-1));return t===Ga?"":t}var ZX=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],GX=["dx","dy","angle","className","breakAll"];function Ty(){return Ty=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ty.apply(this,arguments)}function YP(e,t){if(e==null)return{};var n=KX(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 KX(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function QP(e,t){return QX(e)||YX(e,t)||XX(e,t)||qX()}function qX(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
325
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function XX(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 YX(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(h){f=!0,i=h}finally{try{if(!u&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw i}}return l}}function QX(e){if(Array.isArray(e))return e}var HC=/[ \f\n\r\t\v\u2028\u2029]+/,ZC=function(t){var n=t.children,r=t.breakAll,i=t.style;try{var o=[];Me(n)||(r?o=n.toString().split(""):o=n.toString().split(HC));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}},JX=function(t,n,r,i,o){var s=t.maxLines,l=t.children,u=t.style,f=t.breakAll,h=ie(s),d=l,m=function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return H.reduce(function(Z,K){var D=K.word,q=K.width,V=Z[Z.length-1];if(V&&(i==null||o||V.width+q+r<Number(i)))V.words.push(D),V.width+=q+r;else{var te={words:[D],width:q};Z.push(te)}return Z},[])},v=m(n),b=function(H){return H.reduce(function(Z,K){return Z.width>K.width?Z:K})};if(!h)return v;for(var x="…",S=function(H){var Z=d.slice(0,H),K=ZC({breakAll:f,style:u,children:Z+x}).wordsWithComputedWidth,D=m(K),q=D.length>s||b(D).width>Number(i);return[q,D]},y=0,_=d.length-1,w=0,E;y<=_&&w<=d.length-1;){var P=Math.floor((y+_)/2),A=P-1,M=S(A),C=QP(M,2),$=C[0],B=C[1],z=S(P),R=QP(z,1),G=R[0];if(!$&&!G&&(y=P+1),$&&G&&(_=P-1),!$&&G){E=B;break}w++}return E||v},eO=function(t){var n=Me(t)?[]:t.toString().split(HC);return[{words:n}]},eY=function(t){var n=t.width,r=t.scaleToFit,i=t.children,o=t.style,s=t.breakAll,l=t.maxLines;if((n||r)&&!tl.isSsr){var u,f,h=ZC({breakAll:s,children:i,style:o});if(h){var d=h.wordsWithComputedWidth,m=h.spaceWidth;u=d,f=m}else return eO(i);return JX({breakAll:s,children:i,maxLines:l,style:o},u,f,n,r)}return eO(i)},tO="#808080",cd=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,o=i===void 0?0:i,s=t.lineHeight,l=s===void 0?"1em":s,u=t.capHeight,f=u===void 0?"0.71em":u,h=t.scaleToFit,d=h===void 0?!1:h,m=t.textAnchor,v=m===void 0?"start":m,b=t.verticalAnchor,x=b===void 0?"end":b,S=t.fill,y=S===void 0?tO:S,_=YP(t,ZX),w=j.useMemo(function(){return eY({breakAll:_.breakAll,children:_.children,maxLines:_.maxLines,scaleToFit:d,style:_.style,width:_.width})},[_.breakAll,_.children,_.maxLines,d,_.style,_.width]),E=_.dx,P=_.dy,A=_.angle,M=_.className,C=_.breakAll,$=YP(_,GX);if(!Ct(r)||!Ct(o))return null;var B=r+(ie(E)?E:0),z=o+(ie(P)?P:0),R;switch(x){case"start":R=wv("calc(".concat(f,")"));break;case"middle":R=wv("calc(".concat((w.length-1)/2," * -").concat(l," + (").concat(f," / 2))"));break;default:R=wv("calc(".concat(w.length-1," * -").concat(l,")"));break}var G=[];if(d){var W=w[0].width,H=_.width;G.push("scale(".concat((ie(H)?H/W:1)/W,")"))}return A&&G.push("rotate(".concat(A,", ").concat(B,", ").concat(z,")")),G.length&&($.transform=G.join(" ")),I.createElement("text",Ty({},Ee($,!0),{x:B,y:z,className:Ne("recharts-text",M),textAnchor:v,fill:y.includes("url")?tO:y}),w.map(function(Z,K){var D=Z.words.join(C?"":" ");return I.createElement("tspan",{x:B,dy:K===0?R:l,key:"".concat(D,"-").concat(K)},D)}))};function io(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function tY(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function C_(e){let t,n,r;e.length!==2?(t=io,n=(l,u)=>io(e(l),u),r=(l,u)=>e(l)-u):(t=e===io||e===tY?e:nY,n=e,r=e);function i(l,u,f=0,h=l.length){if(f<h){if(t(u,u)!==0)return h;do{const d=f+h>>>1;n(l[d],u)<0?f=d+1:h=d}while(f<h)}return f}function o(l,u,f=0,h=l.length){if(f<h){if(t(u,u)!==0)return h;do{const d=f+h>>>1;n(l[d],u)<=0?f=d+1:h=d}while(f<h)}return f}function s(l,u,f=0,h=l.length){const d=i(l,u,f,h-1);return d>f&&r(l[d-1],u)>-r(l[d],u)?d-1:d}return{left:i,center:s,right:o}}function nY(){return 0}function GC(e){return e===null?NaN:+e}function*rY(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const iY=C_(io),$c=iY.right;C_(GC).center;class nO extends Map{constructor(t,n=sY){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(rO(this,t))}has(t){return super.has(rO(this,t))}set(t,n){return super.set(oY(this,t),n)}delete(t){return super.delete(aY(this,t))}}function rO({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function oY({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function aY({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function sY(e){return e!==null&&typeof e=="object"?e.valueOf():e}function lY(e=io){if(e===io)return KC;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 KC(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const uY=Math.sqrt(50),cY=Math.sqrt(10),fY=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>=uY?10:o>=cY?5:o>=fY?2:1;let l,u,f;return i<0?(f=Math.pow(10,-i)/s,l=Math.round(e*f),u=Math.round(t*f),l/f<e&&++l,u/f>t&&--u,f=-f):(f=Math.pow(10,i)*s,l=Math.round(e/f),u=Math.round(t/f),l*f<e&&++l,u*f>t&&--u),u<l&&.5<=n&&n<2?fd(e,t,n*2):[l,u,f]}function Ay(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,o,s]=r?fd(t,e,n):fd(e,t,n);if(!(o>=i))return[];const l=o-i+1,u=new Array(l);if(r)if(s<0)for(let f=0;f<l;++f)u[f]=(o-f)/-s;else for(let f=0;f<l;++f)u[f]=(o-f)*s;else if(s<0)for(let f=0;f<l;++f)u[f]=(i+f)/-s;else for(let f=0;f<l;++f)u[f]=(i+f)*s;return u}function Ey(e,t,n){return t=+t,e=+e,n=+n,fd(e,t,n)[2]}function ky(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?Ey(t,e,n):Ey(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function iO(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function oO(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function qC(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?KC:lY(i);r>n;){if(r-n>600){const u=r-n+1,f=t-n+1,h=Math.log(u),d=.5*Math.exp(2*h/3),m=.5*Math.sqrt(h*d*(u-d)/u)*(f-u/2<0?-1:1),v=Math.max(n,Math.floor(t-f*d/u+m)),b=Math.min(r,Math.floor(t+(u-f)*d/u+m));qC(e,t,v,b,i)}const o=e[t];let s=n,l=r;for($l(e,n,t),i(e[r],o)>0&&$l(e,n,r);s<l;){for($l(e,s,l),++s,--l;i(e[s],o)<0;)++s;for(;i(e[l],o)>0;)--l}i(e[n],o)===0?$l(e,n,l):(++l,$l(e,l,r)),l<=t&&(n=l+1),t<=l&&(r=l-1)}return e}function $l(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function hY(e,t,n){if(e=Float64Array.from(rY(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return oO(e);if(t>=1)return iO(e);var r,i=(r-1)*t,o=Math.floor(i),s=iO(qC(e,o).subarray(0,o+1)),l=oO(e.subarray(o+1));return s+(l-s)*(i-o)}}function dY(e,t,n=GC){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 pY(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,o=new Array(i);++r<i;)o[r]=e+r*n;return o}function fr(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function ki(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const My=Symbol("implicit");function j_(){var e=new nO,t=[],n=[],r=My;function i(o){let s=e.get(o);if(s===void 0){if(r!==My)return r;e.set(o,s=t.push(o)-1)}return n[s%n.length]}return i.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new nO;for(const s of o)e.has(s)||e.set(s,t.push(s)-1);return i},i.range=function(o){return arguments.length?(n=Array.from(o),i):n.slice()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return j_(t,n).unknown(r)},fr.apply(i,arguments),i}function Zu(){var e=j_().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,o,s,l=!1,u=0,f=0,h=.5;delete e.unknown;function d(){var m=t().length,v=i<r,b=v?i:r,x=v?r:i;o=(x-b)/Math.max(1,m-u+f*2),l&&(o=Math.floor(o)),b+=(x-b-o*(m-u))*h,s=o*(1-u),l&&(b=Math.round(b),s=Math.round(s));var S=pY(m).map(function(y){return b+o*y});return n(v?S.reverse():S)}return e.domain=function(m){return arguments.length?(t(m),d()):t()},e.range=function(m){return arguments.length?([r,i]=m,r=+r,i=+i,d()):[r,i]},e.rangeRound=function(m){return[r,i]=m,r=+r,i=+i,l=!0,d()},e.bandwidth=function(){return s},e.step=function(){return o},e.round=function(m){return arguments.length?(l=!!m,d()):l},e.padding=function(m){return arguments.length?(u=Math.min(1,f=+m),d()):u},e.paddingInner=function(m){return arguments.length?(u=Math.min(1,m),d()):u},e.paddingOuter=function(m){return arguments.length?(f=+m,d()):f},e.align=function(m){return arguments.length?(h=Math.max(0,Math.min(1,m)),d()):h},e.copy=function(){return Zu(t(),[r,i]).round(l).paddingInner(u).paddingOuter(f).align(h)},fr.apply(d(),arguments)}function XC(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return XC(t())},e}function du(){return XC(Zu.apply(null,arguments).paddingInner(1))}function $_(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function YC(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Nc(){}var Gu=.7,hd=1/Gu,is="\\s*([+-]?\\d+)\\s*",Ku="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ur="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",mY=/^#([0-9a-f]{3,8})$/,vY=new RegExp(`^rgb\\(${is},${is},${is}\\)$`),gY=new RegExp(`^rgb\\(${Ur},${Ur},${Ur}\\)$`),yY=new RegExp(`^rgba\\(${is},${is},${is},${Ku}\\)$`),xY=new RegExp(`^rgba\\(${Ur},${Ur},${Ur},${Ku}\\)$`),_Y=new RegExp(`^hsl\\(${Ku},${Ur},${Ur}\\)$`),bY=new RegExp(`^hsla\\(${Ku},${Ur},${Ur},${Ku}\\)$`),aO={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};$_(Nc,qu,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:sO,formatHex:sO,formatHex8:wY,formatHsl:SY,formatRgb:lO,toString:lO});function sO(){return this.rgb().formatHex()}function wY(){return this.rgb().formatHex8()}function SY(){return QC(this).formatHsl()}function lO(){return this.rgb().formatRgb()}function qu(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=mY.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?uO(t):n===3?new xn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Gf(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Gf(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=vY.exec(e))?new xn(t[1],t[2],t[3],1):(t=gY.exec(e))?new xn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=yY.exec(e))?Gf(t[1],t[2],t[3],t[4]):(t=xY.exec(e))?Gf(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=_Y.exec(e))?hO(t[1],t[2]/100,t[3]/100,1):(t=bY.exec(e))?hO(t[1],t[2]/100,t[3]/100,t[4]):aO.hasOwnProperty(e)?uO(aO[e]):e==="transparent"?new xn(NaN,NaN,NaN,0):null}function uO(e){return new xn(e>>16&255,e>>8&255,e&255,1)}function Gf(e,t,n,r){return r<=0&&(e=t=n=NaN),new xn(e,t,n,r)}function PY(e){return e instanceof Nc||(e=qu(e)),e?(e=e.rgb(),new xn(e.r,e.g,e.b,e.opacity)):new xn}function Cy(e,t,n,r){return arguments.length===1?PY(e):new xn(e,t,n,r??1)}function xn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}$_(xn,Cy,YC(Nc,{brighter(e){return e=e==null?hd:Math.pow(hd,e),new xn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Gu:Math.pow(Gu,e),new xn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new xn(qo(this.r),qo(this.g),qo(this.b),dd(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:cO,formatHex:cO,formatHex8:OY,formatRgb:fO,toString:fO}));function cO(){return`#${Vo(this.r)}${Vo(this.g)}${Vo(this.b)}`}function OY(){return`#${Vo(this.r)}${Vo(this.g)}${Vo(this.b)}${Vo((isNaN(this.opacity)?1:this.opacity)*255)}`}function fO(){const e=dd(this.opacity);return`${e===1?"rgb(":"rgba("}${qo(this.r)}, ${qo(this.g)}, ${qo(this.b)}${e===1?")":`, ${e})`}`}function dd(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function qo(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Vo(e){return e=qo(e),(e<16?"0":"")+e.toString(16)}function hO(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new wr(e,t,n,r)}function QC(e){if(e instanceof wr)return new wr(e.h,e.s,e.l,e.opacity);if(e instanceof Nc||(e=qu(e)),!e)return new wr;if(e instanceof wr)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 wr(s,l,u,e.opacity)}function TY(e,t,n,r){return arguments.length===1?QC(e):new wr(e,t,n,r??1)}function wr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}$_(wr,TY,YC(Nc,{brighter(e){return e=e==null?hd:Math.pow(hd,e),new wr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Gu:Math.pow(Gu,e),new wr(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 xn(Sv(e>=240?e-240:e+120,i,r),Sv(e,i,r),Sv(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new wr(dO(this.h),Kf(this.s),Kf(this.l),dd(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=dd(this.opacity);return`${e===1?"hsl(":"hsla("}${dO(this.h)}, ${Kf(this.s)*100}%, ${Kf(this.l)*100}%${e===1?")":`, ${e})`}`}}));function dO(e){return e=(e||0)%360,e<0?e+360:e}function Kf(e){return Math.max(0,Math.min(1,e||0))}function Sv(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const N_=e=>()=>e;function AY(e,t){return function(n){return e+n*t}}function EY(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 kY(e){return(e=+e)==1?JC:function(t,n){return n-t?EY(t,n,e):N_(isNaN(t)?n:t)}}function JC(e,t){var n=t-e;return n?AY(e,n):N_(isNaN(e)?t:e)}const pO=function e(t){var n=kY(t);function r(i,o){var s=n((i=Cy(i)).r,(o=Cy(o)).r),l=n(i.g,o.g),u=n(i.b,o.b),f=JC(i.opacity,o.opacity);return function(h){return i.r=s(h),i.g=l(h),i.b=u(h),i.opacity=f(h),i+""}}return r.gamma=e,r}(1);function MY(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 CY(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function jY(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]=nl(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 $Y(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function pd(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function NY(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]=nl(e[i],t[i]):r[i]=t[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var jy=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Pv=new RegExp(jy.source,"g");function LY(e){return function(){return e}}function IY(e){return function(t){return e(t)+""}}function DY(e,t){var n=jy.lastIndex=Pv.lastIndex=0,r,i,o,s=-1,l=[],u=[];for(e=e+"",t=t+"";(r=jy.exec(e))&&(i=Pv.exec(t));)(o=i.index)>n&&(o=t.slice(n,o),l[s]?l[s]+=o:l[++s]=o),(r=r[0])===(i=i[0])?l[s]?l[s]+=i:l[++s]=i:(l[++s]=null,u.push({i:s,x:pd(r,i)})),n=Pv.lastIndex;return n<t.length&&(o=t.slice(n),l[s]?l[s]+=o:l[++s]=o),l.length<2?u[0]?IY(u[0].x):LY(t):(t=u.length,function(f){for(var h=0,d;h<t;++h)l[(d=u[h]).i]=d.x(f);return l.join("")})}function nl(e,t){var n=typeof t,r;return t==null||n==="boolean"?N_(t):(n==="number"?pd:n==="string"?(r=qu(t))?(t=r,pO):DY:t instanceof qu?pO:t instanceof Date?$Y:CY(t)?MY:Array.isArray(t)?jY:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?NY:pd)(e,t)}function L_(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function RY(e,t){t===void 0&&(t=e,e=nl);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 md(e){return+e}var mO=[0,1];function ln(e){return e}function $y(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:zY(isNaN(t)?NaN:.5)}function BY(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function FY(e,t,n){var r=e[0],i=e[1],o=t[0],s=t[1];return i<r?(r=$y(i,r),o=n(s,o)):(r=$y(r,i),o=n(o,s)),function(l){return o(r(l))}}function VY(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),s=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<r;)i[s]=$y(e[s],e[s+1]),o[s]=n(t[s],t[s+1]);return function(l){var u=$c(e,l,1,r)-1;return o[u](i[u](l))}}function Lc(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Bp(){var e=mO,t=mO,n=nl,r,i,o,s=ln,l,u,f;function h(){var m=Math.min(e.length,t.length);return s!==ln&&(s=BY(e[0],e[m-1])),l=m>2?VY:FY,u=f=null,d}function d(m){return m==null||isNaN(m=+m)?o:(u||(u=l(e.map(r),t,n)))(r(s(m)))}return d.invert=function(m){return s(i((f||(f=l(t,e.map(r),pd)))(m)))},d.domain=function(m){return arguments.length?(e=Array.from(m,md),h()):e.slice()},d.range=function(m){return arguments.length?(t=Array.from(m),h()):t.slice()},d.rangeRound=function(m){return t=Array.from(m),n=L_,h()},d.clamp=function(m){return arguments.length?(s=m?!0:ln,h()):s!==ln},d.interpolate=function(m){return arguments.length?(n=m,h()):n},d.unknown=function(m){return arguments.length?(o=m,d):o},function(m,v){return r=m,i=v,h()}}function I_(){return Bp()(ln,ln)}function UY(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function vd(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function bs(e){return e=vd(Math.abs(e)),e?e[1]:NaN}function WY(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 HY(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var ZY=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Xu(e){if(!(t=ZY.exec(e)))throw new Error("invalid format: "+e);var t;return new D_({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Xu.prototype=D_.prototype;function D_(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}D_.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function GY(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var gd;function KY(e,t){var n=vd(e,t);if(!n)return gd=void 0,e.toPrecision(t);var r=n[0],i=n[1],o=i-(gd=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,s=r.length;return o===s?r:o>s?r+new Array(o-s+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+vd(e,Math.max(0,t+o-1))[0]}function vO(e,t){var n=vd(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const gO={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:UY,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>vO(e*100,t),r:vO,s:KY,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function yO(e){return e}var xO=Array.prototype.map,_O=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function qY(e){var t=e.grouping===void 0||e.thousands===void 0?yO:WY(xO.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?yO:HY(xO.call(e.numerals,String)),s=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"−":e.minus+"",u=e.nan===void 0?"NaN":e.nan+"";function f(d,m){d=Xu(d);var v=d.fill,b=d.align,x=d.sign,S=d.symbol,y=d.zero,_=d.width,w=d.comma,E=d.precision,P=d.trim,A=d.type;A==="n"?(w=!0,A="g"):gO[A]||(E===void 0&&(E=12),P=!0,A="g"),(y||v==="0"&&b==="=")&&(y=!0,v="0",b="=");var M=(m&&m.prefix!==void 0?m.prefix:"")+(S==="$"?n:S==="#"&&/[boxX]/.test(A)?"0"+A.toLowerCase():""),C=(S==="$"?r:/[%p]/.test(A)?s:"")+(m&&m.suffix!==void 0?m.suffix:""),$=gO[A],B=/[defgprs%]/.test(A);E=E===void 0?6:/[gprs]/.test(A)?Math.max(1,Math.min(21,E)):Math.max(0,Math.min(20,E));function z(R){var G=M,W=C,H,Z,K;if(A==="c")W=$(R)+W,R="";else{R=+R;var D=R<0||1/R<0;if(R=isNaN(R)?u:$(Math.abs(R),E),P&&(R=GY(R)),D&&+R==0&&x!=="+"&&(D=!1),G=(D?x==="("?x:l:x==="-"||x==="("?"":x)+G,W=(A==="s"&&!isNaN(R)&&gd!==void 0?_O[8+gd/3]:"")+W+(D&&x==="("?")":""),B){for(H=-1,Z=R.length;++H<Z;)if(K=R.charCodeAt(H),48>K||K>57){W=(K===46?i+R.slice(H+1):R.slice(H))+W,R=R.slice(0,H);break}}}w&&!y&&(R=t(R,1/0));var q=G.length+R.length+W.length,V=q<_?new Array(_-q+1).join(v):"";switch(w&&y&&(R=t(V+R,V.length?_-W.length:1/0),V=""),b){case"<":R=G+R+W+V;break;case"=":R=G+V+R+W;break;case"^":R=V.slice(0,q=V.length>>1)+G+R+W+V.slice(q);break;default:R=V+G+R+W;break}return o(R)}return z.toString=function(){return d+""},z}function h(d,m){var v=Math.max(-8,Math.min(8,Math.floor(bs(m)/3)))*3,b=Math.pow(10,-v),x=f((d=Xu(d),d.type="f",d),{suffix:_O[8+v/3]});return function(S){return x(b*S)}}return{format:f,formatPrefix:h}}var qf,R_,ej;XY({thousands:",",grouping:[3],currency:["$",""]});function XY(e){return qf=qY(e),R_=qf.format,ej=qf.formatPrefix,qf}function YY(e){return Math.max(0,-bs(Math.abs(e)))}function QY(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(bs(t)/3)))*3-bs(Math.abs(e)))}function JY(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,bs(t)-bs(e))+1}function tj(e,t,n,r){var i=ky(e,t,n),o;switch(r=Xu(r??",f"),r.type){case"s":{var s=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=QY(i,s))&&(r.precision=o),ej(r,s)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=JY(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=YY(i))&&(r.precision=o-(r.type==="%")*2);break}}return R_(r)}function vo(e){var t=e.domain;return e.ticks=function(n){var r=t();return Ay(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return tj(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,h=10;for(l<s&&(f=s,s=l,l=f,f=i,i=o,o=f);h-- >0;){if(f=Ey(s,l,n),f===u)return r[i]=s,r[o]=l,t(r);if(f>0)s=Math.floor(s/f)*f,l=Math.ceil(l/f)*f;else if(f<0)s=Math.ceil(s*f)/f,l=Math.floor(l*f)/f;else break;u=f}return e},e}function yd(){var e=I_();return e.copy=function(){return Lc(e,yd())},fr.apply(e,arguments),vo(e)}function nj(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,md),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return nj(e).unknown(t)},e=arguments.length?Array.from(e,md):[0,1],vo(n)}function rj(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],o=e[r],s;return o<i&&(s=n,n=r,r=s,s=i,i=o,o=s),e[n]=t.floor(i),e[r]=t.ceil(o),e}function bO(e){return Math.log(e)}function wO(e){return Math.exp(e)}function eQ(e){return-Math.log(-e)}function tQ(e){return-Math.exp(-e)}function nQ(e){return isFinite(e)?+("1e"+e):e<0?0:e}function rQ(e){return e===10?nQ:e===Math.E?Math.exp:t=>Math.pow(e,t)}function iQ(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function SO(e){return(t,n)=>-e(-t,n)}function z_(e){const t=e(bO,wO),n=t.domain;let r=10,i,o;function s(){return i=iQ(r),o=rQ(r),n()[0]<0?(i=SO(i),o=SO(o),e(eQ,tQ)):e(bO,wO),t}return t.base=function(l){return arguments.length?(r=+l,s()):r},t.domain=function(l){return arguments.length?(n(l),s()):n()},t.ticks=l=>{const u=n();let f=u[0],h=u[u.length-1];const d=h<f;d&&([f,h]=[h,f]);let m=i(f),v=i(h),b,x;const S=l==null?10:+l;let y=[];if(!(r%1)&&v-m<S){if(m=Math.floor(m),v=Math.ceil(v),f>0){for(;m<=v;++m)for(b=1;b<r;++b)if(x=m<0?b/o(-m):b*o(m),!(x<f)){if(x>h)break;y.push(x)}}else for(;m<=v;++m)for(b=r-1;b>=1;--b)if(x=m>0?b/o(-m):b*o(m),!(x<f)){if(x>h)break;y.push(x)}y.length*2<S&&(y=Ay(f,h,S))}else y=Ay(m,v,Math.min(v-m,S)).map(o);return d?y.reverse():y},t.tickFormat=(l,u)=>{if(l==null&&(l=10),u==null&&(u=r===10?"s":","),typeof u!="function"&&(!(r%1)&&(u=Xu(u)).precision==null&&(u.trim=!0),u=R_(u)),l===1/0)return u;const f=Math.max(1,r*l/t.ticks().length);return h=>{let d=h/o(Math.round(i(h)));return d*r<r-.5&&(d*=r),d<=f?u(h):""}},t.nice=()=>n(rj(n(),{floor:l=>o(Math.floor(i(l))),ceil:l=>o(Math.ceil(i(l)))})),t}function ij(){const e=z_(Bp()).domain([1,10]);return e.copy=()=>Lc(e,ij()).base(e.base()),fr.apply(e,arguments),e}function PO(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function OO(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function B_(e){var t=1,n=e(PO(t),OO(t));return n.constant=function(r){return arguments.length?e(PO(t=+r),OO(t)):t},vo(n)}function oj(){var e=B_(Bp());return e.copy=function(){return Lc(e,oj()).constant(e.constant())},fr.apply(e,arguments)}function TO(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function oQ(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function aQ(e){return e<0?-e*e:e*e}function F_(e){var t=e(ln,ln),n=1;function r(){return n===1?e(ln,ln):n===.5?e(oQ,aQ):e(TO(n),TO(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},vo(t)}function V_(){var e=F_(Bp());return e.copy=function(){return Lc(e,V_()).exponent(e.exponent())},fr.apply(e,arguments),e}function sQ(){return V_.apply(null,arguments).exponent(.5)}function AO(e){return Math.sign(e)*e*e}function lQ(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function aj(){var e=I_(),t=[0,1],n=!1,r;function i(o){var s=lQ(e(o));return isNaN(s)?r:n?Math.round(s):s}return i.invert=function(o){return e.invert(AO(o))},i.domain=function(o){return arguments.length?(e.domain(o),i):e.domain()},i.range=function(o){return arguments.length?(e.range((t=Array.from(o,md)).map(AO)),i):t.slice()},i.rangeRound=function(o){return i.range(o).round(!0)},i.round=function(o){return arguments.length?(n=!!o,i):n},i.clamp=function(o){return arguments.length?(e.clamp(o),i):e.clamp()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return aj(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},fr.apply(i,arguments),vo(i)}function sj(){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]=dY(e,s/l);return o}function o(s){return s==null||isNaN(s=+s)?r:t[$c(n,s)]}return o.invertExtent=function(s){var l=t.indexOf(s);return l<0?[NaN,NaN]:[l>0?n[l-1]:e[0],l<n.length?n[l]:e[e.length-1]]},o.domain=function(s){if(!arguments.length)return e.slice();e=[];for(let l of s)l!=null&&!isNaN(l=+l)&&e.push(l);return e.sort(io),i()},o.range=function(s){return arguments.length?(t=Array.from(s),i()):t.slice()},o.unknown=function(s){return arguments.length?(r=s,o):r},o.quantiles=function(){return n.slice()},o.copy=function(){return sj().domain(e).range(t).unknown(r)},fr.apply(o,arguments)}function lj(){var e=0,t=1,n=1,r=[.5],i=[0,1],o;function s(u){return u!=null&&u<=u?i[$c(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 lj().domain([e,t]).range(i).unknown(o)},fr.apply(vo(s),arguments)}function uj(){var e=[.5],t=[0,1],n,r=1;function i(o){return o!=null&&o<=o?t[$c(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 uj().domain(e).range(t).unknown(n)},fr.apply(i,arguments)}const Ov=new Date,Tv=new Date;function jt(e,t,n,r){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=o=>(e(o=new Date(+o)),o),i.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),i.round=o=>{const s=i(o),l=i.ceil(o);return o-s<l-o?s:l},i.offset=(o,s)=>(t(o=new Date(+o),s==null?1:Math.floor(s)),o),i.range=(o,s,l)=>{const u=[];if(o=i.ceil(o),l=l==null?1:Math.floor(l),!(o<s)||!(l>0))return u;let f;do u.push(f=new Date(+o)),t(o,l),e(o);while(f<o&&o<s);return u},i.filter=o=>jt(s=>{if(s>=s)for(;e(s),!o(s);)s.setTime(s-1)},(s,l)=>{if(s>=s)if(l<0)for(;++l<=0;)for(;t(s,-1),!o(s););else for(;--l>=0;)for(;t(s,1),!o(s););}),n&&(i.count=(o,s)=>(Ov.setTime(+o),Tv.setTime(+s),e(Ov),e(Tv),Math.floor(n(Ov,Tv))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?s=>r(s)%o===0:s=>i.count(0,s)%o===0):i)),i}const xd=jt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);xd.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?jt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):xd);xd.range;const li=1e3,ir=li*60,ui=ir*60,wi=ui*24,U_=wi*7,EO=wi*30,Av=wi*365,Uo=jt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*li)},(e,t)=>(t-e)/li,e=>e.getUTCSeconds());Uo.range;const W_=jt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*li)},(e,t)=>{e.setTime(+e+t*ir)},(e,t)=>(t-e)/ir,e=>e.getMinutes());W_.range;const H_=jt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*ir)},(e,t)=>(t-e)/ir,e=>e.getUTCMinutes());H_.range;const Z_=jt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*li-e.getMinutes()*ir)},(e,t)=>{e.setTime(+e+t*ui)},(e,t)=>(t-e)/ui,e=>e.getHours());Z_.range;const G_=jt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*ui)},(e,t)=>(t-e)/ui,e=>e.getUTCHours());G_.range;const Ic=jt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ir)/wi,e=>e.getDate()-1);Ic.range;const Fp=jt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/wi,e=>e.getUTCDate()-1);Fp.range;const cj=jt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/wi,e=>Math.floor(e/wi));cj.range;function ha(e){return jt(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*ir)/U_)}const Vp=ha(0),_d=ha(1),uQ=ha(2),cQ=ha(3),ws=ha(4),fQ=ha(5),hQ=ha(6);Vp.range;_d.range;uQ.range;cQ.range;ws.range;fQ.range;hQ.range;function da(e){return jt(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/U_)}const Up=da(0),bd=da(1),dQ=da(2),pQ=da(3),Ss=da(4),mQ=da(5),vQ=da(6);Up.range;bd.range;dQ.range;pQ.range;Ss.range;mQ.range;vQ.range;const K_=jt(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());K_.range;const q_=jt(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());q_.range;const Si=jt(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Si.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:jt(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});Si.range;const Pi=jt(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Pi.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:jt(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});Pi.range;function fj(e,t,n,r,i,o){const s=[[Uo,1,li],[Uo,5,5*li],[Uo,15,15*li],[Uo,30,30*li],[o,1,ir],[o,5,5*ir],[o,15,15*ir],[o,30,30*ir],[i,1,ui],[i,3,3*ui],[i,6,6*ui],[i,12,12*ui],[r,1,wi],[r,2,2*wi],[n,1,U_],[t,1,EO],[t,3,3*EO],[e,1,Av]];function l(f,h,d){const m=h<f;m&&([f,h]=[h,f]);const v=d&&typeof d.range=="function"?d:u(f,h,d),b=v?v.range(f,+h+1):[];return m?b.reverse():b}function u(f,h,d){const m=Math.abs(h-f)/d,v=C_(([,,S])=>S).right(s,m);if(v===s.length)return e.every(ky(f/Av,h/Av,d));if(v===0)return xd.every(Math.max(ky(f,h,d),1));const[b,x]=s[m/s[v-1][2]<s[v][2]/m?v-1:v];return b.every(x)}return[l,u]}const[gQ,yQ]=fj(Pi,q_,Up,cj,G_,H_),[xQ,_Q]=fj(Si,K_,Vp,Ic,Z_,W_);function Ev(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function kv(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Nl(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function bQ(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=Ll(i),h=Il(i),d=Ll(o),m=Il(o),v=Ll(s),b=Il(s),x=Ll(l),S=Il(l),y=Ll(u),_=Il(u),w={a:K,A:D,b:q,B:V,c:null,d:NO,e:NO,f:WQ,g:eJ,G:nJ,H:FQ,I:VQ,j:UQ,L:hj,m:HQ,M:ZQ,p:te,q:Y,Q:DO,s:RO,S:GQ,u:KQ,U:qQ,V:XQ,w:YQ,W:QQ,x:null,X:null,y:JQ,Y:tJ,Z:rJ,"%":IO},E={a:ae,A:fe,b:he,B:ce,c:null,d:LO,e:LO,f:sJ,g:gJ,G:xJ,H:iJ,I:oJ,j:aJ,L:pj,m:lJ,M:uJ,p:Ve,q:ze,Q:DO,s:RO,S:cJ,u:fJ,U:hJ,V:dJ,w:pJ,W:mJ,x:null,X:null,y:vJ,Y:yJ,Z:_J,"%":IO},P={a:B,A:z,b:R,B:G,c:W,d:jO,e:jO,f:DQ,g:CO,G:MO,H:$O,I:$O,j:$Q,L:IQ,m:jQ,M:NQ,p:$,q:CQ,Q:zQ,s:BQ,S:LQ,u:TQ,U:AQ,V:EQ,w:OQ,W:kQ,x:H,X:Z,y:CO,Y:MO,Z:MQ,"%":RQ};w.x=A(n,w),w.X=A(r,w),w.c=A(t,w),E.x=A(n,E),E.X=A(r,E),E.c=A(t,E);function A(oe,me){return function(ye){var J=[],Le=-1,we=0,Ue=oe.length,We,it,Tt;for(ye instanceof Date||(ye=new Date(+ye));++Le<Ue;)oe.charCodeAt(Le)===37&&(J.push(oe.slice(we,Le)),(it=kO[We=oe.charAt(++Le)])!=null?We=oe.charAt(++Le):it=We==="e"?" ":"0",(Tt=me[We])&&(We=Tt(ye,it)),J.push(We),we=Le+1);return J.push(oe.slice(we,Le)),J.join("")}}function M(oe,me){return function(ye){var J=Nl(1900,void 0,1),Le=C(J,oe,ye+="",0),we,Ue;if(Le!=ye.length)return null;if("Q"in J)return new Date(J.Q);if("s"in J)return new Date(J.s*1e3+("L"in J?J.L:0));if(me&&!("Z"in J)&&(J.Z=0),"p"in J&&(J.H=J.H%12+J.p*12),J.m===void 0&&(J.m="q"in J?J.q:0),"V"in J){if(J.V<1||J.V>53)return null;"w"in J||(J.w=1),"Z"in J?(we=kv(Nl(J.y,0,1)),Ue=we.getUTCDay(),we=Ue>4||Ue===0?bd.ceil(we):bd(we),we=Fp.offset(we,(J.V-1)*7),J.y=we.getUTCFullYear(),J.m=we.getUTCMonth(),J.d=we.getUTCDate()+(J.w+6)%7):(we=Ev(Nl(J.y,0,1)),Ue=we.getDay(),we=Ue>4||Ue===0?_d.ceil(we):_d(we),we=Ic.offset(we,(J.V-1)*7),J.y=we.getFullYear(),J.m=we.getMonth(),J.d=we.getDate()+(J.w+6)%7)}else("W"in J||"U"in J)&&("w"in J||(J.w="u"in J?J.u%7:"W"in J?1:0),Ue="Z"in J?kv(Nl(J.y,0,1)).getUTCDay():Ev(Nl(J.y,0,1)).getDay(),J.m=0,J.d="W"in J?(J.w+6)%7+J.W*7-(Ue+5)%7:J.w+J.U*7-(Ue+6)%7);return"Z"in J?(J.H+=J.Z/100|0,J.M+=J.Z%100,kv(J)):Ev(J)}}function C(oe,me,ye,J){for(var Le=0,we=me.length,Ue=ye.length,We,it;Le<we;){if(J>=Ue)return-1;if(We=me.charCodeAt(Le++),We===37){if(We=me.charAt(Le++),it=P[We in kO?me.charAt(Le++):We],!it||(J=it(oe,ye,J))<0)return-1}else if(We!=ye.charCodeAt(J++))return-1}return J}function $(oe,me,ye){var J=f.exec(me.slice(ye));return J?(oe.p=h.get(J[0].toLowerCase()),ye+J[0].length):-1}function B(oe,me,ye){var J=v.exec(me.slice(ye));return J?(oe.w=b.get(J[0].toLowerCase()),ye+J[0].length):-1}function z(oe,me,ye){var J=d.exec(me.slice(ye));return J?(oe.w=m.get(J[0].toLowerCase()),ye+J[0].length):-1}function R(oe,me,ye){var J=y.exec(me.slice(ye));return J?(oe.m=_.get(J[0].toLowerCase()),ye+J[0].length):-1}function G(oe,me,ye){var J=x.exec(me.slice(ye));return J?(oe.m=S.get(J[0].toLowerCase()),ye+J[0].length):-1}function W(oe,me,ye){return C(oe,t,me,ye)}function H(oe,me,ye){return C(oe,n,me,ye)}function Z(oe,me,ye){return C(oe,r,me,ye)}function K(oe){return s[oe.getDay()]}function D(oe){return o[oe.getDay()]}function q(oe){return u[oe.getMonth()]}function V(oe){return l[oe.getMonth()]}function te(oe){return i[+(oe.getHours()>=12)]}function Y(oe){return 1+~~(oe.getMonth()/3)}function ae(oe){return s[oe.getUTCDay()]}function fe(oe){return o[oe.getUTCDay()]}function he(oe){return u[oe.getUTCMonth()]}function ce(oe){return l[oe.getUTCMonth()]}function Ve(oe){return i[+(oe.getUTCHours()>=12)]}function ze(oe){return 1+~~(oe.getUTCMonth()/3)}return{format:function(oe){var me=A(oe+="",w);return me.toString=function(){return oe},me},parse:function(oe){var me=M(oe+="",!1);return me.toString=function(){return oe},me},utcFormat:function(oe){var me=A(oe+="",E);return me.toString=function(){return oe},me},utcParse:function(oe){var me=M(oe+="",!0);return me.toString=function(){return oe},me}}}var kO={"-":"",_:" ",0:"0"},Rt=/^\s*\d+/,wQ=/^%/,SQ=/[\\^$*+?|[\]().{}]/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 PQ(e){return e.replace(SQ,"\\$&")}function Ll(e){return new RegExp("^(?:"+e.map(PQ).join("|")+")","i")}function Il(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function OQ(e,t,n){var r=Rt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function TQ(e,t,n){var r=Rt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function AQ(e,t,n){var r=Rt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function EQ(e,t,n){var r=Rt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function kQ(e,t,n){var r=Rt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function MO(e,t,n){var r=Rt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function CO(e,t,n){var r=Rt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function MQ(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 CQ(e,t,n){var r=Rt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function jQ(e,t,n){var r=Rt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function jO(e,t,n){var r=Rt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function $Q(e,t,n){var r=Rt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function $O(e,t,n){var r=Rt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function NQ(e,t,n){var r=Rt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function LQ(e,t,n){var r=Rt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function IQ(e,t,n){var r=Rt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function DQ(e,t,n){var r=Rt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function RQ(e,t,n){var r=wQ.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function zQ(e,t,n){var r=Rt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function BQ(e,t,n){var r=Rt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function NO(e,t){return De(e.getDate(),t,2)}function FQ(e,t){return De(e.getHours(),t,2)}function VQ(e,t){return De(e.getHours()%12||12,t,2)}function UQ(e,t){return De(1+Ic.count(Si(e),e),t,3)}function hj(e,t){return De(e.getMilliseconds(),t,3)}function WQ(e,t){return hj(e,t)+"000"}function HQ(e,t){return De(e.getMonth()+1,t,2)}function ZQ(e,t){return De(e.getMinutes(),t,2)}function GQ(e,t){return De(e.getSeconds(),t,2)}function KQ(e){var t=e.getDay();return t===0?7:t}function qQ(e,t){return De(Vp.count(Si(e)-1,e),t,2)}function dj(e){var t=e.getDay();return t>=4||t===0?ws(e):ws.ceil(e)}function XQ(e,t){return e=dj(e),De(ws.count(Si(e),e)+(Si(e).getDay()===4),t,2)}function YQ(e){return e.getDay()}function QQ(e,t){return De(_d.count(Si(e)-1,e),t,2)}function JQ(e,t){return De(e.getFullYear()%100,t,2)}function eJ(e,t){return e=dj(e),De(e.getFullYear()%100,t,2)}function tJ(e,t){return De(e.getFullYear()%1e4,t,4)}function nJ(e,t){var n=e.getDay();return e=n>=4||n===0?ws(e):ws.ceil(e),De(e.getFullYear()%1e4,t,4)}function rJ(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+De(t/60|0,"0",2)+De(t%60,"0",2)}function LO(e,t){return De(e.getUTCDate(),t,2)}function iJ(e,t){return De(e.getUTCHours(),t,2)}function oJ(e,t){return De(e.getUTCHours()%12||12,t,2)}function aJ(e,t){return De(1+Fp.count(Pi(e),e),t,3)}function pj(e,t){return De(e.getUTCMilliseconds(),t,3)}function sJ(e,t){return pj(e,t)+"000"}function lJ(e,t){return De(e.getUTCMonth()+1,t,2)}function uJ(e,t){return De(e.getUTCMinutes(),t,2)}function cJ(e,t){return De(e.getUTCSeconds(),t,2)}function fJ(e){var t=e.getUTCDay();return t===0?7:t}function hJ(e,t){return De(Up.count(Pi(e)-1,e),t,2)}function mj(e){var t=e.getUTCDay();return t>=4||t===0?Ss(e):Ss.ceil(e)}function dJ(e,t){return e=mj(e),De(Ss.count(Pi(e),e)+(Pi(e).getUTCDay()===4),t,2)}function pJ(e){return e.getUTCDay()}function mJ(e,t){return De(bd.count(Pi(e)-1,e),t,2)}function vJ(e,t){return De(e.getUTCFullYear()%100,t,2)}function gJ(e,t){return e=mj(e),De(e.getUTCFullYear()%100,t,2)}function yJ(e,t){return De(e.getUTCFullYear()%1e4,t,4)}function xJ(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Ss(e):Ss.ceil(e),De(e.getUTCFullYear()%1e4,t,4)}function _J(){return"+0000"}function IO(){return"%"}function DO(e){return+e}function RO(e){return Math.floor(+e/1e3)}var Ea,vj,gj;bJ({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 bJ(e){return Ea=bQ(e),vj=Ea.format,Ea.parse,gj=Ea.utcFormat,Ea.utcParse,Ea}function wJ(e){return new Date(e)}function SJ(e){return e instanceof Date?+e:+new Date(+e)}function X_(e,t,n,r,i,o,s,l,u,f){var h=I_(),d=h.invert,m=h.domain,v=f(".%L"),b=f(":%S"),x=f("%I:%M"),S=f("%I %p"),y=f("%a %d"),_=f("%b %d"),w=f("%B"),E=f("%Y");function P(A){return(u(A)<A?v:l(A)<A?b:s(A)<A?x:o(A)<A?S:r(A)<A?i(A)<A?y:_:n(A)<A?w:E)(A)}return h.invert=function(A){return new Date(d(A))},h.domain=function(A){return arguments.length?m(Array.from(A,SJ)):m().map(wJ)},h.ticks=function(A){var M=m();return e(M[0],M[M.length-1],A??10)},h.tickFormat=function(A,M){return M==null?P:f(M)},h.nice=function(A){var M=m();return(!A||typeof A.range!="function")&&(A=t(M[0],M[M.length-1],A??10)),A?m(rj(M,A)):h},h.copy=function(){return Lc(h,X_(e,t,n,r,i,o,s,l,u,f))},h}function PJ(){return fr.apply(X_(xQ,_Q,Si,K_,Vp,Ic,Z_,W_,Uo,vj).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function OJ(){return fr.apply(X_(gQ,yQ,Pi,q_,Up,Fp,G_,H_,Uo,gj).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Wp(){var e=0,t=1,n,r,i,o,s=ln,l=!1,u;function f(d){return d==null||isNaN(d=+d)?u:s(i===0?.5:(d=(o(d)-n)*i,l?Math.max(0,Math.min(1,d)):d))}f.domain=function(d){return arguments.length?([e,t]=d,n=o(e=+e),r=o(t=+t),i=n===r?0:1/(r-n),f):[e,t]},f.clamp=function(d){return arguments.length?(l=!!d,f):l},f.interpolator=function(d){return arguments.length?(s=d,f):s};function h(d){return function(m){var v,b;return arguments.length?([v,b]=m,s=d(v,b),f):[s(0),s(1)]}}return f.range=h(nl),f.rangeRound=h(L_),f.unknown=function(d){return arguments.length?(u=d,f):u},function(d){return o=d,n=d(e),r=d(t),i=n===r?0:1/(r-n),f}}function go(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function yj(){var e=vo(Wp()(ln));return e.copy=function(){return go(e,yj())},ki.apply(e,arguments)}function xj(){var e=z_(Wp()).domain([1,10]);return e.copy=function(){return go(e,xj()).base(e.base())},ki.apply(e,arguments)}function _j(){var e=B_(Wp());return e.copy=function(){return go(e,_j()).constant(e.constant())},ki.apply(e,arguments)}function Y_(){var e=F_(Wp());return e.copy=function(){return go(e,Y_()).exponent(e.exponent())},ki.apply(e,arguments)}function TJ(){return Y_.apply(null,arguments).exponent(.5)}function bj(){var e=[],t=ln;function n(r){if(r!=null&&!isNaN(r=+r))return t(($c(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let i of r)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(io),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,i)=>t(i/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(i,o)=>hY(e,o/r))},n.copy=function(){return bj(t).domain(e)},ki.apply(n,arguments)}function Hp(){var e=0,t=.5,n=1,r=1,i,o,s,l,u,f=ln,h,d=!1,m;function v(x){return isNaN(x=+x)?m:(x=.5+((x=+h(x))-o)*(r*x<r*o?l:u),f(d?Math.max(0,Math.min(1,x)):x))}v.domain=function(x){return arguments.length?([e,t,n]=x,i=h(e=+e),o=h(t=+t),s=h(n=+n),l=i===o?0:.5/(o-i),u=o===s?0:.5/(s-o),r=o<i?-1:1,v):[e,t,n]},v.clamp=function(x){return arguments.length?(d=!!x,v):d},v.interpolator=function(x){return arguments.length?(f=x,v):f};function b(x){return function(S){var y,_,w;return arguments.length?([y,_,w]=S,f=RY(x,[y,_,w]),v):[f(0),f(.5),f(1)]}}return v.range=b(nl),v.rangeRound=b(L_),v.unknown=function(x){return arguments.length?(m=x,v):m},function(x){return h=x,i=x(e),o=x(t),s=x(n),l=i===o?0:.5/(o-i),u=o===s?0:.5/(s-o),r=o<i?-1:1,v}}function wj(){var e=vo(Hp()(ln));return e.copy=function(){return go(e,wj())},ki.apply(e,arguments)}function Sj(){var e=z_(Hp()).domain([.1,1,10]);return e.copy=function(){return go(e,Sj()).base(e.base())},ki.apply(e,arguments)}function Pj(){var e=B_(Hp());return e.copy=function(){return go(e,Pj()).constant(e.constant())},ki.apply(e,arguments)}function Q_(){var e=F_(Hp());return e.copy=function(){return go(e,Q_()).exponent(e.exponent())},ki.apply(e,arguments)}function AJ(){return Q_.apply(null,arguments).exponent(.5)}const zO=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Zu,scaleDiverging:wj,scaleDivergingLog:Sj,scaleDivergingPow:Q_,scaleDivergingSqrt:AJ,scaleDivergingSymlog:Pj,scaleIdentity:nj,scaleImplicit:My,scaleLinear:yd,scaleLog:ij,scaleOrdinal:j_,scalePoint:du,scalePow:V_,scaleQuantile:sj,scaleQuantize:lj,scaleRadial:aj,scaleSequential:yj,scaleSequentialLog:xj,scaleSequentialPow:Y_,scaleSequentialQuantile:bj,scaleSequentialSqrt:TJ,scaleSequentialSymlog:_j,scaleSqrt:sQ,scaleSymlog:oj,scaleThreshold:uj,scaleTime:PJ,scaleUtc:OJ,tickFormat:tj},Symbol.toStringTag,{value:"Module"}));var EJ=Zs;function kJ(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&&!EJ(s):n(s,l)))var l=s,u=o}return u}var Oj=kJ;function MJ(e,t){return e>t}var CJ=MJ,jJ=Oj,$J=CJ,NJ=el;function LJ(e){return e&&e.length?jJ(e,NJ,$J):void 0}var IJ=LJ;const Ki=Ge(IJ);function DJ(e,t){return e<t}var RJ=DJ,zJ=Oj,BJ=RJ,FJ=el;function VJ(e){return e&&e.length?zJ(e,FJ,BJ):void 0}var UJ=VJ;const Zp=Ge(UJ);var WJ=f_,HJ=mo,ZJ=LC,GJ=Pn;function KJ(e,t){var n=GJ(e)?WJ:ZJ;return n(e,HJ(t))}var qJ=KJ,XJ=$C,YJ=qJ;function QJ(e,t){return XJ(YJ(e,t),1)}var JJ=QJ;const eee=Ge(JJ);var tee=T_;function nee(e,t){return tee(e,t)}var ree=nee;const Yu=Ge(ree);var rl=1e9,iee={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},e1,st=!0,ur="[DecimalError] ",Xo=ur+"Invalid argument: ",J_=ur+"Exponent out of range: ",il=Math.floor,Lo=Math.pow,oee=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,$n,Lt=1e7,tt=7,Tj=9007199254740991,wd=il(Tj/tt),ue={};ue.absoluteValue=ue.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};ue.comparedTo=ue.cmp=function(e){var t,n,r,i,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(r=o.d.length,i=e.d.length,t=0,n=r<i?r:i;t<n;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return r===i?0:r>i^o.s<0?1:-1};ue.decimalPlaces=ue.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*tt;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};ue.dividedBy=ue.div=function(e){return vi(this,new this.constructor(e))};ue.dividedToIntegerBy=ue.idiv=function(e){var t=this,n=t.constructor;return qe(vi(t,new n(e),0,1),n.precision)};ue.equals=ue.eq=function(e){return!this.cmp(e)};ue.exponent=function(){return Ot(this)};ue.greaterThan=ue.gt=function(e){return this.cmp(e)>0};ue.greaterThanOrEqualTo=ue.gte=function(e){return this.cmp(e)>=0};ue.isInteger=ue.isint=function(){return this.e>this.d.length-2};ue.isNegative=ue.isneg=function(){return this.s<0};ue.isPositive=ue.ispos=function(){return this.s>0};ue.isZero=function(){return this.s===0};ue.lessThan=ue.lt=function(e){return this.cmp(e)<0};ue.lessThanOrEqualTo=ue.lte=function(e){return this.cmp(e)<1};ue.logarithm=ue.log=function(e){var t,n=this,r=n.constructor,i=r.precision,o=i+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq($n))throw Error(ur+"NaN");if(n.s<1)throw Error(ur+(n.s?"NaN":"-Infinity"));return n.eq($n)?new r(0):(st=!1,t=vi(Qu(n,o),Qu(e,o),o),st=!0,qe(t,i))};ue.minus=ue.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?kj(t,e):Aj(t,(e.s=-e.s,e))};ue.modulo=ue.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(ur+"NaN");return n.s?(st=!1,t=vi(n,e,0,1).times(e),st=!0,n.minus(t)):qe(new r(n),i)};ue.naturalExponential=ue.exp=function(){return Ej(this)};ue.naturalLogarithm=ue.ln=function(){return Qu(this)};ue.negated=ue.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};ue.plus=ue.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Aj(t,e):kj(t,(e.s=-e.s,e))};ue.precision=ue.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Xo+e);if(t=Ot(i)+1,r=i.d.length-1,n=r*tt+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};ue.squareRoot=ue.sqrt=function(){var e,t,n,r,i,o,s,l=this,u=l.constructor;if(l.s<1){if(!l.s)return new u(0);throw Error(ur+"NaN")}for(e=Ot(l),st=!1,i=Math.sqrt(+l),i==0||i==1/0?(t=Dr(l.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=il((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(vi(l,o,s+2)).times(.5),Dr(o.d).slice(0,s)===(t=Dr(r.d)).slice(0,s)){if(t=t.slice(s-3,s+1),i==s&&t=="4999"){if(qe(o,n+1,0),o.times(o).eq(l)){r=o;break}}else if(t!="9999")break;s+=4}return st=!0,qe(r,n)};ue.times=ue.mul=function(e){var t,n,r,i,o,s,l,u,f,h=this,d=h.constructor,m=h.d,v=(e=new d(e)).d;if(!h.s||!e.s)return new d(0);for(e.s*=h.s,n=h.e+e.e,u=m.length,f=v.length,u<f&&(o=m,m=v,v=o,s=u,u=f,f=s),o=[],s=u+f,r=s;r--;)o.push(0);for(r=f;--r>=0;){for(t=0,i=u+r;i>r;)l=o[i]+v[r]*m[i-r-1]+t,o[i--]=l%Lt|0,t=l/Lt|0;o[i]=(o[i]+t)%Lt|0}for(;!o[--s];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,st?qe(e,d.precision):e};ue.toDecimalPlaces=ue.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(Zr(e,0,rl),t===void 0?t=r.rounding:Zr(t,0,8),qe(n,e+Ot(n)+1,t))};ue.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=oa(r,!0):(Zr(e,0,rl),t===void 0?t=i.rounding:Zr(t,0,8),r=qe(new i(r),e+1,t),n=oa(r,!0,e+1)),n};ue.toFixed=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?oa(i):(Zr(e,0,rl),t===void 0?t=o.rounding:Zr(t,0,8),r=qe(new o(i),e+Ot(i)+1,t),n=oa(r.abs(),!1,e+Ot(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};ue.toInteger=ue.toint=function(){var e=this,t=e.constructor;return qe(new t(e),Ot(e)+1,t.rounding)};ue.toNumber=function(){return+this};ue.toPower=ue.pow=function(e){var t,n,r,i,o,s,l=this,u=l.constructor,f=12,h=+(e=new u(e));if(!e.s)return new u($n);if(l=new u(l),!l.s){if(e.s<1)throw Error(ur+"Infinity");return l}if(l.eq($n))return l;if(r=u.precision,e.eq($n))return qe(l,r);if(t=e.e,n=e.d.length-1,s=t>=n,o=l.s,s){if((n=h<0?-h:h)<=Tj){for(i=new u($n),t=Math.ceil(r/tt+4),st=!1;n%2&&(i=i.times(l),FO(i.d,t)),n=il(n/2),n!==0;)l=l.times(l),FO(l.d,t);return st=!0,e.s<0?new u($n).div(i):qe(i,r)}}else if(o<0)throw Error(ur+"NaN");return o=o<0&&e.d[Math.max(t,n)]&1?-1:1,l.s=1,st=!1,i=e.times(Qu(l,r+f)),st=!0,i=Ej(i),i.s=o,i};ue.toPrecision=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?(n=Ot(i),r=oa(i,n<=o.toExpNeg||n>=o.toExpPos)):(Zr(e,1,rl),t===void 0?t=o.rounding:Zr(t,0,8),i=qe(new o(i),e,t),n=Ot(i),r=oa(i,e<=n||n<=o.toExpNeg,e)),r};ue.toSignificantDigits=ue.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(Zr(e,1,rl),t===void 0?t=r.rounding:Zr(t,0,8)),qe(new r(n),e,t)};ue.toString=ue.valueOf=ue.val=ue.toJSON=ue[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Ot(e),n=e.constructor;return oa(e,t<=n.toExpNeg||t>=n.toExpPos)};function Aj(e,t){var n,r,i,o,s,l,u,f,h=e.constructor,d=h.precision;if(!e.s||!t.s)return t.s||(t=new h(e)),st?qe(t,d):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(d/tt),l=s>l?s+1:l+1,o>l&&(o=l,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for(l=u.length,o=f.length,l-o<0&&(o=l,r=f,f=u,u=r),n=0;o;)n=(u[--o]=u[o]+f[o]+n)/Lt|0,u[o]%=Lt;for(n&&(u.unshift(n),++i),l=u.length;u[--l]==0;)u.pop();return t.d=u,t.e=i,st?qe(t,d):t}function Zr(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Xo+e)}function Dr(e){var t,n,r,i=e.length-1,o="",s=e[0];if(i>0){for(o+=s,t=1;t<i;t++)r=e[t]+"",n=tt-r.length,n&&(o+=Vi(n)),o+=r;s=e[t],r=s+"",n=tt-r.length,n&&(o+=Vi(n))}else if(s===0)return"0";for(;s%10===0;)s/=10;return o+s}var vi=function(){function e(r,i){var o,s=0,l=r.length;for(r=r.slice();l--;)o=r[l]*i+s,r[l]=o%Lt|0,s=o/Lt|0;return s&&r.unshift(s),r}function t(r,i,o,s){var l,u;if(o!=s)u=o>s?1:-1;else for(l=u=0;l<o;l++)if(r[l]!=i[l]){u=r[l]>i[l]?1:-1;break}return u}function n(r,i,o){for(var s=0;o--;)r[o]-=s,s=r[o]<i[o]?1:0,r[o]=s*Lt+r[o]-i[o];for(;!r[0]&&r.length>1;)r.shift()}return function(r,i,o,s){var l,u,f,h,d,m,v,b,x,S,y,_,w,E,P,A,M,C,$=r.constructor,B=r.s==i.s?1:-1,z=r.d,R=i.d;if(!r.s)return new $(r);if(!i.s)throw Error(ur+"Division by zero");for(u=r.e-i.e,M=R.length,P=z.length,v=new $(B),b=v.d=[],f=0;R[f]==(z[f]||0);)++f;if(R[f]>(z[f]||0)&&--u,o==null?_=o=$.precision:s?_=o+(Ot(r)-Ot(i))+1:_=o,_<0)return new $(0);if(_=_/tt+2|0,f=0,M==1)for(h=0,R=R[0],_++;(f<P||h)&&_--;f++)w=h*Lt+(z[f]||0),b[f]=w/R|0,h=w%R|0;else{for(h=Lt/(R[0]+1)|0,h>1&&(R=e(R,h),z=e(z,h),M=R.length,P=z.length),E=M,x=z.slice(0,M),S=x.length;S<M;)x[S++]=0;C=R.slice(),C.unshift(0),A=R[0],R[1]>=Lt/2&&++A;do h=0,l=t(R,x,M,S),l<0?(y=x[0],M!=S&&(y=y*Lt+(x[1]||0)),h=y/A|0,h>1?(h>=Lt&&(h=Lt-1),d=e(R,h),m=d.length,S=x.length,l=t(d,x,m,S),l==1&&(h--,n(d,M<m?C:R,m))):(h==0&&(l=h=1),d=R.slice()),m=d.length,m<S&&d.unshift(0),n(x,d,S),l==-1&&(S=x.length,l=t(R,x,M,S),l<1&&(h++,n(x,M<S?C:R,S))),S=x.length):l===0&&(h++,x=[0]),b[f++]=h,l&&x[0]?x[S++]=z[E]||0:(x=[z[E]],S=1);while((E++<P||x[0]!==void 0)&&_--)}return b[0]||b.shift(),v.e=u,qe(v,s?o+Ot(v)+1:o)}}();function Ej(e,t){var n,r,i,o,s,l,u=0,f=0,h=e.constructor,d=h.precision;if(Ot(e)>16)throw Error(J_+Ot(e));if(!e.s)return new h($n);for(st=!1,l=d,s=new h(.03125);e.abs().gte(.1);)e=e.times(s),f+=5;for(r=Math.log(Lo(2,f))/Math.LN10*2+5|0,l+=r,n=i=o=new h($n),h.precision=l;;){if(i=qe(i.times(e),l),n=n.times(++u),s=o.plus(vi(i,n,l)),Dr(s.d).slice(0,l)===Dr(o.d).slice(0,l)){for(;f--;)o=qe(o.times(o),l);return h.precision=d,t==null?(st=!0,qe(o,d)):o}o=s}}function Ot(e){for(var t=e.e*tt,n=e.d[0];n>=10;n/=10)t++;return t}function Mv(e,t,n){if(t>e.LN10.sd())throw st=!0,n&&(e.precision=n),Error(ur+"LN10 precision limit exceeded");return qe(new e(e.LN10),t)}function Vi(e){for(var t="";e--;)t+="0";return t}function Qu(e,t){var n,r,i,o,s,l,u,f,h,d=1,m=10,v=e,b=v.d,x=v.constructor,S=x.precision;if(v.s<1)throw Error(ur+(v.s?"NaN":"-Infinity"));if(v.eq($n))return new x(0);if(t==null?(st=!1,f=S):f=t,v.eq(10))return t==null&&(st=!0),Mv(x,f);if(f+=m,x.precision=f,n=Dr(b),r=n.charAt(0),o=Ot(v),Math.abs(o)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)v=v.times(e),n=Dr(v.d),r=n.charAt(0),d++;o=Ot(v),r>1?(v=new x("0."+n),o++):v=new x(r+"."+n.slice(1))}else return u=Mv(x,f+2,S).times(o+""),v=Qu(new x(r+"."+n.slice(1)),f-m).plus(u),x.precision=S,t==null?(st=!0,qe(v,S)):v;for(l=s=v=vi(v.minus($n),v.plus($n),f),h=qe(v.times(v),f),i=3;;){if(s=qe(s.times(h),f),u=l.plus(vi(s,new x(i),f)),Dr(u.d).slice(0,f)===Dr(l.d).slice(0,f))return l=l.times(2),o!==0&&(l=l.plus(Mv(x,f+2,S).times(o+""))),l=vi(l,new x(d),f),x.precision=S,t==null?(st=!0,qe(l,S)):l;l=u,i+=2}}function BO(e,t){var n,r,i;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(r,i),t){if(i-=r,n=n-r-1,e.e=il(n/tt),e.d=[],r=(n+1)%tt,n<0&&(r+=tt),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=tt;r<i;)e.d.push(+t.slice(r,r+=tt));t=t.slice(r),r=tt-t.length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),st&&(e.e>wd||e.e<-wd))throw Error(J_+n)}else e.s=0,e.e=0,e.d=[0];return e}function qe(e,t,n){var r,i,o,s,l,u,f,h,d=e.d;for(s=1,o=d[0];o>=10;o/=10)s++;if(r=t-s,r<0)r+=tt,i=t,f=d[h=0];else{if(h=Math.ceil((r+1)/tt),o=d.length,h>=o)return e;for(f=o=d[h],s=1;o>=10;o/=10)s++;r%=tt,i=r-tt+s}if(n!==void 0&&(o=Lo(10,s-i-1),l=f/o%10|0,u=t<0||d[h+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/Lo(10,s-i):0:d[h-1])%10&1||n==(e.s<0?8:7))),t<1||!d[0])return u?(o=Ot(e),d.length=1,t=t-o-1,d[0]=Lo(10,(tt-t%tt)%tt),e.e=il(-t/tt)||0):(d.length=1,d[0]=e.e=e.s=0),e;if(r==0?(d.length=h,o=1,h--):(d.length=h+1,o=Lo(10,tt-r),d[h]=i>0?(f/Lo(10,s-i)%Lo(10,i)|0)*o:0),u)for(;;)if(h==0){(d[0]+=o)==Lt&&(d[0]=1,++e.e);break}else{if(d[h]+=o,d[h]!=Lt)break;d[h--]=0,o=1}for(r=d.length;d[--r]===0;)d.pop();if(st&&(e.e>wd||e.e<-wd))throw Error(J_+Ot(e));return e}function kj(e,t){var n,r,i,o,s,l,u,f,h,d,m=e.constructor,v=m.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new m(e),st?qe(t,v):t;if(u=e.d,d=t.d,r=t.e,f=e.e,u=u.slice(),s=f-r,s){for(h=s<0,h?(n=u,s=-s,l=d.length):(n=d,r=f,l=u.length),i=Math.max(Math.ceil(v/tt),l)+2,s>i&&(s=i,n.length=1),n.reverse(),i=s;i--;)n.push(0);n.reverse()}else{for(i=u.length,l=d.length,h=i<l,h&&(l=i),i=0;i<l;i++)if(u[i]!=d[i]){h=u[i]<d[i];break}s=0}for(h&&(n=u,u=d,d=n,t.s=-t.s),l=u.length,i=d.length-l;i>0;--i)u[l++]=0;for(i=d.length;i>s;){if(u[--i]<d[i]){for(o=i;o&&u[--o]===0;)u[o]=Lt-1;--u[o],u[i]+=Lt}u[i]-=d[i]}for(;u[--l]===0;)u.pop();for(;u[0]===0;u.shift())--r;return u[0]?(t.d=u,t.e=r,st?qe(t,v):t):new m(0)}function oa(e,t,n){var r,i=Ot(e),o=Dr(e.d),s=o.length;return t?(n&&(r=n-s)>0?o=o.charAt(0)+"."+o.slice(1)+Vi(r):s>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+Vi(-i-1)+o,n&&(r=n-s)>0&&(o+=Vi(r))):i>=s?(o+=Vi(i+1-s),n&&(r=n-i-1)>0&&(o=o+"."+Vi(r))):((r=i+1)<s&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-s)>0&&(i+1===s&&(o+="."),o+=Vi(r))),e.s<0?"-"+o:o}function FO(e,t){if(e.length>t)return e.length=t,!0}function Mj(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(Xo+o);if(o>0)s.s=1;else if(o<0)o=-o,s.s=-1;else{s.s=0,s.e=0,s.d=[0];return}if(o===~~o&&o<1e7){s.e=0,s.d=[o];return}return BO(s,o.toString())}else if(typeof o!="string")throw Error(Xo+o);if(o.charCodeAt(0)===45?(o=o.slice(1),s.s=-1):s.s=1,oee.test(o))BO(s,o);else throw Error(Xo+o)}if(i.prototype=ue,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=Mj,i.config=i.set=aee,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 aee(e){if(!e||typeof e!="object")throw Error(ur+"Object expected");var t,n,r,i=["precision",1,rl,"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(il(r)===r&&r>=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(Xo+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(Xo+n+": "+r);return this}var e1=Mj(iee);$n=new e1(1);const Ze=e1;function see(e){return fee(e)||cee(e)||uee(e)||lee()}function lee(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
326
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uee(e,t){if(e){if(typeof e=="string")return Ny(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ny(e,t)}}function cee(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function fee(e){if(Array.isArray(e))return Ny(e)}function Ny(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var hee=function(t){return t},Cj={},jj=function(t){return t===Cj},VO=function(t){return function n(){return arguments.length===0||arguments.length===1&&jj(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},dee=function e(t,n){return t===1?n:VO(function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var s=i.filter(function(l){return l!==Cj}).length;return s>=t?n.apply(void 0,i):e(t-s,VO(function(){for(var l=arguments.length,u=new Array(l),f=0;f<l;f++)u[f]=arguments[f];var h=i.map(function(d){return jj(d)?u.shift():d});return n.apply(void 0,see(h).concat(u))}))})},Gp=function(t){return dee(t.length,t)},Ly=function(t,n){for(var r=[],i=t;i<n;++i)r[i-t]=i;return r},pee=Gp(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),mee=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return hee;var i=n.reverse(),o=i[0],s=i.slice(1);return function(){return s.reduce(function(l,u){return u(l)},o.apply(void 0,arguments))}},Iy=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},$j=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 vee(e){var t;return e===0?t=1:t=Math.floor(new Ze(e).abs().log(10).toNumber())+1,t}function gee(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 yee=Gp(function(e,t,n){var r=+e,i=+t;return r+n*(i-r)}),xee=Gp(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),_ee=Gp(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const Kp={rangeStep:gee,getDigitCount:vee,interpolateNumber:yee,uninterpolateNumber:xee,uninterpolateTruncation:_ee};function Dy(e){return See(e)||wee(e)||Nj(e)||bee()}function bee(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
327
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wee(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function See(e){if(Array.isArray(e))return Ry(e)}function Ju(e,t){return Tee(e)||Oee(e,t)||Nj(e,t)||Pee()}function Pee(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
328
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Nj(e,t){if(e){if(typeof e=="string")return Ry(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ry(e,t)}}function Ry(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Oee(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 Tee(e){if(Array.isArray(e))return e}function Lj(e){var t=Ju(e,2),n=t[0],r=t[1],i=n,o=r;return n>r&&(i=r,o=n),[i,o]}function Ij(e,t,n){if(e.lte(0))return new Ze(0);var r=Kp.getDigitCount(e.toNumber()),i=new Ze(10).pow(r),o=e.div(i),s=r!==1?.05:.1,l=new Ze(Math.ceil(o.div(s).toNumber())).add(n).mul(s),u=l.mul(i);return t?u:new Ze(Math.ceil(u))}function Aee(e,t,n){var r=1,i=new Ze(e);if(!i.isint()&&n){var o=Math.abs(e);o<1?(r=new Ze(10).pow(Kp.getDigitCount(e)-1),i=new Ze(Math.floor(i.div(r).toNumber())).mul(r)):o>1&&(i=new Ze(Math.floor(e)))}else e===0?i=new Ze(Math.floor((t-1)/2)):n||(i=new Ze(Math.floor(e)));var s=Math.floor((t-1)/2),l=mee(pee(function(u){return i.add(new Ze(u-s).mul(r)).toNumber()}),Ly);return l(0,t)}function Dj(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=Ij(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?Dj(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 Eee(e){var t=Ju(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=Lj([n,r]),u=Ju(l,2),f=u[0],h=u[1];if(f===-1/0||h===1/0){var d=h===1/0?[f].concat(Dy(Ly(0,i-1).map(function(){return 1/0}))):[].concat(Dy(Ly(0,i-1).map(function(){return-1/0})),[h]);return n>r?Iy(d):d}if(f===h)return Aee(f,i,o);var m=Dj(f,h,s,o),v=m.step,b=m.tickMin,x=m.tickMax,S=Kp.rangeStep(b,x.add(new Ze(.1).mul(v)),v);return n>r?Iy(S):S}function kee(e,t){var n=Ju(e,2),r=n[0],i=n[1],o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=Lj([r,i]),l=Ju(s,2),u=l[0],f=l[1];if(u===-1/0||f===1/0)return[r,i];if(u===f)return[u];var h=Math.max(t,2),d=Ij(new Ze(f).sub(u).div(h-1),o,0),m=[].concat(Dy(Kp.rangeStep(new Ze(u),new Ze(f).sub(new Ze(.99).mul(d)),d)),[f]);return r>i?Iy(m):m}var Mee=$j(Eee),Cee=$j(kee),jee="Invariant failed";function aa(e,t){throw new Error(jee)}var $ee=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Ps(e){"@babel/helpers - typeof";return Ps=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ps(e)}function Sd(){return Sd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sd.apply(this,arguments)}function Nee(e,t){return Ree(e)||Dee(e,t)||Iee(e,t)||Lee()}function Lee(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
329
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Iee(e,t){if(e){if(typeof e=="string")return UO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return UO(e,t)}}function UO(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Dee(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(h){f=!0,i=h}finally{try{if(!u&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw i}}return l}}function Ree(e){if(Array.isArray(e))return e}function zee(e,t){if(e==null)return{};var n=Bee(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 Bee(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 Fee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vee(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,Bj(r.key),r)}}function Uee(e,t,n){return t&&Vee(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Wee(e,t,n){return t=Pd(t),Hee(e,Rj()?Reflect.construct(t,n||[],Pd(e).constructor):t.apply(e,n))}function Hee(e,t){if(t&&(Ps(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Zee(e)}function Zee(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Rj=function(){return!!e})()}function Pd(e){return Pd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Pd(e)}function Gee(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zy(e,t)}function zy(e,t){return zy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},zy(e,t)}function zj(e,t,n){return t=Bj(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bj(e){var t=Kee(e,"string");return Ps(t)=="symbol"?t:t+""}function Kee(e,t){if(Ps(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ps(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var qp=function(e){function t(){return Fee(this,t),Wee(this,t,arguments)}return Gee(t,e),Uee(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,h=r.xAxis,d=r.yAxis,m=zee(r,$ee),v=Ee(m,!1);this.props.direction==="x"&&h.type!=="number"&&aa();var b=u.map(function(x){var S=f(x,l),y=S.x,_=S.y,w=S.value,E=S.errorVal;if(!E)return null;var P=[],A,M;if(Array.isArray(E)){var C=Nee(E,2);A=C[0],M=C[1]}else A=M=E;if(o==="vertical"){var $=h.scale,B=_+i,z=B+s,R=B-s,G=$(w-A),W=$(w+M);P.push({x1:W,y1:z,x2:W,y2:R}),P.push({x1:G,y1:B,x2:W,y2:B}),P.push({x1:G,y1:z,x2:G,y2:R})}else if(o==="horizontal"){var H=d.scale,Z=y+i,K=Z-s,D=Z+s,q=H(w-A),V=H(w+M);P.push({x1:K,y1:V,x2:D,y2:V}),P.push({x1:Z,y1:q,x2:Z,y2:V}),P.push({x1:K,y1:q,x2:D,y2:q})}return I.createElement(ft,Sd({className:"recharts-errorBar",key:"bar-".concat(P.map(function(te){return"".concat(te.x1,"-").concat(te.x2,"-").concat(te.y1,"-").concat(te.y2)}))},v),P.map(function(te){return I.createElement("line",Sd({},te,{key:"line-".concat(te.x1,"-").concat(te.x2,"-").concat(te.y1,"-").concat(te.y2)}))}))});return I.createElement(ft,{className:"recharts-errorBars"},b)}}])}(I.Component);zj(qp,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});zj(qp,"displayName","ErrorBar");function ec(e){"@babel/helpers - typeof";return ec=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},ec(e)}function WO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Eo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?WO(Object(n),!0).forEach(function(r){qee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qee(e,t,n){return t=Xee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xee(e){var t=Yee(e,"string");return ec(t)=="symbol"?t:t+""}function Yee(e,t){if(ec(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ec(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Fj=function(t){var n=t.children,r=t.formattedGraphicalItems,i=t.legendWidth,o=t.legendContent,s=jn(n,rs);if(!s)return null;var l=rs.defaultProps,u=l!==void 0?Eo(Eo({},l),s.props):{},f;return s.props&&s.props.payload?f=s.props&&s.props.payload:o==="children"?f=(r||[]).reduce(function(h,d){var m=d.item,v=d.props,b=v.sectors||v.data||[];return h.concat(b.map(function(x){return{type:s.props.iconType||m.props.legendType,value:x.name,color:x.fill,payload:x}}))},[]):f=(r||[]).map(function(h){var d=h.item,m=d.type.defaultProps,v=m!==void 0?Eo(Eo({},m),d.props):{},b=v.dataKey,x=v.name,S=v.legendType,y=v.hide;return{inactive:y,dataKey:b,type:u.iconType||S||"square",color:t1(d),value:x||b,payload:v}}),Eo(Eo(Eo({},u),rs.getWithHeight(s,i)),{},{payload:f,item:s})};function tc(e){"@babel/helpers - typeof";return tc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tc(e)}function HO(e){return tte(e)||ete(e)||Jee(e)||Qee()}function Qee(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
330
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jee(e,t){if(e){if(typeof e=="string")return By(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return By(e,t)}}function ete(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function tte(e){if(Array.isArray(e))return By(e)}function By(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ZO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function gt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ZO(Object(n),!0).forEach(function(r){os(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function os(e,t,n){return t=nte(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nte(e){var t=rte(e,"string");return tc(t)=="symbol"?t:t+""}function rte(e,t){if(tc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(tc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zn(e,t,n){return Me(e)||Me(t)?n:Ct(t)?ar(e,t,n):Se(t)?t(e):n}function pu(e,t,n,r){var i=eee(e,function(l){return zn(l,t)});if(n==="number"){var o=i.filter(function(l){return ie(l)||parseFloat(l)});return o.length?[Zp(o),Ki(o)]:[1/0,-1/0]}var s=r?i.filter(function(l){return!Me(l)}):i;return s.map(function(l){return Ct(l)||l instanceof Date?l:""})}var ite=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 h=f>0?i[f-1].coordinate:i[l-1].coordinate,d=i[f].coordinate,m=f>=l-1?i[0].coordinate:i[f+1].coordinate,v=void 0;if(Sr(d-h)!==Sr(m-d)){var b=[];if(Sr(m-d)===Sr(u[1]-u[0])){v=m;var x=d+u[1]-u[0];b[0]=Math.min(x,(x+h)/2),b[1]=Math.max(x,(x+h)/2)}else{v=h;var S=m+u[1]-u[0];b[0]=Math.min(d,(S+d)/2),b[1]=Math.max(d,(S+d)/2)}var y=[Math.min(d,(v+d)/2),Math.max(d,(v+d)/2)];if(t>y[0]&&t<=y[1]||t>=b[0]&&t<=b[1]){s=i[f].index;break}}else{var _=Math.min(h,m),w=Math.max(h,m);if(t>(_+d)/2&&t<=(w+d)/2){s=i[f].index;break}}}else for(var E=0;E<l;E++)if(E===0&&t<=(r[E].coordinate+r[E+1].coordinate)/2||E>0&&E<l-1&&t>(r[E].coordinate+r[E-1].coordinate)/2&&t<=(r[E].coordinate+r[E+1].coordinate)/2||E===l-1&&t>(r[E].coordinate+r[E-1].coordinate)/2){s=r[E].index;break}return s},t1=function(t){var n,r=t,i=r.type.displayName,o=(n=t.type)!==null&&n!==void 0&&n.defaultProps?gt(gt({},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},ote=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 h=o[l[u]].stackGroups,d=Object.keys(h),m=0,v=d.length;m<v;m++){var b=h[d[m]],x=b.items,S=b.cateAxisId,y=x.filter(function(M){return pi(M.type).indexOf("Bar")>=0});if(y&&y.length){var _=y[0].type.defaultProps,w=_!==void 0?gt(gt({},_),y[0].props):y[0].props,E=w.barSize,P=w[S];s[P]||(s[P]=[]);var A=Me(E)?n:E;s[P].push({item:y[0],stackList:y.slice(1),barSize:Me(A)?void 0:ia(A,r,0)})}}return s},ate=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=ia(n,i,0,!0),h,d=[];if(s[0].barSize===+s[0].barSize){var m=!1,v=i/u,b=s.reduce(function(E,P){return E+P.barSize||0},0);b+=(u-1)*f,b>=i&&(b-=(u-1)*f,f=0),b>=i&&v>0&&(m=!0,v*=.9,b=u*v);var x=(i-b)/2>>0,S={offset:x-f,size:0};h=s.reduce(function(E,P){var A={item:P.item,position:{offset:S.offset+S.size+f,size:m?v:P.barSize}},M=[].concat(HO(E),[A]);return S=M[M.length-1].position,P.stackList&&P.stackList.length&&P.stackList.forEach(function(C){M.push({item:C,position:S})}),M},d)}else{var y=ia(r,i,0,!0);i-2*y-(u-1)*f<=0&&(f=0);var _=(i-2*y-(u-1)*f)/u;_>1&&(_>>=0);var w=l===+l?Math.min(_,l):_;h=s.reduce(function(E,P,A){var M=[].concat(HO(E),[{item:P.item,position:{offset:y+(_+f)*A+(_-w)/2,size:w}}]);return P.stackList&&P.stackList.length&&P.stackList.forEach(function(C){M.push({item:C,position:M[M.length-1].position})}),M},d)}return h},ste=function(t,n,r,i){var o=r.children,s=r.width,l=r.margin,u=s-(l.left||0)-(l.right||0),f=Fj({children:o,legendWidth:u});if(f){var h=i||{},d=h.width,m=h.height,v=f.align,b=f.verticalAlign,x=f.layout;if((x==="vertical"||x==="horizontal"&&b==="middle")&&v!=="center"&&ie(t[v]))return gt(gt({},t),{},os({},v,t[v]+(d||0)));if((x==="horizontal"||x==="vertical"&&v==="center")&&b!=="middle"&&ie(t[b]))return gt(gt({},t),{},os({},b,t[b]+(m||0)))}return t},lte=function(t,n,r){return Me(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},Vj=function(t,n,r,i,o){var s=n.props.children,l=Tr(s,qp).filter(function(f){return lte(i,o,f.props.direction)});if(l&&l.length){var u=l.map(function(f){return f.props.dataKey});return t.reduce(function(f,h){var d=zn(h,r);if(Me(d))return f;var m=Array.isArray(d)?[Zp(d),Ki(d)]:[d,d],v=u.reduce(function(b,x){var S=zn(h,x,0),y=m[0]-Math.abs(Array.isArray(S)?S[0]:S),_=m[1]+Math.abs(Array.isArray(S)?S[1]:S);return[Math.min(y,b[0]),Math.max(_,b[1])]},[1/0,-1/0]);return[Math.min(v[0],f[0]),Math.max(v[1],f[1])]},[1/0,-1/0])}return null},ute=function(t,n,r,i,o){var s=n.map(function(l){return Vj(t,l,r,o,i)}).filter(function(l){return!Me(l)});return s&&s.length?s.reduce(function(l,u){return[Math.min(l[0],u[0]),Math.max(l[1],u[1])]},[1/0,-1/0]):null},Uj=function(t,n,r,i,o){var s=n.map(function(u){var f=u.props.dataKey;return r==="number"&&f&&Vj(t,u,f,i)||pu(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 h=0,d=f.length;h<d;h++)l[f[h]]||(l[f[h]]=!0,u.push(f[h]));return u},[])},Wj=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},Hj=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},ci=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?Sr(l[0]-l[1])*2*f:f,n&&(t.ticks||t.niceTicks)){var h=(t.ticks||t.niceTicks).map(function(d){var m=o?o.indexOf(d):d;return{coordinate:i(m)+f,value:d,offset:f}});return h.filter(function(d){return!Ys(d.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(d,m){return{coordinate:i(d)+f,value:d,index:m,offset:f}}):i.ticks&&!r?i.ticks(t.tickCount).map(function(d){return{coordinate:i(d)+f,value:d,offset:f}}):i.domain().map(function(d,m){return{coordinate:i(d)+f,value:o?o[d]:d,index:m,offset:f}})},Cv=new WeakMap,Xf=function(t,n){if(typeof n!="function")return t;Cv.has(t)||Cv.set(t,new WeakMap);var r=Cv.get(t);if(r.has(n))return r.get(n);var i=function(){t.apply(void 0,arguments),n.apply(void 0,arguments)};return r.set(n,i),i},cte=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:Zu(),realScaleType:"band"}:s==="radial"&&l==="angleAxis"?{scale:yd(),realScaleType:"linear"}:o==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:du(),realScaleType:"point"}:o==="category"?{scale:Zu(),realScaleType:"band"}:{scale:yd(),realScaleType:"linear"};if(ra(i)){var u="scale".concat($p(i));return{scale:(zO[u]||du)(),realScaleType:zO[u]?u:"point"}}return Se(i)?{scale:i}:{scale:du(),realScaleType:"point"}},GO=1e-4,fte=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,i=t.range(),o=Math.min(i[0],i[1])-GO,s=Math.max(i[0],i[1])+GO,l=t(n[0]),u=t(n[r-1]);(l<o||l>s||u<o||u>s)&&t.domain([n[0],n[r-1]])}},hte=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},dte=function(t,n){if(!n||n.length!==2||!ie(n[0])||!ie(n[1]))return t;var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]),o=[t[0],t[1]];return(!ie(t[0])||t[0]<r)&&(o[0]=r),(!ie(t[1])||t[1]>i)&&(o[1]=i),o[0]>i&&(o[0]=i),o[1]<r&&(o[1]=r),o},pte=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r<i;++r)for(var o=0,s=0,l=0;l<n;++l){var u=Ys(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])}},mte=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=Ys(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)}},vte={sign:pte,expand:CU,none:vs,silhouette:jU,wiggle:$U,positive:mte},gte=function(t,n,r){var i=n.map(function(l){return l.props.dataKey}),o=vte[r],s=MU().keys(i).value(function(l,u){return+zn(l,u,0)}).order(fy).offset(o);return s(t)},yte=function(t,n,r,i,o,s){if(!t)return null;var l=s?n.reverse():n,u={},f=l.reduce(function(d,m){var v,b=(v=m.type)!==null&&v!==void 0&&v.defaultProps?gt(gt({},m.type.defaultProps),m.props):m.props,x=b.stackId,S=b.hide;if(S)return d;var y=b[r],_=d[y]||{hasStack:!1,stackGroups:{}};if(Ct(x)){var w=_.stackGroups[x]||{numericAxisId:r,cateAxisId:i,items:[]};w.items.push(m),_.hasStack=!0,_.stackGroups[x]=w}else _.stackGroups[Cc("_stackId_")]={numericAxisId:r,cateAxisId:i,items:[m]};return gt(gt({},d),{},os({},y,_))},u),h={};return Object.keys(f).reduce(function(d,m){var v=f[m];if(v.hasStack){var b={};v.stackGroups=Object.keys(v.stackGroups).reduce(function(x,S){var y=v.stackGroups[S];return gt(gt({},x),{},os({},S,{numericAxisId:r,cateAxisId:i,items:y.items,stackedData:gte(t,y.items,o)}))},b)}return gt(gt({},d),{},os({},m,v))},h)},xte=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 h=Mee(f,o,l);return t.domain([Zp(h),Ki(h)]),{niceTicks:h}}if(o&&i==="number"){var d=t.domain(),m=Cee(d,o,l);return{niceTicks:m}}return null};function KO(e){var t=e.axis,n=e.ticks,r=e.bandSize,i=e.entry,o=e.index,s=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!Me(i[t.dataKey])){var l=Kh(n,"value",i[t.dataKey]);if(l)return l.coordinate+r/2}return n[o]?n[o].coordinate+r/2:null}var u=zn(i,Me(s)?t.dataKey:s);return Me(u)?null:t.scale(u)}var qO=function(t){var n=t.axis,r=t.ticks,i=t.offset,o=t.bandSize,s=t.entry,l=t.index;if(n.type==="category")return r[l]?r[l].coordinate+i:null;var u=zn(s,n.dataKey,n.domain[l]);return Me(u)?null:n.scale(u)-o/2+i},_te=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]},bte=function(t,n){var r,i=(r=t.type)!==null&&r!==void 0&&r.defaultProps?gt(gt({},t.type.defaultProps),t.props):t.props,o=i.stackId;if(Ct(o)){var s=n[o];if(s){var l=s.items.indexOf(t);return l>=0?s.stackedData[l]:null}}return null},wte=function(t){return t.reduce(function(n,r){return[Zp(r.concat([n[0]]).filter(ie)),Ki(r.concat([n[1]]).filter(ie))]},[1/0,-1/0])},Zj=function(t,n,r){return Object.keys(t).reduce(function(i,o){var s=t[o],l=s.stackedData,u=l.reduce(function(f,h){var d=wte(h.slice(n,r+1));return[Math.min(f[0],d[0]),Math.max(f[1],d[1])]},[1/0,-1/0]);return[Math.min(u[0],i[0]),Math.max(u[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},XO=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,YO=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Fy=function(t,n,r){if(Se(t))return t(n,r);if(!Array.isArray(t))return n;var i=[];if(ie(t[0]))i[0]=r?t[0]:Math.min(t[0],n[0]);else if(XO.test(t[0])){var o=+XO.exec(t[0])[1];i[0]=n[0]-o}else Se(t[0])?i[0]=t[0](n[0]):i[0]=n[0];if(ie(t[1]))i[1]=r?t[1]:Math.max(t[1],n[1]);else if(YO.test(t[1])){var s=+YO.exec(t[1])[1];i[1]=n[1]+s}else Se(t[1])?i[1]=t[1](n[1]):i[1]=n[1];return i},Od=function(t,n,r){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!r||i>0)return i}if(t&&n&&n.length>=2){for(var o=E_(n,function(d){return d.coordinate}),s=1/0,l=1,u=o.length;l<u;l++){var f=o[l],h=o[l-1];s=Math.min((f.coordinate||0)-(h.coordinate||0),s)}return s===1/0?0:s}return r?void 0:0},QO=function(t,n,r){return!t||!t.length||Yu(t,ar(r,"type.defaultProps.domain"))?n:t},Gj=function(t,n){var r=t.type.defaultProps?gt(gt({},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,h=r.hide;return gt(gt({},Ee(t,!1)),{},{dataKey:i,unit:s,formatter:l,name:o||i,color:t1(t),value:zn(n,i),type:u,payload:n,chartType:f,hide:h})};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 JO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function eT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JO(Object(n),!0).forEach(function(r){Ste(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ste(e,t,n){return t=Pte(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pte(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 Td=Math.PI/180,Tte=function(t){return t*180/Math.PI},Wt=function(t,n,r,i){return{x:t+Math.cos(-Td*i)*r,y:n+Math.sin(-Td*i)*r}},Ate=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))},Ete=function(t,n){var r=t.x,i=t.y,o=n.cx,s=n.cy,l=Ate({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:Tte(f),angleInRadian:f}},kte=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}},Mte=function(t,n){var r=n.startAngle,i=n.endAngle,o=Math.floor(r/360),s=Math.floor(i/360),l=Math.min(o,s);return t+l*360},tT=function(t,n){var r=t.x,i=t.y,o=Ete({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 h=kte(n),d=h.startAngle,m=h.endAngle,v=l,b;if(d<=m){for(;v>m;)v-=360;for(;v<d;)v+=360;b=v>=d&&v<=m}else{for(;v>d;)v-=360;for(;v<m;)v+=360;b=v>=m&&v<=d}return b?eT(eT({},n),{},{radius:s,angle:Mte(v,n)}):null};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 Cte=["offset"];function jte(e){return Ite(e)||Lte(e)||Nte(e)||$te()}function $te(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
331
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Nte(e,t){if(e){if(typeof e=="string")return Vy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Vy(e,t)}}function Lte(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ite(e){if(Array.isArray(e))return Vy(e)}function Vy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Dte(e,t){if(e==null)return{};var n=Rte(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 Rte(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function nT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Et(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nT(Object(n),!0).forEach(function(r){zte(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zte(e,t,n){return t=Bte(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bte(e){var t=Fte(e,"string");return rc(t)=="symbol"?t:t+""}function Fte(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 ic(){return ic=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},ic.apply(this,arguments)}var Vte=function(t){var n=t.value,r=t.formatter,i=Me(t.children)?n:t.children;return Se(r)?r(i):i},Ute=function(t,n){var r=Sr(n-t),i=Math.min(Math.abs(n-t),360);return r*i},Wte=function(t,n,r){var i=t.position,o=t.viewBox,s=t.offset,l=t.className,u=o,f=u.cx,h=u.cy,d=u.innerRadius,m=u.outerRadius,v=u.startAngle,b=u.endAngle,x=u.clockWise,S=(d+m)/2,y=Ute(v,b),_=y>=0?1:-1,w,E;i==="insideStart"?(w=v+_*s,E=x):i==="insideEnd"?(w=b-_*s,E=!x):i==="end"&&(w=b+_*s,E=x),E=y<=0?E:!E;var P=Wt(f,h,S,w),A=Wt(f,h,S,w+(E?1:-1)*359),M="M".concat(P.x,",").concat(P.y,`
|
|
332
|
+
A`).concat(S,",").concat(S,",0,1,").concat(E?0:1,`,
|
|
333
|
+
`).concat(A.x,",").concat(A.y),C=Me(t.id)?Cc("recharts-radial-line-"):t.id;return I.createElement("text",ic({},r,{dominantBaseline:"central",className:Ne("recharts-radial-bar-label",l)}),I.createElement("defs",null,I.createElement("path",{id:C,d:M})),I.createElement("textPath",{xlinkHref:"#".concat(C)},n))},Hte=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,h=o.startAngle,d=o.endAngle,m=(h+d)/2;if(i==="outside"){var v=Wt(s,l,f+r,m),b=v.x,x=v.y;return{x:b,y:x,textAnchor:b>=s?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:s,y:l,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:s,y:l,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:s,y:l,textAnchor:"middle",verticalAnchor:"end"};var S=(u+f)/2,y=Wt(s,l,S,m),_=y.x,w=y.y;return{x:_,y:w,textAnchor:"middle",verticalAnchor:"middle"}},Zte=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,h=s.height,d=h>=0?1:-1,m=d*i,v=d>0?"end":"start",b=d>0?"start":"end",x=f>=0?1:-1,S=x*i,y=x>0?"end":"start",_=x>0?"start":"end";if(o==="top"){var w={x:l+f/2,y:u-d*i,textAnchor:"middle",verticalAnchor:v};return Et(Et({},w),r?{height:Math.max(u-r.y,0),width:f}:{})}if(o==="bottom"){var E={x:l+f/2,y:u+h+m,textAnchor:"middle",verticalAnchor:b};return Et(Et({},E),r?{height:Math.max(r.y+r.height-(u+h),0),width:f}:{})}if(o==="left"){var P={x:l-S,y:u+h/2,textAnchor:y,verticalAnchor:"middle"};return Et(Et({},P),r?{width:Math.max(P.x-r.x,0),height:h}:{})}if(o==="right"){var A={x:l+f+S,y:u+h/2,textAnchor:_,verticalAnchor:"middle"};return Et(Et({},A),r?{width:Math.max(r.x+r.width-A.x,0),height:h}:{})}var M=r?{width:f,height:h}:{};return o==="insideLeft"?Et({x:l+S,y:u+h/2,textAnchor:_,verticalAnchor:"middle"},M):o==="insideRight"?Et({x:l+f-S,y:u+h/2,textAnchor:y,verticalAnchor:"middle"},M):o==="insideTop"?Et({x:l+f/2,y:u+m,textAnchor:"middle",verticalAnchor:b},M):o==="insideBottom"?Et({x:l+f/2,y:u+h-m,textAnchor:"middle",verticalAnchor:v},M):o==="insideTopLeft"?Et({x:l+S,y:u+m,textAnchor:_,verticalAnchor:b},M):o==="insideTopRight"?Et({x:l+f-S,y:u+m,textAnchor:y,verticalAnchor:b},M):o==="insideBottomLeft"?Et({x:l+S,y:u+h-m,textAnchor:_,verticalAnchor:v},M):o==="insideBottomRight"?Et({x:l+f-S,y:u+h-m,textAnchor:y,verticalAnchor:v},M):Gs(o)&&(ie(o.x)||Fo(o.x))&&(ie(o.y)||Fo(o.y))?Et({x:l+ia(o.x,f),y:u+ia(o.y,h),textAnchor:"end",verticalAnchor:"end"},M):Et({x:l+f/2,y:u+h/2,textAnchor:"middle",verticalAnchor:"middle"},M)},Gte=function(t){return"cx"in t&&ie(t.cx)};function Qt(e){var t=e.offset,n=t===void 0?5:t,r=Dte(e,Cte),i=Et({offset:n},r),o=i.viewBox,s=i.position,l=i.value,u=i.children,f=i.content,h=i.className,d=h===void 0?"":h,m=i.textBreakAll;if(!o||Me(l)&&Me(u)&&!j.isValidElement(f)&&!Se(f))return null;if(j.isValidElement(f))return j.cloneElement(f,i);var v;if(Se(f)){if(v=j.createElement(f,i),j.isValidElement(v))return v}else v=Vte(i);var b=Gte(o),x=Ee(i,!0);if(b&&(s==="insideStart"||s==="insideEnd"||s==="end"))return Wte(i,v,x);var S=b?Hte(i):Zte(i);return I.createElement(cd,ic({className:Ne("recharts-label",d)},x,S,{breakAll:m}),v)}Qt.displayName="Label";var Kj=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,h=t.outerRadius,d=t.x,m=t.y,v=t.top,b=t.left,x=t.width,S=t.height,y=t.clockWise,_=t.labelViewBox;if(_)return _;if(ie(x)&&ie(S)){if(ie(d)&&ie(m))return{x:d,y:m,width:x,height:S};if(ie(v)&&ie(b))return{x:v,y:b,width:x,height:S}}return ie(d)&&ie(m)?{x:d,y:m,width:0,height:0}:ie(n)&&ie(r)?{cx:n,cy:r,startAngle:o||i||0,endAngle:s||i||0,innerRadius:f||0,outerRadius:h||u||l||0,clockWise:y}:t.viewBox?t.viewBox:{}},Kte=function(t,n){return t?t===!0?I.createElement(Qt,{key:"label-implicit",viewBox:n}):Ct(t)?I.createElement(Qt,{key:"label-implicit",viewBox:n,value:t}):j.isValidElement(t)?t.type===Qt?j.cloneElement(t,{key:"label-implicit",viewBox:n}):I.createElement(Qt,{key:"label-implicit",content:t,viewBox:n}):Se(t)?I.createElement(Qt,{key:"label-implicit",content:t,viewBox:n}):Gs(t)?I.createElement(Qt,ic({viewBox:n},t,{key:"label-implicit"})):null:null},qte=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=Kj(t),s=Tr(i,Qt).map(function(u,f){return j.cloneElement(u,{viewBox:n||o,key:"label-".concat(f)})});if(!r)return s;var l=Kte(t.label,n||o);return[l].concat(jte(s))};Qt.parseViewBox=Kj;Qt.renderCallByParent=qte;function Xte(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var Yte=Xte;const Qte=Ge(Yte);function oc(e){"@babel/helpers - typeof";return oc=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},oc(e)}var Jte=["valueAccessor"],ene=["data","dataKey","clockWise","id","textBreakAll"];function tne(e){return one(e)||ine(e)||rne(e)||nne()}function nne(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
334
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rne(e,t){if(e){if(typeof e=="string")return Uy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Uy(e,t)}}function ine(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function one(e){if(Array.isArray(e))return Uy(e)}function Uy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ad(){return Ad=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ad.apply(this,arguments)}function rT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function iT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rT(Object(n),!0).forEach(function(r){ane(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 ane(e,t,n){return t=sne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sne(e){var t=lne(e,"string");return oc(t)=="symbol"?t:t+""}function lne(e,t){if(oc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(oc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oT(e,t){if(e==null)return{};var n=une(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 une(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 cne=function(t){return Array.isArray(t.value)?Qte(t.value):t.value};function Wr(e){var t=e.valueAccessor,n=t===void 0?cne:t,r=oT(e,Jte),i=r.data,o=r.dataKey,s=r.clockWise,l=r.id,u=r.textBreakAll,f=oT(r,ene);return!i||!i.length?null:I.createElement(ft,{className:"recharts-label-list"},i.map(function(h,d){var m=Me(o)?n(h,d):zn(h&&h.payload,o),v=Me(l)?{}:{id:"".concat(l,"-").concat(d)};return I.createElement(Qt,Ad({},Ee(h,!0),f,v,{parentViewBox:h.parentViewBox,value:m,textBreakAll:u,viewBox:Qt.parseViewBox(Me(s)?h:iT(iT({},h),{},{clockWise:s})),key:"label-".concat(d),index:d}))}))}Wr.displayName="LabelList";function fne(e,t){return e?e===!0?I.createElement(Wr,{key:"labelList-implicit",data:t}):I.isValidElement(e)||Se(e)?I.createElement(Wr,{key:"labelList-implicit",data:t,content:e}):Gs(e)?I.createElement(Wr,Ad({data:t},e,{key:"labelList-implicit"})):null:null}function hne(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=Tr(r,Wr).map(function(s,l){return j.cloneElement(s,{data:t,key:"labelList-".concat(l)})});if(!n)return i;var o=fne(e.label,t);return[o].concat(tne(i))}Wr.renderCallByParent=hne;function ac(e){"@babel/helpers - typeof";return ac=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ac(e)}function Wy(){return Wy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wy.apply(this,arguments)}function aT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function sT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?aT(Object(n),!0).forEach(function(r){dne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dne(e,t,n){return t=pne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pne(e){var t=mne(e,"string");return ac(t)=="symbol"?t:t+""}function mne(e,t){if(ac(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ac(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var vne=function(t,n){var r=Sr(n-t),i=Math.min(Math.abs(n-t),359.999);return r*i},Yf=function(t){var n=t.cx,r=t.cy,i=t.radius,o=t.angle,s=t.sign,l=t.isExternal,u=t.cornerRadius,f=t.cornerIsExternal,h=u*(l?1:-1)+i,d=Math.asin(u/h)/Td,m=f?o:o+s*d,v=Wt(n,r,h,m),b=Wt(n,r,i,m),x=f?o-s*d:o,S=Wt(n,r,h*Math.cos(d*Td),x);return{center:v,circleTangency:b,lineTangency:S,theta:d}},qj=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,o=t.outerRadius,s=t.startAngle,l=t.endAngle,u=vne(s,l),f=s+u,h=Wt(n,r,o,s),d=Wt(n,r,o,f),m="M ".concat(h.x,",").concat(h.y,`
|
|
335
|
+
A `).concat(o,",").concat(o,`,0,
|
|
336
|
+
`).concat(+(Math.abs(u)>180),",").concat(+(s>f),`,
|
|
337
|
+
`).concat(d.x,",").concat(d.y,`
|
|
338
|
+
`);if(i>0){var v=Wt(n,r,i,s),b=Wt(n,r,i,f);m+="L ".concat(b.x,",").concat(b.y,`
|
|
339
|
+
A `).concat(i,",").concat(i,`,0,
|
|
340
|
+
`).concat(+(Math.abs(u)>180),",").concat(+(s<=f),`,
|
|
341
|
+
`).concat(v.x,",").concat(v.y," Z")}else m+="L ".concat(n,",").concat(r," Z");return m},gne=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,h=t.endAngle,d=Sr(h-f),m=Yf({cx:n,cy:r,radius:o,angle:f,sign:d,cornerRadius:s,cornerIsExternal:u}),v=m.circleTangency,b=m.lineTangency,x=m.theta,S=Yf({cx:n,cy:r,radius:o,angle:h,sign:-d,cornerRadius:s,cornerIsExternal:u}),y=S.circleTangency,_=S.lineTangency,w=S.theta,E=u?Math.abs(f-h):Math.abs(f-h)-x-w;if(E<0)return l?"M ".concat(b.x,",").concat(b.y,`
|
|
342
|
+
a`).concat(s,",").concat(s,",0,0,1,").concat(s*2,`,0
|
|
343
|
+
a`).concat(s,",").concat(s,",0,0,1,").concat(-s*2,`,0
|
|
344
|
+
`):qj({cx:n,cy:r,innerRadius:i,outerRadius:o,startAngle:f,endAngle:h});var P="M ".concat(b.x,",").concat(b.y,`
|
|
345
|
+
A`).concat(s,",").concat(s,",0,0,").concat(+(d<0),",").concat(v.x,",").concat(v.y,`
|
|
346
|
+
A`).concat(o,",").concat(o,",0,").concat(+(E>180),",").concat(+(d<0),",").concat(y.x,",").concat(y.y,`
|
|
347
|
+
A`).concat(s,",").concat(s,",0,0,").concat(+(d<0),",").concat(_.x,",").concat(_.y,`
|
|
348
|
+
`);if(i>0){var A=Yf({cx:n,cy:r,radius:i,angle:f,sign:d,isExternal:!0,cornerRadius:s,cornerIsExternal:u}),M=A.circleTangency,C=A.lineTangency,$=A.theta,B=Yf({cx:n,cy:r,radius:i,angle:h,sign:-d,isExternal:!0,cornerRadius:s,cornerIsExternal:u}),z=B.circleTangency,R=B.lineTangency,G=B.theta,W=u?Math.abs(f-h):Math.abs(f-h)-$-G;if(W<0&&s===0)return"".concat(P,"L").concat(n,",").concat(r,"Z");P+="L".concat(R.x,",").concat(R.y,`
|
|
349
|
+
A`).concat(s,",").concat(s,",0,0,").concat(+(d<0),",").concat(z.x,",").concat(z.y,`
|
|
350
|
+
A`).concat(i,",").concat(i,",0,").concat(+(W>180),",").concat(+(d>0),",").concat(M.x,",").concat(M.y,`
|
|
351
|
+
A`).concat(s,",").concat(s,",0,0,").concat(+(d<0),",").concat(C.x,",").concat(C.y,"Z")}else P+="L".concat(n,",").concat(r,"Z");return P},yne={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Xj=function(t){var n=sT(sT({},yne),t),r=n.cx,i=n.cy,o=n.innerRadius,s=n.outerRadius,l=n.cornerRadius,u=n.forceCornerRadius,f=n.cornerIsExternal,h=n.startAngle,d=n.endAngle,m=n.className;if(s<o||h===d)return null;var v=Ne("recharts-sector",m),b=s-o,x=ia(l,b,0,!0),S;return x>0&&Math.abs(h-d)<360?S=gne({cx:r,cy:i,innerRadius:o,outerRadius:s,cornerRadius:Math.min(x,b/2),forceCornerRadius:u,cornerIsExternal:f,startAngle:h,endAngle:d}):S=qj({cx:r,cy:i,innerRadius:o,outerRadius:s,startAngle:h,endAngle:d}),I.createElement("path",Wy({},Ee(n,!0),{className:v,d:S,role:"img"}))};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 Hy(){return Hy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hy.apply(this,arguments)}function lT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function uT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lT(Object(n),!0).forEach(function(r){xne(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 xne(e,t,n){return t=_ne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _ne(e){var t=bne(e,"string");return sc(t)=="symbol"?t:t+""}function bne(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 cT={curveBasisClosed:xU,curveBasisOpen:_U,curveBasis:yU,curveBumpX:iU,curveBumpY:oU,curveLinearClosed:bU,curveLinear:Lp,curveMonotoneX:wU,curveMonotoneY:SU,curveNatural:PU,curveStep:OU,curveStepAfter:AU,curveStepBefore:TU},Qf=function(t){return t.x===+t.x&&t.y===+t.y},Dl=function(t){return t.x},Rl=function(t){return t.y},wne=function(t,n){if(Se(t))return t;var r="curve".concat($p(t));return(r==="curveMonotone"||r==="curveBump")&&n?cT["".concat(r).concat(n==="vertical"?"Y":"X")]:cT[r]||Lp},Sne=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,h=wne(r,l),d=f?o.filter(function(x){return Qf(x)}):o,m;if(Array.isArray(s)){var v=f?s.filter(function(x){return Qf(x)}):s,b=d.map(function(x,S){return uT(uT({},x),{},{base:v[S]})});return l==="vertical"?m=Vf().y(Rl).x1(Dl).x0(function(x){return x.base.x}):m=Vf().x(Dl).y1(Rl).y0(function(x){return x.base.y}),m.defined(Qf).curve(h),m(b)}return l==="vertical"&&ie(s)?m=Vf().y(Rl).x1(Dl).x0(s):ie(s)?m=Vf().x(Dl).y1(Rl).y0(s):m=QM().x(Dl).y(Rl),m.defined(Qf).curve(h),m(d)},mu=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?Sne(t):i;return j.createElement("path",Hy({},Ee(t,!1),qh(t),{className:Ne("recharts-curve",n),d:s,ref:o}))},Yj={exports:{}},Pne="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",One=Pne,Tne=One;function Qj(){}function Jj(){}Jj.resetWarningCache=Qj;var Ane=function(){function e(r,i,o,s,l,u){if(u!==Tne){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:Jj,resetWarningCache:Qj};return n.PropTypes=n,n};Yj.exports=Ane();var Ene=Yj.exports;const Re=Ge(Ene),{getOwnPropertyNames:kne,getOwnPropertySymbols:Mne}=Object,{hasOwnProperty:Cne}=Object.prototype;function jv(e,t){return function(r,i,o){return e(r,i,o)&&t(r,i,o)}}function Jf(e){return function(n,r,i){if(!n||!r||typeof n!="object"||typeof r!="object")return e(n,r,i);const{cache:o}=i,s=o.get(n),l=o.get(r);if(s&&l)return s===r&&l===n;o.set(n,r),o.set(r,n);const u=e(n,r,i);return o.delete(n),o.delete(r),u}}function jne(e){return e!=null?e[Symbol.toStringTag]:void 0}function fT(e){return kne(e).concat(Mne(e))}const $ne=Object.hasOwn||((e,t)=>Cne.call(e,t));function pa(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const Nne="__v",Lne="__o",Ine="_owner",{getOwnPropertyDescriptor:hT,keys:dT}=Object;function Dne(e,t){return e.byteLength===t.byteLength&&Ed(new Uint8Array(e),new Uint8Array(t))}function Rne(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&&Ed(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function Bne(e,t){return pa(e.getTime(),t.getTime())}function Fne(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function Vne(e,t){return e===t}function pT(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const i=new Array(r),o=e.entries();let s,l,u=0;for(;(s=o.next())&&!s.done;){const f=t.entries();let h=!1,d=0;for(;(l=f.next())&&!l.done;){if(i[d]){d++;continue}const m=s.value,v=l.value;if(n.equals(m[0],v[0],u,d,e,t,n)&&n.equals(m[1],v[1],m[0],v[0],e,t,n)){h=i[d]=!0;break}d++}if(!h)return!1;u++}return!0}const Une=pa;function Wne(e,t,n){const r=dT(e);let i=r.length;if(dT(t).length!==i)return!1;for(;i-- >0;)if(!e$(e,t,n,r[i]))return!1;return!0}function zl(e,t,n){const r=fT(e);let i=r.length;if(fT(t).length!==i)return!1;let o,s,l;for(;i-- >0;)if(o=r[i],!e$(e,t,n,o)||(s=hT(e,o),l=hT(t,o),(s||l)&&(!s||!l||s.configurable!==l.configurable||s.enumerable!==l.enumerable||s.writable!==l.writable)))return!1;return!0}function Hne(e,t){return pa(e.valueOf(),t.valueOf())}function Zne(e,t){return e.source===t.source&&e.flags===t.flags}function mT(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const i=new Array(r),o=e.values();let s,l;for(;(s=o.next())&&!s.done;){const u=t.values();let f=!1,h=0;for(;(l=u.next())&&!l.done;){if(!i[h]&&n.equals(s.value,l.value,s.value,l.value,e,t,n)){f=i[h]=!0;break}h++}if(!f)return!1}return!0}function Ed(e,t){let n=e.byteLength;if(t.byteLength!==n||e.byteOffset!==t.byteOffset)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function Gne(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 e$(e,t,n,r){return(r===Ine||r===Lne||r===Nne)&&(e.$$typeof||t.$$typeof)?!0:$ne(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}const Kne="[object ArrayBuffer]",qne="[object Arguments]",Xne="[object Boolean]",Yne="[object DataView]",Qne="[object Date]",Jne="[object Error]",ere="[object Map]",tre="[object Number]",nre="[object Object]",rre="[object RegExp]",ire="[object Set]",ore="[object String]",are={"[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},sre="[object URL]",lre=Object.prototype.toString;function ure({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:i,areFunctionsEqual:o,areMapsEqual:s,areNumbersEqual:l,areObjectsEqual:u,arePrimitiveWrappersEqual:f,areRegExpsEqual:h,areSetsEqual:d,areTypedArraysEqual:m,areUrlsEqual:v,unknownTagComparators:b}){return function(S,y,_){if(S===y)return!0;if(S==null||y==null)return!1;const w=typeof S;if(w!==typeof y)return!1;if(w!=="object")return w==="number"?l(S,y,_):w==="function"?o(S,y,_):!1;const E=S.constructor;if(E!==y.constructor)return!1;if(E===Object)return u(S,y,_);if(Array.isArray(S))return t(S,y,_);if(E===Date)return r(S,y,_);if(E===RegExp)return h(S,y,_);if(E===Map)return s(S,y,_);if(E===Set)return d(S,y,_);const P=lre.call(S);if(P===Qne)return r(S,y,_);if(P===rre)return h(S,y,_);if(P===ere)return s(S,y,_);if(P===ire)return d(S,y,_);if(P===nre)return typeof S.then!="function"&&typeof y.then!="function"&&u(S,y,_);if(P===sre)return v(S,y,_);if(P===Jne)return i(S,y,_);if(P===qne)return u(S,y,_);if(are[P])return m(S,y,_);if(P===Kne)return e(S,y,_);if(P===Yne)return n(S,y,_);if(P===Xne||P===tre||P===ore)return f(S,y,_);if(b){let A=b[P];if(!A){const M=jne(S);M&&(A=b[M])}if(A)return A(S,y,_)}return!1}}function cre({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:Dne,areArraysEqual:n?zl:Rne,areDataViewsEqual:zne,areDatesEqual:Bne,areErrorsEqual:Fne,areFunctionsEqual:Vne,areMapsEqual:n?jv(pT,zl):pT,areNumbersEqual:Une,areObjectsEqual:n?zl:Wne,arePrimitiveWrappersEqual:Hne,areRegExpsEqual:Zne,areSetsEqual:n?jv(mT,zl):mT,areTypedArraysEqual:n?jv(Ed,zl):Ed,areUrlsEqual:Gne,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){const i=Jf(r.areArraysEqual),o=Jf(r.areMapsEqual),s=Jf(r.areObjectsEqual),l=Jf(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:i,areMapsEqual:o,areObjectsEqual:s,areSetsEqual:l})}return r}function fre(e){return function(t,n,r,i,o,s,l){return e(t,n,l)}}function hre({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:h}=n();return t(l,u,{cache:f,equals:r,meta:h,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 dre=yo();yo({strict:!0});yo({circular:!0});yo({circular:!0,strict:!0});yo({createInternalComparator:()=>pa});yo({strict:!0,createInternalComparator:()=>pa});yo({circular:!0,createInternalComparator:()=>pa});yo({circular:!0,createInternalComparator:()=>pa,strict:!0});function yo(e={}){const{circular:t=!1,createInternalComparator:n,createState:r,strict:i=!1}=e,o=cre(e),s=ure(o),l=n?n(s):fre(s);return hre({circular:t,comparator:s,createState:r,equals:l,strict:i})}function pre(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function vT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function i(o){n<0&&(n=o),o-n>t?(e(o),n=-1):pre(i)};requestAnimationFrame(r)}function Zy(e){"@babel/helpers - typeof";return Zy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zy(e)}function mre(e){return xre(e)||yre(e)||gre(e)||vre()}function vre(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
352
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gre(e,t){if(e){if(typeof e=="string")return gT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gT(e,t)}}function gT(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function yre(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function xre(e){if(Array.isArray(e))return e}function _re(){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=mre(s),u=l[0],f=l.slice(1);if(typeof u=="number"){vT(i.bind(null,f),u);return}i(u),vT(i.bind(null,f));return}Zy(o)==="object"&&(e=o,t(e)),typeof o=="function"&&o()}};return{stop:function(){n=!0},start:function(o){n=!1,r(o)},subscribe:function(o){return t=o,function(){t=function(){return null}}}}}function 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 yT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function xT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yT(Object(n),!0).forEach(function(r){t$(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 t$(e,t,n){return t=bre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bre(e){var t=wre(e,"string");return lc(t)==="symbol"?t:String(t)}function wre(e,t){if(lc(e)!=="object"||e===null)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 Sre=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,i){return r.filter(function(o){return i.includes(o)})})},Pre=function(t){return t},Ore=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},vu=function(t,n){return Object.keys(n).reduce(function(r,i){return xT(xT({},r),{},t$({},i,t(i,n[i])))},{})},_T=function(t,n,r){return t.map(function(i){return"".concat(Ore(i)," ").concat(n,"ms ").concat(r)}).join(",")};function Tre(e,t){return kre(e)||Ere(e,t)||n$(e,t)||Are()}function Are(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
353
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ere(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(h){f=!0,i=h}finally{try{if(!u&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw i}}return l}}function kre(e){if(Array.isArray(e))return e}function Mre(e){return $re(e)||jre(e)||n$(e)||Cre()}function Cre(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
354
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function n$(e,t){if(e){if(typeof e=="string")return Gy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Gy(e,t)}}function jre(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function $re(e){if(Array.isArray(e))return Gy(e)}function Gy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var kd=1e-4,r$=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},i$=function(t,n){return t.map(function(r,i){return r*Math.pow(n,i)}).reduce(function(r,i){return r+i})},bT=function(t,n){return function(r){var i=r$(t,n);return i$(i,r)}},Nre=function(t,n){return function(r){var i=r$(t,n),o=[].concat(Mre(i.map(function(s,l){return s*l}).slice(1)),[0]);return i$(o,r)}},wT=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0],o=n[1],s=n[2],l=n[3];if(n.length===1)switch(n[0]){case"linear":i=0,o=0,s=1,l=1;break;case"ease":i=.25,o=.1,s=.25,l=1;break;case"ease-in":i=.42,o=0,s=1,l=1;break;case"ease-out":i=.42,o=0,s=.58,l=1;break;case"ease-in-out":i=0,o=0,s=.58,l=1;break;default:{var u=n[0].split("(");if(u[0]==="cubic-bezier"&&u[1].split(")")[0].split(",").length===4){var f=u[1].split(")")[0].split(",").map(function(S){return parseFloat(S)}),h=Tre(f,4);i=h[0],o=h[1],s=h[2],l=h[3]}}}var d=bT(i,s),m=bT(o,l),v=Nre(i,s),b=function(y){return y>1?1:y<0?0:y},x=function(y){for(var _=y>1?1:y,w=_,E=0;E<8;++E){var P=d(w)-_,A=v(w);if(Math.abs(P-_)<kd||A<kd)return m(w);w=b(w-P/A)}return m(w)};return x.isStepper=!1,x},Lre=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(h,d,m){var v=-(h-d)*r,b=m*o,x=m+(v-b)*l/1e3,S=m*l/1e3+h;return Math.abs(S-d)<kd&&Math.abs(x)<kd?[d,0]:[S,x]};return u.isStepper=!0,u.dt=l,u},Ire=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return wT(i);case"spring":return Lre();default:if(i.split("(")[0]==="cubic-bezier")return wT(i)}return typeof i=="function"?i:null};function uc(e){"@babel/helpers - typeof";return uc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uc(e)}function ST(e){return zre(e)||Rre(e)||o$(e)||Dre()}function Dre(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
355
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Rre(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function zre(e){if(Array.isArray(e))return qy(e)}function PT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ft(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PT(Object(n),!0).forEach(function(r){Ky(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ky(e,t,n){return t=Bre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bre(e){var t=Fre(e,"string");return uc(t)==="symbol"?t:String(t)}function Fre(e,t){if(uc(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(uc(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Vre(e,t){return Hre(e)||Wre(e,t)||o$(e,t)||Ure()}function Ure(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
356
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o$(e,t){if(e){if(typeof e=="string")return qy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qy(e,t)}}function qy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Wre(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(h){f=!0,i=h}finally{try{if(!u&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw i}}return l}}function Hre(e){if(Array.isArray(e))return e}var Md=function(t,n,r){return t+(n-t)*r},Xy=function(t){var n=t.from,r=t.to;return n!==r},Zre=function e(t,n,r){var i=vu(function(o,s){if(Xy(s)){var l=t(s.from,s.to,s.velocity),u=Vre(l,2),f=u[0],h=u[1];return Ft(Ft({},s),{},{from:f,velocity:h})}return s},n);return r<1?vu(function(o,s){return Xy(s)?Ft(Ft({},s),{},{velocity:Md(s.velocity,i[o].velocity,r),from:Md(s.from,i[o].from,r)}):s},n):e(t,i,r-1)};const Gre=function(e,t,n,r,i){var o=Sre(e,t),s=o.reduce(function(S,y){return Ft(Ft({},S),{},Ky({},y,[e[y],t[y]]))},{}),l=o.reduce(function(S,y){return Ft(Ft({},S),{},Ky({},y,{from:e[y],velocity:0,to:t[y]}))},{}),u=-1,f,h,d=function(){return null},m=function(){return vu(function(y,_){return _.from},l)},v=function(){return!Object.values(l).filter(Xy).length},b=function(y){f||(f=y);var _=y-f,w=_/n.dt;l=Zre(n,l,w),i(Ft(Ft(Ft({},e),t),m())),f=y,v()||(u=requestAnimationFrame(d))},x=function(y){h||(h=y);var _=(y-h)/r,w=vu(function(P,A){return Md.apply(void 0,ST(A).concat([n(_)]))},s);if(i(Ft(Ft(Ft({},e),t),w)),_<1)u=requestAnimationFrame(d);else{var E=vu(function(P,A){return Md.apply(void 0,ST(A).concat([n(1)]))},s);i(Ft(Ft(Ft({},e),t),E))}};return d=n.isStepper?b:x,function(){return requestAnimationFrame(d),function(){cancelAnimationFrame(u)}}};function Os(e){"@babel/helpers - typeof";return Os=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Os(e)}var Kre=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function qre(e,t){if(e==null)return{};var n=Xre(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 Xre(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function $v(e){return eie(e)||Jre(e)||Qre(e)||Yre()}function Yre(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
357
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qre(e,t){if(e){if(typeof e=="string")return Yy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Yy(e,t)}}function Jre(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function eie(e){if(Array.isArray(e))return Yy(e)}function Yy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function OT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function vr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?OT(Object(n),!0).forEach(function(r){Xl(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Xl(e,t,n){return t=a$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nie(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a$(r.key),r)}}function rie(e,t,n){return t&&nie(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function a$(e){var t=iie(e,"string");return Os(t)==="symbol"?t:String(t)}function iie(e,t){if(Os(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Os(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oie(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Qy(e,t)}function Qy(e,t){return Qy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Qy(e,t)}function aie(e){var t=sie();return function(){var r=Cd(e),i;if(t){var o=Cd(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Jy(this,i)}}function Jy(e,t){if(t&&(Os(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return e0(e)}function e0(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sie(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Cd(e){return Cd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Cd(e)}var Oi=function(e){oie(n,e);var t=aie(n);function n(r,i){var o;tie(this,n),o=t.call(this,r,i);var s=o.props,l=s.isActive,u=s.attributeName,f=s.from,h=s.to,d=s.steps,m=s.children,v=s.duration;if(o.handleStyleChange=o.handleStyleChange.bind(e0(o)),o.changeStyle=o.changeStyle.bind(e0(o)),!l||v<=0)return o.state={style:{}},typeof m=="function"&&(o.state={style:h}),Jy(o);if(d&&d.length)o.state={style:d[0].style};else if(f){if(typeof m=="function")return o.state={style:f},Jy(o);o.state={style:u?Xl({},u,f):f}}else o.state={style:{}};return o}return rie(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,h=o.to,d=o.from,m=this.state.style;if(l){if(!s){var v={style:u?Xl({},u,h):h};this.state&&m&&(u&&m[u]!==h||!u&&m!==h)&&this.setState(v);return}if(!(dre(i.to,h)&&i.canBegin&&i.isActive)){var b=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var x=b||f?d:i.to;if(this.state&&m){var S={style:u?Xl({},u,x):x};(u&&m[u]!==x||!u&&m!==x)&&this.setState(S)}this.runAnimation(vr(vr({},this.props),{},{from:x,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var o=this,s=i.from,l=i.to,u=i.duration,f=i.easing,h=i.begin,d=i.onAnimationEnd,m=i.onAnimationStart,v=Gre(s,l,Ire(f),u,this.changeStyle),b=function(){o.stopJSAnimation=v()};this.manager.start([m,h,b,u,d])}},{key:"runStepAnimation",value:function(i){var o=this,s=i.steps,l=i.begin,u=i.onAnimationStart,f=s[0],h=f.style,d=f.duration,m=d===void 0?0:d,v=function(x,S,y){if(y===0)return x;var _=S.duration,w=S.easing,E=w===void 0?"ease":w,P=S.style,A=S.properties,M=S.onAnimationEnd,C=y>0?s[y-1]:S,$=A||Object.keys(P);if(typeof E=="function"||E==="spring")return[].concat($v(x),[o.runJSAnimation.bind(o,{from:C.style,to:P,duration:_,easing:E}),_]);var B=_T($,_,E),z=vr(vr(vr({},C.style),P),{},{transition:B});return[].concat($v(x),[z,_,M]).filter(Pre)};return this.manager.start([u].concat($v(s.reduce(v,[h,Math.max(m,l)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=_re());var o=i.begin,s=i.duration,l=i.attributeName,u=i.to,f=i.easing,h=i.onAnimationStart,d=i.onAnimationEnd,m=i.steps,v=i.children,b=this.manager;if(this.unSubscribe=b.subscribe(this.handleStyleChange),typeof f=="function"||typeof v=="function"||f==="spring"){this.runJSAnimation(i);return}if(m.length>1){this.runStepAnimation(i);return}var x=l?Xl({},l,u):u,S=_T(Object.keys(x),s,f);b.start([h,o,vr(vr({},x),{},{transition:S}),s,d])}},{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=qre(i,Kre),f=j.Children.count(o),h=this.state.style;if(typeof o=="function")return o(h);if(!l||f===0||s<=0)return o;var d=function(v){var b=v.props,x=b.style,S=x===void 0?{}:x,y=b.className,_=j.cloneElement(v,vr(vr({},u),{},{style:vr(vr({},S),h),className:y}));return _};return f===1?d(j.Children.only(o)):I.createElement("div",null,j.Children.map(o,function(m){return d(m)}))}}]),n}(j.PureComponent);Oi.displayName="Animate";Oi.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Oi.propTypes={from:Re.oneOfType([Re.object,Re.string]),to:Re.oneOfType([Re.object,Re.string]),attributeName:Re.string,duration:Re.number,begin:Re.number,easing:Re.oneOfType([Re.string,Re.func]),steps:Re.arrayOf(Re.shape({duration:Re.number.isRequired,style:Re.object.isRequired,easing:Re.oneOfType([Re.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Re.func]),properties:Re.arrayOf("string"),onAnimationEnd:Re.func})),children:Re.oneOfType([Re.node,Re.func]),isActive:Re.bool,canBegin:Re.bool,onAnimationEnd:Re.func,shouldReAnimate:Re.bool,onAnimationStart:Re.func,onAnimationReStart:Re.func};function cc(e){"@babel/helpers - typeof";return cc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cc(e)}function 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 lie(e,t){return hie(e)||fie(e,t)||cie(e,t)||uie()}function uie(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
358
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cie(e,t){if(e){if(typeof e=="string")return TT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return TT(e,t)}}function TT(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function fie(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(h){f=!0,i=h}finally{try{if(!u&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw i}}return l}}function hie(e){if(Array.isArray(e))return e}function AT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ET(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?AT(Object(n),!0).forEach(function(r){die(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function die(e,t,n){return t=pie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pie(e){var t=mie(e,"string");return cc(t)=="symbol"?t:t+""}function mie(e,t){if(cc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(cc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var kT=function(t,n,r,i,o){var s=Math.min(Math.abs(r)/2,Math.abs(i)/2),l=i>=0?1:-1,u=r>=0?1:-1,f=i>=0&&r>=0||i<0&&r<0?1:0,h;if(s>0&&o instanceof Array){for(var d=[0,0,0,0],m=0,v=4;m<v;m++)d[m]=o[m]>s?s:o[m];h="M".concat(t,",").concat(n+l*d[0]),d[0]>0&&(h+="A ".concat(d[0],",").concat(d[0],",0,0,").concat(f,",").concat(t+u*d[0],",").concat(n)),h+="L ".concat(t+r-u*d[1],",").concat(n),d[1]>0&&(h+="A ".concat(d[1],",").concat(d[1],",0,0,").concat(f,`,
|
|
359
|
+
`).concat(t+r,",").concat(n+l*d[1])),h+="L ".concat(t+r,",").concat(n+i-l*d[2]),d[2]>0&&(h+="A ".concat(d[2],",").concat(d[2],",0,0,").concat(f,`,
|
|
360
|
+
`).concat(t+r-u*d[2],",").concat(n+i)),h+="L ".concat(t+u*d[3],",").concat(n+i),d[3]>0&&(h+="A ".concat(d[3],",").concat(d[3],",0,0,").concat(f,`,
|
|
361
|
+
`).concat(t,",").concat(n+i-l*d[3])),h+="Z"}else if(s>0&&o===+o&&o>0){var b=Math.min(s,o);h="M ".concat(t,",").concat(n+l*b,`
|
|
362
|
+
A `).concat(b,",").concat(b,",0,0,").concat(f,",").concat(t+u*b,",").concat(n,`
|
|
363
|
+
L `).concat(t+r-u*b,",").concat(n,`
|
|
364
|
+
A `).concat(b,",").concat(b,",0,0,").concat(f,",").concat(t+r,",").concat(n+l*b,`
|
|
365
|
+
L `).concat(t+r,",").concat(n+i-l*b,`
|
|
366
|
+
A `).concat(b,",").concat(b,",0,0,").concat(f,",").concat(t+r-u*b,",").concat(n+i,`
|
|
367
|
+
L `).concat(t+u*b,",").concat(n+i,`
|
|
368
|
+
A `).concat(b,",").concat(b,",0,0,").concat(f,",").concat(t,",").concat(n+i-l*b," Z")}else h="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(i," h ").concat(-r," Z");return h},vie=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),h=Math.max(o,o+l),d=Math.min(s,s+u),m=Math.max(s,s+u);return r>=f&&r<=h&&i>=d&&i<=m}return!1},gie={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},n1=function(t){var n=ET(ET({},gie),t),r=j.useRef(),i=j.useState(-1),o=lie(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,h=n.width,d=n.height,m=n.radius,v=n.className,b=n.animationEasing,x=n.animationDuration,S=n.animationBegin,y=n.isAnimationActive,_=n.isUpdateAnimationActive;if(u!==+u||f!==+f||h!==+h||d!==+d||h===0||d===0)return null;var w=Ne("recharts-rectangle",v);return _?I.createElement(Oi,{canBegin:s>0,from:{width:h,height:d,x:u,y:f},to:{width:h,height:d,x:u,y:f},duration:x,animationEasing:b,isActive:_},function(E){var P=E.width,A=E.height,M=E.x,C=E.y;return I.createElement(Oi,{canBegin:s>0,from:"0px ".concat(s===-1?1:s,"px"),to:"".concat(s,"px 0px"),attributeName:"strokeDasharray",begin:S,duration:x,isActive:y,easing:b},I.createElement("path",jd({},Ee(n,!0),{className:w,d:kT(M,C,P,A,m),ref:r})))}):I.createElement("path",jd({},Ee(n,!0),{className:w,d:kT(u,f,h,d,m)}))};function t0(){return t0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t0.apply(this,arguments)}var r1=function(t){var n=t.cx,r=t.cy,i=t.r,o=t.className,s=Ne("recharts-dot",o);return n===+n&&r===+r&&i===+i?j.createElement("circle",t0({},Ee(t,!1),qh(t),{className:s,cx:n,cy:r,r:i})):null};function 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)}var yie=["x","y","top","left","width","height","className"];function n0(){return n0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n0.apply(this,arguments)}function MT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function xie(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?MT(Object(n),!0).forEach(function(r){_ie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _ie(e,t,n){return t=bie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bie(e){var t=wie(e,"string");return fc(t)=="symbol"?t:t+""}function wie(e,t){if(fc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(fc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Sie(e,t){if(e==null)return{};var n=Pie(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 Pie(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 Oie=function(t,n,r,i,o,s){return"M".concat(t,",").concat(o,"v").concat(i,"M").concat(s,",").concat(n,"h").concat(r)},Tie=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,h=t.width,d=h===void 0?0:h,m=t.height,v=m===void 0?0:m,b=t.className,x=Sie(t,yie),S=xie({x:r,y:o,top:l,left:f,width:d,height:v},x);return!ie(r)||!ie(o)||!ie(d)||!ie(v)||!ie(l)||!ie(f)?null:I.createElement("path",n0({},Ee(S,!0),{className:Ne("recharts-cross",b),d:Oie(r,o,d,v,l,f)}))},Aie=wC,Eie=Aie(Object.getPrototypeOf,Object),kie=Eie,Mie=Ai,Cie=kie,jie=Ei,$ie="[object Object]",Nie=Function.prototype,Lie=Object.prototype,s$=Nie.toString,Iie=Lie.hasOwnProperty,Die=s$.call(Object);function Rie(e){if(!jie(e)||Mie(e)!=$ie)return!1;var t=Cie(e);if(t===null)return!0;var n=Iie.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&s$.call(n)==Die}var zie=Rie;const Bie=Ge(zie);var Fie=Ai,Vie=Ei,Uie="[object Boolean]";function Wie(e){return e===!0||e===!1||Vie(e)&&Fie(e)==Uie}var Hie=Wie;const Zie=Ge(Hie);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 $d(){return $d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$d.apply(this,arguments)}function Gie(e,t){return Yie(e)||Xie(e,t)||qie(e,t)||Kie()}function Kie(){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 qie(e,t){if(e){if(typeof e=="string")return CT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return CT(e,t)}}function CT(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function 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(h){f=!0,i=h}finally{try{if(!u&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw i}}return l}}function Yie(e){if(Array.isArray(e))return e}function jT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function $T(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jT(Object(n),!0).forEach(function(r){Qie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Qie(e,t,n){return t=Jie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jie(e){var t=eoe(e,"string");return hc(t)=="symbol"?t:t+""}function eoe(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 NT=function(t,n,r,i,o){var s=r-i,l;return l="M ".concat(t,",").concat(n),l+="L ".concat(t+r,",").concat(n),l+="L ".concat(t+r-s/2,",").concat(n+o),l+="L ".concat(t+r-s/2-i,",").concat(n+o),l+="L ".concat(t,",").concat(n," Z"),l},toe={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},noe=function(t){var n=$T($T({},toe),t),r=j.useRef(),i=j.useState(-1),o=Gie(i,2),s=o[0],l=o[1];j.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var w=r.current.getTotalLength();w&&l(w)}catch{}},[]);var u=n.x,f=n.y,h=n.upperWidth,d=n.lowerWidth,m=n.height,v=n.className,b=n.animationEasing,x=n.animationDuration,S=n.animationBegin,y=n.isUpdateAnimationActive;if(u!==+u||f!==+f||h!==+h||d!==+d||m!==+m||h===0&&d===0||m===0)return null;var _=Ne("recharts-trapezoid",v);return y?I.createElement(Oi,{canBegin:s>0,from:{upperWidth:0,lowerWidth:0,height:m,x:u,y:f},to:{upperWidth:h,lowerWidth:d,height:m,x:u,y:f},duration:x,animationEasing:b,isActive:y},function(w){var E=w.upperWidth,P=w.lowerWidth,A=w.height,M=w.x,C=w.y;return I.createElement(Oi,{canBegin:s>0,from:"0px ".concat(s===-1?1:s,"px"),to:"".concat(s,"px 0px"),attributeName:"strokeDasharray",begin:S,duration:x,easing:b},I.createElement("path",$d({},Ee(n,!0),{className:_,d:NT(M,C,E,P,A),ref:r})))}):I.createElement("g",null,I.createElement("path",$d({},Ee(n,!0),{className:_,d:NT(u,f,h,d,m)})))},roe=["option","shapeType","propTransformer","activeClassName","isActive"];function dc(e){"@babel/helpers - typeof";return dc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dc(e)}function ioe(e,t){if(e==null)return{};var n=ooe(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 ooe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function LT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Nd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?LT(Object(n),!0).forEach(function(r){aoe(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 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 dc(t)=="symbol"?t:t+""}function loe(e,t){if(dc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(dc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function uoe(e,t){return Nd(Nd({},t),e)}function coe(e,t){return e==="symbols"}function IT(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return I.createElement(n1,n);case"trapezoid":return I.createElement(noe,n);case"sector":return I.createElement(Xj,n);case"symbols":if(coe(t))return I.createElement(__,n);break;default:return null}}function foe(e){return j.isValidElement(e)?e.props:e}function hoe(e){var t=e.option,n=e.shapeType,r=e.propTransformer,i=r===void 0?uoe:r,o=e.activeClassName,s=o===void 0?"recharts-active-shape":o,l=e.isActive,u=ioe(e,roe),f;if(j.isValidElement(t))f=j.cloneElement(t,Nd(Nd({},u),foe(t)));else if(Se(t))f=t(u);else if(Bie(t)&&!Zie(t)){var h=i(t,u);f=I.createElement(IT,{shapeType:n,elementProps:h})}else{var d=u;f=I.createElement(IT,{shapeType:n,elementProps:d})}return l?I.createElement(ft,{className:s},f):f}function Xp(e,t){return t!=null&&"trapezoids"in e.props}function Yp(e,t){return t!=null&&"sectors"in e.props}function pc(e,t){return t!=null&&"points"in e.props}function doe(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 poe(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function moe(e,t){var n=e.x===t.x,r=e.y===t.y,i=e.z===t.z;return n&&r&&i}function voe(e,t){var n;return Xp(e,t)?n=doe:Yp(e,t)?n=poe:pc(e,t)&&(n=moe),n}function goe(e,t){var n;return Xp(e,t)?n="trapezoids":Yp(e,t)?n="sectors":pc(e,t)&&(n="points"),n}function yoe(e,t){if(Xp(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}if(Yp(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}return pc(e,t)?t.payload:{}}function xoe(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,i=goe(n,t),o=yoe(n,t),s=r.filter(function(u,f){var h=Yu(o,u),d=n.props[i].filter(function(b){var x=voe(n,t);return x(b,t)}),m=n.props[i].indexOf(d[d.length-1]),v=f===m;return h&&v}),l=r.indexOf(s[s.length-1]);return l}var _oe=Math.ceil,boe=Math.max;function woe(e,t,n,r){for(var i=-1,o=boe(_oe((t-e)/(n||1)),0),s=Array(o);o--;)s[r?o:++i]=e,e+=n;return s}var Soe=woe,Poe=FC,DT=1/0,Ooe=17976931348623157e292;function Toe(e){if(!e)return e===0?e:0;if(e=Poe(e),e===DT||e===-DT){var t=e<0?-1:1;return t*Ooe}return e===e?e:0}var l$=Toe,Aoe=Soe,Eoe=zp,Nv=l$;function koe(e){return function(t,n,r){return r&&typeof r!="number"&&Eoe(t,n,r)&&(n=r=void 0),t=Nv(t),n===void 0?(n=t,t=0):n=Nv(n),r=r===void 0?t<n?1:-1:Nv(r),Aoe(t,n,r,e)}}var Moe=koe,Coe=Moe,joe=Coe(),$oe=joe;const Ld=Ge($oe);function mc(e){"@babel/helpers - typeof";return mc=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},mc(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){u$(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 u$(e,t,n){return t=Noe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Noe(e){var t=Loe(e,"string");return mc(t)=="symbol"?t:t+""}function Loe(e,t){if(mc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(mc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ioe=["Webkit","Moz","O","ms"],Doe=function(t,n){var r=t.replace(/(\w)/,function(o){return o.toUpperCase()}),i=Ioe.reduce(function(o,s){return zT(zT({},o),{},u$({},s+r,n))},{});return i[t]=n,i};function Ts(e){"@babel/helpers - typeof";return Ts=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ts(e)}function Id(){return Id=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Id.apply(this,arguments)}function BT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Lv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?BT(Object(n),!0).forEach(function(r){Mn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Roe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function FT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,f$(r.key),r)}}function zoe(e,t,n){return t&&FT(e.prototype,t),n&&FT(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Boe(e,t,n){return t=Dd(t),Foe(e,c$()?Reflect.construct(t,n||[],Dd(e).constructor):t.apply(e,n))}function Foe(e,t){if(t&&(Ts(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Voe(e)}function Voe(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 Dd(e){return Dd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Dd(e)}function Uoe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r0(e,t)}function r0(e,t){return r0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},r0(e,t)}function Mn(e,t,n){return t=f$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f$(e){var t=Woe(e,"string");return Ts(t)=="symbol"?t:t+""}function Woe(e,t){if(Ts(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ts(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Hoe=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=du().domain(Ld(0,u)).range([o,o+s-l]),h=f.domain().map(function(d){return f(d)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:f(r),endX:f(i),scale:f,scaleValues:h}},VT=function(t){return t.changedTouches&&!!t.changedTouches.length},As=function(e){function t(n){var r;return Roe(this,t),r=Boe(this,t,[n]),Mn(r,"handleDrag",function(i){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(i):r.state.isSlideMoving&&r.handleSlideDrag(i)}),Mn(r,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&r.handleDrag(i.changedTouches[0])}),Mn(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=r.props,o=i.endIndex,s=i.onDragEnd,l=i.startIndex;s==null||s({endIndex:o,startIndex:l})}),r.detachDragEndListener()}),Mn(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),Mn(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),Mn(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),Mn(r,"handleSlideDragStart",function(i){var o=VT(i)?i.changedTouches[0]:i;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:o.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return Uoe(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,h=f.length-1,d=Math.min(i,o),m=Math.max(i,o),v=t.getIndexInRange(s,d),b=t.getIndexInRange(s,m);return{startIndex:v-v%u,endIndex:b===h?h:b-b%u}}},{key:"getTextOfTick",value:function(r){var i=this.props,o=i.data,s=i.tickFormatter,l=i.dataKey,u=zn(o[r],l,r);return Se(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,h=u.width,d=u.travellerWidth,m=u.startIndex,v=u.endIndex,b=u.onChange,x=r.pageX-o;x>0?x=Math.min(x,f+h-d-l,f+h-d-s):x<0&&(x=Math.max(x,f-s,f-l));var S=this.getIndex({startX:s+x,endX:l+x});(S.startIndex!==m||S.endIndex!==v)&&b&&b(S),this.setState({startX:s+x,endX:l+x,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,i){var o=VT(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:o.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var i=this.state,o=i.brushMoveStartX,s=i.movingTravellerId,l=i.endX,u=i.startX,f=this.state[s],h=this.props,d=h.x,m=h.width,v=h.travellerWidth,b=h.onChange,x=h.gap,S=h.data,y={startX:this.state.startX,endX:this.state.endX},_=r.pageX-o;_>0?_=Math.min(_,d+m-v-f):_<0&&(_=Math.max(_,d-f)),y[s]=f+_;var w=this.getIndex(y),E=w.startIndex,P=w.endIndex,A=function(){var C=S.length-1;return s==="startX"&&(l>u?E%x===0:P%x===0)||l<u&&P===C||s==="endX"&&(l>u?P%x===0:E%x===0)||l>u&&P===C};this.setState(Mn(Mn({},s,f+_),"brushMoveStartX",r.pageX),function(){b&&A()&&b(w)})}},{key:"handleTravellerMoveKeyboard",value:function(r,i){var o=this,s=this.state,l=s.scaleValues,u=s.startX,f=s.endX,h=this.state[i],d=l.indexOf(h);if(d!==-1){var m=d+r;if(!(m===-1||m>=l.length)){var v=l[m];i==="startX"&&v>=f||i==="endX"&&v<=u||this.setState(Mn({},i,v),function(){o.props.onChange(o.getIndex({startX:o.state.startX,endX:o.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,i=r.x,o=r.y,s=r.width,l=r.height,u=r.fill,f=r.stroke;return 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,h=r.padding,d=j.Children.only(f);return d?I.cloneElement(d,{x:i,y:o,width:s,height:l,margin:h,compact:!0,data:u}):null}},{key:"renderTravellerLayer",value:function(r,i){var o,s,l=this,u=this.props,f=u.y,h=u.travellerWidth,d=u.height,m=u.traveller,v=u.ariaLabel,b=u.data,x=u.startIndex,S=u.endIndex,y=Math.max(r,this.props.x),_=Lv(Lv({},Ee(this.props,!1)),{},{x:y,y:f,width:h,height:d}),w=v||"Min value: ".concat((o=b[x])===null||o===void 0?void 0:o.name,", Max value: ").concat((s=b[S])===null||s===void 0?void 0:s.name);return I.createElement(ft,{tabIndex:0,role:"slider","aria-label":w,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(P){["ArrowLeft","ArrowRight"].includes(P.key)&&(P.preventDefault(),P.stopPropagation(),l.handleTravellerMoveKeyboard(P.key==="ArrowRight"?1:-1,i))},onFocus:function(){l.setState({isTravellerFocused:!0})},onBlur:function(){l.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(m,_))}},{key:"renderSlide",value:function(r,i){var o=this.props,s=o.y,l=o.height,u=o.stroke,f=o.travellerWidth,h=Math.min(r,i)+f,d=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:h,y:s,width:d,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,h=this.state,d=h.startX,m=h.endX,v=5,b={pointerEvents:"none",fill:f};return I.createElement(ft,{className:"recharts-brush-texts"},I.createElement(cd,Id({textAnchor:"end",verticalAnchor:"middle",x:Math.min(d,m)-v,y:s+l/2},b),this.getTextOfTick(i)),I.createElement(cd,Id({textAnchor:"start",verticalAnchor:"middle",x:Math.max(d,m)+u+v,y:s+l/2},b),this.getTextOfTick(o)))}},{key:"render",value:function(){var r=this.props,i=r.data,o=r.className,s=r.children,l=r.x,u=r.y,f=r.width,h=r.height,d=r.alwaysShowText,m=this.state,v=m.startX,b=m.endX,x=m.isTextActive,S=m.isSlideMoving,y=m.isTravellerMoving,_=m.isTravellerFocused;if(!i||!i.length||!ie(l)||!ie(u)||!ie(f)||!ie(h)||f<=0||h<=0)return null;var w=Ne("recharts-brush",o),E=I.Children.count(s)===1,P=Doe("userSelect","none");return I.createElement(ft,{className:w,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:P},this.renderBackground(),E&&this.renderPanorama(),this.renderSlide(v,b),this.renderTravellerLayer(v,"startX"),this.renderTravellerLayer(b,"endX"),(x||S||y||_||d)&&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):Se(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,h=r.startIndex,d=r.endIndex;if(o!==i.prevData||f!==i.prevUpdateId)return Lv({prevData:o,prevTravellerWidth:u,prevUpdateId:f,prevX:l,prevWidth:s},o&&o.length?Hoe({data:o,width:s,x:l,travellerWidth:u,startIndex:h,endIndex:d}):{scale:null,scaleValues:null});if(i.scale&&(s!==i.prevWidth||l!==i.prevX||u!==i.prevTravellerWidth)){i.scale.range([l,l+s-u]);var m=i.scale.domain().map(function(v){return i.scale(v)});return{prevData:o,prevTravellerWidth:u,prevUpdateId:f,prevX:l,prevWidth:s,startX:i.scale(r.startIndex),endX:i.scale(r.endIndex),scaleValues:m}}return null}},{key:"getIndexInRange",value:function(r,i){for(var o=r.length,s=0,l=o-1;l-s>1;){var u=Math.floor((s+l)/2);r[u]>i?l=u:s=u}return i>=r[l]?l:s}}])}(j.PureComponent);Mn(As,"displayName","Brush");Mn(As,"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 Zoe=A_;function Goe(e,t){var n;return Zoe(e,function(r,i,o){return n=t(r,i,o),!n}),!!n}var Koe=Goe,qoe=pC,Xoe=mo,Yoe=Koe,Qoe=Pn,Joe=zp;function eae(e,t,n){var r=Qoe(e)?qoe:Yoe;return n&&Joe(e,t,n)&&(t=void 0),r(e,Xoe(t))}var tae=eae;const nae=Ge(tae);var Hr=function(t,n){var r=t.alwaysShow,i=t.ifOverflow;return r&&(i="extendDomain"),i===n},UT=IC;function rae(e,t,n){t=="__proto__"&&UT?UT(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var iae=rae,oae=iae,aae=NC,sae=mo;function lae(e,t){var n={};return t=sae(t),aae(e,function(r,i,o){oae(n,i,t(r,i,o))}),n}var uae=lae;const cae=Ge(uae);function fae(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 hae=fae,dae=A_;function pae(e,t){var n=!0;return dae(e,function(r,i,o){return n=!!t(r,i,o),n}),n}var mae=pae,vae=hae,gae=mae,yae=mo,xae=Pn,_ae=zp;function bae(e,t,n){var r=xae(e)?vae:gae;return n&&_ae(e,t,n)&&(t=void 0),r(e,yae(t))}var wae=bae;const h$=Ge(wae);var Sae=["x","y"];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 i0(){return i0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i0.apply(this,arguments)}function WT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Bl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?WT(Object(n),!0).forEach(function(r){Pae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Pae(e,t,n){return t=Oae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oae(e){var t=Tae(e,"string");return vc(t)=="symbol"?t:t+""}function Tae(e,t){if(vc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(vc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Aae(e,t){if(e==null)return{};var n=Eae(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 Eae(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 kae(e,t){var n=e.x,r=e.y,i=Aae(e,Sae),o="".concat(n),s=parseInt(o,10),l="".concat(r),u=parseInt(l,10),f="".concat(t.height||i.height),h=parseInt(f,10),d="".concat(t.width||i.width),m=parseInt(d,10);return Bl(Bl(Bl(Bl(Bl({},t),i),s?{x:s}:{}),u?{y:u}:{}),{},{height:h,width:m,name:t.name,radius:t.radius})}function HT(e){return I.createElement(hoe,i0({shapeType:"rectangle",propTransformer:kae,activeClassName:"recharts-active-bar"},e))}var Mae=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(r,i){if(typeof t=="number")return t;var o=ie(r)||U6(r);return o?t(r,i):(o||aa(),n)}},Cae=["value","background"],d$;function Es(e){"@babel/helpers - typeof";return Es=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Es(e)}function jae(e,t){if(e==null)return{};var n=$ae(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 $ae(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Rd(){return Rd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rd.apply(this,arguments)}function ZT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function St(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ZT(Object(n),!0).forEach(function(r){qi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Nae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,m$(r.key),r)}}function Lae(e,t,n){return t&>(e.prototype,t),n&>(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Iae(e,t,n){return t=zd(t),Dae(e,p$()?Reflect.construct(t,n||[],zd(e).constructor):t.apply(e,n))}function Dae(e,t){if(t&&(Es(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Rae(e)}function Rae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(p$=function(){return!!e})()}function zd(e){return zd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},zd(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 qi(e,t,n){return t=m$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m$(e){var t=Bae(e,"string");return Es(t)=="symbol"?t:t+""}function Bae(e,t){if(Es(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Es(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ma=function(e){function t(){var n;Nae(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=Iae(this,t,[].concat(i)),qi(n,"state",{isAnimationFinished:!1}),qi(n,"id",Cc("recharts-bar-")),qi(n,"handleAnimationEnd",function(){var s=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),s&&s()}),qi(n,"handleAnimationStart",function(){var s=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),s&&s()}),n}return zae(t,e),Lae(t,[{key:"renderRectanglesStatically",value:function(r){var i=this,o=this.props,s=o.shape,l=o.dataKey,u=o.activeIndex,f=o.activeBar,h=Ee(this.props,!1);return r&&r.map(function(d,m){var v=m===u,b=v?f:s,x=St(St(St({},h),d),{},{isActive:v,option:b,index:m,dataKey:l,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return I.createElement(ft,Rd({className:"recharts-bar-rectangle"},Xh(i.props,d,m),{key:"rectangle-".concat(d==null?void 0:d.x,"-").concat(d==null?void 0:d.y,"-").concat(d==null?void 0:d.value,"-").concat(m)}),I.createElement(HT,x))})}},{key:"renderRectanglesWithAnimation",value:function(){var r=this,i=this.props,o=i.data,s=i.layout,l=i.isAnimationActive,u=i.animationBegin,f=i.animationDuration,h=i.animationEasing,d=i.animationId,m=this.state.prevData;return I.createElement(Oi,{begin:u,duration:f,isActive:l,easing:h,from:{t:0},to:{t:1},key:"bar-".concat(d),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(v){var b=v.t,x=o.map(function(S,y){var _=m&&m[y];if(_){var w=nr(_.x,S.x),E=nr(_.y,S.y),P=nr(_.width,S.width),A=nr(_.height,S.height);return St(St({},S),{},{x:w(b),y:E(b),width:P(b),height:A(b)})}if(s==="horizontal"){var M=nr(0,S.height),C=M(b);return St(St({},S),{},{y:S.y+S.height-C,height:C})}var $=nr(0,S.width),B=$(b);return St(St({},S),{},{width:B})});return I.createElement(ft,null,r.renderRectanglesStatically(x))})}},{key:"renderRectangles",value:function(){var r=this.props,i=r.data,o=r.isAnimationActive,s=this.state.prevData;return o&&i&&i.length&&(!s||!Yu(s,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var r=this,i=this.props,o=i.data,s=i.dataKey,l=i.activeIndex,u=Ee(this.props.background,!1);return o.map(function(f,h){f.value;var d=f.background,m=jae(f,Cae);if(!d)return null;var v=St(St(St(St(St({},m),{},{fill:"#eee"},d),u),Xh(r.props,f,h)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:s,index:h,className:"recharts-bar-background-rectangle"});return I.createElement(HT,Rd({key:"background-bar-".concat(h),option:r.props.background,isActive:h===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,h=o.children,d=Tr(h,qp);if(!d)return null;var m=f==="vertical"?s[0].height/2:s[0].width/2,v=function(S,y){var _=Array.isArray(S.value)?S.value[1]:S.value;return{x:S.x,y:S.y,value:_,errorVal:zn(S,y)}},b={clipPath:r?"url(#clipPath-".concat(i,")"):null};return I.createElement(ft,b,d.map(function(x){return I.cloneElement(x,{key:"error-bar-".concat(i,"-").concat(x.props.dataKey),data:s,xAxis:l,yAxis:u,layout:f,offset:m,dataPointFormatter:v})}))}},{key:"render",value:function(){var r=this.props,i=r.hide,o=r.data,s=r.className,l=r.xAxis,u=r.yAxis,f=r.left,h=r.top,d=r.width,m=r.height,v=r.isAnimationActive,b=r.background,x=r.id;if(i||!o||!o.length)return null;var S=this.state.isAnimationFinished,y=Ne("recharts-bar",s),_=l&&l.allowDataOverflow,w=u&&u.allowDataOverflow,E=_||w,P=Me(x)?this.id:x;return I.createElement(ft,{className:y},_||w?I.createElement("defs",null,I.createElement("clipPath",{id:"clipPath-".concat(P)},I.createElement("rect",{x:_?f:f-d/2,y:w?h:h-m/2,width:_?d:d*2,height:w?m:m*2}))):null,I.createElement(ft,{className:"recharts-bar-rectangles",clipPath:E?"url(#clipPath-".concat(P,")"):null},b?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(E,P),(!v||S)&&Wr.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);d$=ma;qi(ma,"displayName","Bar");qi(ma,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!tl.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});qi(ma,"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,h=e.dataStartIndex,d=e.displayedData,m=e.offset,v=hte(r,n);if(!v)return null;var b=t.layout,x=n.type.defaultProps,S=x!==void 0?St(St({},x),n.props):n.props,y=S.dataKey,_=S.children,w=S.minPointSize,E=b==="horizontal"?s:o,P=f?E.scale.domain():null,A=_te({numericAxis:E}),M=Tr(_,M_),C=d.map(function($,B){var z,R,G,W,H,Z;f?z=dte(f[h+B],P):(z=zn($,y),Array.isArray(z)||(z=[A,z]));var K=Mae(w,d$.defaultProps.minPointSize)(z[1],B);if(b==="horizontal"){var D,q=[s.scale(z[0]),s.scale(z[1])],V=q[0],te=q[1];R=qO({axis:o,ticks:l,bandSize:i,offset:v.offset,entry:$,index:B}),G=(D=te??V)!==null&&D!==void 0?D:void 0,W=v.size;var Y=V-te;if(H=Number.isNaN(Y)?0:Y,Z={x:R,y:s.y,width:W,height:s.height},Math.abs(K)>0&&Math.abs(H)<Math.abs(K)){var ae=Sr(H||K)*(Math.abs(K)-Math.abs(H));G-=ae,H+=ae}}else{var fe=[o.scale(z[0]),o.scale(z[1])],he=fe[0],ce=fe[1];if(R=he,G=qO({axis:s,ticks:u,bandSize:i,offset:v.offset,entry:$,index:B}),W=ce-he,H=v.size,Z={x:o.x,y:G,width:o.width,height:H},Math.abs(K)>0&&Math.abs(W)<Math.abs(K)){var Ve=Sr(W||K)*(Math.abs(K)-Math.abs(W));W+=Ve}}return St(St(St({},$),{},{x:R,y:G,width:W,height:H,value:f?z:z[1],payload:$,background:Z},M&&M[B]&&M[B].props),{},{tooltipPayload:[Gj(n,$)],tooltipPosition:{x:R+W/2,y:G+H/2}})});return St({data:C,layout:b},m)});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 Fae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function KT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,v$(r.key),r)}}function Vae(e,t,n){return t&&KT(e.prototype,t),n&&KT(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function qT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function _r(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qT(Object(n),!0).forEach(function(r){Qp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Qp(e,t,n){return t=v$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v$(e){var t=Uae(e,"string");return gc(t)=="symbol"?t:t+""}function Uae(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)}var g$=function(t,n,r,i,o){var s=t.width,l=t.height,u=t.layout,f=t.children,h=Object.keys(n),d={left:r.left,leftMirror:r.left,right:s-r.right,rightMirror:s-r.right,top:r.top,topMirror:r.top,bottom:l-r.bottom,bottomMirror:l-r.bottom},m=!!jn(f,ma);return h.reduce(function(v,b){var x=n[b],S=x.orientation,y=x.domain,_=x.padding,w=_===void 0?{}:_,E=x.mirror,P=x.reversed,A="".concat(S).concat(E?"Mirror":""),M,C,$,B,z;if(x.type==="number"&&(x.padding==="gap"||x.padding==="no-gap")){var R=y[1]-y[0],G=1/0,W=x.categoricalDomain.sort(Z6);if(W.forEach(function(fe,he){he>0&&(G=Math.min((fe||0)-(W[he-1]||0),G))}),Number.isFinite(G)){var H=G/R,Z=x.layout==="vertical"?r.height:r.width;if(x.padding==="gap"&&(M=H*Z/2),x.padding==="no-gap"){var K=ia(t.barCategoryGap,H*Z),D=H*Z/2;M=D-K-(D-K)/Z*K}}}i==="xAxis"?C=[r.left+(w.left||0)+(M||0),r.left+r.width-(w.right||0)-(M||0)]:i==="yAxis"?C=u==="horizontal"?[r.top+r.height-(w.bottom||0),r.top+(w.top||0)]:[r.top+(w.top||0)+(M||0),r.top+r.height-(w.bottom||0)-(M||0)]:C=x.range,P&&(C=[C[1],C[0]]);var q=cte(x,o,m),V=q.scale,te=q.realScaleType;V.domain(y).range(C),fte(V);var Y=xte(V,_r(_r({},x),{},{realScaleType:te}));i==="xAxis"?(z=S==="top"&&!E||S==="bottom"&&E,$=r.left,B=d[A]-z*x.height):i==="yAxis"&&(z=S==="left"&&!E||S==="right"&&E,$=d[A]-z*x.width,B=r.top);var ae=_r(_r(_r({},x),Y),{},{realScaleType:te,x:$,y:B,scale:V,width:i==="xAxis"?r.width:x.width,height:i==="yAxis"?r.height:x.height});return ae.bandSize=Od(ae,Y),!x.hide&&i==="xAxis"?d[A]+=(z?-1:1)*ae.height:x.hide||(d[A]+=(z?-1:1)*ae.width),_r(_r({},v),{},Qp({},b,ae))},{})},y$=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)}},Wae=function(t){var n=t.x1,r=t.y1,i=t.x2,o=t.y2;return y$({x:n,y:r},{x:i,y:o})},x$=function(){function e(t){Fae(this,e),this.scale=t}return Vae(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.bandAware,o=r.position;if(n!==void 0){if(o)switch(o){case"start":return this.scale(n);case"middle":{var s=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+s}case"end":{var l=this.bandwidth?this.bandwidth():0;return this.scale(n)+l}default:return this.scale(n)}if(i){var u=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+u}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),i=r[0],o=r[r.length-1];return i<=o?n>=i&&n<=o:n>=o&&n<=i}}],[{key:"create",value:function(n){return new e(n)}}])}();Qp(x$,"EPS",1e-4);var i1=function(t){var n=Object.keys(t).reduce(function(r,i){return _r(_r({},r),{},Qp({},i,x$.create(t[i])))},{});return _r(_r({},n),{},{apply:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=o.bandAware,l=o.position;return cae(i,function(u,f){return n[f].apply(u,{bandAware:s,position:l})})},isInRange:function(i){return h$(i,function(o,s){return n[s].isInRange(o)})}})};function Hae(e){return(e%180+180)%180}var Zae=function(t){var n=t.width,r=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=Hae(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)},Gae=mo,Kae=jc,qae=Dp;function Xae(e){return function(t,n,r){var i=Object(t);if(!Kae(t)){var o=Gae(n);t=qae(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 Yae=Xae,Qae=l$;function Jae(e){var t=Qae(e),n=t%1;return t===t?n?t-n:t:0}var ese=Jae,tse=EC,nse=mo,rse=ese,ise=Math.max;function ose(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:rse(n);return i<0&&(i=ise(r+i,0)),tse(e,nse(t),i)}var ase=ose,sse=Yae,lse=ase,use=sse(lse),cse=use;const fse=Ge(cse);var hse=q8(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),o1=j.createContext(void 0),a1=j.createContext(void 0),_$=j.createContext(void 0),b$=j.createContext({}),w$=j.createContext(void 0),S$=j.createContext(0),P$=j.createContext(0),XT=function(t){var n=t.state,r=n.xAxisMap,i=n.yAxisMap,o=n.offset,s=t.clipPathId,l=t.children,u=t.width,f=t.height,h=hse(o);return I.createElement(o1.Provider,{value:r},I.createElement(a1.Provider,{value:i},I.createElement(b$.Provider,{value:o},I.createElement(_$.Provider,{value:h},I.createElement(w$.Provider,{value:s},I.createElement(S$.Provider,{value:f},I.createElement(P$.Provider,{value:u},l)))))))},dse=function(){return j.useContext(w$)},O$=function(t){var n=j.useContext(o1);n==null&&aa();var r=n[t];return r==null&&aa(),r},pse=function(){var t=j.useContext(o1);return Hi(t)},mse=function(){var t=j.useContext(a1),n=fse(t,function(r){return h$(r.domain,Number.isFinite)});return n||Hi(t)},T$=function(t){var n=j.useContext(a1);n==null&&aa();var r=n[t];return r==null&&aa(),r},vse=function(){var t=j.useContext(_$);return t},gse=function(){return j.useContext(b$)},s1=function(){return j.useContext(P$)},l1=function(){return j.useContext(S$)};function ks(e){"@babel/helpers - typeof";return ks=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ks(e)}function yse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xse(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,E$(r.key),r)}}function _se(e,t,n){return t&&xse(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function bse(e,t,n){return t=Bd(t),wse(e,A$()?Reflect.construct(t,n||[],Bd(e).constructor):t.apply(e,n))}function wse(e,t){if(t&&(ks(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Sse(e)}function Sse(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 Bd(e){return Bd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Bd(e)}function Pse(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a0(e,t)}function a0(e,t){return a0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},a0(e,t)}function YT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function QT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?YT(Object(n),!0).forEach(function(r){u1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function u1(e,t,n){return t=E$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E$(e){var t=Ose(e,"string");return ks(t)=="symbol"?t:t+""}function Ose(e,t){if(ks(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ks(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Tse(e,t){return Mse(e)||kse(e,t)||Ese(e,t)||Ase()}function Ase(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
370
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ese(e,t){if(e){if(typeof e=="string")return JT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return JT(e,t)}}function JT(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function kse(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(h){f=!0,i=h}finally{try{if(!u&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw i}}return l}}function Mse(e){if(Array.isArray(e))return e}function s0(){return s0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s0.apply(this,arguments)}var Cse=function(t,n){var r;return I.isValidElement(t)?r=I.cloneElement(t,n):Se(t)?r=t(n):r=I.createElement("line",s0({},n,{className:"recharts-reference-line-line"})),r},jse=function(t,n,r,i,o,s,l,u,f){var h=o.x,d=o.y,m=o.width,v=o.height;if(r){var b=f.y,x=t.y.apply(b,{position:s});if(Hr(f,"discard")&&!t.y.isInRange(x))return null;var S=[{x:h+m,y:x},{x:h,y:x}];return u==="left"?S.reverse():S}if(n){var y=f.x,_=t.x.apply(y,{position:s});if(Hr(f,"discard")&&!t.x.isInRange(_))return null;var w=[{x:_,y:d+v},{x:_,y:d}];return l==="top"?w.reverse():w}if(i){var E=f.segment,P=E.map(function(A){return t.apply(A,{position:s})});return Hr(f,"discard")&&nae(P,function(A){return!t.isInRange(A)})?null:P}return null};function $se(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=dse(),h=O$(i),d=T$(o),m=vse();if(!f||!m)return null;mi(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var v=i1({x:h.scale,y:d.scale}),b=Ct(t),x=Ct(n),S=r&&r.length===2,y=jse(v,b,x,S,m,e.position,h.orientation,d.orientation,e);if(!y)return null;var _=Tse(y,2),w=_[0],E=w.x,P=w.y,A=_[1],M=A.x,C=A.y,$=Hr(e,"hidden")?"url(#".concat(f,")"):void 0,B=QT(QT({clipPath:$},Ee(e,!0)),{},{x1:E,y1:P,x2:M,y2:C});return I.createElement(ft,{className:Ne("recharts-reference-line",l)},Cse(s,B),Qt.renderCallByParent(e,Wae({x1:E,y1:P,x2:M,y2:C})))}var c1=function(e){function t(){return yse(this,t),bse(this,t,arguments)}return Pse(t,e),_se(t,[{key:"render",value:function(){return I.createElement($se,this.props)}}])}(I.Component);u1(c1,"displayName","ReferenceLine");u1(c1,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function l0(){return l0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l0.apply(this,arguments)}function Ms(e){"@babel/helpers - typeof";return Ms=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ms(e)}function eA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function tA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eA(Object(n),!0).forEach(function(r){Jp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Nse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lse(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,M$(r.key),r)}}function Ise(e,t,n){return t&&Lse(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Dse(e,t,n){return t=Fd(t),Rse(e,k$()?Reflect.construct(t,n||[],Fd(e).constructor):t.apply(e,n))}function Rse(e,t){if(t&&(Ms(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return 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 k$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(k$=function(){return!!e})()}function Fd(e){return Fd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Fd(e)}function Bse(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u0(e,t)}function u0(e,t){return u0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},u0(e,t)}function Jp(e,t,n){return t=M$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M$(e){var t=Fse(e,"string");return Ms(t)=="symbol"?t:t+""}function Fse(e,t){if(Ms(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ms(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Vse=function(t){var n=t.x,r=t.y,i=t.xAxis,o=t.yAxis,s=i1({x:i.scale,y:o.scale}),l=s.apply({x:n,y:r},{bandAware:!0});return Hr(t,"discard")&&!s.isInRange(l)?null:l},Yo=function(e){function t(){return Nse(this,t),Dse(this,t,arguments)}return Bse(t,e),Ise(t,[{key:"render",value:function(){var r=this.props,i=r.x,o=r.y,s=r.r,l=r.alwaysShow,u=r.clipPathId,f=Ct(i),h=Ct(o);if(mi(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!f||!h)return null;var d=Vse(this.props);if(!d)return null;var m=d.x,v=d.y,b=this.props,x=b.shape,S=b.className,y=Hr(this.props,"hidden")?"url(#".concat(u,")"):void 0,_=tA(tA({clipPath:y},Ee(this.props,!0)),{},{cx:m,cy:v});return I.createElement(ft,{className:Ne("recharts-reference-dot",S)},t.renderDot(x,_),Qt.renderCallByParent(this.props,{x:m-s,y:v-s,width:2*s,height:2*s}))}}])}(I.Component);Jp(Yo,"displayName","ReferenceDot");Jp(Yo,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Jp(Yo,"renderDot",function(e,t){var n;return I.isValidElement(e)?n=I.cloneElement(e,t):Se(e)?n=e(t):n=I.createElement(r1,l0({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function c0(){return c0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c0.apply(this,arguments)}function Cs(e){"@babel/helpers - typeof";return Cs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cs(e)}function nA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function rA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nA(Object(n),!0).forEach(function(r){em(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Use(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wse(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,j$(r.key),r)}}function Hse(e,t,n){return t&&Wse(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Zse(e,t,n){return t=Vd(t),Gse(e,C$()?Reflect.construct(t,n||[],Vd(e).constructor):t.apply(e,n))}function Gse(e,t){if(t&&(Cs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Kse(e)}function Kse(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 Vd(e){return Vd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Vd(e)}function qse(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f0(e,t)}function f0(e,t){return f0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},f0(e,t)}function em(e,t,n){return t=j$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j$(e){var t=Xse(e,"string");return Cs(t)=="symbol"?t:t+""}function Xse(e,t){if(Cs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Cs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Yse=function(t,n,r,i,o){var s=o.x1,l=o.x2,u=o.y1,f=o.y2,h=o.xAxis,d=o.yAxis;if(!h||!d)return null;var m=i1({x:h.scale,y:d.scale}),v={x:t?m.x.apply(s,{position:"start"}):m.x.rangeMin,y:r?m.y.apply(u,{position:"start"}):m.y.rangeMin},b={x:n?m.x.apply(l,{position:"end"}):m.x.rangeMax,y:i?m.y.apply(f,{position:"end"}):m.y.rangeMax};return Hr(o,"discard")&&(!m.isInRange(v)||!m.isInRange(b))?null:y$(v,b)},tm=function(e){function t(){return Use(this,t),Zse(this,t,arguments)}return qse(t,e),Hse(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,h=r.clipPathId;mi(f===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var d=Ct(i),m=Ct(o),v=Ct(s),b=Ct(l),x=this.props.shape;if(!d&&!m&&!v&&!b&&!x)return null;var S=Yse(d,m,v,b,this.props);if(!S&&!x)return null;var y=Hr(this.props,"hidden")?"url(#".concat(h,")"):void 0;return I.createElement(ft,{className:Ne("recharts-reference-area",u)},t.renderRect(x,rA(rA({clipPath:y},Ee(this.props,!0)),S)),Qt.renderCallByParent(this.props,S))}}])}(I.Component);em(tm,"displayName","ReferenceArea");em(tm,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});em(tm,"renderRect",function(e,t){var n;return I.isValidElement(e)?n=I.cloneElement(e,t):Se(e)?n=e(t):n=I.createElement(n1,c0({},t,{className:"recharts-reference-area-rect"})),n});function $$(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 Qse(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return Zae(r,n)}function Jse(e,t,n){var r=n==="width",i=e.x,o=e.y,s=e.width,l=e.height;return t===1?{start:r?i:o,end:r?i+s:o+l}:{start:r?i+s:o+l,end:r?i:o}}function Ud(e,t,n,r,i){if(e*t<e*r||e*t>e*i)return!1;var o=n();return e*(t-e*o/2-r)>=0&&e*(t+e*o/2-i)<=0}function ele(e,t){return $$(e,t+1)}function tle(e,t,n,r,i){for(var o=(r||[]).slice(),s=t.start,l=t.end,u=0,f=1,h=s,d=function(){var b=r==null?void 0:r[u];if(b===void 0)return{v:$$(r,f)};var x=u,S,y=function(){return S===void 0&&(S=n(b,x)),S},_=b.coordinate,w=u===0||Ud(e,_,y,h,l);w||(u=0,h=s,f+=1),w&&(h=_+e*(y()/2+i),u+=f)},m;f<=o.length;)if(m=d(),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 iA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Xt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?iA(Object(n),!0).forEach(function(r){nle(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nle(e,t,n){return t=rle(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rle(e){var t=ile(e,"string");return yc(t)=="symbol"?t:t+""}function ile(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 ole(e,t,n,r,i){for(var o=(r||[]).slice(),s=o.length,l=t.start,u=t.end,f=function(m){var v=o[m],b,x=function(){return b===void 0&&(b=n(v,m)),b};if(m===s-1){var S=e*(v.coordinate+e*x()/2-u);o[m]=v=Xt(Xt({},v),{},{tickCoord:S>0?v.coordinate-S*e:v.coordinate})}else o[m]=v=Xt(Xt({},v),{},{tickCoord:v.coordinate});var y=Ud(e,v.tickCoord,x,l,u);y&&(u=v.tickCoord-e*(x()/2+i),o[m]=Xt(Xt({},v),{},{isShow:!0}))},h=s-1;h>=0;h--)f(h);return o}function ale(e,t,n,r,i,o){var s=(r||[]).slice(),l=s.length,u=t.start,f=t.end;if(o){var h=r[l-1],d=n(h,l-1),m=e*(h.coordinate+e*d/2-f);s[l-1]=h=Xt(Xt({},h),{},{tickCoord:m>0?h.coordinate-m*e:h.coordinate});var v=Ud(e,h.tickCoord,function(){return d},u,f);v&&(f=h.tickCoord-e*(d/2+i),s[l-1]=Xt(Xt({},h),{},{isShow:!0}))}for(var b=o?l-1:l,x=function(_){var w=s[_],E,P=function(){return E===void 0&&(E=n(w,_)),E};if(_===0){var A=e*(w.coordinate-e*P()/2-u);s[_]=w=Xt(Xt({},w),{},{tickCoord:A<0?w.coordinate-A*e:w.coordinate})}else s[_]=w=Xt(Xt({},w),{},{tickCoord:w.coordinate});var M=Ud(e,w.tickCoord,P,u,f);M&&(u=w.tickCoord+e*(P()/2+i),s[_]=Xt(Xt({},w),{},{isShow:!0}))},S=0;S<b;S++)x(S);return s}function f1(e,t,n){var r=e.tick,i=e.ticks,o=e.viewBox,s=e.minTickGap,l=e.orientation,u=e.interval,f=e.tickFormatter,h=e.unit,d=e.angle;if(!i||!i.length||!r)return[];if(ie(u)||tl.isSsr)return ele(i,typeof u=="number"&&ie(u)?u:0);var m=[],v=l==="top"||l==="bottom"?"width":"height",b=h&&v==="width"?hu(h,{fontSize:t,letterSpacing:n}):{width:0,height:0},x=function(w,E){var P=Se(f)?f(w.value,E):w.value;return v==="width"?Qse(hu(P,{fontSize:t,letterSpacing:n}),b,d):hu(P,{fontSize:t,letterSpacing:n})[v]},S=i.length>=2?Sr(i[1].coordinate-i[0].coordinate):1,y=Jse(o,S,v);return u==="equidistantPreserveStart"?tle(S,y,x,i,s):(u==="preserveStart"||u==="preserveStartEnd"?m=ale(S,y,x,i,s,u==="preserveStartEnd"):m=ole(S,y,x,i,s),m.filter(function(_){return _.isShow}))}var sle=["viewBox"],lle=["viewBox"],ule=["ticks"];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 Ka(){return Ka=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},Ka.apply(this,arguments)}function oA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function At(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?oA(Object(n),!0).forEach(function(r){h1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Iv(e,t){if(e==null)return{};var n=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}function fle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,L$(r.key),r)}}function hle(e,t,n){return t&&aA(e.prototype,t),n&&aA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function dle(e,t,n){return t=Wd(t),ple(e,N$()?Reflect.construct(t,n||[],Wd(e).constructor):t.apply(e,n))}function ple(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 mle(e)}function mle(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 Wd(e){return Wd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Wd(e)}function vle(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h0(e,t)}function h0(e,t){return h0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},h0(e,t)}function h1(e,t,n){return t=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=gle(e,"string");return js(t)=="symbol"?t:t+""}function gle(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 ol=function(e){function t(n){var r;return fle(this,t),r=dle(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return vle(t,e),hle(t,[{key:"shouldComponentUpdate",value:function(r,i){var o=r.viewBox,s=Iv(r,sle),l=this.props,u=l.viewBox,f=Iv(l,lle);return!ns(o,u)||!ns(s,f)||!ns(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,h=i.tickSize,d=i.mirror,m=i.tickMargin,v,b,x,S,y,_,w=d?-1:1,E=r.tickSize||h,P=ie(r.tickCoord)?r.tickCoord:r.coordinate;switch(f){case"top":v=b=r.coordinate,S=s+ +!d*u,x=S-w*E,_=x-w*m,y=P;break;case"left":x=S=r.coordinate,b=o+ +!d*l,v=b-w*E,y=v-w*m,_=P;break;case"right":x=S=r.coordinate,b=o+ +d*l,v=b+w*E,y=v+w*m,_=P;break;default:v=b=r.coordinate,S=s+ +d*u,x=S+w*E,_=x+w*m,y=P;break}return{line:{x1:v,y1:x,x2:b,y2:S},tick:{x:y,y:_}}}},{key:"getTickTextAnchor",value:function(){var r=this.props,i=r.orientation,o=r.mirror,s;switch(i){case"left":s=o?"start":"end";break;case"right":s=o?"end":"start";break;default:s="middle";break}return s}},{key:"getTickVerticalAnchor",value:function(){var r=this.props,i=r.orientation,o=r.mirror,s="end";switch(i){case"left":case"right":s="middle";break;case"top":s=o?"start":"end";break;default:s=o?"end":"start";break}return s}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.x,o=r.y,s=r.width,l=r.height,u=r.orientation,f=r.mirror,h=r.axisLine,d=At(At(At({},Ee(this.props,!1)),Ee(h,!1)),{},{fill:"none"});if(u==="top"||u==="bottom"){var m=+(u==="top"&&!f||u==="bottom"&&f);d=At(At({},d),{},{x1:i,y1:o+m*l,x2:i+s,y2:o+m*l})}else{var v=+(u==="left"&&!f||u==="right"&&f);d=At(At({},d),{},{x1:i+v*s,y1:o,x2:i+v*s,y2:o+l})}return I.createElement("line",Ka({},d,{className:Ne("recharts-cartesian-axis-line",ar(h,"className"))}))}},{key:"renderTicks",value:function(r,i,o){var s=this,l=this.props,u=l.tickLine,f=l.stroke,h=l.tick,d=l.tickFormatter,m=l.unit,v=f1(At(At({},this.props),{},{ticks:r}),i,o),b=this.getTickTextAnchor(),x=this.getTickVerticalAnchor(),S=Ee(this.props,!1),y=Ee(h,!1),_=At(At({},S),{},{fill:"none"},Ee(u,!1)),w=v.map(function(E,P){var A=s.getTickLineCoord(E),M=A.line,C=A.tick,$=At(At(At(At({textAnchor:b,verticalAnchor:x},S),{},{stroke:"none",fill:f},y),C),{},{index:P,payload:E,visibleTicksCount:v.length,tickFormatter:d});return I.createElement(ft,Ka({className:"recharts-cartesian-axis-tick",key:"tick-".concat(E.value,"-").concat(E.coordinate,"-").concat(E.tickCoord)},Xh(s.props,E,P)),u&&I.createElement("line",Ka({},_,M,{className:Ne("recharts-cartesian-axis-tick-line",ar(u,"className"))})),h&&t.renderTickItem(h,$,"".concat(Se(d)?d(E.value,P):E.value).concat(m||"")))});return I.createElement("g",{className:"recharts-cartesian-axis-ticks"},w)}},{key:"render",value:function(){var r=this,i=this.props,o=i.axisLine,s=i.width,l=i.height,u=i.ticksGenerator,f=i.className,h=i.hide;if(h)return null;var d=this.props,m=d.ticks,v=Iv(d,ule),b=m;return Se(u)&&(b=m&&m.length>0?u(this.props):u(v)),s<=0||l<=0||!b||!b.length?null:I.createElement(ft,{className:Ne("recharts-cartesian-axis",f),ref:function(S){r.layerReference=S}},o&&this.renderAxisLine(),this.renderTicks(b,this.state.fontSize,this.state.letterSpacing),Qt.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,i,o){var s,l=Ne(i.className,"recharts-cartesian-axis-tick-value");return I.isValidElement(r)?s=I.cloneElement(r,At(At({},i),{},{className:l})):Se(r)?s=r(At(At({},i),{},{className:l})):s=I.createElement(cd,Ka({},i,{className:"recharts-cartesian-axis-tick-value"}),o),s}}])}(j.Component);h1(ol,"displayName","CartesianAxis");h1(ol,"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 yle=["x1","y1","x2","y2","key"],xle=["offset"];function sa(e){"@babel/helpers - typeof";return sa=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},sa(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 Jt(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){_le(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 _le(e,t,n){return t=ble(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ble(e){var t=wle(e,"string");return sa(t)=="symbol"?t:t+""}function wle(e,t){if(sa(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(sa(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Wo(){return Wo=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},Wo.apply(this,arguments)}function lA(e,t){if(e==null)return{};var n=Sle(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 Sle(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 Ple=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 I$(e,t){var n;if(I.isValidElement(e))n=I.cloneElement(e,t);else if(Se(e))n=e(t);else{var r=t.x1,i=t.y1,o=t.x2,s=t.y2,l=t.key,u=lA(t,yle),f=Ee(u,!1);f.offset;var h=lA(f,xle);n=I.createElement("line",Wo({},h,{x1:r,y1:i,x2:o,y2:s,fill:"none",key:l}))}return n}function Ole(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=Jt(Jt({},e),{},{x1:t,y1:l,x2:t+n,y2:l,key:"line-".concat(u),index:u});return I$(i,f)});return I.createElement("g",{className:"recharts-cartesian-grid-horizontal"},s)}function Tle(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=Jt(Jt({},e),{},{x1:l,y1:t,x2:l,y2:t+n,key:"line-".concat(u),index:u});return I$(i,f)});return I.createElement("g",{className:"recharts-cartesian-grid-vertical"},s)}function Ale(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 h=l.map(function(m){return Math.round(m+i-i)}).sort(function(m,v){return m-v});i!==h[0]&&h.unshift(0);var d=h.map(function(m,v){var b=!h[v+1],x=b?i+s-m:h[v+1]-m;if(x<=0)return null;var S=v%t.length;return I.createElement("rect",{key:"react-".concat(v),y:m,x:r,height:x,width:o,stroke:"none",fill:t[S],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return I.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},d)}function Ele(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 h=f.map(function(m){return Math.round(m+o-o)}).sort(function(m,v){return m-v});o!==h[0]&&h.unshift(0);var d=h.map(function(m,v){var b=!h[v+1],x=b?o+l-m:h[v+1]-m;if(x<=0)return null;var S=v%r.length;return I.createElement("rect",{key:"react-".concat(v),x:m,y:s,width:x,height:u,stroke:"none",fill:r[S],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return I.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},d)}var kle=function(t,n){var r=t.xAxis,i=t.width,o=t.height,s=t.offset;return Hj(f1(Jt(Jt(Jt({},ol.defaultProps),r),{},{ticks:ci(r,!0),viewBox:{x:0,y:0,width:i,height:o}})),s.left,s.left+s.width,n)},Mle=function(t,n){var r=t.yAxis,i=t.width,o=t.height,s=t.offset;return Hj(f1(Jt(Jt(Jt({},ol.defaultProps),r),{},{ticks:ci(r,!0),viewBox:{x:0,y:0,width:i,height:o}})),s.top,s.top+s.height,n)},ka={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function d0(e){var t,n,r,i,o,s,l=s1(),u=l1(),f=gse(),h=Jt(Jt({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:ka.stroke,fill:(n=e.fill)!==null&&n!==void 0?n:ka.fill,horizontal:(r=e.horizontal)!==null&&r!==void 0?r:ka.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:ka.horizontalFill,vertical:(o=e.vertical)!==null&&o!==void 0?o:ka.vertical,verticalFill:(s=e.verticalFill)!==null&&s!==void 0?s:ka.verticalFill,x:ie(e.x)?e.x:f.left,y:ie(e.y)?e.y:f.top,width:ie(e.width)?e.width:f.width,height:ie(e.height)?e.height:f.height}),d=h.x,m=h.y,v=h.width,b=h.height,x=h.syncWithTicks,S=h.horizontalValues,y=h.verticalValues,_=pse(),w=mse();if(!ie(v)||v<=0||!ie(b)||b<=0||!ie(d)||d!==+d||!ie(m)||m!==+m)return null;var E=h.verticalCoordinatesGenerator||kle,P=h.horizontalCoordinatesGenerator||Mle,A=h.horizontalPoints,M=h.verticalPoints;if((!A||!A.length)&&Se(P)){var C=S&&S.length,$=P({yAxis:w?Jt(Jt({},w),{},{ticks:C?S:w.ticks}):void 0,width:l,height:u,offset:f},C?!0:x);mi(Array.isArray($),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(sa($),"]")),Array.isArray($)&&(A=$)}if((!M||!M.length)&&Se(E)){var B=y&&y.length,z=E({xAxis:_?Jt(Jt({},_),{},{ticks:B?y:_.ticks}):void 0,width:l,height:u,offset:f},B?!0:x);mi(Array.isArray(z),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(sa(z),"]")),Array.isArray(z)&&(M=z)}return I.createElement("g",{className:"recharts-cartesian-grid"},I.createElement(Ple,{fill:h.fill,fillOpacity:h.fillOpacity,x:h.x,y:h.y,width:h.width,height:h.height,ry:h.ry}),I.createElement(Ole,Wo({},h,{offset:f,horizontalPoints:A,xAxis:_,yAxis:w})),I.createElement(Tle,Wo({},h,{offset:f,verticalPoints:M,xAxis:_,yAxis:w})),I.createElement(Ale,Wo({},h,{horizontalPoints:A})),I.createElement(Ele,Wo({},h,{verticalPoints:M})))}d0.displayName="CartesianGrid";var Cle=["layout","type","stroke","connectNulls","isRange","ref"],jle=["key"],D$;function $s(e){"@babel/helpers - typeof";return $s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$s(e)}function R$(e,t){if(e==null)return{};var n=$le(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 $le(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 Ho(){return Ho=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ho.apply(this,arguments)}function uA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function zi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uA(Object(n),!0).forEach(function(r){Rr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Nle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,B$(r.key),r)}}function Lle(e,t,n){return t&&cA(e.prototype,t),n&&cA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ile(e,t,n){return t=Hd(t),Dle(e,z$()?Reflect.construct(t,n||[],Hd(e).constructor):t.apply(e,n))}function Dle(e,t){if(t&&($s(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Rle(e)}function Rle(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function z$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(z$=function(){return!!e})()}function Hd(e){return Hd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Hd(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&&p0(e,t)}function p0(e,t){return p0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},p0(e,t)}function Rr(e,t,n){return t=B$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function B$(e){var t=Ble(e,"string");return $s(t)=="symbol"?t:t+""}function Ble(e,t){if($s(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if($s(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var xo=function(e){function t(){var n;Nle(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=Ile(this,t,[].concat(i)),Rr(n,"state",{isAnimationFinished:!0}),Rr(n,"id",Cc("recharts-area-")),Rr(n,"handleAnimationEnd",function(){var s=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),Se(s)&&s()}),Rr(n,"handleAnimationStart",function(){var s=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),Se(s)&&s()}),n}return zle(t,e),Lle(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,h=u.points,d=u.dataKey,m=Ee(this.props,!1),v=Ee(f,!0),b=h.map(function(S,y){var _=zi(zi(zi({key:"dot-".concat(y),r:3},m),v),{},{index:y,cx:S.x,cy:S.y,dataKey:d,value:S.value,payload:S.payload,points:h});return t.renderDotItem(f,_)}),x={clipPath:r?"url(#clipPath-".concat(i?"":"dots-").concat(o,")"):null};return I.createElement(ft,Ho({className:"recharts-area-dots"},x),b)}},{key:"renderHorizontalRect",value:function(r){var i=this.props,o=i.baseLine,s=i.points,l=i.strokeWidth,u=s[0].x,f=s[s.length-1].x,h=r*Math.abs(u-f),d=Ki(s.map(function(m){return m.y||0}));return ie(o)&&typeof o=="number"?d=Math.max(o,d):o&&Array.isArray(o)&&o.length&&(d=Math.max(Ki(o.map(function(m){return m.y||0})),d)),ie(d)?I.createElement("rect",{x:u<f?u:u-h,y:0,width:h,height:Math.floor(d+(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,h=r*Math.abs(u-f),d=Ki(s.map(function(m){return m.x||0}));return ie(o)&&typeof o=="number"?d=Math.max(o,d):o&&Array.isArray(o)&&o.length&&(d=Math.max(Ki(o.map(function(m){return m.x||0})),d)),ie(d)?I.createElement("rect",{x:0,y:u<f?u:u-h,width:d+(l?parseInt("".concat(l),10):1),height:Math.floor(h)}):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,h=l.stroke,d=l.connectNulls,m=l.isRange;l.ref;var v=R$(l,Cle);return I.createElement(ft,{clipPath:o?"url(#clipPath-".concat(s,")"):null},I.createElement(mu,Ho({},Ee(v,!0),{points:r,connectNulls:d,type:f,baseLine:i,layout:u,stroke:"none",className:"recharts-area-area"})),h!=="none"&&I.createElement(mu,Ho({},Ee(this.props,!1),{className:"recharts-area-curve",layout:u,type:f,connectNulls:d,fill:"none",points:r})),h!=="none"&&m&&I.createElement(mu,Ho({},Ee(this.props,!1),{className:"recharts-area-curve",layout:u,type:f,connectNulls:d,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,h=s.animationBegin,d=s.animationDuration,m=s.animationEasing,v=s.animationId,b=this.state,x=b.prevPoints,S=b.prevBaseLine;return I.createElement(Oi,{begin:h,duration:d,isActive:f,easing:m,from:{t:0},to:{t:1},key:"area-".concat(v),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(y){var _=y.t;if(x){var w=x.length/l.length,E=l.map(function(C,$){var B=Math.floor($*w);if(x[B]){var z=x[B],R=nr(z.x,C.x),G=nr(z.y,C.y);return zi(zi({},C),{},{x:R(_),y:G(_)})}return C}),P;if(ie(u)&&typeof u=="number"){var A=nr(S,u);P=A(_)}else if(Me(u)||Ys(u)){var M=nr(S,0);P=M(_)}else P=u.map(function(C,$){var B=Math.floor($*w);if(S[B]){var z=S[B],R=nr(z.x,C.x),G=nr(z.y,C.y);return zi(zi({},C),{},{x:R(_),y:G(_)})}return C});return o.renderAreaStatically(E,P,r,i)}return I.createElement(ft,null,I.createElement("defs",null,I.createElement("clipPath",{id:"animationClipPath-".concat(i)},o.renderClipRect(_))),I.createElement(ft,{clipPath:"url(#animationClipPath-".concat(i,")")},o.renderAreaStatically(l,u,r,i)))})}},{key:"renderArea",value:function(r,i){var o=this.props,s=o.points,l=o.baseLine,u=o.isAnimationActive,f=this.state,h=f.prevPoints,d=f.prevBaseLine,m=f.totalLength;return u&&s&&s.length&&(!h&&m>0||!Yu(h,s)||!Yu(d,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,h=i.left,d=i.xAxis,m=i.yAxis,v=i.width,b=i.height,x=i.isAnimationActive,S=i.id;if(o||!l||!l.length)return null;var y=this.state.isAnimationFinished,_=l.length===1,w=Ne("recharts-area",u),E=d&&d.allowDataOverflow,P=m&&m.allowDataOverflow,A=E||P,M=Me(S)?this.id:S,C=(r=Ee(s,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},$=C.r,B=$===void 0?3:$,z=C.strokeWidth,R=z===void 0?2:z,G=tV(s)?s:{},W=G.clipDot,H=W===void 0?!0:W,Z=B*2+R;return I.createElement(ft,{className:w},E||P?I.createElement("defs",null,I.createElement("clipPath",{id:"clipPath-".concat(M)},I.createElement("rect",{x:E?h:h-v/2,y:P?f:f-b/2,width:E?v:v*2,height:P?b:b*2})),!H&&I.createElement("clipPath",{id:"clipPath-dots-".concat(M)},I.createElement("rect",{x:h-Z/2,y:f-Z/2,width:v+Z,height:b+Z}))):null,_?null:this.renderArea(A,M),(s||_)&&this.renderDots(A,H,M),(!x||y)&&Wr.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);D$=xo;Rr(xo,"displayName","Area");Rr(xo,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!tl.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});Rr(xo,"getBaseValue",function(e,t,n,r){var i=e.layout,o=e.baseValue,s=t.props.baseValue,l=s??o;if(ie(l)&&typeof l=="number")return l;var u=i==="horizontal"?r:n,f=u.scale.domain();if(u.type==="number"){var h=Math.max(f[0],f[1]),d=Math.min(f[0],f[1]);return l==="dataMin"?d:l==="dataMax"||h<0?h:Math.max(Math.min(f[0],f[1]),0)}return l==="dataMin"?f[0]:l==="dataMax"?f[1]:f[0]});Rr(xo,"getComposedData",function(e){var t=e.props,n=e.item,r=e.xAxis,i=e.yAxis,o=e.xAxisTicks,s=e.yAxisTicks,l=e.bandSize,u=e.dataKey,f=e.stackedData,h=e.dataStartIndex,d=e.displayedData,m=e.offset,v=t.layout,b=f&&f.length,x=D$.getBaseValue(t,n,r,i),S=v==="horizontal",y=!1,_=d.map(function(E,P){var A;b?A=f[h+P]:(A=zn(E,u),Array.isArray(A)?y=!0:A=[x,A]);var M=A[1]==null||b&&zn(E,u)==null;return S?{x:KO({axis:r,ticks:o,bandSize:l,entry:E,index:P}),y:M?null:i.scale(A[1]),value:A,payload:E}:{x:M?null:r.scale(A[1]),y:KO({axis:i,ticks:s,bandSize:l,entry:E,index:P}),value:A,payload:E}}),w;return b||y?w=_.map(function(E){var P=Array.isArray(E.value)?E.value[0]:null;return S?{x:E.x,y:P!=null&&E.y!=null?i.scale(P):null}:{x:P!=null?r.scale(P):null,y:E.y}}):w=S?i.scale(x):r.scale(x),zi({points:_,baseLine:w,layout:v,isRange:y},m)});Rr(xo,"renderDotItem",function(e,t){var n;if(I.isValidElement(e))n=I.cloneElement(e,t);else if(Se(e))n=e(t);else{var r=Ne("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,o=R$(t,jle);n=I.createElement(r1,Ho({},o,{key:i,className:r}))}return n});function Ns(e){"@babel/helpers - typeof";return Ns=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ns(e)}function Fle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vle(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,U$(r.key),r)}}function Ule(e,t,n){return t&&Vle(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Wle(e,t,n){return t=Zd(t),Hle(e,F$()?Reflect.construct(t,n||[],Zd(e).constructor):t.apply(e,n))}function Hle(e,t){if(t&&(Ns(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Zle(e)}function Zle(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(F$=function(){return!!e})()}function Zd(e){return Zd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Zd(e)}function Gle(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m0(e,t)}function m0(e,t){return m0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},m0(e,t)}function V$(e,t,n){return t=U$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function U$(e){var t=Kle(e,"string");return Ns(t)=="symbol"?t:t+""}function Kle(e,t){if(Ns(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ns(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function v0(){return v0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v0.apply(this,arguments)}function qle(e){var t=e.xAxisId,n=s1(),r=l1(),i=O$(t);return i==null?null:j.createElement(ol,v0({},i,{className:Ne("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(s){return ci(s,!0)}}))}var Ls=function(e){function t(){return Fle(this,t),Wle(this,t,arguments)}return Gle(t,e),Ule(t,[{key:"render",value:function(){return j.createElement(qle,this.props)}}])}(j.Component);V$(Ls,"displayName","XAxis");V$(Ls,"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 Is(e){"@babel/helpers - typeof";return Is=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Is(e)}function Xle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yle(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Z$(r.key),r)}}function Qle(e,t,n){return t&&Yle(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Jle(e,t,n){return t=Gd(t),eue(e,W$()?Reflect.construct(t,n||[],Gd(e).constructor):t.apply(e,n))}function eue(e,t){if(t&&(Is(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return tue(e)}function tue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function W$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(W$=function(){return!!e})()}function Gd(e){return Gd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Gd(e)}function nue(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&g0(e,t)}function g0(e,t){return g0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},g0(e,t)}function H$(e,t,n){return t=Z$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z$(e){var t=rue(e,"string");return Is(t)=="symbol"?t:t+""}function rue(e,t){if(Is(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Is(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function y0(){return y0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},y0.apply(this,arguments)}var iue=function(t){var n=t.yAxisId,r=s1(),i=l1(),o=T$(n);return o==null?null:j.createElement(ol,y0({},o,{className:Ne("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:r,height:i},ticksGenerator:function(l){return ci(l,!0)}}))},Ds=function(e){function t(){return Xle(this,t),Jle(this,t,arguments)}return nue(t,e),Qle(t,[{key:"render",value:function(){return j.createElement(iue,this.props)}}])}(j.Component);H$(Ds,"displayName","YAxis");H$(Ds,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function fA(e){return lue(e)||sue(e)||aue(e)||oue()}function oue(){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 aue(e,t){if(e){if(typeof e=="string")return x0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return x0(e,t)}}function sue(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function lue(e){if(Array.isArray(e))return x0(e)}function x0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var _0=function(t,n,r,i,o){var s=Tr(t,c1),l=Tr(t,Yo),u=[].concat(fA(s),fA(l)),f=Tr(t,tm),h="".concat(i,"Id"),d=i[0],m=n;if(u.length&&(m=u.reduce(function(x,S){if(S.props[h]===r&&Hr(S.props,"extendDomain")&&ie(S.props[d])){var y=S.props[d];return[Math.min(x[0],y),Math.max(x[1],y)]}return x},m)),f.length){var v="".concat(d,"1"),b="".concat(d,"2");m=f.reduce(function(x,S){if(S.props[h]===r&&Hr(S.props,"extendDomain")&&ie(S.props[v])&&ie(S.props[b])){var y=S.props[v],_=S.props[b];return[Math.min(x[0],y,_),Math.max(x[1],y,_)]}return x},m)}return o&&o.length&&(m=o.reduce(function(x,S){return ie(S)?[Math.min(x[0],S),Math.max(x[1],S)]:x},m)),m},G$={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,h){this.fn=u,this.context=f,this.once=h||!1}function o(u,f,h,d,m){if(typeof h!="function")throw new TypeError("The listener must be a function");var v=new i(h,d||u,m),b=n?n+f:f;return u._events[b]?u._events[b].fn?u._events[b]=[u._events[b],v]:u._events[b].push(v):(u._events[b]=v,u._eventsCount++),u}function s(u,f){--u._eventsCount===0?u._events=new r:delete u._events[f]}function l(){this._events=new r,this._eventsCount=0}l.prototype.eventNames=function(){var f=[],h,d;if(this._eventsCount===0)return f;for(d in h=this._events)t.call(h,d)&&f.push(n?d.slice(1):d);return Object.getOwnPropertySymbols?f.concat(Object.getOwnPropertySymbols(h)):f},l.prototype.listeners=function(f){var h=n?n+f:f,d=this._events[h];if(!d)return[];if(d.fn)return[d.fn];for(var m=0,v=d.length,b=new Array(v);m<v;m++)b[m]=d[m].fn;return b},l.prototype.listenerCount=function(f){var h=n?n+f:f,d=this._events[h];return d?d.fn?1:d.length:0},l.prototype.emit=function(f,h,d,m,v,b){var x=n?n+f:f;if(!this._events[x])return!1;var S=this._events[x],y=arguments.length,_,w;if(S.fn){switch(S.once&&this.removeListener(f,S.fn,void 0,!0),y){case 1:return S.fn.call(S.context),!0;case 2:return S.fn.call(S.context,h),!0;case 3:return S.fn.call(S.context,h,d),!0;case 4:return S.fn.call(S.context,h,d,m),!0;case 5:return S.fn.call(S.context,h,d,m,v),!0;case 6:return S.fn.call(S.context,h,d,m,v,b),!0}for(w=1,_=new Array(y-1);w<y;w++)_[w-1]=arguments[w];S.fn.apply(S.context,_)}else{var E=S.length,P;for(w=0;w<E;w++)switch(S[w].once&&this.removeListener(f,S[w].fn,void 0,!0),y){case 1:S[w].fn.call(S[w].context);break;case 2:S[w].fn.call(S[w].context,h);break;case 3:S[w].fn.call(S[w].context,h,d);break;case 4:S[w].fn.call(S[w].context,h,d,m);break;default:if(!_)for(P=1,_=new Array(y-1);P<y;P++)_[P-1]=arguments[P];S[w].fn.apply(S[w].context,_)}}return!0},l.prototype.on=function(f,h,d){return o(this,f,h,d,!1)},l.prototype.once=function(f,h,d){return o(this,f,h,d,!0)},l.prototype.removeListener=function(f,h,d,m){var v=n?n+f:f;if(!this._events[v])return this;if(!h)return s(this,v),this;var b=this._events[v];if(b.fn)b.fn===h&&(!m||b.once)&&(!d||b.context===d)&&s(this,v);else{for(var x=0,S=[],y=b.length;x<y;x++)(b[x].fn!==h||m&&!b[x].once||d&&b[x].context!==d)&&S.push(b[x]);S.length?this._events[v]=S.length===1?S[0]:S:s(this,v)}return this},l.prototype.removeAllListeners=function(f){var h;return f?(h=n?n+f:f,this._events[h]&&s(this,h)):(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})(G$);var uue=G$.exports;const cue=Ge(uue);var Dv=new cue,Rv="recharts.syncMouseEvents";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 fue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hue(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,K$(r.key),r)}}function due(e,t,n){return t&&hue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function zv(e,t,n){return t=K$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function K$(e){var t=pue(e,"string");return xc(t)=="symbol"?t:t+""}function pue(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 String(e)}var mue=function(){function e(){fue(this,e),zv(this,"activeIndex",0),zv(this,"coordinateList",[]),zv(this,"layout","horizontal")}return due(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,h=n.offset,d=h===void 0?null:h,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=d??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,h=((r=window)===null||r===void 0?void 0:r.scrollY)||0,d=o+u+f,m=s+this.offset.top+l/2+h;this.mouseHandlerCallback({pageX:d,pageY:m})}}}])}();function vue(e,t,n){if(n==="number"&&t===!0&&Array.isArray(e)){var r=e==null?void 0:e[0],i=e==null?void 0:e[1];if(r&&i&&ie(r)&&ie(i))return!0}return!1}function gue(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 q$(e){var t=e.cx,n=e.cy,r=e.radius,i=e.startAngle,o=e.endAngle,s=Wt(t,n,r,i),l=Wt(t,n,r,o);return{points:[s,l],cx:t,cy:n,radius:r,startAngle:i,endAngle:o}}function yue(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,h=t.outerRadius,d=t.angle,m=Wt(l,u,f,d),v=Wt(l,u,h,d);r=m.x,i=m.y,o=v.x,s=v.y}else return q$(t);return[{x:r,y:i},{x:o,y: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 hA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function eh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hA(Object(n),!0).forEach(function(r){xue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xue(e,t,n){return t=_ue(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _ue(e){var t=bue(e,"string");return _c(t)=="symbol"?t:t+""}function bue(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 wue(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,h=e.tooltipAxisBandSize,d=e.layout,m=e.chartName,v=(t=r.props.cursor)!==null&&t!==void 0?t:(n=r.type.defaultProps)===null||n===void 0?void 0:n.cursor;if(!r||!v||!o||!s||m!=="ScatterChart"&&i!=="axis")return null;var b,x=mu;if(m==="ScatterChart")b=s,x=Tie;else if(m==="BarChart")b=gue(d,s,u,h),x=n1;else if(d==="radial"){var S=q$(s),y=S.cx,_=S.cy,w=S.radius,E=S.startAngle,P=S.endAngle;b={cx:y,cy:_,startAngle:E,endAngle:P,innerRadius:w,outerRadius:w},x=Xj}else b={points:yue(d,s,u)},x=mu;var A=eh(eh(eh(eh({stroke:"#ccc",pointerEvents:"none"},u),b),Ee(v,!1)),{},{payload:l,payloadIndex:f,className:Ne("recharts-tooltip-cursor",v.className)});return j.isValidElement(v)?j.cloneElement(v,A):j.createElement(x,A)}var Sue=["item"],Pue=["children","className","width","height","style","compact","title","desc"];function Rs(e){"@babel/helpers - typeof";return Rs=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},Rs(e)}function qa(){return qa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qa.apply(this,arguments)}function dA(e,t){return Aue(e)||Tue(e,t)||Y$(e,t)||Oue()}function Oue(){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 Tue(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(h){f=!0,i=h}finally{try{if(!u&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw i}}return l}}function Aue(e){if(Array.isArray(e))return e}function pA(e,t){if(e==null)return{};var n=Eue(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 Eue(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 kue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mue(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,Q$(r.key),r)}}function Cue(e,t,n){return t&&Mue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function jue(e,t,n){return t=Kd(t),$ue(e,X$()?Reflect.construct(t,n||[],Kd(e).constructor):t.apply(e,n))}function $ue(e,t){if(t&&(Rs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Nue(e)}function Nue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function X$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(X$=function(){return!!e})()}function Kd(e){return Kd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Kd(e)}function Lue(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b0(e,t)}function b0(e,t){return b0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},b0(e,t)}function zs(e){return Rue(e)||Due(e)||Y$(e)||Iue()}function Iue(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
373
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Y$(e,t){if(e){if(typeof e=="string")return w0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w0(e,t)}}function Due(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Rue(e){if(Array.isArray(e))return w0(e)}function w0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function mA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function X(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mA(Object(n),!0).forEach(function(r){ve(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ve(e,t,n){return t=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=zue(e,"string");return Rs(t)=="symbol"?t:t+""}function zue(e,t){if(Rs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Rs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Bue={xAxis:["bottom","top"],yAxis:["left","right"]},Fue={width:"100%",height:"100%"},J$={x:0,y:0};function th(e){return e}var Vue=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},Uue=function(t,n,r,i){var o=n.find(function(h){return h&&h.index===r});if(o){if(t==="horizontal")return{x:o.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:o.coordinate};if(t==="centric"){var s=o.coordinate,l=i.radius;return X(X(X({},i),Wt(i.cx,i.cy,l,s)),{},{angle:s,radius:l})}var u=o.coordinate,f=i.angle;return X(X(X({},i),Wt(i.cx,i.cy,u,f)),{},{angle:f,radius:u})}return J$},nm=function(t,n){var r=n.graphicalItems,i=n.dataStartIndex,o=n.dataEndIndex,s=(r??[]).reduce(function(l,u){var f=u.props.data;return f&&f.length?[].concat(zs(l),zs(f)):l},[]);return s.length>0?s:t&&t.length&&ie(i)&&ie(o)?t.slice(i,o+1):[]};function eN(e){return e==="number"?[0,"auto"]:void 0}var S0=function(t,n,r,i){var o=t.graphicalItems,s=t.tooltipAxis,l=nm(n,t);return r<0||!o||!o.length||r>=l.length?null:o.reduce(function(u,f){var h,d=(h=f.props.data)!==null&&h!==void 0?h:n;d&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(d=d.slice(t.dataStartIndex,t.dataEndIndex+1));var m;if(s.dataKey&&!s.allowDuplicatedCategory){var v=d===void 0?l:d;m=Kh(v,s.dataKey,i)}else m=d&&d[r]||l[r];return m?[].concat(zs(u),[Gj(f,m)]):u},[])},vA=function(t,n,r,i){var o=i||{x:t.chartX,y:t.chartY},s=Vue(o,r),l=t.orderedTooltipTicks,u=t.tooltipAxis,f=t.tooltipTicks,h=ite(s,l,f,u);if(h>=0&&f){var d=f[h]&&f[h].value,m=S0(t,n,h,d),v=Uue(r,l,h,o);return{activeTooltipIndex:h,activeLabel:d,activePayload:m,activeCoordinate:v}}return null},Wue=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,h=t.layout,d=t.children,m=t.stackOffset,v=Wj(h,o);return r.reduce(function(b,x){var S,y=x.type.defaultProps!==void 0?X(X({},x.type.defaultProps),x.props):x.props,_=y.type,w=y.dataKey,E=y.allowDataOverflow,P=y.allowDuplicatedCategory,A=y.scale,M=y.ticks,C=y.includeHidden,$=y[s];if(b[$])return b;var B=nm(t.data,{graphicalItems:i.filter(function(Y){var ae,fe=s in Y.props?Y.props[s]:(ae=Y.type.defaultProps)===null||ae===void 0?void 0:ae[s];return fe===$}),dataStartIndex:u,dataEndIndex:f}),z=B.length,R,G,W;vue(y.domain,E,_)&&(R=Fy(y.domain,null,E),v&&(_==="number"||A!=="auto")&&(W=pu(B,w,"category")));var H=eN(_);if(!R||R.length===0){var Z,K=(Z=y.domain)!==null&&Z!==void 0?Z:H;if(w){if(R=pu(B,w,_),_==="category"&&v){var D=H6(R);P&&D?(G=R,R=Ld(0,z)):P||(R=QO(K,R,x).reduce(function(Y,ae){return Y.indexOf(ae)>=0?Y:[].concat(zs(Y),[ae])},[]))}else if(_==="category")P?R=R.filter(function(Y){return Y!==""&&!Me(Y)}):R=QO(K,R,x).reduce(function(Y,ae){return Y.indexOf(ae)>=0||ae===""||Me(ae)?Y:[].concat(zs(Y),[ae])},[]);else if(_==="number"){var q=ute(B,i.filter(function(Y){var ae,fe,he=s in Y.props?Y.props[s]:(ae=Y.type.defaultProps)===null||ae===void 0?void 0:ae[s],ce="hide"in Y.props?Y.props.hide:(fe=Y.type.defaultProps)===null||fe===void 0?void 0:fe.hide;return he===$&&(C||!ce)}),w,o,h);q&&(R=q)}v&&(_==="number"||A!=="auto")&&(W=pu(B,w,"category"))}else v?R=Ld(0,z):l&&l[$]&&l[$].hasStack&&_==="number"?R=m==="expand"?[0,1]:Zj(l[$].stackGroups,u,f):R=Uj(B,i.filter(function(Y){var ae=s in Y.props?Y.props[s]:Y.type.defaultProps[s],fe="hide"in Y.props?Y.props.hide:Y.type.defaultProps.hide;return ae===$&&(C||!fe)}),_,h,!0);if(_==="number")R=_0(d,R,$,o,M),K&&(R=Fy(K,R,E));else if(_==="category"&&K){var V=K,te=R.every(function(Y){return V.indexOf(Y)>=0});te&&(R=V)}}return X(X({},b),{},ve({},$,X(X({},y),{},{axisType:o,domain:R,categoricalDomain:W,duplicateDomain:G,originalDomain:(S=y.domain)!==null&&S!==void 0?S:H,isCategorical:v,layout:h})))},{})},Hue=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,h=t.layout,d=t.children,m=nm(t.data,{graphicalItems:r,dataStartIndex:u,dataEndIndex:f}),v=m.length,b=Wj(h,o),x=-1;return r.reduce(function(S,y){var _=y.type.defaultProps!==void 0?X(X({},y.type.defaultProps),y.props):y.props,w=_[s],E=eN("number");if(!S[w]){x++;var P;return b?P=Ld(0,v):l&&l[w]&&l[w].hasStack?(P=Zj(l[w].stackGroups,u,f),P=_0(d,P,w,o)):(P=Fy(E,Uj(m,r.filter(function(A){var M,C,$=s in A.props?A.props[s]:(M=A.type.defaultProps)===null||M===void 0?void 0:M[s],B="hide"in A.props?A.props.hide:(C=A.type.defaultProps)===null||C===void 0?void 0:C.hide;return $===w&&!B}),"number",h),i.defaultProps.allowDataOverflow),P=_0(d,P,w,o)),X(X({},S),{},ve({},w,X(X({axisType:o},i.defaultProps),{},{hide:!0,orientation:ar(Bue,"".concat(o,".").concat(x%2),null),domain:P,originalDomain:E,isCategorical:b,layout:h})))}return S},{})},Zue=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,h=t.children,d="".concat(i,"Id"),m=Tr(h,o),v={};return m&&m.length?v=Wue(t,{axes:m,graphicalItems:s,axisType:i,axisIdKey:d,stackGroups:l,dataStartIndex:u,dataEndIndex:f}):s&&s.length&&(v=Hue(t,{Axis:o,graphicalItems:s,axisType:i,axisIdKey:d,stackGroups:l,dataStartIndex:u,dataEndIndex:f})),v},Gue=function(t){var n=Hi(t),r=ci(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:E_(r,function(i){return i.coordinate}),tooltipAxis:n,tooltipAxisBandSize:Od(n,r)}},gA=function(t){var n=t.children,r=t.defaultShowTooltip,i=jn(n,As),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}},Kue=function(t){return!t||!t.length?!1:t.some(function(n){var r=pi(n&&n.type);return r&&r.indexOf("Bar")>=0})},yA=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},que=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,h=r.height,d=r.children,m=r.margin||{},v=jn(d,As),b=jn(d,rs),x=Object.keys(u).reduce(function(P,A){var M=u[A],C=M.orientation;return!M.mirror&&!M.hide?X(X({},P),{},ve({},C,P[C]+M.width)):P},{left:m.left||0,right:m.right||0}),S=Object.keys(s).reduce(function(P,A){var M=s[A],C=M.orientation;return!M.mirror&&!M.hide?X(X({},P),{},ve({},C,ar(P,"".concat(C))+M.height)):P},{top:m.top||0,bottom:m.bottom||0}),y=X(X({},S),x),_=y.bottom;v&&(y.bottom+=v.props.height||As.defaultProps.height),b&&n&&(y=ste(y,i,r,n));var w=f-y.left-y.right,E=h-y.top-y.bottom;return X(X({brushBottom:_},y),{},{width:Math.max(w,0),height:Math.max(E,0)})},Xue=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},tN=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,h=t.formatAxisMap,d=t.defaultProps,m=function(y,_){var w=_.graphicalItems,E=_.stackGroups,P=_.offset,A=_.updateId,M=_.dataStartIndex,C=_.dataEndIndex,$=y.barSize,B=y.layout,z=y.barGap,R=y.barCategoryGap,G=y.maxBarSize,W=yA(B),H=W.numericAxisName,Z=W.cateAxisName,K=Kue(w),D=[];return w.forEach(function(q,V){var te=nm(y.data,{graphicalItems:[q],dataStartIndex:M,dataEndIndex:C}),Y=q.type.defaultProps!==void 0?X(X({},q.type.defaultProps),q.props):q.props,ae=Y.dataKey,fe=Y.maxBarSize,he=Y["".concat(H,"Id")],ce=Y["".concat(Z,"Id")],Ve={},ze=u.reduce(function(zt,Q){var _e=_["".concat(Q.axisType,"Map")],Oe=Y["".concat(Q.axisType,"Id")];_e&&_e[Oe]||Q.axisType==="zAxis"||aa();var Ie=_e[Oe];return X(X({},zt),{},ve(ve({},Q.axisType,Ie),"".concat(Q.axisType,"Ticks"),ci(Ie)))},Ve),oe=ze[Z],me=ze["".concat(Z,"Ticks")],ye=E&&E[he]&&E[he].hasStack&&bte(q,E[he].stackGroups),J=pi(q.type).indexOf("Bar")>=0,Le=Od(oe,me),we=[],Ue=K&&ote({barSize:$,stackGroups:E,totalSize:Xue(ze,Z)});if(J){var We,it,Tt=Me(fe)?G:fe,hn=(We=(it=Od(oe,me,!0))!==null&&it!==void 0?it:Tt)!==null&&We!==void 0?We:0;we=ate({barGap:z,barCategoryGap:R,bandSize:hn!==Le?hn:Le,sizeList:Ue[ce],maxBarSize:Tt}),hn!==Le&&(we=we.map(function(zt){return X(X({},zt),{},{position:X(X({},zt.position),{},{offset:zt.position.offset-hn/2})})}))}var On=q&&q.type&&q.type.getComposedData;On&&D.push({props:X(X({},On(X(X({},ze),{},{displayedData:te,props:y,dataKey:ae,item:q,bandSize:Le,barPosition:we,offset:P,stackedData:ye,layout:B,dataStartIndex:M,dataEndIndex:C}))),{},ve(ve(ve({key:q.key||"item-".concat(V)},H,ze[H]),Z,ze[Z]),"animationId",A)),childIndex:iV(q,y.children),item:q})}),D},v=function(y,_){var w=y.props,E=y.dataStartIndex,P=y.dataEndIndex,A=y.updateId;if(!WS({props:w}))return null;var M=w.children,C=w.layout,$=w.stackOffset,B=w.data,z=w.reverseStackOrder,R=yA(C),G=R.numericAxisName,W=R.cateAxisName,H=Tr(M,r),Z=yte(B,H,"".concat(G,"Id"),"".concat(W,"Id"),$,z),K=u.reduce(function(Y,ae){var fe="".concat(ae.axisType,"Map");return X(X({},Y),{},ve({},fe,Zue(w,X(X({},ae),{},{graphicalItems:H,stackGroups:ae.axisType===G&&Z,dataStartIndex:E,dataEndIndex:P}))))},{}),D=que(X(X({},K),{},{props:w,graphicalItems:H}),_==null?void 0:_.legendBBox);Object.keys(K).forEach(function(Y){K[Y]=h(w,K[Y],D,Y.replace("Map",""),n)});var q=K["".concat(W,"Map")],V=Gue(q),te=m(w,X(X({},K),{},{dataStartIndex:E,dataEndIndex:P,updateId:A,graphicalItems:H,stackGroups:Z,offset:D}));return X(X({formattedGraphicalItems:te,graphicalItems:H,offset:D,stackGroups:Z},V),K)},b=function(S){function y(_){var w,E,P;return kue(this,y),P=jue(this,y,[_]),ve(P,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),ve(P,"accessibilityManager",new mue),ve(P,"handleLegendBBoxUpdate",function(A){if(A){var M=P.state,C=M.dataStartIndex,$=M.dataEndIndex,B=M.updateId;P.setState(X({legendBBox:A},v({props:P.props,dataStartIndex:C,dataEndIndex:$,updateId:B},X(X({},P.state),{},{legendBBox:A}))))}}),ve(P,"handleReceiveSyncEvent",function(A,M,C){if(P.props.syncId===A){if(C===P.eventEmitterSymbol&&typeof P.props.syncMethod!="function")return;P.applySyncEvent(M)}}),ve(P,"handleBrushChange",function(A){var M=A.startIndex,C=A.endIndex;if(M!==P.state.dataStartIndex||C!==P.state.dataEndIndex){var $=P.state.updateId;P.setState(function(){return X({dataStartIndex:M,dataEndIndex:C},v({props:P.props,dataStartIndex:M,dataEndIndex:C,updateId:$},P.state))}),P.triggerSyncEvent({dataStartIndex:M,dataEndIndex:C})}}),ve(P,"handleMouseEnter",function(A){var M=P.getMouseInfo(A);if(M){var C=X(X({},M),{},{isTooltipActive:!0});P.setState(C),P.triggerSyncEvent(C);var $=P.props.onMouseEnter;Se($)&&$(C,A)}}),ve(P,"triggeredAfterMouseMove",function(A){var M=P.getMouseInfo(A),C=M?X(X({},M),{},{isTooltipActive:!0}):{isTooltipActive:!1};P.setState(C),P.triggerSyncEvent(C);var $=P.props.onMouseMove;Se($)&&$(C,A)}),ve(P,"handleItemMouseEnter",function(A){P.setState(function(){return{isTooltipActive:!0,activeItem:A,activePayload:A.tooltipPayload,activeCoordinate:A.tooltipPosition||{x:A.cx,y:A.cy}}})}),ve(P,"handleItemMouseLeave",function(){P.setState(function(){return{isTooltipActive:!1}})}),ve(P,"handleMouseMove",function(A){A.persist(),P.throttleTriggeredAfterMouseMove(A)}),ve(P,"handleMouseLeave",function(A){P.throttleTriggeredAfterMouseMove.cancel();var M={isTooltipActive:!1};P.setState(M),P.triggerSyncEvent(M);var C=P.props.onMouseLeave;Se(C)&&C(M,A)}),ve(P,"handleOuterEvent",function(A){var M=rV(A),C=ar(P.props,"".concat(M));if(M&&Se(C)){var $,B;/.*touch.*/i.test(M)?B=P.getMouseInfo(A.changedTouches[0]):B=P.getMouseInfo(A),C(($=B)!==null&&$!==void 0?$:{},A)}}),ve(P,"handleClick",function(A){var M=P.getMouseInfo(A);if(M){var C=X(X({},M),{},{isTooltipActive:!0});P.setState(C),P.triggerSyncEvent(C);var $=P.props.onClick;Se($)&&$(C,A)}}),ve(P,"handleMouseDown",function(A){var M=P.props.onMouseDown;if(Se(M)){var C=P.getMouseInfo(A);M(C,A)}}),ve(P,"handleMouseUp",function(A){var M=P.props.onMouseUp;if(Se(M)){var C=P.getMouseInfo(A);M(C,A)}}),ve(P,"handleTouchMove",function(A){A.changedTouches!=null&&A.changedTouches.length>0&&P.throttleTriggeredAfterMouseMove(A.changedTouches[0])}),ve(P,"handleTouchStart",function(A){A.changedTouches!=null&&A.changedTouches.length>0&&P.handleMouseDown(A.changedTouches[0])}),ve(P,"handleTouchEnd",function(A){A.changedTouches!=null&&A.changedTouches.length>0&&P.handleMouseUp(A.changedTouches[0])}),ve(P,"handleDoubleClick",function(A){var M=P.props.onDoubleClick;if(Se(M)){var C=P.getMouseInfo(A);M(C,A)}}),ve(P,"handleContextMenu",function(A){var M=P.props.onContextMenu;if(Se(M)){var C=P.getMouseInfo(A);M(C,A)}}),ve(P,"triggerSyncEvent",function(A){P.props.syncId!==void 0&&Dv.emit(Rv,P.props.syncId,A,P.eventEmitterSymbol)}),ve(P,"applySyncEvent",function(A){var M=P.props,C=M.layout,$=M.syncMethod,B=P.state.updateId,z=A.dataStartIndex,R=A.dataEndIndex;if(A.dataStartIndex!==void 0||A.dataEndIndex!==void 0)P.setState(X({dataStartIndex:z,dataEndIndex:R},v({props:P.props,dataStartIndex:z,dataEndIndex:R,updateId:B},P.state)));else if(A.activeTooltipIndex!==void 0){var G=A.chartX,W=A.chartY,H=A.activeTooltipIndex,Z=P.state,K=Z.offset,D=Z.tooltipTicks;if(!K)return;if(typeof $=="function")H=$(D,A);else if($==="value"){H=-1;for(var q=0;q<D.length;q++)if(D[q].value===A.activeLabel){H=q;break}}var V=X(X({},K),{},{x:K.left,y:K.top}),te=Math.min(G,V.x+V.width),Y=Math.min(W,V.y+V.height),ae=D[H]&&D[H].value,fe=S0(P.state,P.props.data,H),he=D[H]?{x:C==="horizontal"?D[H].coordinate:te,y:C==="horizontal"?Y:D[H].coordinate}:J$;P.setState(X(X({},A),{},{activeLabel:ae,activeCoordinate:he,activePayload:fe,activeTooltipIndex:H}))}else P.setState(A)}),ve(P,"renderCursor",function(A){var M,C=P.state,$=C.isTooltipActive,B=C.activeCoordinate,z=C.activePayload,R=C.offset,G=C.activeTooltipIndex,W=C.tooltipAxisBandSize,H=P.getTooltipEventType(),Z=(M=A.props.active)!==null&&M!==void 0?M:$,K=P.props.layout,D=A.key||"_recharts-cursor";return I.createElement(wue,{key:D,activeCoordinate:B,activePayload:z,activeTooltipIndex:G,chartName:n,element:A,isActive:Z,layout:K,offset:R,tooltipAxisBandSize:W,tooltipEventType:H})}),ve(P,"renderPolarAxis",function(A,M,C){var $=ar(A,"type.axisType"),B=ar(P.state,"".concat($,"Map")),z=A.type.defaultProps,R=z!==void 0?X(X({},z),A.props):A.props,G=B&&B[R["".concat($,"Id")]];return j.cloneElement(A,X(X({},G),{},{className:Ne($,G.className),key:A.key||"".concat(M,"-").concat(C),ticks:ci(G,!0)}))}),ve(P,"renderPolarGrid",function(A){var M=A.props,C=M.radialLines,$=M.polarAngles,B=M.polarRadius,z=P.state,R=z.radiusAxisMap,G=z.angleAxisMap,W=Hi(R),H=Hi(G),Z=H.cx,K=H.cy,D=H.innerRadius,q=H.outerRadius;return j.cloneElement(A,{polarAngles:Array.isArray($)?$:ci(H,!0).map(function(V){return V.coordinate}),polarRadius:Array.isArray(B)?B:ci(W,!0).map(function(V){return V.coordinate}),cx:Z,cy:K,innerRadius:D,outerRadius:q,key:A.key||"polar-grid",radialLines:C})}),ve(P,"renderLegend",function(){var A=P.state.formattedGraphicalItems,M=P.props,C=M.children,$=M.width,B=M.height,z=P.props.margin||{},R=$-(z.left||0)-(z.right||0),G=Fj({children:C,formattedGraphicalItems:A,legendWidth:R,legendContent:f});if(!G)return null;var W=G.item,H=pA(G,Sue);return j.cloneElement(W,X(X({},H),{},{chartWidth:$,chartHeight:B,margin:z,onBBoxUpdate:P.handleLegendBBoxUpdate}))}),ve(P,"renderTooltip",function(){var A,M=P.props,C=M.children,$=M.accessibilityLayer,B=jn(C,ri);if(!B)return null;var z=P.state,R=z.isTooltipActive,G=z.activeCoordinate,W=z.activePayload,H=z.activeLabel,Z=z.offset,K=(A=B.props.active)!==null&&A!==void 0?A:R;return j.cloneElement(B,{viewBox:X(X({},Z),{},{x:Z.left,y:Z.top}),active:K,label:H,payload:K?W:[],coordinate:G,accessibilityLayer:$})}),ve(P,"renderBrush",function(A){var M=P.props,C=M.margin,$=M.data,B=P.state,z=B.offset,R=B.dataStartIndex,G=B.dataEndIndex,W=B.updateId;return j.cloneElement(A,{key:A.key||"_recharts-brush",onChange:Xf(P.handleBrushChange,A.props.onChange),data:$,x:ie(A.props.x)?A.props.x:z.left,y:ie(A.props.y)?A.props.y:z.top+z.height+z.brushBottom-(C.bottom||0),width:ie(A.props.width)?A.props.width:z.width,startIndex:R,endIndex:G,updateId:"brush-".concat(W)})}),ve(P,"renderReferenceElement",function(A,M,C){if(!A)return null;var $=P,B=$.clipPathId,z=P.state,R=z.xAxisMap,G=z.yAxisMap,W=z.offset,H=A.type.defaultProps||{},Z=A.props,K=Z.xAxisId,D=K===void 0?H.xAxisId:K,q=Z.yAxisId,V=q===void 0?H.yAxisId:q;return j.cloneElement(A,{key:A.key||"".concat(M,"-").concat(C),xAxis:R[D],yAxis:G[V],viewBox:{x:W.left,y:W.top,width:W.width,height:W.height},clipPathId:B})}),ve(P,"renderActivePoints",function(A){var M=A.item,C=A.activePoint,$=A.basePoint,B=A.childIndex,z=A.isRange,R=[],G=M.props.key,W=M.item.type.defaultProps!==void 0?X(X({},M.item.type.defaultProps),M.item.props):M.item.props,H=W.activeDot,Z=W.dataKey,K=X(X({index:B,dataKey:Z,cx:C.x,cy:C.y,r:4,fill:t1(M.item),strokeWidth:2,stroke:"#fff",payload:C.payload,value:C.value},Ee(H,!1)),qh(H));return R.push(y.renderActiveDot(H,K,"".concat(G,"-activePoint-").concat(B))),$?R.push(y.renderActiveDot(H,X(X({},K),{},{cx:$.x,cy:$.y}),"".concat(G,"-basePoint-").concat(B))):z&&R.push(null),R}),ve(P,"renderGraphicChild",function(A,M,C){var $=P.filterFormatItem(A,M,C);if(!$)return null;var B=P.getTooltipEventType(),z=P.state,R=z.isTooltipActive,G=z.tooltipAxis,W=z.activeTooltipIndex,H=z.activeLabel,Z=P.props.children,K=jn(Z,ri),D=$.props,q=D.points,V=D.isRange,te=D.baseLine,Y=$.item.type.defaultProps!==void 0?X(X({},$.item.type.defaultProps),$.item.props):$.item.props,ae=Y.activeDot,fe=Y.hide,he=Y.activeBar,ce=Y.activeShape,Ve=!!(!fe&&R&&K&&(ae||he||ce)),ze={};B!=="axis"&&K&&K.props.trigger==="click"?ze={onClick:Xf(P.handleItemMouseEnter,A.props.onClick)}:B!=="axis"&&(ze={onMouseLeave:Xf(P.handleItemMouseLeave,A.props.onMouseLeave),onMouseEnter:Xf(P.handleItemMouseEnter,A.props.onMouseEnter)});var oe=j.cloneElement(A,X(X({},$.props),ze));function me(Q){return typeof G.dataKey=="function"?G.dataKey(Q.payload):null}if(Ve)if(W>=0){var ye,J;if(G.dataKey&&!G.allowDuplicatedCategory){var Le=typeof G.dataKey=="function"?me:"payload.".concat(G.dataKey.toString());ye=Kh(q,Le,H),J=V&&te&&Kh(te,Le,H)}else ye=q==null?void 0:q[W],J=V&&te&&te[W];if(ce||he){var we=A.props.activeIndex!==void 0?A.props.activeIndex:W;return[j.cloneElement(A,X(X(X({},$.props),ze),{},{activeIndex:we})),null,null]}if(!Me(ye))return[oe].concat(zs(P.renderActivePoints({item:$,activePoint:ye,basePoint:J,childIndex:W,isRange:V})))}else{var Ue,We=(Ue=P.getItemByXY(P.state.activeCoordinate))!==null&&Ue!==void 0?Ue:{graphicalItem:oe},it=We.graphicalItem,Tt=it.item,hn=Tt===void 0?A:Tt,On=it.childIndex,zt=X(X(X({},$.props),ze),{},{activeIndex:On});return[j.cloneElement(hn,zt),null,null]}return V?[oe,null,null]:[oe,null]}),ve(P,"renderCustomized",function(A,M,C){return j.cloneElement(A,X(X({key:"recharts-customized-".concat(C)},P.props),P.state))}),ve(P,"renderMap",{CartesianGrid:{handler:th,once:!0},ReferenceArea:{handler:P.renderReferenceElement},ReferenceLine:{handler:th},ReferenceDot:{handler:P.renderReferenceElement},XAxis:{handler:th},YAxis:{handler:th},Brush:{handler:P.renderBrush,once:!0},Bar:{handler:P.renderGraphicChild},Line:{handler:P.renderGraphicChild},Area:{handler:P.renderGraphicChild},Radar:{handler:P.renderGraphicChild},RadialBar:{handler:P.renderGraphicChild},Scatter:{handler:P.renderGraphicChild},Pie:{handler:P.renderGraphicChild},Funnel:{handler:P.renderGraphicChild},Tooltip:{handler:P.renderCursor,once:!0},PolarGrid:{handler:P.renderPolarGrid,once:!0},PolarAngleAxis:{handler:P.renderPolarAxis},PolarRadiusAxis:{handler:P.renderPolarAxis},Customized:{handler:P.renderCustomized}}),P.clipPathId="".concat((w=_.id)!==null&&w!==void 0?w:Cc("recharts"),"-clip"),P.throttleTriggeredAfterMouseMove=VC(P.triggeredAfterMouseMove,(E=_.throttleDelay)!==null&&E!==void 0?E:1e3/60),P.state={},P}return Lue(y,S),Cue(y,[{key:"componentDidMount",value:function(){var w,E;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(E=this.props.margin.top)!==null&&E!==void 0?E:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var w=this.props,E=w.children,P=w.data,A=w.height,M=w.layout,C=jn(E,ri);if(C){var $=C.props.defaultIndex;if(!(typeof $!="number"||$<0||$>this.state.tooltipTicks.length-1)){var B=this.state.tooltipTicks[$]&&this.state.tooltipTicks[$].value,z=S0(this.state,P,$,B),R=this.state.tooltipTicks[$].coordinate,G=(this.state.offset.top+A)/2,W=M==="horizontal",H=W?{x:R,y:G}:{y:R,x:G},Z=this.state.formattedGraphicalItems.find(function(D){var q=D.item;return q.type.name==="Scatter"});Z&&(H=X(X({},H),Z.props.points[$].tooltipPosition),z=Z.props.points[$].tooltipPayload);var K={activeTooltipIndex:$,isTooltipActive:!0,activeLabel:B,activePayload:z,activeCoordinate:H};this.setState(K),this.renderCursor(C),this.accessibilityManager.setIndex($)}}}},{key:"getSnapshotBeforeUpdate",value:function(w,E){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==E.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==w.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==w.margin){var P,A;this.accessibilityManager.setDetails({offset:{left:(P=this.props.margin.left)!==null&&P!==void 0?P:0,top:(A=this.props.margin.top)!==null&&A!==void 0?A:0}})}return null}},{key:"componentDidUpdate",value:function(w){ny([jn(w.children,ri)],[jn(this.props.children,ri)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var w=jn(this.props.children,ri);if(w&&typeof w.props.shared=="boolean"){var E=w.props.shared?"axis":"item";return l.indexOf(E)>=0?E:o}return o}},{key:"getMouseInfo",value:function(w){if(!this.container)return null;var E=this.container,P=E.getBoundingClientRect(),A=MX(P),M={chartX:Math.round(w.pageX-A.left),chartY:Math.round(w.pageY-A.top)},C=P.width/E.offsetWidth||1,$=this.inRange(M.chartX,M.chartY,C);if(!$)return null;var B=this.state,z=B.xAxisMap,R=B.yAxisMap,G=this.getTooltipEventType(),W=vA(this.state,this.props.data,this.props.layout,$);if(G!=="axis"&&z&&R){var H=Hi(z).scale,Z=Hi(R).scale,K=H&&H.invert?H.invert(M.chartX):null,D=Z&&Z.invert?Z.invert(M.chartY):null;return X(X({},M),{},{xValue:K,yValue:D},W)}return W?X(X({},M),W):null}},{key:"inRange",value:function(w,E){var P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,A=this.props.layout,M=w/P,C=E/P;if(A==="horizontal"||A==="vertical"){var $=this.state.offset,B=M>=$.left&&M<=$.left+$.width&&C>=$.top&&C<=$.top+$.height;return B?{x:M,y:C}:null}var z=this.state,R=z.angleAxisMap,G=z.radiusAxisMap;if(R&&G){var W=Hi(R);return tT({x:M,y:C},W)}return null}},{key:"parseEventsOfWrapper",value:function(){var w=this.props.children,E=this.getTooltipEventType(),P=jn(w,ri),A={};P&&E==="axis"&&(P.props.trigger==="click"?A={onClick:this.handleClick}:A={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var M=qh(this.props,this.handleOuterEvent);return X(X({},M),A)}},{key:"addListener",value:function(){Dv.on(Rv,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Dv.removeListener(Rv,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(w,E,P){for(var A=this.state.formattedGraphicalItems,M=0,C=A.length;M<C;M++){var $=A[M];if($.item===w||$.props.key===w.key||E===pi($.item.type)&&P===$.childIndex)return $}return null}},{key:"renderClipPath",value:function(){var w=this.clipPathId,E=this.state.offset,P=E.left,A=E.top,M=E.height,C=E.width;return I.createElement("defs",null,I.createElement("clipPath",{id:w},I.createElement("rect",{x:P,y:A,height:M,width:C})))}},{key:"getXScales",value:function(){var w=this.state.xAxisMap;return w?Object.entries(w).reduce(function(E,P){var A=dA(P,2),M=A[0],C=A[1];return X(X({},E),{},ve({},M,C.scale))},{}):null}},{key:"getYScales",value:function(){var w=this.state.yAxisMap;return w?Object.entries(w).reduce(function(E,P){var A=dA(P,2),M=A[0],C=A[1];return X(X({},E),{},ve({},M,C.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(w){var E;return(E=this.state.xAxisMap)===null||E===void 0||(E=E[w])===null||E===void 0?void 0:E.scale}},{key:"getYScaleByAxisId",value:function(w){var E;return(E=this.state.yAxisMap)===null||E===void 0||(E=E[w])===null||E===void 0?void 0:E.scale}},{key:"getItemByXY",value:function(w){var E=this.state,P=E.formattedGraphicalItems,A=E.activeItem;if(P&&P.length)for(var M=0,C=P.length;M<C;M++){var $=P[M],B=$.props,z=$.item,R=z.type.defaultProps!==void 0?X(X({},z.type.defaultProps),z.props):z.props,G=pi(z.type);if(G==="Bar"){var W=(B.data||[]).find(function(D){return vie(w,D)});if(W)return{graphicalItem:$,payload:W}}else if(G==="RadialBar"){var H=(B.data||[]).find(function(D){return tT(w,D)});if(H)return{graphicalItem:$,payload:H}}else if(Xp($,A)||Yp($,A)||pc($,A)){var Z=xoe({graphicalItem:$,activeTooltipItem:A,itemData:R.data}),K=R.activeIndex===void 0?Z:R.activeIndex;return{graphicalItem:X(X({},$),{},{childIndex:K}),payload:pc($,A)?R.data[Z]:$.props.data[Z]}}}return null}},{key:"render",value:function(){var w=this;if(!WS(this))return null;var E=this.props,P=E.children,A=E.className,M=E.width,C=E.height,$=E.style,B=E.compact,z=E.title,R=E.desc,G=pA(E,Pue),W=Ee(G,!1);if(B)return I.createElement(XT,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},I.createElement(iy,qa({},W,{width:M,height:C,title:z,desc:R}),this.renderClipPath(),ZS(P,this.renderMap)));if(this.props.accessibilityLayer){var H,Z;W.tabIndex=(H=this.props.tabIndex)!==null&&H!==void 0?H:0,W.role=(Z=this.props.role)!==null&&Z!==void 0?Z:"application",W.onKeyDown=function(D){w.accessibilityManager.keyboardEvent(D)},W.onFocus=function(){w.accessibilityManager.focus()}}var K=this.parseEventsOfWrapper();return I.createElement(XT,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},I.createElement("div",qa({className:Ne("recharts-wrapper",A),style:X({position:"relative",cursor:"default",width:M,height:C},$)},K,{ref:function(q){w.container=q}}),I.createElement(iy,qa({},W,{width:M,height:C,title:z,desc:R,style:Fue}),this.renderClipPath(),ZS(P,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(j.Component);ve(b,"displayName",n),ve(b,"defaultProps",X({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},d)),ve(b,"getDerivedStateFromProps",function(S,y){var _=S.dataKey,w=S.data,E=S.children,P=S.width,A=S.height,M=S.layout,C=S.stackOffset,$=S.margin,B=y.dataStartIndex,z=y.dataEndIndex;if(y.updateId===void 0){var R=gA(S);return X(X(X({},R),{},{updateId:0},v(X(X({props:S},R),{},{updateId:0}),y)),{},{prevDataKey:_,prevData:w,prevWidth:P,prevHeight:A,prevLayout:M,prevStackOffset:C,prevMargin:$,prevChildren:E})}if(_!==y.prevDataKey||w!==y.prevData||P!==y.prevWidth||A!==y.prevHeight||M!==y.prevLayout||C!==y.prevStackOffset||!ns($,y.prevMargin)){var G=gA(S),W={chartX:y.chartX,chartY:y.chartY,isTooltipActive:y.isTooltipActive},H=X(X({},vA(y,w,M)),{},{updateId:y.updateId+1}),Z=X(X(X({},G),W),H);return X(X(X({},Z),v(X({props:S},Z),y)),{},{prevDataKey:_,prevData:w,prevWidth:P,prevHeight:A,prevLayout:M,prevStackOffset:C,prevMargin:$,prevChildren:E})}if(!ny(E,y.prevChildren)){var K,D,q,V,te=jn(E,As),Y=te&&(K=(D=te.props)===null||D===void 0?void 0:D.startIndex)!==null&&K!==void 0?K:B,ae=te&&(q=(V=te.props)===null||V===void 0?void 0:V.endIndex)!==null&&q!==void 0?q:z,fe=Y!==B||ae!==z,he=!Me(w),ce=he&&!fe?y.updateId:y.updateId+1;return X(X({updateId:ce},v(X(X({props:S},y),{},{updateId:ce,dataStartIndex:Y,dataEndIndex:ae}),y)),{},{prevChildren:E,dataStartIndex:Y,dataEndIndex:ae})}return null}),ve(b,"renderActiveDot",function(S,y,_){var w;return j.isValidElement(S)?w=j.cloneElement(S,y):Se(S)?w=S(y):w=I.createElement(r1,y),I.createElement(ft,{className:"recharts-active-dot",key:_},w)});var x=j.forwardRef(function(y,_){return I.createElement(b,qa({},y,{ref:_}))});return x.displayName=b.displayName,x},Yue=tN({chartName:"BarChart",GraphicalChild:ma,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:Ls},{axisType:"yAxis",AxisComp:Ds}],formatAxisMap:g$}),Que=tN({chartName:"AreaChart",GraphicalChild:xo,axisComponents:[{axisType:"xAxis",AxisComp:Ls},{axisType:"yAxis",AxisComp:Ds}],formatAxisMap:g$});const Jue=({manager:e})=>{const{data:t}=e;if(!t)return O.jsx("div",{className:"p-20 text-center opacity-30 font-mono text-sm",children:"Caricamento dati energia..."});const n=t.power.soc_history_24h,r=t.power.soc,i=[...n,r],o=i.map((m,v)=>({index:v,soc:m})),s=Math.min(...i),l=Math.max(...i),u=i.lastIndexOf(s),f=i.indexOf(l),h=i.length-1,d=t.power.soc_history_7d_minmax;return O.jsxs("div",{className:"px-2 pt-5 pb-24 landscape:pt-4 space-y-2",children:[O.jsxs("div",{className:"flex flex-col landscape:flex-row gap-2 w-full",children:[O.jsxs("div",{className:"w-full landscape:w-1/2 bg-white/5 p-5 rounded-[2rem] border border-white/10 shadow-2xl",children:[O.jsxs("h3",{className:"text-[10px] font-black font-mono text-cyan-400 mb-2 flex items-center gap-2 tracking-widest uppercase",children:[O.jsx(h4,{size:14})," STATO DI CARICA (24h)"]}),O.jsx("div",{className:"h-56 w-full",children:O.jsx(UP,{width:"100%",height:"100%",children:O.jsxs(Que,{data:o,margin:{top:25,right:65,left:0,bottom:10},children:[O.jsx("defs",{children:O.jsxs("linearGradient",{id:"colorSoc",x1:"0",y1:"0",x2:"0",y2:"1",children:[O.jsx("stop",{offset:"5%",stopColor:r<40?"#ef4444":"#22c55e",stopOpacity:.4}),O.jsx("stop",{offset:"95%",stopColor:"#121212",stopOpacity:0})]})}),O.jsx(d0,{strokeDasharray:"3 3",stroke:"#ffffff40",vertical:!1}),O.jsx(Ds,{domain:[40,100],ticks:[40,60,80,100],tick:{fill:"#666",fontSize:11,fontWeight:"bold"},axisLine:!1,tickLine:!1,width:27}),O.jsx(Ls,{dataKey:"index",hide:!0}),O.jsx(xo,{type:"monotone",dataKey:"soc",stroke:r<40?"#ef4444":"#22c55e",strokeWidth:4,fill:"url(#colorSoc)",isAnimationActive:!1}),O.jsx(Yo,{x:f,y:l,r:4,fill:"#22c55e",stroke:"#121212",strokeWidth:2,label:{position:"top",value:`${l.toFixed(0)}%`,fill:"#22c55e",fontSize:10,fontWeight:"bold",dy:-10}}),O.jsx(Yo,{x:u,y:s,r:4,fill:"#ef4444",stroke:"#121212",strokeWidth:2,label:{position:"bottom",value:`${s.toFixed(0)}%`,fill:"#ef4444",fontSize:10,fontWeight:"bold",dy:10}}),O.jsx(Yo,{x:h,y:r,r:6,fill:"#fff",stroke:"#06b6d4",strokeWidth:2,label:{position:"right",value:`${r.toFixed(1)}%`,fill:"#fff",fontSize:13,fontWeight:"900",dx:12}})]})})})]}),O.jsxs("div",{className:"w-full landscape:w-1/2 bg-white/5 p-5 rounded-[2rem] border border-white/10 space-y-5 shadow-2xl",children:[O.jsxs("h3",{className:"text-[10px] font-black font-mono text-orange-400 mb-2 flex items-center gap-2 tracking-widest uppercase",children:[O.jsx(Qx,{size:14})," PRODUZIONE SOLARE"]}),O.jsxs("div",{className:"grid grid-cols-3 gap-2 text-center",children:[O.jsx(Bv,{title:"OGGI",val:t.solar.today_kwh,color:"text-orange-400"}),O.jsx(Bv,{title:"PREV.",val:t.solar.forecast_kwh,color:"text-yellow-400"}),O.jsx(Bv,{title:"IERI",val:t.solar.yesterday_kwh,color:"text-gray-300"})]}),(()=>{const m=t.solar.today_prua_max_w||0,v=t.solar.today_poppa_max_w||0,b=Math.max(m,v,1);return O.jsxs("div",{className:"space-y-5 pt-2",children:[O.jsx(xA,{label:"PRUA",current:t.solar.prua_w,localMax:m,globalMax:b}),O.jsx(xA,{label:"POPPA",current:t.solar.poppa_w,localMax:v,globalMax:b})]})})()]})]}),O.jsxs("div",{className:"bg-white/5 p-5 rounded-[2rem] border border-white/10 shadow-2xl",children:[O.jsxs("h3",{className:"text-[10px] font-black font-mono text-cyan-400 mb-6 flex items-center gap-2 tracking-widest uppercase",children:[O.jsx(O4,{size:14})," MIN/MAX SETTIMANALE"]}),O.jsx("div",{className:"h-64 w-full",children:O.jsx(UP,{width:"100%",height:"100%",children:O.jsxs(Yue,{data:d,margin:{top:25,right:0,left:0,bottom:40},children:[O.jsx("defs",{children:d.map((m,v)=>{const b=m.max-m.min||1,x=(35-m.min)/b*100,S=(65-m.min)/b*100;return O.jsxs("linearGradient",{id:`grad-${v}`,x1:"0",y1:"1",x2:"0",y2:"0",children:[O.jsx("stop",{offset:"0%",stopColor:m.min<35?"#ef4444":m.min<65?"#f97316":"#22c55e"}),x>0&&x<100&&O.jsx("stop",{offset:`${x}%`,stopColor:"#f97316"}),S>0&&S<100&&O.jsx("stop",{offset:`${S}%`,stopColor:"#eab308"}),O.jsx("stop",{offset:"100%",stopColor:m.max>65?"#22c55e":m.max>35?"#eab308":"#ef4444"})]},`grad-${v}`)})}),O.jsx(d0,{strokeDasharray:"3 3",stroke:"#ffffff40",vertical:!1}),O.jsx(Ls,{dataKey:"day",axisLine:!1,tickLine:!1,tick:{fill:"#d1d5db",fontSize:11,fontWeight:"bold"}}),O.jsx(Ds,{domain:[0,100],ticks:[0,50,100],hide:!0}),O.jsxs(ma,{dataKey:m=>[m.min,m.max],radius:[6,6,6,6],barSize:18,isAnimationActive:!1,children:[d.map((m,v)=>O.jsx(M_,{fill:`url(#grad-${v})`},`cell-${v}`)),O.jsx(Wr,{dataKey:"max",position:"top",content:m=>{const{x:v,y:b,width:x,value:S}=m;return O.jsxs("text",{x:v+x/2,y:b-8,fill:"#fff",fontSize:"10",fontWeight:"900",textAnchor:"middle",children:[S.toFixed(0),"%"]})}}),O.jsx(Wr,{dataKey:"min",position:"bottom",content:m=>{const{x:v,y:b,width:x,value:S,height:y}=m;return O.jsxs("text",{x:v+x/2,y:b+y+18,fill:S<40?"#ef4444":"#d1d5db",fontSize:"10",fontWeight:"bold",textAnchor:"middle",children:[S.toFixed(0),"%"]})}})]})]})})})]})]})},Bv=({title:e,val:t,color:n})=>O.jsxs("div",{className:"bg-white/5 p-3 rounded-2xl border border-white/5",children:[O.jsx("div",{className:"text-[8px] font-black text-gray-300 mb-1 tracking-tighter uppercase",children:e}),O.jsxs("div",{className:`text-xl font-black ${n}`,children:[t.toFixed(1),O.jsx("span",{className:"text-[10px] ml-0.5 opacity-50",children:"kWh"})]})]}),xA=({label:e,current:t,localMax:n,globalMax:r})=>{const i=t/r*100,o=n/r*100;return O.jsxs("div",{className:"space-y-1.5",children:[O.jsxs("div",{className:"flex justify-between text-[10px] font-black",children:[O.jsx("span",{className:"text-gray-300 font-mono tracking-tighter uppercase",children:e}),O.jsxs("span",{className:"text-orange-400 font-mono",children:[t,"W ",O.jsxs("span",{className:"text-gray-300 font-bold uppercase",children:["/ Peak ",n,"W"]})]})]}),O.jsxs("div",{className:"relative h-2.5 w-full",children:[O.jsx("div",{className:"absolute inset-0 bg-white/5 rounded-full"}),o<99&&O.jsx("div",{className:"absolute top-0 bottom-0 border-y border-r border-dashed border-white/10 rounded-r-full",style:{left:`${o}%`,right:0}}),O.jsx("div",{className:"absolute inset-y-0 left-0 bg-white/10 rounded-full",style:{width:`${o}%`}}),O.jsx("div",{className:"absolute inset-y-0 left-0 bg-orange-500 rounded-full transition-all duration-1000 shadow-[0_0_12px_rgba(249,115,22,0.4)]",style:{width:`${i}%`}})]})]})},_A=e=>{const[t,n]=j.useState(e),r=j.useRef(e);return j.useEffect(()=>{const i=r.current;let o=(e-i)%360;o>180&&(o-=360),o<-180&&(o+=360),n(s=>s+o),r.current=e},[e]),t},Yl=e=>e<10?"text-cyan-400":e<18?"text-green-400":e<25?"text-yellow-400":e<35?"text-orange-500":"text-red-500",nN=(e,t=24)=>{if(!e)return O.jsx(SS,{size:t,className:"text-gray-400"});const n=e.precipitation||0,r=e.icon.toLowerCase();return n>=1.5?O.jsx(a4,{size:t,className:"text-purple-400"}):n>=.4?O.jsx(s4,{size:t,className:"text-cyan-400"}):n>0?O.jsx(o4,{size:t,className:"text-cyan-200"}):r.includes("sun")||r.includes("clear")?O.jsx(l4,{size:t,className:"text-yellow-400"}):r.includes("moon")?O.jsx(dM,{size:t,className:"text-blue-300"}):r.includes("cloud")?O.jsx(SS,{size:t,className:"text-gray-400"}):O.jsx(Qx,{size:t,className:"text-orange-400"})},ece=({manager:e})=>{const{data:t}=e;if(!t)return O.jsx("div",{className:"p-20 text-center opacity-30 font-mono text-sm uppercase text-white",children:"Ricezione dati..."});const n=t.environment,r=Math.min(100,n.wind_now/Math.max(n.wind_max_30m,1)*100);return O.jsxs("div",{className:"px-2 pt-5 pb-24 landscape:pt-4 space-y-2 text-white",children:[O.jsxs("div",{className:"grid grid-cols-2 landscape:grid-cols-4 gap-2",children:[O.jsxs("div",{className:"bg-white/5 p-5 landscape:py-2 landscape:px-5 rounded-[2rem] landscape:rounded-[1.5rem] border border-white/10 flex flex-col landscape:flex-row items-center justify-center landscape:justify-between text-center shadow-xl",children:[O.jsxs("div",{className:"flex flex-col items-center landscape:items-start",children:[O.jsx("div",{className:`text-6xl landscape:text-4xl font-black tracking-tighter ${Yl(n.wind_now)} drop-shadow-lg leading-none`,children:n.wind_now.toFixed(0)}),O.jsx("div",{className:"text-[10px] landscape:text-[8px] font-black text-gray-300 tracking-widest mt-1 uppercase font-mono",children:"Knots"})]}),O.jsx("div",{className:"w-full landscape:w-5 h-3 landscape:h-14 bg-white/10 rounded-full mt-4 landscape:mt-0 overflow-hidden border border-white/5 flex flex-col justify-end",children:O.jsx("div",{className:`bg-current ${Yl(n.wind_now)} transition-all duration-1000 shadow-[0_0_10px_currentColor]`,style:{width:window.innerHeight>window.innerWidth?`${r}%`:"100%",height:window.innerHeight>window.innerWidth?"100%":`${r}%`}})})]}),O.jsxs("div",{className:"bg-white/5 p-5 landscape:py-2 rounded-[2rem] landscape:rounded-[1.5rem] border border-white/10 space-y-4 landscape:space-y-1 justify-center flex flex-col shadow-xl font-mono text-white",children:[O.jsx(Fv,{label:"MIN 30m",val:n.wind_min_30m,color:"text-cyan-400"}),O.jsx("div",{className:"h-px bg-white/5 w-full"}),O.jsx(Fv,{label:"MAX 30m",val:n.wind_max_30m,color:"text-orange-400"}),O.jsx("div",{className:"h-px bg-white/5 w-full"}),O.jsx(Fv,{label:"MAX 24h",val:n.wind_max_24h,color:"text-red-500"})]}),O.jsx(bA,{title:"APPARENTE",windAngle:n.wind_dir_rel,boatAngle:0,color:Yl(n.wind_now)}),O.jsx(bA,{title:"REALE",windAngle:n.wind_dir_true,boatAngle:n.heading,color:Yl(n.wind_now),isTrue:!0})]}),O.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[O.jsx(wA,{icon:O.jsx(vM,{className:"text-yellow-500"}),title:"POZZETTO",val:n.temp_pozzetto,sub:`Umidità: ${n.hum_pozzetto.toFixed(0)}%`}),O.jsx(wA,{icon:nN(n.hourly_forecast[0],28),title:"MODELLO",val:n.temp_forecast,sub:"OpenMeteo"})]}),O.jsxs("div",{className:"bg-white/5 p-3 rounded-[2.5rem] border border-white/10 shadow-2xl",children:[O.jsx("h3",{className:"text-[10px] font-black text-center text-gray-300 tracking-[0.2em] mb-4 uppercase font-mono opacity-50 text-white",children:"Previsione 6 Ore"}),O.jsx("div",{className:"grid grid-cols-3 gap-2",children:n.hourly_forecast.slice(0,6).map((i,o)=>O.jsx(tce,{hour:i},o))})]})]})},bA=({title:e,windAngle:t,boatAngle:n,color:r,isTrue:i=!1})=>{const o=_A(t),s=_A(n);return O.jsxs("div",{className:"bg-white/5 py-3 px-4 landscape:py-2 landscape:px-4 rounded-[2rem] landscape:rounded-[1.5rem] border border-white/10 flex flex-col landscape:flex-row items-center justify-center landscape:justify-between shadow-lg overflow-hidden h-full gap-2 landscape:gap-0",children:[O.jsxs("div",{className:"relative w-28 h-28 landscape:w-16 landscape:h-16 flex items-center justify-center shrink-0",children:[O.jsx("div",{className:"absolute inset-0 border-2 border-white/10 rounded-full"}),i&&O.jsxs("div",{className:"absolute inset-0 flex items-center justify-center text-[8px] font-black opacity-30 text-white",children:[O.jsx("span",{className:"absolute top-0 text-red-500 font-mono",children:"N"}),O.jsx("span",{className:"absolute bottom-0 text-white/50 font-mono",children:"S"})]}),O.jsx("div",{className:"absolute transition-transform duration-1000 ease-in-out",style:{transform:`rotate(${s}deg)`},children:O.jsx(T4,{size:18,fill:"white",className:"text-white opacity-20 scale-x-75 scale-y-125"})}),O.jsx("div",{className:"absolute inset-0 transition-transform duration-1000 ease-in-out",style:{transform:`rotate(${o}deg)`},children:O.jsx("div",{className:`absolute top-0 left-1/2 -translate-x-1/2 -mt-1 ${r}`,children:O.jsx(fM,{size:16,strokeWidth:4,fill:"currentColor"})})})]}),O.jsxs("div",{className:"flex flex-col items-center landscape:items-end leading-none",children:[O.jsx("span",{className:"text-[10px] landscape:text-[7px] font-black text-gray-300 uppercase tracking-tighter font-mono whitespace-nowrap mb-1 landscape:mb-0",children:e}),O.jsxs("span",{className:`text-2xl landscape:text-lg font-black font-mono tracking-tighter ${r} whitespace-nowrap`,children:[t.toFixed(0),"° ",i?"N":""]})]})]})},Fv=({label:e,val:t,color:n})=>O.jsxs("div",{className:"flex justify-between items-baseline px-1 leading-none text-white",children:[O.jsx("span",{className:"text-[9px] landscape:text-[7px] font-black text-gray-300 uppercase font-mono",children:e}),O.jsx("span",{className:`text-lg landscape:text-sm font-black font-mono ${n}`,children:t.toFixed(1)})]}),wA=({icon:e,title:t,val:n,sub:r})=>O.jsxs("div",{className:"bg-white/5 p-5 landscape:py-2 landscape:px-4 rounded-[2rem] landscape:rounded-[1.5rem] border border-white/10 flex flex-col landscape:flex-row items-center landscape:justify-between shadow-lg h-full text-white group hover:bg-white/10 transition-all",children:[O.jsxs("div",{className:"flex flex-col landscape:flex-row items-center gap-1 landscape:gap-3 text-white",children:[O.jsx("div",{className:"bg-white/5 p-2 landscape:p-1.5 rounded-full flex items-center justify-center",children:I.cloneElement(e,{size:18,className:`${e.props.className} landscape:scale-90`})}),O.jsx("span",{className:"text-[9px] font-black text-gray-300 uppercase tracking-widest font-mono whitespace-nowrap",children:t})]}),O.jsxs("div",{className:"flex flex-col items-center landscape:items-end leading-tight text-white",children:[O.jsxs("span",{className:"text-3xl landscape:text-2xl font-black text-white",children:[n.toFixed(1),"°"]}),O.jsx("span",{className:"text-[10px] landscape:text-[8px] font-bold text-gray-300 uppercase font-mono whitespace-nowrap opacity-80",children:r})]})]}),tce=({hour:e})=>O.jsxs("div",{className:"bg-white/5 p-2 rounded-[1.5rem] flex flex-col items-center gap-1.5 border border-white/5 shadow-md overflow-hidden text-white h-full justify-between",children:[O.jsx("span",{className:"text-[9px] font-black text-gray-300 font-mono tracking-tighter uppercase",children:e.time}),O.jsx("div",{className:"my-0.5",children:nN(e,26)}),O.jsxs("span",{className:"text-lg font-black text-white leading-none",children:[e.temp,"°"]}),e.rainChance>15?O.jsx("div",{className:"flex items-center gap-1 text-cyan-400 bg-cyan-400/10 px-1.5 py-0.5 rounded-full",children:O.jsxs("span",{className:"text-[9px] font-black",children:[e.rainChance,"%"]})}):O.jsx("div",{className:"h-4"}),O.jsx("div",{className:"flex flex-col items-center w-full border-t border-white/5 pt-1.5 text-white",children:O.jsxs("div",{className:"flex items-center gap-1 justify-center w-full text-white",children:[O.jsx("span",{className:"text-lg landscape:text-base font-bold text-gray-400 font-mono leading-none",children:e.windSpeed}),O.jsx(n4,{size:10,className:"text-gray-300 shrink-0"}),O.jsx("span",{className:`text-lg landscape:text-base font-black font-mono leading-none ${Yl(e.windGust)}`,children:e.windGust})]})})]}),nce=({manager:e})=>{var u,f;const{data:t,toggleSwitch:n,setShoreLimit:r,isUpdating:i}=e,o=[4,6,10,16],s=((u=t==null?void 0:t.switches)==null?void 0:u.multiplus_on)||!1,l=((f=t==null?void 0:t.switches)==null?void 0:f.shore_limit)||0;return O.jsxs("div",{className:"p-4 space-y-6 pb-32",children:[O.jsx("header",{className:"px-2 pt-4 flex justify-between items-center",children:O.jsxs("div",{children:[O.jsxs("h2",{className:"text-xl font-black text-white flex items-center gap-2",children:[O.jsx(_4,{className:"text-gray-300",size:20}),"CONTROLLI AVANZATI"]}),O.jsx("p",{className:"text-[10px] text-gray-300 font-bold uppercase tracking-widest mt-1",children:"Gestione Sistemi di Bordo"})]})}),O.jsxs("div",{className:"space-y-3",children:[O.jsx("h3",{className:"text-[10px] font-black text-gray-300 tracking-[0.2em] uppercase px-2",children:"Inverter / Caricabatterie"}),O.jsxs("div",{className:"bg-white/5 rounded-[2.5rem] border border-white/10 overflow-hidden shadow-2xl divide-y divide-white/5",children:[O.jsxs("div",{className:"flex items-center justify-between p-6 bg-white/[0.02]",children:[O.jsxs("div",{className:"flex items-center gap-4",children:[O.jsx("div",{className:`p-3 rounded-2xl transition-all duration-500 ${s?"bg-yellow-500/20 shadow-[0_0_20px_rgba(234,179,8,0.2)]":"bg-white/5 grayscale opacity-30"}`,children:O.jsx(Jz,{className:s?"text-yellow-500":"text-white",size:28})}),O.jsxs("div",{className:"flex flex-col",children:[O.jsx("span",{className:"text-[15px] font-black text-white tracking-tight uppercase",children:"Banchina"}),O.jsx("span",{className:`text-[10px] font-black uppercase tracking-widest mt-0.5 ${s?"text-yellow-500":"text-gray-300"}`,children:s?"Stato: ACCESO (Pass-through)":"Stato: SOLO INVERTER"})]})]}),O.jsxs("label",{className:"relative inline-flex items-center cursor-pointer",children:[O.jsx("input",{type:"checkbox",className:"sr-only peer",checked:s,onChange:h=>n("multiplus",h.target.checked),disabled:i}),O.jsx("div",{className:`w-14 h-8 rounded-full peer transition-all shadow-inner relative after:content-[''] after:absolute after:top-[4px] after:left-[4px] after:bg-white after:rounded-full after:h-6 after:w-6 after:transition-all peer-checked:after:translate-x-6 ${s?"bg-yellow-500 shadow-[0_0_15px_rgba(234,179,8,0.4)]":"bg-gray-800"} ${i?"opacity-50":""}`})]})]}),O.jsxs("div",{className:`p-6 transition-all duration-700 ${s?"opacity-100":"opacity-20 grayscale pointer-events-none"}`,children:[O.jsxs("div",{className:"flex justify-between items-end mb-5",children:[O.jsxs("div",{className:"flex items-center gap-3",children:[O.jsx("div",{className:"p-2 bg-cyan-500/10 rounded-xl",children:O.jsx(g4,{size:20,className:"text-cyan-400"})}),O.jsxs("div",{className:"flex flex-col",children:[O.jsx("span",{className:"text-sm font-black uppercase text-white tracking-tight",children:"Limite Banchina"}),O.jsx("span",{className:"text-[9px] font-bold text-gray-300 uppercase tracking-widest",children:"Seleziona Ampere AC"})]})]}),O.jsxs("div",{className:"flex items-baseline gap-1",children:[O.jsx("span",{className:"text-3xl font-black font-mono text-cyan-400",children:l.toFixed(0)}),O.jsx("span",{className:"text-sm font-bold text-gray-600",children:"A"})]})]}),O.jsx("div",{className:"flex gap-2.5 w-full mt-2",children:o.map(h=>O.jsxs("button",{onClick:()=>r(h),disabled:i||!s,className:`flex-1 py-4 rounded-2xl font-black font-mono transition-all active:scale-90 border ${l===h?"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:[h,"A"]},h))})]}),O.jsxs("div",{className:"p-6 flex items-center justify-between opacity-10 grayscale",children:[O.jsxs("div",{className:"flex items-center gap-4",children:[O.jsx("div",{className:"p-3 bg-white/5 rounded-2xl text-gray-400",children:O.jsx(b4,{size:26})}),O.jsxs("div",{className:"flex flex-col",children:[O.jsx("span",{className:"text-sm font-black text-white uppercase tracking-tight",children:"Safe Power Mode"}),O.jsx("span",{className:"text-[9px] font-bold text-gray-300 uppercase",children:"Configurazione automatica carichi"})]})]}),O.jsx("div",{className:"w-10 h-5 bg-gray-900 rounded-full border border-white/5"})]})]})]})]})},rce=""+new URL("AppIcon-CV7HxdmO.png",import.meta.url).href;function ice(){const[e,t]=j.useState(()=>{if(new URLSearchParams(window.location.search).get("mmsi"))return 3;const b=localStorage.getItem("rotevista_active_tab");return b!==null?parseInt(b,10):0}),[n,r]=j.useState(0),[i,o]=j.useState(()=>localStorage.getItem("rotevista_night_mode")==="true"),[s,l]=j.useState(()=>new URLSearchParams(window.location.search).get("mmsi")||null),u=M4();I.useEffect(()=>{const b=new URLSearchParams(window.location.search).get("mmsi");b&&(l(b),t(3),localStorage.setItem("rotevista_active_tab","3"))},[]);const f=()=>{document.fullscreenElement?document.exitFullscreen&&document.exitFullscreen():document.documentElement.requestFullscreen().catch(v=>console.error(v))},h=v=>{v!==e&&(r(v>e?1:-1),t(v),localStorage.setItem("rotevista_active_tab",String(v)))},d=(v,b)=>{if(v.target.closest(".leaflet-container"))return;const x=50;b.offset.x<-x&&e<4?h(e+1):b.offset.x>x&&e>0&&h(e-1)},m={enter:v=>({x:v>0?"100%":"-100%",opacity:0}),center:{x:0,opacity:1},exit:v=>({x:v<0?"100%":"-100%",opacity:0})};return O.jsxs("div",{className:`h-screen h-[100dvh] bg-[#121212] flex flex-col font-sans overflow-hidden select-none transition-colors duration-700 ${i?"night-mode-active":""}`,children:[O.jsxs("header",{onClick:f,className:"fixed top-0 left-0 right-0 z-[1000] h-16 bg-[#121212]/80 backdrop-blur-lg border-b border-white/10 px-4 flex items-center justify-between cursor-pointer",children:[O.jsxs("div",{className:"flex items-center gap-3",children:[O.jsx("img",{src:rce,alt:"Logo",className:"w-9 h-9 rounded-lg object-cover bg-white/10 shadow-lg"}),O.jsx("h1",{className:"text-xl font-black tracking-widest uppercase font-mono text-white",children:"ROTEVISTA"})]}),O.jsxs("div",{className:"flex items-center gap-3",children:[u.isUpdating&&O.jsxs("div",{className:"flex items-center gap-1.5 text-cyan-400 animate-pulse bg-cyan-400/10 px-2.5 py-1 rounded-lg border border-cyan-400/20 shadow-[0_0_10px_rgba(34,211,238,0.2)]",children:[O.jsx(p4,{size:12,className:"animate-spin"}),O.jsx("span",{className:"text-[10px] font-black uppercase font-mono",children:"Sync"})]}),O.jsx("button",{onClick:v=>{v.stopPropagation();const b=!i;o(b),localStorage.setItem("rotevista_night_mode",String(b))},className:`p-2 rounded-xl border transition-all active:scale-95 ${i?"bg-red-500/20 border-red-500/50 text-red-500":"bg-white/5 border-white/10 text-gray-400"}`,children:i?O.jsx(Qx,{size:16}):O.jsx(dM,{size:16})}),O.jsxs("div",{className:"flex items-center gap-2 px-3 py-1.5 bg-white/5 rounded-xl border border-white/10 shadow-inner font-mono",children:[O.jsx("span",{className:"text-xs font-bold text-gray-400",children:u.isDataStale?"OFF":`${u.secondsSinceLastUpdate}s`}),O.jsx("div",{className:`w-2 h-2 rounded-full ${u.statusColor} shadow-[0_0_8px_currentColor]`})]})]})]}),O.jsx("main",{className:"flex-1 relative mt-16 landscape:mt-14 h-[calc(100%-4rem)] landscape:h-[calc(100%-3.5rem)] w-full",children:O.jsx(AD,{initial:!1,custom:n,children:O.jsxs(Xz.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:d,onPointerDownCapture:v=>{v.target.closest(".leaflet-container")&&v.stopPropagation()},className:"absolute inset-0 w-full h-full overflow-y-auto px-1 scroll-smooth",children:[e===0&&O.jsx(rB,{manager:u,onTabChange:h}),e===1&&O.jsx(Jue,{manager:u}),e===2&&O.jsx(ece,{manager:u}),e===3&&O.jsx(hB,{manager:u,isNightMode:i,initialMmsi:s}),e===4&&O.jsx(nce,{manager:u})]},e)})}),O.jsxs("nav",{className:"fixed bottom-5 left-1/2 -translate-x-1/2 bg-[#1a1a1a]/90 backdrop-blur-2xl border border-white/10 rounded-full px-4 py-2 flex items-center justify-around w-[92%] max-w-md shadow-[0_20px_50px_rgba(0,0,0,0.6)] z-[1001]",children:[O.jsx(Fl,{icon:O.jsx(d4,{}),label:"Home",isActive:e===0,onClick:()=>h(0)}),O.jsx(Fl,{icon:O.jsx(E4,{}),label:"Energia",isActive:e===1,onClick:()=>h(1)}),O.jsx(Fl,{icon:O.jsx(A4,{}),label:"Ambiente",isActive:e===2,onClick:()=>h(2)}),O.jsx(Fl,{icon:O.jsx(x4,{}),label:"AIS",isActive:e===3,onClick:()=>h(3)}),O.jsx(Fl,{icon:O.jsx(S4,{}),label:"Extra",isActive:e===4,onClick:()=>h(4)})]})]})}const Fl=({icon:e,label:t,isActive:n,onClick:r})=>O.jsxs("button",{onClick:r,className:`flex flex-col items-center gap-1 transition-all duration-300 ${n?"text-cyan-400 scale-110":"text-gray-300"}`,children:[I.cloneElement(e,{size:20,strokeWidth:n?2.5:2}),O.jsx("span",{className:`text-[9px] font-black uppercase tracking-tighter ${n?"opacity-100":"opacity-60"}`,children:t})]}),oce="modulepreload",ace=function(e,t){return new URL(e,t).href},SA={},sce=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){const s=document.getElementsByTagName("link"),l=document.querySelector("meta[property=csp-nonce]"),u=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));i=Promise.allSettled(n.map(f=>{if(f=ace(f,r),f in SA)return;SA[f]=!0;const h=f.endsWith(".css"),d=h?'[rel="stylesheet"]':"";if(!!r)for(let b=s.length-1;b>=0;b--){const x=s[b];if(x.href===f&&(!h||x.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${f}"]${d}`))return;const v=document.createElement("link");if(v.rel=h?"stylesheet":oce,h||(v.as="script"),v.crossOrigin="",v.href=f,u&&v.setAttribute("nonce",u),document.head.appendChild(v),h)return new Promise((b,x)=>{v.addEventListener("load",b),v.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${f}`)))})}))}function o(s){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=s,window.dispatchEvent(l),!l.defaultPrevented)throw s}return i.then(s=>{for(const l of s||[])l.status==="rejected"&&o(l.reason);return t().catch(o)})};function lce(e={}){const{immediate:t=!1,onNeedReload:n,onNeedRefresh:r,onOfflineReady:i,onRegistered:o,onRegisteredSW:s,onRegisterError:l}=e;let u,f;const h=async(m=!0)=>{await f};async function d(){if("serviceWorker"in navigator){if(u=await sce(async()=>{const{Workbox:m}=await import("./workbox-window.prod.es5-BqEJf4Xk.js");return{Workbox:m}},[],import.meta.url).then(({Workbox:m})=>new m("./sw.js",{scope:"./",type:"classic"})).catch(m=>{l==null||l(m)}),!u)return;u.addEventListener("activated",m=>{(m.isUpdate||m.isExternal)&&(n?n():window.location.reload())}),u.addEventListener("installed",m=>{m.isUpdate||i==null||i()}),u.register({immediate:t}).then(m=>{s?s("./sw.js",m):o==null||o(m)}).catch(m=>{l==null||l(m)})}}return f=d(),h}lce({immediate:!0});Vv.createRoot(document.getElementById("root")).render(O.jsx(I.StrictMode,{children:O.jsx(ice,{})}));
|