shlink-web-client/dependabot/npm_and_yarn/sass-1.82.0/assets/index-DcfpH8iM.js

840 lines
1.5 MiB
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

var sq=Object.defineProperty;var lq=(e,t,n)=>t in e?sq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ec=(e,t,n)=>lq(e,typeof t!="symbol"?t+"":t,n);function uq(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).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 Lv=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Nt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var i1={exports:{}},nh={},o1={exports:{}},Ct={};/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var q3;function cq(){if(q3)return Ct;q3=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.iterator;function v(z){return z===null||typeof z!="object"?null:(z=p&&z[p]||z["@@iterator"],typeof z=="function"?z:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,_={};function w(z,ne,X){this.props=z,this.context=ne,this.refs=_,this.updater=X||b}w.prototype.isReactComponent={},w.prototype.setState=function(z,ne){if(typeof z!="object"&&typeof z!="function"&&z!=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,z,ne,"setState")},w.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function O(){}O.prototype=w.prototype;function P(z,ne,X){this.props=z,this.context=ne,this.refs=_,this.updater=X||b}var E=P.prototype=new O;E.constructor=P,x(E,w.prototype),E.isPureReactComponent=!0;var T=Array.isArray,A=Object.prototype.hasOwnProperty,j={current:null},N={key:!0,ref:!0,__self:!0,__source:!0};function $(z,ne,X){var le,ce={},de=null,be=null;if(ne!=null)for(le in ne.ref!==void 0&&(be=ne.ref),ne.key!==void 0&&(de=""+ne.key),ne)A.call(ne,le)&&!N.hasOwnProperty(le)&&(ce[le]=ne[le]);var M=arguments.length-2;if(M===1)ce.children=X;else if(1<M){for(var D=Array(M),Y=0;Y<M;Y++)D[Y]=arguments[Y+2];ce.children=D}if(z&&z.defaultProps)for(le in M=z.defaultProps,M)ce[le]===void 0&&(ce[le]=M[le]);return{$$typeof:e,type:z,key:de,ref:be,props:ce,_owner:j.current}}function W(z,ne){return{$$typeof:e,type:z.type,key:ne,ref:z.ref,props:z.props,_owner:z._owner}}function B(z){return typeof z=="object"&&z!==null&&z.$$typeof===e}function V(z){var ne={"=":"=0",":":"=2"};return"$"+z.replace(/[=:]/g,function(X){return ne[X]})}var H=/\/+/g;function J(z,ne){return typeof z=="object"&&z!==null&&z.key!=null?V(""+z.key):ne.toString(36)}function Q(z,ne,X,le,ce){var de=typeof z;(de==="undefined"||de==="boolean")&&(z=null);var be=!1;if(z===null)be=!0;else switch(de){case"string":case"number":be=!0;break;case"object":switch(z.$$typeof){case e:case t:be=!0}}if(be)return be=z,ce=ce(be),z=le===""?"."+J(be,0):le,T(ce)?(X="",z!=null&&(X=z.replace(H,"$&/")+"/"),Q(ce,ne,X,"",function(Y){return Y})):ce!=null&&(B(ce)&&(ce=W(ce,X+(!ce.key||be&&be.key===ce.key?"":(""+ce.key).replace(H,"$&/")+"/")+z)),ne.push(ce)),1;if(be=0,le=le===""?".":le+":",T(z))for(var M=0;M<z.length;M++){de=z[M];var D=le+J(de,M);be+=Q(de,ne,X,D,ce)}else if(D=v(z),typeof D=="function")for(z=D.call(z),M=0;!(de=z.next()).done;)de=de.value,D=le+J(de,M++),be+=Q(de,ne,X,D,ce);else if(de==="object")throw ne=String(z),Error("Objects are not valid as a React child (found: "+(ne==="[object Object]"?"object with keys {"+Object.keys(z).join(", ")+"}":ne)+"). If you meant to render a collection of children, use an array instead.");return be}function re(z,ne,X){if(z==null)return z;var le=[],ce=0;return Q(z,le,"","",function(de){return ne.call(X,de,ce++)}),le}function ae(z){if(z._status===-1){var ne=z._result;ne=ne(),ne.then(function(X){(z._status===0||z._status===-1)&&(z._status=1,z._result=X)},function(X){(z._status===0||z._status===-1)&&(z._status=2,z._result=X)}),z._status===-1&&(z._status=0,z._result=ne)}if(z._status===1)return z._result.default;throw z._result}var se={current:null},oe={transition:null},K={ReactCurrentDispatcher:se,ReactCurrentBatchConfig:oe,ReactCurrentOwner:j};function G(){throw Error("act(...) is not supported in production builds of React.")}return Ct.Children={map:re,forEach:function(z,ne,X){re(z,function(){ne.apply(this,arguments)},X)},count:function(z){var ne=0;return re(z,function(){ne++}),ne},toArray:function(z){return re(z,function(ne){return ne})||[]},only:function(z){if(!B(z))throw Error("React.Children.only expected to receive a single React element child.");return z}},Ct.Component=w,Ct.Fragment=n,Ct.Profiler=i,Ct.PureComponent=P,Ct.StrictMode=r,Ct.Suspense=c,Ct.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=K,Ct.act=G,Ct.cloneElement=function(z,ne,X){if(z==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+z+".");var le=x({},z.props),ce=z.key,de=z.ref,be=z._owner;if(ne!=null){if(ne.ref!==void 0&&(de=ne.ref,be=j.current),ne.key!==void 0&&(ce=""+ne.key),z.type&&z.type.defaultProps)var M=z.type.defaultProps;for(D in ne)A.call(ne,D)&&!N.hasOwnProperty(D)&&(le[D]=ne[D]===void 0&&M!==void 0?M[D]:ne[D])}var D=arguments.length-2;if(D===1)le.children=X;else if(1<D){M=Array(D);for(var Y=0;Y<D;Y++)M[Y]=arguments[Y+2];le.children=M}return{$$typeof:e,type:z.type,key:ce,ref:de,props:le,_owner:be}},Ct.createContext=function(z){return z={$$typeof:a,_currentValue:z,_currentValue2:z,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},z.Provider={$$typeof:o,_context:z},z.Consumer=z},Ct.createElement=$,Ct.createFactory=function(z){var ne=$.bind(null,z);return ne.type=z,ne},Ct.createRef=function(){return{current:null}},Ct.forwardRef=function(z){return{$$typeof:s,render:z}},Ct.isValidElement=B,Ct.lazy=function(z){return{$$typeof:h,_payload:{_status:-1,_result:z},_init:ae}},Ct.memo=function(z,ne){return{$$typeof:u,type:z,compare:ne===void 0?null:ne}},Ct.startTransition=function(z){var ne=oe.transition;oe.transition={};try{z()}finally{oe.transition=ne}},Ct.unstable_act=G,Ct.useCallback=function(z,ne){return se.current.useCallback(z,ne)},Ct.useContext=function(z){return se.current.useContext(z)},Ct.useDebugValue=function(){},Ct.useDeferredValue=function(z){return se.current.useDeferredValue(z)},Ct.useEffect=function(z,ne){return se.current.useEffect(z,ne)},Ct.useId=function(){return se.current.useId()},Ct.useImperativeHandle=function(z,ne,X){return se.current.useImperativeHandle(z,ne,X)},Ct.useInsertionEffect=function(z,ne){return se.current.useInsertionEffect(z,ne)},Ct.useLayoutEffect=function(z,ne){return se.current.useLayoutEffect(z,ne)},Ct.useMemo=function(z,ne){return se.current.useMemo(z,ne)},Ct.useReducer=function(z,ne,X){return se.current.useReducer(z,ne,X)},Ct.useRef=function(z){return se.current.useRef(z)},Ct.useState=function(z){return se.current.useState(z)},Ct.useSyncExternalStore=function(z,ne,X){return se.current.useSyncExternalStore(z,ne,X)},Ct.useTransition=function(){return se.current.useTransition()},Ct.version="18.3.1",Ct}var H3;function x0(){return H3||(H3=1,o1.exports=cq()),o1.exports}/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var G3;function fq(){if(G3)return nh;G3=1;var e=x0(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function a(s,c,u){var h,p={},v=null,b=null;u!==void 0&&(v=""+u),c.key!==void 0&&(v=""+c.key),c.ref!==void 0&&(b=c.ref);for(h in c)r.call(c,h)&&!o.hasOwnProperty(h)&&(p[h]=c[h]);if(s&&s.defaultProps)for(h in c=s.defaultProps,c)p[h]===void 0&&(p[h]=c[h]);return{$$typeof:t,type:s,key:v,ref:b,props:p,_owner:i.current}}return nh.Fragment=n,nh.jsx=a,nh.jsxs=a,nh}var K3;function dq(){return K3||(K3=1,i1.exports=fq()),i1.exports}var g=dq(),Iv={},a1={exports:{}},zr={},s1={exports:{}},l1={};/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Y3;function hq(){return Y3||(Y3=1,function(e){function t(oe,K){var G=oe.length;oe.push(K);e:for(;0<G;){var z=G-1>>>1,ne=oe[z];if(0<i(ne,K))oe[z]=K,oe[G]=ne,G=z;else break e}}function n(oe){return oe.length===0?null:oe[0]}function r(oe){if(oe.length===0)return null;var K=oe[0],G=oe.pop();if(G!==K){oe[0]=G;e:for(var z=0,ne=oe.length,X=ne>>>1;z<X;){var le=2*(z+1)-1,ce=oe[le],de=le+1,be=oe[de];if(0>i(ce,G))de<ne&&0>i(be,ce)?(oe[z]=be,oe[de]=G,z=de):(oe[z]=ce,oe[le]=G,z=le);else if(de<ne&&0>i(be,G))oe[z]=be,oe[de]=G,z=de;else break e}}return K}function i(oe,K){var G=oe.sortIndex-K.sortIndex;return G!==0?G:oe.id-K.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var c=[],u=[],h=1,p=null,v=3,b=!1,x=!1,_=!1,w=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,P=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function E(oe){for(var K=n(u);K!==null;){if(K.callback===null)r(u);else if(K.startTime<=oe)r(u),K.sortIndex=K.expirationTime,t(c,K);else break;K=n(u)}}function T(oe){if(_=!1,E(oe),!x)if(n(c)!==null)x=!0,ae(A);else{var K=n(u);K!==null&&se(T,K.startTime-oe)}}function A(oe,K){x=!1,_&&(_=!1,O($),$=-1),b=!0;var G=v;try{for(E(K),p=n(c);p!==null&&(!(p.expirationTime>K)||oe&&!V());){var z=p.callback;if(typeof z=="function"){p.callback=null,v=p.priorityLevel;var ne=z(p.expirationTime<=K);K=e.unstable_now(),typeof ne=="function"?p.callback=ne:p===n(c)&&r(c),E(K)}else r(c);p=n(c)}if(p!==null)var X=!0;else{var le=n(u);le!==null&&se(T,le.startTime-K),X=!1}return X}finally{p=null,v=G,b=!1}}var j=!1,N=null,$=-1,W=5,B=-1;function V(){return!(e.unstable_now()-B<W)}function H(){if(N!==null){var oe=e.unstable_now();B=oe;var K=!0;try{K=N(!0,oe)}finally{K?J():(j=!1,N=null)}}else j=!1}var J;if(typeof P=="function")J=function(){P(H)};else if(typeof MessageChannel<"u"){var Q=new MessageChannel,re=Q.port2;Q.port1.onmessage=H,J=function(){re.postMessage(null)}}else J=function(){w(H,0)};function ae(oe){N=oe,j||(j=!0,J())}function se(oe,K){$=w(function(){oe(e.unstable_now())},K)}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(oe){oe.callback=null},e.unstable_continueExecution=function(){x||b||(x=!0,ae(A))},e.unstable_forceFrameRate=function(oe){0>oe||125<oe?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):W=0<oe?Math.floor(1e3/oe):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(oe){switch(v){case 1:case 2:case 3:var K=3;break;default:K=v}var G=v;v=K;try{return oe()}finally{v=G}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(oe,K){switch(oe){case 1:case 2:case 3:case 4:case 5:break;default:oe=3}var G=v;v=oe;try{return K()}finally{v=G}},e.unstable_scheduleCallback=function(oe,K,G){var z=e.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?z+G:z):G=z,oe){case 1:var ne=-1;break;case 2:ne=250;break;case 5:ne=1073741823;break;case 4:ne=1e4;break;default:ne=5e3}return ne=G+ne,oe={id:h++,callback:K,priorityLevel:oe,startTime:G,expirationTime:ne,sortIndex:-1},G>z?(oe.sortIndex=G,t(u,oe),n(c)===null&&oe===n(u)&&(_?(O($),$=-1):_=!0,se(T,G-z))):(oe.sortIndex=ne,t(c,oe),x||b||(x=!0,ae(A))),oe},e.unstable_shouldYield=V,e.unstable_wrapCallback=function(oe){var K=v;return function(){var G=v;v=K;try{return oe.apply(this,arguments)}finally{v=G}}}}(l1)),l1}var Z3;function pq(){return Z3||(Z3=1,s1.exports=hq()),s1.exports}/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var X3;function mq(){if(X3)return zr;X3=1;var e=x0(),t=pq();function n(l){for(var d="https://reactjs.org/docs/error-decoder.html?invariant="+l,y=1;y<arguments.length;y++)d+="&args[]="+encodeURIComponent(arguments[y]);return"Minified React error #"+l+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,i={};function o(l,d){a(l,d),a(l+"Capture",d)}function a(l,d){for(i[l]=d,l=0;l<d.length;l++)r.add(d[l])}var s=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),c=Object.prototype.hasOwnProperty,u=/^[: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]*$/,h={},p={};function v(l){return c.call(p,l)?!0:c.call(h,l)?!1:u.test(l)?p[l]=!0:(h[l]=!0,!1)}function b(l,d,y,C){if(y!==null&&y.type===0)return!1;switch(typeof d){case"function":case"symbol":return!0;case"boolean":return C?!1:y!==null?!y.acceptsBooleans:(l=l.toLowerCase().slice(0,5),l!=="data-"&&l!=="aria-");default:return!1}}function x(l,d,y,C){if(d===null||typeof d>"u"||b(l,d,y,C))return!0;if(C)return!1;if(y!==null)switch(y.type){case 3:return!d;case 4:return d===!1;case 5:return isNaN(d);case 6:return isNaN(d)||1>d}return!1}function _(l,d,y,C,R,I,ee){this.acceptsBooleans=d===2||d===3||d===4,this.attributeName=C,this.attributeNamespace=R,this.mustUseProperty=y,this.propertyName=l,this.type=d,this.sanitizeURL=I,this.removeEmptyString=ee}var w={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(l){w[l]=new _(l,0,!1,l,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(l){var d=l[0];w[d]=new _(d,1,!1,l[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(l){w[l]=new _(l,2,!1,l.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(l){w[l]=new _(l,2,!1,l,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(l){w[l]=new _(l,3,!1,l.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(l){w[l]=new _(l,3,!0,l,null,!1,!1)}),["capture","download"].forEach(function(l){w[l]=new _(l,4,!1,l,null,!1,!1)}),["cols","rows","size","span"].forEach(function(l){w[l]=new _(l,6,!1,l,null,!1,!1)}),["rowSpan","start"].forEach(function(l){w[l]=new _(l,5,!1,l.toLowerCase(),null,!1,!1)});var O=/[\-:]([a-z])/g;function P(l){return l[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(l){var d=l.replace(O,P);w[d]=new _(d,1,!1,l,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(l){var d=l.replace(O,P);w[d]=new _(d,1,!1,l,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(l){var d=l.replace(O,P);w[d]=new _(d,1,!1,l,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(l){w[l]=new _(l,1,!1,l.toLowerCase(),null,!1,!1)}),w.xlinkHref=new _("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(l){w[l]=new _(l,1,!1,l.toLowerCase(),null,!0,!0)});function E(l,d,y,C){var R=w.hasOwnProperty(d)?w[d]:null;(R!==null?R.type!==0:C||!(2<d.length)||d[0]!=="o"&&d[0]!=="O"||d[1]!=="n"&&d[1]!=="N")&&(x(d,y,R,C)&&(y=null),C||R===null?v(d)&&(y===null?l.removeAttribute(d):l.setAttribute(d,""+y)):R.mustUseProperty?l[R.propertyName]=y===null?R.type===3?!1:"":y:(d=R.attributeName,C=R.attributeNamespace,y===null?l.removeAttribute(d):(R=R.type,y=R===3||R===4&&y===!0?"":""+y,C?l.setAttributeNS(C,d,y):l.setAttribute(d,y))))}var T=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,A=Symbol.for("react.element"),j=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),$=Symbol.for("react.strict_mode"),W=Symbol.for("react.profiler"),B=Symbol.for("react.provider"),V=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),Q=Symbol.for("react.suspense_list"),re=Symbol.for("react.memo"),ae=Symbol.for("react.lazy"),se=Symbol.for("react.offscreen"),oe=Symbol.iterator;function K(l){return l===null||typeof l!="object"?null:(l=oe&&l[oe]||l["@@iterator"],typeof l=="function"?l:null)}var G=Object.assign,z;function ne(l){if(z===void 0)try{throw Error()}catch(y){var d=y.stack.trim().match(/\n( *(at )?)/);z=d&&d[1]||""}return`
`+z+l}var X=!1;function le(l,d){if(!l||X)return"";X=!0;var y=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(d)if(d=function(){throw Error()},Object.defineProperty(d.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(d,[])}catch(Ce){var C=Ce}Reflect.construct(l,[],d)}else{try{d.call()}catch(Ce){C=Ce}l.call(d.prototype)}else{try{throw Error()}catch(Ce){C=Ce}l()}}catch(Ce){if(Ce&&C&&typeof Ce.stack=="string"){for(var R=Ce.stack.split(`
`),I=C.stack.split(`
`),ee=R.length-1,fe=I.length-1;1<=ee&&0<=fe&&R[ee]!==I[fe];)fe--;for(;1<=ee&&0<=fe;ee--,fe--)if(R[ee]!==I[fe]){if(ee!==1||fe!==1)do if(ee--,fe--,0>fe||R[ee]!==I[fe]){var me=`
`+R[ee].replace(" at new "," at ");return l.displayName&&me.includes("<anonymous>")&&(me=me.replace("<anonymous>",l.displayName)),me}while(1<=ee&&0<=fe);break}}}finally{X=!1,Error.prepareStackTrace=y}return(l=l?l.displayName||l.name:"")?ne(l):""}function ce(l){switch(l.tag){case 5:return ne(l.type);case 16:return ne("Lazy");case 13:return ne("Suspense");case 19:return ne("SuspenseList");case 0:case 2:case 15:return l=le(l.type,!1),l;case 11:return l=le(l.type.render,!1),l;case 1:return l=le(l.type,!0),l;default:return""}}function de(l){if(l==null)return null;if(typeof l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case N:return"Fragment";case j:return"Portal";case W:return"Profiler";case $:return"StrictMode";case J:return"Suspense";case Q:return"SuspenseList"}if(typeof l=="object")switch(l.$$typeof){case V:return(l.displayName||"Context")+".Consumer";case B:return(l._context.displayName||"Context")+".Provider";case H:var d=l.render;return l=l.displayName,l||(l=d.displayName||d.name||"",l=l!==""?"ForwardRef("+l+")":"ForwardRef"),l;case re:return d=l.displayName||null,d!==null?d:de(l.type)||"Memo";case ae:d=l._payload,l=l._init;try{return de(l(d))}catch{}}return null}function be(l){var d=l.type;switch(l.tag){case 24:return"Cache";case 9:return(d.displayName||"Context")+".Consumer";case 10:return(d._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return l=d.render,l=l.displayName||l.name||"",d.displayName||(l!==""?"ForwardRef("+l+")":"ForwardRef");case 7:return"Fragment";case 5:return d;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return de(d);case 8:return d===$?"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 d=="function")return d.displayName||d.name||null;if(typeof d=="string")return d}return null}function M(l){switch(typeof l){case"boolean":case"number":case"string":case"undefined":return l;case"object":return l;default:return""}}function D(l){var d=l.type;return(l=l.nodeName)&&l.toLowerCase()==="input"&&(d==="checkbox"||d==="radio")}function Y(l){var d=D(l)?"checked":"value",y=Object.getOwnPropertyDescriptor(l.constructor.prototype,d),C=""+l[d];if(!l.hasOwnProperty(d)&&typeof y<"u"&&typeof y.get=="function"&&typeof y.set=="function"){var R=y.get,I=y.set;return Object.defineProperty(l,d,{configurable:!0,get:function(){return R.call(this)},set:function(ee){C=""+ee,I.call(this,ee)}}),Object.defineProperty(l,d,{enumerable:y.enumerable}),{getValue:function(){return C},setValue:function(ee){C=""+ee},stopTracking:function(){l._valueTracker=null,delete l[d]}}}}function ue(l){l._valueTracker||(l._valueTracker=Y(l))}function ie(l){if(!l)return!1;var d=l._valueTracker;if(!d)return!0;var y=d.getValue(),C="";return l&&(C=D(l)?l.checked?"true":"false":l.value),l=C,l!==y?(d.setValue(l),!0):!1}function he(l){if(l=l||(typeof document<"u"?document:void 0),typeof l>"u")return null;try{return l.activeElement||l.body}catch{return l.body}}function Se(l,d){var y=d.checked;return G({},d,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:y??l._wrapperState.initialChecked})}function Fe(l,d){var y=d.defaultValue==null?"":d.defaultValue,C=d.checked!=null?d.checked:d.defaultChecked;y=M(d.value!=null?d.value:y),l._wrapperState={initialChecked:C,initialValue:y,controlled:d.type==="checkbox"||d.type==="radio"?d.checked!=null:d.value!=null}}function ge(l,d){d=d.checked,d!=null&&E(l,"checked",d,!1)}function Ee(l,d){ge(l,d);var y=M(d.value),C=d.type;if(y!=null)C==="number"?(y===0&&l.value===""||l.value!=y)&&(l.value=""+y):l.value!==""+y&&(l.value=""+y);else if(C==="submit"||C==="reset"){l.removeAttribute("value");return}d.hasOwnProperty("value")?Me(l,d.type,y):d.hasOwnProperty("defaultValue")&&Me(l,d.type,M(d.defaultValue)),d.checked==null&&d.defaultChecked!=null&&(l.defaultChecked=!!d.defaultChecked)}function je(l,d,y){if(d.hasOwnProperty("value")||d.hasOwnProperty("defaultValue")){var C=d.type;if(!(C!=="submit"&&C!=="reset"||d.value!==void 0&&d.value!==null))return;d=""+l._wrapperState.initialValue,y||d===l.value||(l.value=d),l.defaultValue=d}y=l.name,y!==""&&(l.name=""),l.defaultChecked=!!l._wrapperState.initialChecked,y!==""&&(l.name=y)}function Me(l,d,y){(d!=="number"||he(l.ownerDocument)!==l)&&(y==null?l.defaultValue=""+l._wrapperState.initialValue:l.defaultValue!==""+y&&(l.defaultValue=""+y))}var He=Array.isArray;function Ue(l,d,y,C){if(l=l.options,d){d={};for(var R=0;R<y.length;R++)d["$"+y[R]]=!0;for(y=0;y<l.length;y++)R=d.hasOwnProperty("$"+l[y].value),l[y].selected!==R&&(l[y].selected=R),R&&C&&(l[y].defaultSelected=!0)}else{for(y=""+M(y),d=null,R=0;R<l.length;R++){if(l[R].value===y){l[R].selected=!0,C&&(l[R].defaultSelected=!0);return}d!==null||l[R].disabled||(d=l[R])}d!==null&&(d.selected=!0)}}function qe(l,d){if(d.dangerouslySetInnerHTML!=null)throw Error(n(91));return G({},d,{value:void 0,defaultValue:void 0,children:""+l._wrapperState.initialValue})}function ye(l,d){var y=d.value;if(y==null){if(y=d.children,d=d.defaultValue,y!=null){if(d!=null)throw Error(n(92));if(He(y)){if(1<y.length)throw Error(n(93));y=y[0]}d=y}d==null&&(d=""),y=d}l._wrapperState={initialValue:M(y)}}function we(l,d){var y=M(d.value),C=M(d.defaultValue);y!=null&&(y=""+y,y!==l.value&&(l.value=y),d.defaultValue==null&&l.defaultValue!==y&&(l.defaultValue=y)),C!=null&&(l.defaultValue=""+C)}function Ae(l){var d=l.textContent;d===l._wrapperState.initialValue&&d!==""&&d!==null&&(l.value=d)}function ke(l){switch(l){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 De(l,d){return l==null||l==="http://www.w3.org/1999/xhtml"?ke(d):l==="http://www.w3.org/2000/svg"&&d==="foreignObject"?"http://www.w3.org/1999/xhtml":l}var Ke,Xe=function(l){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(d,y,C,R){MSApp.execUnsafeLocalFunction(function(){return l(d,y,C,R)})}:l}(function(l,d){if(l.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in l)l.innerHTML=d;else{for(Ke=Ke||document.createElement("div"),Ke.innerHTML="<svg>"+d.valueOf().toString()+"</svg>",d=Ke.firstChild;l.firstChild;)l.removeChild(l.firstChild);for(;d.firstChild;)l.appendChild(d.firstChild)}});function bt(l,d){if(d){var y=l.firstChild;if(y&&y===l.lastChild&&y.nodeType===3){y.nodeValue=d;return}}l.textContent=d}var Ot={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},xt=["Webkit","ms","Moz","O"];Object.keys(Ot).forEach(function(l){xt.forEach(function(d){d=d+l.charAt(0).toUpperCase()+l.substring(1),Ot[d]=Ot[l]})});function en(l,d,y){return d==null||typeof d=="boolean"||d===""?"":y||typeof d!="number"||d===0||Ot.hasOwnProperty(l)&&Ot[l]?(""+d).trim():d+"px"}function Gt(l,d){l=l.style;for(var y in d)if(d.hasOwnProperty(y)){var C=y.indexOf("--")===0,R=en(y,d[y],C);y==="float"&&(y="cssFloat"),C?l.setProperty(y,R):l[y]=R}}var kn=G({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 Dn(l,d){if(d){if(kn[l]&&(d.children!=null||d.dangerouslySetInnerHTML!=null))throw Error(n(137,l));if(d.dangerouslySetInnerHTML!=null){if(d.children!=null)throw Error(n(60));if(typeof d.dangerouslySetInnerHTML!="object"||!("__html"in d.dangerouslySetInnerHTML))throw Error(n(61))}if(d.style!=null&&typeof d.style!="object")throw Error(n(62))}}function Nr(l,d){if(l.indexOf("-")===-1)return typeof d.is=="string";switch(l){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 En=null;function ua(l){return l=l.target||l.srcElement||window,l.correspondingUseElement&&(l=l.correspondingUseElement),l.nodeType===3?l.parentNode:l}var Mr=null,to=null,no=null;function xl(l){if(l=xa(l)){if(typeof Mr!="function")throw Error(n(280));var d=l.stateNode;d&&(d=dc(d),Mr(l.stateNode,l.type,d))}}function rs(l){to?no?no.push(l):no=[l]:to=l}function ko(){if(to){var l=to,d=no;if(no=to=null,xl(l),d)for(l=0;l<d.length;l++)xl(d[l])}}function hn(l,d){return l(d)}function sn(){}var $n=!1;function Rn(l,d,y){if($n)return l(d,y);$n=!0;try{return hn(l,d,y)}finally{$n=!1,(to!==null||no!==null)&&(sn(),ko())}}function pn(l,d){var y=l.stateNode;if(y===null)return null;var C=dc(y);if(C===null)return null;y=C[d];e:switch(d){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(C=!C.disabled)||(l=l.type,C=!(l==="button"||l==="input"||l==="select"||l==="textarea")),l=!C;break e;default:l=!1}if(l)return null;if(y&&typeof y!="function")throw Error(n(231,d,typeof y));return y}var mn=!1;if(s)try{var nr={};Object.defineProperty(nr,"passive",{get:function(){mn=!0}}),window.addEventListener("test",nr,nr),window.removeEventListener("test",nr,nr)}catch{mn=!1}function Qr(l,d,y,C,R,I,ee,fe,me){var Ce=Array.prototype.slice.call(arguments,3);try{d.apply(y,Ce)}catch(Ie){this.onError(Ie)}}var vn=!1,rt=null,wl=!1,Uu=null,wm={onError:function(l){vn=!0,rt=l}};function Om(l,d,y,C,R,I,ee,fe,me){vn=!1,rt=null,Qr.apply(wm,arguments)}function hd(l,d,y,C,R,I,ee,fe,me){if(Om.apply(this,arguments),vn){if(vn){var Ce=rt;vn=!1,rt=null}else throw Error(n(198));wl||(wl=!0,Uu=Ce)}}function Ro(l){var d=l,y=l;if(l.alternate)for(;d.return;)d=d.return;else{l=d;do d=l,d.flags&4098&&(y=d.return),l=d.return;while(l)}return d.tag===3?y:null}function ca(l){if(l.tag===13){var d=l.memoizedState;if(d===null&&(l=l.alternate,l!==null&&(d=l.memoizedState)),d!==null)return d.dehydrated}return null}function pd(l){if(Ro(l)!==l)throw Error(n(188))}function Ib(l){var d=l.alternate;if(!d){if(d=Ro(l),d===null)throw Error(n(188));return d!==l?null:l}for(var y=l,C=d;;){var R=y.return;if(R===null)break;var I=R.alternate;if(I===null){if(C=R.return,C!==null){y=C;continue}break}if(R.child===I.child){for(I=R.child;I;){if(I===y)return pd(R),l;if(I===C)return pd(R),d;I=I.sibling}throw Error(n(188))}if(y.return!==C.return)y=R,C=I;else{for(var ee=!1,fe=R.child;fe;){if(fe===y){ee=!0,y=R,C=I;break}if(fe===C){ee=!0,C=R,y=I;break}fe=fe.sibling}if(!ee){for(fe=I.child;fe;){if(fe===y){ee=!0,y=I,C=R;break}if(fe===C){ee=!0,C=I,y=R;break}fe=fe.sibling}if(!ee)throw Error(n(189))}}if(y.alternate!==C)throw Error(n(190))}if(y.tag!==3)throw Error(n(188));return y.stateNode.current===y?l:d}function Sm(l){return l=Ib(l),l!==null?Pm(l):null}function Pm(l){if(l.tag===5||l.tag===6)return l;for(l=l.child;l!==null;){var d=Pm(l);if(d!==null)return d;l=l.sibling}return null}var Cm=t.unstable_scheduleCallback,md=t.unstable_cancelCallback,Db=t.unstable_shouldYield,zu=t.unstable_requestPaint,gn=t.unstable_now,$b=t.unstable_getCurrentPriorityLevel,vd=t.unstable_ImmediatePriority,Em=t.unstable_UserBlockingPriority,Vu=t.unstable_NormalPriority,gd=t.unstable_LowPriority,is=t.unstable_IdlePriority,Ol=null,Jr=null;function Sl(l){if(Jr&&typeof Jr.onCommitFiberRoot=="function")try{Jr.onCommitFiberRoot(Ol,l,void 0,(l.current.flags&128)===128)}catch{}}var wt=Math.clz32?Math.clz32:os,tn=Math.log,Wu=Math.LN2;function os(l){return l>>>=0,l===0?32:31-(tn(l)/Wu|0)|0}var ro=64,as=4194304;function gt(l){switch(l&-l){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 l&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return l&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return l}}function Kt(l,d){var y=l.pendingLanes;if(y===0)return 0;var C=0,R=l.suspendedLanes,I=l.pingedLanes,ee=y&268435455;if(ee!==0){var fe=ee&~R;fe!==0?C=gt(fe):(I&=ee,I!==0&&(C=gt(I)))}else ee=y&~R,ee!==0?C=gt(ee):I!==0&&(C=gt(I));if(C===0)return 0;if(d!==0&&d!==C&&!(d&R)&&(R=C&-C,I=d&-d,R>=I||R===16&&(I&4194240)!==0))return d;if(C&4&&(C|=y&16),d=l.entangledLanes,d!==0)for(l=l.entanglements,d&=C;0<d;)y=31-wt(d),R=1<<y,C|=l[y],d&=~R;return C}function yd(l,d){switch(l){case 1:case 2:case 4:return d+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 d+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 qu(l,d){for(var y=l.suspendedLanes,C=l.pingedLanes,R=l.expirationTimes,I=l.pendingLanes;0<I;){var ee=31-wt(I),fe=1<<ee,me=R[ee];me===-1?(!(fe&y)||fe&C)&&(R[ee]=yd(fe,d)):me<=d&&(l.expiredLanes|=fe),I&=~fe}}function lr(l){return l=l.pendingLanes&-1073741825,l!==0?l:l&1073741824?1073741824:0}function Tm(){var l=ro;return ro<<=1,!(ro&4194240)&&(ro=64),l}function ss(l){for(var d=[],y=0;31>y;y++)d.push(l);return d}function ei(l,d,y){l.pendingLanes|=d,d!==536870912&&(l.suspendedLanes=0,l.pingedLanes=0),l=l.eventTimes,d=31-wt(d),l[d]=y}function On(l,d){var y=l.pendingLanes&~d;l.pendingLanes=d,l.suspendedLanes=0,l.pingedLanes=0,l.expiredLanes&=d,l.mutableReadLanes&=d,l.entangledLanes&=d,d=l.entanglements;var C=l.eventTimes;for(l=l.expirationTimes;0<y;){var R=31-wt(y),I=1<<R;d[R]=0,C[R]=-1,l[R]=-1,y&=~I}}function io(l,d){var y=l.entangledLanes|=d;for(l=l.entanglements;y;){var C=31-wt(y),R=1<<C;R&d|l[C]&d&&(l[C]|=d),y&=~R}}var kt=0;function ls(l){return l&=-l,1<l?4<l?l&268435455?16:536870912:4:1}var Hu,fa,Gu,Ku,Pl,Cl=!1,us=[],ti=null,oo=null,Pi=null,El=new Map,ht=new Map,Fn=[],Ut="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 bd(l,d){switch(l){case"focusin":case"focusout":ti=null;break;case"dragenter":case"dragleave":oo=null;break;case"mouseover":case"mouseout":Pi=null;break;case"pointerover":case"pointerout":El.delete(d.pointerId);break;case"gotpointercapture":case"lostpointercapture":ht.delete(d.pointerId)}}function da(l,d,y,C,R,I){return l===null||l.nativeEvent!==I?(l={blockedOn:d,domEventName:y,eventSystemFlags:C,nativeEvent:I,targetContainers:[R]},d!==null&&(d=xa(d),d!==null&&fa(d)),l):(l.eventSystemFlags|=C,d=l.targetContainers,R!==null&&d.indexOf(R)===-1&&d.push(R),l)}function _d(l,d,y,C,R){switch(d){case"focusin":return ti=da(ti,l,d,y,C,R),!0;case"dragenter":return oo=da(oo,l,d,y,C,R),!0;case"mouseover":return Pi=da(Pi,l,d,y,C,R),!0;case"pointerover":var I=R.pointerId;return El.set(I,da(El.get(I)||null,l,d,y,C,R)),!0;case"gotpointercapture":return I=R.pointerId,ht.set(I,da(ht.get(I)||null,l,d,y,C,R)),!0}return!1}function Yu(l){var d=_a(l.target);if(d!==null){var y=Ro(d);if(y!==null){if(d=y.tag,d===13){if(d=ca(y),d!==null){l.blockedOn=d,Pl(l.priority,function(){Gu(y)});return}}else if(d===3&&y.stateNode.current.memoizedState.isDehydrated){l.blockedOn=y.tag===3?y.stateNode.containerInfo:null;return}}}l.blockedOn=null}function Ci(l){if(l.blockedOn!==null)return!1;for(var d=l.targetContainers;0<d.length;){var y=Qu(l.domEventName,l.eventSystemFlags,d[0],l.nativeEvent);if(y===null){y=l.nativeEvent;var C=new y.constructor(y.type,y);En=C,y.target.dispatchEvent(C),En=null}else return d=xa(y),d!==null&&fa(d),l.blockedOn=y,!1;d.shift()}return!0}function Zu(l,d,y){Ci(l)&&y.delete(d)}function Tl(){Cl=!1,ti!==null&&Ci(ti)&&(ti=null),oo!==null&&Ci(oo)&&(oo=null),Pi!==null&&Ci(Pi)&&(Pi=null),El.forEach(Zu),ht.forEach(Zu)}function yn(l,d){l.blockedOn===d&&(l.blockedOn=null,Cl||(Cl=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Tl)))}function ni(l){function d(R){return yn(R,l)}if(0<us.length){yn(us[0],l);for(var y=1;y<us.length;y++){var C=us[y];C.blockedOn===l&&(C.blockedOn=null)}}for(ti!==null&&yn(ti,l),oo!==null&&yn(oo,l),Pi!==null&&yn(Pi,l),El.forEach(d),ht.forEach(d),y=0;y<Fn.length;y++)C=Fn[y],C.blockedOn===l&&(C.blockedOn=null);for(;0<Fn.length&&(y=Fn[0],y.blockedOn===null);)Yu(y),y.blockedOn===null&&Fn.shift()}var ha=T.ReactCurrentBatchConfig,jl=!0;function Fb(l,d,y,C){var R=kt,I=ha.transition;ha.transition=null;try{kt=1,Al(l,d,y,C)}finally{kt=R,ha.transition=I}}function jm(l,d,y,C){var R=kt,I=ha.transition;ha.transition=null;try{kt=4,Al(l,d,y,C)}finally{kt=R,ha.transition=I}}function Al(l,d,y,C){if(jl){var R=Qu(l,d,y,C);if(R===null)f(l,d,C,Xu,y),bd(l,C);else if(_d(R,l,d,y,C))C.stopPropagation();else if(bd(l,C),d&4&&-1<Ut.indexOf(l)){for(;R!==null;){var I=xa(R);if(I!==null&&Hu(I),I=Qu(l,d,y,C),I===null&&f(l,d,C,Xu,y),I===R)break;R=I}R!==null&&C.stopPropagation()}else f(l,d,C,null,y)}}var Xu=null;function Qu(l,d,y,C){if(Xu=null,l=ua(C),l=_a(l),l!==null)if(d=Ro(l),d===null)l=null;else if(y=d.tag,y===13){if(l=ca(d),l!==null)return l;l=null}else if(y===3){if(d.stateNode.current.memoizedState.isDehydrated)return d.tag===3?d.stateNode.containerInfo:null;l=null}else d!==l&&(l=null);return Xu=l,null}function Et(l){switch(l){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($b()){case vd:return 1;case Em:return 4;case Vu:case gd:return 16;case is:return 536870912;default:return 16}default:return 16}}var No=null,yr=null,Mo=null;function xd(){if(Mo)return Mo;var l,d=yr,y=d.length,C,R="value"in No?No.value:No.textContent,I=R.length;for(l=0;l<y&&d[l]===R[l];l++);var ee=y-l;for(C=1;C<=ee&&d[y-C]===R[I-C];C++);return Mo=R.slice(l,1<C?1-C:void 0)}function Ju(l){var d=l.keyCode;return"charCode"in l?(l=l.charCode,l===0&&d===13&&(l=13)):l=d,l===10&&(l=13),32<=l||l===13?l:0}function cs(){return!0}function Am(){return!1}function ur(l){function d(y,C,R,I,ee){this._reactName=y,this._targetInst=R,this.type=C,this.nativeEvent=I,this.target=ee,this.currentTarget=null;for(var fe in l)l.hasOwnProperty(fe)&&(y=l[fe],this[fe]=y?y(I):I[fe]);return this.isDefaultPrevented=(I.defaultPrevented!=null?I.defaultPrevented:I.returnValue===!1)?cs:Am,this.isPropagationStopped=Am,this}return G(d.prototype,{preventDefault:function(){this.defaultPrevented=!0;var y=this.nativeEvent;y&&(y.preventDefault?y.preventDefault():typeof y.returnValue!="unknown"&&(y.returnValue=!1),this.isDefaultPrevented=cs)},stopPropagation:function(){var y=this.nativeEvent;y&&(y.stopPropagation?y.stopPropagation():typeof y.cancelBubble!="unknown"&&(y.cancelBubble=!0),this.isPropagationStopped=cs)},persist:function(){},isPersistent:cs}),d}var fs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(l){return l.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wd=ur(fs),pa=G({},fs,{view:0,detail:0}),Bb=ur(pa),Lr,Od,ds,ri=G({},pa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:va,button:0,buttons:0,relatedTarget:function(l){return l.relatedTarget===void 0?l.fromElement===l.srcElement?l.toElement:l.fromElement:l.relatedTarget},movementX:function(l){return"movementX"in l?l.movementX:(l!==ds&&(ds&&l.type==="mousemove"?(Lr=l.screenX-ds.screenX,Od=l.screenY-ds.screenY):Od=Lr=0,ds=l),Lr)},movementY:function(l){return"movementY"in l?l.movementY:Od}}),Sd=ur(ri),km=G({},ri,{dataTransfer:0}),Pd=ur(km),Ub=G({},pa,{relatedTarget:0}),ec=ur(Ub),Rm=G({},fs,{animationName:0,elapsedTime:0,pseudoElement:0}),zb=ur(Rm),Vb=G({},fs,{clipboardData:function(l){return"clipboardData"in l?l.clipboardData:window.clipboardData}}),Cd=ur(Vb),Wb=G({},fs,{data:0}),Ed=ur(Wb),Nm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},tc={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"},ma={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function qb(l){var d=this.nativeEvent;return d.getModifierState?d.getModifierState(l):(l=ma[l])?!!d[l]:!1}function va(){return qb}var Ir=G({},pa,{key:function(l){if(l.key){var d=Nm[l.key]||l.key;if(d!=="Unidentified")return d}return l.type==="keypress"?(l=Ju(l),l===13?"Enter":String.fromCharCode(l)):l.type==="keydown"||l.type==="keyup"?tc[l.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:va,charCode:function(l){return l.type==="keypress"?Ju(l):0},keyCode:function(l){return l.type==="keydown"||l.type==="keyup"?l.keyCode:0},which:function(l){return l.type==="keypress"?Ju(l):l.type==="keydown"||l.type==="keyup"?l.keyCode:0}}),Mm=ur(Ir),Lm=G({},ri,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Im=ur(Lm),Td=G({},pa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:va}),jd=ur(Td),Hb=G({},fs,{propertyName:0,elapsedTime:0,pseudoElement:0}),Gb=ur(Hb),Dm=G({},ri,{deltaX:function(l){return"deltaX"in l?l.deltaX:"wheelDeltaX"in l?-l.wheelDeltaX:0},deltaY:function(l){return"deltaY"in l?l.deltaY:"wheelDeltaY"in l?-l.wheelDeltaY:"wheelDelta"in l?-l.wheelDelta:0},deltaZ:0,deltaMode:0}),Kb=ur(Dm),ii=[9,13,27,32],Lo=s&&"CompositionEvent"in window,kl=null;s&&"documentMode"in document&&(kl=document.documentMode);var ao=s&&"TextEvent"in window&&!kl,$m=s&&(!Lo||kl&&8<kl&&11>=kl),ga=" ",Fm=!1;function hs(l,d){switch(l){case"keyup":return ii.indexOf(d.keyCode)!==-1;case"keydown":return d.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ad(l){return l=l.detail,typeof l=="object"&&"data"in l?l.data:null}var so=!1;function Yb(l,d){switch(l){case"compositionend":return Ad(d);case"keypress":return d.which!==32?null:(Fm=!0,ga);case"textInput":return l=d.data,l===ga&&Fm?null:l;default:return null}}function Io(l,d){if(so)return l==="compositionend"||!Lo&&hs(l,d)?(l=xd(),Mo=yr=No=null,so=!1,l):null;switch(l){case"paste":return null;case"keypress":if(!(d.ctrlKey||d.altKey||d.metaKey)||d.ctrlKey&&d.altKey){if(d.char&&1<d.char.length)return d.char;if(d.which)return String.fromCharCode(d.which)}return null;case"compositionend":return $m&&d.locale!=="ko"?null:d.data;default:return null}}var nc={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 Bm(l){var d=l&&l.nodeName&&l.nodeName.toLowerCase();return d==="input"?!!nc[l.type]:d==="textarea"}function rc(l,d,y,C){rs(C),d=S(d,"onChange"),0<d.length&&(y=new wd("onChange","change",null,y,C),l.push({event:y,listeners:d}))}var Rl=null,br=null;function Zb(l){Fd(l,0)}function lo(l){var d=wa(l);if(ie(d))return l}function Xb(l,d){if(l==="change")return d}var Ei=!1;if(s){var ps;if(s){var ic="oninput"in document;if(!ic){var oc=document.createElement("div");oc.setAttribute("oninput","return;"),ic=typeof oc.oninput=="function"}ps=ic}else ps=!1;Ei=ps&&(!document.documentMode||9<document.documentMode)}function Nl(){Rl&&(Rl.detachEvent("onpropertychange",ac),br=Rl=null)}function ac(l){if(l.propertyName==="value"&&lo(br)){var d=[];rc(d,br,l,ua(l)),Rn(Zb,d)}}function sc(l,d,y){l==="focusin"?(Nl(),Rl=d,br=y,Rl.attachEvent("onpropertychange",ac)):l==="focusout"&&Nl()}function ms(l){if(l==="selectionchange"||l==="keyup"||l==="keydown")return lo(br)}function lc(l,d){if(l==="click")return lo(d)}function kd(l,d){if(l==="input"||l==="change")return lo(d)}function Um(l,d){return l===d&&(l!==0||1/l===1/d)||l!==l&&d!==d}var oi=typeof Object.is=="function"?Object.is:Um;function Do(l,d){if(oi(l,d))return!0;if(typeof l!="object"||l===null||typeof d!="object"||d===null)return!1;var y=Object.keys(l),C=Object.keys(d);if(y.length!==C.length)return!1;for(C=0;C<y.length;C++){var R=y[C];if(!c.call(d,R)||!oi(l[R],d[R]))return!1}return!0}function zm(l){for(;l&&l.firstChild;)l=l.firstChild;return l}function Rd(l,d){var y=zm(l);l=0;for(var C;y;){if(y.nodeType===3){if(C=l+y.textContent.length,l<=d&&C>=d)return{node:y,offset:d-l};l=C}e:{for(;y;){if(y.nextSibling){y=y.nextSibling;break e}y=y.parentNode}y=void 0}y=zm(y)}}function Vm(l,d){return l&&d?l===d?!0:l&&l.nodeType===3?!1:d&&d.nodeType===3?Vm(l,d.parentNode):"contains"in l?l.contains(d):l.compareDocumentPosition?!!(l.compareDocumentPosition(d)&16):!1:!1}function Nd(){for(var l=window,d=he();d instanceof l.HTMLIFrameElement;){try{var y=typeof d.contentWindow.location.href=="string"}catch{y=!1}if(y)l=d.contentWindow;else break;d=he(l.document)}return d}function Md(l){var d=l&&l.nodeName&&l.nodeName.toLowerCase();return d&&(d==="input"&&(l.type==="text"||l.type==="search"||l.type==="tel"||l.type==="url"||l.type==="password")||d==="textarea"||l.contentEditable==="true")}function Ti(l){var d=Nd(),y=l.focusedElem,C=l.selectionRange;if(d!==y&&y&&y.ownerDocument&&Vm(y.ownerDocument.documentElement,y)){if(C!==null&&Md(y)){if(d=C.start,l=C.end,l===void 0&&(l=d),"selectionStart"in y)y.selectionStart=d,y.selectionEnd=Math.min(l,y.value.length);else if(l=(d=y.ownerDocument||document)&&d.defaultView||window,l.getSelection){l=l.getSelection();var R=y.textContent.length,I=Math.min(C.start,R);C=C.end===void 0?I:Math.min(C.end,R),!l.extend&&I>C&&(R=C,C=I,I=R),R=Rd(y,I);var ee=Rd(y,C);R&&ee&&(l.rangeCount!==1||l.anchorNode!==R.node||l.anchorOffset!==R.offset||l.focusNode!==ee.node||l.focusOffset!==ee.offset)&&(d=d.createRange(),d.setStart(R.node,R.offset),l.removeAllRanges(),I>C?(l.addRange(d),l.extend(ee.node,ee.offset)):(d.setEnd(ee.node,ee.offset),l.addRange(d)))}}for(d=[],l=y;l=l.parentNode;)l.nodeType===1&&d.push({element:l,left:l.scrollLeft,top:l.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<d.length;y++)l=d[y],l.element.scrollLeft=l.left,l.element.scrollTop=l.top}}var uc=s&&"documentMode"in document&&11>=document.documentMode,vs=null,gs=null,Ml=null,cc=!1;function Wm(l,d,y){var C=y.window===y?y.document:y.nodeType===9?y:y.ownerDocument;cc||vs==null||vs!==he(C)||(C=vs,"selectionStart"in C&&Md(C)?C={start:C.selectionStart,end:C.selectionEnd}:(C=(C.ownerDocument&&C.ownerDocument.defaultView||window).getSelection(),C={anchorNode:C.anchorNode,anchorOffset:C.anchorOffset,focusNode:C.focusNode,focusOffset:C.focusOffset}),Ml&&Do(Ml,C)||(Ml=C,C=S(gs,"onSelect"),0<C.length&&(d=new wd("onSelect","select",null,d,y),l.push({event:d,listeners:C}),d.target=vs)))}function $o(l,d){var y={};return y[l.toLowerCase()]=d.toLowerCase(),y["Webkit"+l]="webkit"+d,y["Moz"+l]="moz"+d,y}var ys={animationend:$o("Animation","AnimationEnd"),animationiteration:$o("Animation","AnimationIteration"),animationstart:$o("Animation","AnimationStart"),transitionend:$o("Transition","TransitionEnd")},Fo={},Ld={};s&&(Ld=document.createElement("div").style,"AnimationEvent"in window||(delete ys.animationend.animation,delete ys.animationiteration.animation,delete ys.animationstart.animation),"TransitionEvent"in window||delete ys.transitionend.transition);function Ll(l){if(Fo[l])return Fo[l];if(!ys[l])return l;var d=ys[l],y;for(y in d)if(d.hasOwnProperty(y)&&y in Ld)return Fo[l]=d[y];return l}var qm=Ll("animationend"),ji=Ll("animationiteration"),Id=Ll("animationstart"),Dd=Ll("transitionend"),bs=new Map,Hm="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 ai(l,d){bs.set(l,d),o(d,[l])}for(var ya=0;ya<Hm.length;ya++){var fc=Hm[ya],Gm=fc.toLowerCase(),Qb=fc[0].toUpperCase()+fc.slice(1);ai(Gm,"on"+Qb)}ai(qm,"onAnimationEnd"),ai(ji,"onAnimationIteration"),ai(Id,"onAnimationStart"),ai("dblclick","onDoubleClick"),ai("focusin","onFocus"),ai("focusout","onBlur"),ai(Dd,"onTransitionEnd"),a("onMouseEnter",["mouseout","mouseover"]),a("onMouseLeave",["mouseout","mouseover"]),a("onPointerEnter",["pointerout","pointerover"]),a("onPointerLeave",["pointerout","pointerover"]),o("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),o("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),o("onBeforeInput",["compositionend","keypress","textInput","paste"]),o("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _s="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(" "),Km=new Set("cancel close invalid load scroll toggle".split(" ").concat(_s));function $d(l,d,y){var C=l.type||"unknown-event";l.currentTarget=y,hd(C,d,void 0,l),l.currentTarget=null}function Fd(l,d){d=(d&4)!==0;for(var y=0;y<l.length;y++){var C=l[y],R=C.event;C=C.listeners;e:{var I=void 0;if(d)for(var ee=C.length-1;0<=ee;ee--){var fe=C[ee],me=fe.instance,Ce=fe.currentTarget;if(fe=fe.listener,me!==I&&R.isPropagationStopped())break e;$d(R,fe,Ce),I=me}else for(ee=0;ee<C.length;ee++){if(fe=C[ee],me=fe.instance,Ce=fe.currentTarget,fe=fe.listener,me!==I&&R.isPropagationStopped())break e;$d(R,fe,Ce),I=me}}}if(wl)throw l=Uu,wl=!1,Uu=null,l}function zt(l,d){var y=d[Ss];y===void 0&&(y=d[Ss]=new Set);var C=l+"__bubble";y.has(C)||(Ym(d,l,2,!1),y.add(C))}function Bd(l,d,y){var C=0;d&&(C|=4),Ym(y,l,C,d)}var Il="_reactListening"+Math.random().toString(36).slice(2);function xs(l){if(!l[Il]){l[Il]=!0,r.forEach(function(y){y!=="selectionchange"&&(Km.has(y)||Bd(y,!1,l),Bd(y,!0,l))});var d=l.nodeType===9?l:l.ownerDocument;d===null||d[Il]||(d[Il]=!0,Bd("selectionchange",!1,d))}}function Ym(l,d,y,C){switch(Et(d)){case 1:var R=Fb;break;case 4:R=jm;break;default:R=Al}y=R.bind(null,d,y,l),R=void 0,!mn||d!=="touchstart"&&d!=="touchmove"&&d!=="wheel"||(R=!0),C?R!==void 0?l.addEventListener(d,y,{capture:!0,passive:R}):l.addEventListener(d,y,!0):R!==void 0?l.addEventListener(d,y,{passive:R}):l.addEventListener(d,y,!1)}function f(l,d,y,C,R){var I=C;if(!(d&1)&&!(d&2)&&C!==null)e:for(;;){if(C===null)return;var ee=C.tag;if(ee===3||ee===4){var fe=C.stateNode.containerInfo;if(fe===R||fe.nodeType===8&&fe.parentNode===R)break;if(ee===4)for(ee=C.return;ee!==null;){var me=ee.tag;if((me===3||me===4)&&(me=ee.stateNode.containerInfo,me===R||me.nodeType===8&&me.parentNode===R))return;ee=ee.return}for(;fe!==null;){if(ee=_a(fe),ee===null)return;if(me=ee.tag,me===5||me===6){C=I=ee;continue e}fe=fe.parentNode}}C=C.return}Rn(function(){var Ce=I,Ie=ua(y),$e=[];e:{var Le=bs.get(l);if(Le!==void 0){var Qe=wd,tt=l;switch(l){case"keypress":if(Ju(y)===0)break e;case"keydown":case"keyup":Qe=Mm;break;case"focusin":tt="focus",Qe=ec;break;case"focusout":tt="blur",Qe=ec;break;case"beforeblur":case"afterblur":Qe=ec;break;case"click":if(y.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Qe=Sd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Qe=Pd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Qe=jd;break;case qm:case ji:case Id:Qe=zb;break;case Dd:Qe=Gb;break;case"scroll":Qe=Bb;break;case"wheel":Qe=Kb;break;case"copy":case"cut":case"paste":Qe=Cd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Qe=Im}var nt=(d&4)!==0,Tn=!nt&&l==="scroll",xe=nt?Le!==null?Le+"Capture":null:Le;nt=[];for(var ve=Ce,Oe;ve!==null;){Oe=ve;var We=Oe.stateNode;if(Oe.tag===5&&We!==null&&(Oe=We,xe!==null&&(We=pn(ve,xe),We!=null&&nt.push(m(ve,We,Oe)))),Tn)break;ve=ve.return}0<nt.length&&(Le=new Qe(Le,tt,null,y,Ie),$e.push({event:Le,listeners:nt}))}}if(!(d&7)){e:{if(Le=l==="mouseover"||l==="pointerover",Qe=l==="mouseout"||l==="pointerout",Le&&y!==En&&(tt=y.relatedTarget||y.fromElement)&&(_a(tt)||tt[Dt]))break e;if((Qe||Le)&&(Le=Ie.window===Ie?Ie:(Le=Ie.ownerDocument)?Le.defaultView||Le.parentWindow:window,Qe?(tt=y.relatedTarget||y.toElement,Qe=Ce,tt=tt?_a(tt):null,tt!==null&&(Tn=Ro(tt),tt!==Tn||tt.tag!==5&&tt.tag!==6)&&(tt=null)):(Qe=null,tt=Ce),Qe!==tt)){if(nt=Sd,We="onMouseLeave",xe="onMouseEnter",ve="mouse",(l==="pointerout"||l==="pointerover")&&(nt=Im,We="onPointerLeave",xe="onPointerEnter",ve="pointer"),Tn=Qe==null?Le:wa(Qe),Oe=tt==null?Le:wa(tt),Le=new nt(We,ve+"leave",Qe,y,Ie),Le.target=Tn,Le.relatedTarget=Oe,We=null,_a(Ie)===Ce&&(nt=new nt(xe,ve+"enter",tt,y,Ie),nt.target=Oe,nt.relatedTarget=Tn,We=nt),Tn=We,Qe&&tt)t:{for(nt=Qe,xe=tt,ve=0,Oe=nt;Oe;Oe=k(Oe))ve++;for(Oe=0,We=xe;We;We=k(We))Oe++;for(;0<ve-Oe;)nt=k(nt),ve--;for(;0<Oe-ve;)xe=k(xe),Oe--;for(;ve--;){if(nt===xe||xe!==null&&nt===xe.alternate)break t;nt=k(nt),xe=k(xe)}nt=null}else nt=null;Qe!==null&&U($e,Le,Qe,nt,!1),tt!==null&&Tn!==null&&U($e,Tn,tt,nt,!0)}}e:{if(Le=Ce?wa(Ce):window,Qe=Le.nodeName&&Le.nodeName.toLowerCase(),Qe==="select"||Qe==="input"&&Le.type==="file")var ot=Xb;else if(Bm(Le))if(Ei)ot=kd;else{ot=ms;var lt=sc}else(Qe=Le.nodeName)&&Qe.toLowerCase()==="input"&&(Le.type==="checkbox"||Le.type==="radio")&&(ot=lc);if(ot&&(ot=ot(l,Ce))){rc($e,ot,y,Ie);break e}lt&&lt(l,Le,Ce),l==="focusout"&&(lt=Le._wrapperState)&&lt.controlled&&Le.type==="number"&&Me(Le,"number",Le.value)}switch(lt=Ce?wa(Ce):window,l){case"focusin":(Bm(lt)||lt.contentEditable==="true")&&(vs=lt,gs=Ce,Ml=null);break;case"focusout":Ml=gs=vs=null;break;case"mousedown":cc=!0;break;case"contextmenu":case"mouseup":case"dragend":cc=!1,Wm($e,y,Ie);break;case"selectionchange":if(uc)break;case"keydown":case"keyup":Wm($e,y,Ie)}var ut;if(Lo)e:{switch(l){case"compositionstart":var vt="onCompositionStart";break e;case"compositionend":vt="onCompositionEnd";break e;case"compositionupdate":vt="onCompositionUpdate";break e}vt=void 0}else so?hs(l,y)&&(vt="onCompositionEnd"):l==="keydown"&&y.keyCode===229&&(vt="onCompositionStart");vt&&($m&&y.locale!=="ko"&&(so||vt!=="onCompositionStart"?vt==="onCompositionEnd"&&so&&(ut=xd()):(No=Ie,yr="value"in No?No.value:No.textContent,so=!0)),lt=S(Ce,vt),0<lt.length&&(vt=new Ed(vt,l,null,y,Ie),$e.push({event:vt,listeners:lt}),ut?vt.data=ut:(ut=Ad(y),ut!==null&&(vt.data=ut)))),(ut=ao?Yb(l,y):Io(l,y))&&(Ce=S(Ce,"onBeforeInput"),0<Ce.length&&(Ie=new Ed("onBeforeInput","beforeinput",null,y,Ie),$e.push({event:Ie,listeners:Ce}),Ie.data=ut))}Fd($e,d)})}function m(l,d,y){return{instance:l,listener:d,currentTarget:y}}function S(l,d){for(var y=d+"Capture",C=[];l!==null;){var R=l,I=R.stateNode;R.tag===5&&I!==null&&(R=I,I=pn(l,y),I!=null&&C.unshift(m(l,I,R)),I=pn(l,d),I!=null&&C.push(m(l,I,R))),l=l.return}return C}function k(l){if(l===null)return null;do l=l.return;while(l&&l.tag!==5);return l||null}function U(l,d,y,C,R){for(var I=d._reactName,ee=[];y!==null&&y!==C;){var fe=y,me=fe.alternate,Ce=fe.stateNode;if(me!==null&&me===C)break;fe.tag===5&&Ce!==null&&(fe=Ce,R?(me=pn(y,I),me!=null&&ee.unshift(m(y,me,fe))):R||(me=pn(y,I),me!=null&&ee.push(m(y,me,fe)))),y=y.return}ee.length!==0&&l.push({event:d,listeners:ee})}var te=/\r\n?/g,pe=/\u0000|\uFFFD/g;function _e(l){return(typeof l=="string"?l:""+l).replace(te,`
`).replace(pe,"")}function Pe(l,d,y){if(d=_e(d),_e(l)!==d&&y)throw Error(n(425))}function Re(){}var Ze=null,st=null;function St(l,d){return l==="textarea"||l==="noscript"||typeof d.children=="string"||typeof d.children=="number"||typeof d.dangerouslySetInnerHTML=="object"&&d.dangerouslySetInnerHTML!==null&&d.dangerouslySetInnerHTML.__html!=null}var Bn=typeof setTimeout=="function"?setTimeout:void 0,Nn=typeof clearTimeout=="function"?clearTimeout:void 0,_r=typeof Promise=="function"?Promise:void 0,cr=typeof queueMicrotask=="function"?queueMicrotask:typeof _r<"u"?function(l){return _r.resolve(null).then(l).catch(ws)}:Bn;function ws(l){setTimeout(function(){throw l})}function Ud(l,d){var y=d,C=0;do{var R=y.nextSibling;if(l.removeChild(y),R&&R.nodeType===8)if(y=R.data,y==="/$"){if(C===0){l.removeChild(R),ni(d);return}C--}else y!=="$"&&y!=="$?"&&y!=="$!"||C++;y=R}while(y);ni(d)}function Bo(l){for(;l!=null;l=l.nextSibling){var d=l.nodeType;if(d===1||d===3)break;if(d===8){if(d=l.data,d==="$"||d==="$!"||d==="$?")break;if(d==="/$")return null}}return l}function Zm(l){l=l.previousSibling;for(var d=0;l;){if(l.nodeType===8){var y=l.data;if(y==="$"||y==="$!"||y==="$?"){if(d===0)return l;d--}else y==="/$"&&d++}l=l.previousSibling}return null}var ba=Math.random().toString(36).slice(2),Ai="__reactFiber$"+ba,Os="__reactProps$"+ba,Dt="__reactContainer$"+ba,Ss="__reactEvents$"+ba,Jb="__reactListeners$"+ba,e_="__reactHandles$"+ba;function _a(l){var d=l[Ai];if(d)return d;for(var y=l.parentNode;y;){if(d=y[Dt]||y[Ai]){if(y=d.alternate,d.child!==null||y!==null&&y.child!==null)for(l=Zm(l);l!==null;){if(y=l[Ai])return y;l=Zm(l)}return d}l=y,y=l.parentNode}return null}function xa(l){return l=l[Ai]||l[Dt],!l||l.tag!==5&&l.tag!==6&&l.tag!==13&&l.tag!==3?null:l}function wa(l){if(l.tag===5||l.tag===6)return l.stateNode;throw Error(n(33))}function dc(l){return l[Os]||null}var t_=[],hc=-1;function Ps(l){return{current:l}}function nn(l){0>hc||(l.current=t_[hc],t_[hc]=null,hc--)}function Yt(l,d){hc++,t_[hc]=l.current,l.current=d}var Cs={},fr=Ps(Cs),Dr=Ps(!1),Dl=Cs;function pc(l,d){var y=l.type.contextTypes;if(!y)return Cs;var C=l.stateNode;if(C&&C.__reactInternalMemoizedUnmaskedChildContext===d)return C.__reactInternalMemoizedMaskedChildContext;var R={},I;for(I in y)R[I]=d[I];return C&&(l=l.stateNode,l.__reactInternalMemoizedUnmaskedChildContext=d,l.__reactInternalMemoizedMaskedChildContext=R),R}function $r(l){return l=l.childContextTypes,l!=null}function Xm(){nn(Dr),nn(fr)}function hA(l,d,y){if(fr.current!==Cs)throw Error(n(168));Yt(fr,d),Yt(Dr,y)}function pA(l,d,y){var C=l.stateNode;if(d=d.childContextTypes,typeof C.getChildContext!="function")return y;C=C.getChildContext();for(var R in C)if(!(R in d))throw Error(n(108,be(l)||"Unknown",R));return G({},y,C)}function Qm(l){return l=(l=l.stateNode)&&l.__reactInternalMemoizedMergedChildContext||Cs,Dl=fr.current,Yt(fr,l),Yt(Dr,Dr.current),!0}function mA(l,d,y){var C=l.stateNode;if(!C)throw Error(n(169));y?(l=pA(l,d,Dl),C.__reactInternalMemoizedMergedChildContext=l,nn(Dr),nn(fr),Yt(fr,l)):nn(Dr),Yt(Dr,y)}var Oa=null,Jm=!1,n_=!1;function vA(l){Oa===null?Oa=[l]:Oa.push(l)}function CW(l){Jm=!0,vA(l)}function Es(){if(!n_&&Oa!==null){n_=!0;var l=0,d=kt;try{var y=Oa;for(kt=1;l<y.length;l++){var C=y[l];do C=C(!0);while(C!==null)}Oa=null,Jm=!1}catch(R){throw Oa!==null&&(Oa=Oa.slice(l+1)),Cm(vd,Es),R}finally{kt=d,n_=!1}}return null}var mc=[],vc=0,ev=null,tv=0,ki=[],Ri=0,$l=null,Sa=1,Pa="";function Fl(l,d){mc[vc++]=tv,mc[vc++]=ev,ev=l,tv=d}function gA(l,d,y){ki[Ri++]=Sa,ki[Ri++]=Pa,ki[Ri++]=$l,$l=l;var C=Sa;l=Pa;var R=32-wt(C)-1;C&=~(1<<R),y+=1;var I=32-wt(d)+R;if(30<I){var ee=R-R%5;I=(C&(1<<ee)-1).toString(32),C>>=ee,R-=ee,Sa=1<<32-wt(d)+R|y<<R|C,Pa=I+l}else Sa=1<<I|y<<R|C,Pa=l}function r_(l){l.return!==null&&(Fl(l,1),gA(l,1,0))}function i_(l){for(;l===ev;)ev=mc[--vc],mc[vc]=null,tv=mc[--vc],mc[vc]=null;for(;l===$l;)$l=ki[--Ri],ki[Ri]=null,Pa=ki[--Ri],ki[Ri]=null,Sa=ki[--Ri],ki[Ri]=null}var si=null,li=null,ln=!1,uo=null;function yA(l,d){var y=Ii(5,null,null,0);y.elementType="DELETED",y.stateNode=d,y.return=l,d=l.deletions,d===null?(l.deletions=[y],l.flags|=16):d.push(y)}function bA(l,d){switch(l.tag){case 5:var y=l.type;return d=d.nodeType!==1||y.toLowerCase()!==d.nodeName.toLowerCase()?null:d,d!==null?(l.stateNode=d,si=l,li=Bo(d.firstChild),!0):!1;case 6:return d=l.pendingProps===""||d.nodeType!==3?null:d,d!==null?(l.stateNode=d,si=l,li=null,!0):!1;case 13:return d=d.nodeType!==8?null:d,d!==null?(y=$l!==null?{id:Sa,overflow:Pa}:null,l.memoizedState={dehydrated:d,treeContext:y,retryLane:1073741824},y=Ii(18,null,null,0),y.stateNode=d,y.return=l,l.child=y,si=l,li=null,!0):!1;default:return!1}}function o_(l){return(l.mode&1)!==0&&(l.flags&128)===0}function a_(l){if(ln){var d=li;if(d){var y=d;if(!bA(l,d)){if(o_(l))throw Error(n(418));d=Bo(y.nextSibling);var C=si;d&&bA(l,d)?yA(C,y):(l.flags=l.flags&-4097|2,ln=!1,si=l)}}else{if(o_(l))throw Error(n(418));l.flags=l.flags&-4097|2,ln=!1,si=l}}}function _A(l){for(l=l.return;l!==null&&l.tag!==5&&l.tag!==3&&l.tag!==13;)l=l.return;si=l}function nv(l){if(l!==si)return!1;if(!ln)return _A(l),ln=!0,!1;var d;if((d=l.tag!==3)&&!(d=l.tag!==5)&&(d=l.type,d=d!=="head"&&d!=="body"&&!St(l.type,l.memoizedProps)),d&&(d=li)){if(o_(l))throw xA(),Error(n(418));for(;d;)yA(l,d),d=Bo(d.nextSibling)}if(_A(l),l.tag===13){if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(n(317));e:{for(l=l.nextSibling,d=0;l;){if(l.nodeType===8){var y=l.data;if(y==="/$"){if(d===0){li=Bo(l.nextSibling);break e}d--}else y!=="$"&&y!=="$!"&&y!=="$?"||d++}l=l.nextSibling}li=null}}else li=si?Bo(l.stateNode.nextSibling):null;return!0}function xA(){for(var l=li;l;)l=Bo(l.nextSibling)}function gc(){li=si=null,ln=!1}function s_(l){uo===null?uo=[l]:uo.push(l)}var EW=T.ReactCurrentBatchConfig;function zd(l,d,y){if(l=y.ref,l!==null&&typeof l!="function"&&typeof l!="object"){if(y._owner){if(y=y._owner,y){if(y.tag!==1)throw Error(n(309));var C=y.stateNode}if(!C)throw Error(n(147,l));var R=C,I=""+l;return d!==null&&d.ref!==null&&typeof d.ref=="function"&&d.ref._stringRef===I?d.ref:(d=function(ee){var fe=R.refs;ee===null?delete fe[I]:fe[I]=ee},d._stringRef=I,d)}if(typeof l!="string")throw Error(n(284));if(!y._owner)throw Error(n(290,l))}return l}function rv(l,d){throw l=Object.prototype.toString.call(d),Error(n(31,l==="[object Object]"?"object with keys {"+Object.keys(d).join(", ")+"}":l))}function wA(l){var d=l._init;return d(l._payload)}function OA(l){function d(xe,ve){if(l){var Oe=xe.deletions;Oe===null?(xe.deletions=[ve],xe.flags|=16):Oe.push(ve)}}function y(xe,ve){if(!l)return null;for(;ve!==null;)d(xe,ve),ve=ve.sibling;return null}function C(xe,ve){for(xe=new Map;ve!==null;)ve.key!==null?xe.set(ve.key,ve):xe.set(ve.index,ve),ve=ve.sibling;return xe}function R(xe,ve){return xe=Ls(xe,ve),xe.index=0,xe.sibling=null,xe}function I(xe,ve,Oe){return xe.index=Oe,l?(Oe=xe.alternate,Oe!==null?(Oe=Oe.index,Oe<ve?(xe.flags|=2,ve):Oe):(xe.flags|=2,ve)):(xe.flags|=1048576,ve)}function ee(xe){return l&&xe.alternate===null&&(xe.flags|=2),xe}function fe(xe,ve,Oe,We){return ve===null||ve.tag!==6?(ve=Q_(Oe,xe.mode,We),ve.return=xe,ve):(ve=R(ve,Oe),ve.return=xe,ve)}function me(xe,ve,Oe,We){var ot=Oe.type;return ot===N?Ie(xe,ve,Oe.props.children,We,Oe.key):ve!==null&&(ve.elementType===ot||typeof ot=="object"&&ot!==null&&ot.$$typeof===ae&&wA(ot)===ve.type)?(We=R(ve,Oe.props),We.ref=zd(xe,ve,Oe),We.return=xe,We):(We=Ev(Oe.type,Oe.key,Oe.props,null,xe.mode,We),We.ref=zd(xe,ve,Oe),We.return=xe,We)}function Ce(xe,ve,Oe,We){return ve===null||ve.tag!==4||ve.stateNode.containerInfo!==Oe.containerInfo||ve.stateNode.implementation!==Oe.implementation?(ve=J_(Oe,xe.mode,We),ve.return=xe,ve):(ve=R(ve,Oe.children||[]),ve.return=xe,ve)}function Ie(xe,ve,Oe,We,ot){return ve===null||ve.tag!==7?(ve=Gl(Oe,xe.mode,We,ot),ve.return=xe,ve):(ve=R(ve,Oe),ve.return=xe,ve)}function $e(xe,ve,Oe){if(typeof ve=="string"&&ve!==""||typeof ve=="number")return ve=Q_(""+ve,xe.mode,Oe),ve.return=xe,ve;if(typeof ve=="object"&&ve!==null){switch(ve.$$typeof){case A:return Oe=Ev(ve.type,ve.key,ve.props,null,xe.mode,Oe),Oe.ref=zd(xe,null,ve),Oe.return=xe,Oe;case j:return ve=J_(ve,xe.mode,Oe),ve.return=xe,ve;case ae:var We=ve._init;return $e(xe,We(ve._payload),Oe)}if(He(ve)||K(ve))return ve=Gl(ve,xe.mode,Oe,null),ve.return=xe,ve;rv(xe,ve)}return null}function Le(xe,ve,Oe,We){var ot=ve!==null?ve.key:null;if(typeof Oe=="string"&&Oe!==""||typeof Oe=="number")return ot!==null?null:fe(xe,ve,""+Oe,We);if(typeof Oe=="object"&&Oe!==null){switch(Oe.$$typeof){case A:return Oe.key===ot?me(xe,ve,Oe,We):null;case j:return Oe.key===ot?Ce(xe,ve,Oe,We):null;case ae:return ot=Oe._init,Le(xe,ve,ot(Oe._payload),We)}if(He(Oe)||K(Oe))return ot!==null?null:Ie(xe,ve,Oe,We,null);rv(xe,Oe)}return null}function Qe(xe,ve,Oe,We,ot){if(typeof We=="string"&&We!==""||typeof We=="number")return xe=xe.get(Oe)||null,fe(ve,xe,""+We,ot);if(typeof We=="object"&&We!==null){switch(We.$$typeof){case A:return xe=xe.get(We.key===null?Oe:We.key)||null,me(ve,xe,We,ot);case j:return xe=xe.get(We.key===null?Oe:We.key)||null,Ce(ve,xe,We,ot);case ae:var lt=We._init;return Qe(xe,ve,Oe,lt(We._payload),ot)}if(He(We)||K(We))return xe=xe.get(Oe)||null,Ie(ve,xe,We,ot,null);rv(ve,We)}return null}function tt(xe,ve,Oe,We){for(var ot=null,lt=null,ut=ve,vt=ve=0,Yn=null;ut!==null&&vt<Oe.length;vt++){ut.index>vt?(Yn=ut,ut=null):Yn=ut.sibling;var Lt=Le(xe,ut,Oe[vt],We);if(Lt===null){ut===null&&(ut=Yn);break}l&&ut&&Lt.alternate===null&&d(xe,ut),ve=I(Lt,ve,vt),lt===null?ot=Lt:lt.sibling=Lt,lt=Lt,ut=Yn}if(vt===Oe.length)return y(xe,ut),ln&&Fl(xe,vt),ot;if(ut===null){for(;vt<Oe.length;vt++)ut=$e(xe,Oe[vt],We),ut!==null&&(ve=I(ut,ve,vt),lt===null?ot=ut:lt.sibling=ut,lt=ut);return ln&&Fl(xe,vt),ot}for(ut=C(xe,ut);vt<Oe.length;vt++)Yn=Qe(ut,xe,vt,Oe[vt],We),Yn!==null&&(l&&Yn.alternate!==null&&ut.delete(Yn.key===null?vt:Yn.key),ve=I(Yn,ve,vt),lt===null?ot=Yn:lt.sibling=Yn,lt=Yn);return l&&ut.forEach(function(Is){return d(xe,Is)}),ln&&Fl(xe,vt),ot}function nt(xe,ve,Oe,We){var ot=K(Oe);if(typeof ot!="function")throw Error(n(150));if(Oe=ot.call(Oe),Oe==null)throw Error(n(151));for(var lt=ot=null,ut=ve,vt=ve=0,Yn=null,Lt=Oe.next();ut!==null&&!Lt.done;vt++,Lt=Oe.next()){ut.index>vt?(Yn=ut,ut=null):Yn=ut.sibling;var Is=Le(xe,ut,Lt.value,We);if(Is===null){ut===null&&(ut=Yn);break}l&&ut&&Is.alternate===null&&d(xe,ut),ve=I(Is,ve,vt),lt===null?ot=Is:lt.sibling=Is,lt=Is,ut=Yn}if(Lt.done)return y(xe,ut),ln&&Fl(xe,vt),ot;if(ut===null){for(;!Lt.done;vt++,Lt=Oe.next())Lt=$e(xe,Lt.value,We),Lt!==null&&(ve=I(Lt,ve,vt),lt===null?ot=Lt:lt.sibling=Lt,lt=Lt);return ln&&Fl(xe,vt),ot}for(ut=C(xe,ut);!Lt.done;vt++,Lt=Oe.next())Lt=Qe(ut,xe,vt,Lt.value,We),Lt!==null&&(l&&Lt.alternate!==null&&ut.delete(Lt.key===null?vt:Lt.key),ve=I(Lt,ve,vt),lt===null?ot=Lt:lt.sibling=Lt,lt=Lt);return l&&ut.forEach(function(aq){return d(xe,aq)}),ln&&Fl(xe,vt),ot}function Tn(xe,ve,Oe,We){if(typeof Oe=="object"&&Oe!==null&&Oe.type===N&&Oe.key===null&&(Oe=Oe.props.children),typeof Oe=="object"&&Oe!==null){switch(Oe.$$typeof){case A:e:{for(var ot=Oe.key,lt=ve;lt!==null;){if(lt.key===ot){if(ot=Oe.type,ot===N){if(lt.tag===7){y(xe,lt.sibling),ve=R(lt,Oe.props.children),ve.return=xe,xe=ve;break e}}else if(lt.elementType===ot||typeof ot=="object"&&ot!==null&&ot.$$typeof===ae&&wA(ot)===lt.type){y(xe,lt.sibling),ve=R(lt,Oe.props),ve.ref=zd(xe,lt,Oe),ve.return=xe,xe=ve;break e}y(xe,lt);break}else d(xe,lt);lt=lt.sibling}Oe.type===N?(ve=Gl(Oe.props.children,xe.mode,We,Oe.key),ve.return=xe,xe=ve):(We=Ev(Oe.type,Oe.key,Oe.props,null,xe.mode,We),We.ref=zd(xe,ve,Oe),We.return=xe,xe=We)}return ee(xe);case j:e:{for(lt=Oe.key;ve!==null;){if(ve.key===lt)if(ve.tag===4&&ve.stateNode.containerInfo===Oe.containerInfo&&ve.stateNode.implementation===Oe.implementation){y(xe,ve.sibling),ve=R(ve,Oe.children||[]),ve.return=xe,xe=ve;break e}else{y(xe,ve);break}else d(xe,ve);ve=ve.sibling}ve=J_(Oe,xe.mode,We),ve.return=xe,xe=ve}return ee(xe);case ae:return lt=Oe._init,Tn(xe,ve,lt(Oe._payload),We)}if(He(Oe))return tt(xe,ve,Oe,We);if(K(Oe))return nt(xe,ve,Oe,We);rv(xe,Oe)}return typeof Oe=="string"&&Oe!==""||typeof Oe=="number"?(Oe=""+Oe,ve!==null&&ve.tag===6?(y(xe,ve.sibling),ve=R(ve,Oe),ve.return=xe,xe=ve):(y(xe,ve),ve=Q_(Oe,xe.mode,We),ve.return=xe,xe=ve),ee(xe)):y(xe,ve)}return Tn}var yc=OA(!0),SA=OA(!1),iv=Ps(null),ov=null,bc=null,l_=null;function u_(){l_=bc=ov=null}function c_(l){var d=iv.current;nn(iv),l._currentValue=d}function f_(l,d,y){for(;l!==null;){var C=l.alternate;if((l.childLanes&d)!==d?(l.childLanes|=d,C!==null&&(C.childLanes|=d)):C!==null&&(C.childLanes&d)!==d&&(C.childLanes|=d),l===y)break;l=l.return}}function _c(l,d){ov=l,l_=bc=null,l=l.dependencies,l!==null&&l.firstContext!==null&&(l.lanes&d&&(Fr=!0),l.firstContext=null)}function Ni(l){var d=l._currentValue;if(l_!==l)if(l={context:l,memoizedValue:d,next:null},bc===null){if(ov===null)throw Error(n(308));bc=l,ov.dependencies={lanes:0,firstContext:l}}else bc=bc.next=l;return d}var Bl=null;function d_(l){Bl===null?Bl=[l]:Bl.push(l)}function PA(l,d,y,C){var R=d.interleaved;return R===null?(y.next=y,d_(d)):(y.next=R.next,R.next=y),d.interleaved=y,Ca(l,C)}function Ca(l,d){l.lanes|=d;var y=l.alternate;for(y!==null&&(y.lanes|=d),y=l,l=l.return;l!==null;)l.childLanes|=d,y=l.alternate,y!==null&&(y.childLanes|=d),y=l,l=l.return;return y.tag===3?y.stateNode:null}var Ts=!1;function h_(l){l.updateQueue={baseState:l.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function CA(l,d){l=l.updateQueue,d.updateQueue===l&&(d.updateQueue={baseState:l.baseState,firstBaseUpdate:l.firstBaseUpdate,lastBaseUpdate:l.lastBaseUpdate,shared:l.shared,effects:l.effects})}function Ea(l,d){return{eventTime:l,lane:d,tag:0,payload:null,callback:null,next:null}}function js(l,d,y){var C=l.updateQueue;if(C===null)return null;if(C=C.shared,Mt&2){var R=C.pending;return R===null?d.next=d:(d.next=R.next,R.next=d),C.pending=d,Ca(l,y)}return R=C.interleaved,R===null?(d.next=d,d_(C)):(d.next=R.next,R.next=d),C.interleaved=d,Ca(l,y)}function av(l,d,y){if(d=d.updateQueue,d!==null&&(d=d.shared,(y&4194240)!==0)){var C=d.lanes;C&=l.pendingLanes,y|=C,d.lanes=y,io(l,y)}}function EA(l,d){var y=l.updateQueue,C=l.alternate;if(C!==null&&(C=C.updateQueue,y===C)){var R=null,I=null;if(y=y.firstBaseUpdate,y!==null){do{var ee={eventTime:y.eventTime,lane:y.lane,tag:y.tag,payload:y.payload,callback:y.callback,next:null};I===null?R=I=ee:I=I.next=ee,y=y.next}while(y!==null);I===null?R=I=d:I=I.next=d}else R=I=d;y={baseState:C.baseState,firstBaseUpdate:R,lastBaseUpdate:I,shared:C.shared,effects:C.effects},l.updateQueue=y;return}l=y.lastBaseUpdate,l===null?y.firstBaseUpdate=d:l.next=d,y.lastBaseUpdate=d}function sv(l,d,y,C){var R=l.updateQueue;Ts=!1;var I=R.firstBaseUpdate,ee=R.lastBaseUpdate,fe=R.shared.pending;if(fe!==null){R.shared.pending=null;var me=fe,Ce=me.next;me.next=null,ee===null?I=Ce:ee.next=Ce,ee=me;var Ie=l.alternate;Ie!==null&&(Ie=Ie.updateQueue,fe=Ie.lastBaseUpdate,fe!==ee&&(fe===null?Ie.firstBaseUpdate=Ce:fe.next=Ce,Ie.lastBaseUpdate=me))}if(I!==null){var $e=R.baseState;ee=0,Ie=Ce=me=null,fe=I;do{var Le=fe.lane,Qe=fe.eventTime;if((C&Le)===Le){Ie!==null&&(Ie=Ie.next={eventTime:Qe,lane:0,tag:fe.tag,payload:fe.payload,callback:fe.callback,next:null});e:{var tt=l,nt=fe;switch(Le=d,Qe=y,nt.tag){case 1:if(tt=nt.payload,typeof tt=="function"){$e=tt.call(Qe,$e,Le);break e}$e=tt;break e;case 3:tt.flags=tt.flags&-65537|128;case 0:if(tt=nt.payload,Le=typeof tt=="function"?tt.call(Qe,$e,Le):tt,Le==null)break e;$e=G({},$e,Le);break e;case 2:Ts=!0}}fe.callback!==null&&fe.lane!==0&&(l.flags|=64,Le=R.effects,Le===null?R.effects=[fe]:Le.push(fe))}else Qe={eventTime:Qe,lane:Le,tag:fe.tag,payload:fe.payload,callback:fe.callback,next:null},Ie===null?(Ce=Ie=Qe,me=$e):Ie=Ie.next=Qe,ee|=Le;if(fe=fe.next,fe===null){if(fe=R.shared.pending,fe===null)break;Le=fe,fe=Le.next,Le.next=null,R.lastBaseUpdate=Le,R.shared.pending=null}}while(!0);if(Ie===null&&(me=$e),R.baseState=me,R.firstBaseUpdate=Ce,R.lastBaseUpdate=Ie,d=R.shared.interleaved,d!==null){R=d;do ee|=R.lane,R=R.next;while(R!==d)}else I===null&&(R.shared.lanes=0);Vl|=ee,l.lanes=ee,l.memoizedState=$e}}function TA(l,d,y){if(l=d.effects,d.effects=null,l!==null)for(d=0;d<l.length;d++){var C=l[d],R=C.callback;if(R!==null){if(C.callback=null,C=y,typeof R!="function")throw Error(n(191,R));R.call(C)}}}var Vd={},Uo=Ps(Vd),Wd=Ps(Vd),qd=Ps(Vd);function Ul(l){if(l===Vd)throw Error(n(174));return l}function p_(l,d){switch(Yt(qd,d),Yt(Wd,l),Yt(Uo,Vd),l=d.nodeType,l){case 9:case 11:d=(d=d.documentElement)?d.namespaceURI:De(null,"");break;default:l=l===8?d.parentNode:d,d=l.namespaceURI||null,l=l.tagName,d=De(d,l)}nn(Uo),Yt(Uo,d)}function xc(){nn(Uo),nn(Wd),nn(qd)}function jA(l){Ul(qd.current);var d=Ul(Uo.current),y=De(d,l.type);d!==y&&(Yt(Wd,l),Yt(Uo,y))}function m_(l){Wd.current===l&&(nn(Uo),nn(Wd))}var bn=Ps(0);function lv(l){for(var d=l;d!==null;){if(d.tag===13){var y=d.memoizedState;if(y!==null&&(y=y.dehydrated,y===null||y.data==="$?"||y.data==="$!"))return d}else if(d.tag===19&&d.memoizedProps.revealOrder!==void 0){if(d.flags&128)return d}else if(d.child!==null){d.child.return=d,d=d.child;continue}if(d===l)break;for(;d.sibling===null;){if(d.return===null||d.return===l)return null;d=d.return}d.sibling.return=d.return,d=d.sibling}return null}var v_=[];function g_(){for(var l=0;l<v_.length;l++)v_[l]._workInProgressVersionPrimary=null;v_.length=0}var uv=T.ReactCurrentDispatcher,y_=T.ReactCurrentBatchConfig,zl=0,_n=null,Un=null,Gn=null,cv=!1,Hd=!1,Gd=0,TW=0;function dr(){throw Error(n(321))}function b_(l,d){if(d===null)return!1;for(var y=0;y<d.length&&y<l.length;y++)if(!oi(l[y],d[y]))return!1;return!0}function __(l,d,y,C,R,I){if(zl=I,_n=d,d.memoizedState=null,d.updateQueue=null,d.lanes=0,uv.current=l===null||l.memoizedState===null?RW:NW,l=y(C,R),Hd){I=0;do{if(Hd=!1,Gd=0,25<=I)throw Error(n(301));I+=1,Gn=Un=null,d.updateQueue=null,uv.current=MW,l=y(C,R)}while(Hd)}if(uv.current=hv,d=Un!==null&&Un.next!==null,zl=0,Gn=Un=_n=null,cv=!1,d)throw Error(n(300));return l}function x_(){var l=Gd!==0;return Gd=0,l}function zo(){var l={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Gn===null?_n.memoizedState=Gn=l:Gn=Gn.next=l,Gn}function Mi(){if(Un===null){var l=_n.alternate;l=l!==null?l.memoizedState:null}else l=Un.next;var d=Gn===null?_n.memoizedState:Gn.next;if(d!==null)Gn=d,Un=l;else{if(l===null)throw Error(n(310));Un=l,l={memoizedState:Un.memoizedState,baseState:Un.baseState,baseQueue:Un.baseQueue,queue:Un.queue,next:null},Gn===null?_n.memoizedState=Gn=l:Gn=Gn.next=l}return Gn}function Kd(l,d){return typeof d=="function"?d(l):d}function w_(l){var d=Mi(),y=d.queue;if(y===null)throw Error(n(311));y.lastRenderedReducer=l;var C=Un,R=C.baseQueue,I=y.pending;if(I!==null){if(R!==null){var ee=R.next;R.next=I.next,I.next=ee}C.baseQueue=R=I,y.pending=null}if(R!==null){I=R.next,C=C.baseState;var fe=ee=null,me=null,Ce=I;do{var Ie=Ce.lane;if((zl&Ie)===Ie)me!==null&&(me=me.next={lane:0,action:Ce.action,hasEagerState:Ce.hasEagerState,eagerState:Ce.eagerState,next:null}),C=Ce.hasEagerState?Ce.eagerState:l(C,Ce.action);else{var $e={lane:Ie,action:Ce.action,hasEagerState:Ce.hasEagerState,eagerState:Ce.eagerState,next:null};me===null?(fe=me=$e,ee=C):me=me.next=$e,_n.lanes|=Ie,Vl|=Ie}Ce=Ce.next}while(Ce!==null&&Ce!==I);me===null?ee=C:me.next=fe,oi(C,d.memoizedState)||(Fr=!0),d.memoizedState=C,d.baseState=ee,d.baseQueue=me,y.lastRenderedState=C}if(l=y.interleaved,l!==null){R=l;do I=R.lane,_n.lanes|=I,Vl|=I,R=R.next;while(R!==l)}else R===null&&(y.lanes=0);return[d.memoizedState,y.dispatch]}function O_(l){var d=Mi(),y=d.queue;if(y===null)throw Error(n(311));y.lastRenderedReducer=l;var C=y.dispatch,R=y.pending,I=d.memoizedState;if(R!==null){y.pending=null;var ee=R=R.next;do I=l(I,ee.action),ee=ee.next;while(ee!==R);oi(I,d.memoizedState)||(Fr=!0),d.memoizedState=I,d.baseQueue===null&&(d.baseState=I),y.lastRenderedState=I}return[I,C]}function AA(){}function kA(l,d){var y=_n,C=Mi(),R=d(),I=!oi(C.memoizedState,R);if(I&&(C.memoizedState=R,Fr=!0),C=C.queue,S_(MA.bind(null,y,C,l),[l]),C.getSnapshot!==d||I||Gn!==null&&Gn.memoizedState.tag&1){if(y.flags|=2048,Yd(9,NA.bind(null,y,C,R,d),void 0,null),Kn===null)throw Error(n(349));zl&30||RA(y,d,R)}return R}function RA(l,d,y){l.flags|=16384,l={getSnapshot:d,value:y},d=_n.updateQueue,d===null?(d={lastEffect:null,stores:null},_n.updateQueue=d,d.stores=[l]):(y=d.stores,y===null?d.stores=[l]:y.push(l))}function NA(l,d,y,C){d.value=y,d.getSnapshot=C,LA(d)&&IA(l)}function MA(l,d,y){return y(function(){LA(d)&&IA(l)})}function LA(l){var d=l.getSnapshot;l=l.value;try{var y=d();return!oi(l,y)}catch{return!0}}function IA(l){var d=Ca(l,1);d!==null&&po(d,l,1,-1)}function DA(l){var d=zo();return typeof l=="function"&&(l=l()),d.memoizedState=d.baseState=l,l={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Kd,lastRenderedState:l},d.queue=l,l=l.dispatch=kW.bind(null,_n,l),[d.memoizedState,l]}function Yd(l,d,y,C){return l={tag:l,create:d,destroy:y,deps:C,next:null},d=_n.updateQueue,d===null?(d={lastEffect:null,stores:null},_n.updateQueue=d,d.lastEffect=l.next=l):(y=d.lastEffect,y===null?d.lastEffect=l.next=l:(C=y.next,y.next=l,l.next=C,d.lastEffect=l)),l}function $A(){return Mi().memoizedState}function fv(l,d,y,C){var R=zo();_n.flags|=l,R.memoizedState=Yd(1|d,y,void 0,C===void 0?null:C)}function dv(l,d,y,C){var R=Mi();C=C===void 0?null:C;var I=void 0;if(Un!==null){var ee=Un.memoizedState;if(I=ee.destroy,C!==null&&b_(C,ee.deps)){R.memoizedState=Yd(d,y,I,C);return}}_n.flags|=l,R.memoizedState=Yd(1|d,y,I,C)}function FA(l,d){return fv(8390656,8,l,d)}function S_(l,d){return dv(2048,8,l,d)}function BA(l,d){return dv(4,2,l,d)}function UA(l,d){return dv(4,4,l,d)}function zA(l,d){if(typeof d=="function")return l=l(),d(l),function(){d(null)};if(d!=null)return l=l(),d.current=l,function(){d.current=null}}function VA(l,d,y){return y=y!=null?y.concat([l]):null,dv(4,4,zA.bind(null,d,l),y)}function P_(){}function WA(l,d){var y=Mi();d=d===void 0?null:d;var C=y.memoizedState;return C!==null&&d!==null&&b_(d,C[1])?C[0]:(y.memoizedState=[l,d],l)}function qA(l,d){var y=Mi();d=d===void 0?null:d;var C=y.memoizedState;return C!==null&&d!==null&&b_(d,C[1])?C[0]:(l=l(),y.memoizedState=[l,d],l)}function HA(l,d,y){return zl&21?(oi(y,d)||(y=Tm(),_n.lanes|=y,Vl|=y,l.baseState=!0),d):(l.baseState&&(l.baseState=!1,Fr=!0),l.memoizedState=y)}function jW(l,d){var y=kt;kt=y!==0&&4>y?y:4,l(!0);var C=y_.transition;y_.transition={};try{l(!1),d()}finally{kt=y,y_.transition=C}}function GA(){return Mi().memoizedState}function AW(l,d,y){var C=Ns(l);if(y={lane:C,action:y,hasEagerState:!1,eagerState:null,next:null},KA(l))YA(d,y);else if(y=PA(l,d,y,C),y!==null){var R=wr();po(y,l,C,R),ZA(y,d,C)}}function kW(l,d,y){var C=Ns(l),R={lane:C,action:y,hasEagerState:!1,eagerState:null,next:null};if(KA(l))YA(d,R);else{var I=l.alternate;if(l.lanes===0&&(I===null||I.lanes===0)&&(I=d.lastRenderedReducer,I!==null))try{var ee=d.lastRenderedState,fe=I(ee,y);if(R.hasEagerState=!0,R.eagerState=fe,oi(fe,ee)){var me=d.interleaved;me===null?(R.next=R,d_(d)):(R.next=me.next,me.next=R),d.interleaved=R;return}}catch{}finally{}y=PA(l,d,R,C),y!==null&&(R=wr(),po(y,l,C,R),ZA(y,d,C))}}function KA(l){var d=l.alternate;return l===_n||d!==null&&d===_n}function YA(l,d){Hd=cv=!0;var y=l.pending;y===null?d.next=d:(d.next=y.next,y.next=d),l.pending=d}function ZA(l,d,y){if(y&4194240){var C=d.lanes;C&=l.pendingLanes,y|=C,d.lanes=y,io(l,y)}}var hv={readContext:Ni,useCallback:dr,useContext:dr,useEffect:dr,useImperativeHandle:dr,useInsertionEffect:dr,useLayoutEffect:dr,useMemo:dr,useReducer:dr,useRef:dr,useState:dr,useDebugValue:dr,useDeferredValue:dr,useTransition:dr,useMutableSource:dr,useSyncExternalStore:dr,useId:dr,unstable_isNewReconciler:!1},RW={readContext:Ni,useCallback:function(l,d){return zo().memoizedState=[l,d===void 0?null:d],l},useContext:Ni,useEffect:FA,useImperativeHandle:function(l,d,y){return y=y!=null?y.concat([l]):null,fv(4194308,4,zA.bind(null,d,l),y)},useLayoutEffect:function(l,d){return fv(4194308,4,l,d)},useInsertionEffect:function(l,d){return fv(4,2,l,d)},useMemo:function(l,d){var y=zo();return d=d===void 0?null:d,l=l(),y.memoizedState=[l,d],l},useReducer:function(l,d,y){var C=zo();return d=y!==void 0?y(d):d,C.memoizedState=C.baseState=d,l={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:d},C.queue=l,l=l.dispatch=AW.bind(null,_n,l),[C.memoizedState,l]},useRef:function(l){var d=zo();return l={current:l},d.memoizedState=l},useState:DA,useDebugValue:P_,useDeferredValue:function(l){return zo().memoizedState=l},useTransition:function(){var l=DA(!1),d=l[0];return l=jW.bind(null,l[1]),zo().memoizedState=l,[d,l]},useMutableSource:function(){},useSyncExternalStore:function(l,d,y){var C=_n,R=zo();if(ln){if(y===void 0)throw Error(n(407));y=y()}else{if(y=d(),Kn===null)throw Error(n(349));zl&30||RA(C,d,y)}R.memoizedState=y;var I={value:y,getSnapshot:d};return R.queue=I,FA(MA.bind(null,C,I,l),[l]),C.flags|=2048,Yd(9,NA.bind(null,C,I,y,d),void 0,null),y},useId:function(){var l=zo(),d=Kn.identifierPrefix;if(ln){var y=Pa,C=Sa;y=(C&~(1<<32-wt(C)-1)).toString(32)+y,d=":"+d+"R"+y,y=Gd++,0<y&&(d+="H"+y.toString(32)),d+=":"}else y=TW++,d=":"+d+"r"+y.toString(32)+":";return l.memoizedState=d},unstable_isNewReconciler:!1},NW={readContext:Ni,useCallback:WA,useContext:Ni,useEffect:S_,useImperativeHandle:VA,useInsertionEffect:BA,useLayoutEffect:UA,useMemo:qA,useReducer:w_,useRef:$A,useState:function(){return w_(Kd)},useDebugValue:P_,useDeferredValue:function(l){var d=Mi();return HA(d,Un.memoizedState,l)},useTransition:function(){var l=w_(Kd)[0],d=Mi().memoizedState;return[l,d]},useMutableSource:AA,useSyncExternalStore:kA,useId:GA,unstable_isNewReconciler:!1},MW={readContext:Ni,useCallback:WA,useContext:Ni,useEffect:S_,useImperativeHandle:VA,useInsertionEffect:BA,useLayoutEffect:UA,useMemo:qA,useReducer:O_,useRef:$A,useState:function(){return O_(Kd)},useDebugValue:P_,useDeferredValue:function(l){var d=Mi();return Un===null?d.memoizedState=l:HA(d,Un.memoizedState,l)},useTransition:function(){var l=O_(Kd)[0],d=Mi().memoizedState;return[l,d]},useMutableSource:AA,useSyncExternalStore:kA,useId:GA,unstable_isNewReconciler:!1};function co(l,d){if(l&&l.defaultProps){d=G({},d),l=l.defaultProps;for(var y in l)d[y]===void 0&&(d[y]=l[y]);return d}return d}function C_(l,d,y,C){d=l.memoizedState,y=y(C,d),y=y==null?d:G({},d,y),l.memoizedState=y,l.lanes===0&&(l.updateQueue.baseState=y)}var pv={isMounted:function(l){return(l=l._reactInternals)?Ro(l)===l:!1},enqueueSetState:function(l,d,y){l=l._reactInternals;var C=wr(),R=Ns(l),I=Ea(C,R);I.payload=d,y!=null&&(I.callback=y),d=js(l,I,R),d!==null&&(po(d,l,R,C),av(d,l,R))},enqueueReplaceState:function(l,d,y){l=l._reactInternals;var C=wr(),R=Ns(l),I=Ea(C,R);I.tag=1,I.payload=d,y!=null&&(I.callback=y),d=js(l,I,R),d!==null&&(po(d,l,R,C),av(d,l,R))},enqueueForceUpdate:function(l,d){l=l._reactInternals;var y=wr(),C=Ns(l),R=Ea(y,C);R.tag=2,d!=null&&(R.callback=d),d=js(l,R,C),d!==null&&(po(d,l,C,y),av(d,l,C))}};function XA(l,d,y,C,R,I,ee){return l=l.stateNode,typeof l.shouldComponentUpdate=="function"?l.shouldComponentUpdate(C,I,ee):d.prototype&&d.prototype.isPureReactComponent?!Do(y,C)||!Do(R,I):!0}function QA(l,d,y){var C=!1,R=Cs,I=d.contextType;return typeof I=="object"&&I!==null?I=Ni(I):(R=$r(d)?Dl:fr.current,C=d.contextTypes,I=(C=C!=null)?pc(l,R):Cs),d=new d(y,I),l.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=pv,l.stateNode=d,d._reactInternals=l,C&&(l=l.stateNode,l.__reactInternalMemoizedUnmaskedChildContext=R,l.__reactInternalMemoizedMaskedChildContext=I),d}function JA(l,d,y,C){l=d.state,typeof d.componentWillReceiveProps=="function"&&d.componentWillReceiveProps(y,C),typeof d.UNSAFE_componentWillReceiveProps=="function"&&d.UNSAFE_componentWillReceiveProps(y,C),d.state!==l&&pv.enqueueReplaceState(d,d.state,null)}function E_(l,d,y,C){var R=l.stateNode;R.props=y,R.state=l.memoizedState,R.refs={},h_(l);var I=d.contextType;typeof I=="object"&&I!==null?R.context=Ni(I):(I=$r(d)?Dl:fr.current,R.context=pc(l,I)),R.state=l.memoizedState,I=d.getDerivedStateFromProps,typeof I=="function"&&(C_(l,d,I,y),R.state=l.memoizedState),typeof d.getDerivedStateFromProps=="function"||typeof R.getSnapshotBeforeUpdate=="function"||typeof R.UNSAFE_componentWillMount!="function"&&typeof R.componentWillMount!="function"||(d=R.state,typeof R.componentWillMount=="function"&&R.componentWillMount(),typeof R.UNSAFE_componentWillMount=="function"&&R.UNSAFE_componentWillMount(),d!==R.state&&pv.enqueueReplaceState(R,R.state,null),sv(l,y,R,C),R.state=l.memoizedState),typeof R.componentDidMount=="function"&&(l.flags|=4194308)}function wc(l,d){try{var y="",C=d;do y+=ce(C),C=C.return;while(C);var R=y}catch(I){R=`
Error generating stack: `+I.message+`
`+I.stack}return{value:l,source:d,stack:R,digest:null}}function T_(l,d,y){return{value:l,source:null,stack:y??null,digest:d??null}}function j_(l,d){try{console.error(d.value)}catch(y){setTimeout(function(){throw y})}}var LW=typeof WeakMap=="function"?WeakMap:Map;function e3(l,d,y){y=Ea(-1,y),y.tag=3,y.payload={element:null};var C=d.value;return y.callback=function(){xv||(xv=!0,W_=C),j_(l,d)},y}function t3(l,d,y){y=Ea(-1,y),y.tag=3;var C=l.type.getDerivedStateFromError;if(typeof C=="function"){var R=d.value;y.payload=function(){return C(R)},y.callback=function(){j_(l,d)}}var I=l.stateNode;return I!==null&&typeof I.componentDidCatch=="function"&&(y.callback=function(){j_(l,d),typeof C!="function"&&(ks===null?ks=new Set([this]):ks.add(this));var ee=d.stack;this.componentDidCatch(d.value,{componentStack:ee!==null?ee:""})}),y}function n3(l,d,y){var C=l.pingCache;if(C===null){C=l.pingCache=new LW;var R=new Set;C.set(d,R)}else R=C.get(d),R===void 0&&(R=new Set,C.set(d,R));R.has(y)||(R.add(y),l=YW.bind(null,l,d,y),d.then(l,l))}function r3(l){do{var d;if((d=l.tag===13)&&(d=l.memoizedState,d=d!==null?d.dehydrated!==null:!0),d)return l;l=l.return}while(l!==null);return null}function i3(l,d,y,C,R){return l.mode&1?(l.flags|=65536,l.lanes=R,l):(l===d?l.flags|=65536:(l.flags|=128,y.flags|=131072,y.flags&=-52805,y.tag===1&&(y.alternate===null?y.tag=17:(d=Ea(-1,1),d.tag=2,js(y,d,1))),y.lanes|=1),l)}var IW=T.ReactCurrentOwner,Fr=!1;function xr(l,d,y,C){d.child=l===null?SA(d,null,y,C):yc(d,l.child,y,C)}function o3(l,d,y,C,R){y=y.render;var I=d.ref;return _c(d,R),C=__(l,d,y,C,I,R),y=x_(),l!==null&&!Fr?(d.updateQueue=l.updateQueue,d.flags&=-2053,l.lanes&=~R,Ta(l,d,R)):(ln&&y&&r_(d),d.flags|=1,xr(l,d,C,R),d.child)}function a3(l,d,y,C,R){if(l===null){var I=y.type;return typeof I=="function"&&!X_(I)&&I.defaultProps===void 0&&y.compare===null&&y.defaultProps===void 0?(d.tag=15,d.type=I,s3(l,d,I,C,R)):(l=Ev(y.type,null,C,d,d.mode,R),l.ref=d.ref,l.return=d,d.child=l)}if(I=l.child,!(l.lanes&R)){var ee=I.memoizedProps;if(y=y.compare,y=y!==null?y:Do,y(ee,C)&&l.ref===d.ref)return Ta(l,d,R)}return d.flags|=1,l=Ls(I,C),l.ref=d.ref,l.return=d,d.child=l}function s3(l,d,y,C,R){if(l!==null){var I=l.memoizedProps;if(Do(I,C)&&l.ref===d.ref)if(Fr=!1,d.pendingProps=C=I,(l.lanes&R)!==0)l.flags&131072&&(Fr=!0);else return d.lanes=l.lanes,Ta(l,d,R)}return A_(l,d,y,C,R)}function l3(l,d,y){var C=d.pendingProps,R=C.children,I=l!==null?l.memoizedState:null;if(C.mode==="hidden")if(!(d.mode&1))d.memoizedState={baseLanes:0,cachePool:null,transitions:null},Yt(Sc,ui),ui|=y;else{if(!(y&1073741824))return l=I!==null?I.baseLanes|y:y,d.lanes=d.childLanes=1073741824,d.memoizedState={baseLanes:l,cachePool:null,transitions:null},d.updateQueue=null,Yt(Sc,ui),ui|=l,null;d.memoizedState={baseLanes:0,cachePool:null,transitions:null},C=I!==null?I.baseLanes:y,Yt(Sc,ui),ui|=C}else I!==null?(C=I.baseLanes|y,d.memoizedState=null):C=y,Yt(Sc,ui),ui|=C;return xr(l,d,R,y),d.child}function u3(l,d){var y=d.ref;(l===null&&y!==null||l!==null&&l.ref!==y)&&(d.flags|=512,d.flags|=2097152)}function A_(l,d,y,C,R){var I=$r(y)?Dl:fr.current;return I=pc(d,I),_c(d,R),y=__(l,d,y,C,I,R),C=x_(),l!==null&&!Fr?(d.updateQueue=l.updateQueue,d.flags&=-2053,l.lanes&=~R,Ta(l,d,R)):(ln&&C&&r_(d),d.flags|=1,xr(l,d,y,R),d.child)}function c3(l,d,y,C,R){if($r(y)){var I=!0;Qm(d)}else I=!1;if(_c(d,R),d.stateNode===null)vv(l,d),QA(d,y,C),E_(d,y,C,R),C=!0;else if(l===null){var ee=d.stateNode,fe=d.memoizedProps;ee.props=fe;var me=ee.context,Ce=y.contextType;typeof Ce=="object"&&Ce!==null?Ce=Ni(Ce):(Ce=$r(y)?Dl:fr.current,Ce=pc(d,Ce));var Ie=y.getDerivedStateFromProps,$e=typeof Ie=="function"||typeof ee.getSnapshotBeforeUpdate=="function";$e||typeof ee.UNSAFE_componentWillReceiveProps!="function"&&typeof ee.componentWillReceiveProps!="function"||(fe!==C||me!==Ce)&&JA(d,ee,C,Ce),Ts=!1;var Le=d.memoizedState;ee.state=Le,sv(d,C,ee,R),me=d.memoizedState,fe!==C||Le!==me||Dr.current||Ts?(typeof Ie=="function"&&(C_(d,y,Ie,C),me=d.memoizedState),(fe=Ts||XA(d,y,fe,C,Le,me,Ce))?($e||typeof ee.UNSAFE_componentWillMount!="function"&&typeof ee.componentWillMount!="function"||(typeof ee.componentWillMount=="function"&&ee.componentWillMount(),typeof ee.UNSAFE_componentWillMount=="function"&&ee.UNSAFE_componentWillMount()),typeof ee.componentDidMount=="function"&&(d.flags|=4194308)):(typeof ee.componentDidMount=="function"&&(d.flags|=4194308),d.memoizedProps=C,d.memoizedState=me),ee.props=C,ee.state=me,ee.context=Ce,C=fe):(typeof ee.componentDidMount=="function"&&(d.flags|=4194308),C=!1)}else{ee=d.stateNode,CA(l,d),fe=d.memoizedProps,Ce=d.type===d.elementType?fe:co(d.type,fe),ee.props=Ce,$e=d.pendingProps,Le=ee.context,me=y.contextType,typeof me=="object"&&me!==null?me=Ni(me):(me=$r(y)?Dl:fr.current,me=pc(d,me));var Qe=y.getDerivedStateFromProps;(Ie=typeof Qe=="function"||typeof ee.getSnapshotBeforeUpdate=="function")||typeof ee.UNSAFE_componentWillReceiveProps!="function"&&typeof ee.componentWillReceiveProps!="function"||(fe!==$e||Le!==me)&&JA(d,ee,C,me),Ts=!1,Le=d.memoizedState,ee.state=Le,sv(d,C,ee,R);var tt=d.memoizedState;fe!==$e||Le!==tt||Dr.current||Ts?(typeof Qe=="function"&&(C_(d,y,Qe,C),tt=d.memoizedState),(Ce=Ts||XA(d,y,Ce,C,Le,tt,me)||!1)?(Ie||typeof ee.UNSAFE_componentWillUpdate!="function"&&typeof ee.componentWillUpdate!="function"||(typeof ee.componentWillUpdate=="function"&&ee.componentWillUpdate(C,tt,me),typeof ee.UNSAFE_componentWillUpdate=="function"&&ee.UNSAFE_componentWillUpdate(C,tt,me)),typeof ee.componentDidUpdate=="function"&&(d.flags|=4),typeof ee.getSnapshotBeforeUpdate=="function"&&(d.flags|=1024)):(typeof ee.componentDidUpdate!="function"||fe===l.memoizedProps&&Le===l.memoizedState||(d.flags|=4),typeof ee.getSnapshotBeforeUpdate!="function"||fe===l.memoizedProps&&Le===l.memoizedState||(d.flags|=1024),d.memoizedProps=C,d.memoizedState=tt),ee.props=C,ee.state=tt,ee.context=me,C=Ce):(typeof ee.componentDidUpdate!="function"||fe===l.memoizedProps&&Le===l.memoizedState||(d.flags|=4),typeof ee.getSnapshotBeforeUpdate!="function"||fe===l.memoizedProps&&Le===l.memoizedState||(d.flags|=1024),C=!1)}return k_(l,d,y,C,I,R)}function k_(l,d,y,C,R,I){u3(l,d);var ee=(d.flags&128)!==0;if(!C&&!ee)return R&&mA(d,y,!1),Ta(l,d,I);C=d.stateNode,IW.current=d;var fe=ee&&typeof y.getDerivedStateFromError!="function"?null:C.render();return d.flags|=1,l!==null&&ee?(d.child=yc(d,l.child,null,I),d.child=yc(d,null,fe,I)):xr(l,d,fe,I),d.memoizedState=C.state,R&&mA(d,y,!0),d.child}function f3(l){var d=l.stateNode;d.pendingContext?hA(l,d.pendingContext,d.pendingContext!==d.context):d.context&&hA(l,d.context,!1),p_(l,d.containerInfo)}function d3(l,d,y,C,R){return gc(),s_(R),d.flags|=256,xr(l,d,y,C),d.child}var R_={dehydrated:null,treeContext:null,retryLane:0};function N_(l){return{baseLanes:l,cachePool:null,transitions:null}}function h3(l,d,y){var C=d.pendingProps,R=bn.current,I=!1,ee=(d.flags&128)!==0,fe;if((fe=ee)||(fe=l!==null&&l.memoizedState===null?!1:(R&2)!==0),fe?(I=!0,d.flags&=-129):(l===null||l.memoizedState!==null)&&(R|=1),Yt(bn,R&1),l===null)return a_(d),l=d.memoizedState,l!==null&&(l=l.dehydrated,l!==null)?(d.mode&1?l.data==="$!"?d.lanes=8:d.lanes=1073741824:d.lanes=1,null):(ee=C.children,l=C.fallback,I?(C=d.mode,I=d.child,ee={mode:"hidden",children:ee},!(C&1)&&I!==null?(I.childLanes=0,I.pendingProps=ee):I=Tv(ee,C,0,null),l=Gl(l,C,y,null),I.return=d,l.return=d,I.sibling=l,d.child=I,d.child.memoizedState=N_(y),d.memoizedState=R_,l):M_(d,ee));if(R=l.memoizedState,R!==null&&(fe=R.dehydrated,fe!==null))return DW(l,d,ee,C,fe,R,y);if(I){I=C.fallback,ee=d.mode,R=l.child,fe=R.sibling;var me={mode:"hidden",children:C.children};return!(ee&1)&&d.child!==R?(C=d.child,C.childLanes=0,C.pendingProps=me,d.deletions=null):(C=Ls(R,me),C.subtreeFlags=R.subtreeFlags&14680064),fe!==null?I=Ls(fe,I):(I=Gl(I,ee,y,null),I.flags|=2),I.return=d,C.return=d,C.sibling=I,d.child=C,C=I,I=d.child,ee=l.child.memoizedState,ee=ee===null?N_(y):{baseLanes:ee.baseLanes|y,cachePool:null,transitions:ee.transitions},I.memoizedState=ee,I.childLanes=l.childLanes&~y,d.memoizedState=R_,C}return I=l.child,l=I.sibling,C=Ls(I,{mode:"visible",children:C.children}),!(d.mode&1)&&(C.lanes=y),C.return=d,C.sibling=null,l!==null&&(y=d.deletions,y===null?(d.deletions=[l],d.flags|=16):y.push(l)),d.child=C,d.memoizedState=null,C}function M_(l,d){return d=Tv({mode:"visible",children:d},l.mode,0,null),d.return=l,l.child=d}function mv(l,d,y,C){return C!==null&&s_(C),yc(d,l.child,null,y),l=M_(d,d.pendingProps.children),l.flags|=2,d.memoizedState=null,l}function DW(l,d,y,C,R,I,ee){if(y)return d.flags&256?(d.flags&=-257,C=T_(Error(n(422))),mv(l,d,ee,C)):d.memoizedState!==null?(d.child=l.child,d.flags|=128,null):(I=C.fallback,R=d.mode,C=Tv({mode:"visible",children:C.children},R,0,null),I=Gl(I,R,ee,null),I.flags|=2,C.return=d,I.return=d,C.sibling=I,d.child=C,d.mode&1&&yc(d,l.child,null,ee),d.child.memoizedState=N_(ee),d.memoizedState=R_,I);if(!(d.mode&1))return mv(l,d,ee,null);if(R.data==="$!"){if(C=R.nextSibling&&R.nextSibling.dataset,C)var fe=C.dgst;return C=fe,I=Error(n(419)),C=T_(I,C,void 0),mv(l,d,ee,C)}if(fe=(ee&l.childLanes)!==0,Fr||fe){if(C=Kn,C!==null){switch(ee&-ee){case 4:R=2;break;case 16:R=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:R=32;break;case 536870912:R=268435456;break;default:R=0}R=R&(C.suspendedLanes|ee)?0:R,R!==0&&R!==I.retryLane&&(I.retryLane=R,Ca(l,R),po(C,l,R,-1))}return Z_(),C=T_(Error(n(421))),mv(l,d,ee,C)}return R.data==="$?"?(d.flags|=128,d.child=l.child,d=ZW.bind(null,l),R._reactRetry=d,null):(l=I.treeContext,li=Bo(R.nextSibling),si=d,ln=!0,uo=null,l!==null&&(ki[Ri++]=Sa,ki[Ri++]=Pa,ki[Ri++]=$l,Sa=l.id,Pa=l.overflow,$l=d),d=M_(d,C.children),d.flags|=4096,d)}function p3(l,d,y){l.lanes|=d;var C=l.alternate;C!==null&&(C.lanes|=d),f_(l.return,d,y)}function L_(l,d,y,C,R){var I=l.memoizedState;I===null?l.memoizedState={isBackwards:d,rendering:null,renderingStartTime:0,last:C,tail:y,tailMode:R}:(I.isBackwards=d,I.rendering=null,I.renderingStartTime=0,I.last=C,I.tail=y,I.tailMode=R)}function m3(l,d,y){var C=d.pendingProps,R=C.revealOrder,I=C.tail;if(xr(l,d,C.children,y),C=bn.current,C&2)C=C&1|2,d.flags|=128;else{if(l!==null&&l.flags&128)e:for(l=d.child;l!==null;){if(l.tag===13)l.memoizedState!==null&&p3(l,y,d);else if(l.tag===19)p3(l,y,d);else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===d)break e;for(;l.sibling===null;){if(l.return===null||l.return===d)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}C&=1}if(Yt(bn,C),!(d.mode&1))d.memoizedState=null;else switch(R){case"forwards":for(y=d.child,R=null;y!==null;)l=y.alternate,l!==null&&lv(l)===null&&(R=y),y=y.sibling;y=R,y===null?(R=d.child,d.child=null):(R=y.sibling,y.sibling=null),L_(d,!1,R,y,I);break;case"backwards":for(y=null,R=d.child,d.child=null;R!==null;){if(l=R.alternate,l!==null&&lv(l)===null){d.child=R;break}l=R.sibling,R.sibling=y,y=R,R=l}L_(d,!0,y,null,I);break;case"together":L_(d,!1,null,null,void 0);break;default:d.memoizedState=null}return d.child}function vv(l,d){!(d.mode&1)&&l!==null&&(l.alternate=null,d.alternate=null,d.flags|=2)}function Ta(l,d,y){if(l!==null&&(d.dependencies=l.dependencies),Vl|=d.lanes,!(y&d.childLanes))return null;if(l!==null&&d.child!==l.child)throw Error(n(153));if(d.child!==null){for(l=d.child,y=Ls(l,l.pendingProps),d.child=y,y.return=d;l.sibling!==null;)l=l.sibling,y=y.sibling=Ls(l,l.pendingProps),y.return=d;y.sibling=null}return d.child}function $W(l,d,y){switch(d.tag){case 3:f3(d),gc();break;case 5:jA(d);break;case 1:$r(d.type)&&Qm(d);break;case 4:p_(d,d.stateNode.containerInfo);break;case 10:var C=d.type._context,R=d.memoizedProps.value;Yt(iv,C._currentValue),C._currentValue=R;break;case 13:if(C=d.memoizedState,C!==null)return C.dehydrated!==null?(Yt(bn,bn.current&1),d.flags|=128,null):y&d.child.childLanes?h3(l,d,y):(Yt(bn,bn.current&1),l=Ta(l,d,y),l!==null?l.sibling:null);Yt(bn,bn.current&1);break;case 19:if(C=(y&d.childLanes)!==0,l.flags&128){if(C)return m3(l,d,y);d.flags|=128}if(R=d.memoizedState,R!==null&&(R.rendering=null,R.tail=null,R.lastEffect=null),Yt(bn,bn.current),C)break;return null;case 22:case 23:return d.lanes=0,l3(l,d,y)}return Ta(l,d,y)}var v3,I_,g3,y3;v3=function(l,d){for(var y=d.child;y!==null;){if(y.tag===5||y.tag===6)l.appendChild(y.stateNode);else if(y.tag!==4&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===d)break;for(;y.sibling===null;){if(y.return===null||y.return===d)return;y=y.return}y.sibling.return=y.return,y=y.sibling}},I_=function(){},g3=function(l,d,y,C){var R=l.memoizedProps;if(R!==C){l=d.stateNode,Ul(Uo.current);var I=null;switch(y){case"input":R=Se(l,R),C=Se(l,C),I=[];break;case"select":R=G({},R,{value:void 0}),C=G({},C,{value:void 0}),I=[];break;case"textarea":R=qe(l,R),C=qe(l,C),I=[];break;default:typeof R.onClick!="function"&&typeof C.onClick=="function"&&(l.onclick=Re)}Dn(y,C);var ee;y=null;for(Ce in R)if(!C.hasOwnProperty(Ce)&&R.hasOwnProperty(Ce)&&R[Ce]!=null)if(Ce==="style"){var fe=R[Ce];for(ee in fe)fe.hasOwnProperty(ee)&&(y||(y={}),y[ee]="")}else Ce!=="dangerouslySetInnerHTML"&&Ce!=="children"&&Ce!=="suppressContentEditableWarning"&&Ce!=="suppressHydrationWarning"&&Ce!=="autoFocus"&&(i.hasOwnProperty(Ce)?I||(I=[]):(I=I||[]).push(Ce,null));for(Ce in C){var me=C[Ce];if(fe=R!=null?R[Ce]:void 0,C.hasOwnProperty(Ce)&&me!==fe&&(me!=null||fe!=null))if(Ce==="style")if(fe){for(ee in fe)!fe.hasOwnProperty(ee)||me&&me.hasOwnProperty(ee)||(y||(y={}),y[ee]="");for(ee in me)me.hasOwnProperty(ee)&&fe[ee]!==me[ee]&&(y||(y={}),y[ee]=me[ee])}else y||(I||(I=[]),I.push(Ce,y)),y=me;else Ce==="dangerouslySetInnerHTML"?(me=me?me.__html:void 0,fe=fe?fe.__html:void 0,me!=null&&fe!==me&&(I=I||[]).push(Ce,me)):Ce==="children"?typeof me!="string"&&typeof me!="number"||(I=I||[]).push(Ce,""+me):Ce!=="suppressContentEditableWarning"&&Ce!=="suppressHydrationWarning"&&(i.hasOwnProperty(Ce)?(me!=null&&Ce==="onScroll"&&zt("scroll",l),I||fe===me||(I=[])):(I=I||[]).push(Ce,me))}y&&(I=I||[]).push("style",y);var Ce=I;(d.updateQueue=Ce)&&(d.flags|=4)}},y3=function(l,d,y,C){y!==C&&(d.flags|=4)};function Zd(l,d){if(!ln)switch(l.tailMode){case"hidden":d=l.tail;for(var y=null;d!==null;)d.alternate!==null&&(y=d),d=d.sibling;y===null?l.tail=null:y.sibling=null;break;case"collapsed":y=l.tail;for(var C=null;y!==null;)y.alternate!==null&&(C=y),y=y.sibling;C===null?d||l.tail===null?l.tail=null:l.tail.sibling=null:C.sibling=null}}function hr(l){var d=l.alternate!==null&&l.alternate.child===l.child,y=0,C=0;if(d)for(var R=l.child;R!==null;)y|=R.lanes|R.childLanes,C|=R.subtreeFlags&14680064,C|=R.flags&14680064,R.return=l,R=R.sibling;else for(R=l.child;R!==null;)y|=R.lanes|R.childLanes,C|=R.subtreeFlags,C|=R.flags,R.return=l,R=R.sibling;return l.subtreeFlags|=C,l.childLanes=y,d}function FW(l,d,y){var C=d.pendingProps;switch(i_(d),d.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return hr(d),null;case 1:return $r(d.type)&&Xm(),hr(d),null;case 3:return C=d.stateNode,xc(),nn(Dr),nn(fr),g_(),C.pendingContext&&(C.context=C.pendingContext,C.pendingContext=null),(l===null||l.child===null)&&(nv(d)?d.flags|=4:l===null||l.memoizedState.isDehydrated&&!(d.flags&256)||(d.flags|=1024,uo!==null&&(G_(uo),uo=null))),I_(l,d),hr(d),null;case 5:m_(d);var R=Ul(qd.current);if(y=d.type,l!==null&&d.stateNode!=null)g3(l,d,y,C,R),l.ref!==d.ref&&(d.flags|=512,d.flags|=2097152);else{if(!C){if(d.stateNode===null)throw Error(n(166));return hr(d),null}if(l=Ul(Uo.current),nv(d)){C=d.stateNode,y=d.type;var I=d.memoizedProps;switch(C[Ai]=d,C[Os]=I,l=(d.mode&1)!==0,y){case"dialog":zt("cancel",C),zt("close",C);break;case"iframe":case"object":case"embed":zt("load",C);break;case"video":case"audio":for(R=0;R<_s.length;R++)zt(_s[R],C);break;case"source":zt("error",C);break;case"img":case"image":case"link":zt("error",C),zt("load",C);break;case"details":zt("toggle",C);break;case"input":Fe(C,I),zt("invalid",C);break;case"select":C._wrapperState={wasMultiple:!!I.multiple},zt("invalid",C);break;case"textarea":ye(C,I),zt("invalid",C)}Dn(y,I),R=null;for(var ee in I)if(I.hasOwnProperty(ee)){var fe=I[ee];ee==="children"?typeof fe=="string"?C.textContent!==fe&&(I.suppressHydrationWarning!==!0&&Pe(C.textContent,fe,l),R=["children",fe]):typeof fe=="number"&&C.textContent!==""+fe&&(I.suppressHydrationWarning!==!0&&Pe(C.textContent,fe,l),R=["children",""+fe]):i.hasOwnProperty(ee)&&fe!=null&&ee==="onScroll"&&zt("scroll",C)}switch(y){case"input":ue(C),je(C,I,!0);break;case"textarea":ue(C),Ae(C);break;case"select":case"option":break;default:typeof I.onClick=="function"&&(C.onclick=Re)}C=R,d.updateQueue=C,C!==null&&(d.flags|=4)}else{ee=R.nodeType===9?R:R.ownerDocument,l==="http://www.w3.org/1999/xhtml"&&(l=ke(y)),l==="http://www.w3.org/1999/xhtml"?y==="script"?(l=ee.createElement("div"),l.innerHTML="<script><\/script>",l=l.removeChild(l.firstChild)):typeof C.is=="string"?l=ee.createElement(y,{is:C.is}):(l=ee.createElement(y),y==="select"&&(ee=l,C.multiple?ee.multiple=!0:C.size&&(ee.size=C.size))):l=ee.createElementNS(l,y),l[Ai]=d,l[Os]=C,v3(l,d,!1,!1),d.stateNode=l;e:{switch(ee=Nr(y,C),y){case"dialog":zt("cancel",l),zt("close",l),R=C;break;case"iframe":case"object":case"embed":zt("load",l),R=C;break;case"video":case"audio":for(R=0;R<_s.length;R++)zt(_s[R],l);R=C;break;case"source":zt("error",l),R=C;break;case"img":case"image":case"link":zt("error",l),zt("load",l),R=C;break;case"details":zt("toggle",l),R=C;break;case"input":Fe(l,C),R=Se(l,C),zt("invalid",l);break;case"option":R=C;break;case"select":l._wrapperState={wasMultiple:!!C.multiple},R=G({},C,{value:void 0}),zt("invalid",l);break;case"textarea":ye(l,C),R=qe(l,C),zt("invalid",l);break;default:R=C}Dn(y,R),fe=R;for(I in fe)if(fe.hasOwnProperty(I)){var me=fe[I];I==="style"?Gt(l,me):I==="dangerouslySetInnerHTML"?(me=me?me.__html:void 0,me!=null&&Xe(l,me)):I==="children"?typeof me=="string"?(y!=="textarea"||me!=="")&&bt(l,me):typeof me=="number"&&bt(l,""+me):I!=="suppressContentEditableWarning"&&I!=="suppressHydrationWarning"&&I!=="autoFocus"&&(i.hasOwnProperty(I)?me!=null&&I==="onScroll"&&zt("scroll",l):me!=null&&E(l,I,me,ee))}switch(y){case"input":ue(l),je(l,C,!1);break;case"textarea":ue(l),Ae(l);break;case"option":C.value!=null&&l.setAttribute("value",""+M(C.value));break;case"select":l.multiple=!!C.multiple,I=C.value,I!=null?Ue(l,!!C.multiple,I,!1):C.defaultValue!=null&&Ue(l,!!C.multiple,C.defaultValue,!0);break;default:typeof R.onClick=="function"&&(l.onclick=Re)}switch(y){case"button":case"input":case"select":case"textarea":C=!!C.autoFocus;break e;case"img":C=!0;break e;default:C=!1}}C&&(d.flags|=4)}d.ref!==null&&(d.flags|=512,d.flags|=2097152)}return hr(d),null;case 6:if(l&&d.stateNode!=null)y3(l,d,l.memoizedProps,C);else{if(typeof C!="string"&&d.stateNode===null)throw Error(n(166));if(y=Ul(qd.current),Ul(Uo.current),nv(d)){if(C=d.stateNode,y=d.memoizedProps,C[Ai]=d,(I=C.nodeValue!==y)&&(l=si,l!==null))switch(l.tag){case 3:Pe(C.nodeValue,y,(l.mode&1)!==0);break;case 5:l.memoizedProps.suppressHydrationWarning!==!0&&Pe(C.nodeValue,y,(l.mode&1)!==0)}I&&(d.flags|=4)}else C=(y.nodeType===9?y:y.ownerDocument).createTextNode(C),C[Ai]=d,d.stateNode=C}return hr(d),null;case 13:if(nn(bn),C=d.memoizedState,l===null||l.memoizedState!==null&&l.memoizedState.dehydrated!==null){if(ln&&li!==null&&d.mode&1&&!(d.flags&128))xA(),gc(),d.flags|=98560,I=!1;else if(I=nv(d),C!==null&&C.dehydrated!==null){if(l===null){if(!I)throw Error(n(318));if(I=d.memoizedState,I=I!==null?I.dehydrated:null,!I)throw Error(n(317));I[Ai]=d}else gc(),!(d.flags&128)&&(d.memoizedState=null),d.flags|=4;hr(d),I=!1}else uo!==null&&(G_(uo),uo=null),I=!0;if(!I)return d.flags&65536?d:null}return d.flags&128?(d.lanes=y,d):(C=C!==null,C!==(l!==null&&l.memoizedState!==null)&&C&&(d.child.flags|=8192,d.mode&1&&(l===null||bn.current&1?zn===0&&(zn=3):Z_())),d.updateQueue!==null&&(d.flags|=4),hr(d),null);case 4:return xc(),I_(l,d),l===null&&xs(d.stateNode.containerInfo),hr(d),null;case 10:return c_(d.type._context),hr(d),null;case 17:return $r(d.type)&&Xm(),hr(d),null;case 19:if(nn(bn),I=d.memoizedState,I===null)return hr(d),null;if(C=(d.flags&128)!==0,ee=I.rendering,ee===null)if(C)Zd(I,!1);else{if(zn!==0||l!==null&&l.flags&128)for(l=d.child;l!==null;){if(ee=lv(l),ee!==null){for(d.flags|=128,Zd(I,!1),C=ee.updateQueue,C!==null&&(d.updateQueue=C,d.flags|=4),d.subtreeFlags=0,C=y,y=d.child;y!==null;)I=y,l=C,I.flags&=14680066,ee=I.alternate,ee===null?(I.childLanes=0,I.lanes=l,I.child=null,I.subtreeFlags=0,I.memoizedProps=null,I.memoizedState=null,I.updateQueue=null,I.dependencies=null,I.stateNode=null):(I.childLanes=ee.childLanes,I.lanes=ee.lanes,I.child=ee.child,I.subtreeFlags=0,I.deletions=null,I.memoizedProps=ee.memoizedProps,I.memoizedState=ee.memoizedState,I.updateQueue=ee.updateQueue,I.type=ee.type,l=ee.dependencies,I.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),y=y.sibling;return Yt(bn,bn.current&1|2),d.child}l=l.sibling}I.tail!==null&&gn()>Pc&&(d.flags|=128,C=!0,Zd(I,!1),d.lanes=4194304)}else{if(!C)if(l=lv(ee),l!==null){if(d.flags|=128,C=!0,y=l.updateQueue,y!==null&&(d.updateQueue=y,d.flags|=4),Zd(I,!0),I.tail===null&&I.tailMode==="hidden"&&!ee.alternate&&!ln)return hr(d),null}else 2*gn()-I.renderingStartTime>Pc&&y!==1073741824&&(d.flags|=128,C=!0,Zd(I,!1),d.lanes=4194304);I.isBackwards?(ee.sibling=d.child,d.child=ee):(y=I.last,y!==null?y.sibling=ee:d.child=ee,I.last=ee)}return I.tail!==null?(d=I.tail,I.rendering=d,I.tail=d.sibling,I.renderingStartTime=gn(),d.sibling=null,y=bn.current,Yt(bn,C?y&1|2:y&1),d):(hr(d),null);case 22:case 23:return Y_(),C=d.memoizedState!==null,l!==null&&l.memoizedState!==null!==C&&(d.flags|=8192),C&&d.mode&1?ui&1073741824&&(hr(d),d.subtreeFlags&6&&(d.flags|=8192)):hr(d),null;case 24:return null;case 25:return null}throw Error(n(156,d.tag))}function BW(l,d){switch(i_(d),d.tag){case 1:return $r(d.type)&&Xm(),l=d.flags,l&65536?(d.flags=l&-65537|128,d):null;case 3:return xc(),nn(Dr),nn(fr),g_(),l=d.flags,l&65536&&!(l&128)?(d.flags=l&-65537|128,d):null;case 5:return m_(d),null;case 13:if(nn(bn),l=d.memoizedState,l!==null&&l.dehydrated!==null){if(d.alternate===null)throw Error(n(340));gc()}return l=d.flags,l&65536?(d.flags=l&-65537|128,d):null;case 19:return nn(bn),null;case 4:return xc(),null;case 10:return c_(d.type._context),null;case 22:case 23:return Y_(),null;case 24:return null;default:return null}}var gv=!1,pr=!1,UW=typeof WeakSet=="function"?WeakSet:Set,Je=null;function Oc(l,d){var y=l.ref;if(y!==null)if(typeof y=="function")try{y(null)}catch(C){Sn(l,d,C)}else y.current=null}function D_(l,d,y){try{y()}catch(C){Sn(l,d,C)}}var b3=!1;function zW(l,d){if(Ze=jl,l=Nd(),Md(l)){if("selectionStart"in l)var y={start:l.selectionStart,end:l.selectionEnd};else e:{y=(y=l.ownerDocument)&&y.defaultView||window;var C=y.getSelection&&y.getSelection();if(C&&C.rangeCount!==0){y=C.anchorNode;var R=C.anchorOffset,I=C.focusNode;C=C.focusOffset;try{y.nodeType,I.nodeType}catch{y=null;break e}var ee=0,fe=-1,me=-1,Ce=0,Ie=0,$e=l,Le=null;t:for(;;){for(var Qe;$e!==y||R!==0&&$e.nodeType!==3||(fe=ee+R),$e!==I||C!==0&&$e.nodeType!==3||(me=ee+C),$e.nodeType===3&&(ee+=$e.nodeValue.length),(Qe=$e.firstChild)!==null;)Le=$e,$e=Qe;for(;;){if($e===l)break t;if(Le===y&&++Ce===R&&(fe=ee),Le===I&&++Ie===C&&(me=ee),(Qe=$e.nextSibling)!==null)break;$e=Le,Le=$e.parentNode}$e=Qe}y=fe===-1||me===-1?null:{start:fe,end:me}}else y=null}y=y||{start:0,end:0}}else y=null;for(st={focusedElem:l,selectionRange:y},jl=!1,Je=d;Je!==null;)if(d=Je,l=d.child,(d.subtreeFlags&1028)!==0&&l!==null)l.return=d,Je=l;else for(;Je!==null;){d=Je;try{var tt=d.alternate;if(d.flags&1024)switch(d.tag){case 0:case 11:case 15:break;case 1:if(tt!==null){var nt=tt.memoizedProps,Tn=tt.memoizedState,xe=d.stateNode,ve=xe.getSnapshotBeforeUpdate(d.elementType===d.type?nt:co(d.type,nt),Tn);xe.__reactInternalSnapshotBeforeUpdate=ve}break;case 3:var Oe=d.stateNode.containerInfo;Oe.nodeType===1?Oe.textContent="":Oe.nodeType===9&&Oe.documentElement&&Oe.removeChild(Oe.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(We){Sn(d,d.return,We)}if(l=d.sibling,l!==null){l.return=d.return,Je=l;break}Je=d.return}return tt=b3,b3=!1,tt}function Xd(l,d,y){var C=d.updateQueue;if(C=C!==null?C.lastEffect:null,C!==null){var R=C=C.next;do{if((R.tag&l)===l){var I=R.destroy;R.destroy=void 0,I!==void 0&&D_(d,y,I)}R=R.next}while(R!==C)}}function yv(l,d){if(d=d.updateQueue,d=d!==null?d.lastEffect:null,d!==null){var y=d=d.next;do{if((y.tag&l)===l){var C=y.create;y.destroy=C()}y=y.next}while(y!==d)}}function $_(l){var d=l.ref;if(d!==null){var y=l.stateNode;switch(l.tag){case 5:l=y;break;default:l=y}typeof d=="function"?d(l):d.current=l}}function _3(l){var d=l.alternate;d!==null&&(l.alternate=null,_3(d)),l.child=null,l.deletions=null,l.sibling=null,l.tag===5&&(d=l.stateNode,d!==null&&(delete d[Ai],delete d[Os],delete d[Ss],delete d[Jb],delete d[e_])),l.stateNode=null,l.return=null,l.dependencies=null,l.memoizedProps=null,l.memoizedState=null,l.pendingProps=null,l.stateNode=null,l.updateQueue=null}function x3(l){return l.tag===5||l.tag===3||l.tag===4}function w3(l){e:for(;;){for(;l.sibling===null;){if(l.return===null||x3(l.return))return null;l=l.return}for(l.sibling.return=l.return,l=l.sibling;l.tag!==5&&l.tag!==6&&l.tag!==18;){if(l.flags&2||l.child===null||l.tag===4)continue e;l.child.return=l,l=l.child}if(!(l.flags&2))return l.stateNode}}function F_(l,d,y){var C=l.tag;if(C===5||C===6)l=l.stateNode,d?y.nodeType===8?y.parentNode.insertBefore(l,d):y.insertBefore(l,d):(y.nodeType===8?(d=y.parentNode,d.insertBefore(l,y)):(d=y,d.appendChild(l)),y=y._reactRootContainer,y!=null||d.onclick!==null||(d.onclick=Re));else if(C!==4&&(l=l.child,l!==null))for(F_(l,d,y),l=l.sibling;l!==null;)F_(l,d,y),l=l.sibling}function B_(l,d,y){var C=l.tag;if(C===5||C===6)l=l.stateNode,d?y.insertBefore(l,d):y.appendChild(l);else if(C!==4&&(l=l.child,l!==null))for(B_(l,d,y),l=l.sibling;l!==null;)B_(l,d,y),l=l.sibling}var rr=null,fo=!1;function As(l,d,y){for(y=y.child;y!==null;)O3(l,d,y),y=y.sibling}function O3(l,d,y){if(Jr&&typeof Jr.onCommitFiberUnmount=="function")try{Jr.onCommitFiberUnmount(Ol,y)}catch{}switch(y.tag){case 5:pr||Oc(y,d);case 6:var C=rr,R=fo;rr=null,As(l,d,y),rr=C,fo=R,rr!==null&&(fo?(l=rr,y=y.stateNode,l.nodeType===8?l.parentNode.removeChild(y):l.removeChild(y)):rr.removeChild(y.stateNode));break;case 18:rr!==null&&(fo?(l=rr,y=y.stateNode,l.nodeType===8?Ud(l.parentNode,y):l.nodeType===1&&Ud(l,y),ni(l)):Ud(rr,y.stateNode));break;case 4:C=rr,R=fo,rr=y.stateNode.containerInfo,fo=!0,As(l,d,y),rr=C,fo=R;break;case 0:case 11:case 14:case 15:if(!pr&&(C=y.updateQueue,C!==null&&(C=C.lastEffect,C!==null))){R=C=C.next;do{var I=R,ee=I.destroy;I=I.tag,ee!==void 0&&(I&2||I&4)&&D_(y,d,ee),R=R.next}while(R!==C)}As(l,d,y);break;case 1:if(!pr&&(Oc(y,d),C=y.stateNode,typeof C.componentWillUnmount=="function"))try{C.props=y.memoizedProps,C.state=y.memoizedState,C.componentWillUnmount()}catch(fe){Sn(y,d,fe)}As(l,d,y);break;case 21:As(l,d,y);break;case 22:y.mode&1?(pr=(C=pr)||y.memoizedState!==null,As(l,d,y),pr=C):As(l,d,y);break;default:As(l,d,y)}}function S3(l){var d=l.updateQueue;if(d!==null){l.updateQueue=null;var y=l.stateNode;y===null&&(y=l.stateNode=new UW),d.forEach(function(C){var R=XW.bind(null,l,C);y.has(C)||(y.add(C),C.then(R,R))})}}function ho(l,d){var y=d.deletions;if(y!==null)for(var C=0;C<y.length;C++){var R=y[C];try{var I=l,ee=d,fe=ee;e:for(;fe!==null;){switch(fe.tag){case 5:rr=fe.stateNode,fo=!1;break e;case 3:rr=fe.stateNode.containerInfo,fo=!0;break e;case 4:rr=fe.stateNode.containerInfo,fo=!0;break e}fe=fe.return}if(rr===null)throw Error(n(160));O3(I,ee,R),rr=null,fo=!1;var me=R.alternate;me!==null&&(me.return=null),R.return=null}catch(Ce){Sn(R,d,Ce)}}if(d.subtreeFlags&12854)for(d=d.child;d!==null;)P3(d,l),d=d.sibling}function P3(l,d){var y=l.alternate,C=l.flags;switch(l.tag){case 0:case 11:case 14:case 15:if(ho(d,l),Vo(l),C&4){try{Xd(3,l,l.return),yv(3,l)}catch(nt){Sn(l,l.return,nt)}try{Xd(5,l,l.return)}catch(nt){Sn(l,l.return,nt)}}break;case 1:ho(d,l),Vo(l),C&512&&y!==null&&Oc(y,y.return);break;case 5:if(ho(d,l),Vo(l),C&512&&y!==null&&Oc(y,y.return),l.flags&32){var R=l.stateNode;try{bt(R,"")}catch(nt){Sn(l,l.return,nt)}}if(C&4&&(R=l.stateNode,R!=null)){var I=l.memoizedProps,ee=y!==null?y.memoizedProps:I,fe=l.type,me=l.updateQueue;if(l.updateQueue=null,me!==null)try{fe==="input"&&I.type==="radio"&&I.name!=null&&ge(R,I),Nr(fe,ee);var Ce=Nr(fe,I);for(ee=0;ee<me.length;ee+=2){var Ie=me[ee],$e=me[ee+1];Ie==="style"?Gt(R,$e):Ie==="dangerouslySetInnerHTML"?Xe(R,$e):Ie==="children"?bt(R,$e):E(R,Ie,$e,Ce)}switch(fe){case"input":Ee(R,I);break;case"textarea":we(R,I);break;case"select":var Le=R._wrapperState.wasMultiple;R._wrapperState.wasMultiple=!!I.multiple;var Qe=I.value;Qe!=null?Ue(R,!!I.multiple,Qe,!1):Le!==!!I.multiple&&(I.defaultValue!=null?Ue(R,!!I.multiple,I.defaultValue,!0):Ue(R,!!I.multiple,I.multiple?[]:"",!1))}R[Os]=I}catch(nt){Sn(l,l.return,nt)}}break;case 6:if(ho(d,l),Vo(l),C&4){if(l.stateNode===null)throw Error(n(162));R=l.stateNode,I=l.memoizedProps;try{R.nodeValue=I}catch(nt){Sn(l,l.return,nt)}}break;case 3:if(ho(d,l),Vo(l),C&4&&y!==null&&y.memoizedState.isDehydrated)try{ni(d.containerInfo)}catch(nt){Sn(l,l.return,nt)}break;case 4:ho(d,l),Vo(l);break;case 13:ho(d,l),Vo(l),R=l.child,R.flags&8192&&(I=R.memoizedState!==null,R.stateNode.isHidden=I,!I||R.alternate!==null&&R.alternate.memoizedState!==null||(V_=gn())),C&4&&S3(l);break;case 22:if(Ie=y!==null&&y.memoizedState!==null,l.mode&1?(pr=(Ce=pr)||Ie,ho(d,l),pr=Ce):ho(d,l),Vo(l),C&8192){if(Ce=l.memoizedState!==null,(l.stateNode.isHidden=Ce)&&!Ie&&l.mode&1)for(Je=l,Ie=l.child;Ie!==null;){for($e=Je=Ie;Je!==null;){switch(Le=Je,Qe=Le.child,Le.tag){case 0:case 11:case 14:case 15:Xd(4,Le,Le.return);break;case 1:Oc(Le,Le.return);var tt=Le.stateNode;if(typeof tt.componentWillUnmount=="function"){C=Le,y=Le.return;try{d=C,tt.props=d.memoizedProps,tt.state=d.memoizedState,tt.componentWillUnmount()}catch(nt){Sn(C,y,nt)}}break;case 5:Oc(Le,Le.return);break;case 22:if(Le.memoizedState!==null){T3($e);continue}}Qe!==null?(Qe.return=Le,Je=Qe):T3($e)}Ie=Ie.sibling}e:for(Ie=null,$e=l;;){if($e.tag===5){if(Ie===null){Ie=$e;try{R=$e.stateNode,Ce?(I=R.style,typeof I.setProperty=="function"?I.setProperty("display","none","important"):I.display="none"):(fe=$e.stateNode,me=$e.memoizedProps.style,ee=me!=null&&me.hasOwnProperty("display")?me.display:null,fe.style.display=en("display",ee))}catch(nt){Sn(l,l.return,nt)}}}else if($e.tag===6){if(Ie===null)try{$e.stateNode.nodeValue=Ce?"":$e.memoizedProps}catch(nt){Sn(l,l.return,nt)}}else if(($e.tag!==22&&$e.tag!==23||$e.memoizedState===null||$e===l)&&$e.child!==null){$e.child.return=$e,$e=$e.child;continue}if($e===l)break e;for(;$e.sibling===null;){if($e.return===null||$e.return===l)break e;Ie===$e&&(Ie=null),$e=$e.return}Ie===$e&&(Ie=null),$e.sibling.return=$e.return,$e=$e.sibling}}break;case 19:ho(d,l),Vo(l),C&4&&S3(l);break;case 21:break;default:ho(d,l),Vo(l)}}function Vo(l){var d=l.flags;if(d&2){try{e:{for(var y=l.return;y!==null;){if(x3(y)){var C=y;break e}y=y.return}throw Error(n(160))}switch(C.tag){case 5:var R=C.stateNode;C.flags&32&&(bt(R,""),C.flags&=-33);var I=w3(l);B_(l,I,R);break;case 3:case 4:var ee=C.stateNode.containerInfo,fe=w3(l);F_(l,fe,ee);break;default:throw Error(n(161))}}catch(me){Sn(l,l.return,me)}l.flags&=-3}d&4096&&(l.flags&=-4097)}function VW(l,d,y){Je=l,C3(l)}function C3(l,d,y){for(var C=(l.mode&1)!==0;Je!==null;){var R=Je,I=R.child;if(R.tag===22&&C){var ee=R.memoizedState!==null||gv;if(!ee){var fe=R.alternate,me=fe!==null&&fe.memoizedState!==null||pr;fe=gv;var Ce=pr;if(gv=ee,(pr=me)&&!Ce)for(Je=R;Je!==null;)ee=Je,me=ee.child,ee.tag===22&&ee.memoizedState!==null?j3(R):me!==null?(me.return=ee,Je=me):j3(R);for(;I!==null;)Je=I,C3(I),I=I.sibling;Je=R,gv=fe,pr=Ce}E3(l)}else R.subtreeFlags&8772&&I!==null?(I.return=R,Je=I):E3(l)}}function E3(l){for(;Je!==null;){var d=Je;if(d.flags&8772){var y=d.alternate;try{if(d.flags&8772)switch(d.tag){case 0:case 11:case 15:pr||yv(5,d);break;case 1:var C=d.stateNode;if(d.flags&4&&!pr)if(y===null)C.componentDidMount();else{var R=d.elementType===d.type?y.memoizedProps:co(d.type,y.memoizedProps);C.componentDidUpdate(R,y.memoizedState,C.__reactInternalSnapshotBeforeUpdate)}var I=d.updateQueue;I!==null&&TA(d,I,C);break;case 3:var ee=d.updateQueue;if(ee!==null){if(y=null,d.child!==null)switch(d.child.tag){case 5:y=d.child.stateNode;break;case 1:y=d.child.stateNode}TA(d,ee,y)}break;case 5:var fe=d.stateNode;if(y===null&&d.flags&4){y=fe;var me=d.memoizedProps;switch(d.type){case"button":case"input":case"select":case"textarea":me.autoFocus&&y.focus();break;case"img":me.src&&(y.src=me.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(d.memoizedState===null){var Ce=d.alternate;if(Ce!==null){var Ie=Ce.memoizedState;if(Ie!==null){var $e=Ie.dehydrated;$e!==null&&ni($e)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}pr||d.flags&512&&$_(d)}catch(Le){Sn(d,d.return,Le)}}if(d===l){Je=null;break}if(y=d.sibling,y!==null){y.return=d.return,Je=y;break}Je=d.return}}function T3(l){for(;Je!==null;){var d=Je;if(d===l){Je=null;break}var y=d.sibling;if(y!==null){y.return=d.return,Je=y;break}Je=d.return}}function j3(l){for(;Je!==null;){var d=Je;try{switch(d.tag){case 0:case 11:case 15:var y=d.return;try{yv(4,d)}catch(me){Sn(d,y,me)}break;case 1:var C=d.stateNode;if(typeof C.componentDidMount=="function"){var R=d.return;try{C.componentDidMount()}catch(me){Sn(d,R,me)}}var I=d.return;try{$_(d)}catch(me){Sn(d,I,me)}break;case 5:var ee=d.return;try{$_(d)}catch(me){Sn(d,ee,me)}}}catch(me){Sn(d,d.return,me)}if(d===l){Je=null;break}var fe=d.sibling;if(fe!==null){fe.return=d.return,Je=fe;break}Je=d.return}}var WW=Math.ceil,bv=T.ReactCurrentDispatcher,U_=T.ReactCurrentOwner,Li=T.ReactCurrentBatchConfig,Mt=0,Kn=null,Mn=null,ir=0,ui=0,Sc=Ps(0),zn=0,Qd=null,Vl=0,_v=0,z_=0,Jd=null,Br=null,V_=0,Pc=1/0,ja=null,xv=!1,W_=null,ks=null,wv=!1,Rs=null,Ov=0,eh=0,q_=null,Sv=-1,Pv=0;function wr(){return Mt&6?gn():Sv!==-1?Sv:Sv=gn()}function Ns(l){return l.mode&1?Mt&2&&ir!==0?ir&-ir:EW.transition!==null?(Pv===0&&(Pv=Tm()),Pv):(l=kt,l!==0||(l=window.event,l=l===void 0?16:Et(l.type)),l):1}function po(l,d,y,C){if(50<eh)throw eh=0,q_=null,Error(n(185));ei(l,y,C),(!(Mt&2)||l!==Kn)&&(l===Kn&&(!(Mt&2)&&(_v|=y),zn===4&&Ms(l,ir)),Ur(l,C),y===1&&Mt===0&&!(d.mode&1)&&(Pc=gn()+500,Jm&&Es()))}function Ur(l,d){var y=l.callbackNode;qu(l,d);var C=Kt(l,l===Kn?ir:0);if(C===0)y!==null&&md(y),l.callbackNode=null,l.callbackPriority=0;else if(d=C&-C,l.callbackPriority!==d){if(y!=null&&md(y),d===1)l.tag===0?CW(k3.bind(null,l)):vA(k3.bind(null,l)),cr(function(){!(Mt&6)&&Es()}),y=null;else{switch(ls(C)){case 1:y=vd;break;case 4:y=Em;break;case 16:y=Vu;break;case 536870912:y=is;break;default:y=Vu}y=F3(y,A3.bind(null,l))}l.callbackPriority=d,l.callbackNode=y}}function A3(l,d){if(Sv=-1,Pv=0,Mt&6)throw Error(n(327));var y=l.callbackNode;if(Cc()&&l.callbackNode!==y)return null;var C=Kt(l,l===Kn?ir:0);if(C===0)return null;if(C&30||C&l.expiredLanes||d)d=Cv(l,C);else{d=C;var R=Mt;Mt|=2;var I=N3();(Kn!==l||ir!==d)&&(ja=null,Pc=gn()+500,ql(l,d));do try{GW();break}catch(fe){R3(l,fe)}while(!0);u_(),bv.current=I,Mt=R,Mn!==null?d=0:(Kn=null,ir=0,d=zn)}if(d!==0){if(d===2&&(R=lr(l),R!==0&&(C=R,d=H_(l,R))),d===1)throw y=Qd,ql(l,0),Ms(l,C),Ur(l,gn()),y;if(d===6)Ms(l,C);else{if(R=l.current.alternate,!(C&30)&&!qW(R)&&(d=Cv(l,C),d===2&&(I=lr(l),I!==0&&(C=I,d=H_(l,I))),d===1))throw y=Qd,ql(l,0),Ms(l,C),Ur(l,gn()),y;switch(l.finishedWork=R,l.finishedLanes=C,d){case 0:case 1:throw Error(n(345));case 2:Hl(l,Br,ja);break;case 3:if(Ms(l,C),(C&130023424)===C&&(d=V_+500-gn(),10<d)){if(Kt(l,0)!==0)break;if(R=l.suspendedLanes,(R&C)!==C){wr(),l.pingedLanes|=l.suspendedLanes&R;break}l.timeoutHandle=Bn(Hl.bind(null,l,Br,ja),d);break}Hl(l,Br,ja);break;case 4:if(Ms(l,C),(C&4194240)===C)break;for(d=l.eventTimes,R=-1;0<C;){var ee=31-wt(C);I=1<<ee,ee=d[ee],ee>R&&(R=ee),C&=~I}if(C=R,C=gn()-C,C=(120>C?120:480>C?480:1080>C?1080:1920>C?1920:3e3>C?3e3:4320>C?4320:1960*WW(C/1960))-C,10<C){l.timeoutHandle=Bn(Hl.bind(null,l,Br,ja),C);break}Hl(l,Br,ja);break;case 5:Hl(l,Br,ja);break;default:throw Error(n(329))}}}return Ur(l,gn()),l.callbackNode===y?A3.bind(null,l):null}function H_(l,d){var y=Jd;return l.current.memoizedState.isDehydrated&&(ql(l,d).flags|=256),l=Cv(l,d),l!==2&&(d=Br,Br=y,d!==null&&G_(d)),l}function G_(l){Br===null?Br=l:Br.push.apply(Br,l)}function qW(l){for(var d=l;;){if(d.flags&16384){var y=d.updateQueue;if(y!==null&&(y=y.stores,y!==null))for(var C=0;C<y.length;C++){var R=y[C],I=R.getSnapshot;R=R.value;try{if(!oi(I(),R))return!1}catch{return!1}}}if(y=d.child,d.subtreeFlags&16384&&y!==null)y.return=d,d=y;else{if(d===l)break;for(;d.sibling===null;){if(d.return===null||d.return===l)return!0;d=d.return}d.sibling.return=d.return,d=d.sibling}}return!0}function Ms(l,d){for(d&=~z_,d&=~_v,l.suspendedLanes|=d,l.pingedLanes&=~d,l=l.expirationTimes;0<d;){var y=31-wt(d),C=1<<y;l[y]=-1,d&=~C}}function k3(l){if(Mt&6)throw Error(n(327));Cc();var d=Kt(l,0);if(!(d&1))return Ur(l,gn()),null;var y=Cv(l,d);if(l.tag!==0&&y===2){var C=lr(l);C!==0&&(d=C,y=H_(l,C))}if(y===1)throw y=Qd,ql(l,0),Ms(l,d),Ur(l,gn()),y;if(y===6)throw Error(n(345));return l.finishedWork=l.current.alternate,l.finishedLanes=d,Hl(l,Br,ja),Ur(l,gn()),null}function K_(l,d){var y=Mt;Mt|=1;try{return l(d)}finally{Mt=y,Mt===0&&(Pc=gn()+500,Jm&&Es())}}function Wl(l){Rs!==null&&Rs.tag===0&&!(Mt&6)&&Cc();var d=Mt;Mt|=1;var y=Li.transition,C=kt;try{if(Li.transition=null,kt=1,l)return l()}finally{kt=C,Li.transition=y,Mt=d,!(Mt&6)&&Es()}}function Y_(){ui=Sc.current,nn(Sc)}function ql(l,d){l.finishedWork=null,l.finishedLanes=0;var y=l.timeoutHandle;if(y!==-1&&(l.timeoutHandle=-1,Nn(y)),Mn!==null)for(y=Mn.return;y!==null;){var C=y;switch(i_(C),C.tag){case 1:C=C.type.childContextTypes,C!=null&&Xm();break;case 3:xc(),nn(Dr),nn(fr),g_();break;case 5:m_(C);break;case 4:xc();break;case 13:nn(bn);break;case 19:nn(bn);break;case 10:c_(C.type._context);break;case 22:case 23:Y_()}y=y.return}if(Kn=l,Mn=l=Ls(l.current,null),ir=ui=d,zn=0,Qd=null,z_=_v=Vl=0,Br=Jd=null,Bl!==null){for(d=0;d<Bl.length;d++)if(y=Bl[d],C=y.interleaved,C!==null){y.interleaved=null;var R=C.next,I=y.pending;if(I!==null){var ee=I.next;I.next=R,C.next=ee}y.pending=C}Bl=null}return l}function R3(l,d){do{var y=Mn;try{if(u_(),uv.current=hv,cv){for(var C=_n.memoizedState;C!==null;){var R=C.queue;R!==null&&(R.pending=null),C=C.next}cv=!1}if(zl=0,Gn=Un=_n=null,Hd=!1,Gd=0,U_.current=null,y===null||y.return===null){zn=1,Qd=d,Mn=null;break}e:{var I=l,ee=y.return,fe=y,me=d;if(d=ir,fe.flags|=32768,me!==null&&typeof me=="object"&&typeof me.then=="function"){var Ce=me,Ie=fe,$e=Ie.tag;if(!(Ie.mode&1)&&($e===0||$e===11||$e===15)){var Le=Ie.alternate;Le?(Ie.updateQueue=Le.updateQueue,Ie.memoizedState=Le.memoizedState,Ie.lanes=Le.lanes):(Ie.updateQueue=null,Ie.memoizedState=null)}var Qe=r3(ee);if(Qe!==null){Qe.flags&=-257,i3(Qe,ee,fe,I,d),Qe.mode&1&&n3(I,Ce,d),d=Qe,me=Ce;var tt=d.updateQueue;if(tt===null){var nt=new Set;nt.add(me),d.updateQueue=nt}else tt.add(me);break e}else{if(!(d&1)){n3(I,Ce,d),Z_();break e}me=Error(n(426))}}else if(ln&&fe.mode&1){var Tn=r3(ee);if(Tn!==null){!(Tn.flags&65536)&&(Tn.flags|=256),i3(Tn,ee,fe,I,d),s_(wc(me,fe));break e}}I=me=wc(me,fe),zn!==4&&(zn=2),Jd===null?Jd=[I]:Jd.push(I),I=ee;do{switch(I.tag){case 3:I.flags|=65536,d&=-d,I.lanes|=d;var xe=e3(I,me,d);EA(I,xe);break e;case 1:fe=me;var ve=I.type,Oe=I.stateNode;if(!(I.flags&128)&&(typeof ve.getDerivedStateFromError=="function"||Oe!==null&&typeof Oe.componentDidCatch=="function"&&(ks===null||!ks.has(Oe)))){I.flags|=65536,d&=-d,I.lanes|=d;var We=t3(I,fe,d);EA(I,We);break e}}I=I.return}while(I!==null)}L3(y)}catch(ot){d=ot,Mn===y&&y!==null&&(Mn=y=y.return);continue}break}while(!0)}function N3(){var l=bv.current;return bv.current=hv,l===null?hv:l}function Z_(){(zn===0||zn===3||zn===2)&&(zn=4),Kn===null||!(Vl&268435455)&&!(_v&268435455)||Ms(Kn,ir)}function Cv(l,d){var y=Mt;Mt|=2;var C=N3();(Kn!==l||ir!==d)&&(ja=null,ql(l,d));do try{HW();break}catch(R){R3(l,R)}while(!0);if(u_(),Mt=y,bv.current=C,Mn!==null)throw Error(n(261));return Kn=null,ir=0,zn}function HW(){for(;Mn!==null;)M3(Mn)}function GW(){for(;Mn!==null&&!Db();)M3(Mn)}function M3(l){var d=$3(l.alternate,l,ui);l.memoizedProps=l.pendingProps,d===null?L3(l):Mn=d,U_.current=null}function L3(l){var d=l;do{var y=d.alternate;if(l=d.return,d.flags&32768){if(y=BW(y,d),y!==null){y.flags&=32767,Mn=y;return}if(l!==null)l.flags|=32768,l.subtreeFlags=0,l.deletions=null;else{zn=6,Mn=null;return}}else if(y=FW(y,d,ui),y!==null){Mn=y;return}if(d=d.sibling,d!==null){Mn=d;return}Mn=d=l}while(d!==null);zn===0&&(zn=5)}function Hl(l,d,y){var C=kt,R=Li.transition;try{Li.transition=null,kt=1,KW(l,d,y,C)}finally{Li.transition=R,kt=C}return null}function KW(l,d,y,C){do Cc();while(Rs!==null);if(Mt&6)throw Error(n(327));y=l.finishedWork;var R=l.finishedLanes;if(y===null)return null;if(l.finishedWork=null,l.finishedLanes=0,y===l.current)throw Error(n(177));l.callbackNode=null,l.callbackPriority=0;var I=y.lanes|y.childLanes;if(On(l,I),l===Kn&&(Mn=Kn=null,ir=0),!(y.subtreeFlags&2064)&&!(y.flags&2064)||wv||(wv=!0,F3(Vu,function(){return Cc(),null})),I=(y.flags&15990)!==0,y.subtreeFlags&15990||I){I=Li.transition,Li.transition=null;var ee=kt;kt=1;var fe=Mt;Mt|=4,U_.current=null,zW(l,y),P3(y,l),Ti(st),jl=!!Ze,st=Ze=null,l.current=y,VW(y),zu(),Mt=fe,kt=ee,Li.transition=I}else l.current=y;if(wv&&(wv=!1,Rs=l,Ov=R),I=l.pendingLanes,I===0&&(ks=null),Sl(y.stateNode),Ur(l,gn()),d!==null)for(C=l.onRecoverableError,y=0;y<d.length;y++)R=d[y],C(R.value,{componentStack:R.stack,digest:R.digest});if(xv)throw xv=!1,l=W_,W_=null,l;return Ov&1&&l.tag!==0&&Cc(),I=l.pendingLanes,I&1?l===q_?eh++:(eh=0,q_=l):eh=0,Es(),null}function Cc(){if(Rs!==null){var l=ls(Ov),d=Li.transition,y=kt;try{if(Li.transition=null,kt=16>l?16:l,Rs===null)var C=!1;else{if(l=Rs,Rs=null,Ov=0,Mt&6)throw Error(n(331));var R=Mt;for(Mt|=4,Je=l.current;Je!==null;){var I=Je,ee=I.child;if(Je.flags&16){var fe=I.deletions;if(fe!==null){for(var me=0;me<fe.length;me++){var Ce=fe[me];for(Je=Ce;Je!==null;){var Ie=Je;switch(Ie.tag){case 0:case 11:case 15:Xd(8,Ie,I)}var $e=Ie.child;if($e!==null)$e.return=Ie,Je=$e;else for(;Je!==null;){Ie=Je;var Le=Ie.sibling,Qe=Ie.return;if(_3(Ie),Ie===Ce){Je=null;break}if(Le!==null){Le.return=Qe,Je=Le;break}Je=Qe}}}var tt=I.alternate;if(tt!==null){var nt=tt.child;if(nt!==null){tt.child=null;do{var Tn=nt.sibling;nt.sibling=null,nt=Tn}while(nt!==null)}}Je=I}}if(I.subtreeFlags&2064&&ee!==null)ee.return=I,Je=ee;else e:for(;Je!==null;){if(I=Je,I.flags&2048)switch(I.tag){case 0:case 11:case 15:Xd(9,I,I.return)}var xe=I.sibling;if(xe!==null){xe.return=I.return,Je=xe;break e}Je=I.return}}var ve=l.current;for(Je=ve;Je!==null;){ee=Je;var Oe=ee.child;if(ee.subtreeFlags&2064&&Oe!==null)Oe.return=ee,Je=Oe;else e:for(ee=ve;Je!==null;){if(fe=Je,fe.flags&2048)try{switch(fe.tag){case 0:case 11:case 15:yv(9,fe)}}catch(ot){Sn(fe,fe.return,ot)}if(fe===ee){Je=null;break e}var We=fe.sibling;if(We!==null){We.return=fe.return,Je=We;break e}Je=fe.return}}if(Mt=R,Es(),Jr&&typeof Jr.onPostCommitFiberRoot=="function")try{Jr.onPostCommitFiberRoot(Ol,l)}catch{}C=!0}return C}finally{kt=y,Li.transition=d}}return!1}function I3(l,d,y){d=wc(y,d),d=e3(l,d,1),l=js(l,d,1),d=wr(),l!==null&&(ei(l,1,d),Ur(l,d))}function Sn(l,d,y){if(l.tag===3)I3(l,l,y);else for(;d!==null;){if(d.tag===3){I3(d,l,y);break}else if(d.tag===1){var C=d.stateNode;if(typeof d.type.getDerivedStateFromError=="function"||typeof C.componentDidCatch=="function"&&(ks===null||!ks.has(C))){l=wc(y,l),l=t3(d,l,1),d=js(d,l,1),l=wr(),d!==null&&(ei(d,1,l),Ur(d,l));break}}d=d.return}}function YW(l,d,y){var C=l.pingCache;C!==null&&C.delete(d),d=wr(),l.pingedLanes|=l.suspendedLanes&y,Kn===l&&(ir&y)===y&&(zn===4||zn===3&&(ir&130023424)===ir&&500>gn()-V_?ql(l,0):z_|=y),Ur(l,d)}function D3(l,d){d===0&&(l.mode&1?(d=as,as<<=1,!(as&130023424)&&(as=4194304)):d=1);var y=wr();l=Ca(l,d),l!==null&&(ei(l,d,y),Ur(l,y))}function ZW(l){var d=l.memoizedState,y=0;d!==null&&(y=d.retryLane),D3(l,y)}function XW(l,d){var y=0;switch(l.tag){case 13:var C=l.stateNode,R=l.memoizedState;R!==null&&(y=R.retryLane);break;case 19:C=l.stateNode;break;default:throw Error(n(314))}C!==null&&C.delete(d),D3(l,y)}var $3;$3=function(l,d,y){if(l!==null)if(l.memoizedProps!==d.pendingProps||Dr.current)Fr=!0;else{if(!(l.lanes&y)&&!(d.flags&128))return Fr=!1,$W(l,d,y);Fr=!!(l.flags&131072)}else Fr=!1,ln&&d.flags&1048576&&gA(d,tv,d.index);switch(d.lanes=0,d.tag){case 2:var C=d.type;vv(l,d),l=d.pendingProps;var R=pc(d,fr.current);_c(d,y),R=__(null,d,C,l,R,y);var I=x_();return d.flags|=1,typeof R=="object"&&R!==null&&typeof R.render=="function"&&R.$$typeof===void 0?(d.tag=1,d.memoizedState=null,d.updateQueue=null,$r(C)?(I=!0,Qm(d)):I=!1,d.memoizedState=R.state!==null&&R.state!==void 0?R.state:null,h_(d),R.updater=pv,d.stateNode=R,R._reactInternals=d,E_(d,C,l,y),d=k_(null,d,C,!0,I,y)):(d.tag=0,ln&&I&&r_(d),xr(null,d,R,y),d=d.child),d;case 16:C=d.elementType;e:{switch(vv(l,d),l=d.pendingProps,R=C._init,C=R(C._payload),d.type=C,R=d.tag=JW(C),l=co(C,l),R){case 0:d=A_(null,d,C,l,y);break e;case 1:d=c3(null,d,C,l,y);break e;case 11:d=o3(null,d,C,l,y);break e;case 14:d=a3(null,d,C,co(C.type,l),y);break e}throw Error(n(306,C,""))}return d;case 0:return C=d.type,R=d.pendingProps,R=d.elementType===C?R:co(C,R),A_(l,d,C,R,y);case 1:return C=d.type,R=d.pendingProps,R=d.elementType===C?R:co(C,R),c3(l,d,C,R,y);case 3:e:{if(f3(d),l===null)throw Error(n(387));C=d.pendingProps,I=d.memoizedState,R=I.element,CA(l,d),sv(d,C,null,y);var ee=d.memoizedState;if(C=ee.element,I.isDehydrated)if(I={element:C,isDehydrated:!1,cache:ee.cache,pendingSuspenseBoundaries:ee.pendingSuspenseBoundaries,transitions:ee.transitions},d.updateQueue.baseState=I,d.memoizedState=I,d.flags&256){R=wc(Error(n(423)),d),d=d3(l,d,C,y,R);break e}else if(C!==R){R=wc(Error(n(424)),d),d=d3(l,d,C,y,R);break e}else for(li=Bo(d.stateNode.containerInfo.firstChild),si=d,ln=!0,uo=null,y=SA(d,null,C,y),d.child=y;y;)y.flags=y.flags&-3|4096,y=y.sibling;else{if(gc(),C===R){d=Ta(l,d,y);break e}xr(l,d,C,y)}d=d.child}return d;case 5:return jA(d),l===null&&a_(d),C=d.type,R=d.pendingProps,I=l!==null?l.memoizedProps:null,ee=R.children,St(C,R)?ee=null:I!==null&&St(C,I)&&(d.flags|=32),u3(l,d),xr(l,d,ee,y),d.child;case 6:return l===null&&a_(d),null;case 13:return h3(l,d,y);case 4:return p_(d,d.stateNode.containerInfo),C=d.pendingProps,l===null?d.child=yc(d,null,C,y):xr(l,d,C,y),d.child;case 11:return C=d.type,R=d.pendingProps,R=d.elementType===C?R:co(C,R),o3(l,d,C,R,y);case 7:return xr(l,d,d.pendingProps,y),d.child;case 8:return xr(l,d,d.pendingProps.children,y),d.child;case 12:return xr(l,d,d.pendingProps.children,y),d.child;case 10:e:{if(C=d.type._context,R=d.pendingProps,I=d.memoizedProps,ee=R.value,Yt(iv,C._currentValue),C._currentValue=ee,I!==null)if(oi(I.value,ee)){if(I.children===R.children&&!Dr.current){d=Ta(l,d,y);break e}}else for(I=d.child,I!==null&&(I.return=d);I!==null;){var fe=I.dependencies;if(fe!==null){ee=I.child;for(var me=fe.firstContext;me!==null;){if(me.context===C){if(I.tag===1){me=Ea(-1,y&-y),me.tag=2;var Ce=I.updateQueue;if(Ce!==null){Ce=Ce.shared;var Ie=Ce.pending;Ie===null?me.next=me:(me.next=Ie.next,Ie.next=me),Ce.pending=me}}I.lanes|=y,me=I.alternate,me!==null&&(me.lanes|=y),f_(I.return,y,d),fe.lanes|=y;break}me=me.next}}else if(I.tag===10)ee=I.type===d.type?null:I.child;else if(I.tag===18){if(ee=I.return,ee===null)throw Error(n(341));ee.lanes|=y,fe=ee.alternate,fe!==null&&(fe.lanes|=y),f_(ee,y,d),ee=I.sibling}else ee=I.child;if(ee!==null)ee.return=I;else for(ee=I;ee!==null;){if(ee===d){ee=null;break}if(I=ee.sibling,I!==null){I.return=ee.return,ee=I;break}ee=ee.return}I=ee}xr(l,d,R.children,y),d=d.child}return d;case 9:return R=d.type,C=d.pendingProps.children,_c(d,y),R=Ni(R),C=C(R),d.flags|=1,xr(l,d,C,y),d.child;case 14:return C=d.type,R=co(C,d.pendingProps),R=co(C.type,R),a3(l,d,C,R,y);case 15:return s3(l,d,d.type,d.pendingProps,y);case 17:return C=d.type,R=d.pendingProps,R=d.elementType===C?R:co(C,R),vv(l,d),d.tag=1,$r(C)?(l=!0,Qm(d)):l=!1,_c(d,y),QA(d,C,R),E_(d,C,R,y),k_(null,d,C,!0,l,y);case 19:return m3(l,d,y);case 22:return l3(l,d,y)}throw Error(n(156,d.tag))};function F3(l,d){return Cm(l,d)}function QW(l,d,y,C){this.tag=l,this.key=y,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=d,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=C,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ii(l,d,y,C){return new QW(l,d,y,C)}function X_(l){return l=l.prototype,!(!l||!l.isReactComponent)}function JW(l){if(typeof l=="function")return X_(l)?1:0;if(l!=null){if(l=l.$$typeof,l===H)return 11;if(l===re)return 14}return 2}function Ls(l,d){var y=l.alternate;return y===null?(y=Ii(l.tag,d,l.key,l.mode),y.elementType=l.elementType,y.type=l.type,y.stateNode=l.stateNode,y.alternate=l,l.alternate=y):(y.pendingProps=d,y.type=l.type,y.flags=0,y.subtreeFlags=0,y.deletions=null),y.flags=l.flags&14680064,y.childLanes=l.childLanes,y.lanes=l.lanes,y.child=l.child,y.memoizedProps=l.memoizedProps,y.memoizedState=l.memoizedState,y.updateQueue=l.updateQueue,d=l.dependencies,y.dependencies=d===null?null:{lanes:d.lanes,firstContext:d.firstContext},y.sibling=l.sibling,y.index=l.index,y.ref=l.ref,y}function Ev(l,d,y,C,R,I){var ee=2;if(C=l,typeof l=="function")X_(l)&&(ee=1);else if(typeof l=="string")ee=5;else e:switch(l){case N:return Gl(y.children,R,I,d);case $:ee=8,R|=8;break;case W:return l=Ii(12,y,d,R|2),l.elementType=W,l.lanes=I,l;case J:return l=Ii(13,y,d,R),l.elementType=J,l.lanes=I,l;case Q:return l=Ii(19,y,d,R),l.elementType=Q,l.lanes=I,l;case se:return Tv(y,R,I,d);default:if(typeof l=="object"&&l!==null)switch(l.$$typeof){case B:ee=10;break e;case V:ee=9;break e;case H:ee=11;break e;case re:ee=14;break e;case ae:ee=16,C=null;break e}throw Error(n(130,l==null?l:typeof l,""))}return d=Ii(ee,y,d,R),d.elementType=l,d.type=C,d.lanes=I,d}function Gl(l,d,y,C){return l=Ii(7,l,C,d),l.lanes=y,l}function Tv(l,d,y,C){return l=Ii(22,l,C,d),l.elementType=se,l.lanes=y,l.stateNode={isHidden:!1},l}function Q_(l,d,y){return l=Ii(6,l,null,d),l.lanes=y,l}function J_(l,d,y){return d=Ii(4,l.children!==null?l.children:[],l.key,d),d.lanes=y,d.stateNode={containerInfo:l.containerInfo,pendingChildren:null,implementation:l.implementation},d}function eq(l,d,y,C,R){this.tag=d,this.containerInfo=l,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ss(0),this.expirationTimes=ss(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ss(0),this.identifierPrefix=C,this.onRecoverableError=R,this.mutableSourceEagerHydrationData=null}function e1(l,d,y,C,R,I,ee,fe,me){return l=new eq(l,d,y,fe,me),d===1?(d=1,I===!0&&(d|=8)):d=0,I=Ii(3,null,null,d),l.current=I,I.stateNode=l,I.memoizedState={element:C,isDehydrated:y,cache:null,transitions:null,pendingSuspenseBoundaries:null},h_(I),l}function tq(l,d,y){var C=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:j,key:C==null?null:""+C,children:l,containerInfo:d,implementation:y}}function B3(l){if(!l)return Cs;l=l._reactInternals;e:{if(Ro(l)!==l||l.tag!==1)throw Error(n(170));var d=l;do{switch(d.tag){case 3:d=d.stateNode.context;break e;case 1:if($r(d.type)){d=d.stateNode.__reactInternalMemoizedMergedChildContext;break e}}d=d.return}while(d!==null);throw Error(n(171))}if(l.tag===1){var y=l.type;if($r(y))return pA(l,y,d)}return d}function U3(l,d,y,C,R,I,ee,fe,me){return l=e1(y,C,!0,l,R,I,ee,fe,me),l.context=B3(null),y=l.current,C=wr(),R=Ns(y),I=Ea(C,R),I.callback=d??null,js(y,I,R),l.current.lanes=R,ei(l,R,C),Ur(l,C),l}function jv(l,d,y,C){var R=d.current,I=wr(),ee=Ns(R);return y=B3(y),d.context===null?d.context=y:d.pendingContext=y,d=Ea(I,ee),d.payload={element:l},C=C===void 0?null:C,C!==null&&(d.callback=C),l=js(R,d,ee),l!==null&&(po(l,R,ee,I),av(l,R,ee)),ee}function Av(l){if(l=l.current,!l.child)return null;switch(l.child.tag){case 5:return l.child.stateNode;default:return l.child.stateNode}}function z3(l,d){if(l=l.memoizedState,l!==null&&l.dehydrated!==null){var y=l.retryLane;l.retryLane=y!==0&&y<d?y:d}}function t1(l,d){z3(l,d),(l=l.alternate)&&z3(l,d)}function nq(){return null}var V3=typeof reportError=="function"?reportError:function(l){console.error(l)};function n1(l){this._internalRoot=l}kv.prototype.render=n1.prototype.render=function(l){var d=this._internalRoot;if(d===null)throw Error(n(409));jv(l,d,null,null)},kv.prototype.unmount=n1.prototype.unmount=function(){var l=this._internalRoot;if(l!==null){this._internalRoot=null;var d=l.containerInfo;Wl(function(){jv(null,l,null,null)}),d[Dt]=null}};function kv(l){this._internalRoot=l}kv.prototype.unstable_scheduleHydration=function(l){if(l){var d=Ku();l={blockedOn:null,target:l,priority:d};for(var y=0;y<Fn.length&&d!==0&&d<Fn[y].priority;y++);Fn.splice(y,0,l),y===0&&Yu(l)}};function r1(l){return!(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11)}function Rv(l){return!(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11&&(l.nodeType!==8||l.nodeValue!==" react-mount-point-unstable "))}function W3(){}function rq(l,d,y,C,R){if(R){if(typeof C=="function"){var I=C;C=function(){var Ce=Av(ee);I.call(Ce)}}var ee=U3(d,C,l,0,null,!1,!1,"",W3);return l._reactRootContainer=ee,l[Dt]=ee.current,xs(l.nodeType===8?l.parentNode:l),Wl(),ee}for(;R=l.lastChild;)l.removeChild(R);if(typeof C=="function"){var fe=C;C=function(){var Ce=Av(me);fe.call(Ce)}}var me=e1(l,0,!1,null,null,!1,!1,"",W3);return l._reactRootContainer=me,l[Dt]=me.current,xs(l.nodeType===8?l.parentNode:l),Wl(function(){jv(d,me,y,C)}),me}function Nv(l,d,y,C,R){var I=y._reactRootContainer;if(I){var ee=I;if(typeof R=="function"){var fe=R;R=function(){var me=Av(ee);fe.call(me)}}jv(d,ee,l,R)}else ee=rq(y,d,l,R,C);return Av(ee)}Hu=function(l){switch(l.tag){case 3:var d=l.stateNode;if(d.current.memoizedState.isDehydrated){var y=gt(d.pendingLanes);y!==0&&(io(d,y|1),Ur(d,gn()),!(Mt&6)&&(Pc=gn()+500,Es()))}break;case 13:Wl(function(){var C=Ca(l,1);if(C!==null){var R=wr();po(C,l,1,R)}}),t1(l,1)}},fa=function(l){if(l.tag===13){var d=Ca(l,134217728);if(d!==null){var y=wr();po(d,l,134217728,y)}t1(l,134217728)}},Gu=function(l){if(l.tag===13){var d=Ns(l),y=Ca(l,d);if(y!==null){var C=wr();po(y,l,d,C)}t1(l,d)}},Ku=function(){return kt},Pl=function(l,d){var y=kt;try{return kt=l,d()}finally{kt=y}},Mr=function(l,d,y){switch(d){case"input":if(Ee(l,y),d=y.name,y.type==="radio"&&d!=null){for(y=l;y.parentNode;)y=y.parentNode;for(y=y.querySelectorAll("input[name="+JSON.stringify(""+d)+'][type="radio"]'),d=0;d<y.length;d++){var C=y[d];if(C!==l&&C.form===l.form){var R=dc(C);if(!R)throw Error(n(90));ie(C),Ee(C,R)}}}break;case"textarea":we(l,y);break;case"select":d=y.value,d!=null&&Ue(l,!!y.multiple,d,!1)}},hn=K_,sn=Wl;var iq={usingClientEntryPoint:!1,Events:[xa,wa,dc,rs,ko,K_]},th={findFiberByHostInstance:_a,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},oq={bundleType:th.bundleType,version:th.version,rendererPackageName:th.rendererPackageName,rendererConfig:th.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:T.ReactCurrentDispatcher,findHostInstanceByFiber:function(l){return l=Sm(l),l===null?null:l.stateNode},findFiberByHostInstance:th.findFiberByHostInstance||nq,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 Mv=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Mv.isDisabled&&Mv.supportsFiber)try{Ol=Mv.inject(oq),Jr=Mv}catch{}}return zr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=iq,zr.createPortal=function(l,d){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!r1(d))throw Error(n(200));return tq(l,d,null,y)},zr.createRoot=function(l,d){if(!r1(l))throw Error(n(299));var y=!1,C="",R=V3;return d!=null&&(d.unstable_strictMode===!0&&(y=!0),d.identifierPrefix!==void 0&&(C=d.identifierPrefix),d.onRecoverableError!==void 0&&(R=d.onRecoverableError)),d=e1(l,1,!1,null,null,y,!1,C,R),l[Dt]=d.current,xs(l.nodeType===8?l.parentNode:l),new n1(d)},zr.findDOMNode=function(l){if(l==null)return null;if(l.nodeType===1)return l;var d=l._reactInternals;if(d===void 0)throw typeof l.render=="function"?Error(n(188)):(l=Object.keys(l).join(","),Error(n(268,l)));return l=Sm(d),l=l===null?null:l.stateNode,l},zr.flushSync=function(l){return Wl(l)},zr.hydrate=function(l,d,y){if(!Rv(d))throw Error(n(200));return Nv(null,l,d,!0,y)},zr.hydrateRoot=function(l,d,y){if(!r1(l))throw Error(n(405));var C=y!=null&&y.hydratedSources||null,R=!1,I="",ee=V3;if(y!=null&&(y.unstable_strictMode===!0&&(R=!0),y.identifierPrefix!==void 0&&(I=y.identifierPrefix),y.onRecoverableError!==void 0&&(ee=y.onRecoverableError)),d=U3(d,null,l,1,y??null,R,!1,I,ee),l[Dt]=d.current,xs(l),C)for(l=0;l<C.length;l++)y=C[l],R=y._getVersion,R=R(y._source),d.mutableSourceEagerHydrationData==null?d.mutableSourceEagerHydrationData=[y,R]:d.mutableSourceEagerHydrationData.push(y,R);return new kv(d)},zr.render=function(l,d,y){if(!Rv(d))throw Error(n(200));return Nv(null,l,d,!1,y)},zr.unmountComponentAtNode=function(l){if(!Rv(l))throw Error(n(40));return l._reactRootContainer?(Wl(function(){Nv(null,null,l,!1,function(){l._reactRootContainer=null,l[Dt]=null})}),!0):!1},zr.unstable_batchedUpdates=K_,zr.unstable_renderSubtreeIntoContainer=function(l,d,y,C){if(!Rv(y))throw Error(n(200));if(l==null||l._reactInternals===void 0)throw Error(n(38));return Nv(l,d,y,!1,C)},zr.version="18.3.1-next-f1338f8080-20240426",zr}var Q3;function g8(){if(Q3)return a1.exports;Q3=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),a1.exports=mq(),a1.exports}var J3;function vq(){if(J3)return Iv;J3=1;var e=g8();return Iv.createRoot=e.createRoot,Iv.hydrateRoot=e.hydrateRoot,Iv}var gq=vq(),F=x0();const Z=Nt(F),GO=uq({__proto__:null,default:Z},[F]);var u1={exports:{}},c1={};/**
* @license React
* use-sync-external-store-with-selector.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var ek;function yq(){if(ek)return c1;ek=1;var e=x0();function t(c,u){return c===u&&(c!==0||1/c===1/u)||c!==c&&u!==u}var n=typeof Object.is=="function"?Object.is:t,r=e.useSyncExternalStore,i=e.useRef,o=e.useEffect,a=e.useMemo,s=e.useDebugValue;return c1.useSyncExternalStoreWithSelector=function(c,u,h,p,v){var b=i(null);if(b.current===null){var x={hasValue:!1,value:null};b.current=x}else x=b.current;b=a(function(){function w(A){if(!O){if(O=!0,P=A,A=p(A),v!==void 0&&x.hasValue){var j=x.value;if(v(j,A))return E=j}return E=A}if(j=E,n(P,A))return j;var N=p(A);return v!==void 0&&v(j,N)?j:(P=A,E=N)}var O=!1,P,E,T=h===void 0?null:h;return[function(){return w(u())},T===null?void 0:function(){return w(T())}]},[u,h,p,v]);var _=r(c,b[0],b[1]);return o(function(){x.hasValue=!0,x.value=_},[_]),s(_),_},c1}var tk;function bq(){return tk||(tk=1,u1.exports=yq()),u1.exports}bq();var Ft="default"in GO?Z:GO,nk=Symbol.for("react-redux-context"),rk=typeof globalThis<"u"?globalThis:{};function _q(){if(!Ft.createContext)return{};const e=rk[nk]??(rk[nk]=new Map);let t=e.get(Ft.createContext);return t||(t=Ft.createContext(null),e.set(Ft.createContext,t)),t}var y8=_q(),xq=()=>{throw new Error("uSES not initialized!")},wq=Symbol.for("react.element"),Oq=Symbol.for("react.portal"),Sq=Symbol.for("react.fragment"),Pq=Symbol.for("react.strict_mode"),Cq=Symbol.for("react.profiler"),Eq=Symbol.for("react.provider"),Tq=Symbol.for("react.context"),jq=Symbol.for("react.server_context"),b8=Symbol.for("react.forward_ref"),Aq=Symbol.for("react.suspense"),kq=Symbol.for("react.suspense_list"),TE=Symbol.for("react.memo"),Rq=Symbol.for("react.lazy"),Nq=b8,Mq=TE;function Lq(e){if(typeof e=="object"&&e!==null){const t=e.$$typeof;switch(t){case wq:{const n=e.type;switch(n){case Sq:case Cq:case Pq:case Aq:case kq:return n;default:{const r=n&&n.$$typeof;switch(r){case jq:case Tq:case b8:case Rq:case TE:case Eq:return r;default:return t}}}}case Oq:return t}}}function Iq(e){return Lq(e)===TE}function Dq(e,t,n,r,{areStatesEqual:i,areOwnPropsEqual:o,areStatePropsEqual:a}){let s=!1,c,u,h,p,v;function b(P,E){return c=P,u=E,h=e(c,u),p=t(r,u),v=n(h,p,u),s=!0,v}function x(){return h=e(c,u),t.dependsOnOwnProps&&(p=t(r,u)),v=n(h,p,u),v}function _(){return e.dependsOnOwnProps&&(h=e(c,u)),t.dependsOnOwnProps&&(p=t(r,u)),v=n(h,p,u),v}function w(){const P=e(c,u),E=!a(P,h);return h=P,E&&(v=n(h,p,u)),v}function O(P,E){const T=!o(E,u),A=!i(P,c,E,u);return c=P,u=E,T&&A?x():T?_():A?w():v}return function(E,T){return s?O(E,T):b(E,T)}}function $q(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...i}){const o=t(e,i),a=n(e,i),s=r(e,i);return Dq(o,a,s,e,i)}function Fq(e,t){const n={};for(const r in e){const i=e[r];typeof i=="function"&&(n[r]=(...o)=>t(i(...o)))}return n}function KO(e){return function(n){const r=e(n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function ik(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function _8(e,t){return function(r,{displayName:i}){const o=function(s,c){return o.dependsOnOwnProps?o.mapToProps(s,c):o.mapToProps(s,void 0)};return o.dependsOnOwnProps=!0,o.mapToProps=function(s,c){o.mapToProps=e,o.dependsOnOwnProps=ik(e);let u=o(s,c);return typeof u=="function"&&(o.mapToProps=u,o.dependsOnOwnProps=ik(u),u=o(s,c)),u},o}}function jE(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function Bq(e){return e&&typeof e=="object"?KO(t=>Fq(e,t)):e?typeof e=="function"?_8(e):jE(e,"mapDispatchToProps"):KO(t=>({dispatch:t}))}function Uq(e){return e?typeof e=="function"?_8(e):jE(e,"mapStateToProps"):KO(()=>({}))}function zq(e,t,n){return{...n,...e,...t}}function Vq(e){return function(n,{displayName:r,areMergedPropsEqual:i}){let o=!1,a;return function(c,u,h){const p=e(c,u,h);return o?i(p,a)||(a=p):(o=!0,a=p),a}}}function Wq(e){return e?typeof e=="function"?Vq(e):jE(e,"mergeProps"):()=>zq}function qq(e){e()}function Hq(){let e=null,t=null;return{clear(){e=null,t=null},notify(){qq(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var ok={notify(){},get:()=>[]};function x8(e,t){let n,r=ok,i=0,o=!1;function a(_){h();const w=r.subscribe(_);let O=!1;return()=>{O||(O=!0,w(),p())}}function s(){r.notify()}function c(){x.onStateChange&&x.onStateChange()}function u(){return o}function h(){i++,n||(n=t?t.addNestedSub(c):e.subscribe(c),r=Hq())}function p(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=ok)}function v(){o||(o=!0,h())}function b(){o&&(o=!1,p())}const x={addNestedSub:a,notifyNestedSubs:s,handleChangeWrapper:c,isSubscribed:u,trySubscribe:v,tryUnsubscribe:b,getListeners:()=>r};return x}var Gq=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Kq=typeof navigator<"u"&&navigator.product==="ReactNative",wg=Gq||Kq?Ft.useLayoutEffect:Ft.useEffect;function ak(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function f1(e,t){if(ak(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!ak(e[n[i]],t[n[i]]))return!1;return!0}var Yq={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Zq={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Xq={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},w8={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Qq={[Nq]:Xq,[Mq]:w8};function sk(e){return Iq(e)?w8:Qq[e.$$typeof]||Yq}var Jq=Object.defineProperty,eH=Object.getOwnPropertyNames,lk=Object.getOwnPropertySymbols,tH=Object.getOwnPropertyDescriptor,nH=Object.getPrototypeOf,uk=Object.prototype;function YO(e,t){if(typeof t!="string"){if(uk){const o=nH(t);o&&o!==uk&&YO(e,o)}let n=eH(t);lk&&(n=n.concat(lk(t)));const r=sk(e),i=sk(t);for(let o=0;o<n.length;++o){const a=n[o];if(!Zq[a]&&!(i&&i[a])&&!(r&&r[a])){const s=tH(t,a);try{Jq(e,a,s)}catch{}}}}return e}var O8=xq,rH=e=>{O8=e},iH=[null,null];function oH(e,t,n){wg(()=>e(...t),n)}function aH(e,t,n,r,i,o){e.current=r,n.current=!1,i.current&&(i.current=null,o())}function sH(e,t,n,r,i,o,a,s,c,u,h){if(!e)return()=>{};let p=!1,v=null;const b=()=>{if(p||!s.current)return;const _=t.getState();let w,O;try{w=r(_,i.current)}catch(P){O=P,v=P}O||(v=null),w===o.current?a.current||u():(o.current=w,c.current=w,a.current=!0,h())};return n.onStateChange=b,n.trySubscribe(),b(),()=>{if(p=!0,n.tryUnsubscribe(),n.onStateChange=null,v)throw v}}function lH(e,t){return e===t}function uH(e,t,n,{pure:r,areStatesEqual:i=lH,areOwnPropsEqual:o=f1,areStatePropsEqual:a=f1,areMergedPropsEqual:s=f1,forwardRef:c=!1,context:u=y8}={}){const h=u,p=Uq(e),v=Bq(t),b=Wq(n),x=!!e;return w=>{const O=w.displayName||w.name||"Component",P=`Connect(${O})`,E={shouldHandleStateChanges:x,displayName:P,wrappedComponentName:O,WrappedComponent:w,initMapStateToProps:p,initMapDispatchToProps:v,initMergeProps:b,areStatesEqual:i,areStatePropsEqual:a,areOwnPropsEqual:o,areMergedPropsEqual:s};function T(N){const[$,W,B]=Ft.useMemo(()=>{const{reactReduxForwardedRef:ie,...he}=N;return[N.context,ie,he]},[N]),V=Ft.useMemo(()=>{let ie=h;return $!=null&&$.Consumer,ie},[$,h]),H=Ft.useContext(V),J=!!N.store&&!!N.store.getState&&!!N.store.dispatch,Q=!!H&&!!H.store,re=J?N.store:H.store,ae=Q?H.getServerState:re.getState,se=Ft.useMemo(()=>$q(re.dispatch,E),[re]),[oe,K]=Ft.useMemo(()=>{if(!x)return iH;const ie=x8(re,J?void 0:H.subscription),he=ie.notifyNestedSubs.bind(ie);return[ie,he]},[re,J,H]),G=Ft.useMemo(()=>J?H:{...H,subscription:oe},[J,H,oe]),z=Ft.useRef(void 0),ne=Ft.useRef(B),X=Ft.useRef(void 0),le=Ft.useRef(!1),ce=Ft.useRef(!1),de=Ft.useRef(void 0);wg(()=>(ce.current=!0,()=>{ce.current=!1}),[]);const be=Ft.useMemo(()=>()=>X.current&&B===ne.current?X.current:se(re.getState(),B),[re,B]),M=Ft.useMemo(()=>he=>oe?sH(x,re,oe,se,ne,z,le,ce,X,K,he):()=>{},[oe]);oH(aH,[ne,z,le,B,X,K]);let D;try{D=O8(M,be,ae?()=>se(ae(),B):be)}catch(ie){throw de.current&&(ie.message+=`
The error may be correlated with this previous error:
${de.current.stack}
`),ie}wg(()=>{de.current=void 0,X.current=void 0,z.current=D});const Y=Ft.useMemo(()=>Ft.createElement(w,{...D,ref:W}),[W,w,D]);return Ft.useMemo(()=>x?Ft.createElement(V.Provider,{value:G},Y):Y,[V,Y,G])}const j=Ft.memo(T);if(j.WrappedComponent=w,j.displayName=T.displayName=P,c){const $=Ft.forwardRef(function(B,V){return Ft.createElement(j,{...B,reactReduxForwardedRef:V})});return $.displayName=P,$.WrappedComponent=w,YO($,w)}return YO(j,w)}}var S8=uH;function cH({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",identityFunctionCheck:o="once"}){const a=Ft.useMemo(()=>{const u=x8(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:i,identityFunctionCheck:o}},[e,r,i,o]),s=Ft.useMemo(()=>e.getState(),[e]);wg(()=>{const{subscription:u}=a;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),s!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[a,s]);const c=t||y8;return Ft.createElement(c.Provider,{value:a},n)}var P8=cH;rH(F.useSyncExternalStore);var AE=g8();const su=Nt(AE);/**
* @remix-run/router v1.21.0
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function Gh(){return Gh=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},Gh.apply(this,arguments)}var Hs;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Hs||(Hs={}));const ck="popstate";function fH(e){e===void 0&&(e={});function t(r,i){let{pathname:o,search:a,hash:s}=r.location;return ZO("",{pathname:o,search:a,hash:s},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:Og(i)}return hH(t,n,null,e)}function wn(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function C8(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function dH(){return Math.random().toString(36).substr(2,8)}function fk(e,t){return{usr:e.state,key:e.key,idx:t}}function ZO(e,t,n,r){return n===void 0&&(n=null),Gh({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Hf(t):t,{state:n,key:t&&t.key||r||dH()})}function Og(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Hf(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function hH(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s=Hs.Pop,c=null,u=h();u==null&&(u=0,a.replaceState(Gh({},a.state,{idx:u}),""));function h(){return(a.state||{idx:null}).idx}function p(){s=Hs.Pop;let w=h(),O=w==null?null:w-u;u=w,c&&c({action:s,location:_.location,delta:O})}function v(w,O){s=Hs.Push;let P=ZO(_.location,w,O);u=h()+1;let E=fk(P,u),T=_.createHref(P);try{a.pushState(E,"",T)}catch(A){if(A instanceof DOMException&&A.name==="DataCloneError")throw A;i.location.assign(T)}o&&c&&c({action:s,location:_.location,delta:1})}function b(w,O){s=Hs.Replace;let P=ZO(_.location,w,O);u=h();let E=fk(P,u),T=_.createHref(P);a.replaceState(E,"",T),o&&c&&c({action:s,location:_.location,delta:0})}function x(w){let O=i.location.origin!=="null"?i.location.origin:i.location.href,P=typeof w=="string"?w:Og(w);return P=P.replace(/ $/,"%20"),wn(O,"No window.location.(origin|href) available to create URL for href: "+P),new URL(P,O)}let _={get action(){return s},get location(){return e(i,a)},listen(w){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(ck,p),c=w,()=>{i.removeEventListener(ck,p),c=null}},createHref(w){return t(i,w)},createURL:x,encodeLocation(w){let O=x(w);return{pathname:O.pathname,search:O.search,hash:O.hash}},push:v,replace:b,go(w){return a.go(w)}};return _}var dk;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(dk||(dk={}));function pH(e,t,n){return n===void 0&&(n="/"),mH(e,t,n,!1)}function mH(e,t,n,r){let i=typeof t=="string"?Hf(t):t,o=of(i.pathname||"/",n);if(o==null)return null;let a=E8(e);vH(a);let s=null;for(let c=0;s==null&&c<a.length;++c){let u=EH(o);s=PH(a[c],u,r)}return s}function E8(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(o,a,s)=>{let c={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};c.relativePath.startsWith("/")&&(wn(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let u=Xs([r,c.relativePath]),h=n.concat(c);o.children&&o.children.length>0&&(wn(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),E8(o.children,t,h,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:OH(u,o.index),routesMeta:h})};return e.forEach((o,a)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))i(o,a);else for(let c of T8(o.path))i(o,a,c)}),t}function T8(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let a=T8(r.join("/")),s=[];return s.push(...a.map(c=>c===""?o:[o,c].join("/"))),i&&s.push(...a),s.map(c=>e.startsWith("/")&&c===""?"/":c)}function vH(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:SH(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const gH=/^:[\w-]+$/,yH=3,bH=2,_H=1,xH=10,wH=-2,hk=e=>e==="*";function OH(e,t){let n=e.split("/"),r=n.length;return n.some(hk)&&(r+=wH),t&&(r+=bH),n.filter(i=>!hk(i)).reduce((i,o)=>i+(gH.test(o)?yH:o===""?_H:xH),r)}function SH(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function PH(e,t,n){let{routesMeta:r}=e,i={},o="/",a=[];for(let s=0;s<r.length;++s){let c=r[s],u=s===r.length-1,h=o==="/"?t:t.slice(o.length)||"/",p=Sg({path:c.relativePath,caseSensitive:c.caseSensitive,end:u},h),v=c.route;if(!p&&u&&n&&!r[r.length-1].route.index&&(p=Sg({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},h)),!p)return null;Object.assign(i,p.params),a.push({params:i,pathname:Xs([o,p.pathname]),pathnameBase:kH(Xs([o,p.pathnameBase])),route:v}),p.pathnameBase!=="/"&&(o=Xs([o,p.pathnameBase]))}return a}function Sg(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=CH(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:r.reduce((u,h,p)=>{let{paramName:v,isOptional:b}=h;if(v==="*"){let _=s[p]||"";a=o.slice(0,o.length-_.length).replace(/(.)\/+$/,"$1")}const x=s[p];return b&&!x?u[v]=void 0:u[v]=(x||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:a,pattern:e}}function CH(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),C8(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,c)=>(r.push({paramName:s,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function EH(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return C8(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function of(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function TH(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Hf(e):e;return{pathname:n?n.startsWith("/")?n:jH(n,t):t,search:RH(r),hash:NH(i)}}function jH(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function d1(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function AH(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function kE(e,t){let n=AH(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function RE(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Hf(e):(i=Gh({},e),wn(!i.pathname||!i.pathname.includes("?"),d1("?","pathname","search",i)),wn(!i.pathname||!i.pathname.includes("#"),d1("#","pathname","hash",i)),wn(!i.search||!i.search.includes("#"),d1("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,s;if(a==null)s=n;else{let p=t.length-1;if(!r&&a.startsWith("..")){let v=a.split("/");for(;v[0]==="..";)v.shift(),p-=1;i.pathname=v.join("/")}s=p>=0?t[p]:"/"}let c=TH(i,s),u=a&&a!=="/"&&a.endsWith("/"),h=(o||a===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(u||h)&&(c.pathname+="/"),c}const Xs=e=>e.join("/").replace(/\/\/+/g,"/"),kH=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),RH=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,NH=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function MH(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const j8=["post","put","patch","delete"];new Set(j8);const LH=["get",...j8];new Set(LH);/**
* React Router v6.28.0
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function Kh(){return Kh=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},Kh.apply(this,arguments)}const w0=F.createContext(null),A8=F.createContext(null),Ka=F.createContext(null),O0=F.createContext(null),Ya=F.createContext({outlet:null,matches:[],isDataRoute:!1}),k8=F.createContext(null);function IH(e,t){let{relative:n}=t===void 0?{}:t;Nu()||wn(!1);let{basename:r,navigator:i}=F.useContext(Ka),{hash:o,pathname:a,search:s}=S0(e,{relative:n}),c=a;return r!=="/"&&(c=a==="/"?r:Xs([r,a])),i.createHref({pathname:c,search:s,hash:o})}function Nu(){return F.useContext(O0)!=null}function Kr(){return Nu()||wn(!1),F.useContext(O0).location}function R8(e){F.useContext(Ka).static||F.useLayoutEffect(e)}function oa(){let{isDataRoute:e}=F.useContext(Ya);return e?YH():DH()}function DH(){Nu()||wn(!1);let e=F.useContext(w0),{basename:t,future:n,navigator:r}=F.useContext(Ka),{matches:i}=F.useContext(Ya),{pathname:o}=Kr(),a=JSON.stringify(kE(i,n.v7_relativeSplatPath)),s=F.useRef(!1);return R8(()=>{s.current=!0}),F.useCallback(function(u,h){if(h===void 0&&(h={}),!s.current)return;if(typeof u=="number"){r.go(u);return}let p=RE(u,JSON.parse(a),o,h.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:Xs([t,p.pathname])),(h.replace?r.replace:r.push)(p,h.state,h)},[t,r,a,o,e])}function Gf(){let{matches:e}=F.useContext(Ya),t=e[e.length-1];return t?t.params:{}}function S0(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=F.useContext(Ka),{matches:i}=F.useContext(Ya),{pathname:o}=Kr(),a=JSON.stringify(kE(i,r.v7_relativeSplatPath));return F.useMemo(()=>RE(e,JSON.parse(a),o,n==="path"),[e,a,o,n])}function $H(e,t){return FH(e,t)}function FH(e,t,n,r){Nu()||wn(!1);let{navigator:i}=F.useContext(Ka),{matches:o}=F.useContext(Ya),a=o[o.length-1],s=a?a.params:{};a&&a.pathname;let c=a?a.pathnameBase:"/";a&&a.route;let u=Kr(),h;if(t){var p;let w=typeof t=="string"?Hf(t):t;c==="/"||(p=w.pathname)!=null&&p.startsWith(c)||wn(!1),h=w}else h=u;let v=h.pathname||"/",b=v;if(c!=="/"){let w=c.replace(/^\//,"").split("/");b="/"+v.replace(/^\//,"").split("/").slice(w.length).join("/")}let x=pH(e,{pathname:b}),_=WH(x&&x.map(w=>Object.assign({},w,{params:Object.assign({},s,w.params),pathname:Xs([c,i.encodeLocation?i.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?c:Xs([c,i.encodeLocation?i.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),o,n,r);return t&&_?F.createElement(O0.Provider,{value:{location:Kh({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:Hs.Pop}},_):_}function BH(){let e=KH(),t=MH(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return F.createElement(F.Fragment,null,F.createElement("h2",null,"Unexpected Application Error!"),F.createElement("h3",{style:{fontStyle:"italic"}},t),n?F.createElement("pre",{style:i},n):null,null)}const UH=F.createElement(BH,null);class zH extends F.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?F.createElement(Ya.Provider,{value:this.props.routeContext},F.createElement(k8.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function VH(e){let{routeContext:t,match:n,children:r}=e,i=F.useContext(w0);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),F.createElement(Ya.Provider,{value:t},r)}function WH(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,s=(i=n)==null?void 0:i.errors;if(s!=null){let h=a.findIndex(p=>p.route.id&&(s==null?void 0:s[p.route.id])!==void 0);h>=0||wn(!1),a=a.slice(0,Math.min(a.length,h+1))}let c=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let h=0;h<a.length;h++){let p=a[h];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(u=h),p.route.id){let{loaderData:v,errors:b}=n,x=p.route.loader&&v[p.route.id]===void 0&&(!b||b[p.route.id]===void 0);if(p.route.lazy||x){c=!0,u>=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((h,p,v)=>{let b,x=!1,_=null,w=null;n&&(b=s&&p.route.id?s[p.route.id]:void 0,_=p.route.errorElement||UH,c&&(u<0&&v===0?(x=!0,w=null):u===v&&(x=!0,w=p.route.hydrateFallbackElement||null)));let O=t.concat(a.slice(0,v+1)),P=()=>{let E;return b?E=_:x?E=w:p.route.Component?E=F.createElement(p.route.Component,null):p.route.element?E=p.route.element:E=h,F.createElement(VH,{match:p,routeContext:{outlet:h,matches:O,isDataRoute:n!=null},children:E})};return n&&(p.route.ErrorBoundary||p.route.errorElement||v===0)?F.createElement(zH,{location:n.location,revalidation:n.revalidation,component:_,error:b,children:P(),routeContext:{outlet:null,matches:O,isDataRoute:!0}}):P()},null)}var N8=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(N8||{}),Pg=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Pg||{});function qH(e){let t=F.useContext(w0);return t||wn(!1),t}function HH(e){let t=F.useContext(A8);return t||wn(!1),t}function GH(e){let t=F.useContext(Ya);return t||wn(!1),t}function M8(e){let t=GH(),n=t.matches[t.matches.length-1];return n.route.id||wn(!1),n.route.id}function KH(){var e;let t=F.useContext(k8),n=HH(Pg.UseRouteError),r=M8(Pg.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function YH(){let{router:e}=qH(N8.UseNavigateStable),t=M8(Pg.UseNavigateStable),n=F.useRef(!1);return R8(()=>{n.current=!0}),F.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Kh({fromRouteId:t},o)))},[e,t])}const pk={};function ZH(e,t){pk[t]||(pk[t]=!0,console.warn(t))}const mk=(e,t,n)=>ZH(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function XH(e,t){e!=null&&e.v7_startTransition||mk("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),!(e!=null&&e.v7_relativeSplatPath)&&!t&&mk("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath")}function NE(e){let{to:t,replace:n,state:r,relative:i}=e;Nu()||wn(!1);let{future:o,static:a}=F.useContext(Ka),{matches:s}=F.useContext(Ya),{pathname:c}=Kr(),u=oa(),h=RE(t,kE(s,o.v7_relativeSplatPath),c,i==="path"),p=JSON.stringify(h);return F.useEffect(()=>u(JSON.parse(p),{replace:n,state:r,relative:i}),[u,p,i,n,r]),null}function Rt(e){wn(!1)}function QH(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Hs.Pop,navigator:o,static:a=!1,future:s}=e;Nu()&&wn(!1);let c=t.replace(/^\/*/,"/"),u=F.useMemo(()=>({basename:c,navigator:o,static:a,future:Kh({v7_relativeSplatPath:!1},s)}),[c,s,o,a]);typeof r=="string"&&(r=Hf(r));let{pathname:h="/",search:p="",hash:v="",state:b=null,key:x="default"}=r,_=F.useMemo(()=>{let w=of(h,c);return w==null?null:{location:{pathname:w,search:p,hash:v,state:b,key:x},navigationType:i}},[c,h,p,v,b,x,i]);return _==null?null:F.createElement(Ka.Provider,{value:u},F.createElement(O0.Provider,{children:n,value:_}))}function P0(e){let{children:t,location:n}=e;return $H(XO(t),n)}new Promise(()=>{});function XO(e,t){t===void 0&&(t=[]);let n=[];return F.Children.forEach(e,(r,i)=>{if(!F.isValidElement(r))return;let o=[...t,i];if(r.type===F.Fragment){n.push.apply(n,XO(r.props.children,o));return}r.type!==Rt&&wn(!1),!r.props.index||!r.props.children||wn(!1);let a={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=XO(r.props.children,o)),n.push(a)}),n}/**
* React Router DOM v6.28.0
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function Cg(){return Cg=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},Cg.apply(this,arguments)}function L8(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 JH(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function eG(e,t){return e.button===0&&(!t||t==="_self")&&!JH(e)}const tG=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],nG=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],rG="6";try{window.__reactRouterVersion=rG}catch{}const iG=F.createContext({isTransitioning:!1}),oG="startTransition",vk=GO[oG];function I8(e){let{basename:t,children:n,future:r,window:i}=e,o=F.useRef();o.current==null&&(o.current=fH({window:i,v5Compat:!0}));let a=o.current,[s,c]=F.useState({action:a.action,location:a.location}),{v7_startTransition:u}=r||{},h=F.useCallback(p=>{u&&vk?vk(()=>c(p)):c(p)},[c,u]);return F.useLayoutEffect(()=>a.listen(h),[a,h]),F.useEffect(()=>XH(r),[r]),F.createElement(QH,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:a,future:r})}const aG=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",sG=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Jt=F.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:a,state:s,target:c,to:u,preventScrollReset:h,viewTransition:p}=t,v=L8(t,tG),{basename:b}=F.useContext(Ka),x,_=!1;if(typeof u=="string"&&sG.test(u)&&(x=u,aG))try{let E=new URL(window.location.href),T=u.startsWith("//")?new URL(E.protocol+u):new URL(u),A=of(T.pathname,b);T.origin===E.origin&&A!=null?u=A+T.search+T.hash:_=!0}catch{}let w=IH(u,{relative:i}),O=uG(u,{replace:a,state:s,target:c,preventScrollReset:h,relative:i,viewTransition:p});function P(E){r&&r(E),E.defaultPrevented||O(E)}return F.createElement("a",Cg({},v,{href:x||w,onClick:_||o?r:P,ref:n,target:c}))}),D8=F.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:o="",end:a=!1,style:s,to:c,viewTransition:u,children:h}=t,p=L8(t,nG),v=S0(c,{relative:p.relative}),b=Kr(),x=F.useContext(A8),{navigator:_,basename:w}=F.useContext(Ka),O=x!=null&&cG(v)&&u===!0,P=_.encodeLocation?_.encodeLocation(v).pathname:v.pathname,E=b.pathname,T=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;i||(E=E.toLowerCase(),T=T?T.toLowerCase():null,P=P.toLowerCase()),T&&w&&(T=of(T,w)||T);const A=P!=="/"&&P.endsWith("/")?P.length-1:P.length;let j=E===P||!a&&E.startsWith(P)&&E.charAt(A)==="/",N=T!=null&&(T===P||!a&&T.startsWith(P)&&T.charAt(P.length)==="/"),$={isActive:j,isPending:N,isTransitioning:O},W=j?r:void 0,B;typeof o=="function"?B=o($):B=[o,j?"active":null,N?"pending":null,O?"transitioning":null].filter(Boolean).join(" ");let V=typeof s=="function"?s($):s;return F.createElement(Jt,Cg({},p,{"aria-current":W,className:B,ref:n,style:V,to:c,viewTransition:u}),typeof h=="function"?h($):h)});var QO;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(QO||(QO={}));var gk;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(gk||(gk={}));function lG(e){let t=F.useContext(w0);return t||wn(!1),t}function uG(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:a,viewTransition:s}=t===void 0?{}:t,c=oa(),u=Kr(),h=S0(e,{relative:a});return F.useCallback(p=>{if(eG(p,n)){p.preventDefault();let v=r!==void 0?r:Og(u)===Og(h);c(e,{replace:v,state:i,preventScrollReset:o,relative:a,viewTransition:s})}},[u,c,h,r,i,n,e,o,a,s])}function cG(e,t){t===void 0&&(t={});let n=F.useContext(iG);n==null&&wn(!1);let{basename:r}=lG(QO.useViewTransitionState),i=S0(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=of(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=of(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Sg(i.pathname,a)!=null||Sg(i.pathname,o)!=null}const fG="shlink-web-client",dG="A React-based progressive web application for shlink",hG="/shlink-web-client/dependabot/npm_and_yarn/sass-1.82.0",pG="https://github.com/shlinkio/shlink-web-client",mG="MIT",vG="module",gG={lint:"node --run lint:css && node --run lint:js","lint:css":"stylelint src/*.scss src/**/*.scss","lint:js":"eslint src test config/test","lint:fix":"node --run lint:css:fix && node --run lint:js:fix","lint:css:fix":"node --run lint:css -- --fix","lint:js:fix":"node --run lint:js -- --fix",types:"tsc",start:"vite serve --host=0.0.0.0",preview:"vite preview --host=0.0.0.0",build:"node --run types && vite build && node scripts/replace-version.mjs","build:dist":"node --run build && node scripts/create-dist-file.mjs",test:"vitest run --run","test:watch":"vitest --watch","test:ci":"node --run test -- --coverage","test:verbose":"node --run test -- --verbose"},yG={"@fortawesome/fontawesome-free":"^6.7.1","@fortawesome/fontawesome-svg-core":"^6.7.1","@fortawesome/free-brands-svg-icons":"^6.7.1","@fortawesome/free-regular-svg-icons":"^6.7.1","@fortawesome/free-solid-svg-icons":"^6.7.1","@fortawesome/react-fontawesome":"^0.2.2","@json2csv/plainjs":"^7.0.6","@reduxjs/toolkit":"^2.4.0","@shlinkio/data-manipulation":"^1.0.3","@shlinkio/shlink-frontend-kit":"^0.6.0","@shlinkio/shlink-js-sdk":"^1.3.0","@shlinkio/shlink-web-component":"^0.11.0",bootstrap:"5.2.3",bottlejs:"^2.0.1",clsx:"^2.1.1","compare-versions":"^6.1.1",csvtojson:"^2.0.10","date-fns":"^4.1.0",react:"^18.3.1","react-dom":"^18.3.1","react-external-link":"^2.3.1","react-redux":"^9.1.2","react-router-dom":"^6.28.0",reactstrap:"^9.2.3","redux-localstorage-simple":"^2.5.1","workbox-core":"^7.3.0","workbox-expiration":"^7.3.0","workbox-precaching":"^7.3.0","workbox-routing":"^7.3.0","workbox-strategies":"^7.3.0"},bG={"@shlinkio/eslint-config-js-coding-standard":"~3.2.1","@shlinkio/stylelint-config-css-coding-standard":"~1.1.1","@stylistic/eslint-plugin":"^2.11.0","@testing-library/jest-dom":"^6.6.3","@testing-library/react":"^16.0.1","@testing-library/user-event":"^14.5.2","@total-typescript/shoehorn":"^0.1.2","@types/react":"^18.3.12","@types/react-dom":"^18.3.1","@types/uuid":"^10.0.0","@vitejs/plugin-react":"^4.3.4","@vitest/coverage-v8":"^2.1.6","adm-zip":"^0.5.16","axe-core":"^4.10.2",chalk:"^5.3.0",eslint:"^9.16.0","eslint-plugin-jsx-a11y":"^6.10.2","eslint-plugin-react":"^7.37.2","eslint-plugin-react-hooks":"^5.0.0","eslint-plugin-simple-import-sort":"^12.1.1",history:"^5.3.0",jsdom:"^25.0.1",sass:"^1.82.0",stylelint:"^15.11.0",typescript:"^5.7.2","typescript-eslint":"^8.16.0",vite:"^6.0.1","vite-plugin-pwa":"^0.21.1",vitest:"^2.0.2"},_G=[">0.2%","not dead","not ie <= 11","not op_mini all"],Eg={name:fG,description:dG,private:!1,homepage:hG,repository:pG,license:mG,type:vG,scripts:gG,dependencies:yG,devDependencies:bG,browserslist:_G};var So,ea=".",$8="function",F8="string",B8="__global__",ME="Provider",xG=0,LE=Array.prototype.slice,wG=function(t,n){var r=t[n];if(r===void 0&&So.config.strict)throw new Error("Bottle was unable to resolve a service. `"+n+"` is undefined.");return r},C0=function(t){var n;return this.nested[t]||(n=So.pop(),this.nested[t]=n,this.factory(t,function(){return n.container})),this.nested[t]},U8=function(t){return t.split(ea).reduce(wG,this)},OG=function(t,n,r,i){var o={configurable:!0,enumerable:!0};return t.length?o.get=function(){var s=0,c=function(h){if(h)throw h;t[s]&&t[s++](r,c)};return c(),r}:(o.value=r,o.writable=!0),Object.defineProperty(i,n,o),i[n]},SG=function(t,n){var r,i;return typeof t===$8&&(n=t,t=B8),r=t.split(ea),i=r.shift(),r.length?C0.call(this,i).middleware(r.join(ea),n):(this.middlewares[i]||(this.middlewares[i]=[]),this.middlewares[i].push(n)),this},PG=function(t,n){return n(t)},yk=function(t,n){return(t[n]||[]).concat(t.__global__||[])},CG=function(t,n){var r,i,o,a,s;return this.id,o=this.container,a=this.decorators,s=this.middlewares,r=t+ME,i=Object.create(null),i[r]={configurable:!0,enumerable:!0,get:function(){var u=new n;return delete o[r],o[r]=u,u}},i[t]={configurable:!0,enumerable:!0,get:function(){var u=o[r],h;return u&&(h=yk(a,t).reduce(PG,u.$get(o)),delete o[r],delete o[t]),h===void 0?h:OG(yk(s,t),t,h,o)}},Object.defineProperties(o,i),this},z8=function(t,n){var r,i;return r=t.split(ea),this.providerMap[t]&&r.length===1&&!this.container[t+ME]?console.error(t+" provider already instantiated."):(this.originalProviders[t]=n,this.providerMap[t]=!0,i=r.shift(),r.length?(C0.call(this,i).provider(r.join(ea),n),this):CG.call(this,i,n))},IE=function(t,n){return z8.call(this,t,function(){this.$get=n})},V8=function(t,n,r){var i=arguments.length>3?LE.call(arguments,3):[],o=this;return IE.call(this,t,function(){var s=n,c=i.map(U8,o.container);return r?new(n.bind.apply(n,[null].concat(c))):s.apply(null,c)})},EG=function(t,n){return V8.apply(this,[t,n,!0].concat(LE.call(arguments,2)))},TG=function(t,n){return V8.apply(this,[t,n,!1].concat(LE.call(arguments,2)))},W8=function(t,n){Object.defineProperty(this,t,{configurable:!0,enumerable:!0,value:n,writable:!0})},q8=function(t,n){var r=t[n];return r||(r={},W8.call(t,n,r)),r},jG=function(t,n){var r;return r=t.split(ea),t=r.pop(),W8.call(r.reduce(q8,this.container),t,n),this},AG=function(t,n){Object.defineProperty(this,t,{configurable:!1,enumerable:!0,value:n,writable:!1})},kG=function(t,n){var r=t.split(ea);return t=r.pop(),AG.call(r.reduce(q8,this.container),t,n),this},H8=function(t,n){var r,i;return typeof t===$8&&(n=t,t=B8),r=t.split(ea),i=r.shift(),r.length?C0.call(this,i).decorator(r.join(ea),n):(this.decorators[i]||(this.decorators[i]=[]),this.decorators[i].push(n)),this},RG=function(t){return this.deferred.push(t),this},NG=function(t){return(t||[]).map(U8,this.container)},MG=function(t,n){return IE.call(this,t,function(i){return{instance:n.bind(n,i)}})},LG=function(t){return!/^\$(?:decorator|register|list)$|Provider$/.test(t)},DE=function(t){return Object.keys(t||this.container||{}).filter(LG)},Tg={},IG=function(t){var n;return typeof t===F8?(n=Tg[t],n||(Tg[t]=n=new So,n.constant("BOTTLE_NAME",t)),n):new So},DG=function(t){typeof t===F8?delete Tg[t]:Tg={}},G8=function(t){var n=t.$value===void 0?t:t.$value;return this[t.$type||"service"].apply(this,[t.$name,n].concat(t.$inject||[]))},bk=function(t){delete this.providerMap[t],delete this.container[t],delete this.container[t+ME]},$G=function(t){var n=this.originalProviders,r=Array.isArray(t);Object.keys(this.originalProviders).forEach(function(o){if(!(r&&t.indexOf(o)===-1)){var a=o.split(ea);a.length>1&&a.forEach(bk,C0.call(this,a[0])),bk.call(this,o),this.provider(o,n[o])}},this)},FG=function(t){return this.deferred.forEach(function(r){r(t)}),this};So=function e(t){if(!(this instanceof e))return e.pop(t);this.id=xG++,this.decorators={},this.middlewares={},this.nested={},this.providerMap={},this.originalProviders={},this.deferred=[],this.container={$decorator:H8.bind(this),$register:G8.bind(this),$list:DE.bind(this)}};So.prototype={constant:kG,decorator:H8,defer:RG,digest:NG,factory:IE,instanceFactory:MG,list:DE,middleware:SG,provider:z8,resetProviders:$G,register:G8,resolve:FG,service:EG,serviceFactory:TG,value:jG};So.pop=IG;So.clear=DG;So.list=DE;So.config={strict:!1};const K8=So;var BG=Object.defineProperty,UG=(e,t,n)=>t in e?BG(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,zG=(e,t,n)=>UG(e,t+"",n);const VG=(e,t)=>`${e}/rest/v${t}`,WG=e=>e.dir?`${e.field}-${e.dir}`:void 0,qG=({orderBy:e={},excludeMaxVisitsReached:t,excludePastValidUntil:n,...r})=>({...r,excludeMaxVisitsReached:t===!0?"true":void 0,excludePastValidUntil:n===!0?"true":void 0,orderBy:WG(e)}),HG=(e,t)=>{const[n,r]=e.split("://");if(!r)throw new Error(`It is not possible to determine authority on "${e}" for replacement`);const[,...i]=r.split("/"),o=i.length?`/${i.join("/")}`:"";return`${n}://${t}${o}`},GG=(e={})=>{const t=Object.entries(e).flatMap(([n,r])=>r==null?[]:Array.isArray(r)?r.map(i=>[`${n}[]`,i]):[[n,r]]);return new URLSearchParams(t).toString()};class KG{constructor(t,n){zG(this,"apiVersion"),this.httpClient=t,this.serverInfo=n,this.apiVersion=3}async listShortUrls(t={}){return this.performRequest({url:"/short-urls",query:qG(t)}).then(({shortUrls:n})=>n)}async createShortUrl(t){const n=Object.entries(t).reduce((r,[i,o])=>(o&&(r[i]=o),r),{});return this.performRequest({url:"/short-urls",method:"POST",body:n})}async getShortUrl(t,n){return this.performRequest({url:`/short-urls/${t}`,query:{domain:n}})}async deleteShortUrl(t,n){return this.performEmptyRequest({url:`/short-urls/${t}`,method:"DELETE",query:{domain:n}})}async updateShortUrl(t,n,r){return this.performRequest({url:`/short-urls/${t}`,method:"PATCH",query:{domain:n},body:r})}async getShortUrlRedirectRules(t,n){return this.performRequest({url:`/short-urls/${t}/redirect-rules`,method:"GET",query:{domain:n}})}async setShortUrlRedirectRules(t,n,r){return this.performRequest({url:`/short-urls/${t}/redirect-rules`,method:"POST",query:{domain:n},body:r})}async getVisitsOverview(){return this.performRequest({url:"/visits"}).then(({visits:t})=>t)}async getShortUrlVisits(t,n){return this.performVisitsRequest({url:`/short-urls/${t}/visits`,query:n})}async getTagVisits(t,n){return this.performVisitsRequest({url:`/tags/${t}/visits`,query:n})}async getDomainVisits(t,n){return this.performVisitsRequest({url:`/domains/${t}/visits`,query:n})}async getOrphanVisits(t){return this.performVisitsRequest({url:"/visits/orphan",query:t})}async getNonOrphanVisits(t){return this.performVisitsRequest({url:"/visits/non-orphan",query:t})}async performVisitsRequest(t){return this.performRequest(t).then(({visits:n})=>n)}async deleteShortUrlVisits(t,n){const r=n?{domain:n}:void 0;return this.performRequest({method:"DELETE",url:`/short-urls/${t}/visits`,query:r})}async deleteOrphanVisits(){return this.performRequest({method:"DELETE",url:"/visits/orphan"})}async listTags(){return this.performRequest({url:"/tags",query:{withStats:"true"}}).then(({tags:t})=>t)}async tagsStats(){return this.performRequest({url:"/tags/stats"}).then(({tags:t})=>t)}async deleteTags(t){return this.performEmptyRequest({url:"/tags",method:"DELETE",query:{tags:t}}).then(()=>({tags:t}))}async editTag(t,n){return this.performEmptyRequest({url:"/tags",method:"PUT",body:{oldName:t,newName:n}}).then(()=>({oldName:t,newName:n}))}async listDomains(){return this.performRequest({url:"/domains"}).then(({domains:t})=>t)}async editDomainRedirects(t){return this.performRequest({url:"/domains/redirects",method:"PATCH",body:t})}async health(t){return this.performRequest({url:"/health",domain:t})}async mercureInfo(){return this.performRequest({url:"/mercure-info"})}async performRequest(t){return this.httpClient.jsonRequest(...this.toFetchParams(t))}async performEmptyRequest(t){return this.httpClient.emptyRequest(...this.toFetchParams(t))}toFetchParams({url:t,method:n="GET",query:r={},body:i,domain:o}){const a=GG(r),s=a?`?${a}`:"",c=o?HG(this.serverInfo.baseUrl,o):this.serverInfo.baseUrl;return[`${VG(c,this.apiVersion)}${t}${s}`,{method:n,body:i&&JSON.stringify(i),headers:{"X-Api-Key":this.serverInfo.apiKey}}]}}const Y8=e=>!!(e!=null&&e.url)&&!!(e!=null&&e.apiKey),Th=e=>!!(e!=null&&e.id),$E=e=>!!(e!=null&&e.version),YG=e=>!!(e!=null&&e.serverNotFound),ZG=e=>Th(e)?e.id:"",XG=({name:e,url:t,apiKey:n})=>({name:e,url:t,apiKey:n}),_k={},QG=e=>typeof e=="function",JG=e=>{const{selectedServer:t}=e();if(!Y8(t))throw new Error("There's no selected server or it is not found");return t},eK=e=>t=>{const{url:n,apiKey:r}=QG(t)?JG(t):t,i=`${r}_${n}`,o=_k[i]??new KG(e,{apiKey:r,baseUrl:n});return _k[i]=o,o},tK=e=>{e.serviceFactory("buildShlinkApiClient",eK,"HttpClient")};/*!
* Font Awesome Free 6.7.1 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
* Copyright 2024 Fonticons, Inc.
*/const nK={prefix:"fas",iconName:"trash-can",icon:[448,512,[61460,"trash-alt"],"f2ed","M135.2 17.7C140.6 6.8 151.7 0 163.8 0L284.2 0c12.1 0 23.2 6.8 28.6 17.7L320 32l96 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 96C14.3 96 0 81.7 0 64S14.3 32 32 32l96 0 7.2-14.3zM32 128l384 0 0 320c0 35.3-28.7 64-64 64L96 512c-35.3 0-64-28.7-64-64l0-320zm96 64c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224c0-8.8-7.2-16-16-16z"]},rK={prefix:"fas",iconName:"down-left-and-up-right-to-center",icon:[512,512,["compress-alt"],"f422","M439 7c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2s-12.5 14.8-22.2 14.8l-144 0c-13.3 0-24-10.7-24-24l0-144c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l39 39L439 7zM72 272l144 0c13.3 0 24 10.7 24 24l0 144c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39L73 505c-9.4 9.4-24.6 9.4-33.9 0L7 473c-9.4-9.4-9.4-24.6 0-33.9l87-87L55 313c-6.9-6.9-8.9-17.2-5.2-26.2s12.5-14.8 22.2-14.8z"]},iK={prefix:"fas",iconName:"calendar-days",icon:[448,512,["calendar-alt"],"f073","M128 0c17.7 0 32 14.3 32 32l0 32 128 0 0-32c0-17.7 14.3-32 32-32s32 14.3 32 32l0 32 48 0c26.5 0 48 21.5 48 48l0 48L0 160l0-48C0 85.5 21.5 64 48 64l48 0 0-32c0-17.7 14.3-32 32-32zM0 192l448 0 0 272c0 26.5-21.5 48-48 48L48 512c-26.5 0-48-21.5-48-48L0 192zm64 80l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm128 0l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm144-16c-8.8 0-16 7.2-16 16l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0zM64 400l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm144-16c-8.8 0-16 7.2-16 16l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0zm112 16l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16z"]},oK=iK,aK={prefix:"fas",iconName:"circle-minus",icon:[512,512,["minus-circle"],"f056","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM184 232l144 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-144 0c-13.3 0-24-10.7-24-24s10.7-24 24-24z"]},FE=aK,sK={prefix:"fas",iconName:"file-csv",icon:[512,512,[],"f6dd","M0 64C0 28.7 28.7 0 64 0L224 0l0 128c0 17.7 14.3 32 32 32l128 0 0 144-208 0c-35.3 0-64 28.7-64 64l0 144-48 0c-35.3 0-64-28.7-64-64L0 64zm384 64l-128 0L256 0 384 128zM200 352l16 0c22.1 0 40 17.9 40 40l0 8c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-8c0-4.4-3.6-8-8-8l-16 0c-4.4 0-8 3.6-8 8l0 80c0 4.4 3.6 8 8 8l16 0c4.4 0 8-3.6 8-8l0-8c0-8.8 7.2-16 16-16s16 7.2 16 16l0 8c0 22.1-17.9 40-40 40l-16 0c-22.1 0-40-17.9-40-40l0-80c0-22.1 17.9-40 40-40zm133.1 0l34.9 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-34.9 0c-7.2 0-13.1 5.9-13.1 13.1c0 5.2 3 9.9 7.8 12l37.4 16.6c16.3 7.2 26.8 23.4 26.8 41.2c0 24.9-20.2 45.1-45.1 45.1L304 512c-8.8 0-16-7.2-16-16s7.2-16 16-16l42.9 0c7.2 0 13.1-5.9 13.1-13.1c0-5.2-3-9.9-7.8-12l-37.4-16.6c-16.3-7.2-26.8-23.4-26.8-41.2c0-24.9 20.2-45.1 45.1-45.1zm98.9 0c8.8 0 16 7.2 16 16l0 31.6c0 23 5.5 45.6 16 66c10.5-20.3 16-42.9 16-66l0-31.6c0-8.8 7.2-16 16-16s16 7.2 16 16l0 31.6c0 34.7-10.3 68.7-29.6 97.6l-5.1 7.7c-3 4.5-8 7.1-13.3 7.1s-10.3-2.7-13.3-7.1l-5.1-7.7c-19.3-28.9-29.6-62.9-29.6-97.6l0-31.6c0-8.8 7.2-16 16-16z"]},lK={prefix:"fas",iconName:"pencil",icon:[512,512,[9999,61504,"pencil-alt"],"f303","M410.3 231l11.3-11.3-33.9-33.9-62.1-62.1L291.7 89.8l-11.3 11.3-22.6 22.6L58.6 322.9c-10.4 10.4-18 23.3-22.2 37.4L1 480.7c-2.5 8.4-.2 17.5 6.1 23.7s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L387.7 253.7 410.3 231zM160 399.4l-9.1 22.7c-4 3.1-8.5 5.4-13.3 6.9L59.4 452l23-78.1c1.4-4.9 3.8-9.4 6.9-13.3l22.7-9.1 0 32c0 8.8 7.2 16 16 16l32 0zM362.7 18.7L348.3 33.2 325.7 55.8 314.3 67.1l33.9 33.9 62.1 62.1 33.9 33.9 11.3-11.3 22.6-22.6 14.5-14.5c25-25 25-65.5 0-90.5L453.3 18.7c-25-25-65.5-25-90.5 0zm-47.4 168l-144 144c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l144-144c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6z"]},Z8=lK,X8={prefix:"fas",iconName:"circle-notch",icon:[512,512,[],"f1ce","M222.7 32.1c5 16.9-4.6 34.8-21.5 39.8C121.8 95.6 64 169.1 64 256c0 106 86 192 192 192s192-86 192-192c0-86.9-57.8-160.4-137.1-184.1c-16.9-5-26.6-22.9-21.5-39.8s22.9-26.6 39.8-21.5C434.9 42.1 512 140 512 256c0 141.4-114.6 256-256 256S0 397.4 0 256C0 140 77.1 42.1 182.9 10.6c16.9-5 34.8 4.6 39.8 21.5z"]},uK={prefix:"fas",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 96C0 78.3 14.3 64 32 64l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32L32 448c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"]},BE={prefix:"fas",iconName:"list",icon:[512,512,["list-squares"],"f03a","M40 48C26.7 48 16 58.7 16 72l0 48c0 13.3 10.7 24 24 24l48 0c13.3 0 24-10.7 24-24l0-48c0-13.3-10.7-24-24-24L40 48zM192 64c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L192 64zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-288 0zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-288 0zM16 232l0 48c0 13.3 10.7 24 24 24l48 0c13.3 0 24-10.7 24-24l0-48c0-13.3-10.7-24-24-24l-48 0c-13.3 0-24 10.7-24 24zM40 368c-13.3 0-24 10.7-24 24l0 48c0 13.3 10.7 24 24 24l48 0c13.3 0 24-10.7 24-24l0-48c0-13.3-10.7-24-24-24l-48 0z"]},cK={prefix:"fas",iconName:"circle-dot",icon:[512,512,[128280,"dot-circle"],"f192","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-352a96 96 0 1 1 0 192 96 96 0 1 1 0-192z"]},fK=cK,dK={prefix:"fas",iconName:"pen-to-square",icon:[512,512,["edit"],"f044","M471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7zm-299.2 220c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3 172.4 241.7zM96 64C43 64 0 107 0 160L0 416c0 53 43 96 96 96l256 0c53 0 96-43 96-96l0-96c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7-14.3 32-32 32L96 448c-17.7 0-32-14.3-32-32l0-256c0-17.7 14.3-32 32-32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L96 64z"]},UE=dK,hK={prefix:"fas",iconName:"plug",icon:[384,512,[128268],"f1e6","M96 0C78.3 0 64 14.3 64 32l0 96 64 0 0-96c0-17.7-14.3-32-32-32zM288 0c-17.7 0-32 14.3-32 32l0 96 64 0 0-96c0-17.7-14.3-32-32-32zM32 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l0 32c0 77.4 55 142 128 156.8l0 67.2c0 17.7 14.3 32 32 32s32-14.3 32-32l0-67.2C297 398 352 333.4 352 256l0-32c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 160z"]},pK={prefix:"fas",iconName:"globe",icon:[512,512,[127760],"f0ac","M352 256c0 22.2-1.2 43.6-3.3 64l-185.3 0c-2.2-20.4-3.3-41.8-3.3-64s1.2-43.6 3.3-64l185.3 0c2.2 20.4 3.3 41.8 3.3 64zm28.8-64l123.1 0c5.3 20.5 8.1 41.9 8.1 64s-2.8 43.5-8.1 64l-123.1 0c2.1-20.6 3.2-42 3.2-64s-1.1-43.4-3.2-64zm112.6-32l-116.7 0c-10-63.9-29.8-117.4-55.3-151.6c78.3 20.7 142 77.5 171.9 151.6zm-149.1 0l-176.6 0c6.1-36.4 15.5-68.6 27-94.7c10.5-23.6 22.2-40.7 33.5-51.5C239.4 3.2 248.7 0 256 0s16.6 3.2 27.8 13.8c11.3 10.8 23 27.9 33.5 51.5c11.6 26 20.9 58.2 27 94.7zm-209 0L18.6 160C48.6 85.9 112.2 29.1 190.6 8.4C165.1 42.6 145.3 96.1 135.3 160zM8.1 192l123.1 0c-2.1 20.6-3.2 42-3.2 64s1.1 43.4 3.2 64L8.1 320C2.8 299.5 0 278.1 0 256s2.8-43.5 8.1-64zM194.7 446.6c-11.6-26-20.9-58.2-27-94.6l176.6 0c-6.1 36.4-15.5 68.6-27 94.6c-10.5 23.6-22.2 40.7-33.5 51.5C272.6 508.8 263.3 512 256 512s-16.6-3.2-27.8-13.8c-11.3-10.8-23-27.9-33.5-51.5zM135.3 352c10 63.9 29.8 117.4 55.3 151.6C112.2 482.9 48.6 426.1 18.6 352l116.7 0zm358.1 0c-30 74.1-93.6 130.9-171.9 151.6c25.5-34.2 45.2-87.7 55.3-151.6l116.7 0z"]},mK={prefix:"fas",iconName:"ban",icon:[512,512,[128683,"cancel"],"f05e","M367.2 412.5L99.5 144.8C77.1 176.1 64 214.5 64 256c0 106 86 192 192 192c41.5 0 79.9-13.1 111.2-35.5zm45.3-45.3C434.9 335.9 448 297.5 448 256c0-106-86-192-192-192c-41.5 0-79.9 13.1-111.2 35.5L412.5 367.2zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z"]},xk={prefix:"fas",iconName:"server",icon:[512,512,[],"f233","M64 32C28.7 32 0 60.7 0 96l0 64c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-64c0-35.3-28.7-64-64-64L64 32zm280 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm48 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0zM64 288c-35.3 0-64 28.7-64 64l0 64c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-64c0-35.3-28.7-64-64-64L64 288zm280 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm56 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0z"]},vK={prefix:"fas",iconName:"file-arrow-up",icon:[384,512,["file-upload"],"f574","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM216 408c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-102.1-31 31c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l72-72c9.4-9.4 24.6-9.4 33.9 0l72 72c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-31-31L216 408z"]},gK=vK,yK={prefix:"fas",iconName:"map-location-dot",icon:[576,512,["map-marked-alt"],"f5a0","M408 120c0 54.6-73.1 151.9-105.2 192c-7.7 9.6-22 9.6-29.6 0C241.1 271.9 168 174.6 168 120C168 53.7 221.7 0 288 0s120 53.7 120 120zm8 80.4c3.5-6.9 6.7-13.8 9.6-20.6c.5-1.2 1-2.5 1.5-3.7l116-46.4C558.9 123.4 576 135 576 152l0 270.8c0 9.8-6 18.6-15.1 22.3L416 503l0-302.6zM137.6 138.3c2.4 14.1 7.2 28.3 12.8 41.5c2.9 6.8 6.1 13.7 9.6 20.6l0 251.4L32.9 502.7C17.1 509 0 497.4 0 480.4L0 209.6c0-9.8 6-18.6 15.1-22.3l122.6-49zM327.8 332c13.9-17.4 35.7-45.7 56.2-77l0 249.3L192 449.4 192 255c20.5 31.3 42.3 59.6 56.2 77c20.5 25.6 59.1 25.6 79.6 0zM288 152a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"]},JO=yK,bK={prefix:"fas",iconName:"caret-up",icon:[320,512,[],"f0d8","M182.6 137.4c-12.5-12.5-32.8-12.5-45.3 0l-128 128c-9.2 9.2-11.9 22.9-6.9 34.9s16.6 19.8 29.6 19.8l256 0c12.9 0 24.6-7.8 29.6-19.8s2.2-25.7-6.9-34.9l-128-128z"]},_K={prefix:"fas",iconName:"palette",icon:[512,512,[127912],"f53f","M512 256c0 .9 0 1.8 0 2.7c-.4 36.5-33.6 61.3-70.1 61.3L344 320c-26.5 0-48 21.5-48 48c0 3.4 .4 6.7 1 9.9c2.1 10.2 6.5 20 10.8 29.9c6.1 13.8 12.1 27.5 12.1 42c0 31.8-21.6 60.7-53.4 62c-3.5 .1-7 .2-10.6 .2C114.6 512 0 397.4 0 256S114.6 0 256 0S512 114.6 512 256zM128 288a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm0-96a32 32 0 1 0 0-64 32 32 0 1 0 0 64zM288 96a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm96 96a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]},xK={prefix:"fas",iconName:"arrow-down-wide-short",icon:[576,512,["sort-amount-asc","sort-amount-down"],"f160","M151.6 469.6C145.5 476.2 137 480 128 480s-17.5-3.8-23.6-10.4l-88-96c-11.9-13-11.1-33.3 2-45.2s33.3-11.1 45.2 2L96 365.7 96 64c0-17.7 14.3-32 32-32s32 14.3 32 32l0 301.7 32.4-35.4c11.9-13 32.2-13.9 45.2-2s13.9 32.2 2 45.2l-88 96zM320 480c-17.7 0-32-14.3-32-32s14.3-32 32-32l32 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-32 0zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32l96 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-96 0zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32l160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-160 0zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32l224 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L320 96z"]},wK=xK,zE={prefix:"fas",iconName:"chart-pie",icon:[576,512,["pie-chart"],"f200","M304 240l0-223.4c0-9 7-16.6 16-16.6C443.7 0 544 100.3 544 224c0 9-7.6 16-16.6 16L304 240zM32 272C32 150.7 122.1 50.3 239 34.3c9.2-1.3 17 6.1 17 15.4L256 288 412.5 444.5c6.7 6.7 6.2 17.7-1.5 23.1C371.8 495.6 323.8 512 272 512C139.5 512 32 404.6 32 272zm526.4 16c9.3 0 16.6 7.8 15.4 17c-7.7 55.9-34.6 105.6-73.9 142.3c-6 5.6-15.4 5.2-21.2-.7L320 288l238.4 0z"]},E0={prefix:"fas",iconName:"chart-line",icon:[512,512,["line-chart"],"f201","M64 64c0-17.7-14.3-32-32-32S0 46.3 0 64L0 400c0 44.2 35.8 80 80 80l400 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 416c-8.8 0-16-7.2-16-16L64 64zm406.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L320 210.7l-57.4-57.4c-12.5-12.5-32.8-12.5-45.3 0l-112 112c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L240 221.3l57.4 57.4c12.5 12.5 32.8 12.5 45.3 0l128-128z"]},Q8={prefix:"fas",iconName:"tags",icon:[512,512,[],"f02c","M345 39.1L472.8 168.4c52.4 53 52.4 138.2 0 191.2L360.8 472.9c-9.3 9.4-24.5 9.5-33.9 .2s-9.5-24.5-.2-33.9L438.6 325.9c33.9-34.3 33.9-89.4 0-123.7L310.9 72.9c-9.3-9.4-9.2-24.6 .2-33.9s24.6-9.2 33.9 .2zM0 229.5L0 80C0 53.5 21.5 32 48 32l149.5 0c17 0 33.3 6.7 45.3 18.7l168 168c25 25 25 65.5 0 90.5L277.3 442.7c-25 25-65.5 25-90.5 0l-168-168C6.7 262.7 0 246.5 0 229.5zM144 144a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},wk={prefix:"fas",iconName:"calendar-xmark",icon:[448,512,["calendar-times"],"f273","M128 0c17.7 0 32 14.3 32 32l0 32 128 0 0-32c0-17.7 14.3-32 32-32s32 14.3 32 32l0 32 48 0c26.5 0 48 21.5 48 48l0 48L0 160l0-48C0 85.5 21.5 64 48 64l48 0 0-32c0-17.7 14.3-32 32-32zM0 192l448 0 0 272c0 26.5-21.5 48-48 48L48 512c-26.5 0-48-21.5-48-48L0 192zM305 305c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-47 47-47-47c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l47 47-47 47c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l47-47 47 47c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-47-47 47-47z"]},OK={prefix:"fas",iconName:"trash",icon:[448,512,[],"f1f8","M135.2 17.7L128 32 32 32C14.3 32 0 46.3 0 64S14.3 96 32 96l384 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0-7.2-14.3C307.4 6.8 296.3 0 284.2 0L163.8 0c-12.1 0-23.2 6.8-28.6 17.7zM416 128L32 128 53.2 467c1.6 25.3 22.6 45 47.9 45l245.8 0c25.3 0 46.3-19.7 47.9-45L416 128z"]},SK={prefix:"fas",iconName:"arrow-left",icon:[448,512,[8592],"f060","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.2 288 416 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0L214.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"]},PK={prefix:"fas",iconName:"up-right-from-square",icon:[512,512,["external-link-alt"],"f35d","M352 0c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9L370.7 96 201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L416 141.3l41.4 41.4c9.2 9.2 22.9 11.9 34.9 6.9s19.8-16.6 19.8-29.6l0-128c0-17.7-14.3-32-32-32L352 0zM80 32C35.8 32 0 67.8 0 112L0 432c0 44.2 35.8 80 80 80l320 0c44.2 0 80-35.8 80-80l0-112c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 112c0 8.8-7.2 16-16 16L80 448c-8.8 0-16-7.2-16-16l0-320c0-8.8 7.2-16 16-16l112 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 32z"]},CK=PK,EK={prefix:"fas",iconName:"tag",icon:[448,512,[127991],"f02b","M0 80L0 229.5c0 17 6.7 33.3 18.7 45.3l176 176c25 25 65.5 25 90.5 0L418.7 317.3c25-25 25-65.5 0-90.5l-176-176c-12-12-28.3-18.7-45.3-18.7L48 32C21.5 32 0 53.5 0 80zm112 32a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},TK={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},VE=TK,WE={prefix:"fas",iconName:"arrow-rotate-left",icon:[512,512,[8634,"arrow-left-rotate","arrow-rotate-back","arrow-rotate-backward","undo"],"f0e2","M125.7 160l50.3 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L48 224c-17.7 0-32-14.3-32-32L16 64c0-17.7 14.3-32 32-32s32 14.3 32 32l0 51.2L97.6 97.6c87.5-87.5 229.3-87.5 316.8 0s87.5 229.3 0 316.8s-229.3 87.5-316.8 0c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0c62.5 62.5 163.8 62.5 226.3 0s62.5-163.8 0-226.3s-163.8-62.5-226.3 0L125.7 160z"]},jK=WE,AK={prefix:"fas",iconName:"grip-vertical",icon:[320,512,[],"f58e","M40 352l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zm192 0l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zM40 320c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0zM232 192l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40zM40 160c-22.1 0-40-17.9-40-40L0 72C0 49.9 17.9 32 40 32l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0zM232 32l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0c-22.1 0-40-17.9-40-40l0-48c0-22.1 17.9-40 40-40z"]},kK={prefix:"fas",iconName:"caret-down",icon:[320,512,[],"f0d7","M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z"]},RK={prefix:"fas",iconName:"ellipsis-vertical",icon:[128,512,["ellipsis-v"],"f142","M64 360a56 56 0 1 0 0 112 56 56 0 1 0 0-112zm0-160a56 56 0 1 0 0 112 56 56 0 1 0 0-112zM120 96A56 56 0 1 0 8 96a56 56 0 1 0 112 0z"]},NK=RK,MK={prefix:"fas",iconName:"house",icon:[576,512,[127968,63498,63500,"home","home-alt","home-lg-alt"],"f015","M575.8 255.5c0 18-15 32.1-32 32.1l-32 0 .7 160.2c0 2.7-.2 5.4-.5 8.1l0 16.2c0 22.1-17.9 40-40 40l-16 0c-1.1 0-2.2 0-3.3-.1c-1.4 .1-2.8 .1-4.2 .1L416 512l-24 0c-22.1 0-40-17.9-40-40l0-24 0-64c0-17.7-14.3-32-32-32l-64 0c-17.7 0-32 14.3-32 32l0 64 0 24c0 22.1-17.9 40-40 40l-24 0-31.9 0c-1.5 0-3-.1-4.5-.2c-1.2 .1-2.4 .2-3.6 .2l-16 0c-22.1 0-40-17.9-40-40l0-112c0-.9 0-1.9 .1-2.8l0-69.7-32 0c-18 0-32-14-32-32.1c0-9 3-17 10-24L266.4 8c7-7 15-8 22-8s15 2 21 7L564.8 231.5c8 7 12 15 11 24z"]},LK=MK,IK={prefix:"fas",iconName:"arrow-up-wide-short",icon:[576,512,["sort-amount-up"],"f161","M151.6 42.4C145.5 35.8 137 32 128 32s-17.5 3.8-23.6 10.4l-88 96c-11.9 13-11.1 33.3 2 45.2s33.3 11.1 45.2-2L96 146.3 96 448c0 17.7 14.3 32 32 32s32-14.3 32-32l0-301.7 32.4 35.4c11.9 13 32.2 13.9 45.2 2s13.9-32.2 2-45.2l-88-96zM320 480l32 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-32 0c-17.7 0-32 14.3-32 32s14.3 32 32 32zm0-128l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0c-17.7 0-32 14.3-32 32s14.3 32 32 32zm0-128l160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-160 0c-17.7 0-32 14.3-32 32s14.3 32 32 32zm0-128l224 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L320 32c-17.7 0-32 14.3-32 32s14.3 32 32 32z"]},DK=IK,$K={prefix:"fas",iconName:"file-arrow-down",icon:[384,512,["file-download"],"f56d","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM216 232l0 102.1 31-31c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-72 72c-9.4 9.4-24.6 9.4-33.9 0l-72-72c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l31 31L168 232c0-13.3 10.7-24 24-24s24 10.7 24 24z"]},J8=$K,FK={prefix:"fas",iconName:"sun",icon:[512,512,[9728],"f185","M361.5 1.2c5 2.1 8.6 6.6 9.6 11.9L391 121l107.9 19.8c5.3 1 9.8 4.6 11.9 9.6s1.5 10.7-1.6 15.2L446.9 256l62.3 90.3c3.1 4.5 3.7 10.2 1.6 15.2s-6.6 8.6-11.9 9.6L391 391 371.1 498.9c-1 5.3-4.6 9.8-9.6 11.9s-10.7 1.5-15.2-1.6L256 446.9l-90.3 62.3c-4.5 3.1-10.2 3.7-15.2 1.6s-8.6-6.6-9.6-11.9L121 391 13.1 371.1c-5.3-1-9.8-4.6-11.9-9.6s-1.5-10.7 1.6-15.2L65.1 256 2.8 165.7c-3.1-4.5-3.7-10.2-1.6-15.2s6.6-8.6 11.9-9.6L121 121 140.9 13.1c1-5.3 4.6-9.8 9.6-11.9s10.7-1.5 15.2 1.6L256 65.1 346.3 2.8c4.5-3.1 10.2-3.7 15.2-1.6zM160 256a96 96 0 1 1 192 0 96 96 0 1 1 -192 0zm224 0a128 128 0 1 0 -256 0 128 128 0 1 0 256 0z"]},BK={prefix:"fas",iconName:"arrow-down",icon:[384,512,[8595],"f063","M169.4 470.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 370.8 224 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 306.7L54.6 265.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"]},UK={prefix:"fas",iconName:"link",icon:[640,512,[128279,"chain"],"f0c1","M579.8 267.7c56.5-56.5 56.5-148 0-204.5c-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6c31.5 31.5 31.5 82.5 0 114L422.3 334.8c-31.5 31.5-82.5 31.5-114 0c-27.9-27.9-31.5-71.8-8.6-103.8l1.1-1.6c10.3-14.4 6.9-34.4-7.4-44.6s-34.4-6.9-44.6 7.4l-1.1 1.6C206.5 251.2 213 330 263 380c56.5 56.5 148 56.5 204.5 0L579.8 267.7zM60.2 244.3c-56.5 56.5-56.5 148 0 204.5c50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C74 372 74 321 105.5 289.5L217.7 177.2c31.5-31.5 82.5-31.5 114 0c27.9 27.9 31.5 71.8 8.6 103.9l-1.1 1.6c-10.3 14.4-6.9 34.4 7.4 44.6s34.4 6.9 44.6-7.4l1.1-1.6C433.5 260.8 427 182 377 132c-56.5-56.5-148-56.5-204.5 0L60.2 244.3z"]},zK={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},VK=zK,WK={prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},qK={prefix:"fas",iconName:"arrow-up",icon:[384,512,[8593],"f062","M214.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 141.2 160 448c0 17.7 14.3 32 32 32s32-14.3 32-32l0-306.7L329.4 246.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-160-160z"]},Hp={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 144L48 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l144 0 0 144c0 17.7 14.3 32 32 32s32-14.3 32-32l0-144 144 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-144 0 0-144z"]},e$={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},eS=e$,HK={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},GK={prefix:"fas",iconName:"rotate",icon:[512,512,[128260,"sync-alt"],"f2f1","M142.9 142.9c-17.5 17.5-30.1 38-37.8 59.8c-5.9 16.7-24.2 25.4-40.8 19.5s-25.4-24.2-19.5-40.8C55.6 150.7 73.2 122 97.6 97.6c87.2-87.2 228.3-87.5 315.8-1L455 55c6.9-6.9 17.2-8.9 26.2-5.2s14.8 12.5 14.8 22.2l0 128c0 13.3-10.7 24-24 24l-8.4 0c0 0 0 0 0 0L344 224c-9.7 0-18.5-5.8-22.2-14.8s-1.7-19.3 5.2-26.2l41.1-41.1c-62.6-61.5-163.1-61.2-225.3 1zM16 312c0-13.3 10.7-24 24-24l7.6 0 .7 0L168 288c9.7 0 18.5 5.8 22.2 14.8s1.7 19.3-5.2 26.2l-41.1 41.1c62.6 61.5 163.1 61.2 225.3-1c17.5-17.5 30.1-38 37.8-59.8c5.9-16.7 24.2-25.4 40.8-19.5s25.4 24.2 19.5 40.8c-10.8 30.6-28.4 59.3-52.9 83.8c-87.2 87.2-228.3 87.5-315.8 1L57 457c-6.9 6.9-17.2 8.9-26.2 5.2S16 449.7 16 440l0-119.6 0-.7 0-7.6z"]},KK=GK,Ok={prefix:"fas",iconName:"robot",icon:[640,512,[129302],"f544","M320 0c17.7 0 32 14.3 32 32l0 64 120 0c39.8 0 72 32.2 72 72l0 272c0 39.8-32.2 72-72 72l-304 0c-39.8 0-72-32.2-72-72l0-272c0-39.8 32.2-72 72-72l120 0 0-64c0-17.7 14.3-32 32-32zM208 384c-8.8 0-16 7.2-16 16s7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0zm96 0c-8.8 0-16 7.2-16 16s7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0zm96 0c-8.8 0-16 7.2-16 16s7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0zM264 256a40 40 0 1 0 -80 0 40 40 0 1 0 80 0zm152 40a40 40 0 1 0 0-80 40 40 0 1 0 0 80zM48 224l16 0 0 192-16 0c-26.5 0-48-21.5-48-48l0-96c0-26.5 21.5-48 48-48zm544 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-16 0 0-192 16 0z"]},t$={prefix:"fas",iconName:"gears",icon:[640,512,["cogs"],"f085","M308.5 135.3c7.1-6.3 9.9-16.2 6.2-25c-2.3-5.3-4.8-10.5-7.6-15.5L304 89.4c-3-5-6.3-9.9-9.8-14.6c-5.7-7.6-15.7-10.1-24.7-7.1l-28.2 9.3c-10.7-8.8-23-16-36.2-20.9L199 27.1c-1.9-9.3-9.1-16.7-18.5-17.8C173.9 8.4 167.2 8 160.4 8l-.7 0c-6.8 0-13.5 .4-20.1 1.2c-9.4 1.1-16.6 8.6-18.5 17.8L115 56.1c-13.3 5-25.5 12.1-36.2 20.9L50.5 67.8c-9-3-19-.5-24.7 7.1c-3.5 4.7-6.8 9.6-9.9 14.6l-3 5.3c-2.8 5-5.3 10.2-7.6 15.6c-3.7 8.7-.9 18.6 6.2 25l22.2 19.8C32.6 161.9 32 168.9 32 176s.6 14.1 1.7 20.9L11.5 216.7c-7.1 6.3-9.9 16.2-6.2 25c2.3 5.3 4.8 10.5 7.6 15.6l3 5.2c3 5.1 6.3 9.9 9.9 14.6c5.7 7.6 15.7 10.1 24.7 7.1l28.2-9.3c10.7 8.8 23 16 36.2 20.9l6.1 29.1c1.9 9.3 9.1 16.7 18.5 17.8c6.7 .8 13.5 1.2 20.4 1.2s13.7-.4 20.4-1.2c9.4-1.1 16.6-8.6 18.5-17.8l6.1-29.1c13.3-5 25.5-12.1 36.2-20.9l28.2 9.3c9 3 19 .5 24.7-7.1c3.5-4.7 6.8-9.5 9.8-14.6l3.1-5.4c2.8-5 5.3-10.2 7.6-15.5c3.7-8.7 .9-18.6-6.2-25l-22.2-19.8c1.1-6.8 1.7-13.8 1.7-20.9s-.6-14.1-1.7-20.9l22.2-19.8zM112 176a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zM504.7 500.5c6.3 7.1 16.2 9.9 25 6.2c5.3-2.3 10.5-4.8 15.5-7.6l5.4-3.1c5-3 9.9-6.3 14.6-9.8c7.6-5.7 10.1-15.7 7.1-24.7l-9.3-28.2c8.8-10.7 16-23 20.9-36.2l29.1-6.1c9.3-1.9 16.7-9.1 17.8-18.5c.8-6.7 1.2-13.5 1.2-20.4s-.4-13.7-1.2-20.4c-1.1-9.4-8.6-16.6-17.8-18.5L583.9 307c-5-13.3-12.1-25.5-20.9-36.2l9.3-28.2c3-9 .5-19-7.1-24.7c-4.7-3.5-9.6-6.8-14.6-9.9l-5.3-3c-5-2.8-10.2-5.3-15.6-7.6c-8.7-3.7-18.6-.9-25 6.2l-19.8 22.2c-6.8-1.1-13.8-1.7-20.9-1.7s-14.1 .6-20.9 1.7l-19.8-22.2c-6.3-7.1-16.2-9.9-25-6.2c-5.3 2.3-10.5 4.8-15.6 7.6l-5.2 3c-5.1 3-9.9 6.3-14.6 9.9c-7.6 5.7-10.1 15.7-7.1 24.7l9.3 28.2c-8.8 10.7-16 23-20.9 36.2L315.1 313c-9.3 1.9-16.7 9.1-17.8 18.5c-.8 6.7-1.2 13.5-1.2 20.4s.4 13.7 1.2 20.4c1.1 9.4 8.6 16.6 17.8 18.5l29.1 6.1c5 13.3 12.1 25.5 20.9 36.2l-9.3 28.2c-3 9-.5 19 7.1 24.7c4.7 3.5 9.5 6.8 14.6 9.8l5.4 3.1c5 2.8 10.2 5.3 15.5 7.6c8.7 3.7 18.6 .9 25-6.2l19.8-22.2c6.8 1.1 13.8 1.7 20.9 1.7s14.1-.6 20.9-1.7l19.8 22.2zM464 304a48 48 0 1 1 0 96 48 48 0 1 1 0-96z"]},YK=t$,ZK={prefix:"fas",iconName:"qrcode",icon:[448,512,[],"f029","M0 80C0 53.5 21.5 32 48 32l96 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-96 0c-26.5 0-48-21.5-48-48L0 80zM64 96l0 64 64 0 0-64L64 96zM0 336c0-26.5 21.5-48 48-48l96 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-96 0c-26.5 0-48-21.5-48-48l0-96zm64 16l0 64 64 0 0-64-64 0zM304 32l96 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-96 0c-26.5 0-48-21.5-48-48l0-96c0-26.5 21.5-48 48-48zm80 64l-64 0 0 64 64 0 0-64zM256 304c0-8.8 7.2-16 16-16l64 0c8.8 0 16 7.2 16 16s7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s7.2-16 16-16s16 7.2 16 16l0 96c0 8.8-7.2 16-16 16l-64 0c-8.8 0-16-7.2-16-16s-7.2-16-16-16s-16 7.2-16 16l0 64c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-160zM368 480a16 16 0 1 1 0-32 16 16 0 1 1 0 32zm64 0a16 16 0 1 1 0-32 16 16 0 1 1 0 32z"]},XK={prefix:"fas",iconName:"moon",icon:[384,512,[127769,9214],"f186","M223.5 32C100 32 0 132.3 0 256S100 480 223.5 480c60.6 0 115.5-24.2 155.8-63.4c5-4.9 6.3-12.5 3.1-18.7s-10.1-9.7-17-8.5c-9.8 1.7-19.8 2.6-30.1 2.6c-96.9 0-175.5-78.8-175.5-176c0-65.8 36-123.1 89.3-153.3c6.1-3.5 9.2-10.5 7.7-17.3s-7.3-11.9-14.3-12.5c-6.3-.5-12.6-.8-19-.8z"]},QK={prefix:"fas",iconName:"up-right-and-down-left-from-center",icon:[512,512,["expand-alt"],"f424","M344 0L488 0c13.3 0 24 10.7 24 24l0 144c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39-87 87c-9.4 9.4-24.6 9.4-33.9 0l-32-32c-9.4-9.4-9.4-24.6 0-33.9l87-87L327 41c-6.9-6.9-8.9-17.2-5.2-26.2S334.3 0 344 0zM168 512L24 512c-13.3 0-24-10.7-24-24L0 344c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l39 39 87-87c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2s-12.5 14.8-22.2 14.8z"]},JK={prefix:"fas",iconName:"link-slash",icon:[640,512,["chain-broken","chain-slash","unlink"],"f127","M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L489.3 358.2l90.5-90.5c56.5-56.5 56.5-148 0-204.5c-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6c31.5 31.5 31.5 82.5 0 114l-96 96-31.9-25C430.9 239.6 420.1 175.1 377 132c-52.2-52.3-134.5-56.2-191.3-11.7L38.8 5.1zM239 162c30.1-14.9 67.7-9.9 92.8 15.3c20 20 27.5 48.3 21.7 74.5L239 162zM406.6 416.4L220.9 270c-2.1 39.8 12.2 80.1 42.2 110c38.9 38.9 94.4 51 143.6 36.3zm-290-228.5L60.2 244.3c-56.5 56.5-56.5 148 0 204.5c50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C74 372 74 321 105.5 289.5l61.8-61.8-50.6-39.9z"]},eY={prefix:"fas",iconName:"desktop",icon:[576,512,[128421,61704,"desktop-alt"],"f390","M64 0C28.7 0 0 28.7 0 64L0 352c0 35.3 28.7 64 64 64l176 0-10.7 32L160 448c-17.7 0-32 14.3-32 32s14.3 32 32 32l256 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-69.3 0L336 416l176 0c35.3 0 64-28.7 64-64l0-288c0-35.3-28.7-64-64-64L64 0zM512 64l0 224L64 288 64 64l448 0z"]},Yh={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]},n$={prefix:"fas",iconName:"arrows-split-up-and-left",icon:[512,512,[],"e4bc","M246.6 150.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l96-96c12.5-12.5 32.8-12.5 45.3 0l96 96c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L352 109.3 352 384c0 35.3 28.7 64 64 64l64 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-64 0c-70.7 0-128-57.3-128-128c0-35.3-28.7-64-64-64l-114.7 0 41.4 41.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0l-96-96c-12.5-12.5-12.5-32.8 0-45.3l96-96c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3L109.3 256 224 256c23.3 0 45.2 6.2 64 17.1l0-163.9-41.4 41.4z"]},tY={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480L40 480c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24l0 112c0 13.3 10.7 24 24 24s24-10.7 24-24l0-112c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},nY=tY;/*!
* Font Awesome Free 6.7.1 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
* Copyright 2024 Fonticons, Inc.
*/function rY(e,t,n){return(t=oY(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sk(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 ze(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Sk(Object(n),!0).forEach(function(r){rY(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function iY(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oY(e){var t=iY(e,"string");return typeof t=="symbol"?t:t+""}const Pk=()=>{};let qE={},r$={},i$=null,o$={mark:Pk,measure:Pk};try{typeof window<"u"&&(qE=window),typeof document<"u"&&(r$=document),typeof MutationObserver<"u"&&(i$=MutationObserver),typeof performance<"u"&&(o$=performance)}catch{}const{userAgent:Ck=""}=qE.navigator||{},rl=qE,an=r$,Ek=i$,Dv=o$;rl.document;const Za=!!an.documentElement&&!!an.head&&typeof an.addEventListener=="function"&&typeof an.createElement=="function",a$=~Ck.indexOf("MSIE")||~Ck.indexOf("Trident/");var aY=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,sY=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,s$={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"}},lY={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},l$=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],gr="classic",T0="duotone",uY="sharp",cY="sharp-duotone",u$=[gr,T0,uY,cY],fY={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"}},dY={"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"}},hY=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}]]),pY={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",brands:"fab"},duotone:{solid:"fad",regular:"fadr",light:"fadl",thin:"fadt"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds",regular:"fasdr",light:"fasdl",thin:"fasdt"}},mY=["fak","fa-kit","fakd","fa-kit-duotone"],Tk={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},vY=["kit"],gY={kit:{"fa-kit":"fak"},"kit-duotone":{"fa-kit-duotone":"fakd"}},yY=["fak","fakd"],bY={kit:{fak:"fa-kit"},"kit-duotone":{fakd:"fa-kit-duotone"}},jk={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},$v={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},_Y=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],xY=["fak","fa-kit","fakd","fa-kit-duotone"],wY={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},OY={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"}},SY={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]},tS={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"}},PY=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],nS=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt",..._Y,...PY],CY=["solid","regular","light","thin","duotone","brands"],c$=[1,2,3,4,5,6,7,8,9,10],EY=c$.concat([11,12,13,14,15,16,17,18,19,20]),TY=[...Object.keys(SY),...CY,"2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",$v.GROUP,$v.SWAP_OPACITY,$v.PRIMARY,$v.SECONDARY].concat(c$.map(e=>"".concat(e,"x"))).concat(EY.map(e=>"w-".concat(e))),jY={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}};const Fa="___FONT_AWESOME___",rS=16,f$="fa",d$="svg-inline--fa",bu="data-fa-i2svg",iS="data-fa-pseudo-element",AY="data-fa-pseudo-element-pending",HE="data-prefix",GE="data-icon",Ak="fontawesome-i2svg",kY="async",RY=["HTML","HEAD","STYLE","SCRIPT"],h$=(()=>{try{return!0}catch{return!1}})();function Gp(e){return new Proxy(e,{get(t,n){return n in t?t[n]:t[gr]}})}const p$=ze({},s$);p$[gr]=ze(ze(ze(ze({},{"fa-duotone":"duotone"}),s$[gr]),Tk.kit),Tk["kit-duotone"]);const NY=Gp(p$),oS=ze({},pY);oS[gr]=ze(ze(ze(ze({},{duotone:"fad"}),oS[gr]),jk.kit),jk["kit-duotone"]);const kk=Gp(oS),aS=ze({},tS);aS[gr]=ze(ze({},aS[gr]),bY.kit);const KE=Gp(aS),sS=ze({},OY);sS[gr]=ze(ze({},sS[gr]),gY.kit);Gp(sS);const MY=aY,m$="fa-layers-text",LY=sY,IY=ze({},fY);Gp(IY);const DY=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],h1=lY,$Y=[...vY,...TY],jh=rl.FontAwesomeConfig||{};function FY(e){var t=an.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function BY(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}an&&typeof an.querySelector=="function"&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(t=>{let[n,r]=t;const i=BY(FY(n));i!=null&&(jh[r]=i)});const v$={styleDefault:"solid",familyDefault:gr,cssPrefix:f$,replacementClass:d$,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};jh.familyPrefix&&(jh.cssPrefix=jh.familyPrefix);const af=ze(ze({},v$),jh);af.autoReplaceSvg||(af.observeMutations=!1);const at={};Object.keys(v$).forEach(e=>{Object.defineProperty(at,e,{enumerable:!0,set:function(t){af[e]=t,Ah.forEach(n=>n(at))},get:function(){return af[e]}})});Object.defineProperty(at,"familyPrefix",{enumerable:!0,set:function(e){af.cssPrefix=e,Ah.forEach(t=>t(at))},get:function(){return af.cssPrefix}});rl.FontAwesomeConfig=at;const Ah=[];function UY(e){return Ah.push(e),()=>{Ah.splice(Ah.indexOf(e),1)}}const Ds=rS,Ho={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function zY(e){if(!e||!Za)return;const t=an.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=an.head.childNodes;let r=null;for(let i=n.length-1;i>-1;i--){const o=n[i],a=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(r=o)}return an.head.insertBefore(t,r),e}const VY="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Zh(){let e=12,t="";for(;e-- >0;)t+=VY[Math.random()*62|0];return t}function Kf(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function YE(e){return e.classList?Kf(e.classList):(e.getAttribute("class")||"").split(" ").filter(t=>t)}function g$(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function WY(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,'="').concat(g$(e[n]),'" '),"").trim()}function j0(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";"),"")}function ZE(e){return e.size!==Ho.size||e.x!==Ho.x||e.y!==Ho.y||e.rotate!==Ho.rotate||e.flipX||e.flipY}function qY(e){let{transform:t,containerWidth:n,iconWidth:r}=e;const i={transform:"translate(".concat(n/2," 256)")},o="translate(".concat(t.x*32,", ").concat(t.y*32,") "),a="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),s="rotate(".concat(t.rotate," 0 0)"),c={transform:"".concat(o," ").concat(a," ").concat(s)},u={transform:"translate(".concat(r/2*-1," -256)")};return{outer:i,inner:c,path:u}}function HY(e){let{transform:t,width:n=rS,height:r=rS,startCentered:i=!1}=e,o="";return i&&a$?o+="translate(".concat(t.x/Ds-n/2,"em, ").concat(t.y/Ds-r/2,"em) "):i?o+="translate(calc(-50% + ".concat(t.x/Ds,"em), calc(-50% + ").concat(t.y/Ds,"em)) "):o+="translate(".concat(t.x/Ds,"em, ").concat(t.y/Ds,"em) "),o+="scale(".concat(t.size/Ds*(t.flipX?-1:1),", ").concat(t.size/Ds*(t.flipY?-1:1),") "),o+="rotate(".concat(t.rotate,"deg) "),o}var GY=`:root, :host {
--fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";
--fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";
--fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro";
--fa-font-thin: normal 100 1em/1 "Font Awesome 6 Pro";
--fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";
--fa-font-duotone-regular: normal 400 1em/1 "Font Awesome 6 Duotone";
--fa-font-duotone-light: normal 300 1em/1 "Font Awesome 6 Duotone";
--fa-font-duotone-thin: normal 100 1em/1 "Font Awesome 6 Duotone";
--fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";
--fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";
--fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";
--fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";
--fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp";
--fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 6 Sharp Duotone";
--fa-font-sharp-duotone-regular: normal 400 1em/1 "Font Awesome 6 Sharp Duotone";
--fa-font-sharp-duotone-light: normal 300 1em/1 "Font Awesome 6 Sharp Duotone";
--fa-font-sharp-duotone-thin: normal 100 1em/1 "Font Awesome 6 Sharp Duotone";
}
svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
overflow: visible;
box-sizing: content-box;
}
.svg-inline--fa {
display: var(--fa-display, inline-block);
height: 1em;
overflow: visible;
vertical-align: -0.125em;
}
.svg-inline--fa.fa-2xs {
vertical-align: 0.1em;
}
.svg-inline--fa.fa-xs {
vertical-align: 0em;
}
.svg-inline--fa.fa-sm {
vertical-align: -0.0714285705em;
}
.svg-inline--fa.fa-lg {
vertical-align: -0.2em;
}
.svg-inline--fa.fa-xl {
vertical-align: -0.25em;
}
.svg-inline--fa.fa-2xl {
vertical-align: -0.3125em;
}
.svg-inline--fa.fa-pull-left {
margin-right: var(--fa-pull-margin, 0.3em);
width: auto;
}
.svg-inline--fa.fa-pull-right {
margin-left: var(--fa-pull-margin, 0.3em);
width: auto;
}
.svg-inline--fa.fa-li {
width: var(--fa-li-width, 2em);
top: 0.25em;
}
.svg-inline--fa.fa-fw {
width: var(--fa-fw-width, 1.25em);
}
.fa-layers svg.svg-inline--fa {
bottom: 0;
left: 0;
margin: auto;
position: absolute;
right: 0;
top: 0;
}
.fa-layers-counter, .fa-layers-text {
display: inline-block;
position: absolute;
text-align: center;
}
.fa-layers {
display: inline-block;
height: 1em;
position: relative;
text-align: center;
vertical-align: -0.125em;
width: 1em;
}
.fa-layers svg.svg-inline--fa {
transform-origin: center center;
}
.fa-layers-text {
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
transform-origin: center center;
}
.fa-layers-counter {
background-color: var(--fa-counter-background-color, #ff253a);
border-radius: var(--fa-counter-border-radius, 1em);
box-sizing: border-box;
color: var(--fa-inverse, #fff);
line-height: var(--fa-counter-line-height, 1);
max-width: var(--fa-counter-max-width, 5em);
min-width: var(--fa-counter-min-width, 1.5em);
overflow: hidden;
padding: var(--fa-counter-padding, 0.25em 0.5em);
right: var(--fa-right, 0);
text-overflow: ellipsis;
top: var(--fa-top, 0);
transform: scale(var(--fa-counter-scale, 0.25));
transform-origin: top right;
}
.fa-layers-bottom-right {
bottom: var(--fa-bottom, 0);
right: var(--fa-right, 0);
top: auto;
transform: scale(var(--fa-layers-scale, 0.25));
transform-origin: bottom right;
}
.fa-layers-bottom-left {
bottom: var(--fa-bottom, 0);
left: var(--fa-left, 0);
right: auto;
top: auto;
transform: scale(var(--fa-layers-scale, 0.25));
transform-origin: bottom left;
}
.fa-layers-top-right {
top: var(--fa-top, 0);
right: var(--fa-right, 0);
transform: scale(var(--fa-layers-scale, 0.25));
transform-origin: top right;
}
.fa-layers-top-left {
left: var(--fa-left, 0);
right: auto;
top: var(--fa-top, 0);
transform: scale(var(--fa-layers-scale, 0.25));
transform-origin: top left;
}
.fa-1x {
font-size: 1em;
}
.fa-2x {
font-size: 2em;
}
.fa-3x {
font-size: 3em;
}
.fa-4x {
font-size: 4em;
}
.fa-5x {
font-size: 5em;
}
.fa-6x {
font-size: 6em;
}
.fa-7x {
font-size: 7em;
}
.fa-8x {
font-size: 8em;
}
.fa-9x {
font-size: 9em;
}
.fa-10x {
font-size: 10em;
}
.fa-2xs {
font-size: 0.625em;
line-height: 0.1em;
vertical-align: 0.225em;
}
.fa-xs {
font-size: 0.75em;
line-height: 0.0833333337em;
vertical-align: 0.125em;
}
.fa-sm {
font-size: 0.875em;
line-height: 0.0714285718em;
vertical-align: 0.0535714295em;
}
.fa-lg {
font-size: 1.25em;
line-height: 0.05em;
vertical-align: -0.075em;
}
.fa-xl {
font-size: 1.5em;
line-height: 0.0416666682em;
vertical-align: -0.125em;
}
.fa-2xl {
font-size: 2em;
line-height: 0.03125em;
vertical-align: -0.1875em;
}
.fa-fw {
text-align: center;
width: 1.25em;
}
.fa-ul {
list-style-type: none;
margin-left: var(--fa-li-margin, 2.5em);
padding-left: 0;
}
.fa-ul > li {
position: relative;
}
.fa-li {
left: calc(-1 * var(--fa-li-width, 2em));
position: absolute;
text-align: center;
width: var(--fa-li-width, 2em);
line-height: inherit;
}
.fa-border {
border-color: var(--fa-border-color, #eee);
border-radius: var(--fa-border-radius, 0.1em);
border-style: var(--fa-border-style, solid);
border-width: var(--fa-border-width, 0.08em);
padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);
}
.fa-pull-left {
float: left;
margin-right: var(--fa-pull-margin, 0.3em);
}
.fa-pull-right {
float: right;
margin-left: var(--fa-pull-margin, 0.3em);
}
.fa-beat {
animation-name: fa-beat;
animation-delay: var(--fa-animation-delay, 0s);
animation-direction: var(--fa-animation-direction, normal);
animation-duration: var(--fa-animation-duration, 1s);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-timing-function: var(--fa-animation-timing, ease-in-out);
}
.fa-bounce {
animation-name: fa-bounce;
animation-delay: var(--fa-animation-delay, 0s);
animation-direction: var(--fa-animation-direction, normal);
animation-duration: var(--fa-animation-duration, 1s);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
}
.fa-fade {
animation-name: fa-fade;
animation-delay: var(--fa-animation-delay, 0s);
animation-direction: var(--fa-animation-direction, normal);
animation-duration: var(--fa-animation-duration, 1s);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
}
.fa-beat-fade {
animation-name: fa-beat-fade;
animation-delay: var(--fa-animation-delay, 0s);
animation-direction: var(--fa-animation-direction, normal);
animation-duration: var(--fa-animation-duration, 1s);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
}
.fa-flip {
animation-name: fa-flip;
animation-delay: var(--fa-animation-delay, 0s);
animation-direction: var(--fa-animation-direction, normal);
animation-duration: var(--fa-animation-duration, 1s);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-timing-function: var(--fa-animation-timing, ease-in-out);
}
.fa-shake {
animation-name: fa-shake;
animation-delay: var(--fa-animation-delay, 0s);
animation-direction: var(--fa-animation-direction, normal);
animation-duration: var(--fa-animation-duration, 1s);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-timing-function: var(--fa-animation-timing, linear);
}
.fa-spin {
animation-name: fa-spin;
animation-delay: var(--fa-animation-delay, 0s);
animation-direction: var(--fa-animation-direction, normal);
animation-duration: var(--fa-animation-duration, 2s);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-timing-function: var(--fa-animation-timing, linear);
}
.fa-spin-reverse {
--fa-animation-direction: reverse;
}
.fa-pulse,
.fa-spin-pulse {
animation-name: fa-spin;
animation-direction: var(--fa-animation-direction, normal);
animation-duration: var(--fa-animation-duration, 1s);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-timing-function: var(--fa-animation-timing, steps(8));
}
@media (prefers-reduced-motion: reduce) {
.fa-beat,
.fa-bounce,
.fa-fade,
.fa-beat-fade,
.fa-flip,
.fa-pulse,
.fa-shake,
.fa-spin,
.fa-spin-pulse {
animation-delay: -1ms;
animation-duration: 1ms;
animation-iteration-count: 1;
transition-delay: 0s;
transition-duration: 0s;
}
}
@keyframes fa-beat {
0%, 90% {
transform: scale(1);
}
45% {
transform: scale(var(--fa-beat-scale, 1.25));
}
}
@keyframes fa-bounce {
0% {
transform: scale(1, 1) translateY(0);
}
10% {
transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
}
30% {
transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
}
50% {
transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
}
57% {
transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
}
64% {
transform: scale(1, 1) translateY(0);
}
100% {
transform: scale(1, 1) translateY(0);
}
}
@keyframes fa-fade {
50% {
opacity: var(--fa-fade-opacity, 0.4);
}
}
@keyframes fa-beat-fade {
0%, 100% {
opacity: var(--fa-beat-fade-opacity, 0.4);
transform: scale(1);
}
50% {
opacity: 1;
transform: scale(var(--fa-beat-fade-scale, 1.125));
}
}
@keyframes fa-flip {
50% {
transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
}
}
@keyframes fa-shake {
0% {
transform: rotate(-15deg);
}
4% {
transform: rotate(15deg);
}
8%, 24% {
transform: rotate(-18deg);
}
12%, 28% {
transform: rotate(18deg);
}
16% {
transform: rotate(-22deg);
}
20% {
transform: rotate(22deg);
}
32% {
transform: rotate(-12deg);
}
36% {
transform: rotate(12deg);
}
40%, 100% {
transform: rotate(0deg);
}
}
@keyframes fa-spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
.fa-rotate-90 {
transform: rotate(90deg);
}
.fa-rotate-180 {
transform: rotate(180deg);
}
.fa-rotate-270 {
transform: rotate(270deg);
}
.fa-flip-horizontal {
transform: scale(-1, 1);
}
.fa-flip-vertical {
transform: scale(1, -1);
}
.fa-flip-both,
.fa-flip-horizontal.fa-flip-vertical {
transform: scale(-1, -1);
}
.fa-rotate-by {
transform: rotate(var(--fa-rotate-angle, 0));
}
.fa-stack {
display: inline-block;
vertical-align: middle;
height: 2em;
position: relative;
width: 2.5em;
}
.fa-stack-1x,
.fa-stack-2x {
bottom: 0;
left: 0;
margin: auto;
position: absolute;
right: 0;
top: 0;
z-index: var(--fa-stack-z-index, auto);
}
.svg-inline--fa.fa-stack-1x {
height: 1em;
width: 1.25em;
}
.svg-inline--fa.fa-stack-2x {
height: 2em;
width: 2.5em;
}
.fa-inverse {
color: var(--fa-inverse, #fff);
}
.sr-only,
.fa-sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border-width: 0;
}
.sr-only-focusable:not(:focus),
.fa-sr-only-focusable:not(:focus) {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border-width: 0;
}
.svg-inline--fa .fa-primary {
fill: var(--fa-primary-color, currentColor);
opacity: var(--fa-primary-opacity, 1);
}
.svg-inline--fa .fa-secondary {
fill: var(--fa-secondary-color, currentColor);
opacity: var(--fa-secondary-opacity, 0.4);
}
.svg-inline--fa.fa-swap-opacity .fa-primary {
opacity: var(--fa-secondary-opacity, 0.4);
}
.svg-inline--fa.fa-swap-opacity .fa-secondary {
opacity: var(--fa-primary-opacity, 1);
}
.svg-inline--fa mask .fa-primary,
.svg-inline--fa mask .fa-secondary {
fill: black;
}`;function y$(){const e=f$,t=d$,n=at.cssPrefix,r=at.replacementClass;let i=GY;if(n!==e||r!==t){const o=new RegExp("\\.".concat(e,"\\-"),"g"),a=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");i=i.replace(o,".".concat(n,"-")).replace(a,"--".concat(n,"-")).replace(s,".".concat(r))}return i}let Rk=!1;function p1(){at.autoAddCss&&!Rk&&(zY(y$()),Rk=!0)}var KY={mixout(){return{dom:{css:y$,insertCss:p1}}},hooks(){return{beforeDOMElementCreation(){p1()},beforeI2svg(){p1()}}}};const Ba=rl||{};Ba[Fa]||(Ba[Fa]={});Ba[Fa].styles||(Ba[Fa].styles={});Ba[Fa].hooks||(Ba[Fa].hooks={});Ba[Fa].shims||(Ba[Fa].shims=[]);var Go=Ba[Fa];const b$=[],_$=function(){an.removeEventListener("DOMContentLoaded",_$),jg=1,b$.map(e=>e())};let jg=!1;Za&&(jg=(an.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(an.readyState),jg||an.addEventListener("DOMContentLoaded",_$));function YY(e){Za&&(jg?setTimeout(e,0):b$.push(e))}function Kp(e){const{tag:t,attributes:n={},children:r=[]}=e;return typeof e=="string"?g$(e):"<".concat(t," ").concat(WY(n),">").concat(r.map(Kp).join(""),"</").concat(t,">")}function Nk(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var m1=function(t,n,r,i){var o=Object.keys(t),a=o.length,s=n,c,u,h;for(r===void 0?(c=1,h=t[o[0]]):(c=0,h=r);c<a;c++)u=o[c],h=s(h,t[u],u,t);return h};function ZY(e){const t=[];let n=0;const r=e.length;for(;n<r;){const i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const o=e.charCodeAt(n++);(o&64512)==56320?t.push(((i&1023)<<10)+(o&1023)+65536):(t.push(i),n--)}else t.push(i)}return t}function lS(e){const t=ZY(e);return t.length===1?t[0].toString(16):null}function XY(e,t){const n=e.length;let r=e.charCodeAt(t),i;return r>=55296&&r<=56319&&n>t+1&&(i=e.charCodeAt(t+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function Mk(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return!!r.icon?t[r.iconName]=r.icon:t[n]=r,t},{})}function uS(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:r=!1}=n,i=Mk(t);typeof Go.hooks.addPack=="function"&&!r?Go.hooks.addPack(e,Mk(t)):Go.styles[e]=ze(ze({},Go.styles[e]||{}),i),e==="fas"&&uS("fa",t)}const{styles:Xh,shims:QY}=Go,x$=Object.keys(KE),JY=x$.reduce((e,t)=>(e[t]=Object.keys(KE[t]),e),{});let XE=null,w$={},O$={},S$={},P$={},C$={};function eZ(e){return~$Y.indexOf(e)}function tZ(e,t){const n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r===e&&i!==""&&!eZ(i)?i:null}const E$=()=>{const e=r=>m1(Xh,(i,o,a)=>(i[a]=m1(o,r,{}),i),{});w$=e((r,i,o)=>(i[3]&&(r[i[3]]=o),i[2]&&i[2].filter(s=>typeof s=="number").forEach(s=>{r[s.toString(16)]=o}),r)),O$=e((r,i,o)=>(r[o]=o,i[2]&&i[2].filter(s=>typeof s=="string").forEach(s=>{r[s]=o}),r)),C$=e((r,i,o)=>{const a=i[2];return r[o]=o,a.forEach(s=>{r[s]=o}),r});const t="far"in Xh||at.autoFetchSvg,n=m1(QY,(r,i)=>{const o=i[0];let a=i[1];const s=i[2];return a==="far"&&!t&&(a="fas"),typeof o=="string"&&(r.names[o]={prefix:a,iconName:s}),typeof o=="number"&&(r.unicodes[o.toString(16)]={prefix:a,iconName:s}),r},{names:{},unicodes:{}});S$=n.names,P$=n.unicodes,XE=A0(at.styleDefault,{family:at.familyDefault})};UY(e=>{XE=A0(e.styleDefault,{family:at.familyDefault})});E$();function QE(e,t){return(w$[e]||{})[t]}function nZ(e,t){return(O$[e]||{})[t]}function lu(e,t){return(C$[e]||{})[t]}function T$(e){return S$[e]||{prefix:null,iconName:null}}function rZ(e){const t=P$[e],n=QE("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function il(){return XE}const j$=()=>({prefix:null,iconName:null,rest:[]});function iZ(e){let t=gr;const n=x$.reduce((r,i)=>(r[i]="".concat(at.cssPrefix,"-").concat(i),r),{});return u$.forEach(r=>{(e.includes(n[r])||e.some(i=>JY[r].includes(i)))&&(t=r)}),t}function A0(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:n=gr}=t,r=NY[n][e];if(n===T0&&!e)return"fad";const i=kk[n][e]||kk[n][r],o=e in Go.styles?e:null;return i||o||null}function oZ(e){let t=[],n=null;return e.forEach(r=>{const i=tZ(at.cssPrefix,r);i?n=i:r&&t.push(r)}),{iconName:n,rest:t}}function Lk(e){return e.sort().filter((t,n,r)=>r.indexOf(t)===n)}function k0(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:n=!1}=t;let r=null;const i=nS.concat(xY),o=Lk(e.filter(p=>i.includes(p))),a=Lk(e.filter(p=>!nS.includes(p))),s=o.filter(p=>(r=p,!l$.includes(p))),[c=null]=s,u=iZ(o),h=ze(ze({},oZ(a)),{},{prefix:A0(c,{family:u})});return ze(ze(ze({},h),uZ({values:e,family:u,styles:Xh,config:at,canonical:h,givenPrefix:r})),aZ(n,r,h))}function aZ(e,t,n){let{prefix:r,iconName:i}=n;if(e||!r||!i)return{prefix:r,iconName:i};const o=t==="fa"?T$(i):{},a=lu(r,i);return i=o.iconName||a||i,r=o.prefix||r,r==="far"&&!Xh.far&&Xh.fas&&!at.autoFetchSvg&&(r="fas"),{prefix:r,iconName:i}}const sZ=u$.filter(e=>e!==gr||e!==T0),lZ=Object.keys(tS).filter(e=>e!==gr).map(e=>Object.keys(tS[e])).flat();function uZ(e){const{values:t,family:n,canonical:r,givenPrefix:i="",styles:o={},config:a={}}=e,s=n===T0,c=t.includes("fa-duotone")||t.includes("fad"),u=a.familyDefault==="duotone",h=r.prefix==="fad"||r.prefix==="fa-duotone";if(!s&&(c||u||h)&&(r.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(r.prefix="fab"),!r.prefix&&sZ.includes(n)&&(Object.keys(o).find(v=>lZ.includes(v))||a.autoFetchSvg)){const v=hY.get(n).defaultShortPrefixId;r.prefix=v,r.iconName=lu(r.prefix,r.iconName)||r.iconName}return(r.prefix==="fa"||i==="fa")&&(r.prefix=il()||"fas"),r}class cZ{constructor(){this.definitions={}}add(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i=n.reduce(this._pullDefinitions,{});Object.keys(i).forEach(o=>{this.definitions[o]=ze(ze({},this.definitions[o]||{}),i[o]),uS(o,i[o]);const a=KE[gr][o];a&&uS(a,i[o]),E$()})}reset(){this.definitions={}}_pullDefinitions(t,n){const r=n.prefix&&n.iconName&&n.icon?{0:n}:n;return Object.keys(r).map(i=>{const{prefix:o,iconName:a,icon:s}=r[i],c=s[2];t[o]||(t[o]={}),c.length>0&&c.forEach(u=>{typeof u=="string"&&(t[o][u]=s)}),t[o][a]=s}),t}}let Ik=[],Vc={};const Qc={},fZ=Object.keys(Qc);function dZ(e,t){let{mixoutsTo:n}=t;return Ik=e,Vc={},Object.keys(Qc).forEach(r=>{fZ.indexOf(r)===-1&&delete Qc[r]}),Ik.forEach(r=>{const i=r.mixout?r.mixout():{};if(Object.keys(i).forEach(o=>{typeof i[o]=="function"&&(n[o]=i[o]),typeof i[o]=="object"&&Object.keys(i[o]).forEach(a=>{n[o]||(n[o]={}),n[o][a]=i[o][a]})}),r.hooks){const o=r.hooks();Object.keys(o).forEach(a=>{Vc[a]||(Vc[a]=[]),Vc[a].push(o[a])})}r.provides&&r.provides(Qc)}),n}function cS(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return(Vc[e]||[]).forEach(a=>{t=a.apply(null,[t,...r])}),t}function _u(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(Vc[e]||[]).forEach(o=>{o.apply(null,n)})}function ol(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Qc[e]?Qc[e].apply(null,t):void 0}function fS(e){e.prefix==="fa"&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||il();if(t)return t=lu(n,t)||t,Nk(A$.definitions,n,t)||Nk(Go.styles,n,t)}const A$=new cZ,hZ=()=>{at.autoReplaceSvg=!1,at.observeMutations=!1,_u("noAuto")},pZ={i2svg:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Za?(_u("beforeI2svg",e),ol("pseudoElements2svg",e),ol("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t}=e;at.autoReplaceSvg===!1&&(at.autoReplaceSvg=!0),at.observeMutations=!0,YY(()=>{vZ({autoReplaceSvgRoot:t}),_u("watch",e)})}},mZ={icon:e=>{if(e===null)return null;if(typeof e=="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:lu(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&e.length===2){const t=e[1].indexOf("fa-")===0?e[1].slice(3):e[1],n=A0(e[0]);return{prefix:n,iconName:lu(n,t)||t}}if(typeof e=="string"&&(e.indexOf("".concat(at.cssPrefix,"-"))>-1||e.match(MY))){const t=k0(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||il(),iconName:lu(t.prefix,t.iconName)||t.iconName}}if(typeof e=="string"){const t=il();return{prefix:t,iconName:lu(t,e)||e}}}},xi={noAuto:hZ,config:at,dom:pZ,parse:mZ,library:A$,findIconDefinition:fS,toHtml:Kp},vZ=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t=an}=e;(Object.keys(Go.styles).length>0||at.autoFetchSvg)&&Za&&at.autoReplaceSvg&&xi.dom.i2svg({node:t})};function R0(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(n=>Kp(n))}}),Object.defineProperty(e,"node",{get:function(){if(!Za)return;const n=an.createElement("div");return n.innerHTML=e.html,n.children}}),e}function gZ(e){let{children:t,main:n,mask:r,attributes:i,styles:o,transform:a}=e;if(ZE(a)&&n.found&&!r.found){const{width:s,height:c}=n,u={x:s/c/2,y:.5};i.style=j0(ze(ze({},o),{},{"transform-origin":"".concat(u.x+a.x/16,"em ").concat(u.y+a.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}function yZ(e){let{prefix:t,iconName:n,children:r,attributes:i,symbol:o}=e;const a=o===!0?"".concat(t,"-").concat(at.cssPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:ze(ze({},i),{},{id:a}),children:r}]}]}function JE(e){const{icons:{main:t,mask:n},prefix:r,iconName:i,transform:o,symbol:a,title:s,maskId:c,titleId:u,extra:h,watchable:p=!1}=e,{width:v,height:b}=n.found?n:t,x=yY.includes(r),_=[at.replacementClass,i?"".concat(at.cssPrefix,"-").concat(i):""].filter(A=>h.classes.indexOf(A)===-1).filter(A=>A!==""||!!A).concat(h.classes).join(" ");let w={children:[],attributes:ze(ze({},h.attributes),{},{"data-prefix":r,"data-icon":i,class:_,role:h.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(v," ").concat(b)})};const O=x&&!~h.classes.indexOf("fa-fw")?{width:"".concat(v/b*16*.0625,"em")}:{};p&&(w.attributes[bu]=""),s&&(w.children.push({tag:"title",attributes:{id:w.attributes["aria-labelledby"]||"title-".concat(u||Zh())},children:[s]}),delete w.attributes.title);const P=ze(ze({},w),{},{prefix:r,iconName:i,main:t,mask:n,maskId:c,transform:o,symbol:a,styles:ze(ze({},O),h.styles)}),{children:E,attributes:T}=n.found&&t.found?ol("generateAbstractMask",P)||{children:[],attributes:{}}:ol("generateAbstractIcon",P)||{children:[],attributes:{}};return P.children=E,P.attributes=T,a?yZ(P):gZ(P)}function Dk(e){const{content:t,width:n,height:r,transform:i,title:o,extra:a,watchable:s=!1}=e,c=ze(ze(ze({},a.attributes),o?{title:o}:{}),{},{class:a.classes.join(" ")});s&&(c[bu]="");const u=ze({},a.styles);ZE(i)&&(u.transform=HY({transform:i,startCentered:!0,width:n,height:r}),u["-webkit-transform"]=u.transform);const h=j0(u);h.length>0&&(c.style=h);const p=[];return p.push({tag:"span",attributes:c,children:[t]}),o&&p.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),p}function bZ(e){const{content:t,title:n,extra:r}=e,i=ze(ze(ze({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),o=j0(r.styles);o.length>0&&(i.style=o);const a=[];return a.push({tag:"span",attributes:i,children:[t]}),n&&a.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),a}const{styles:v1}=Go;function dS(e){const t=e[0],n=e[1],[r]=e.slice(4);let i=null;return Array.isArray(r)?i={tag:"g",attributes:{class:"".concat(at.cssPrefix,"-").concat(h1.GROUP)},children:[{tag:"path",attributes:{class:"".concat(at.cssPrefix,"-").concat(h1.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(at.cssPrefix,"-").concat(h1.PRIMARY),fill:"currentColor",d:r[1]}}]}:i={tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:t,height:n,icon:i}}const _Z={found:!1,width:512,height:512};function xZ(e,t){!h$&&!at.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function hS(e,t){let n=t;return t==="fa"&&at.styleDefault!==null&&(t=il()),new Promise((r,i)=>{if(n==="fa"){const o=T$(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&v1[t]&&v1[t][e]){const o=v1[t][e];return r(dS(o))}xZ(e,t),r(ze(ze({},_Z),{},{icon:at.showMissingIcons&&e?ol("missingIconAbstract")||{}:{}}))})}const $k=()=>{},pS=at.measurePerformance&&Dv&&Dv.mark&&Dv.measure?Dv:{mark:$k,measure:$k},yh='FA "6.7.1"',wZ=e=>(pS.mark("".concat(yh," ").concat(e," begins")),()=>k$(e)),k$=e=>{pS.mark("".concat(yh," ").concat(e," ends")),pS.measure("".concat(yh," ").concat(e),"".concat(yh," ").concat(e," begins"),"".concat(yh," ").concat(e," ends"))};var eT={begin:wZ,end:k$};const dg=()=>{};function Fk(e){return typeof(e.getAttribute?e.getAttribute(bu):null)=="string"}function OZ(e){const t=e.getAttribute?e.getAttribute(HE):null,n=e.getAttribute?e.getAttribute(GE):null;return t&&n}function SZ(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(at.replacementClass)}function PZ(){return at.autoReplaceSvg===!0?hg.replace:hg[at.autoReplaceSvg]||hg.replace}function CZ(e){return an.createElementNS("http://www.w3.org/2000/svg",e)}function EZ(e){return an.createElement(e)}function R$(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:n=e.tag==="svg"?CZ:EZ}=t;if(typeof e=="string")return an.createTextNode(e);const r=n(e.tag);return Object.keys(e.attributes||[]).forEach(function(o){r.setAttribute(o,e.attributes[o])}),(e.children||[]).forEach(function(o){r.appendChild(R$(o,{ceFn:n}))}),r}function TZ(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}const hg={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach(n=>{t.parentNode.insertBefore(R$(n),t)}),t.getAttribute(bu)===null&&at.keepOriginalSource){let n=an.createComment(TZ(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~YE(t).indexOf(at.replacementClass))return hg.replace(e);const r=new RegExp("".concat(at.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const o=n[0].attributes.class.split(" ").reduce((a,s)=>(s===at.replacementClass||s.match(r)?a.toSvg.push(s):a.toNode.push(s),a),{toNode:[],toSvg:[]});n[0].attributes.class=o.toSvg.join(" "),o.toNode.length===0?t.removeAttribute("class"):t.setAttribute("class",o.toNode.join(" "))}const i=n.map(o=>Kp(o)).join(`
`);t.setAttribute(bu,""),t.innerHTML=i}};function Bk(e){e()}function N$(e,t){const n=typeof t=="function"?t:dg;if(e.length===0)n();else{let r=Bk;at.mutateApproach===kY&&(r=rl.requestAnimationFrame||Bk),r(()=>{const i=PZ(),o=eT.begin("mutate");e.map(i),o(),n()})}}let tT=!1;function M$(){tT=!0}function mS(){tT=!1}let Ag=null;function Uk(e){if(!Ek||!at.observeMutations)return;const{treeCallback:t=dg,nodeCallback:n=dg,pseudoElementsCallback:r=dg,observeMutationsRoot:i=an}=e;Ag=new Ek(o=>{if(tT)return;const a=il();Kf(o).forEach(s=>{if(s.type==="childList"&&s.addedNodes.length>0&&!Fk(s.addedNodes[0])&&(at.searchPseudoElements&&r(s.target),t(s.target)),s.type==="attributes"&&s.target.parentNode&&at.searchPseudoElements&&r(s.target.parentNode),s.type==="attributes"&&Fk(s.target)&&~DY.indexOf(s.attributeName))if(s.attributeName==="class"&&OZ(s.target)){const{prefix:c,iconName:u}=k0(YE(s.target));s.target.setAttribute(HE,c||a),u&&s.target.setAttribute(GE,u)}else SZ(s.target)&&n(s.target)})}),Za&&Ag.observe(i,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function jZ(){Ag&&Ag.disconnect()}function AZ(e){const t=e.getAttribute("style");let n=[];return t&&(n=t.split(";").reduce((r,i)=>{const o=i.split(":"),a=o[0],s=o.slice(1);return a&&s.length>0&&(r[a]=s.join(":").trim()),r},{})),n}function kZ(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"";let i=k0(YE(e));return i.prefix||(i.prefix=il()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=nZ(i.prefix,e.innerText)||QE(i.prefix,lS(e.innerText))),!i.iconName&&at.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function RZ(e){const t=Kf(e.attributes).reduce((i,o)=>(i.name!=="class"&&i.name!=="style"&&(i[o.name]=o.value),i),{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return at.autoA11y&&(n?t["aria-labelledby"]="".concat(at.replacementClass,"-title-").concat(r||Zh()):(t["aria-hidden"]="true",t.focusable="false")),t}function NZ(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Ho,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function zk(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0};const{iconName:n,prefix:r,rest:i}=kZ(e),o=RZ(e),a=cS("parseNodeAttributes",{},e);let s=t.styleParser?AZ(e):[];return ze({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:r,transform:Ho,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:s,attributes:o}},a)}const{styles:MZ}=Go;function L$(e){const t=at.autoReplaceSvg==="nest"?zk(e,{styleParser:!1}):zk(e);return~t.extra.classes.indexOf(m$)?ol("generateLayersText",e,t):ol("generateSvgReplacementMutation",e,t)}function LZ(){return[...mY,...nS]}function Vk(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Za)return Promise.resolve();const n=an.documentElement.classList,r=h=>n.add("".concat(Ak,"-").concat(h)),i=h=>n.remove("".concat(Ak,"-").concat(h)),o=at.autoFetchSvg?LZ():l$.concat(Object.keys(MZ));o.includes("fa")||o.push("fa");const a=[".".concat(m$,":not([").concat(bu,"])")].concat(o.map(h=>".".concat(h,":not([").concat(bu,"])"))).join(", ");if(a.length===0)return Promise.resolve();let s=[];try{s=Kf(e.querySelectorAll(a))}catch{}if(s.length>0)r("pending"),i("complete");else return Promise.resolve();const c=eT.begin("onTree"),u=s.reduce((h,p)=>{try{const v=L$(p);v&&h.push(v)}catch(v){h$||v.name==="MissingIcon"&&console.error(v)}return h},[]);return new Promise((h,p)=>{Promise.all(u).then(v=>{N$(v,()=>{r("active"),r("complete"),i("pending"),typeof t=="function"&&t(),c(),h()})}).catch(v=>{c(),p(v)})})}function IZ(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;L$(e).then(n=>{n&&N$([n],t)})}function DZ(e){return function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=(t||{}).icon?t:fS(t||{});let{mask:i}=n;return i&&(i=(i||{}).icon?i:fS(i||{})),e(r,ze(ze({},n),{},{mask:i}))}}const $Z=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=Ho,symbol:r=!1,mask:i=null,maskId:o=null,title:a=null,titleId:s=null,classes:c=[],attributes:u={},styles:h={}}=t;if(!e)return;const{prefix:p,iconName:v,icon:b}=e;return R0(ze({type:"icon"},e),()=>(_u("beforeDOMElementCreation",{iconDefinition:e,params:t}),at.autoA11y&&(a?u["aria-labelledby"]="".concat(at.replacementClass,"-title-").concat(s||Zh()):(u["aria-hidden"]="true",u.focusable="false")),JE({icons:{main:dS(b),mask:i?dS(i.icon):{found:!1,width:null,height:null,icon:{}}},prefix:p,iconName:v,transform:ze(ze({},Ho),n),symbol:r,title:a,maskId:o,titleId:s,extra:{attributes:u,styles:h,classes:c}})))};var FZ={mixout(){return{icon:DZ($Z)}},hooks(){return{mutationObserverCallbacks(e){return e.treeCallback=Vk,e.nodeCallback=IZ,e}}},provides(e){e.i2svg=function(t){const{node:n=an,callback:r=()=>{}}=t;return Vk(n,r)},e.generateSvgReplacementMutation=function(t,n){const{iconName:r,title:i,titleId:o,prefix:a,transform:s,symbol:c,mask:u,maskId:h,extra:p}=n;return new Promise((v,b)=>{Promise.all([hS(r,a),u.iconName?hS(u.iconName,u.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(x=>{let[_,w]=x;v([t,JE({icons:{main:_,mask:w},prefix:a,iconName:r,transform:s,symbol:c,maskId:h,title:i,titleId:o,extra:p,watchable:!0})])}).catch(b)})},e.generateAbstractIcon=function(t){let{children:n,attributes:r,main:i,transform:o,styles:a}=t;const s=j0(a);s.length>0&&(r.style=s);let c;return ZE(o)&&(c=ol("generateAbstractTransformGrouping",{main:i,transform:o,containerWidth:i.width,iconWidth:i.width})),n.push(c||i.icon),{children:n,attributes:r}}}},BZ={mixout(){return{layer(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{classes:n=[]}=t;return R0({type:"layer"},()=>{_u("beforeDOMElementCreation",{assembler:e,params:t});let r=[];return e(i=>{Array.isArray(i)?i.map(o=>{r=r.concat(o.abstract)}):r=r.concat(i.abstract)}),[{tag:"span",attributes:{class:["".concat(at.cssPrefix,"-layers"),...n].join(" ")},children:r}]})}}}},UZ={mixout(){return{counter(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{title:n=null,classes:r=[],attributes:i={},styles:o={}}=t;return R0({type:"counter",content:e},()=>(_u("beforeDOMElementCreation",{content:e,params:t}),bZ({content:e.toString(),title:n,extra:{attributes:i,styles:o,classes:["".concat(at.cssPrefix,"-layers-counter"),...r]}})))}}}},zZ={mixout(){return{text(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=Ho,title:r=null,classes:i=[],attributes:o={},styles:a={}}=t;return R0({type:"text",content:e},()=>(_u("beforeDOMElementCreation",{content:e,params:t}),Dk({content:e,transform:ze(ze({},Ho),n),title:r,extra:{attributes:o,styles:a,classes:["".concat(at.cssPrefix,"-layers-text"),...i]}})))}}},provides(e){e.generateLayersText=function(t,n){const{title:r,transform:i,extra:o}=n;let a=null,s=null;if(a$){const c=parseInt(getComputedStyle(t).fontSize,10),u=t.getBoundingClientRect();a=u.width/c,s=u.height/c}return at.autoA11y&&!r&&(o.attributes["aria-hidden"]="true"),Promise.resolve([t,Dk({content:t.innerHTML,width:a,height:s,transform:i,title:r,extra:o,watchable:!0})])}}};const VZ=new RegExp('"',"ug"),Wk=[1105920,1112319],qk=ze(ze(ze(ze({},{FontAwesome:{normal:"fas",400:"fas"}}),dY),jY),wY),vS=Object.keys(qk).reduce((e,t)=>(e[t.toLowerCase()]=qk[t],e),{}),WZ=Object.keys(vS).reduce((e,t)=>{const n=vS[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e},{});function qZ(e){const t=e.replace(VZ,""),n=XY(t,0),r=n>=Wk[0]&&n<=Wk[1],i=t.length===2?t[0]===t[1]:!1;return{value:lS(i?t[0]:t),isSecondary:r||i}}function HZ(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),i=isNaN(r)?"normal":r;return(vS[n]||{})[i]||WZ[n]}function Hk(e,t){const n="".concat(AY).concat(t.replace(":","-"));return new Promise((r,i)=>{if(e.getAttribute(n)!==null)return r();const a=Kf(e.children).filter(v=>v.getAttribute(iS)===t)[0],s=rl.getComputedStyle(e,t),c=s.getPropertyValue("font-family"),u=c.match(LY),h=s.getPropertyValue("font-weight"),p=s.getPropertyValue("content");if(a&&!u)return e.removeChild(a),r();if(u&&p!=="none"&&p!==""){const v=s.getPropertyValue("content");let b=HZ(c,h);const{value:x,isSecondary:_}=qZ(v),w=u[0].startsWith("FontAwesome");let O=QE(b,x),P=O;if(w){const E=rZ(x);E.iconName&&E.prefix&&(O=E.iconName,b=E.prefix)}if(O&&!_&&(!a||a.getAttribute(HE)!==b||a.getAttribute(GE)!==P)){e.setAttribute(n,P),a&&e.removeChild(a);const E=NZ(),{extra:T}=E;T.attributes[iS]=t,hS(O,b).then(A=>{const j=JE(ze(ze({},E),{},{icons:{main:A,mask:j$()},prefix:b,iconName:P,extra:T,watchable:!0})),N=an.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(N,e.firstChild):e.appendChild(N),N.outerHTML=j.map($=>Kp($)).join(`
`),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function GZ(e){return Promise.all([Hk(e,"::before"),Hk(e,"::after")])}function KZ(e){return e.parentNode!==document.head&&!~RY.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(iS)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function Gk(e){if(Za)return new Promise((t,n)=>{const r=Kf(e.querySelectorAll("*")).filter(KZ).map(GZ),i=eT.begin("searchPseudoElements");M$(),Promise.all(r).then(()=>{i(),mS(),t()}).catch(()=>{i(),mS(),n()})})}var YZ={hooks(){return{mutationObserverCallbacks(e){return e.pseudoElementsCallback=Gk,e}}},provides(e){e.pseudoElements2svg=function(t){const{node:n=an}=t;at.searchPseudoElements&&Gk(n)}}};let Kk=!1;var ZZ={mixout(){return{dom:{unwatch(){M$(),Kk=!0}}}},hooks(){return{bootstrap(){Uk(cS("mutationObserverCallbacks",{}))},noAuto(){jZ()},watch(e){const{observeMutationsRoot:t}=e;Kk?mS():Uk(cS("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}};const Yk=e=>{let t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e.toLowerCase().split(" ").reduce((n,r)=>{const i=r.toLowerCase().split("-"),o=i[0];let a=i.slice(1).join("-");if(o&&a==="h")return n.flipX=!0,n;if(o&&a==="v")return n.flipY=!0,n;if(a=parseFloat(a),isNaN(a))return n;switch(o){case"grow":n.size=n.size+a;break;case"shrink":n.size=n.size-a;break;case"left":n.x=n.x-a;break;case"right":n.x=n.x+a;break;case"up":n.y=n.y-a;break;case"down":n.y=n.y+a;break;case"rotate":n.rotate=n.rotate+a;break}return n},t)};var XZ={mixout(){return{parse:{transform:e=>Yk(e)}}},hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=Yk(n)),e}}},provides(e){e.generateAbstractTransformGrouping=function(t){let{main:n,transform:r,containerWidth:i,iconWidth:o}=t;const a={transform:"translate(".concat(i/2," 256)")},s="translate(".concat(r.x*32,", ").concat(r.y*32,") "),c="scale(".concat(r.size/16*(r.flipX?-1:1),", ").concat(r.size/16*(r.flipY?-1:1),") "),u="rotate(".concat(r.rotate," 0 0)"),h={transform:"".concat(s," ").concat(c," ").concat(u)},p={transform:"translate(".concat(o/2*-1," -256)")},v={outer:a,inner:h,path:p};return{tag:"g",attributes:ze({},v.outer),children:[{tag:"g",attributes:ze({},v.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:ze(ze({},n.icon.attributes),v.path)}]}]}}}};const g1={x:0,y:0,width:"100%",height:"100%"};function Zk(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function QZ(e){return e.tag==="g"?e.children:[e]}var JZ={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),r=n?k0(n.split(" ").map(i=>i.trim())):j$();return r.prefix||(r.prefix=il()),e.mask=r,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides(e){e.generateAbstractMask=function(t){let{children:n,attributes:r,main:i,mask:o,maskId:a,transform:s}=t;const{width:c,icon:u}=i,{width:h,icon:p}=o,v=qY({transform:s,containerWidth:h,iconWidth:c}),b={tag:"rect",attributes:ze(ze({},g1),{},{fill:"white"})},x=u.children?{children:u.children.map(Zk)}:{},_={tag:"g",attributes:ze({},v.inner),children:[Zk(ze({tag:u.tag,attributes:ze(ze({},u.attributes),v.path)},x))]},w={tag:"g",attributes:ze({},v.outer),children:[_]},O="mask-".concat(a||Zh()),P="clip-".concat(a||Zh()),E={tag:"mask",attributes:ze(ze({},g1),{},{id:O,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[b,w]},T={tag:"defs",children:[{tag:"clipPath",attributes:{id:P},children:QZ(p)},E]};return n.push(T,{tag:"rect",attributes:ze({fill:"currentColor","clip-path":"url(#".concat(P,")"),mask:"url(#".concat(O,")")},g1)}),{children:n,attributes:r}}}},eX={provides(e){let t=!1;rl.matchMedia&&(t=rl.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){const n=[],r={fill:"currentColor"},i={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};n.push({tag:"path",attributes:ze(ze({},r),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});const o=ze(ze({},i),{},{attributeName:"opacity"}),a={tag:"circle",attributes:ze(ze({},r),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||a.children.push({tag:"animate",attributes:ze(ze({},i),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:ze(ze({},o),{},{values:"1;0;1;1;0;1;"})}),n.push(a),n.push({tag:"path",attributes:ze(ze({},r),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:ze(ze({},o),{},{values:"1;0;0;0;0;1;"})}]}),t||n.push({tag:"path",attributes:ze(ze({},r),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:ze(ze({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},tX={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),r=n===null?!1:n===""?!0:n;return e.symbol=r,e}}}},nX=[KY,FZ,BZ,UZ,zZ,YZ,ZZ,XZ,JZ,eX,tX];dZ(nX,{mixoutsTo:xi});xi.noAuto;xi.config;xi.library;xi.dom;const gS=xi.parse;xi.findIconDefinition;xi.toHtml;const rX=xi.icon;xi.layer;xi.text;xi.counter;var y1={exports:{}},b1,Xk;function iX(){if(Xk)return b1;Xk=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return b1=e,b1}var _1,Qk;function oX(){if(Qk)return _1;Qk=1;var e=iX();function t(){}function n(){}return n.resetWarningCache=t,_1=function(){function r(a,s,c,u,h,p){if(p!==e){var v=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 v.name="Invariant Violation",v}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},_1}var Jk;function aX(){return Jk||(Jk=1,y1.exports=oX()()),y1.exports}var sX=aX();const q=Nt(sX);function eR(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 qo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eR(Object(n),!0).forEach(function(r){Wc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kg(e){"@babel/helpers - typeof";return kg=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},kg(e)}function Wc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lX(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 uX(e,t){if(e==null)return{};var n=lX(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 yS(e){return cX(e)||fX(e)||dX(e)||hX()}function cX(e){if(Array.isArray(e))return bS(e)}function fX(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function dX(e,t){if(e){if(typeof e=="string")return bS(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 bS(e,t)}}function bS(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 hX(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pX(e){var t,n=e.beat,r=e.fade,i=e.beatFade,o=e.bounce,a=e.shake,s=e.flash,c=e.spin,u=e.spinPulse,h=e.spinReverse,p=e.pulse,v=e.fixedWidth,b=e.inverse,x=e.border,_=e.listItem,w=e.flip,O=e.size,P=e.rotation,E=e.pull,T=(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":i,"fa-bounce":o,"fa-shake":a,"fa-flash":s,"fa-spin":c,"fa-spin-reverse":h,"fa-spin-pulse":u,"fa-pulse":p,"fa-fw":v,"fa-inverse":b,"fa-border":x,"fa-li":_,"fa-flip":w===!0,"fa-flip-horizontal":w==="horizontal"||w==="both","fa-flip-vertical":w==="vertical"||w==="both"},Wc(t,"fa-".concat(O),typeof O<"u"&&O!==null),Wc(t,"fa-rotate-".concat(P),typeof P<"u"&&P!==null&&P!==0),Wc(t,"fa-pull-".concat(E),typeof E<"u"&&E!==null),Wc(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(T).map(function(A){return T[A]?A:null}).filter(function(A){return A})}function mX(e){return e=e-0,e===e}function I$(e){return mX(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,n){return n?n.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var vX=["style"];function gX(e){return e.charAt(0).toUpperCase()+e.slice(1)}function yX(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),i=I$(n.slice(0,r)),o=n.slice(r+1).trim();return i.startsWith("webkit")?t[gX(i)]=o:t[i]=o,t},{})}function D$(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var r=(t.children||[]).map(function(c){return D$(e,c)}),i=Object.keys(t.attributes||{}).reduce(function(c,u){var h=t.attributes[u];switch(u){case"class":c.attrs.className=h,delete t.attributes.class;break;case"style":c.attrs.style=yX(h);break;default:u.indexOf("aria-")===0||u.indexOf("data-")===0?c.attrs[u.toLowerCase()]=h:c.attrs[I$(u)]=h}return c},{attrs:{}}),o=n.style,a=o===void 0?{}:o,s=uX(n,vX);return i.attrs.style=qo(qo({},i.attrs.style),a),e.apply(void 0,[t.tag,qo(qo({},i.attrs),s)].concat(yS(r)))}var $$=!1;try{$$=!0}catch{}function bX(){if(!$$&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function tR(e){if(e&&kg(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(gS.icon)return gS.icon(e);if(e===null)return null;if(e&&kg(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}function x1(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Wc({},e,t):{}}var nR={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1},Ge=Z.forwardRef(function(e,t){var n=qo(qo({},nR),e),r=n.icon,i=n.mask,o=n.symbol,a=n.className,s=n.title,c=n.titleId,u=n.maskId,h=tR(r),p=x1("classes",[].concat(yS(pX(n)),yS((a||"").split(" ")))),v=x1("transform",typeof n.transform=="string"?gS.transform(n.transform):n.transform),b=x1("mask",tR(i)),x=rX(h,qo(qo(qo(qo({},p),v),b),{},{symbol:o,title:s,titleId:c,maskId:u}));if(!x)return bX("Could not find icon",h),null;var _=x.abstract,w={ref:t};return Object.keys(n).forEach(function(O){nR.hasOwnProperty(O)||(w[O]=n[O])}),_X(_[0],w)});Ge.displayName="FontAwesomeIcon";Ge.propTypes={beat:q.bool,border:q.bool,beatFade:q.bool,bounce:q.bool,className:q.string,fade:q.bool,flash:q.bool,mask:q.oneOfType([q.object,q.array,q.string]),maskId:q.string,fixedWidth:q.bool,inverse:q.bool,flip:q.oneOf([!0,!1,"horizontal","vertical","both"]),icon:q.oneOfType([q.object,q.array,q.string]),listItem:q.bool,pull:q.oneOf(["right","left"]),pulse:q.bool,rotation:q.oneOf([0,90,180,270]),shake:q.bool,size:q.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:q.bool,spinPulse:q.bool,spinReverse:q.bool,symbol:q.oneOfType([q.bool,q.string]),title:q.string,titleId:q.string,transform:q.oneOfType([q.string,q.object]),swapOpacity:q.bool};var _X=D$.bind(null,Z.createElement);function F$(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=F$(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Be(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=F$(e))&&(r&&(r+=" "),r+=t);return r}var w1={exports:{}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/var rR;function xX(){return rR||(rR=1,function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],i=0;i<arguments.length;i++){var o=arguments[i];if(o){var a=typeof o;if(a==="string"||a==="number")r.push(o);else if(Array.isArray(o)){if(o.length){var s=n.apply(null,o);s&&r.push(s)}}else if(a==="object"){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){r.push(o.toString());continue}for(var c in o)t.call(o,c)&&o[c]&&r.push(c)}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()}(w1)),w1.exports}var wX=xX();const mt=Nt(wX);function iR(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 OX(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?iR(Object(n),!0).forEach(function(r){SX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function SX(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xu(e){"@babel/helpers - typeof";return xu=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},xu(e)}function PX(){var e=document.createElement("div");e.style.position="absolute",e.style.top="-9999px",e.style.width="50px",e.style.height="50px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}function B$(e){document.body.style.paddingRight=e>0?"".concat(e,"px"):null}function CX(){return document.body.clientWidth<window.innerWidth}function EX(){var e=window.getComputedStyle(document.body,null);return parseInt(e&&e.getPropertyValue("padding-right")||0,10)}function TX(){var e=PX(),t=document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top")[0],n=t?parseInt(t.style.paddingRight||0,10):0;CX()&&B$(n+e)}var jX;function ct(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:jX;return t?e.split(" ").map(function(n){return t[n]||n}).join(" "):e}function fl(e,t){var n={};return Object.keys(e).forEach(function(r){t.indexOf(r)===-1&&(n[r]=e[r])}),n}function U$(e,t){for(var n=Array.isArray(t)?t:[t],r=n.length,i,o={};r>0;)r-=1,i=n[r],o[i]=e[i];return o}var oR={};function _S(e){oR[e]||(typeof console<"u"&&console.error(e),oR[e]=!0)}function z$(e,t){return function(r,i,o){r[i]!==null&&typeof r[i]<"u"&&_S('"'.concat(i,'" property of "').concat(o,`" has been deprecated.
`).concat(t));for(var a=arguments.length,s=new Array(a>3?a-3:0),c=3;c<a;c++)s[c-3]=arguments[c];return e.apply(void 0,[r,i,o].concat(s))}}var AX=(typeof window>"u"?"undefined":xu(window))==="object"&&window.Element||function(){};function nT(e,t,n){if(!(e[t]instanceof AX))return new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Expected prop to be an instance of Element. Validation failed.")}var sf=q.oneOfType([q.string,q.func,nT,q.shape({current:q.any})]),At=q.oneOfType([q.func,q.string,q.shape({$$typeof:q.symbol,render:q.func}),q.arrayOf(q.oneOfType([q.func,q.string,q.shape({$$typeof:q.symbol,render:q.func})]))]),Rg={Fade:150,Collapse:350,Modal:300,Carousel:600,Offcanvas:300},Ng=["in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],Fv={ENTERING:"entering",ENTERED:"entered",EXITING:"exiting",EXITED:"exited"},Bt={esc:27,space:32,enter:13,tab:9,up:38,down:40,home:36,end:35,n:78,p:80},kX=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],rT=!!(typeof window<"u"&&window.document&&window.document.createElement);function RX(e){return e&&xu(e)==="object"?"current"in e:!1}function V$(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function xS(e){var t=xu(e);return e!=null&&(t==="object"||t==="function")}function aR(e){var t=xu(e),n=NaN;if(t==="number")return e;if(t==="symbol"||t==="object"&&V$(e)==="[object Symbol]")return n;if(xS(e)){var r=typeof e.valueOf=="function"?e.valueOf():e;e=xS(r)?"".concat(r):r}if(t!=="string")return e===0?e:+e;e=e.replace(/^\s+|\s+$/g,"");var i=/^0b[01]+$/i.test(e);return i||/^0o[0-7]+$/i.test(e)?parseInt(e.slice(2),i?2:8):/^[-+]0x[0-9a-f]+$/i.test(e)?n:+e}function NX(e){if(!xS(e))return!1;var t=V$(e);return t==="[object Function]"||t==="[object AsyncFunction]"||t==="[object GeneratorFunction]"||t==="[object Proxy]"}function MX(e){if(RX(e))return e.current;if(NX(e))return e();if(typeof e=="string"&&rT){var t=document.querySelectorAll(e);if(t.length||(t=document.querySelectorAll("#".concat(e))),!t.length)throw new Error("The target '".concat(e,"' could not be identified in the dom, tip: check spelling"));return t}return e}function sR(e){return e===null?!1:Array.isArray(e)||rT&&typeof e.length=="number"}function Qh(e,t){var n=MX(e);return t?sR(n)?n:n===null?[]:[n]:sR(n)?n[0]:n}var LX=["a[href]","area[href]","input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","object","embed","[tabindex]:not(.modal):not(.offcanvas)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'];function iT(e,t){if(!e||!t)return t;var n=OX({},t);return Object.keys(e).forEach(function(r){n[r]===void 0&&(n[r]=e[r]),Object.keys(e[r]||{}).length>0&&xu(e[r])==="object"&&iT(e[r],n)}),n}var IX=["className","cssModule","noGutters","tag","widths"];function wS(){return wS=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},wS.apply(this,arguments)}function DX(e,t){if(e==null)return{};var n=$X(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 $X(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}var FX=["xs","sm","md","lg","xl","xxl"],Tc=q.oneOfType([q.number,q.string]),BX={tag:At,noGutters:z$(q.bool,"Please use Bootstrap 5 gutter utility classes. https://getbootstrap.com/docs/5.0/layout/gutters/"),className:q.string,cssModule:q.object,xs:Tc,sm:Tc,md:Tc,lg:Tc,xl:Tc,xxl:Tc,widths:q.array};function qi(e){var t=e.className,n=e.cssModule,r=e.noGutters,i=e.tag,o=i===void 0?"div":i,a=e.widths,s=a===void 0?FX:a,c=DX(e,IX),u=[];s.forEach(function(p,v){var b=e[p];if(delete c[p],!!b){var x=!v;u.push(x?"row-cols-".concat(b):"row-cols-".concat(p,"-").concat(b))}});var h=ct(mt(t,r?"gx-0":null,"row",u),n);return Z.createElement(o,wS({},c,{className:h}))}qi.propTypes=BX;var UX=["expand","className","cssModule","light","dark","fixed","sticky","color","container","tag","children"];function OS(){return OS=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},OS.apply(this,arguments)}function O1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zX(e,t){if(e==null)return{};var n=VX(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 VX(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}var WX={children:q.node,className:q.string,color:q.string,container:q.oneOfType([q.bool,q.string]),cssModule:q.object,dark:q.bool,expand:q.oneOfType([q.bool,q.string]),fixed:q.string,light:q.bool,role:q.string,sticky:q.string,tag:At},qX=function(t){return t===!1?!1:t===!0||t==="xs"?"navbar-expand":"navbar-expand-".concat(t)};function W$(e){var t,n=e.expand,r=n===void 0?!1:n,i=e.className,o=e.cssModule,a=e.light,s=e.dark,c=e.fixed,u=e.sticky,h=e.color,p=e.container,v=p===void 0?"fluid":p,b=e.tag,x=b===void 0?"nav":b,_=e.children,w=zX(e,UX),O=ct(mt(i,"navbar",qX(r),(t={"navbar-light":a,"navbar-dark":s},O1(t,"bg-".concat(h),h),O1(t,"fixed-".concat(c),c),O1(t,"sticky-".concat(u),u),t)),o),P=v&&v===!0?"container":"container-".concat(v);return Z.createElement(x,OS({},w,{className:O}),v?Z.createElement("div",{className:P},_):_)}W$.propTypes=WX;var HX=["className","cssModule","tag"];function SS(){return SS=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},SS.apply(this,arguments)}function GX(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={},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}var YX={className:q.string,cssModule:q.object,tag:At};function q$(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"a":r,o=GX(e,HX),a=ct(mt(t,"navbar-brand"),n);return Z.createElement(i,SS({},o,{className:a}))}q$.propTypes=YX;var ZX=["className","cssModule","children","tag"];function PS(){return PS=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},PS.apply(this,arguments)}function lR(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 XX(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lR(Object(n),!0).forEach(function(r){QX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function QX(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JX(e,t){if(e==null)return{};var n=eQ(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 eQ(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}var tQ={className:q.string,cssModule:q.object,tag:At,type:q.string,children:q.node};function H$(e){var t=e.className,n=e.cssModule,r=e.children,i=e.tag,o=i===void 0?"button":i,a=JX(e,ZX),s=ct(mt(t,"navbar-toggler"),n);return Z.createElement(o,PS({"aria-label":"Toggle navigation"},XX({type:"button"},a),{className:s}),r||Z.createElement("span",{className:ct("navbar-toggler-icon",n)}))}H$.propTypes=tQ;var nQ=["className","cssModule","tabs","pills","vertical","horizontal","justified","fill","navbar","card","tag"];function CS(){return CS=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},CS.apply(this,arguments)}function rQ(e,t){if(e==null)return{};var n=iQ(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 iQ(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}var oQ={card:q.bool,className:q.string,cssModule:q.object,fill:q.bool,horizontal:q.oneOf(["center","end"]),justified:q.bool,navbar:q.bool,pills:q.bool,tabs:q.bool,tag:At,vertical:q.oneOfType([q.bool,q.string])},aQ=function(t){return t===!1?!1:t===!0||t==="xs"?"flex-column":"flex-".concat(t,"-column")};function oT(e){var t=e.className,n=e.cssModule,r=e.tabs,i=e.pills,o=e.vertical,a=o===void 0?!1:o,s=e.horizontal,c=e.justified,u=e.fill,h=e.navbar,p=e.card,v=e.tag,b=v===void 0?"ul":v,x=rQ(e,nQ),_=ct(mt(t,h?"navbar-nav":"nav",s?"justify-content-".concat(s):!1,aQ(a),{"nav-tabs":r,"card-header-tabs":p&&r,"nav-pills":i,"card-header-pills":p&&i,"nav-justified":c,"nav-fill":u}),n);return Z.createElement(b,CS({},x,{className:_}))}oT.propTypes=oQ;var sQ=["className","cssModule","active","tag"];function ES(){return ES=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ES.apply(this,arguments)}function lQ(e,t){if(e==null)return{};var n=uQ(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 uQ(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}var cQ={active:q.bool,className:q.string,cssModule:q.object,tag:At};function aT(e){var t=e.className,n=e.cssModule,r=e.active,i=e.tag,o=i===void 0?"li":i,a=lQ(e,sQ),s=ct(mt(t,"nav-item",r?"active":!1),n);return Z.createElement(o,ES({},a,{className:s}))}aT.propTypes=cQ;function TS(e){"@babel/helpers - typeof";return TS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},TS(e)}var fQ=["className","cssModule","active","tag","innerRef"];function jS(){return jS=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},jS.apply(this,arguments)}function dQ(e,t){if(e==null)return{};var n=hQ(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 hQ(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 pQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mQ(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,r.key,r)}}function vQ(e,t,n){return t&&mQ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function gQ(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&AS(e,t)}function AS(e,t){return AS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},AS(e,t)}function yQ(e){var t=_Q();return function(){var r=Mg(e),i;if(t){var o=Mg(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return bQ(this,i)}}function bQ(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 G$(e)}function G$(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _Q(){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 Mg(e){return Mg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Mg(e)}var xQ={active:q.bool,className:q.string,cssModule:q.object,disabled:q.bool,href:q.any,innerRef:q.oneOfType([q.object,q.func,q.string]),onClick:q.func,tag:At},sT=function(e){gQ(n,e);var t=yQ(n);function n(r){var i;return pQ(this,n),i=t.call(this,r),i.onClick=i.onClick.bind(G$(i)),i}return vQ(n,[{key:"onClick",value:function(i){if(this.props.disabled){i.preventDefault();return}this.props.href==="#"&&i.preventDefault(),this.props.onClick&&this.props.onClick(i)}},{key:"render",value:function(){var i=this.props,o=i.className,a=i.cssModule,s=i.active,c=i.tag,u=c===void 0?"a":c,h=i.innerRef,p=dQ(i,fQ),v=ct(mt(o,"nav-link",{disabled:p.disabled,active:s}),a);return Z.createElement(u,jS({},p,{ref:h,onClick:this.onClick,className:v}))}}]),n}(Z.Component);sT.propTypes=xQ;var wQ=["className","cssModule","variant","innerRef"];function kS(){return kS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kS.apply(this,arguments)}function uR(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 OQ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uR(Object(n),!0).forEach(function(r){SQ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function SQ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PQ(e,t){if(e==null)return{};var n=CQ(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 CQ(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}var EQ={active:q.bool,"aria-label":q.string,onClick:q.func,variant:q.oneOf(["white"]),className:q.string,cssModule:q.object,innerRef:q.oneOfType([q.object,q.string,q.func])};function K$(e){var t=e.className;e.cssModule;var n=e.variant,r=e.innerRef,i=PQ(e,wQ),o=ct(mt(t,"btn-close",n&&"btn-close-".concat(n)));return Z.createElement("button",kS({ref:r,type:"button",className:o},OQ({"aria-label":"close"},i)))}K$.propTypes=EQ;var TQ=["active","aria-label","block","className","close","cssModule","color","outline","size","tag","innerRef"];function RS(){return RS=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},RS.apply(this,arguments)}function jQ(e,t){if(e==null)return{};var n=AQ(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 AQ(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}var kQ={active:q.bool,"aria-label":q.string,block:q.bool,children:q.node,className:q.string,cssModule:q.object,close:q.bool,color:q.string,disabled:q.bool,innerRef:q.oneOfType([q.object,q.func,q.string]),onClick:q.func,outline:q.bool,size:q.string,tag:At};function _t(e){var t=F.useCallback(function(P){if(e.disabled){P.preventDefault();return}if(e.onClick)return e.onClick(P)},[e.onClick,e.disabled]),n=e.active,r=e["aria-label"],i=e.block,o=e.className,a=e.close,s=e.cssModule,c=e.color,u=c===void 0?"secondary":c,h=e.outline,p=e.size,v=e.tag,b=v===void 0?"button":v,x=e.innerRef,_=jQ(e,TQ);if(a)return Z.createElement(K$,_);var w="btn".concat(h?"-outline":"","-").concat(u),O=ct(mt(o,"btn",w,p?"btn-".concat(p):!1,i?"d-block w-100":!1,{active:n,disabled:e.disabled}),s);return _.href&&b==="button"&&(b="a"),Z.createElement(b,RS({type:b==="button"&&_.onClick?"button":void 0},_,{className:O,ref:x,onClick:t,"aria-label":r}))}_t.propTypes=kQ;var Y$=F.createContext(),Z$=F.createContext();function cR(e){var t=e.children,n=F.useState(null),r=n[0],i=n[1],o=F.useRef(!1);F.useEffect(function(){return function(){o.current=!0}},[]);var a=F.useCallback(function(s){o.current||i(s)},[]);return F.createElement(Y$.Provider,{value:r},F.createElement(Z$.Provider,{value:a},t))}var X$=function(t){return Array.isArray(t)?t[0]:t},Q$=function(t){if(typeof t=="function"){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.apply(void 0,r)}},NS=function(t,n){if(typeof t=="function")return Q$(t,n);t!=null&&(t.current=n)},fR=function(t){return t.reduce(function(n,r){var i=r[0],o=r[1];return n[i]=o,n},{})},dR=typeof window<"u"&&window.document&&window.document.createElement?F.useLayoutEffect:F.useEffect,qr="top",Yi="bottom",Zi="right",Hr="left",lT="auto",Yp=[qr,Yi,Zi,Hr],lf="start",Jh="end",RQ="clippingParents",J$="viewport",rh="popper",NQ="reference",hR=Yp.reduce(function(e,t){return e.concat([t+"-"+lf,t+"-"+Jh])},[]),eF=[].concat(Yp,[lT]).reduce(function(e,t){return e.concat([t,t+"-"+lf,t+"-"+Jh])},[]),MQ="beforeRead",LQ="read",IQ="afterRead",DQ="beforeMain",$Q="main",FQ="afterMain",BQ="beforeWrite",UQ="write",zQ="afterWrite",VQ=[MQ,LQ,IQ,DQ,$Q,FQ,BQ,UQ,zQ];function ta(e){return e?(e.nodeName||"").toLowerCase():null}function gi(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function wu(e){var t=gi(e).Element;return e instanceof t||e instanceof Element}function Gi(e){var t=gi(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function uT(e){if(typeof ShadowRoot>"u")return!1;var t=gi(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function WQ(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!Gi(o)||!ta(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var s=i[a];s===!1?o.removeAttribute(a):o.setAttribute(a,s===!0?"":s)}))})}function qQ(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(c,u){return c[u]="",c},{});!Gi(i)||!ta(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(c){i.removeAttribute(c)}))})}}const HQ={name:"applyStyles",enabled:!0,phase:"write",fn:WQ,effect:qQ,requires:["computeStyles"]};function Zo(e){return e.split("-")[0]}var pu=Math.max,Lg=Math.min,uf=Math.round;function MS(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function tF(){return!/^((?!chrome|android).)*safari/i.test(MS())}function cf(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&Gi(e)&&(i=e.offsetWidth>0&&uf(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&uf(r.height)/e.offsetHeight||1);var a=wu(e)?gi(e):window,s=a.visualViewport,c=!tF()&&n,u=(r.left+(c&&s?s.offsetLeft:0))/i,h=(r.top+(c&&s?s.offsetTop:0))/o,p=r.width/i,v=r.height/o;return{width:p,height:v,top:h,right:u+p,bottom:h+v,left:u,x:u,y:h}}function cT(e){var t=cf(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function nF(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&uT(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ua(e){return gi(e).getComputedStyle(e)}function GQ(e){return["table","td","th"].indexOf(ta(e))>=0}function dl(e){return((wu(e)?e.ownerDocument:e.document)||window.document).documentElement}function N0(e){return ta(e)==="html"?e:e.assignedSlot||e.parentNode||(uT(e)?e.host:null)||dl(e)}function pR(e){return!Gi(e)||Ua(e).position==="fixed"?null:e.offsetParent}function KQ(e){var t=/firefox/i.test(MS()),n=/Trident/i.test(MS());if(n&&Gi(e)){var r=Ua(e);if(r.position==="fixed")return null}var i=N0(e);for(uT(i)&&(i=i.host);Gi(i)&&["html","body"].indexOf(ta(i))<0;){var o=Ua(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function Zp(e){for(var t=gi(e),n=pR(e);n&&GQ(n)&&Ua(n).position==="static";)n=pR(n);return n&&(ta(n)==="html"||ta(n)==="body"&&Ua(n).position==="static")?t:n||KQ(e)||t}function fT(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function kh(e,t,n){return pu(e,Lg(t,n))}function YQ(e,t,n){var r=kh(e,t,n);return r>n?n:r}function rF(){return{top:0,right:0,bottom:0,left:0}}function iF(e){return Object.assign({},rF(),e)}function oF(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var ZQ=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,iF(typeof t!="number"?t:oF(t,Yp))};function XQ(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Zo(n.placement),c=fT(s),u=[Hr,Zi].indexOf(s)>=0,h=u?"height":"width";if(!(!o||!a)){var p=ZQ(i.padding,n),v=cT(o),b=c==="y"?qr:Hr,x=c==="y"?Yi:Zi,_=n.rects.reference[h]+n.rects.reference[c]-a[c]-n.rects.popper[h],w=a[c]-n.rects.reference[c],O=Zp(o),P=O?c==="y"?O.clientHeight||0:O.clientWidth||0:0,E=_/2-w/2,T=p[b],A=P-v[h]-p[x],j=P/2-v[h]/2+E,N=kh(T,j,A),$=c;n.modifiersData[r]=(t={},t[$]=N,t.centerOffset=N-j,t)}}function QQ(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||nF(t.elements.popper,i)&&(t.elements.arrow=i))}const JQ={name:"arrow",enabled:!0,phase:"main",fn:XQ,effect:QQ,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ff(e){return e.split("-")[1]}var eJ={top:"auto",right:"auto",bottom:"auto",left:"auto"};function tJ(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:uf(n*i)/i||0,y:uf(r*i)/i||0}}function mR(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,c=e.gpuAcceleration,u=e.adaptive,h=e.roundOffsets,p=e.isFixed,v=a.x,b=v===void 0?0:v,x=a.y,_=x===void 0?0:x,w=typeof h=="function"?h({x:b,y:_}):{x:b,y:_};b=w.x,_=w.y;var O=a.hasOwnProperty("x"),P=a.hasOwnProperty("y"),E=Hr,T=qr,A=window;if(u){var j=Zp(n),N="clientHeight",$="clientWidth";if(j===gi(n)&&(j=dl(n),Ua(j).position!=="static"&&s==="absolute"&&(N="scrollHeight",$="scrollWidth")),j=j,i===qr||(i===Hr||i===Zi)&&o===Jh){T=Yi;var W=p&&j===A&&A.visualViewport?A.visualViewport.height:j[N];_-=W-r.height,_*=c?1:-1}if(i===Hr||(i===qr||i===Yi)&&o===Jh){E=Zi;var B=p&&j===A&&A.visualViewport?A.visualViewport.width:j[$];b-=B-r.width,b*=c?1:-1}}var V=Object.assign({position:s},u&&eJ),H=h===!0?tJ({x:b,y:_},gi(n)):{x:b,y:_};if(b=H.x,_=H.y,c){var J;return Object.assign({},V,(J={},J[T]=P?"0":"",J[E]=O?"0":"",J.transform=(A.devicePixelRatio||1)<=1?"translate("+b+"px, "+_+"px)":"translate3d("+b+"px, "+_+"px, 0)",J))}return Object.assign({},V,(t={},t[T]=P?_+"px":"",t[E]=O?b+"px":"",t.transform="",t))}function nJ(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,s=n.roundOffsets,c=s===void 0?!0:s,u={placement:Zo(t.placement),variation:ff(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,mR(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,mR(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const rJ={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:nJ,data:{}};var Bv={passive:!0};function iJ(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,s=a===void 0?!0:a,c=gi(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(h){h.addEventListener("scroll",n.update,Bv)}),s&&c.addEventListener("resize",n.update,Bv),function(){o&&u.forEach(function(h){h.removeEventListener("scroll",n.update,Bv)}),s&&c.removeEventListener("resize",n.update,Bv)}}const oJ={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:iJ,data:{}};var aJ={left:"right",right:"left",bottom:"top",top:"bottom"};function pg(e){return e.replace(/left|right|bottom|top/g,function(t){return aJ[t]})}var sJ={start:"end",end:"start"};function vR(e){return e.replace(/start|end/g,function(t){return sJ[t]})}function dT(e){var t=gi(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function hT(e){return cf(dl(e)).left+dT(e).scrollLeft}function lJ(e,t){var n=gi(e),r=dl(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,c=0;if(i){o=i.width,a=i.height;var u=tF();(u||!u&&t==="fixed")&&(s=i.offsetLeft,c=i.offsetTop)}return{width:o,height:a,x:s+hT(e),y:c}}function uJ(e){var t,n=dl(e),r=dT(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=pu(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=pu(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+hT(e),c=-r.scrollTop;return Ua(i||n).direction==="rtl"&&(s+=pu(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:c}}function pT(e){var t=Ua(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function aF(e){return["html","body","#document"].indexOf(ta(e))>=0?e.ownerDocument.body:Gi(e)&&pT(e)?e:aF(N0(e))}function Rh(e,t){var n;t===void 0&&(t=[]);var r=aF(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=gi(r),a=i?[o].concat(o.visualViewport||[],pT(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(Rh(N0(a)))}function LS(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function cJ(e,t){var n=cf(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function gR(e,t,n){return t===J$?LS(lJ(e,n)):wu(t)?cJ(t,n):LS(uJ(dl(e)))}function fJ(e){var t=Rh(N0(e)),n=["absolute","fixed"].indexOf(Ua(e).position)>=0,r=n&&Gi(e)?Zp(e):e;return wu(r)?t.filter(function(i){return wu(i)&&nF(i,r)&&ta(i)!=="body"}):[]}function dJ(e,t,n,r){var i=t==="clippingParents"?fJ(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(c,u){var h=gR(e,u,r);return c.top=pu(h.top,c.top),c.right=Lg(h.right,c.right),c.bottom=Lg(h.bottom,c.bottom),c.left=pu(h.left,c.left),c},gR(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function sF(e){var t=e.reference,n=e.element,r=e.placement,i=r?Zo(r):null,o=r?ff(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(i){case qr:c={x:a,y:t.y-n.height};break;case Yi:c={x:a,y:t.y+t.height};break;case Zi:c={x:t.x+t.width,y:s};break;case Hr:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var u=i?fT(i):null;if(u!=null){var h=u==="y"?"height":"width";switch(o){case lf:c[u]=c[u]-(t[h]/2-n[h]/2);break;case Jh:c[u]=c[u]+(t[h]/2-n[h]/2);break}}return c}function ep(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,a=o===void 0?e.strategy:o,s=n.boundary,c=s===void 0?RQ:s,u=n.rootBoundary,h=u===void 0?J$:u,p=n.elementContext,v=p===void 0?rh:p,b=n.altBoundary,x=b===void 0?!1:b,_=n.padding,w=_===void 0?0:_,O=iF(typeof w!="number"?w:oF(w,Yp)),P=v===rh?NQ:rh,E=e.rects.popper,T=e.elements[x?P:v],A=dJ(wu(T)?T:T.contextElement||dl(e.elements.popper),c,h,a),j=cf(e.elements.reference),N=sF({reference:j,element:E,strategy:"absolute",placement:i}),$=LS(Object.assign({},E,N)),W=v===rh?$:j,B={top:A.top-W.top+O.top,bottom:W.bottom-A.bottom+O.bottom,left:A.left-W.left+O.left,right:W.right-A.right+O.right},V=e.modifiersData.offset;if(v===rh&&V){var H=V[i];Object.keys(B).forEach(function(J){var Q=[Zi,Yi].indexOf(J)>=0?1:-1,re=[qr,Yi].indexOf(J)>=0?"y":"x";B[J]+=H[re]*Q})}return B}function hJ(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?eF:c,h=ff(r),p=h?s?hR:hR.filter(function(x){return ff(x)===h}):Yp,v=p.filter(function(x){return u.indexOf(x)>=0});v.length===0&&(v=p);var b=v.reduce(function(x,_){return x[_]=ep(e,{placement:_,boundary:i,rootBoundary:o,padding:a})[Zo(_)],x},{});return Object.keys(b).sort(function(x,_){return b[x]-b[_]})}function pJ(e){if(Zo(e)===lT)return[];var t=pg(e);return[vR(e),t,vR(t)]}function mJ(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!0:a,c=n.fallbackPlacements,u=n.padding,h=n.boundary,p=n.rootBoundary,v=n.altBoundary,b=n.flipVariations,x=b===void 0?!0:b,_=n.allowedAutoPlacements,w=t.options.placement,O=Zo(w),P=O===w,E=c||(P||!x?[pg(w)]:pJ(w)),T=[w].concat(E).reduce(function(le,ce){return le.concat(Zo(ce)===lT?hJ(t,{placement:ce,boundary:h,rootBoundary:p,padding:u,flipVariations:x,allowedAutoPlacements:_}):ce)},[]),A=t.rects.reference,j=t.rects.popper,N=new Map,$=!0,W=T[0],B=0;B<T.length;B++){var V=T[B],H=Zo(V),J=ff(V)===lf,Q=[qr,Yi].indexOf(H)>=0,re=Q?"width":"height",ae=ep(t,{placement:V,boundary:h,rootBoundary:p,altBoundary:v,padding:u}),se=Q?J?Zi:Hr:J?Yi:qr;A[re]>j[re]&&(se=pg(se));var oe=pg(se),K=[];if(o&&K.push(ae[H]<=0),s&&K.push(ae[se]<=0,ae[oe]<=0),K.every(function(le){return le})){W=V,$=!1;break}N.set(V,K)}if($)for(var G=x?3:1,z=function(ce){var de=T.find(function(be){var M=N.get(be);if(M)return M.slice(0,ce).every(function(D){return D})});if(de)return W=de,"break"},ne=G;ne>0;ne--){var X=z(ne);if(X==="break")break}t.placement!==W&&(t.modifiersData[r]._skip=!0,t.placement=W,t.reset=!0)}}const vJ={name:"flip",enabled:!0,phase:"main",fn:mJ,requiresIfExists:["offset"],data:{_skip:!1}};function yR(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function bR(e){return[qr,Zi,Yi,Hr].some(function(t){return e[t]>=0})}function gJ(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=ep(t,{elementContext:"reference"}),s=ep(t,{altBoundary:!0}),c=yR(a,r),u=yR(s,i,o),h=bR(c),p=bR(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:h,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":p})}const yJ={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:gJ};function bJ(e,t,n){var r=Zo(e),i=[Hr,qr].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[Hr,Zi].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function _J(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=eF.reduce(function(h,p){return h[p]=bJ(p,t.rects,o),h},{}),s=a[t.placement],c=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}const xJ={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:_J};function wJ(e){var t=e.state,n=e.name;t.modifiersData[n]=sF({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const OJ={name:"popperOffsets",enabled:!0,phase:"read",fn:wJ,data:{}};function SJ(e){return e==="x"?"y":"x"}function PJ(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!1:a,c=n.boundary,u=n.rootBoundary,h=n.altBoundary,p=n.padding,v=n.tether,b=v===void 0?!0:v,x=n.tetherOffset,_=x===void 0?0:x,w=ep(t,{boundary:c,rootBoundary:u,padding:p,altBoundary:h}),O=Zo(t.placement),P=ff(t.placement),E=!P,T=fT(O),A=SJ(T),j=t.modifiersData.popperOffsets,N=t.rects.reference,$=t.rects.popper,W=typeof _=="function"?_(Object.assign({},t.rects,{placement:t.placement})):_,B=typeof W=="number"?{mainAxis:W,altAxis:W}:Object.assign({mainAxis:0,altAxis:0},W),V=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,H={x:0,y:0};if(j){if(o){var J,Q=T==="y"?qr:Hr,re=T==="y"?Yi:Zi,ae=T==="y"?"height":"width",se=j[T],oe=se+w[Q],K=se-w[re],G=b?-$[ae]/2:0,z=P===lf?N[ae]:$[ae],ne=P===lf?-$[ae]:-N[ae],X=t.elements.arrow,le=b&&X?cT(X):{width:0,height:0},ce=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:rF(),de=ce[Q],be=ce[re],M=kh(0,N[ae],le[ae]),D=E?N[ae]/2-G-M-de-B.mainAxis:z-M-de-B.mainAxis,Y=E?-N[ae]/2+G+M+be+B.mainAxis:ne+M+be+B.mainAxis,ue=t.elements.arrow&&Zp(t.elements.arrow),ie=ue?T==="y"?ue.clientTop||0:ue.clientLeft||0:0,he=(J=V==null?void 0:V[T])!=null?J:0,Se=se+D-he-ie,Fe=se+Y-he,ge=kh(b?Lg(oe,Se):oe,se,b?pu(K,Fe):K);j[T]=ge,H[T]=ge-se}if(s){var Ee,je=T==="x"?qr:Hr,Me=T==="x"?Yi:Zi,He=j[A],Ue=A==="y"?"height":"width",qe=He+w[je],ye=He-w[Me],we=[qr,Hr].indexOf(O)!==-1,Ae=(Ee=V==null?void 0:V[A])!=null?Ee:0,ke=we?qe:He-N[Ue]-$[Ue]-Ae+B.altAxis,De=we?He+N[Ue]+$[Ue]-Ae-B.altAxis:ye,Ke=b&&we?YQ(ke,He,De):kh(b?ke:qe,He,b?De:ye);j[A]=Ke,H[A]=Ke-He}t.modifiersData[r]=H}}const CJ={name:"preventOverflow",enabled:!0,phase:"main",fn:PJ,requiresIfExists:["offset"]};function EJ(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function TJ(e){return e===gi(e)||!Gi(e)?dT(e):EJ(e)}function jJ(e){var t=e.getBoundingClientRect(),n=uf(t.width)/e.offsetWidth||1,r=uf(t.height)/e.offsetHeight||1;return n!==1||r!==1}function AJ(e,t,n){n===void 0&&(n=!1);var r=Gi(t),i=Gi(t)&&jJ(t),o=dl(t),a=cf(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((ta(t)!=="body"||pT(o))&&(s=TJ(t)),Gi(t)?(c=cf(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=hT(o))),{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function kJ(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var c=t.get(s);c&&i(c)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function RJ(e){var t=kJ(e);return VQ.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function NJ(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function MJ(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var _R={placement:"bottom",modifiers:[],strategy:"absolute"};function xR(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function LJ(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?_R:i;return function(s,c,u){u===void 0&&(u=o);var h={placement:"bottom",orderedModifiers:[],options:Object.assign({},_R,o),modifiersData:{},elements:{reference:s,popper:c},attributes:{},styles:{}},p=[],v=!1,b={state:h,setOptions:function(O){var P=typeof O=="function"?O(h.options):O;_(),h.options=Object.assign({},o,h.options,P),h.scrollParents={reference:wu(s)?Rh(s):s.contextElement?Rh(s.contextElement):[],popper:Rh(c)};var E=RJ(MJ([].concat(r,h.options.modifiers)));return h.orderedModifiers=E.filter(function(T){return T.enabled}),x(),b.update()},forceUpdate:function(){if(!v){var O=h.elements,P=O.reference,E=O.popper;if(xR(P,E)){h.rects={reference:AJ(P,Zp(E),h.options.strategy==="fixed"),popper:cT(E)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach(function(B){return h.modifiersData[B.name]=Object.assign({},B.data)});for(var T=0;T<h.orderedModifiers.length;T++){if(h.reset===!0){h.reset=!1,T=-1;continue}var A=h.orderedModifiers[T],j=A.fn,N=A.options,$=N===void 0?{}:N,W=A.name;typeof j=="function"&&(h=j({state:h,options:$,name:W,instance:b})||h)}}}},update:NJ(function(){return new Promise(function(w){b.forceUpdate(),w(h)})}),destroy:function(){_(),v=!0}};if(!xR(s,c))return b;b.setOptions(u).then(function(w){!v&&u.onFirstUpdate&&u.onFirstUpdate(w)});function x(){h.orderedModifiers.forEach(function(w){var O=w.name,P=w.options,E=P===void 0?{}:P,T=w.effect;if(typeof T=="function"){var A=T({state:h,name:O,instance:b,options:E}),j=function(){};p.push(A||j)}})}function _(){p.forEach(function(w){return w()}),p=[]}return b}}var IJ=[oJ,OJ,rJ,HQ,xJ,vJ,CJ,JQ,yJ],DJ=LJ({defaultModifiers:IJ}),S1,wR;function $J(){if(wR)return S1;wR=1;var e=typeof Element<"u",t=typeof Map=="function",n=typeof Set=="function",r=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function i(o,a){if(o===a)return!0;if(o&&a&&typeof o=="object"&&typeof a=="object"){if(o.constructor!==a.constructor)return!1;var s,c,u;if(Array.isArray(o)){if(s=o.length,s!=a.length)return!1;for(c=s;c--!==0;)if(!i(o[c],a[c]))return!1;return!0}var h;if(t&&o instanceof Map&&a instanceof Map){if(o.size!==a.size)return!1;for(h=o.entries();!(c=h.next()).done;)if(!a.has(c.value[0]))return!1;for(h=o.entries();!(c=h.next()).done;)if(!i(c.value[1],a.get(c.value[0])))return!1;return!0}if(n&&o instanceof Set&&a instanceof Set){if(o.size!==a.size)return!1;for(h=o.entries();!(c=h.next()).done;)if(!a.has(c.value[0]))return!1;return!0}if(r&&ArrayBuffer.isView(o)&&ArrayBuffer.isView(a)){if(s=o.length,s!=a.length)return!1;for(c=s;c--!==0;)if(o[c]!==a[c])return!1;return!0}if(o.constructor===RegExp)return o.source===a.source&&o.flags===a.flags;if(o.valueOf!==Object.prototype.valueOf)return o.valueOf()===a.valueOf();if(o.toString!==Object.prototype.toString)return o.toString()===a.toString();if(u=Object.keys(o),s=u.length,s!==Object.keys(a).length)return!1;for(c=s;c--!==0;)if(!Object.prototype.hasOwnProperty.call(a,u[c]))return!1;if(e&&o instanceof Element)return!1;for(c=s;c--!==0;)if(!((u[c]==="_owner"||u[c]==="__v"||u[c]==="__o")&&o.$$typeof)&&!i(o[u[c]],a[u[c]]))return!1;return!0}return o!==o&&a!==a}return S1=function(a,s){try{return i(a,s)}catch(c){if((c.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw c}},S1}var FJ=$J();const BJ=Nt(FJ);var UJ=[],zJ=function(t,n,r){r===void 0&&(r={});var i=F.useRef(null),o={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||UJ},a=F.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=a[0],c=a[1],u=F.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(b){var x=b.state,_=Object.keys(x.elements);AE.flushSync(function(){c({styles:fR(_.map(function(w){return[w,x.styles[w]||{}]})),attributes:fR(_.map(function(w){return[w,x.attributes[w]]}))})})},requires:["computeStyles"]}},[]),h=F.useMemo(function(){var v={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[u,{name:"applyStyles",enabled:!1}])};return BJ(i.current,v)?i.current||v:(i.current=v,v)},[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,u]),p=F.useRef();return dR(function(){p.current&&p.current.setOptions(h)},[h]),dR(function(){if(!(t==null||n==null)){var v=r.createPopper||DJ,b=v(t,n,h);return p.current=b,function(){b.destroy(),p.current=null}}},[t,n,r.createPopper]),{state:p.current?p.current.state:null,styles:s.styles,attributes:s.attributes,update:p.current?p.current.update:null,forceUpdate:p.current?p.current.forceUpdate:null}},VJ=function(){},WJ=function(){return Promise.resolve(null)},qJ=[];function lF(e){var t=e.placement,n=t===void 0?"bottom":t,r=e.strategy,i=r===void 0?"absolute":r,o=e.modifiers,a=o===void 0?qJ:o,s=e.referenceElement,c=e.onFirstUpdate,u=e.innerRef,h=e.children,p=F.useContext(Y$),v=F.useState(null),b=v[0],x=v[1],_=F.useState(null),w=_[0],O=_[1];F.useEffect(function(){NS(u,b)},[u,b]);var P=F.useMemo(function(){return{placement:n,strategy:i,onFirstUpdate:c,modifiers:[].concat(a,[{name:"arrow",enabled:w!=null,options:{element:w}}])}},[n,i,c,a,w]),E=zJ(s||p,b,P),T=E.state,A=E.styles,j=E.forceUpdate,N=E.update,$=F.useMemo(function(){return{ref:x,style:A.popper,placement:T?T.placement:n,hasPopperEscaped:T&&T.modifiersData.hide?T.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:T&&T.modifiersData.hide?T.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:A.arrow,ref:O},forceUpdate:j||VJ,update:N||WJ}},[x,O,n,T,A,N,j]);return X$(h)($)}var P1,OR;function HJ(){if(OR)return P1;OR=1;var e=function(){};return P1=e,P1}var GJ=HJ();const KJ=Nt(GJ);function YJ(e){var t=e.children,n=e.innerRef,r=F.useContext(Z$),i=F.useCallback(function(o){NS(n,o),Q$(r,o)},[n,r]);return F.useEffect(function(){return function(){return NS(n,null)}},[]),F.useEffect(function(){KJ(!!r,"`Reference` should not be used outside of a `Manager` component.")},[r]),X$(t)({ref:i})}var tp=Z.createContext({}),uF=Z.createContext({});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)}var ZJ=["className","cssModule","direction","isOpen","group","size","nav","setActiveFromChild","active","tag","menuRole"];function DS(){return DS=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},DS.apply(this,arguments)}function $s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XJ(e,t){if(e==null)return{};var n=QJ(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 QJ(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 JJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eee(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,r.key,r)}}function tee(e,t,n){return t&&eee(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function nee(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&&$S(e,t)}function $S(e,t){return $S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},$S(e,t)}function ree(e){var t=oee();return function(){var r=Ig(e),i;if(t){var o=Ig(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return iee(this,i)}}function iee(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 Bs(e)}function Bs(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oee(){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 Ig(e){return Ig=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ig(e)}var aee={a11y:q.bool,disabled:q.bool,direction:q.oneOf(["up","down","start","end","left","right"]),group:q.bool,isOpen:q.bool,nav:q.bool,active:q.bool,size:q.string,tag:At,toggle:q.func,children:q.node,className:q.string,cssModule:q.object,dropup:q.bool,inNavbar:q.bool,setActiveFromChild:q.bool,menuRole:q.oneOf(["listbox","menu"])},see={a11y:!0,isOpen:!1,direction:"down",nav:!1,active:!1,inNavbar:!1,setActiveFromChild:!1},lee=[Bt.space,Bt.enter,Bt.up,Bt.down,Bt.end,Bt.home],hl=function(e){nee(n,e);var t=ree(n);function n(r){var i;return JJ(this,n),i=t.call(this,r),i.addEvents=i.addEvents.bind(Bs(i)),i.handleDocumentClick=i.handleDocumentClick.bind(Bs(i)),i.handleKeyDown=i.handleKeyDown.bind(Bs(i)),i.removeEvents=i.removeEvents.bind(Bs(i)),i.toggle=i.toggle.bind(Bs(i)),i.handleMenuRef=i.handleMenuRef.bind(Bs(i)),i.handleToggleRef=i.handleToggleRef.bind(Bs(i)),i.containerRef=Z.createRef(),i.menuRef=Z.createRef(),i.toggleRef=Z.createRef(),i}return tee(n,[{key:"componentDidMount",value:function(){this.handleProps()}},{key:"componentDidUpdate",value:function(i){this.props.isOpen!==i.isOpen&&this.handleProps()}},{key:"componentWillUnmount",value:function(){this.removeEvents()}},{key:"handleMenuRef",value:function(i){this.menuRef.current=i}},{key:"handleToggleRef",value:function(i){this.toggleRef.current=i}},{key:"handleDocumentClick",value:function(i){if(!(i&&(i.which===3||i.type==="keyup"&&i.which!==Bt.tab))){var o=this.getContainer(),a=this.getMenu(),s=this.getToggle();if(s){var c=s.contains(i.target),u=a&&a.contains(i.target)&&a!==i.target,h=!1;o&&(h=o.classList.contains("input-group")&&o.classList.contains("dropdown")&&i.target.tagName==="INPUT"),!((c&&!h||u)&&(i.type!=="keyup"||i.which===Bt.tab))&&this.toggle(i)}}}},{key:"handleKeyDown",value:function(i){var o=this,a=i.target.getAttribute("role")==="menuitem"||i.target.getAttribute("role")==="option",s=this.getMenuCtrl()===i.target,c=Bt.tab===i.which;if(!(/input|textarea/i.test(i.target.tagName)||c&&!this.props.a11y||c&&!(a||s))&&((lee.indexOf(i.which)!==-1||i.which>=48&&i.which<=90)&&i.preventDefault(),!this.props.disabled)){if(s)if([Bt.space,Bt.enter,Bt.up,Bt.down].indexOf(i.which)>-1)this.props.isOpen||this.toggle(i),setTimeout(function(){var P;return(P=o.getMenuItems()[0])===null||P===void 0?void 0:P.focus()});else if(this.props.isOpen&&c){var u;i.preventDefault(),(u=this.getMenuItems()[0])===null||u===void 0||u.focus()}else this.props.isOpen&&i.which===Bt.esc&&this.toggle(i);if(this.props.isOpen&&a){if([Bt.tab,Bt.esc].indexOf(i.which)>-1)this.toggle(i),this.getMenuCtrl().focus();else if([Bt.space,Bt.enter].indexOf(i.which)>-1)i.target.click(),this.getMenuCtrl().focus();else if([Bt.down,Bt.up].indexOf(i.which)>-1||[Bt.n,Bt.p].indexOf(i.which)>-1&&i.ctrlKey){var h=this.getMenuItems(),p=h.indexOf(i.target);Bt.up===i.which||Bt.p===i.which&&i.ctrlKey?p=p!==0?p-1:h.length-1:(Bt.down===i.which||Bt.n===i.which&&i.ctrlKey)&&(p=p===h.length-1?0:p+1),h[p].focus()}else if(Bt.end===i.which){var v=this.getMenuItems();v[v.length-1].focus()}else if(Bt.home===i.which){var b=this.getMenuItems();b[0].focus()}else if(i.which>=48&&i.which<=90)for(var x=this.getMenuItems(),_=String.fromCharCode(i.which).toLowerCase(),w=0;w<x.length;w+=1){var O=x[w].textContent&&x[w].textContent[0].toLowerCase();if(O===_){x[w].focus();break}}}}}},{key:"handleProps",value:function(){this.props.isOpen?this.addEvents():this.removeEvents()}},{key:"getContextValue",value:function(){return{toggle:this.toggle,isOpen:this.props.isOpen,direction:this.props.direction==="down"&&this.props.dropup?"up":this.props.direction,inNavbar:this.props.inNavbar,disabled:this.props.disabled,onMenuRef:this.handleMenuRef,onToggleRef:this.handleToggleRef,menuRole:this.props.menuRole}}},{key:"getContainer",value:function(){return this.containerRef.current}},{key:"getMenu",value:function(){return this.menuRef.current}},{key:"getToggle",value:function(){return this.toggleRef.current}},{key:"getMenuCtrl",value:function(){return this._$menuCtrl?this._$menuCtrl:(this._$menuCtrl=this.getToggle(),this._$menuCtrl)}},{key:"getItemType",value:function(){return this.props.menuRole==="listbox"?"option":"menuitem"}},{key:"getMenuItems",value:function(){var i=this.getMenu()||this.getContainer();return[].slice.call(i.querySelectorAll('[role="'.concat(this.getItemType(),'"]')))}},{key:"addEvents",value:function(){var i=this;["click","touchstart","keyup"].forEach(function(o){return document.addEventListener(o,i.handleDocumentClick,!0)})}},{key:"removeEvents",value:function(){var i=this;["click","touchstart","keyup"].forEach(function(o){return document.removeEventListener(o,i.handleDocumentClick,!0)})}},{key:"toggle",value:function(i){return this.props.disabled?i&&i.preventDefault():this.props.toggle(i)}},{key:"render",value:function(){var i,o=this,a=fl(this.props,["toggle","disabled","inNavbar","a11y"]),s=a.className,c=a.cssModule,u=a.direction,h=a.isOpen,p=a.group,v=a.size,b=a.nav,x=a.setActiveFromChild,_=a.active,w=a.tag;a.menuRole;var O=XJ(a,ZJ),P=w||(b?"li":"div"),E=!1;x&&Z.Children.map(this.props.children[1].props.children,function(A){A&&A.props.active&&(E=!0)});var T=ct(mt(s,b&&_?"active":!1,x&&E?"active":!1,(i={"btn-group":p},$s(i,"btn-group-".concat(v),!!v),$s(i,"dropdown",!p),$s(i,"dropup",u==="up"),$s(i,"dropstart",u==="start"||u==="left"),$s(i,"dropend",u==="end"||u==="right"),$s(i,"show",h),$s(i,"nav-item",b),i)),c);return this.context.insideInputGroup?Z.createElement(tp.Provider,{value:this.getContextValue()},Z.createElement(cR,null,Z.Children.map(this.props.children,function(A){return Z.cloneElement(A,{onKeyDown:o.handleKeyDown})}))):Z.createElement(tp.Provider,{value:this.getContextValue()},Z.createElement(cR,null,Z.createElement(P,DS({},O,$s({},typeof P=="string"?"ref":"innerRef",this.containerRef),{onKeyDown:this.handleKeyDown,className:T}))))}}]),n}(Z.Component);hl.propTypes=aee;hl.defaultProps=see;hl.contextType=uF;function FS(e){"@babel/helpers - typeof";return FS=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},FS(e)}var uee=["className","cssModule","divider","tag","header","active","text"];function BS(){return BS=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},BS.apply(this,arguments)}function cee(e,t){if(e==null)return{};var n=fee(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 fee(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 dee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hee(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,r.key,r)}}function pee(e,t,n){return t&&hee(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function mee(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&US(e,t)}function US(e,t){return US=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},US(e,t)}function vee(e){var t=yee();return function(){var r=Dg(e),i;if(t){var o=Dg(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return gee(this,i)}}function gee(e,t){if(t&&(FS(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return zS(e)}function zS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yee(){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 Dg(e){return Dg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Dg(e)}var bee={children:q.node,active:q.bool,disabled:q.bool,divider:q.bool,tag:At,header:q.bool,onClick:q.func,className:q.string,cssModule:q.object,toggle:q.bool,text:q.bool},Ye=function(e){mee(n,e);var t=vee(n);function n(r){var i;return dee(this,n),i=t.call(this,r),i.onClick=i.onClick.bind(zS(i)),i.getTabIndex=i.getTabIndex.bind(zS(i)),i}return pee(n,[{key:"onClick",value:function(i){var o,a=this.props,s=a.disabled,c=a.header,u=a.divider,h=a.text;if(s||c||u||h){i.preventDefault();return}this.props.onClick&&this.props.onClick(i),(!((o=this.props.toggle)!==null&&o!==void 0)||o)&&this.context.toggle(i)}},{key:"getRole",value:function(){return this.context.menuRole==="listbox"?"option":"menuitem"}},{key:"getTabIndex",value:function(){var i=this.props,o=i.disabled,a=i.header,s=i.divider,c=i.text;return o||a||s||c?"-1":"0"}},{key:"render",value:function(){var i=this.getTabIndex(),o=i>-1?this.getRole():void 0,a=fl(this.props,["toggle"]),s=a.className,c=a.cssModule,u=a.divider,h=a.tag,p=h===void 0?"button":h,v=a.header,b=a.active,x=a.text,_=cee(a,uee),w=ct(mt(s,{disabled:_.disabled,"dropdown-item":!u&&!v&&!x,active:b,"dropdown-header":v,"dropdown-divider":u,"dropdown-item-text":x}),c);return p==="button"&&(v?p="h6":u?p="div":_.href?p="a":x&&(p="span")),Z.createElement(p,BS({type:p==="button"&&(_.onClick||this.props.toggle)?"button":void 0},_,{tabIndex:i,role:o,className:w,onClick:this.onClick}))}}]),n}(Z.Component);Ye.propTypes=bee;Ye.contextType=tp;function VS(e){"@babel/helpers - typeof";return VS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},VS(e)}var _ee=["className","cssModule","dark","end","right","tag","flip","modifiers","persist","strategy","container","updateOnSelect"];function $g(){return $g=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},$g.apply(this,arguments)}function SR(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 C1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?SR(Object(n),!0).forEach(function(r){xee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wee(e){return Cee(e)||Pee(e)||See(e)||Oee()}function Oee(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function See(e,t){if(e){if(typeof e=="string")return WS(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 WS(e,t)}}function Pee(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Cee(e){if(Array.isArray(e))return WS(e)}function WS(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 Eee(e,t){if(e==null)return{};var n=Tee(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 Tee(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 jee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Aee(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,r.key,r)}}function kee(e,t,n){return t&&Aee(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ree(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&&qS(e,t)}function qS(e,t){return qS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},qS(e,t)}function Nee(e){var t=Iee();return function(){var r=Fg(e),i;if(t){var o=Fg(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Mee(this,i)}}function Mee(e,t){if(t&&(VS(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Lee(e)}function Lee(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Iee(){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 Fg(e){return Fg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Fg(e)}var Dee={tag:At,children:q.node.isRequired,dark:q.bool,end:q.bool,flip:q.bool,modifiers:q.array,className:q.string,cssModule:q.object,style:q.object,persist:q.bool,strategy:q.string,container:sf,updateOnSelect:q.bool,right:z$(q.bool,'Please use "end" instead.')},$ee={up:"top",left:"left",right:"right",start:"left",end:"right",down:"bottom"},pl=function(e){Ree(n,e);var t=Nee(n);function n(){return jee(this,n),t.apply(this,arguments)}return kee(n,[{key:"getRole",value:function(){return this.context.menuRole==="listbox"?"listbox":"menu"}},{key:"render",value:function(){var i=this,o=this.props,a=o.className,s=o.cssModule,c=o.dark,u=o.end,h=o.right,p=o.tag,v=p===void 0?"div":p,b=o.flip,x=b===void 0?!0:b,_=o.modifiers,w=_===void 0?[]:_,O=o.persist,P=o.strategy,E=o.container,T=o.updateOnSelect,A=Eee(o,_ee),j=ct(mt(a,"dropdown-menu",{"dropdown-menu-dark":c,"dropdown-menu-end":u||h,show:this.context.isOpen}),s),N=v;if(O||this.context.isOpen&&!this.context.inNavbar){var $=$ee[this.context.direction]||"bottom",W=u||h?"end":"start",B="".concat($,"-").concat(W),V=[].concat(wee(w),[{name:"flip",enabled:!!x}]),H={};O&&(H.display="block",H.visibility=this.context.isOpen?"visible":"hidden");var J=Z.createElement(lF,{placement:B,modifiers:V,strategy:P},function(re){var ae=re.ref,se=re.style,oe=re.placement,K=re.update,G=C1(C1(C1({},i.props.style),H),se),z=function(X){ae(X);var le=i.context.onMenuRef;le&&le(X)};return Z.createElement(N,$g({tabIndex:"-1",role:i.getRole(),ref:z},A,{style:G,"aria-hidden":!i.context.isOpen,className:j,"data-popper-placement":oe,onClick:function(){return T&&K()}}))});return E?su.createPortal(J,Qh(E)):J}var Q=this.context.onMenuRef;return Z.createElement(N,$g({tabIndex:"-1",role:this.getRole()},A,{ref:Q,"aria-hidden":!this.context.isOpen,className:j,"data-popper-placement":A.placement,"data-bs-popper":"static"}))}}]),n}(Z.Component);pl.propTypes=Dee;pl.contextType=tp;function HS(e){"@babel/helpers - typeof";return HS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},HS(e)}var Fee=["className","color","cssModule","caret","split","nav","tag","innerRef"];function GS(){return GS=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},GS.apply(this,arguments)}function Bee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Uee(e,t){if(e==null)return{};var n=zee(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function zee(e,t){if(e==null)return{};var n={},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 Vee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wee(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,r.key,r)}}function qee(e,t,n){return t&&Wee(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Hee(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&&KS(e,t)}function KS(e,t){return KS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},KS(e,t)}function Gee(e){var t=Yee();return function(){var r=Bg(e),i;if(t){var o=Bg(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Kee(this,i)}}function Kee(e,t){if(t&&(HS(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cF(e)}function cF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Yee(){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 Bg(e){return Bg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Bg(e)}var Zee={caret:q.bool,color:q.string,children:q.node,className:q.string,cssModule:q.object,disabled:q.bool,onClick:q.func,"aria-haspopup":q.bool,split:q.bool,tag:At,nav:q.bool,innerRef:q.oneOfType([q.object,q.string,q.func])},Xee={color:"secondary","aria-haspopup":!0},Xa=function(e){Hee(n,e);var t=Gee(n);function n(r){var i;return Vee(this,n),i=t.call(this,r),i.onClick=i.onClick.bind(cF(i)),i}return qee(n,[{key:"onClick",value:function(i){if(this.props.disabled||this.context.disabled){i.preventDefault();return}this.props.nav&&!this.props.tag&&i.preventDefault(),this.props.onClick&&this.props.onClick(i),this.context.toggle(i)}},{key:"getRole",value:function(){return this.context.menuRole||this.props["aria-haspopup"]}},{key:"render",value:function(){var i=this,o=this.props,a=o.className,s=o.color,c=o.cssModule,u=o.caret,h=o.split,p=o.nav,v=o.tag,b=o.innerRef,x=Uee(o,Fee),_=x["aria-label"]||"Toggle Dropdown",w=ct(mt(a,{"dropdown-toggle":u||h,"dropdown-toggle-split":h,"nav-link":p}),c),O=typeof x.children<"u"?x.children:Z.createElement("span",{className:"visually-hidden"},_),P;p&&!v?(P="a",x.href="#"):v?P=v:(P=_t,x.color=s,x.cssModule=c);var E=function(A){var j=A.ref,N=function(W){j(W);var B=i.context.onToggleRef;B&&B(W)};return Z.createElement(P,GS({},x,Bee({},typeof P=="string"?"ref":"innerRef",N),{className:w,onClick:i.onClick,"aria-expanded":i.context.isOpen,"aria-haspopup":i.getRole(),children:O}))};return this.context.inNavbar?Z.createElement(Z.Fragment,null,E({ref:this.context.onToggleRef})):Z.createElement(YJ,{innerRef:b},E)}}]),n}(Z.Component);Xa.propTypes=Zee;Xa.defaultProps=Xee;Xa.contextType=tp;function Qee(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function YS(e,t){return YS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},YS(e,t)}function Jee(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,YS(e,t)}const PR={disabled:!1},fF=Z.createContext(null);var ete=function(t){return t.scrollTop},bh="unmounted",Ql="exited",Jl="entering",Bc="entered",ZS="exiting",Yr=function(e){Jee(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var a=i,s=a&&!a.isMounting?r.enter:r.appear,c;return o.appearStatus=null,r.in?s?(c=Ql,o.appearStatus=Jl):c=Bc:r.unmountOnExit||r.mountOnEnter?c=bh:c=Ql,o.state={status:c},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===bh?{status:Ql}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==Jl&&a!==Bc&&(o=Jl):(a===Jl||a===Bc)&&(o=ZS)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,a,s;return o=a=s=i,i!=null&&typeof i!="number"&&(o=i.exit,a=i.enter,s=i.appear!==void 0?i.appear:a),{exit:o,enter:a,appear:s}},n.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===Jl){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:su.findDOMNode(this);a&&ete(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ql&&this.setState({status:bh})},n.performEnter=function(i){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:i,c=this.props.nodeRef?[s]:[su.findDOMNode(this),s],u=c[0],h=c[1],p=this.getTimeouts(),v=s?p.appear:p.enter;if(!i&&!a||PR.disabled){this.safeSetState({status:Bc},function(){o.props.onEntered(u)});return}this.props.onEnter(u,h),this.safeSetState({status:Jl},function(){o.props.onEntering(u,h),o.onTransitionEnd(v,function(){o.safeSetState({status:Bc},function(){o.props.onEntered(u,h)})})})},n.performExit=function(){var i=this,o=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:su.findDOMNode(this);if(!o||PR.disabled){this.safeSetState({status:Ql},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:ZS},function(){i.props.onExiting(s),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:Ql},function(){i.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,o.nextCallback=null,i(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:su.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=c[0],h=c[1];this.props.addEndListener(u,h)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===bh)return null;var o=this.props,a=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var s=Qee(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Z.createElement(fF.Provider,{value:null},typeof a=="function"?a(i,s):Z.cloneElement(Z.Children.only(a),s))},t}(Z.Component);Yr.contextType=fF;Yr.propTypes={};function jc(){}Yr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:jc,onEntering:jc,onEntered:jc,onExit:jc,onExiting:jc,onExited:jc};Yr.UNMOUNTED=bh;Yr.EXITED=Ql;Yr.ENTERING=Jl;Yr.ENTERED=Bc;Yr.EXITING=ZS;var tte=["tag","baseClass","baseClassActive","className","cssModule","children","innerRef"];function Ug(){return Ug=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},Ug.apply(this,arguments)}function nte(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={},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 CR(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?CR(Object(n),!0).forEach(function(r){ite(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ite(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ote=np(np({},Yr.propTypes),{},{children:q.oneOfType([q.arrayOf(q.node),q.node]),tag:At,baseClass:q.string,baseClassActive:q.string,className:q.string,cssModule:q.object,innerRef:q.oneOfType([q.object,q.string,q.func])}),ER=np(np({},Yr.defaultProps),{},{timeout:Rg.Fade,appear:!0,enter:!0,exit:!0,in:!0});function Vr(e){var t=F.useRef(null),n=iT(ER,e),r=n.tag,i=r===void 0?"div":r,o=n.baseClass,a=o===void 0?"fade":o,s=n.baseClassActive,c=s===void 0?"show":s,u=n.className,h=n.cssModule,p=n.children,v=n.innerRef,b=v===void 0?t:v,x=nte(n,tte),_=U$(np({defaultProps:ER},x),Ng),w=fl(x,Ng);return Z.createElement(Yr,Ug({nodeRef:b},_),function(O){var P=O==="entered",E=ct(mt(u,a,P&&c),h);return Z.createElement(i,Ug({className:E},w,{ref:b}),p)})}Vr.propTypes=ote;function XS(e){"@babel/helpers - typeof";return XS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},XS(e)}var ate=["tag","horizontal","isOpen","className","navbar","cssModule","children","innerRef"],Ac;function zg(){return zg=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},zg.apply(this,arguments)}function ste(e,t){if(e==null)return{};var n=lte(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 lte(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 ute(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cte(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,r.key,r)}}function fte(e,t,n){return t&&cte(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function dte(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&&QS(e,t)}function QS(e,t){return QS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},QS(e,t)}function hte(e){var t=mte();return function(){var r=Vg(e),i;if(t){var o=Vg(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return pte(this,i)}}function pte(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 dF(e)}function dF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mte(){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 Vg(e){return Vg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Vg(e)}function TR(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 df(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?TR(Object(n),!0).forEach(function(r){qc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vte=df(df({},Yr.propTypes),{},{horizontal:q.bool,isOpen:q.bool,children:q.oneOfType([q.arrayOf(q.node),q.node]),tag:At,className:q.node,navbar:q.bool,cssModule:q.object,innerRef:q.shape({current:q.object})}),gte=df(df({},Yr.defaultProps),{},{horizontal:!1,isOpen:!1,appear:!1,enter:!0,exit:!0,tag:"div",timeout:Rg.Collapse}),yte=(Ac={},qc(Ac,Fv.ENTERING,"collapsing"),qc(Ac,Fv.ENTERED,"collapse show"),qc(Ac,Fv.EXITING,"collapsing"),qc(Ac,Fv.EXITED,"collapse"),Ac);function bte(e){return yte[e]||"collapse"}var mT=function(e){dte(n,e);var t=hte(n);function n(r){var i;return ute(this,n),i=t.call(this,r),i.state={dimension:null},i.nodeRef=r.innerRef||Z.createRef(),["onEntering","onEntered","onExit","onExiting","onExited"].forEach(function(o){i[o]=i[o].bind(dF(i))}),i}return fte(n,[{key:"onEntering",value:function(i,o){var a=this.getNode();this.setState({dimension:this.getDimension(a)}),this.props.onEntering(a,o)}},{key:"onEntered",value:function(i,o){var a=this.getNode();this.setState({dimension:null}),this.props.onEntered(a,o)}},{key:"onExit",value:function(){var i=this.getNode();this.setState({dimension:this.getDimension(i)}),this.props.onExit(i)}},{key:"onExiting",value:function(){var i=this.getNode();this.getDimension(i),this.setState({dimension:0}),this.props.onExiting(i)}},{key:"onExited",value:function(){var i=this.getNode();this.setState({dimension:null}),this.props.onExited(i)}},{key:"getNode",value:function(){return this.nodeRef.current}},{key:"getDimension",value:function(i){return this.props.horizontal?i.scrollWidth:i.scrollHeight}},{key:"render",value:function(){var i=this,o=this.props,a=o.tag,s=o.horizontal,c=o.isOpen,u=o.className,h=o.navbar,p=o.cssModule,v=o.children;o.innerRef;var b=ste(o,ate),x=this.state.dimension,_=U$(b,Ng),w=fl(b,Ng);return Z.createElement(Yr,zg({},_,{in:c,nodeRef:this.nodeRef,onEntering:this.onEntering,onEntered:this.onEntered,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),function(O){var P=bte(O),E=ct(mt(u,s&&"collapse-horizontal",P,h&&"navbar-collapse"),p),T=x===null?null:qc({},s?"width":"height",x);return Z.createElement(a,zg({},w,{style:df(df({},w.style),T),className:E,ref:i.nodeRef}),v)})}}]),n}(F.Component);mT.propTypes=vte;mT.defaultProps=gte;var _te=["className","cssModule","color","body","inverse","outline","tag","innerRef"];function JS(){return JS=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},JS.apply(this,arguments)}function xte(e,t){if(e==null)return{};var n=wte(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 wte(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}var Ote={body:q.bool,className:q.string,color:q.string,cssModule:q.object,innerRef:q.oneOfType([q.object,q.string,q.func]),inverse:q.bool,outline:q.bool,tag:At};function wi(e){var t=e.className,n=e.cssModule,r=e.color,i=e.body,o=e.inverse,a=e.outline,s=e.tag,c=s===void 0?"div":s,u=e.innerRef,h=xte(e,_te),p=ct(mt(t,"card",o?"text-white":!1,i?"card-body":!1,r?"".concat(a?"border":"bg","-").concat(r):!1),n);return Z.createElement(c,JS({},h,{className:p,ref:u}))}wi.propTypes=Ote;var Ste=["className","cssModule","innerRef","tag"];function eP(){return eP=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},eP.apply(this,arguments)}function Pte(e,t){if(e==null)return{};var n=Cte(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 Cte(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}var Ete={className:q.string,cssModule:q.object,innerRef:q.oneOfType([q.object,q.string,q.func]),tag:At};function Xp(e){var t=e.className,n=e.cssModule,r=e.innerRef,i=e.tag,o=i===void 0?"div":i,a=Pte(e,Ste),s=ct(mt(t,"card-body"),n);return Z.createElement(o,eP({},a,{className:s,ref:r}))}Xp.propTypes=Ete;var Tte=["className","cssModule","tag"];function tP(){return tP=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},tP.apply(this,arguments)}function jte(e,t){if(e==null)return{};var n=Ate(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 Ate(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}var kte={className:q.string,cssModule:q.object,tag:At};function hF(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=jte(e,Tte),a=ct(mt(t,"card-footer"),n);return Z.createElement(i,tP({},o,{className:a}))}hF.propTypes=kte;var Rte=["className","cssModule","tag"];function nP(){return nP=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},nP.apply(this,arguments)}function Nte(e,t){if(e==null)return{};var n=Mte(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 Mte(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}var Lte={className:q.string,cssModule:q.object,tag:At};function Qp(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=Nte(e,Rte),a=ct(mt(t,"card-header"),n);return Z.createElement(i,nP({},o,{className:a}))}Qp.propTypes=Lte;var Ite=["className","cssModule","tag"];function rP(){return rP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rP.apply(this,arguments)}function Dte(e,t){if(e==null)return{};var n=$te(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 $te(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}var Fte={className:q.string,cssModule:q.object,tag:At};function pF(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"p":r,o=Dte(e,Ite),a=ct(mt(t,"card-text"),n);return Z.createElement(i,rP({},o,{className:a}))}pF.propTypes=Fte;var Bte=["className","cssModule","tag"];function iP(){return iP=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},iP.apply(this,arguments)}function Ute(e,t){if(e==null)return{};var n=zte(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 zte(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}var Vte={className:q.string,cssModule:q.object,tag:At};function mF(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=Ute(e,Bte),a=ct(mt(t,"card-title"),n);return Z.createElement(i,iP({},o,{className:a}))}mF.propTypes=Vte;function oP(e){"@babel/helpers - typeof";return oP=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},oP(e)}var Wte=["cssModule","children","isOpen","flip","target","offset","fallbackPlacements","placementPrefix","arrowClassName","hideArrow","popperClassName","tag","container","modifiers","strategy","boundariesElement","onClosed","fade","transition","placement"];function aP(){return aP=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},aP.apply(this,arguments)}function jR(e){return Kte(e)||Gte(e)||Hte(e)||qte()}function qte(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hte(e,t){if(e){if(typeof e=="string")return sP(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 sP(e,t)}}function Gte(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Kte(e){if(Array.isArray(e))return sP(e)}function sP(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 Yte(e,t){if(e==null)return{};var n=Zte(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 Zte(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 Xte(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function AR(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,r.key,r)}}function Qte(e,t,n){return t&&AR(e.prototype,t),n&&AR(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Jte(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&&lP(e,t)}function lP(e,t){return lP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},lP(e,t)}function ene(e){var t=nne();return function(){var r=Wg(e),i;if(t){var o=Wg(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return tne(this,i)}}function tne(e,t){if(t&&(oP(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _h(e)}function _h(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nne(){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 Wg(e){return Wg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Wg(e)}function kR(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 mg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kR(Object(n),!0).forEach(function(r){rne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ine(){}var one={children:q.oneOfType([q.node,q.func]).isRequired,popperClassName:q.string,placement:q.string,placementPrefix:q.string,arrowClassName:q.string,hideArrow:q.bool,tag:At,isOpen:q.bool,cssModule:q.object,offset:q.arrayOf(q.number),fallbackPlacements:q.array,flip:q.bool,container:sf,target:sf.isRequired,modifiers:q.array,strategy:q.string,boundariesElement:q.oneOfType([q.string,nT]),onClosed:q.func,fade:q.bool,transition:q.shape(Vr.propTypes)},ane={boundariesElement:"scrollParent",placement:"auto",hideArrow:!1,isOpen:!1,offset:[0,0],flip:!0,container:"body",modifiers:[],onClosed:ine,fade:!0,transition:mg({},Vr.defaultProps)},vT=function(e){Jte(n,e);var t=ene(n);function n(r){var i;return Xte(this,n),i=t.call(this,r),i.setTargetNode=i.setTargetNode.bind(_h(i)),i.getTargetNode=i.getTargetNode.bind(_h(i)),i.getRef=i.getRef.bind(_h(i)),i.onClosed=i.onClosed.bind(_h(i)),i.state={isOpen:r.isOpen},i}return Qte(n,[{key:"componentDidUpdate",value:function(){this._element&&this._element.childNodes&&this._element.childNodes[0]&&this._element.childNodes[0].focus&&this._element.childNodes[0].focus()}},{key:"onClosed",value:function(){this.props.onClosed(),this.setState({isOpen:!1})}},{key:"getTargetNode",value:function(){return this.targetNode}},{key:"getContainerNode",value:function(){return Qh(this.props.container)}},{key:"getRef",value:function(i){this._element=i}},{key:"setTargetNode",value:function(i){this.targetNode=typeof i=="string"?Qh(i):i}},{key:"renderChildren",value:function(){var i=this.props,o=i.cssModule,a=i.children,s=i.isOpen,c=i.flip;i.target;var u=i.offset,h=i.fallbackPlacements,p=i.placementPrefix,v=i.arrowClassName,b=i.hideArrow,x=i.popperClassName,_=i.tag;i.container;var w=i.modifiers,O=i.strategy,P=i.boundariesElement;i.onClosed;var E=i.fade,T=i.transition,A=i.placement,j=Yte(i,Wte),N=ct(mt("arrow",v),o),$=ct(mt(x,p?"".concat(p,"-auto"):""),this.props.cssModule),W=w.map(function(J){return J.name}),B=[{name:"offset",options:{offset:u}},{name:"flip",enabled:c,options:{fallbackPlacements:h}},{name:"preventOverflow",options:{boundary:P}}].filter(function(J){return!W.includes(J.name)}),V=[].concat(jR(B),jR(w)),H=mg(mg(mg({},Vr.defaultProps),T),{},{baseClass:E?T.baseClass:"",timeout:E?T.timeout:0});return Z.createElement(Vr,aP({},H,j,{in:s,onExited:this.onClosed,tag:_}),Z.createElement(lF,{referenceElement:this.targetNode,modifiers:V,placement:A,strategy:O},function(J){var Q=J.ref,re=J.style,ae=J.placement,se=J.isReferenceHidden,oe=J.arrowProps,K=J.update;return Z.createElement("div",{ref:Q,style:re,className:$,"data-popper-placement":ae,"data-popper-reference-hidden":se?"true":void 0},typeof a=="function"?a({update:K}):a,!b&&Z.createElement("span",{ref:oe.ref,className:N,style:oe.style}))}))}},{key:"render",value:function(){return this.setTargetNode(this.props.target),this.state.isOpen?this.props.container==="inline"?this.renderChildren():su.createPortal(Z.createElement("div",{ref:this.getRef},this.renderChildren()),this.getContainerNode()):null}}],[{key:"getDerivedStateFromProps",value:function(i,o){return i.isOpen&&!o.isOpen?{isOpen:i.isOpen}:null}}]),n}(Z.Component);vT.propTypes=one;vT.defaultProps=ane;function uP(){return uP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uP.apply(this,arguments)}function rp(e){"@babel/helpers - typeof";return rp=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},rp(e)}function sne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function RR(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,r.key,r)}}function lne(e,t,n){return t&&RR(e.prototype,t),n&&RR(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function une(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&&cP(e,t)}function cP(e,t){return cP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},cP(e,t)}function cne(e){var t=dne();return function(){var r=qg(e),i;if(t){var o=qg(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return fne(this,i)}}function fne(e,t){if(t&&(rp(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ci(e)}function ci(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dne(){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 qg(e){return qg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},qg(e)}var gT={children:q.oneOfType([q.node,q.func]),placement:q.oneOf(kX),target:sf.isRequired,container:sf,isOpen:q.bool,disabled:q.bool,hideArrow:q.bool,boundariesElement:q.oneOfType([q.string,nT]),className:q.string,innerClassName:q.string,arrowClassName:q.string,popperClassName:q.string,cssModule:q.object,toggle:q.func,autohide:q.bool,placementPrefix:q.string,delay:q.oneOfType([q.shape({show:q.number,hide:q.number}),q.number]),modifiers:q.array,strategy:q.string,offset:q.arrayOf(q.number),innerRef:q.oneOfType([q.func,q.string,q.object]),trigger:q.string,fade:q.bool,flip:q.bool},vF={show:0,hide:50},hne={isOpen:!1,hideArrow:!1,autohide:!1,delay:vF,toggle:function(){},trigger:"click",fade:!0};function gF(e,t){return t&&(e===t||t.contains(e))}function NR(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return t&&t.length&&t.filter(function(n){return gF(e,n)})[0]}var yT=function(e){une(n,e);var t=cne(n);function n(r){var i;return sne(this,n),i=t.call(this,r),i._targets=[],i.currentTargetElement=null,i.addTargetEvents=i.addTargetEvents.bind(ci(i)),i.handleDocumentClick=i.handleDocumentClick.bind(ci(i)),i.removeTargetEvents=i.removeTargetEvents.bind(ci(i)),i.toggle=i.toggle.bind(ci(i)),i.showWithDelay=i.showWithDelay.bind(ci(i)),i.hideWithDelay=i.hideWithDelay.bind(ci(i)),i.onMouseOverTooltipContent=i.onMouseOverTooltipContent.bind(ci(i)),i.onMouseLeaveTooltipContent=i.onMouseLeaveTooltipContent.bind(ci(i)),i.show=i.show.bind(ci(i)),i.hide=i.hide.bind(ci(i)),i.onEscKeyDown=i.onEscKeyDown.bind(ci(i)),i.getRef=i.getRef.bind(ci(i)),i.state={isOpen:r.isOpen},i._isMounted=!1,i}return lne(n,[{key:"componentDidMount",value:function(){this._isMounted=!0,this.updateTarget()}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.removeTargetEvents(),this._targets=null,this.clearShowTimeout(),this.clearHideTimeout()}},{key:"handleDocumentClick",value:function(i){var o=this.props.trigger.split(" ");o.indexOf("legacy")>-1&&(this.props.isOpen||NR(i.target,this._targets))?(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen&&!gF(i.target,this._popover)?this.hideWithDelay(i):this.props.isOpen||this.showWithDelay(i)):o.indexOf("click")>-1&&NR(i.target,this._targets)&&(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen?this.hideWithDelay(i):this.showWithDelay(i))}},{key:"onMouseOverTooltipContent",value:function(){this.props.trigger.indexOf("hover")>-1&&!this.props.autohide&&(this._hideTimeout&&this.clearHideTimeout(),this.state.isOpen&&!this.props.isOpen&&this.toggle())}},{key:"onMouseLeaveTooltipContent",value:function(i){this.props.trigger.indexOf("hover")>-1&&!this.props.autohide&&(this._showTimeout&&this.clearShowTimeout(),i.persist(),this._hideTimeout=setTimeout(this.hide.bind(this,i),this.getDelay("hide")))}},{key:"onEscKeyDown",value:function(i){i.key==="Escape"&&this.hide(i)}},{key:"getRef",value:function(i){var o=this.props.innerRef;o&&(typeof o=="function"?o(i):rp(o)==="object"&&(o.current=i)),this._popover=i}},{key:"getDelay",value:function(i){var o=this.props.delay;return rp(o)==="object"?isNaN(o[i])?vF[i]:o[i]:o}},{key:"getCurrentTarget",value:function(i){if(!i)return null;var o=this._targets.indexOf(i);return o>=0?this._targets[o]:this.getCurrentTarget(i.parentElement)}},{key:"show",value:function(i){if(!this.props.isOpen){if(this.clearShowTimeout(),this.currentTargetElement=i?i.currentTarget||this.getCurrentTarget(i.target):null,i&&i.composedPath&&typeof i.composedPath=="function"){var o=i.composedPath();this.currentTargetElement=o&&o[0]||this.currentTargetElement}this.toggle(i)}}},{key:"showWithDelay",value:function(i){this._hideTimeout&&this.clearHideTimeout(),this._showTimeout=setTimeout(this.show.bind(this,i),this.getDelay("show"))}},{key:"hide",value:function(i){this.props.isOpen&&(this.clearHideTimeout(),this.currentTargetElement=null,this.toggle(i))}},{key:"hideWithDelay",value:function(i){this._showTimeout&&this.clearShowTimeout(),this._hideTimeout=setTimeout(this.hide.bind(this,i),this.getDelay("hide"))}},{key:"clearShowTimeout",value:function(){clearTimeout(this._showTimeout),this._showTimeout=void 0}},{key:"clearHideTimeout",value:function(){clearTimeout(this._hideTimeout),this._hideTimeout=void 0}},{key:"addEventOnTargets",value:function(i,o,a){this._targets.forEach(function(s){s.addEventListener(i,o,a)})}},{key:"removeEventOnTargets",value:function(i,o,a){this._targets.forEach(function(s){s.removeEventListener(i,o,a)})}},{key:"addTargetEvents",value:function(){if(this.props.trigger){var i=this.props.trigger.split(" ");i.indexOf("manual")===-1&&((i.indexOf("click")>-1||i.indexOf("legacy")>-1)&&document.addEventListener("click",this.handleDocumentClick,!0),this._targets&&this._targets.length&&(i.indexOf("hover")>-1&&(this.addEventOnTargets("mouseover",this.showWithDelay,!0),this.addEventOnTargets("mouseout",this.hideWithDelay,!0)),i.indexOf("focus")>-1&&(this.addEventOnTargets("focusin",this.show,!0),this.addEventOnTargets("focusout",this.hide,!0)),this.addEventOnTargets("keydown",this.onEscKeyDown,!0)))}}},{key:"removeTargetEvents",value:function(){this._targets&&(this.removeEventOnTargets("mouseover",this.showWithDelay,!0),this.removeEventOnTargets("mouseout",this.hideWithDelay,!0),this.removeEventOnTargets("keydown",this.onEscKeyDown,!0),this.removeEventOnTargets("focusin",this.show,!0),this.removeEventOnTargets("focusout",this.hide,!0)),document.removeEventListener("click",this.handleDocumentClick,!0)}},{key:"updateTarget",value:function(){var i=Qh(this.props.target,!0);i!==this._targets&&(this.removeTargetEvents(),this._targets=i?Array.from(i):[],this.currentTargetElement=this.currentTargetElement||this._targets[0],this.addTargetEvents())}},{key:"toggle",value:function(i){return this.props.disabled||!this._isMounted?i&&i.preventDefault():this.props.toggle(i)}},{key:"render",value:function(){var i=this;this.props.isOpen&&this.updateTarget();var o=this.currentTargetElement||this._targets[0];if(!o)return null;var a=this.props,s=a.className,c=a.cssModule,u=a.innerClassName,h=a.isOpen,p=a.hideArrow,v=a.boundariesElement,b=a.placement,x=a.placementPrefix,_=a.arrowClassName,w=a.popperClassName,O=a.container,P=a.modifiers,E=a.strategy,T=a.offset,A=a.fade,j=a.flip,N=a.children,$=fl(this.props,Object.keys(gT)),W=ct(w,c),B=ct(u,c);return Z.createElement(vT,{className:s,target:o,isOpen:h,hideArrow:p,boundariesElement:v,placement:b,placementPrefix:x,arrowClassName:_,popperClassName:W,container:O,modifiers:P,strategy:E,offset:T,cssModule:c,fade:A,flip:j},function(V){var H=V.update;return Z.createElement("div",uP({},$,{ref:i.getRef,className:B,role:"tooltip",onMouseOver:i.onMouseOverTooltipContent,onMouseLeave:i.onMouseLeaveTooltipContent,onKeyDown:i.onEscKeyDown}),typeof N=="function"?N({update:H}):N)})}}],[{key:"getDerivedStateFromProps",value:function(i,o){return i.isOpen&&!o.isOpen?{isOpen:i.isOpen}:null}}]),n}(Z.Component);yT.propTypes=gT;yT.defaultProps=hne;var pne=["children","className","barClassName","cssModule","value","min","max","animated","striped","color","bar","multi","tag","style","barStyle","barAriaValueText","barAriaLabelledBy"];function Hg(){return Hg=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},Hg.apply(this,arguments)}function MR(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 E1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?MR(Object(n),!0).forEach(function(r){mne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vne(e,t){if(e==null)return{};var n=gne(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function gne(e,t){if(e==null)return{};var n={},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}var yne={animated:q.bool,bar:q.bool,barAriaLabelledBy:q.string,barAriaValueText:q.string,barClassName:q.string,barStyle:q.object,children:q.node,className:q.string,cssModule:q.object,color:q.string,max:q.oneOfType([q.string,q.number]),min:q.oneOfType([q.string,q.number]),multi:q.bool,striped:q.bool,style:q.object,tag:At,value:q.oneOfType([q.string,q.number])};function yF(e){var t=e.children,n=e.className,r=e.barClassName,i=e.cssModule,o=e.value,a=o===void 0?0:o,s=e.min,c=s===void 0?0:s,u=e.max,h=u===void 0?100:u,p=e.animated,v=e.striped,b=e.color,x=e.bar,_=e.multi,w=e.tag,O=w===void 0?"div":w,P=e.style,E=P===void 0?{}:P,T=e.barStyle,A=T===void 0?{}:T,j=e.barAriaValueText,N=e.barAriaLabelledBy,$=vne(e,pne),W=aR(a)/aR(h)*100,B=ct(mt(n,"progress"),i),V=ct(mt("progress-bar",x&&n||r,p?"progress-bar-animated":null,b?"bg-".concat(b):null,v||p?"progress-bar-striped":null),i),H={className:V,style:E1(E1(E1({},x?E:{}),A),{},{width:"".concat(W,"%")}),role:"progressbar","aria-valuenow":a,"aria-valuemin":c,"aria-valuemax":h,"aria-valuetext":j,"aria-labelledby":N,children:t};return x?Z.createElement(O,Hg({},$,H)):Z.createElement(O,Hg({},$,{style:E,className:B}),_?t:Z.createElement("div",H))}yF.propTypes=yne;function fP(e){"@babel/helpers - typeof";return fP=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},fP(e)}function bne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _ne(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,r.key,r)}}function xne(e,t,n){return t&&_ne(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function wne(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&&dP(e,t)}function dP(e,t){return dP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},dP(e,t)}function One(e){var t=Cne();return function(){var r=Gg(e),i;if(t){var o=Gg(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Sne(this,i)}}function Sne(e,t){if(t&&(fP(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Pne(e)}function Pne(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Cne(){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 Gg(e){return Gg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Gg(e)}var Ene={children:q.node.isRequired,node:q.any},bF=function(e){wne(n,e);var t=One(n);function n(){return bne(this,n),t.apply(this,arguments)}return xne(n,[{key:"componentWillUnmount",value:function(){this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null}},{key:"render",value:function(){return rT?(!this.props.node&&!this.defaultNode&&(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode)),su.createPortal(this.props.children,this.props.node||this.defaultNode)):null}}]),n}(Z.Component);bF.propTypes=Ene;function hP(e){"@babel/helpers - typeof";return hP=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},hP(e)}function LR(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 kc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?LR(Object(n),!0).forEach(function(r){Uc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Nh(){return Nh=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},Nh.apply(this,arguments)}function Uc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jne(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,r.key,r)}}function Ane(e,t,n){return t&&jne(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function kne(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&&pP(e,t)}function pP(e,t){return pP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},pP(e,t)}function Rne(e){var t=Mne();return function(){var r=Kg(e),i;if(t){var o=Kg(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Nne(this,i)}}function Nne(e,t){if(t&&(hP(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Bi(e)}function Bi(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Mne(){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 Kg(e){return Kg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Kg(e)}function Yg(){}var IR=q.shape(Vr.propTypes),_F={autoFocus:q.bool,backdrop:q.oneOfType([q.bool,q.oneOf(["static"])]),backdropClassName:q.string,backdropTransition:IR,centered:q.bool,children:q.node,contentClassName:q.string,className:q.string,container:sf,cssModule:q.object,external:q.node,fade:q.bool,fullscreen:q.oneOfType([q.bool,q.oneOf(["sm","md","lg","xl"])]),innerRef:q.oneOfType([q.object,q.string,q.func]),isOpen:q.bool,keyboard:q.bool,labelledBy:q.string,modalClassName:q.string,modalTransition:IR,onClosed:q.func,onEnter:q.func,onExit:q.func,onOpened:q.func,returnFocusAfterClose:q.bool,role:q.string,scrollable:q.bool,size:q.string,toggle:q.func,trapFocus:q.bool,unmountOnClose:q.bool,wrapClassName:q.string,zIndex:q.oneOfType([q.number,q.string])},Lne=Object.keys(_F),Ine={isOpen:!1,autoFocus:!0,centered:!1,scrollable:!1,role:"dialog",backdrop:!0,keyboard:!0,zIndex:1050,fade:!0,onOpened:Yg,onClosed:Yg,modalTransition:{timeout:Rg.Modal},backdropTransition:{mountOnEnter:!0,timeout:Rg.Fade},unmountOnClose:!0,returnFocusAfterClose:!0,container:"body",trapFocus:!1},Zr=function(e){kne(n,e);var t=Rne(n);function n(r){var i;return Tne(this,n),i=t.call(this,r),i._element=null,i._originalBodyPadding=null,i.getFocusableChildren=i.getFocusableChildren.bind(Bi(i)),i.handleBackdropClick=i.handleBackdropClick.bind(Bi(i)),i.handleBackdropMouseDown=i.handleBackdropMouseDown.bind(Bi(i)),i.handleEscape=i.handleEscape.bind(Bi(i)),i.handleStaticBackdropAnimation=i.handleStaticBackdropAnimation.bind(Bi(i)),i.handleTab=i.handleTab.bind(Bi(i)),i.onOpened=i.onOpened.bind(Bi(i)),i.onClosed=i.onClosed.bind(Bi(i)),i.manageFocusAfterClose=i.manageFocusAfterClose.bind(Bi(i)),i.clearBackdropAnimationTimeout=i.clearBackdropAnimationTimeout.bind(Bi(i)),i.trapFocus=i.trapFocus.bind(Bi(i)),i.state={isOpen:!1,showStaticBackdropAnimation:!1},i}return Ane(n,[{key:"componentDidMount",value:function(){var i=this.props,o=i.isOpen,a=i.autoFocus,s=i.onEnter;o&&(this.init(),this.setState({isOpen:!0}),a&&this.setFocus()),s&&s(),document.addEventListener("focus",this.trapFocus,!0),this._isMounted=!0}},{key:"componentDidUpdate",value:function(i,o){if(this.props.isOpen&&!i.isOpen){this.init(),this.setState({isOpen:!0});return}this.props.autoFocus&&this.state.isOpen&&!o.isOpen&&this.setFocus(),this._element&&i.zIndex!==this.props.zIndex&&(this._element.style.zIndex=this.props.zIndex)}},{key:"componentWillUnmount",value:function(){this.clearBackdropAnimationTimeout(),this.props.onExit&&this.props.onExit(),this._element&&(this.destroy(),(this.props.isOpen||this.state.isOpen)&&this.close()),document.removeEventListener("focus",this.trapFocus,!0),this._isMounted=!1}},{key:"handleBackdropClick",value:function(i){if(i.target===this._mouseDownElement){i.stopPropagation();var o=this._dialog?this._dialog.parentNode:null;if(o&&i.target===o&&this.props.backdrop==="static"&&this.handleStaticBackdropAnimation(),!this.props.isOpen||this.props.backdrop!==!0)return;o&&i.target===o&&this.props.toggle&&this.props.toggle(i)}}},{key:"handleTab",value:function(i){if(i.which===9&&!(this.modalIndex<n.openCount-1)){var o=this.getFocusableChildren(),a=o.length;if(a!==0){for(var s=this.getFocusedChild(),c=0,u=0;u<a;u+=1)if(o[u]===s){c=u;break}i.shiftKey&&c===0?(i.preventDefault(),o[a-1].focus()):!i.shiftKey&&c===a-1&&(i.preventDefault(),o[0].focus())}}}},{key:"handleBackdropMouseDown",value:function(i){this._mouseDownElement=i.target}},{key:"handleEscape",value:function(i){this.props.isOpen&&i.keyCode===Bt.esc&&this.props.toggle&&(this.props.keyboard?(i.preventDefault(),i.stopPropagation(),this.props.toggle(i)):this.props.backdrop==="static"&&(i.preventDefault(),i.stopPropagation(),this.handleStaticBackdropAnimation()))}},{key:"handleStaticBackdropAnimation",value:function(){var i=this;this.clearBackdropAnimationTimeout(),this.setState({showStaticBackdropAnimation:!0}),this._backdropAnimationTimeout=setTimeout(function(){i.setState({showStaticBackdropAnimation:!1})},100)}},{key:"onOpened",value:function(i,o){this.props.onOpened(),(this.props.modalTransition.onEntered||Yg)(i,o)}},{key:"onClosed",value:function(i){var o=this.props.unmountOnClose;this.props.onClosed(),(this.props.modalTransition.onExited||Yg)(i),o&&this.destroy(),this.close(),this._isMounted&&this.setState({isOpen:!1})}},{key:"setFocus",value:function(){this._dialog&&this._dialog.parentNode&&typeof this._dialog.parentNode.focus=="function"&&this._dialog.parentNode.focus()}},{key:"getFocusableChildren",value:function(){return this._element.querySelectorAll(LX.join(", "))}},{key:"getFocusedChild",value:function(){var i,o=this.getFocusableChildren();try{i=document.activeElement}catch{i=o[0]}return i}},{key:"trapFocus",value:function(i){if(this.props.trapFocus&&this._element&&!(this._dialog&&this._dialog.parentNode===i.target)&&!(this.modalIndex<n.openCount-1)){for(var o=this.getFocusableChildren(),a=0;a<o.length;a+=1)if(o[a]===i.target)return;o.length>0&&(i.preventDefault(),i.stopPropagation(),o[0].focus())}}},{key:"init",value:function(){try{this._triggeringElement=document.activeElement}catch{this._triggeringElement=null}this._element||(this._element=document.createElement("div"),this._element.setAttribute("tabindex","-1"),this._element.style.position="relative",this._element.style.zIndex=this.props.zIndex,this._mountContainer=Qh(this.props.container),this._mountContainer.appendChild(this._element)),this._originalBodyPadding=EX(),n.openCount<1&&(n.originalBodyOverflow=window.getComputedStyle(document.body).overflow),TX(),n.openCount===0&&(document.body.className=mt(document.body.className,ct("modal-open",this.props.cssModule)),document.body.style.overflow="hidden"),this.modalIndex=n.openCount,n.openCount+=1}},{key:"destroy",value:function(){this._element&&(this._mountContainer.removeChild(this._element),this._element=null),this.manageFocusAfterClose()}},{key:"manageFocusAfterClose",value:function(){if(this._triggeringElement){var i=this.props.returnFocusAfterClose;this._triggeringElement.focus&&i&&this._triggeringElement.focus(),this._triggeringElement=null}}},{key:"close",value:function(){if(n.openCount<=1){var i=ct("modal-open",this.props.cssModule),o=new RegExp("(^| )".concat(i,"( |$)"));document.body.className=document.body.className.replace(o," ").trim(),document.body.style.overflow=n.originalBodyOverflow}this.manageFocusAfterClose(),n.openCount=Math.max(0,n.openCount-1),B$(this._originalBodyPadding)}},{key:"clearBackdropAnimationTimeout",value:function(){this._backdropAnimationTimeout&&(clearTimeout(this._backdropAnimationTimeout),this._backdropAnimationTimeout=void 0)}},{key:"renderModalDialog",value:function(){var i,o=this,a=fl(this.props,Lne),s="modal-dialog";return Z.createElement("div",Nh({},a,{className:ct(mt(s,this.props.className,(i={},Uc(i,"modal-".concat(this.props.size),this.props.size),Uc(i,"".concat(s,"-centered"),this.props.centered),Uc(i,"".concat(s,"-scrollable"),this.props.scrollable),Uc(i,"modal-fullscreen",this.props.fullscreen===!0),Uc(i,"modal-fullscreen-".concat(this.props.fullscreen,"-down"),typeof this.props.fullscreen=="string"),i)),this.props.cssModule),role:"document",ref:function(u){o._dialog=u}}),Z.createElement("div",{className:ct(mt("modal-content",this.props.contentClassName),this.props.cssModule)},this.props.children))}},{key:"render",value:function(){var i=this.props.unmountOnClose;if(this._element&&(this.state.isOpen||!i)){var o=!!this._element&&!this.state.isOpen&&!i;this._element.style.display=o?"none":"block";var a=this.props,s=a.wrapClassName,c=a.modalClassName,u=a.backdropClassName,h=a.cssModule,p=a.isOpen,v=a.backdrop,b=a.role,x=a.labelledBy,_=a.external,w=a.innerRef,O={onClick:this.handleBackdropClick,onMouseDown:this.handleBackdropMouseDown,onKeyUp:this.handleEscape,onKeyDown:this.handleTab,style:{display:"block"},"aria-labelledby":x,"aria-modal":!0,role:b,tabIndex:"-1"},P=this.props.fade,E=kc(kc(kc({},Vr.defaultProps),this.props.modalTransition),{},{baseClass:P?this.props.modalTransition.baseClass:"",timeout:P?this.props.modalTransition.timeout:0}),T=kc(kc(kc({},Vr.defaultProps),this.props.backdropTransition),{},{baseClass:P?this.props.backdropTransition.baseClass:"",timeout:P?this.props.backdropTransition.timeout:0}),A=v&&(P?Z.createElement(Vr,Nh({},T,{in:p&&!!v,cssModule:h,className:ct(mt("modal-backdrop",u),h)})):Z.createElement("div",{className:ct(mt("modal-backdrop","show",u),h)}));return Z.createElement(bF,{node:this._element},Z.createElement("div",{className:ct(s)},Z.createElement(Vr,Nh({},O,E,{in:p,onEntered:this.onOpened,onExited:this.onClosed,cssModule:h,className:ct(mt("modal",c,this.state.showStaticBackdropAnimation&&"modal-static"),h),innerRef:w}),_,this.renderModalDialog()),A))}return null}}]),n}(Z.Component);Zr.propTypes=_F;Zr.defaultProps=Ine;Zr.openCount=0;Zr.originalBodyOverflow=null;var Dne=["className","cssModule","children","toggle","tag","wrapTag","closeAriaLabel","close"];function mP(){return mP=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},mP.apply(this,arguments)}function $ne(e,t){if(e==null)return{};var n=Fne(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 Fne(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}var Bne={children:q.node,className:q.string,close:q.object,closeAriaLabel:q.string,cssModule:q.object,tag:At,toggle:q.func,wrapTag:At};function aa(e){var t,n=e.className,r=e.cssModule,i=e.children,o=e.toggle,a=e.tag,s=a===void 0?"h5":a,c=e.wrapTag,u=c===void 0?"div":c,h=e.closeAriaLabel,p=h===void 0?"Close":h,v=e.close,b=$ne(e,Dne),x=ct(mt(n,"modal-header"),r);return!v&&o&&(t=Z.createElement("button",{type:"button",onClick:o,className:ct("btn-close",r),"aria-label":p})),Z.createElement(u,mP({},b,{className:x}),Z.createElement(s,{className:ct("modal-title",r)},i),v||t)}aa.propTypes=Bne;var Une=["className","cssModule","tag"];function vP(){return vP=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},vP.apply(this,arguments)}function zne(e,t){if(e==null)return{};var n=Vne(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 Vne(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}var Wne={className:q.string,cssModule:q.object,tag:At};function Po(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=zne(e,Une),a=ct(mt(t,"modal-body"),n);return Z.createElement(i,vP({},o,{className:a}))}Po.propTypes=Wne;var qne=["className","cssModule","tag"];function gP(){return gP=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},gP.apply(this,arguments)}function Hne(e,t){if(e==null)return{};var n=Gne(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Gne(e,t){if(e==null)return{};var n={},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}var Kne={className:q.string,cssModule:q.object,tag:At};function Qa(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r,o=Hne(e,qne),a=ct(mt(t,"modal-footer"),n);return Z.createElement(i,gP({},o,{className:a}))}Qa.propTypes=Kne;function yP(){return yP=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},yP.apply(this,arguments)}var Yne={placement:"top",autohide:!0,placementPrefix:"bs-tooltip",trigger:"hover focus"};function M0(e){var t=mt("tooltip-arrow",e.arrowClassName),n=mt("tooltip","show",e.popperClassName),r=mt("tooltip-inner",e.innerClassName),i=iT(Yne,e);return Z.createElement(yT,yP({},i,{arrowClassName:t,popperClassName:n,innerClassName:r}))}M0.propTypes=gT;var Zne=["className","cssModule","tag","flush","horizontal","numbered"];function bP(){return bP=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},bP.apply(this,arguments)}function Xne(e,t){if(e==null)return{};var n=Qne(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 Qne(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}var Jne={className:q.string,cssModule:q.object,flush:q.bool,horizontal:q.oneOfType([q.bool,q.string]),numbered:q.bool,tag:At},ere=function(t){return t===!1?!1:t===!0||t==="xs"?"list-group-horizontal":"list-group-horizontal-".concat(t)};function xF(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"ul":r,o=e.flush,a=e.horizontal,s=a===void 0?!1:a,c=e.numbered,u=c===void 0?!1:c,h=Xne(e,Zne),p=ct(mt(t,"list-group",o?"list-group-flush":ere(s),{"list-group-numbered":u}),n);return Z.createElement(i,bP({},h,{className:p}))}xF.propTypes=Jne;var tre=["className","cssModule","row","disabled","check","inline","floating","noMargin","tag","switch"];function _P(){return _P=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},_P.apply(this,arguments)}function nre(e,t){if(e==null)return{};var n=rre(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 rre(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}var ire={children:q.node,row:q.bool,check:q.bool,switch:q.bool,inline:q.bool,floating:q.bool,noMargin:q.bool,disabled:q.bool,tag:At,className:q.string,cssModule:q.object};function Zg(e){var t=e.className,n=e.cssModule,r=e.row,i=e.disabled,o=e.check,a=e.inline,s=e.floating,c=e.noMargin,u=e.tag,h=u===void 0?"div":u,p=e.switch,v=nre(e,tre),b=o||p,x=ct(mt(t,r?"row":!1,b?"form-check":!1,p?"form-switch":!1,b||c?!1:"mb-3",b&&a?"form-check-inline":!1,b&&i?"disabled":!1,s&&"form-floating"),n);return h==="fieldset"&&(v.disabled=i),Z.createElement(h,_P({},v,{className:x}))}Zg.propTypes=ire;function xP(e){"@babel/helpers - typeof";return xP=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},xP(e)}var ore=["className","cssModule","type","bsSize","valid","invalid","tag","addon","plaintext","innerRef"];function wP(){return wP=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},wP.apply(this,arguments)}function are(e,t){if(e==null)return{};var n=sre(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 sre(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 lre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ure(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,r.key,r)}}function cre(e,t,n){return t&&ure(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function fre(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&OP(e,t)}function OP(e,t){return OP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},OP(e,t)}function dre(e){var t=pre();return function(){var r=Xg(e),i;if(t){var o=Xg(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return hre(this,i)}}function hre(e,t){if(t&&(xP(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return SP(e)}function SP(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pre(){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 Xg(e){return Xg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Xg(e)}var mre={children:q.node,type:q.string,size:q.oneOfType([q.number,q.string]),bsSize:q.string,valid:q.bool,invalid:q.bool,tag:At,innerRef:q.oneOfType([q.object,q.func,q.string]),plaintext:q.bool,addon:q.bool,className:q.string,cssModule:q.object},Qn=function(e){fre(n,e);var t=dre(n);function n(r){var i;return lre(this,n),i=t.call(this,r),i.getRef=i.getRef.bind(SP(i)),i.focus=i.focus.bind(SP(i)),i}return cre(n,[{key:"getRef",value:function(i){this.props.innerRef&&this.props.innerRef(i),this.ref=i}},{key:"focus",value:function(){this.ref&&this.ref.focus()}},{key:"render",value:function(){var i=this.props,o=i.className,a=i.cssModule,s=i.type,c=s===void 0?"text":s,u=i.bsSize,h=i.valid,p=i.invalid,v=i.tag,b=i.addon,x=i.plaintext,_=i.innerRef,w=are(i,ore),O=["switch","radio","checkbox"].indexOf(c)>-1,P=/\D/g,E=c==="textarea",T=c==="select",A=c==="range",j=v||(T||E?c:"input"),N="form-control";x?(N="".concat(N,"-plaintext"),j=v||"input"):A?N="form-range":T?N="form-select":O&&(b?N=null:N="form-check-input"),w.size&&P.test(w.size)&&(_S(`Please use the prop "bsSize" instead of the "size" to bootstrap's input sizing.`),u=w.size,delete w.size);var $=ct(mt(o,p&&"is-invalid",h&&"is-valid",u?T?"form-select-".concat(u):"form-control-".concat(u):!1,N),a);return(j==="input"||v&&typeof v=="function")&&(w.type=c==="switch"?"checkbox":c),w.children&&!(x||c==="select"||typeof j!="string"||j==="select")&&(_S('Input with a type of "'.concat(c,'" cannot have children. Please use "value"/"defaultValue" instead.')),delete w.children),Z.createElement(j,wP({},w,{ref:_,className:$,"aria-invalid":p}))}}]),n}(Z.Component);Qn.propTypes=mre;var vre=["className","cssModule","tag","type","size"];function Qg(){return Qg=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},Qg.apply(this,arguments)}function gre(e,t){if(e==null)return{};var n=yre(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 yre(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}var bre={className:q.string,cssModule:q.object,size:q.string,tag:At,type:q.string};function Jp(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r;e.type;var o=e.size,a=gre(e,vre),s=ct(mt(t,"input-group",o?"input-group-".concat(o):null),n);return e.type==="dropdown"?Z.createElement(hl,Qg({},a,{className:s})):Z.createElement(uF.Provider,{value:{insideInputGroup:!0}},Z.createElement(i,Qg({},a,{className:s})))}Jp.propTypes=bre;var _re=["className","listClassName","cssModule","size","tag","listTag","aria-label"];function PP(){return PP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},PP.apply(this,arguments)}function xre(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wre(e,t){if(e==null)return{};var n=Ore(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 Ore(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}var Sre={children:q.node,className:q.string,listClassName:q.string,cssModule:q.object,size:q.string,tag:At,listTag:At,"aria-label":q.string};function bT(e){var t=e.className,n=e.listClassName,r=e.cssModule,i=e.size,o=e.tag,a=o===void 0?"nav":o,s=e.listTag,c=s===void 0?"ul":s,u=e["aria-label"],h=u===void 0?"pagination":u,p=wre(e,_re),v=ct(mt(t),r),b=ct(mt(n,"pagination",xre({},"pagination-".concat(i),!!i)),r);return Z.createElement(a,{className:v,"aria-label":h},Z.createElement(c,PP({},p,{className:b})))}bT.propTypes=Sre;var Pre=["active","className","cssModule","disabled","tag"];function CP(){return CP=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},CP.apply(this,arguments)}function Cre(e,t){if(e==null)return{};var n=Ere(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 Ere(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}var Tre={active:q.bool,children:q.node,className:q.string,cssModule:q.object,disabled:q.bool,tag:At};function mu(e){var t=e.active,n=e.className,r=e.cssModule,i=e.disabled,o=e.tag,a=o===void 0?"li":o,s=Cre(e,Pre),c=ct(mt(n,"page-item",{active:t,disabled:i}),r);return Z.createElement(a,CP({},s,{className:c}))}mu.propTypes=Tre;var jre=["className","cssModule","next","previous","first","last","tag"];function EP(){return EP=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},EP.apply(this,arguments)}function Are(e,t){if(e==null)return{};var n=kre(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 kre(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}var Rre={"aria-label":q.string,children:q.node,className:q.string,cssModule:q.object,next:q.bool,previous:q.bool,first:q.bool,last:q.bool,tag:At};function vu(e){var t=e.className,n=e.cssModule,r=e.next,i=e.previous,o=e.first,a=e.last,s=e.tag,c=s===void 0?"a":s,u=Are(e,jre),h=ct(mt(t,"page-link"),n),p;i?p="Previous":r?p="Next":o?p="First":a&&(p="Last");var v=e["aria-label"]||p,b;i?b="":r?b="":o?b="«":a&&(b="»");var x=e.children;return x&&Array.isArray(x)&&x.length===0&&(x=null),!u.href&&c==="a"&&(c="button"),(i||r||o||a)&&(x=[Z.createElement("span",{"aria-hidden":"true",key:"caret"},x||b),Z.createElement("span",{className:"visually-hidden",key:"ariaLabel"},v)]),Z.createElement(c,EP({},u,{className:h,"aria-label":v}),x)}vu.propTypes=Rre;var Nre=["className","closeClassName","closeAriaLabel","cssModule","tag","color","isOpen","toggle","children","transition","fade","innerRef"];function TP(){return TP=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},TP.apply(this,arguments)}function DR(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 ih(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?DR(Object(n),!0).forEach(function(r){Mre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Mre(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lre(e,t){if(e==null)return{};var n=Ire(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 Ire(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}var Dre={children:q.node,className:q.string,closeClassName:q.string,closeAriaLabel:q.string,color:q.string,cssModule:q.object,fade:q.bool,innerRef:q.oneOfType([q.object,q.string,q.func]),isOpen:q.bool,tag:At,toggle:q.func,transition:q.shape(Vr.propTypes)};function wF(e){var t=e.className,n=e.closeClassName,r=e.closeAriaLabel,i=r===void 0?"Close":r,o=e.cssModule,a=e.tag,s=a===void 0?"div":a,c=e.color,u=c===void 0?"success":c,h=e.isOpen,p=h===void 0?!0:h,v=e.toggle,b=e.children,x=e.transition,_=x===void 0?ih(ih({},Vr.defaultProps),{},{unmountOnExit:!0}):x,w=e.fade,O=w===void 0?!0:w,P=e.innerRef,E=Lre(e,Nre),T=ct(mt(t,"alert","alert-".concat(u),{"alert-dismissible":v}),o),A=ct(mt("btn-close",n),o),j=ih(ih(ih({},Vr.defaultProps),_),{},{baseClass:O?_.baseClass:"",timeout:O?_.timeout:0});return Z.createElement(Vr,TP({},E,j,{tag:s,className:T,in:p,role:"alert",innerRef:P}),v?Z.createElement("button",{type:"button",className:A,"aria-label":i,onClick:v}):null,b)}wF.propTypes=Dre;var $re=["className","cssModule","tag","active","disabled","action","color"];function jP(){return jP=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},jP.apply(this,arguments)}function Fre(e,t){if(e==null)return{};var n=Bre(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 Bre(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}var Ure={action:q.bool,active:q.bool,className:q.string,cssModule:q.object,color:q.string,disabled:q.bool,tag:At},zre=function(t){t.preventDefault()};function OF(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"li":r,o=e.active,a=e.disabled,s=e.action,c=e.color,u=Fre(e,$re),h=ct(mt(t,o?"active":!1,a?"disabled":!1,s?"list-group-item-action":!1,c?"list-group-item-".concat(c):!1,"list-group-item"),n);return a&&(u.onClick=zre),Z.createElement(i,jP({},u,{className:h}))}OF.propTypes=Ure;function AP(e){"@babel/helpers - typeof";return AP=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},AP(e)}function $R(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 Vre(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$R(Object(n),!0).forEach(function(r){Wre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$R(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Wre(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kP(){return kP=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},kP.apply(this,arguments)}function qre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hre(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,r.key,r)}}function Gre(e,t,n){return t&&Hre(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Kre(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&&RP(e,t)}function RP(e,t){return RP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},RP(e,t)}function Yre(e){var t=Xre();return function(){var r=Jg(e),i;if(t){var o=Jg(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Zre(this,i)}}function Zre(e,t){if(t&&(AP(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return SF(e)}function SF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xre(){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 Jg(e){return Jg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Jg(e)}var Qre=["defaultOpen"],em=function(e){Kre(n,e);var t=Yre(n);function n(r){var i;return qre(this,n),i=t.call(this,r),i.state={isOpen:r.defaultOpen||!1},i.toggle=i.toggle.bind(SF(i)),i}return Gre(n,[{key:"toggle",value:function(i){var o=this;this.setState(function(a){return{isOpen:!a.isOpen}},function(){o.props.onToggle&&o.props.onToggle(i,o.state.isOpen)})}},{key:"render",value:function(){return Z.createElement(hl,kP({isOpen:this.state.isOpen,toggle:this.toggle},fl(this.props,Qre)))}}]),n}(F.Component);em.propTypes=Vre({defaultOpen:q.bool,onToggle:q.func},hl.propTypes);function NP(e){"@babel/helpers - typeof";return NP=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},NP(e)}function FR(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 Jre(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?FR(Object(n),!0).forEach(function(r){eie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function eie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MP(){return MP=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},MP.apply(this,arguments)}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,r.key,r)}}function rie(e,t,n){return t&&nie(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function iie(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&LP(e,t)}function LP(e,t){return LP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},LP(e,t)}function oie(e){var t=sie();return function(){var r=ey(e),i;if(t){var o=ey(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return aie(this,i)}}function aie(e,t){if(t&&(NP(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return PF(e)}function PF(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 ey(e){return ey=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ey(e)}var lie=["defaultOpen"],Oi=function(e){iie(n,e);var t=oie(n);function n(r){var i;return tie(this,n),i=t.call(this,r),i.state={isOpen:r.defaultOpen||!1},i.toggle=i.toggle.bind(PF(i)),i}return rie(n,[{key:"toggle",value:function(){this.setState(function(i){return{isOpen:!i.isOpen}})}},{key:"render",value:function(){return Z.createElement(M0,MP({isOpen:this.state.isOpen,toggle:this.toggle},fl(this.props,lie)))}}]),n}(F.Component);Oi.propTypes=Jre({defaultOpen:q.bool},M0.propTypes);const uie=e=>({error:"border-danger",default:""})[e],cie=e=>({error:"text-danger",default:"text-muted"})[e],za=({className:e,children:t,loading:n=!1,type:r="default",fullWidth:i=!1})=>{const o=Be({"col-md-12":i,"col-md-10 offset-md-1":!i});return g.jsx(qi,{className:Be("g-0",e),children:g.jsx("div",{className:o,children:g.jsx(wi,{className:uie(r),body:!0,children:g.jsxs("h3",{className:Be("text-center mb-0",cie(r)),children:[n&&g.jsx(Ge,{icon:X8,spin:!0}),n&&g.jsx("span",{className:"ms-2",children:t??"Loading..."}),!n&&t]})})})})},qt=({title:e,children:t,bodyClassName:n,...r})=>g.jsxs(wi,{...r,children:[e&&g.jsx(Qp,{role:"heading","aria-level":4,children:e}),g.jsx(Xp,{className:n,children:t})]}),Tr=({children:e,type:t,className:n,small:r=!1})=>g.jsx(qi,{className:n,children:g.jsx("div",{className:Be({"col-md-10 offset-md-1":!r,"col-12":r}),children:g.jsx(qt,{role:"document",className:Be("text-center",{"bg-main":t==="success","bg-danger":t==="error","bg-warning":t==="warning","text-white":t!=="warning"}),bodyClassName:Be({"p-2":r}),children:e})})}),CF=({checked:e=!1,onChange:t,className:n,children:r,type:i,inline:o=!1})=>{const a=F.useId(),s=h=>t==null?void 0:t(h.target.checked,h),c={"form-switch":i==="switch","form-checkbox":i==="checkbox"},u=o?{display:"inline-block"}:{};return g.jsxs("span",{className:Be("form-check",c,n),style:u,children:[g.jsx("input",{type:"checkbox",className:"form-check-input",id:a,checked:e,onChange:s}),g.jsx("label",{className:"form-check-label",htmlFor:a,children:r})]})},EF=e=>g.jsx(CF,{type:"checkbox",...e}),Va=e=>g.jsx(CF,{type:"switch",...e}),Yf=({children:e,label:t,className:n="",labelClassName:r="",noMargin:i=!1,id:o})=>g.jsxs("div",{className:`${n} ${i?"":"mb-3"}`,children:[g.jsx("label",{className:`form-label ${r}`,htmlFor:o,children:t}),e]}),vg=({children:e,value:t,onChange:n,type:r,required:i,placeholder:o,className:a,labelClassName:s})=>{const c=F.useId();return g.jsx(Yf,{label:g.jsxs(g.Fragment,{children:[e,":"]}),className:a,labelClassName:s,id:c,children:g.jsx("input",{id:c,className:"form-control",type:r??"text",value:t,required:i??!0,placeholder:o,onChange:u=>n(u.target.value)})})},fie=500;let gg;const BR=()=>{gg!==null&&clearTimeout(gg),gg=null},tm=({onChange:e,className:t,large:n=!0,noBorder:r=!1,initialValue:i="",setTimeout_:o=setTimeout})=>{const[a,s]=F.useState(i),c=(u,h=fie)=>{s(u),BR(),gg=o(()=>{e(u),BR()},h)};return g.jsxs("div",{className:Be("search-field",t),children:[g.jsx("input",{type:"text",className:Be("form-control search-field__input",{"form-control-lg":n,"search-field__input--no-border":r}),placeholder:"Search...",value:a,onChange:u=>c(u.target.value)}),g.jsx(Ge,{icon:VK,className:"search-field__icon"}),g.jsx("button",{"aria-label":"Clear search",type:"button",className:"close search-field__close btn-close",hidden:a==="",id:"search-field__close",onClick:()=>c("",0)})]})},TF=e=>{const t=new URLSearchParams(e),n={};return t.forEach((r,i)=>{if(i.endsWith("[]")){const o=i.slice(0,-2);n[o]??(n[o]=[]),n[o].push(r)}else n[i]=r}),n},L0=e=>{const t=new URLSearchParams;for(const[n,r]of Object.entries(e))r!==void 0&&(Array.isArray(r)?r.forEach(i=>t.append(`${n}[]`,`${i}`)):t.append(n,`${r}`));return t.toString()},cn=(e=!1)=>{const[t,n]=F.useState(e),r=F.useCallback(()=>n(a=>!a),[]),i=F.useCallback(()=>n(!0),[]),o=F.useCallback(()=>n(!1),[]);return[t,r,i,o]},jF=(e=!1,t=2e3,n=window.setTimeout,r=window.clearTimeout)=>{const[i,o]=F.useState(e),a=F.useRef(e),s=F.useRef(),c=F.useCallback(()=>{o(!a.current),s.current&&r(s.current),s.current=n(()=>o(a.current),t)},[r,t,n]);return[i,c]},Xi=()=>F.useRef(null),Zf=()=>{const{search:e}=Kr();return F.useMemo(()=>TF(e),[e])},Ja=({text:e,disabled:t=!1,className:n,children:r,dropdownClassName:i,noCaret:o,end:a=!1,minWidth:s,inline:c,size:u,...h})=>{const[p,v]=cn(),b=Be("dropdown-btn__toggle",n,{"btn-block":!c,"dropdown-btn__toggle--with-caret":!o}),x={minWidth:s&&`${s}px`};return g.jsxs(hl,{isOpen:p,toggle:v,disabled:t,className:i,children:[g.jsx(Xa,{size:u,caret:!o,className:b,color:"primary",...h,children:e}),g.jsx(pl,{className:"w-100",end:a,style:x,children:r})]})},I0=({children:e,minWidth:t,label:n="Options"})=>g.jsx(Ja,{text:g.jsx(Ge,{className:"px-1",icon:NK}),"aria-label":n,size:"sm",minWidth:t,end:!0,noCaret:!0,inline:!0,children:e}),Mh=({children:e,...t})=>g.jsx(aT,{children:g.jsx(sT,{className:"nav-pills__nav-link",tag:D8,...t,children:e})}),AF=({children:e,fill:t=!1,className:n=""})=>g.jsx(wi,{className:`nav-pills__nav p-0 overflow-hidden ${n}`,body:!0,children:g.jsx(oT,{pills:!0,fill:t,children:F.Children.map(e,r=>{if(!F.isValidElement(r)||r.type!==Mh)throw new Error("Only NavPillItem children are allowed inside NavPills.");return r})})}),D0=(e,t,n)=>e!==t?"ASC":n?{ASC:"DESC",DESC:void 0}[n]:"ASC",kF=(e,{field:t,dir:n})=>!t||!n?e:e.sort((r,i)=>{const o=n==="ASC"?1:-1,a=n==="ASC"?-1:1;return r[t]>i[t]?o:a}),die=e=>e.dir?`${e.field}-${e.dir}`:void 0,hie=e=>{const[t,n]=e.split("-");return{field:t,dir:n}};function nm({items:e,order:t,onChange:n,isButton:r=!0,right:i=!1,prefixed:o=!0}){const a=s=>()=>{const c=D0(s,t.field,t.dir);n(c?s:void 0,c)};return g.jsxs(em,{children:[g.jsxs(Xa,{caret:!0,color:r?"primary":"link",className:Be({"dropdown-btn__toggle btn-block pe-4 overflow-hidden":r,"btn-sm p-0":!r}),children:[!r&&g.jsx(g.Fragment,{children:"Order by"}),r&&!t.field&&g.jsx("i",{children:"Order by..."}),r&&t.field&&g.jsxs(g.Fragment,{children:[o&&"Order by: ",e[t.field]," - ",g.jsx("small",{children:t.dir??"DESC"})]})]}),g.jsxs(pl,{end:i,className:Be("w-100",{"ordering-dropdown__menu--link":!r}),children:[Object.entries(e).map(([s,c])=>g.jsxs(Ye,{active:t.field===s,onClick:a(s),children:[c,t.field===s&&g.jsx(Ge,{icon:t.dir==="ASC"?DK:wK,className:"ordering-dropdown__sort-icon"})]},s)),g.jsx(Ye,{divider:!0}),g.jsx(Ye,{disabled:!t.field,onClick:()=>n(),children:g.jsx("i",{children:"Clear selection"})})]})]})}const ip="#4696e5",pie="rgba(70, 150, 229, 0.4)",IP="#f77f28",mie="rgba(247, 127, 40, 0.4)",vie="white",gie="#161b22",yie=e=>{var t;return(t=document.querySelector("html"))==null?void 0:t.setAttribute("data-theme",e)},rm=()=>{var e;return((e=document.querySelector("html"))==null?void 0:e.getAttribute("data-theme"))==="dark"},_T=(e=window.matchMedia.bind(window))=>e("(prefers-color-scheme: dark)").matches?"dark":"light",bie=F.forwardRef(({isOpen:e,toggle:t,forceUpdate:n},r)=>{const[i,,o]=cn(),a=F.useCallback(()=>{o(),n()},[n,o]);return g.jsxs(wF,{className:"app-update-banner",isOpen:e,toggle:t,tag:qt,color:"secondary",innerRef:r,children:[g.jsx("h4",{className:"mb-4",children:"This app has just been updated!"}),g.jsxs("p",{className:"mb-0",children:["Restart it to enjoy the new features.",g.jsxs(_t,{role:"button",disabled:i,className:"ms-2",color:"secondary",size:"sm",onClick:a,children:[!i&&g.jsxs(g.Fragment,{children:["Restart now ",g.jsx(Ge,{icon:KK,className:"ms-1"})]}),i&&g.jsx(g.Fragment,{children:"Restarting..."})]})]})]})}),RF=({to:e="/",children:t="Home"})=>g.jsx("div",{className:"home",children:g.jsxs(qt,{className:"p-4",children:[g.jsx("h2",{children:"Oops! We could not find requested route."}),g.jsx("p",{children:"Use your browser's back button to navigate to the page you have previously come from, or just press this button."}),g.jsx("br",{}),g.jsx(Jt,{to:e,className:"btn btn-outline-primary btn-lg",children:t})]})});function Co(e){return F.useRef(e).current}function Eo(e,t){return(n,r=globalThis.console)=>(t.forEach(i=>{const o=n[i];e[i]=o}),e)}const _ie=async()=>{var t;(await((t=navigator.serviceWorker)==null?void 0:t.getRegistrations())??[]).forEach(({waiting:n})=>{n==null||n.addEventListener("statechange",r=>{var i;((i=r.target)==null?void 0:i.state)==="activated"&&window.location.reload()}),n==null||n.postMessage({type:"SKIP_WAITING"})})},NF=({fetchServers:e,servers:t,settings:n,appUpdated:r,resetAppUpdate:i})=>{var w;const{MainHeader:o,Home:a,ShlinkWebComponentContainer:s,CreateServer:c,EditServer:u,Settings:h,ManageServers:p,ShlinkVersionsContainer:v}=Co(NF),b=Kr(),x=F.useRef(t),_=b.pathname==="/";return F.useEffect(()=>{Object.keys(x.current).length===0&&e()},[e]),F.useEffect(()=>{var O;yie(((O=n.ui)==null?void 0:O.theme)??_T())},[(w=n.ui)==null?void 0:w.theme]),g.jsxs("div",{className:"container-fluid app-container",children:[g.jsx(o,{}),g.jsxs("div",{className:"app",children:[g.jsx("div",{className:Be("shlink-wrapper",{"d-flex align-items-center pt-3":_}),children:g.jsxs(P0,{children:[g.jsx(Rt,{index:!0,element:g.jsx(a,{})}),g.jsx(Rt,{path:"/settings/*",element:g.jsx(h,{})}),g.jsx(Rt,{path:"/manage-servers",element:g.jsx(p,{})}),g.jsx(Rt,{path:"/server/create",element:g.jsx(c,{})}),g.jsx(Rt,{path:"/server/:serverId/edit",element:g.jsx(u,{})}),g.jsx(Rt,{path:"/server/:serverId/*",element:g.jsx(s,{})}),g.jsx(Rt,{path:"*",element:g.jsx(RF,{})})]})}),g.jsx("div",{className:"shlink-footer",children:g.jsx(v,{})})]}),g.jsx(bie,{isOpen:r,toggle:i,forceUpdate:_ie})]})},xie=Eo(NF,["MainHeader","Home","ShlinkWebComponentContainer","CreateServer","EditServer","Settings","ManageServers","ShlinkVersionsContainer"]);function or(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var wie=typeof Symbol=="function"&&Symbol.observable||"@@observable",UR=wie,T1=()=>Math.random().toString(36).substring(7).split("").join("."),Oie={INIT:`@@redux/INIT${T1()}`,REPLACE:`@@redux/REPLACE${T1()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${T1()}`},ty=Oie;function xT(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function MF(e,t,n){if(typeof e!="function")throw new Error(or(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(or(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(or(1));return n(MF)(e,t)}let r=e,i=t,o=new Map,a=o,s=0,c=!1;function u(){a===o&&(a=new Map,o.forEach((w,O)=>{a.set(O,w)}))}function h(){if(c)throw new Error(or(3));return i}function p(w){if(typeof w!="function")throw new Error(or(4));if(c)throw new Error(or(5));let O=!0;u();const P=s++;return a.set(P,w),function(){if(O){if(c)throw new Error(or(6));O=!1,u(),a.delete(P),o=null}}}function v(w){if(!xT(w))throw new Error(or(7));if(typeof w.type>"u")throw new Error(or(8));if(typeof w.type!="string")throw new Error(or(17));if(c)throw new Error(or(9));try{c=!0,i=r(i,w)}finally{c=!1}return(o=a).forEach(P=>{P()}),w}function b(w){if(typeof w!="function")throw new Error(or(10));r=w,v({type:ty.REPLACE})}function x(){const w=p;return{subscribe(O){if(typeof O!="object"||O===null)throw new Error(or(11));function P(){const T=O;T.next&&T.next(h())}return P(),{unsubscribe:w(P)}},[UR](){return this}}}return v({type:ty.INIT}),{dispatch:v,subscribe:p,getState:h,replaceReducer:b,[UR]:x}}function Sie(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:ty.INIT})>"u")throw new Error(or(12));if(typeof n(void 0,{type:ty.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(or(13))})}function wT(e){const t=Object.keys(e),n={};for(let o=0;o<t.length;o++){const a=t[o];typeof e[a]=="function"&&(n[a]=e[a])}const r=Object.keys(n);let i;try{Sie(n)}catch(o){i=o}return function(a={},s){if(i)throw i;let c=!1;const u={};for(let h=0;h<r.length;h++){const p=r[h],v=n[p],b=a[p],x=v(b,s);if(typeof x>"u")throw s&&s.type,new Error(or(14));u[p]=x,c=c||x!==b}return c=c||r.length!==Object.keys(a).length,c?u:a}}function ny(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function Pie(...e){return t=>(n,r)=>{const i=t(n,r);let o=()=>{throw new Error(or(15))};const a={getState:i.getState,dispatch:(c,...u)=>o(c,...u)},s=e.map(c=>c(a));return o=ny(...s)(i.dispatch),{...i,dispatch:o}}}function Cie(e){return xT(e)&&"type"in e&&typeof e.type=="string"}var LF=Symbol.for("immer-nothing"),zR=Symbol.for("immer-draftable"),yi=Symbol.for("immer-state");function bo(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var hf=Object.getPrototypeOf;function Ou(e){return!!e&&!!e[yi]}function Wa(e){var t;return e?IF(e)||Array.isArray(e)||!!e[zR]||!!((t=e.constructor)!=null&&t[zR])||F0(e)||B0(e):!1}var Eie=Object.prototype.constructor.toString();function IF(e){if(!e||typeof e!="object")return!1;const t=hf(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===Eie}function op(e,t){$0(e)===0?Object.entries(e).forEach(([n,r])=>{t(n,r,e)}):e.forEach((n,r)=>t(r,n,e))}function $0(e){const t=e[yi];return t?t.type_:Array.isArray(e)?1:F0(e)?2:B0(e)?3:0}function DP(e,t){return $0(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function DF(e,t,n){const r=$0(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function Tie(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function F0(e){return e instanceof Map}function B0(e){return e instanceof Set}function eu(e){return e.copy_||e.base_}function $P(e,t){if(F0(e))return new Map(e);if(B0(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&IF(e))return hf(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[yi];let r=Reflect.ownKeys(n);for(let i=0;i<r.length;i++){const o=r[i],a=n[o];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(n[o]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[o]})}return Object.create(hf(e),n)}function OT(e,t=!1){return U0(e)||Ou(e)||!Wa(e)||($0(e)>1&&(e.set=e.add=e.clear=e.delete=jie),Object.freeze(e),t&&op(e,(n,r)=>OT(r,!0))),e}function jie(){bo(2)}function U0(e){return Object.isFrozen(e)}var Aie={};function Su(e){const t=Aie[e];return t||bo(0,e),t}var ap;function $F(){return ap}function kie(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function VR(e,t){t&&(Su("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function FP(e){BP(e),e.drafts_.forEach(Rie),e.drafts_=null}function BP(e){e===ap&&(ap=e.parent_)}function WR(e){return ap=kie(ap,e)}function Rie(e){const t=e[yi];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function qR(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[yi].modified_&&(FP(t),bo(4)),Wa(e)&&(e=ry(t,e),t.parent_||iy(t,e)),t.patches_&&Su("Patches").generateReplacementPatches_(n[yi].base_,e,t.patches_,t.inversePatches_)):e=ry(t,n,[]),FP(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==LF?e:void 0}function ry(e,t,n){if(U0(t))return t;const r=t[yi];if(!r)return op(t,(i,o)=>HR(e,r,t,i,o,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return iy(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let o=i,a=!1;r.type_===3&&(o=new Set(i),i.clear(),a=!0),op(o,(s,c)=>HR(e,r,i,s,c,n,a)),iy(e,i,!1),n&&e.patches_&&Su("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function HR(e,t,n,r,i,o,a){if(Ou(i)){const s=o&&t&&t.type_!==3&&!DP(t.assigned_,r)?o.concat(r):void 0,c=ry(e,i,s);if(DF(n,r,c),Ou(c))e.canAutoFreeze_=!1;else return}else a&&n.add(i);if(Wa(i)&&!U0(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;ry(e,i),(!t||!t.scope_.parent_)&&iy(e,i)}}function iy(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&OT(t,n)}function Nie(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:$F(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=ST;n&&(i=[r],o=sp);const{revoke:a,proxy:s}=Proxy.revocable(i,o);return r.draft_=s,r.revoke_=a,s}var ST={get(e,t){if(t===yi)return e;const n=eu(e);if(!DP(n,t))return Mie(e,n,t);const r=n[t];return e.finalized_||!Wa(r)?r:r===j1(e.base_,t)?(A1(e),e.copy_[t]=zP(r,e)):r},has(e,t){return t in eu(e)},ownKeys(e){return Reflect.ownKeys(eu(e))},set(e,t,n){const r=FF(eu(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=j1(eu(e),t),o=i==null?void 0:i[yi];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(Tie(n,i)&&(n!==void 0||DP(e.base_,t)))return!0;A1(e),UP(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return j1(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,A1(e),UP(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=eu(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){bo(11)},getPrototypeOf(e){return hf(e.base_)},setPrototypeOf(){bo(12)}},sp={};op(ST,(e,t)=>{sp[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});sp.deleteProperty=function(e,t){return sp.set.call(this,e,t,void 0)};sp.set=function(e,t,n){return ST.set.call(this,e[0],t,n,e[0])};function j1(e,t){const n=e[yi];return(n?eu(n):e)[t]}function Mie(e,t,n){var i;const r=FF(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function FF(e,t){if(!(t in e))return;let n=hf(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=hf(n)}}function UP(e){e.modified_||(e.modified_=!0,e.parent_&&UP(e.parent_))}function A1(e){e.copy_||(e.copy_=$P(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Lie=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const o=n;n=t;const a=this;return function(c=o,...u){return a.produce(c,h=>n.call(this,h,...u))}}typeof n!="function"&&bo(6),r!==void 0&&typeof r!="function"&&bo(7);let i;if(Wa(t)){const o=WR(this),a=zP(t,void 0);let s=!0;try{i=n(a),s=!1}finally{s?FP(o):BP(o)}return VR(o,r),qR(i,o)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===LF&&(i=void 0),this.autoFreeze_&&OT(i,!0),r){const o=[],a=[];Su("Patches").generateReplacementPatches_(t,i,o,a),r(o,a)}return i}else bo(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(a,...s)=>this.produceWithPatches(a,c=>t(c,...s));let r,i;return[this.produce(t,n,(a,s)=>{r=a,i=s}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Wa(e)||bo(8),Ou(e)&&(e=Iie(e));const t=WR(this),n=zP(e,void 0);return n[yi].isManual_=!0,BP(t),n}finishDraft(e,t){const n=e&&e[yi];(!n||!n.isManual_)&&bo(9);const{scope_:r}=n;return VR(r,t),qR(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=Su("Patches").applyPatches_;return Ou(e)?r(e,t):this.produce(e,i=>r(i,t))}};function zP(e,t){const n=F0(e)?Su("MapSet").proxyMap_(e,t):B0(e)?Su("MapSet").proxySet_(e,t):Nie(e,t);return(t?t.scope_:$F()).drafts_.push(n),n}function Iie(e){return Ou(e)||bo(10,e),BF(e)}function BF(e){if(!Wa(e)||U0(e))return e;const t=e[yi];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=$P(e,t.scope_.immer_.useStrictShallowCopy_)}else n=$P(e,!0);return op(n,(r,i)=>{DF(n,r,BF(i))}),t&&(t.finalized_=!1),n}var bi=new Lie,UF=bi.produce;bi.produceWithPatches.bind(bi);bi.setAutoFreeze.bind(bi);bi.setUseStrictShallowCopy.bind(bi);bi.applyPatches.bind(bi);bi.createDraft.bind(bi);bi.finishDraft.bind(bi);function zF(e){return({dispatch:n,getState:r})=>i=>o=>typeof o=="function"?o(n,r,e):i(o)}var Die=zF(),$ie=zF,Fie=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ny:ny.apply(null,arguments)},Bie=e=>e&&typeof e.match=="function";function jr(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(La(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>Cie(r)&&r.type===e,n}var VF=class xh extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,xh.prototype)}static get[Symbol.species](){return xh}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new xh(...t[0].concat(this)):new xh(...t.concat(this))}};function GR(e){return Wa(e)?UF(e,()=>{}):e}function KR(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function Uie(e){return typeof e=="boolean"}var zie=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{};let a=new VF;return n&&(Uie(n)?a.push(Die):a.push($ie(n.extraArgument))),a},Vie="RTK_autoBatch",YR=e=>t=>{setTimeout(t,e)},Wie=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,o=!1,a=!1;const s=new Set,c=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:YR(10):e.type==="callback"?e.queueNotification:YR(e.timeout),u=()=>{a=!1,o&&(o=!1,s.forEach(h=>h()))};return Object.assign({},r,{subscribe(h){const p=()=>i&&h(),v=r.subscribe(p);return s.add(h),()=>{v(),s.delete(h)}},dispatch(h){var p;try{return i=!((p=h==null?void 0:h.meta)!=null&&p[Vie]),o=!i,o&&(a||(a=!0,c(u))),r.dispatch(h)}finally{i=!0}}})},qie=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new VF(e);return r&&i.push(Wie(typeof r=="object"?r:void 0)),i};function WF(e){const t=zie(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:o=void 0,enhancers:a=void 0}=e||{};let s;if(typeof n=="function")s=n;else if(xT(n))s=wT(n);else throw new Error(La(1));let c;typeof r=="function"?c=r(t):c=t();let u=ny;i&&(u=Fie({trace:!1,...typeof i=="object"&&i}));const h=Pie(...c),p=qie(h);let v=typeof a=="function"?a(p):p();const b=u(...v);return MF(s,o,b)}function qF(e){const t={},n=[];let r;const i={addCase(o,a){const s=typeof o=="string"?o:o.type;if(!s)throw new Error(La(28));if(s in t)throw new Error(La(29));return t[s]=a,i},addMatcher(o,a){return n.push({matcher:o,reducer:a}),i},addDefaultCase(o){return r=o,i}};return e(i),[t,n,r]}function Hie(e){return typeof e=="function"}function Gie(e,t){let[n,r,i]=qF(t),o;if(Hie(e))o=()=>GR(e());else{const s=GR(e);o=()=>s}function a(s=o(),c){let u=[n[c.type],...r.filter(({matcher:h})=>h(c)).map(({reducer:h})=>h)];return u.filter(h=>!!h).length===0&&(u=[i]),u.reduce((h,p)=>{if(p)if(Ou(h)){const b=p(h,c);return b===void 0?h:b}else{if(Wa(h))return UF(h,v=>p(v,c));{const v=p(h,c);if(v===void 0){if(h===null)return h;throw Error("A case reducer on a non-draftable value must not return undefined")}return v}}return h},s)}return a.getInitialState=o,a}var Kie=(e,t)=>Bie(e)?e.match(t):e(t);function Yie(...e){return t=>e.some(n=>Kie(n,t))}var Zie="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Xie=(e=21)=>{let t="",n=e;for(;n--;)t+=Zie[Math.random()*64|0];return t},Qie=["name","message","stack","code"],k1=class{constructor(e,t){Ec(this,"_type");this.payload=e,this.meta=t}},ZR=class{constructor(e,t){Ec(this,"_type");this.payload=e,this.meta=t}},Jie=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of Qie)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},HF=(()=>{function e(t,n,r){const i=jr(t+"/fulfilled",(c,u,h,p)=>({payload:c,meta:{...p||{},arg:h,requestId:u,requestStatus:"fulfilled"}})),o=jr(t+"/pending",(c,u,h)=>({payload:void 0,meta:{...h||{},arg:u,requestId:c,requestStatus:"pending"}})),a=jr(t+"/rejected",(c,u,h,p,v)=>({payload:p,error:(r&&r.serializeError||Jie)(c||"Rejected"),meta:{...v||{},arg:h,requestId:u,rejectedWithValue:!!p,requestStatus:"rejected",aborted:(c==null?void 0:c.name)==="AbortError",condition:(c==null?void 0:c.name)==="ConditionError"}}));function s(c){return(u,h,p)=>{const v=r!=null&&r.idGenerator?r.idGenerator(c):Xie(),b=new AbortController;let x,_;function w(P){_=P,b.abort()}const O=async function(){var T,A;let P;try{let j=(T=r==null?void 0:r.condition)==null?void 0:T.call(r,c,{getState:h,extra:p});if(toe(j)&&(j=await j),j===!1||b.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const N=new Promise(($,W)=>{x=()=>{W({name:"AbortError",message:_||"Aborted"})},b.signal.addEventListener("abort",x)});u(o(v,c,(A=r==null?void 0:r.getPendingMeta)==null?void 0:A.call(r,{requestId:v,arg:c},{getState:h,extra:p}))),P=await Promise.race([N,Promise.resolve(n(c,{dispatch:u,getState:h,extra:p,requestId:v,signal:b.signal,abort:w,rejectWithValue:($,W)=>new k1($,W),fulfillWithValue:($,W)=>new ZR($,W)})).then($=>{if($ instanceof k1)throw $;return $ instanceof ZR?i($.payload,v,c,$.meta):i($,v,c)})])}catch(j){P=j instanceof k1?a(null,v,c,j.payload,j.meta):a(j,v,c)}finally{x&&b.signal.removeEventListener("abort",x)}return r&&!r.dispatchConditionRejection&&a.match(P)&&P.meta.condition||u(P),P}();return Object.assign(O,{abort:w,requestId:v,arg:c,unwrap(){return O.then(eoe)}})}}return Object.assign(s,{pending:o,rejected:a,fulfilled:i,settled:Yie(a,i),typePrefix:t})}return e.withTypes=()=>e,e})();function eoe(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function toe(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var noe=Symbol.for("rtk-slice-createasyncthunk");function roe(e,t){return`${e}/${t}`}function ioe({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[noe];return function(i){const{name:o,reducerPath:a=o}=i;if(!o)throw new Error(La(11));typeof process<"u";const s=(typeof i.reducers=="function"?i.reducers(aoe()):i.reducers)||{},c=Object.keys(s),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},h={addCase(E,T){const A=typeof E=="string"?E:E.type;if(!A)throw new Error(La(12));if(A in u.sliceCaseReducersByType)throw new Error(La(13));return u.sliceCaseReducersByType[A]=T,h},addMatcher(E,T){return u.sliceMatchers.push({matcher:E,reducer:T}),h},exposeAction(E,T){return u.actionCreators[E]=T,h},exposeCaseReducer(E,T){return u.sliceCaseReducersByName[E]=T,h}};c.forEach(E=>{const T=s[E],A={reducerName:E,type:roe(o,E),createNotation:typeof i.reducers=="function"};loe(T)?coe(A,T,h,t):soe(A,T,h)});function p(){const[E={},T=[],A=void 0]=typeof i.extraReducers=="function"?qF(i.extraReducers):[i.extraReducers],j={...E,...u.sliceCaseReducersByType};return Gie(i.initialState,N=>{for(let $ in j)N.addCase($,j[$]);for(let $ of u.sliceMatchers)N.addMatcher($.matcher,$.reducer);for(let $ of T)N.addMatcher($.matcher,$.reducer);A&&N.addDefaultCase(A)})}const v=E=>E,b=new Map;let x;function _(E,T){return x||(x=p()),x(E,T)}function w(){return x||(x=p()),x.getInitialState()}function O(E,T=!1){function A(N){let $=N[E];return typeof $>"u"&&T&&($=w()),$}function j(N=v){const $=KR(b,T,()=>new WeakMap);return KR($,N,()=>{const W={};for(const[B,V]of Object.entries(i.selectors??{}))W[B]=ooe(V,N,w,T);return W})}return{reducerPath:E,getSelectors:j,get selectors(){return j(A)},selectSlice:A}}const P={name:o,reducer:_,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:w,...O(a),injectInto(E,{reducerPath:T,...A}={}){const j=T??a;return E.inject({reducerPath:j,reducer:_},A),{...P,...O(j,!0)}}};return P}}function ooe(e,t,n,r){function i(o,...a){let s=t(o);return typeof s>"u"&&r&&(s=n()),e(s,...a)}return i.unwrapped=e,i}var An=ioe();function aoe(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function soe({type:e,reducerName:t,createNotation:n},r,i){let o,a;if("reducer"in r){if(n&&!uoe(r))throw new Error(La(17));o=r.reducer,a=r.prepare}else o=r;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,a?jr(e,a):jr(e))}function loe(e){return e._reducerDefinitionType==="asyncThunk"}function uoe(e){return e._reducerDefinitionType==="reducerWithPrepare"}function coe({type:e,reducerName:t},n,r,i){if(!i)throw new Error(La(18));const{payloadCreator:o,fulfilled:a,pending:s,rejected:c,settled:u,options:h}=n,p=i(e,o,h);r.exposeAction(t,p),a&&r.addCase(p.fulfilled,a),s&&r.addCase(p.pending,s),c&&r.addCase(p.rejected,c),u&&r.addMatcher(p.settled,u),r.exposeCaseReducer(t,{fulfilled:a||Uv,pending:s||Uv,rejected:c||Uv,settled:u||Uv})}function Uv(){}function La(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const{actions:foe,reducer:doe}=An({name:"shlink/appUpdates",initialState:!1,reducers:{appUpdateAvailable:()=>!0,resetAppUpdate:()=>!1}}),{appUpdateAvailable:hoe,resetAppUpdate:poe}=foe,moe=doe,voe=(e,t)=>{e.factory("App",xie),e.decorator("App",t(["servers","settings","appUpdated"],["fetchServers","resetAppUpdate"])),e.serviceFactory("appUpdateAvailable",()=>hoe),e.serviceFactory("resetAppUpdate",()=>poe)},XR={"Content-Type":"application/json"},QR=e=>e!=null&&e.body?e?{...e,headers:{...e.headers??{},...XR}}:{headers:XR}:e;let goe=class{constructor(t=window.fetch.bind(window)){this.fetch=t}async jsonRequest(t,n){return this.fetch(t,QR(n)).then(async r=>{const i=await r.json();if(!r.ok)throw i;return i})}async emptyRequest(t,n){return this.fetch(t,QR(n)).then(async r=>{if(!r.ok)throw await r.json()})}};var PT=(e=>(e.INVALID_ARGUMENT="https://shlink.io/api/error/invalid-data",e.INVALID_SHORT_URL_DELETION="https://shlink.io/api/error/invalid-short-url-deletion",e.DOMAIN_NOT_FOUND="https://shlink.io/api/error/domain-not-found",e.FORBIDDEN_OPERATION="https://shlink.io/api/error/forbidden-tag-operation",e.INVALID_SLUG="https://shlink.io/api/error/non-unique-slug",e.INVALID_SHORTCODE="https://shlink.io/api/error/short-url-not-found",e.TAG_CONFLICT="https://shlink.io/api/error/tag-conflict",e.TAG_NOT_FOUND="https://shlink.io/api/error/tag-not-found",e.MERCURE_NOT_CONFIGURED="https://shlink.io/api/error/mercure-not-configured",e.INVALID_AUTHORIZATION="https://shlink.io/api/error/missing-authentication",e.INVALID_API_KEY="https://shlink.io/api/error/invalid-api-key",e.NOT_FOUND="https://shlink.io/api/error/not-found",e.INVALID_URL="https://shlink.io/api/error/invalid-url",e))(PT||{});const yoe=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,JR=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const t=e.match(yoe);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},eN=e=>e==="*"||e==="x"||e==="X",tN=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},boe=(e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t],_oe=(e,t)=>{if(eN(e)||eN(t))return 0;const[n,r]=boe(tN(e),tN(t));return n>r?1:n<r?-1:0},nN=(e,t)=>{for(let n=0;n<Math.max(e.length,t.length);n++){const r=_oe(e[n]||"0",t[n]||"0");if(r!==0)return r}return 0},xoe=(e,t)=>{const n=JR(e),r=JR(t),i=n.pop(),o=r.pop(),a=nN(n,r);return a!==0?a:i&&o?nN(i.split("."),o.split(".")):i||o?i?-1:1:0},VP=(e,t,n)=>{woe(n);const r=xoe(e,t);return GF[n].includes(r)},GF={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},rN=Object.keys(GF),woe=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(rN.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${rN.join("|")}`)},KF=(e,t)=>e.reduce((n,r)=>{const i=t(r);return n[i]=(n[i]||0)+1,n},{}),YF=(e,t)=>e.reduce((n,r)=>{const i=t(r);return(n[i]=n[i]||[]).push(r),n},{}),R1=e=>Object.prototype.toString.call(e)==="[object Object]",ZF=(e,t)=>{const n={};return(...r)=>{const i=e(...r);if(n[i])return n[i];const o=t(...r);return n[i]=o,o}},z0=(e,t)=>{const n={...e};return!R1(e)||!R1(t)||Object.keys(t).forEach(r=>{R1(t[r])?n[r]=r in e&&e[r]!==void 0?z0(e[r],t[r]):{...t[r]}:n[r]=t[r]}),n},CT=(e,t)=>Array.from({length:t-e},(n,r)=>e+r),Ooe=(e,t)=>[...e].sort((n,r)=>{const i=t(n),o=t(r);return i===o?0:i<o?-1:1}),Jc=(e,t)=>{const n=[];for(let r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return n},iN=(e,t)=>Object.fromEntries(e.map((n,r)=>[n,t[r]])),Gr=({href:e,children:t,rel:n,...r})=>g.jsx("a",{target:"_blank",rel:`noopener noreferrer${n?` ${n}`:""}`,href:e,...r,children:t??e}),Soe="Left",Poe="Right",Coe="Up",Eoe="Down",Hc={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},WP={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},oN="mousemove",aN="mouseup",Toe="touchend",joe="touchmove",Aoe="touchstart";function koe(e,t,n,r){return e>t?n>0?Poe:Soe:r>0?Eoe:Coe}function sN(e,t){if(t===0)return e;const n=Math.PI/180*t,r=e[0]*Math.cos(n)+e[1]*Math.sin(n),i=e[1]*Math.cos(n)-e[0]*Math.sin(n);return[r,i]}function Roe(e,t){const n=h=>{const p="touches"in h;p&&h.touches.length>1||e((v,b)=>{b.trackMouse&&!p&&(document.addEventListener(oN,r),document.addEventListener(aN,a));const{clientX:x,clientY:_}=p?h.touches[0]:h,w=sN([x,_],b.rotationAngle);return b.onTouchStartOrOnMouseDown&&b.onTouchStartOrOnMouseDown({event:h}),Object.assign(Object.assign(Object.assign({},v),WP),{initial:w.slice(),xy:w,start:h.timeStamp||0})})},r=h=>{e((p,v)=>{const b="touches"in h;if(b&&h.touches.length>1)return p;if(h.timeStamp-p.start>v.swipeDuration)return p.swiping?Object.assign(Object.assign({},p),{swiping:!1}):p;const{clientX:x,clientY:_}=b?h.touches[0]:h,[w,O]=sN([x,_],v.rotationAngle),P=w-p.xy[0],E=O-p.xy[1],T=Math.abs(P),A=Math.abs(E),j=(h.timeStamp||0)-p.start,N=Math.sqrt(T*T+A*A)/(j||1),$=[P/(j||1),E/(j||1)],W=koe(T,A,P,E),B=typeof v.delta=="number"?v.delta:v.delta[W.toLowerCase()]||Hc.delta;if(T<B&&A<B&&!p.swiping)return p;const V={absX:T,absY:A,deltaX:P,deltaY:E,dir:W,event:h,first:p.first,initial:p.initial,velocity:N,vxvy:$};V.first&&v.onSwipeStart&&v.onSwipeStart(V),v.onSwiping&&v.onSwiping(V);let H=!1;return(v.onSwiping||v.onSwiped||v[`onSwiped${W}`])&&(H=!0),H&&v.preventScrollOnSwipe&&v.trackTouch&&h.cancelable&&h.preventDefault(),Object.assign(Object.assign({},p),{first:!1,eventData:V,swiping:!0})})},i=h=>{e((p,v)=>{let b;if(p.swiping&&p.eventData){if(h.timeStamp-p.start<v.swipeDuration){b=Object.assign(Object.assign({},p.eventData),{event:h}),v.onSwiped&&v.onSwiped(b);const x=v[`onSwiped${b.dir}`];x&&x(b)}}else v.onTap&&v.onTap({event:h});return v.onTouchEndOrOnMouseUp&&v.onTouchEndOrOnMouseUp({event:h}),Object.assign(Object.assign(Object.assign({},p),WP),{eventData:b})})},o=()=>{document.removeEventListener(oN,r),document.removeEventListener(aN,a)},a=h=>{o(),i(h)},s=(h,p)=>{let v=()=>{};if(h&&h.addEventListener){const b=Object.assign(Object.assign({},Hc.touchEventOptions),p.touchEventOptions),x=[[Aoe,n,b],[joe,r,Object.assign(Object.assign({},b),p.preventScrollOnSwipe?{passive:!1}:{})],[Toe,i,b]];x.forEach(([_,w,O])=>h.addEventListener(_,w,O)),v=()=>x.forEach(([_,w])=>h.removeEventListener(_,w))}return v},u={ref:h=>{h!==null&&e((p,v)=>{if(p.el===h)return p;const b={};return p.el&&p.el!==h&&p.cleanUpTouch&&(p.cleanUpTouch(),b.cleanUpTouch=void 0),v.trackTouch&&h&&(b.cleanUpTouch=s(h,v)),Object.assign(Object.assign(Object.assign({},p),{el:h}),b)})}};return t.trackMouse&&(u.onMouseDown=n),[u,s]}function Noe(e,t,n,r){return!t.trackTouch||!e.el?(e.cleanUpTouch&&e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:void 0})):e.cleanUpTouch?t.preventScrollOnSwipe!==n.preventScrollOnSwipe||t.touchEventOptions.passive!==n.touchEventOptions.passive?(e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:r(e.el,t)})):e:Object.assign(Object.assign({},e),{cleanUpTouch:r(e.el,t)})}function Moe(e){const{trackMouse:t}=e,n=F.useRef(Object.assign({},WP)),r=F.useRef(Object.assign({},Hc)),i=F.useRef(Object.assign({},r.current));i.current=Object.assign({},r.current),r.current=Object.assign(Object.assign({},Hc),e);let o;for(o in Hc)r.current[o]===void 0&&(r.current[o]=Hc[o]);const[a,s]=F.useMemo(()=>Roe(c=>n.current=c(n.current,r.current),{trackMouse:t}),[t]);return n.current=Noe(n.current,r.current,i.current,s),a}var wh={exports:{}};/** @license
* eventsource.js
* Available under MIT License (MIT)
* https://github.com/Yaffle/EventSource/
*/var Loe=wh.exports,lN;function Ioe(){return lN||(lN=1,function(e,t){(function(n){var r=n.setTimeout,i=n.clearTimeout,o=n.XMLHttpRequest,a=n.XDomainRequest,s=n.ActiveXObject,c=n.EventSource,u=n.document,h=n.Promise,p=n.fetch,v=n.Response,b=n.TextDecoder,x=n.TextEncoder,_=n.AbortController;if(typeof window<"u"&&typeof u<"u"&&!("readyState"in u)&&u.body==null&&(u.readyState="loading",window.addEventListener("load",function(ge){u.readyState="complete"},!1)),o==null&&s!=null&&(o=function(){return new s("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(ge){function Ee(){}return Ee.prototype=ge,new Ee}),Date.now||(Date.now=function(){return new Date().getTime()}),_==null){var w=p;p=function(ge,Ee){var je=Ee.signal;return w(ge,{headers:Ee.headers,credentials:Ee.credentials,cache:Ee.cache}).then(function(Me){var He=Me.body.getReader();return je._reader=He,je._aborted&&je._reader.cancel(),{status:Me.status,statusText:Me.statusText,headers:Me.headers,body:{getReader:function(){return He}}}})},_=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function O(){this.bitsNeeded=0,this.codePoint=0}O.prototype.decode=function(ge){function Ee(Ae,ke,De){if(De===1)return Ae>=128>>ke&&Ae<<ke<=2047;if(De===2)return Ae>=2048>>ke&&Ae<<ke<=55295||Ae>=57344>>ke&&Ae<<ke<=65535;if(De===3)return Ae>=65536>>ke&&Ae<<ke<=1114111;throw new Error}function je(Ae,ke){if(Ae===6*1)return ke>>6>15?3:ke>31?2:1;if(Ae===6*2)return ke>15?3:2;if(Ae===6*3)return 3;throw new Error}for(var Me=65533,He="",Ue=this.bitsNeeded,qe=this.codePoint,ye=0;ye<ge.length;ye+=1){var we=ge[ye];Ue!==0&&(we<128||we>191||!Ee(qe<<6|we&63,Ue-6,je(Ue,qe)))&&(Ue=0,qe=Me,He+=String.fromCharCode(qe)),Ue===0?(we>=0&&we<=127?(Ue=0,qe=we):we>=192&&we<=223?(Ue=6*1,qe=we&31):we>=224&&we<=239?(Ue=6*2,qe=we&15):we>=240&&we<=247?(Ue=6*3,qe=we&7):(Ue=0,qe=Me),Ue!==0&&!Ee(qe,Ue,je(Ue,qe))&&(Ue=0,qe=Me)):(Ue-=6,qe=qe<<6|we&63),Ue===0&&(qe<=65535?He+=String.fromCharCode(qe):(He+=String.fromCharCode(55296+(qe-65535-1>>10)),He+=String.fromCharCode(56320+(qe-65535-1&1023))))}return this.bitsNeeded=Ue,this.codePoint=qe,He};var P=function(){try{return new b().decode(new x().encode("test"),{stream:!0})==="test"}catch(ge){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+ge)}return!1};(b==null||x==null||!P())&&(b=O);var E=function(){};function T(ge){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=E,this.onload=E,this.onerror=E,this.onreadystatechange=E,this._contentType="",this._xhr=ge,this._sendTimeout=0,this._abort=E}T.prototype.open=function(ge,Ee){this._abort(!0);var je=this,Me=this._xhr,He=1,Ue=0;this._abort=function(De){je._sendTimeout!==0&&(i(je._sendTimeout),je._sendTimeout=0),(He===1||He===2||He===3)&&(He=4,Me.onload=E,Me.onerror=E,Me.onabort=E,Me.onprogress=E,Me.onreadystatechange=E,Me.abort(),Ue!==0&&(i(Ue),Ue=0),De||(je.readyState=4,je.onabort(null),je.onreadystatechange())),He=0};var qe=function(){if(He===1){var De=0,Ke="",Xe=void 0;if("contentType"in Me)De=200,Ke="OK",Xe=Me.contentType;else try{De=Me.status,Ke=Me.statusText,Xe=Me.getResponseHeader("Content-Type")}catch{De=0,Ke="",Xe=void 0}De!==0&&(He=2,je.readyState=2,je.status=De,je.statusText=Ke,je._contentType=Xe,je.onreadystatechange())}},ye=function(){if(qe(),He===2||He===3){He=3;var De="";try{De=Me.responseText}catch{}je.readyState=3,je.responseText=De,je.onprogress()}},we=function(De,Ke){if((Ke==null||Ke.preventDefault==null)&&(Ke={preventDefault:E}),ye(),He===1||He===2||He===3){if(He=4,Ue!==0&&(i(Ue),Ue=0),je.readyState=4,De==="load")je.onload(Ke);else if(De==="error")je.onerror(Ke);else if(De==="abort")je.onabort(Ke);else throw new TypeError;je.onreadystatechange()}},Ae=function(De){Me!=null&&(Me.readyState===4?(!("onload"in Me)||!("onerror"in Me)||!("onabort"in Me))&&we(Me.responseText===""?"error":"load",De):Me.readyState===3?"onprogress"in Me||ye():Me.readyState===2&&qe())},ke=function(){Ue=r(function(){ke()},500),Me.readyState===3&&ye()};"onload"in Me&&(Me.onload=function(De){we("load",De)}),"onerror"in Me&&(Me.onerror=function(De){we("error",De)}),"onabort"in Me&&(Me.onabort=function(De){we("abort",De)}),"onprogress"in Me&&(Me.onprogress=ye),"onreadystatechange"in Me&&(Me.onreadystatechange=function(De){Ae(De)}),("contentType"in Me||!("ontimeout"in o.prototype))&&(Ee+=(Ee.indexOf("?")===-1?"?":"&")+"padding=true"),Me.open(ge,Ee,!0),"readyState"in Me&&(Ue=r(function(){ke()},0))},T.prototype.abort=function(){this._abort(!1)},T.prototype.getResponseHeader=function(ge){return this._contentType},T.prototype.setRequestHeader=function(ge,Ee){var je=this._xhr;"setRequestHeader"in je&&je.setRequestHeader(ge,Ee)},T.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},T.prototype.send=function(){if((!("ontimeout"in o.prototype)||!("sendAsBinary"in o.prototype)&&!("mozAnon"in o.prototype))&&u!=null&&u.readyState!=null&&u.readyState!=="complete"){var ge=this;ge._sendTimeout=r(function(){ge._sendTimeout=0,ge.send()},4);return}var Ee=this._xhr;"withCredentials"in Ee&&(Ee.withCredentials=this.withCredentials);try{Ee.send(void 0)}catch(je){throw je}};function A(ge){return ge.replace(/[A-Z]/g,function(Ee){return String.fromCharCode(Ee.charCodeAt(0)+32)})}function j(ge){for(var Ee=Object.create(null),je=ge.split(`\r
`),Me=0;Me<je.length;Me+=1){var He=je[Me],Ue=He.split(": "),qe=Ue.shift(),ye=Ue.join(": ");Ee[A(qe)]=ye}this._map=Ee}j.prototype.get=function(ge){return this._map[A(ge)]},o!=null&&o.HEADERS_RECEIVED==null&&(o.HEADERS_RECEIVED=2);function N(){}N.prototype.open=function(ge,Ee,je,Me,He,Ue,qe){ge.open("GET",He);var ye=0;ge.onprogress=function(){var Ae=ge.responseText,ke=Ae.slice(ye);ye+=ke.length,je(ke)},ge.onerror=function(Ae){Ae.preventDefault(),Me(new Error("NetworkError"))},ge.onload=function(){Me(null)},ge.onabort=function(){Me(null)},ge.onreadystatechange=function(){if(ge.readyState===o.HEADERS_RECEIVED){var Ae=ge.status,ke=ge.statusText,De=ge.getResponseHeader("Content-Type"),Ke=ge.getAllResponseHeaders();Ee(Ae,ke,De,new j(Ke))}},ge.withCredentials=Ue;for(var we in qe)Object.prototype.hasOwnProperty.call(qe,we)&&ge.setRequestHeader(we,qe[we]);return ge.send(),ge};function $(ge){this._headers=ge}$.prototype.get=function(ge){return this._headers.get(ge)};function W(){}W.prototype.open=function(ge,Ee,je,Me,He,Ue,qe){var ye=null,we=new _,Ae=we.signal,ke=new b;return p(He,{headers:qe,credentials:Ue?"include":"same-origin",signal:Ae,cache:"no-store"}).then(function(De){return ye=De.body.getReader(),Ee(De.status,De.statusText,De.headers.get("Content-Type"),new $(De.headers)),new h(function(Ke,Xe){var bt=function(){ye.read().then(function(Ot){if(Ot.done)Ke(void 0);else{var xt=ke.decode(Ot.value,{stream:!0});je(xt),bt()}}).catch(function(Ot){Xe(Ot)})};bt()})}).catch(function(De){if(De.name!=="AbortError")return De}).then(function(De){Me(De)}),{abort:function(){ye!=null&&ye.cancel(),we.abort()}}};function B(){this._listeners=Object.create(null)}function V(ge){r(function(){throw ge},0)}B.prototype.dispatchEvent=function(ge){ge.target=this;var Ee=this._listeners[ge.type];if(Ee!=null)for(var je=Ee.length,Me=0;Me<je;Me+=1){var He=Ee[Me];try{typeof He.handleEvent=="function"?He.handleEvent(ge):He.call(this,ge)}catch(Ue){V(Ue)}}},B.prototype.addEventListener=function(ge,Ee){ge=String(ge);var je=this._listeners,Me=je[ge];Me==null&&(Me=[],je[ge]=Me);for(var He=!1,Ue=0;Ue<Me.length;Ue+=1)Me[Ue]===Ee&&(He=!0);He||Me.push(Ee)},B.prototype.removeEventListener=function(ge,Ee){ge=String(ge);var je=this._listeners,Me=je[ge];if(Me!=null){for(var He=[],Ue=0;Ue<Me.length;Ue+=1)Me[Ue]!==Ee&&He.push(Me[Ue]);He.length===0?delete je[ge]:je[ge]=He}};function H(ge){this.type=ge,this.target=void 0}function J(ge,Ee){H.call(this,ge),this.data=Ee.data,this.lastEventId=Ee.lastEventId}J.prototype=Object.create(H.prototype);function Q(ge,Ee){H.call(this,ge),this.status=Ee.status,this.statusText=Ee.statusText,this.headers=Ee.headers}Q.prototype=Object.create(H.prototype);function re(ge,Ee){H.call(this,ge),this.error=Ee.error}re.prototype=Object.create(H.prototype);var ae=-1,se=0,oe=1,K=2,G=-1,z=0,ne=1,X=2,le=3,ce=/^text\/event\-stream(;.*)?$/i,de=1e3,be=18e6,M=function(ge,Ee){var je=ge==null?Ee:parseInt(ge,10);return je!==je&&(je=Ee),D(je)},D=function(ge){return Math.min(Math.max(ge,de),be)},Y=function(ge,Ee,je){try{typeof Ee=="function"&&Ee.call(ge,je)}catch(Me){V(Me)}};function ue(ge,Ee){B.call(this),Ee=Ee||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,Se(this,ge,Ee)}function ie(){return o!=null&&"withCredentials"in o.prototype||a==null?new o:new a}var he=p!=null&&v!=null&&"body"in v.prototype;function Se(ge,Ee,je){Ee=String(Ee);var Me=!!je.withCredentials,He=je.lastEventIdQueryParameterName||"lastEventId",Ue=D(1e3),qe=M(je.heartbeatTimeout,45e3),ye="",we=Ue,Ae=!1,ke=0,De=je.headers||{},Ke=je.Transport,Xe=he&&Ke==null?void 0:new T(Ke!=null?new Ke:ie()),bt=Ke!=null&&typeof Ke!="string"?new Ke:Xe==null?new W:new N,Ot=void 0,xt=0,en=ae,Gt="",kn="",Dn="",Nr="",En=z,ua=0,Mr=0,to=function(hn,sn,$n,Rn){if(en===se)if(hn===200&&$n!=null&&ce.test($n)){en=oe,Ae=Date.now(),we=Ue,ge.readyState=oe;var pn=new Q("open",{status:hn,statusText:sn,headers:Rn});ge.dispatchEvent(pn),Y(ge,ge.onopen,pn)}else{var mn="";hn!==200?(sn&&(sn=sn.replace(/\s+/g," ")),mn="EventSource's response has a status "+hn+" "+sn+" that is not 200. Aborting the connection."):mn="EventSource's response has a Content-Type specifying an unsupported type: "+($n==null?"-":$n.replace(/\s+/g," "))+". Aborting the connection.",rs();var pn=new Q("error",{status:hn,statusText:sn,headers:Rn});ge.dispatchEvent(pn),Y(ge,ge.onerror,pn),console.error(mn)}},no=function(hn){if(en===oe){for(var sn=-1,$n=0;$n<hn.length;$n+=1){var Rn=hn.charCodeAt($n);(Rn===10||Rn===13)&&(sn=$n)}var pn=(sn!==-1?Nr:"")+hn.slice(0,sn+1);Nr=(sn===-1?Nr:"")+hn.slice(sn+1),hn!==""&&(Ae=Date.now(),ke+=hn.length);for(var mn=0;mn<pn.length;mn+=1){var Rn=pn.charCodeAt(mn);if(En===G&&Rn===10)En=z;else if(En===G&&(En=z),Rn===13||Rn===10){if(En!==z){En===ne&&(Mr=mn+1);var nr=pn.slice(ua,Mr-1),Qr=pn.slice(Mr+(Mr<mn&&pn.charCodeAt(Mr)===32?1:0),mn);nr==="data"?(Gt+=`
`,Gt+=Qr):nr==="id"?kn=Qr:nr==="event"?Dn=Qr:nr==="retry"?(Ue=M(Qr,Ue),we=Ue):nr==="heartbeatTimeout"&&(qe=M(Qr,qe),xt!==0&&(i(xt),xt=r(function(){ko()},qe)))}if(En===z){if(Gt!==""){ye=kn,Dn===""&&(Dn="message");var vn=new J(Dn,{data:Gt.slice(1),lastEventId:kn});if(ge.dispatchEvent(vn),Dn==="open"?Y(ge,ge.onopen,vn):Dn==="message"?Y(ge,ge.onmessage,vn):Dn==="error"&&Y(ge,ge.onerror,vn),en===K)return}Gt="",Dn=""}En=Rn===13?G:z}else En===z&&(ua=mn,En=ne),En===ne?Rn===58&&(Mr=mn+1,En=X):En===X&&(En=le)}}},xl=function(hn){if(en===oe||en===se){en=ae,xt!==0&&(i(xt),xt=0),xt=r(function(){ko()},we),we=D(Math.min(Ue*16,we*2)),ge.readyState=se;var sn=new re("error",{error:hn});ge.dispatchEvent(sn),Y(ge,ge.onerror,sn),hn!=null&&console.error(hn)}},rs=function(){en=K,Ot!=null&&(Ot.abort(),Ot=void 0),xt!==0&&(i(xt),xt=0),ge.readyState=K},ko=function(){if(xt=0,en!==ae){if(!Ae&&Ot!=null)xl(new Error("No activity within "+qe+" milliseconds. "+(en===se?"No response received.":ke+" chars received.")+" Reconnecting.")),Ot!=null&&(Ot.abort(),Ot=void 0);else{var hn=Math.max((Ae||Date.now())+qe-Date.now(),1);Ae=!1,xt=r(function(){ko()},hn)}return}Ae=!1,ke=0,xt=r(function(){ko()},qe),en=se,Gt="",Dn="",kn=ye,Nr="",ua=0,Mr=0,En=z;var sn=Ee;if(Ee.slice(0,5)!=="data:"&&Ee.slice(0,5)!=="blob:"&&ye!==""){var $n=Ee.indexOf("?");sn=$n===-1?Ee:Ee.slice(0,$n+1)+Ee.slice($n+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(Qr,vn){return vn===He?"":Qr}),sn+=(Ee.indexOf("?")===-1?"?":"&")+He+"="+encodeURIComponent(ye)}var Rn=ge.withCredentials,pn={};pn.Accept="text/event-stream";var mn=ge.headers;if(mn!=null)for(var nr in mn)Object.prototype.hasOwnProperty.call(mn,nr)&&(pn[nr]=mn[nr]);try{Ot=bt.open(Xe,to,no,xl,sn,Rn,pn)}catch(Qr){throw rs(),Qr}};ge.url=Ee,ge.readyState=se,ge.withCredentials=Me,ge.headers=De,ge._close=rs,ko()}ue.prototype=Object.create(B.prototype),ue.prototype.CONNECTING=se,ue.prototype.OPEN=oe,ue.prototype.CLOSED=K,ue.prototype.close=function(){this._close()},ue.CONNECTING=se,ue.OPEN=oe,ue.CLOSED=K,ue.prototype.withCredentials=void 0;var Fe=c;o!=null&&(c==null||!("withCredentials"in c.prototype))&&(Fe=ue),function(ge){{var Ee=ge(t);Ee!==void 0&&(e.exports=Ee)}}(function(ge){ge.EventSourcePolyfill=ue,ge.NativeEventSource=c,ge.EventSource=Fe})})(typeof globalThis>"u"?typeof window<"u"?window:typeof self<"u"?self:Loe:globalThis)}(wh,wh.exports)),wh.exports}var Doe=Ioe();const Qs=({children:e})=>g.jsx("small",{className:"form-text text-muted d-block",children:e}),$oe=({toggleRealTimeUpdates:e,setRealTimeUpdatesInterval:t})=>{const{enabled:n,interval:r}=Rr("realTimeUpdates",{enabled:!0}),i=F.useId();return g.jsxs(qt,{title:"Real-time updates",className:"h-100",children:[g.jsx(Zg,{children:g.jsxs(Va,{checked:n,onChange:e,children:["Enable or disable real-time updates.",g.jsxs(Qs,{children:["Real-time updates are currently being ",g.jsx("b",{children:n?"processed":"ignored"}),"."]})]})}),g.jsxs(Yf,{noMargin:!0,label:"Real-time updates frequency (in minutes):",labelClassName:Be("form-label",{"text-muted":!n}),id:i,children:[g.jsx(Qn,{type:"number",min:0,placeholder:"Immediate",disabled:!n,value:`${r??""}`,id:i,onChange:({target:o})=>t(Number(o.value))}),n&&g.jsx(Qs,{children:r?g.jsxs("span",{children:["Updates will be reflected in the UI every ",g.jsx("b",{children:r})," minute",r>1&&"s","."]}):"Updates will be reflected in the UI as soon as they happen."})]})]})},N1=e=>e==="includes"?"Suggest tags including input":"Suggest tags starting with input",Foe=e=>e==="includes"?g.jsxs(g.Fragment,{children:["The list of suggested tags will contain those ",g.jsx("b",{children:"including"})," provided input."]}):g.jsxs(g.Fragment,{children:["The list of suggested tags will contain those ",g.jsx("b",{children:"starting with"})," provided input."]}),Boe=({updateShortUrlCreationSettings:e})=>{const t=Rr("shortUrlCreation",{validateUrls:!1}),n=r=>()=>e({...t??{validateUrls:!1},tagFilteringMode:r});return g.jsxs(qt,{title:"Short URLs form",className:"h-100",bodyClassName:"d-flex flex-column gap-3",children:[g.jsxs(Va,{checked:t.validateUrls??!1,onChange:r=>e({...t,validateUrls:r}),children:["Request validation on long URLs when creating new short URLs."," ",g.jsxs("b",{children:["This option is ignored by Shlink ",">=","4.0.0"]}),g.jsxs(Qs,{children:["The initial state of the ",g.jsx("b",{children:"Validate URL"})," checkbox will be ",g.jsx("b",{children:t.validateUrls?"checked":"unchecked"}),"."]})]}),g.jsxs(Va,{checked:t.forwardQuery??!0,onChange:r=>e({...t,forwardQuery:r}),children:["Make all new short URLs forward their query params to the long URL.",g.jsxs(Qs,{children:["The initial state of the ",g.jsx("b",{children:"Forward query params on redirect"})," checkbox will be ",g.jsx("b",{children:t.forwardQuery??!0?"checked":"unchecked"}),"."]})]}),g.jsxs(Yf,{noMargin:!0,label:"Tag suggestions search mode:",children:[g.jsxs(Ja,{text:N1(t.tagFilteringMode),children:[g.jsx(Ye,{active:!t.tagFilteringMode||t.tagFilteringMode==="startsWith",onClick:n("startsWith"),children:N1("startsWith")}),g.jsx(Ye,{active:t.tagFilteringMode==="includes",onClick:n("includes"),children:N1("includes")})]}),g.jsx(Qs,{children:Foe(t.tagFilteringMode)})]})]})},Uoe={dateCreated:"Created at",shortCode:"Short URL",longUrl:"Long URL",title:"Title",visits:"Visits"},zoe=({updateShortUrlsListSettings:e,defaultOrdering:t})=>{const n=Rr("shortUrlsList"),r=(n==null?void 0:n.confirmDeletions)??!0;return g.jsxs(qt,{title:"Short URLs list",className:"h-100",bodyClassName:"d-flex flex-column gap-3",children:[g.jsxs(Va,{checked:r,onChange:i=>e({...n,confirmDeletions:i}),children:["Request confirmation before deleting a short URL.",g.jsxs(Qs,{children:["When deleting a short URL, confirmation ",g.jsx("b",{children:r?"will":"won't"})," be required."]})]}),g.jsx(Yf,{noMargin:!0,label:"Default ordering for short URLs list:",children:g.jsx(nm,{items:Uoe,order:(n==null?void 0:n.defaultOrdering)??t,onChange:(i,o)=>e({defaultOrdering:{field:i,dir:o}})})})]})},Voe={tag:"Tag",shortUrls:"Short URLs",visits:"Visits"},Woe=({updateTagsSettings:e})=>{const t=Rr("tags",{});return g.jsx(qt,{title:"Tags",className:"h-100",children:g.jsx(Yf,{noMargin:!0,label:"Default ordering for tags list:",children:g.jsx(nm,{items:Voe,order:t.defaultOrdering??{},onChange:(n,r)=>e({...t,defaultOrdering:{field:n,dir:r}})})})})},qoe=({updateUiSettings:e,_matchMedia:t})=>{const n=Rr("ui"),r=F.useMemo(()=>(n==null?void 0:n.theme)??_T(t),[n==null?void 0:n.theme,t]);return g.jsxs(qt,{title:"User interface",className:"h-100",bodyClassName:"d-flex justify-content-between align-items-center",children:[g.jsx(Va,{checked:r==="dark",onChange:i=>{e({...n,theme:i?"dark":"light"})},children:"Use dark theme."}),g.jsx(Ge,{icon:r==="dark"?XK:FK})]})},XF={today:"Today",yesterday:"Yesterday",last7Days:"Last 7 days",last30Days:"Last 30 days",last90Days:"Last 90 days",last180Days:"Last 180 days",last365Days:"Last 365 days"},Hoe=(e,t)=>!e||e==="all"?t:XF[e],Goe=({onChange:e,active:t,allText:n})=>g.jsxs(Ja,{text:Hoe(t,n),children:[g.jsx(Ye,{active:t==="all",onClick:()=>e("all"),children:n}),g.jsx(Ye,{divider:!0}),Object.entries(XF).map(([r,i])=>g.jsx(Ye,{active:t===r,onClick:()=>e(r),children:i},r))]}),uN=e=>(e==null?void 0:e.defaultInterval)??"last30Days",Koe=({updateVisitsSettings:e})=>{const t=Rr("visits"),n=F.useCallback(({defaultInterval:r,...i})=>e({defaultInterval:r??uN(t),...i}),[e,t]);return g.jsxs(qt,{title:"Visits",className:"h-100",children:[g.jsx(Zg,{children:g.jsxs(Va,{checked:!!(t!=null&&t.excludeBots),onChange:r=>n({excludeBots:r}),children:["Exclude bots wherever possible (this options effect might depend on Shlink servers version).",g.jsxs(Qs,{children:["The visits coming from potential bots will be ",g.jsx("b",{children:t!=null&&t.excludeBots?"excluded":"included"}),"."]})]})}),g.jsx(Zg,{children:g.jsxs(Va,{checked:!!(t!=null&&t.loadPrevInterval),onChange:r=>n({loadPrevInterval:r}),children:["Compare visits with previous period.",g.jsxs(Qs,{children:["When loading visits, previous period ",g.jsx("b",{children:t!=null&&t.loadPrevInterval?"will":"won't"})," be loaded by default."]})]})}),g.jsx(Yf,{noMargin:!0,label:"Default interval to load on visits sections:",children:g.jsx(Goe,{allText:"All visits",active:uN(t),onChange:r=>n({defaultInterval:r})})})]})},M1=({children:e})=>F.Children.map(e,(t,n)=>g.jsx("div",{className:"mb-3",children:t},n)),Yoe=({settings:e,updateSettings:t,defaultShortUrlsListOrdering:n})=>{const r=F.useCallback(s=>t(z0(e,s)),[e,t]),i=F.useCallback(s=>r({realTimeUpdates:{enabled:s}}),[r]),o=F.useCallback(s=>r({realTimeUpdates:{interval:s}}),[r]),a=F.useCallback((s,c)=>r({[s]:c}),[r]);return g.jsxs(e7,{value:e,children:[g.jsxs(AF,{className:"mb-3",children:[g.jsx(Mh,{to:"general",children:"General"}),g.jsx(Mh,{to:"short-urls",children:"Short URLs"}),g.jsx(Mh,{to:"other-items",children:"Other items"})]}),g.jsxs(P0,{children:[g.jsx(Rt,{path:"general",element:g.jsxs(M1,{children:[g.jsx(qoe,{updateUiSettings:s=>a("ui",s)}),g.jsx($oe,{toggleRealTimeUpdates:i,setRealTimeUpdatesInterval:o})]})}),g.jsx(Rt,{path:"short-urls",element:g.jsxs(M1,{children:[g.jsx(Boe,{updateShortUrlCreationSettings:s=>a("shortUrlCreation",s)}),g.jsx(zoe,{defaultOrdering:n,updateShortUrlsListSettings:s=>a("shortUrlsList",s)})]})}),g.jsx(Rt,{path:"other-items",element:g.jsxs(M1,{children:[g.jsx(Woe,{updateTagsSettings:s=>a("tags",s)}),g.jsx(Koe,{updateVisitsSettings:s=>a("visits",s)})]})}),g.jsx(Rt,{path:"*",element:g.jsx(NE,{replace:!0,to:"general"})})]})]})},QF={realTimeUpdates:{enabled:!0},shortUrlCreation:{validateUrls:!1},visits:{defaultInterval:"last30Days"},shortUrlsList:{defaultOrdering:{field:"dateCreated",dir:"DESC"}}},JF=F.createContext(QF),{Provider:e7}=JF,ET=()=>F.useContext(JF)??QF;function Rr(e,t){return ET()[e]??t}/*!
* Font Awesome Free 6.7.1 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
* Copyright 2024 Fonticons, Inc.
*/const Zoe={prefix:"far",iconName:"circle-right",icon:[512,512,[61838,"arrow-alt-circle-right"],"f35a","M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM294.6 151.2c-4.2-4.6-10.1-7.2-16.4-7.2C266 144 256 154 256 166.3l0 41.7-96 0c-17.7 0-32 14.3-32 32l0 32c0 17.7 14.3 32 32 32l96 0 0 41.7c0 12.3 10 22.3 22.3 22.3c6.2 0 12.1-2.6 16.4-7.2l84-91c3.5-3.8 5.4-8.7 5.4-13.9s-1.9-10.1-5.4-13.9l-84-91z"]},Xoe=Zoe,Qoe={prefix:"far",iconName:"circle",icon:[512,512,[128308,128309,128992,128993,128994,128995,128996,9679,9898,9899,11044,61708,61915],"f111","M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z"]},t7={prefix:"far",iconName:"clone",icon:[512,512,[],"f24d","M64 464l224 0c8.8 0 16-7.2 16-16l0-64 48 0 0 64c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 224c0-35.3 28.7-64 64-64l64 0 0 48-64 0c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16zM224 304l224 0c8.8 0 16-7.2 16-16l0-224c0-8.8-7.2-16-16-16L224 48c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16zm-64-16l0-224c0-35.3 28.7-64 64-64L448 0c35.3 0 64 28.7 64 64l0 224c0 35.3-28.7 64-64 64l-224 0c-35.3 0-64-28.7-64-64z"]},TT=6048e5,Joe=864e5,n7=6e4,jT=36e5,zv=43200,cN=1440,fN=Symbol.for("constructDateFrom");function sr(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&fN in e?e[fN](t):e instanceof Date?new e.constructor(t):new Date(t)}function jt(e,t){return sr(t||e,e)}function AT(e,t,n){const r=jt(e,n==null?void 0:n.in);return isNaN(t)?sr(e,NaN):(t&&r.setDate(r.getDate()+t),r)}function eae(e,t,n){const r=jt(e,n==null?void 0:n.in);if(isNaN(t))return sr(e,NaN);if(!t)return r;const i=r.getDate(),o=sr(e,r.getTime());o.setMonth(r.getMonth()+t+1,0);const a=o.getDate();return i>=a?o:(r.setFullYear(o.getFullYear(),o.getMonth(),i),r)}function tae(e,t,n){const{years:r=0,months:i=0,weeks:o=0,days:a=0,hours:s=0,minutes:c=0,seconds:u=0}=t,h=jt(e,n==null?void 0:n.in),p=i||r?eae(h,i+r*12):h,v=a||o?AT(p,a+o*7):p,b=c+s*60,_=(u+b*60)*1e3;return sr(e,+v+_)}let nae={};function im(){return nae}function Pu(e,t){var s,c,u,h;const n=im(),r=(t==null?void 0:t.weekStartsOn)??((c=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((h=(u=n.locale)==null?void 0:u.options)==null?void 0:h.weekStartsOn)??0,i=jt(e,t==null?void 0:t.in),o=i.getDay(),a=(o<r?7:0)+o-r;return i.setDate(i.getDate()-a),i.setHours(0,0,0,0),i}function lp(e,t){return Pu(e,{...t,weekStartsOn:1})}function r7(e,t){const n=jt(e,t==null?void 0:t.in),r=n.getFullYear(),i=sr(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const o=lp(i),a=sr(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const s=lp(a);return n.getTime()>=o.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function pf(e){const t=jt(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Mu(e,...t){const n=sr.bind(null,e||t.find(r=>typeof r=="object"));return t.map(n)}function Cu(e,t){const n=jt(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function V0(e,t,n){const[r,i]=Mu(n==null?void 0:n.in,e,t),o=Cu(r),a=Cu(i),s=+o-pf(o),c=+a-pf(a);return Math.round((s-c)/Joe)}function rae(e,t){const n=r7(e,t),r=sr(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),lp(r)}function i7(e,t){let n,r=t==null?void 0:t.in;return e.forEach(i=>{!r&&typeof i=="object"&&(r=sr.bind(null,i));const o=jt(i,r);(!n||n<o||isNaN(+o))&&(n=o)}),sr(r,n||NaN)}function iae(e,t){let n,r=t==null?void 0:t.in;return e.forEach(i=>{!r&&typeof i=="object"&&(r=sr.bind(null,i));const o=jt(i,r);(!n||n>o||isNaN(+o))&&(n=o)}),sr(r,n||NaN)}function yg(e,t){const n=+jt(e)-+jt(t);return n<0?-1:n>0?1:n}function oae(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function aae(e){return!(!oae(e)&&typeof e!="number"||isNaN(+jt(e)))}function oy(e,t,n){const[r,i]=Mu(n==null?void 0:n.in,e,t),o=r.getFullYear()-i.getFullYear(),a=r.getMonth()-i.getMonth();return o*12+a}function sae(e,t,n){const[r,i]=Mu(n==null?void 0:n.in,e,t),o=Pu(r,n),a=Pu(i,n),s=+o-pf(o),c=+a-pf(a);return Math.round((s-c)/TT)}function o7(e,t,n){const[r,i]=Mu(n==null?void 0:n.in,e,t),o=dN(r,i),a=Math.abs(V0(r,i));r.setDate(r.getDate()-o*a);const s=+(dN(r,i)===-o),c=o*(a-s);return c===0?0:c}function dN(e,t){const n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function a7(e){return t=>{const r=(e?Math[e]:Math.trunc)(t);return r===0?0:r}}function lae(e,t,n){const[r,i]=Mu(n==null?void 0:n.in,e,t),o=(+r-+i)/jT;return a7(n==null?void 0:n.roundingMethod)(o)}function uae(e,t){return+jt(e)-+jt(t)}function mf(e,t){const n=jt(e,t==null?void 0:t.in);return n.setHours(23,59,59,999),n}function cae(e,t){const n=jt(e,t==null?void 0:t.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function fae(e,t){const n=jt(e,t==null?void 0:t.in);return+mf(n,t)==+cae(n,t)}function dae(e,t,n){const[r,i,o]=Mu(n==null?void 0:n.in,e,e,t),a=yg(i,o),s=Math.abs(oy(i,o));if(s<1)return 0;i.getMonth()===1&&i.getDate()>27&&i.setDate(30),i.setMonth(i.getMonth()-a*s);let c=yg(i,o)===-a;fae(r)&&s===1&&yg(r,o)===1&&(c=!1);const u=a*(s-+c);return u===0?0:u}function hae(e,t,n){const r=uae(e,t)/1e3;return a7(n==null?void 0:n.roundingMethod)(r)}function pae(e,t){const n=jt(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function mae(e,t){const n=t==null?void 0:t.weekStartsOn,r=jt(e,t==null?void 0:t.in),i=r.getDay(),o=(i<n?-7:0)+6-(i-n);return r.setDate(r.getDate()+o),r.setHours(23,59,59,999),r}function vae(e,t){return mae(e,{...t,weekStartsOn:1})}const gae={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},yae=(e,t,n)=>{let r;const i=gae[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function L1(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const bae={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},_ae={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},xae={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},wae={date:L1({formats:bae,defaultWidth:"full"}),time:L1({formats:_ae,defaultWidth:"full"}),dateTime:L1({formats:xae,defaultWidth:"full"})},Oae={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Sae=(e,t,n,r)=>Oae[e];function oh(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):a;i=e.formattingValues[s]||e.formattingValues[a]}else{const a=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[s]||e.values[a]}const o=e.argumentCallback?e.argumentCallback(t):t;return i[o]}}const Pae={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Cae={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Eae={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Tae={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},jae={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Aae={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},kae=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Rae={ordinalNumber:kae,era:oh({values:Pae,defaultWidth:"wide"}),quarter:oh({values:Cae,defaultWidth:"wide",argumentCallback:e=>e-1}),month:oh({values:Eae,defaultWidth:"wide"}),day:oh({values:Tae,defaultWidth:"wide"}),dayPeriod:oh({values:jae,defaultWidth:"wide",formattingValues:Aae,defaultFormattingWidth:"wide"})};function ah(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;const a=o[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?Mae(s,p=>p.test(a)):Nae(s,p=>p.test(a));let u;u=e.valueCallback?e.valueCallback(c):c,u=n.valueCallback?n.valueCallback(u):u;const h=t.slice(a.length);return{value:u,rest:h}}}function Nae(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Mae(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function Lae(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],o=t.match(e.parsePattern);if(!o)return null;let a=e.valueCallback?e.valueCallback(o[0]):o[0];a=n.valueCallback?n.valueCallback(a):a;const s=t.slice(i.length);return{value:a,rest:s}}}const Iae=/^(\d+)(th|st|nd|rd)?/i,Dae=/\d+/i,$ae={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Fae={any:[/^b/i,/^(a|c)/i]},Bae={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Uae={any:[/1/i,/2/i,/3/i,/4/i]},zae={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Vae={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Wae={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},qae={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Hae={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Gae={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Kae={ordinalNumber:Lae({matchPattern:Iae,parsePattern:Dae,valueCallback:e=>parseInt(e,10)}),era:ah({matchPatterns:$ae,defaultMatchWidth:"wide",parsePatterns:Fae,defaultParseWidth:"any"}),quarter:ah({matchPatterns:Bae,defaultMatchWidth:"wide",parsePatterns:Uae,defaultParseWidth:"any",valueCallback:e=>e+1}),month:ah({matchPatterns:zae,defaultMatchWidth:"wide",parsePatterns:Vae,defaultParseWidth:"any"}),day:ah({matchPatterns:Wae,defaultMatchWidth:"wide",parsePatterns:qae,defaultParseWidth:"any"}),dayPeriod:ah({matchPatterns:Hae,defaultMatchWidth:"any",parsePatterns:Gae,defaultParseWidth:"any"})},s7={code:"en-US",formatDistance:yae,formatLong:wae,formatRelative:Sae,localize:Rae,match:Kae,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Yae(e,t){const n=jt(e,t==null?void 0:t.in);return V0(n,pae(n))+1}function Zae(e,t){const n=jt(e,t==null?void 0:t.in),r=+lp(n)-+rae(n);return Math.round(r/TT)+1}function l7(e,t){var h,p,v,b;const n=jt(e,t==null?void 0:t.in),r=n.getFullYear(),i=im(),o=(t==null?void 0:t.firstWeekContainsDate)??((p=(h=t==null?void 0:t.locale)==null?void 0:h.options)==null?void 0:p.firstWeekContainsDate)??i.firstWeekContainsDate??((b=(v=i.locale)==null?void 0:v.options)==null?void 0:b.firstWeekContainsDate)??1,a=sr((t==null?void 0:t.in)||e,0);a.setFullYear(r+1,0,o),a.setHours(0,0,0,0);const s=Pu(a,t),c=sr((t==null?void 0:t.in)||e,0);c.setFullYear(r,0,o),c.setHours(0,0,0,0);const u=Pu(c,t);return+n>=+s?r+1:+n>=+u?r:r-1}function Xae(e,t){var s,c,u,h;const n=im(),r=(t==null?void 0:t.firstWeekContainsDate)??((c=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:c.firstWeekContainsDate)??n.firstWeekContainsDate??((h=(u=n.locale)==null?void 0:u.options)==null?void 0:h.firstWeekContainsDate)??1,i=l7(e,t),o=sr((t==null?void 0:t.in)||e,0);return o.setFullYear(i,0,r),o.setHours(0,0,0,0),Pu(o,t)}function Qae(e,t){const n=jt(e,t==null?void 0:t.in),r=+Pu(n,t)-+Xae(n,t);return Math.round(r/TT)+1}function Tt(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Fs={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Tt(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Tt(n+1,2)},d(e,t){return Tt(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return Tt(e.getHours()%12||12,t.length)},H(e,t){return Tt(e.getHours(),t.length)},m(e,t){return Tt(e.getMinutes(),t.length)},s(e,t){return Tt(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return Tt(i,t.length)}},Rc={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},hN={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return Fs.y(e,t)},Y:function(e,t,n,r){const i=l7(e,r),o=i>0?i:1-i;if(t==="YY"){const a=o%100;return Tt(a,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):Tt(o,t.length)},R:function(e,t){const n=r7(e);return Tt(n,t.length)},u:function(e,t){const n=e.getFullYear();return Tt(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Tt(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Tt(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return Fs.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Tt(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=Qae(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):Tt(i,t.length)},I:function(e,t,n){const r=Zae(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Tt(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Fs.d(e,t)},D:function(e,t,n){const r=Yae(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Tt(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Tt(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Tt(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return Tt(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=Rc.noon:r===0?i=Rc.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=Rc.evening:r>=12?i=Rc.afternoon:r>=4?i=Rc.morning:i=Rc.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Fs.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Fs.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Tt(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Tt(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Fs.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Fs.s(e,t)},S:function(e,t){return Fs.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return mN(r);case"XXXX":case"XX":return tu(r);case"XXXXX":case"XXX":default:return tu(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return mN(r);case"xxxx":case"xx":return tu(r);case"xxxxx":case"xxx":default:return tu(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+pN(r,":");case"OOOO":default:return"GMT"+tu(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+pN(r,":");case"zzzz":default:return"GMT"+tu(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return Tt(r,t.length)},T:function(e,t,n){return Tt(+e,t.length)}};function pN(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),o=r%60;return o===0?n+String(i):n+String(i)+t+Tt(o,2)}function mN(e,t){return e%60===0?(e>0?"-":"+")+Tt(Math.abs(e)/60,2):tu(e,t)}function tu(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Tt(Math.trunc(r/60),2),o=Tt(r%60,2);return n+i+t+o}const vN=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},u7=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Jae=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return vN(e,t);let o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",vN(r,t)).replace("{{time}}",u7(i,t))},ese={p:u7,P:Jae},tse=/^D+$/,nse=/^Y+$/,rse=["D","DD","YY","YYYY"];function ise(e){return tse.test(e)}function ose(e){return nse.test(e)}function ase(e,t,n){const r=sse(e,t,n);if(console.warn(r),rse.includes(e))throw new RangeError(r)}function sse(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const lse=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,use=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,cse=/^'([^]*?)'?$/,fse=/''/g,dse=/[a-zA-Z]/;function ay(e,t,n){var h,p,v,b;const r=im(),i=r.locale??s7,o=r.firstWeekContainsDate??((p=(h=r.locale)==null?void 0:h.options)==null?void 0:p.firstWeekContainsDate)??1,a=r.weekStartsOn??((b=(v=r.locale)==null?void 0:v.options)==null?void 0:b.weekStartsOn)??0,s=jt(e,n==null?void 0:n.in);if(!aae(s))throw new RangeError("Invalid time value");let c=t.match(use).map(x=>{const _=x[0];if(_==="p"||_==="P"){const w=ese[_];return w(x,i.formatLong)}return x}).join("").match(lse).map(x=>{if(x==="''")return{isToken:!1,value:"'"};const _=x[0];if(_==="'")return{isToken:!1,value:hse(x)};if(hN[_])return{isToken:!0,value:x};if(_.match(dse))throw new RangeError("Format string contains an unescaped latin alphabet character `"+_+"`");return{isToken:!1,value:x}});i.localize.preprocessor&&(c=i.localize.preprocessor(s,c));const u={firstWeekContainsDate:o,weekStartsOn:a,locale:i};return c.map(x=>{if(!x.isToken)return x.value;const _=x.value;(ose(_)||ise(_))&&ase(_,t,String(e));const w=hN[_[0]];return w(s,_,i.localize,u)}).join("")}function hse(e){const t=e.match(cse);return t?t[1].replace(fse,"'"):e}function pse(e,t,n){const r=im(),i=(n==null?void 0:n.locale)??r.locale??s7,o=2520,a=yg(e,t);if(isNaN(a))throw new RangeError("Invalid time value");const s=Object.assign({},n,{addSuffix:n==null?void 0:n.addSuffix,comparison:a}),[c,u]=Mu(n==null?void 0:n.in,...a>0?[t,e]:[e,t]),h=hae(u,c),p=(pf(u)-pf(c))/1e3,v=Math.round((h-p)/60);let b;if(v<2)return n!=null&&n.includeSeconds?h<5?i.formatDistance("lessThanXSeconds",5,s):h<10?i.formatDistance("lessThanXSeconds",10,s):h<20?i.formatDistance("lessThanXSeconds",20,s):h<40?i.formatDistance("halfAMinute",0,s):h<60?i.formatDistance("lessThanXMinutes",1,s):i.formatDistance("xMinutes",1,s):v===0?i.formatDistance("lessThanXMinutes",1,s):i.formatDistance("xMinutes",v,s);if(v<45)return i.formatDistance("xMinutes",v,s);if(v<90)return i.formatDistance("aboutXHours",1,s);if(v<cN){const x=Math.round(v/60);return i.formatDistance("aboutXHours",x,s)}else{if(v<o)return i.formatDistance("xDays",1,s);if(v<zv){const x=Math.round(v/cN);return i.formatDistance("xDays",x,s)}else if(v<zv*2)return b=Math.round(v/zv),i.formatDistance("aboutXMonths",b,s)}if(b=dae(u,c),b<12){const x=Math.round(v/zv);return i.formatDistance("xMonths",x,s)}else{const x=b%12,_=Math.trunc(b/12);return x<3?i.formatDistance("aboutXYears",_,s):x<9?i.formatDistance("overXYears",_,s):i.formatDistance("almostXYears",_+1,s)}}function mse(e,t){const n=jt(e,t==null?void 0:t.in);if(isNaN(+n))throw new RangeError("Invalid time value");let r="",i="";const o="-",a=":";{const s=Tt(n.getDate(),2),c=Tt(n.getMonth()+1,2);r=`${Tt(n.getFullYear(),4)}${o}${c}${o}${s}`}{const s=n.getTimezoneOffset();if(s!==0){const b=Math.abs(s),x=Tt(Math.trunc(b/60),2),_=Tt(b%60,2);i=`${s<0?"+":"-"}${x}:${_}`}else i="Z";const c=Tt(n.getHours(),2),u=Tt(n.getMinutes(),2),h=Tt(n.getSeconds(),2),p=r===""?"":"T",v=[c,u,h].join(a);r=`${r}${p}${v}${i}`}return r}function vse(e){return Math.trunc(+jt(e)/1e3)}function gse(e,t){return+jt(e)>+jt(t)}function sy(e,t){return+jt(e)<+jt(t)}function qP(e,t){return+jt(e)==+jt(t)}function yse(e,t,n){const r=+jt(e,n==null?void 0:n.in),[i,o]=[+jt(t.start,n==null?void 0:n.in),+jt(t.end,n==null?void 0:n.in)].sort((a,s)=>a-s);return r>=i&&r<=o}function ly(e,t,n){return AT(e,-t,n)}function al(e,t){const n=()=>sr(t==null?void 0:t.in,NaN),i=wse(e);let o;if(i.date){const u=Ose(i.date,2);o=Sse(u.restDateString,u.year)}if(!o||isNaN(+o))return n();const a=+o;let s=0,c;if(i.time&&(s=Pse(i.time),isNaN(s)))return n();if(i.timezone){if(c=Cse(i.timezone),isNaN(c))return n()}else{const u=new Date(a+s),h=jt(0,t==null?void 0:t.in);return h.setFullYear(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()),h.setHours(u.getUTCHours(),u.getUTCMinutes(),u.getUTCSeconds(),u.getUTCMilliseconds()),h}return jt(a+s+c,t==null?void 0:t.in)}const Vv={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},bse=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,_se=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,xse=/^([+-])(\d{2})(?::?(\d{2}))?$/;function wse(e){const t={},n=e.split(Vv.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],Vv.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Vv.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const i=Vv.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function Ose(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const i=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:o===null?i:o*100,restDateString:e.slice((r[1]||r[2]).length)}}function Sse(e,t){if(t===null)return new Date(NaN);const n=e.match(bse);if(!n)return new Date(NaN);const r=!!n[4],i=sh(n[1]),o=sh(n[2])-1,a=sh(n[3]),s=sh(n[4]),c=sh(n[5])-1;if(r)return kse(t,s,c)?Ese(t,s,c):new Date(NaN);{const u=new Date(0);return!jse(t,o,a)||!Ase(t,i)?new Date(NaN):(u.setUTCFullYear(t,o,Math.max(i,a)),u)}}function sh(e){return e?parseInt(e):1}function Pse(e){const t=e.match(_se);if(!t)return NaN;const n=I1(t[1]),r=I1(t[2]),i=I1(t[3]);return Rse(n,r,i)?n*jT+r*n7+i*1e3:NaN}function I1(e){return e&&parseFloat(e.replace(",","."))||0}function Cse(e){if(e==="Z")return 0;const t=e.match(xse);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return Nse(r,i)?n*(r*jT+i*n7):NaN}function Ese(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const i=r.getUTCDay()||7,o=(t-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+o),r}const Tse=[31,null,31,30,31,30,31,31,30,31,30,31];function c7(e){return e%400===0||e%4===0&&e%100!==0}function jse(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(Tse[t]||(c7(e)?29:28))}function Ase(e,t){return t>=1&&t<=(c7(e)?366:365)}function kse(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function Rse(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function Nse(e,t){return t>=0&&t<=59}/*!
* Font Awesome Free 6.7.1 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
* Copyright 2024 Fonticons, Inc.
*/const Mse={prefix:"fab",iconName:"apple",icon:[384,512,[],"f179","M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"]},Lse={prefix:"fab",iconName:"android",icon:[576,512,[],"f17b","M420.55,301.93a24,24,0,1,1,24-24,24,24,0,0,1-24,24m-265.1,0a24,24,0,1,1,24-24,24,24,0,0,1-24,24m273.7-144.48,47.94-83a10,10,0,1,0-17.27-10h0l-48.54,84.07a301.25,301.25,0,0,0-246.56,0L116.18,64.45a10,10,0,1,0-17.27,10h0l47.94,83C64.53,202.22,8.24,285.55,0,384H576c-8.24-98.45-64.54-181.78-146.85-226.55"]},nu={Enter:"Enter",Escape:"Escape",Tab:"Tab",Backspace:"Backspace",UpArrow:"ArrowUp",UpArrowCompat:"Up",DownArrow:"ArrowDown",DownArrowCompat:"Down",PageDown:"PageDown",PageUp:"PageUp"},kT=Symbol("Create new tag"),f7=Symbol("No options"),zc=()=>{},er=Z.createContext(void 0);function gN(e,t){return e===t?[]:e.filter(n=>!t.includes(n))}function Ise(e){return e.selectionStart===0&&e.selectionEnd===0}function Dse(e){const t=e.value.length;return e.selectionStart===t&&e.selectionEnd===t}function W0(e){return`${e}-label`}function $se(e){return`${e}-combobox`}function Fse(e){return`${e}-input`}function d7(e){return`${e}-listbox`}function h7(e,t){return`${e}-option-${Hse(t)}`}function Bse(e,t){if((e==null?void 0:e.value)===kT&&e.disabled===!1)return{value:t,label:t}}function Use(e){const t=Bse(e.activeOption,e.value)||e.activeOption||Zse(e.value,e.options);return t&&!t.disabled?t:void 0}function zse(e,t,n){const r=t-1;return e>r?n:e<n?r:e}const Vse=/%value%/;function uy(e,t){return e.replace(Vse,t)}function Wse(e,t){const n=m7(t),r=e.match(n);if(r){const i=r[0],o=r.index+i.length;return[e.slice(0,r.index),e.slice(r.index,o),e.slice(o)]}}const qse=/\s+/g;function HP(e){return`${String(e.value)}-${e.label}`}function Hse(e){return HP(e).replace(qse,"_")}function GP(e,t){return t.findIndex(({value:n})=>n===e.value)}const Gse=/[-\\^$*+?.()|[\]{}]/g;function p7(e){return e.replace(Gse,"\\$&")}function m7(e){return new RegExp(p7(e),"i")}function Kse(e){return new RegExp(`^${p7(e)}$`,"i")}function Yse(e,t){if(e){const n=m7(e);return t.filter(r=>n.test(r.label))}else return[].concat(t)}function Zse(e,t){const n=Kse(e);return t.find(r=>n.test(r.label))||null}const Xse={autoComplete:"off",autoCorrect:"off","data-form-type":"other",spellCheck:!1};function Qse({allowBackspace:e,ariaDescribedBy:t,ariaErrorMessage:n,delimiterKeys:r}){const{id:i,comboBoxRef:o,inputRef:a,isDisabled:s,isInvalid:c,managerRef:u}=F.useContext(er),h=F.useMemo(()=>{const x=B=>{const V=B.currentTarget.value;u.current.updateInputValue(V),document.activeElement===a.current&&u.current.listBoxExpand(V)},_=()=>{u.current.listBoxExpand()},w=B=>{var V;((V=o.current)==null?void 0:V.contains(B.relatedTarget))===!1&&u.current.listBoxCollapse()},O=()=>{u.current.listBoxExpand()},P=B=>{const{activeIndex:V,isExpanded:H}=u.current.state;H?(B.preventDefault(),u.current.updateActiveIndex(V+1)):(Dse(B.currentTarget)||B.altKey)&&(B.preventDefault(),u.current.listBoxExpand())},E=B=>{const{activeIndex:V,isExpanded:H}=u.current.state;H?(B.preventDefault(),u.current.updateActiveIndex(V-1)):Ise(B.currentTarget)&&(B.preventDefault(),u.current.listBoxExpand())},T=B=>{const{isExpanded:V,options:H}=u.current.state;V&&(B.preventDefault(),u.current.updateActiveIndex(H.length-1))},A=B=>{u.current.state.isExpanded&&(B.preventDefault(),u.current.updateActiveIndex(0))},j=()=>{u.current.state.isExpanded?u.current.listBoxCollapse():u.current.updateInputValue("")},N=()=>{if(e){const{value:B,selected:V}=u.current.state,H=V[V.length-1];B===""&&H&&u.current.selectTag(H)}},$=B=>{u.current.state.isExpanded&&(B.preventDefault(),u.current.selectTag())};return{onBlur:w,onChange:x,onClick:O,onFocus:_,onKeyDown:B=>{if(B.key===nu.UpArrow)return E(B);if(B.key===nu.DownArrow)return P(B);if(B.key===nu.PageUp)return A(B);if(B.key===nu.PageDown)return T(B);if(B.key===nu.Escape)return j();if(B.key===nu.Backspace)return N();if(r.includes(B.key))return $(B)}}},[e,o,r,a,u]),{activeOption:p,isExpanded:v,value:b}=u.current.state;return{...Xse,"aria-autocomplete":"list","aria-activedescendant":p?h7(i,p):void 0,"aria-controls":d7(i),"aria-describedby":t||void 0,"aria-disabled":s,"aria-errormessage":c&&n||void 0,"aria-invalid":c,"aria-labelledby":W0(i),"aria-expanded":v,id:Fse(i),onBlur:s?zc:h.onBlur,onChange:s?zc:h.onChange,onClick:s?zc:h.onClick,onFocus:s?zc:h.onFocus,onKeyDown:s?zc:h.onKeyDown,ref:a,role:"combobox",type:"text",value:b}}const Jse={position:"absolute",width:0,height:0,visibility:"hidden",overflow:"scroll",whiteSpace:"pre"},ele=["font-family","font-size","font-style","font-weight","letter-spacing","text-transform"];function tle({allowResize:e=!0,text:t}){const n=F.useRef(null),{inputRef:r}=F.useContext(er),[i,o]=F.useState(null);return F.useLayoutEffect(()=>{if(e&&r.current&&n.current&&window.getComputedStyle){const a=window.getComputedStyle(r.current);ele.forEach(s=>{const c=a.getPropertyValue(s);n.current.style.setProperty(s,c)})}},[e,r,n]),F.useLayoutEffect(()=>{var a;if(e){const s=Math.ceil(((a=n.current)==null?void 0:a.scrollWidth)??0)+2;i!==s&&o(s)}},[e,t,i]),{width:i,sizerProps:{ref:n,style:Jse}}}function nle(){const{id:e,inputRef:t,listBoxRef:n,managerRef:r}=F.useContext(er),i=r.current.state.activeIndex===-1,o=F.useCallback(a=>{var s;a.target!==t.current&&((s=t.current)==null||s.focus({preventScroll:!0}))},[t]);return F.useEffect(()=>{var a;i&&((a=n.current)==null||a.scrollTo({top:0}))},[n,i]),{"aria-labelledby":W0(e),id:d7(e),onFocus:o,ref:n,role:"listbox",tabIndex:-1}}function rle({activateFirstOption:e,allowNew:t,collapseOnSelect:n,newOptionPosition:r,newOptionText:i,noOptionsText:o,onAdd:a,onDelete:s,onCollapse:c,onExpand:u,onInput:h,onShouldCollapse:p,onShouldExpand:v,onValidate:b,selected:x,suggestions:_,suggestionsTransform:w}){const O=F.useRef(),[P,E]=F.useState(null),[T,A]=F.useState(!1),[j,N]=F.useState(""),$=F.useMemo(()=>{const re=w(j,_);return j&&(t&&re[r==="first"?"unshift":"push"]({disabled:b?!b(j):!1,label:i,value:kT}),re.length===0&&re.push({disabled:!0,label:o,value:f7})),re},[t,r,i,o,b,_,w,j]),W=P?GP(P,$):-1,B=e?Math.max(W,0):W,V=$[B],H={activeIndex:B,activeOption:V,isExpanded:T,options:$,selected:x,value:j},J={tagsAdded:O.current?gN(x,O.current.state.selected):[],tagsDeleted:O.current?gN(O.current.state.selected,x):[]},Q={listBoxCollapse(re){T&&(!p||p(re??H.value))&&(A(!1),E(null),c==null||c())},listBoxExpand(re){T||(!v||v(re??H.value))&&(A(!0),E($[B]),u==null||u())},updateActiveIndex(re){const ae=zse(re,$.length,e?0:-1);E($[ae])},updateInputValue(re){j!==re&&(N(re),h==null||h(re))},selectTag(re){if(re??(re=Use(H)),re){const ae=GP(re,H.selected);ae>-1?s(ae):a(re),n&&this.listBoxCollapse(),this.updateInputValue("")}}};return O.current={...Q,flags:J,state:H},O}function ile(e){const{id:t,inputRef:n,listBoxRef:r,managerRef:i}=F.useContext(er),o=F.useRef(null),a=i.current.state.options[e],s=e===i.current.state.activeIndex,c=a.disabled??!1,u=GP(a,i.current.state.selected)>-1,h=F.useCallback(()=>{var v;i.current.selectTag(),(v=n.current)==null||v.focus()},[n,i]),p=F.useCallback(()=>{e!==i.current.state.activeIndex&&i.current.updateActiveIndex(e)},[e,i]);return sle(o,r,s),{option:{...a,active:s,disabled:c,index:e,selected:u},optionProps:{"aria-disabled":c,"aria-posinset":e+1,"aria-selected":c?void 0:u,"aria-setsize":i.current.state.options.length,id:h7(t,a),onClick:h,onMouseDown:p,ref:o,role:"option",tabIndex:-1}}}function ole({inputRef:e,managerRef:t}){return F.useRef({input:{blur(){var r;(r=e.current)==null||r.blur()},focus(){var r;(r=e.current)==null||r.focus()},get value(){return t.current.state.value},set value(r){typeof r!="string"&&(r=String(r)),t.current.updateInputValue(r)}},listBox:{collapse(){t.current.listBoxCollapse()},expand(){t.current.listBoxExpand()},get activeOption(){return t.current.state.activeOption},get isExpanded(){return t.current.state.isExpanded}},select(r){t.current.selectTag(r)}}).current}function ale({onBlur:e,onFocus:t}){const[n,r]=F.useState(!1),{id:i,inputRef:o,rootRef:a}=F.useContext(er),s=F.useMemo(()=>({"aria-describedby":W0(i),id:i,onFocus(){r(!0),t==null||t()},onBlur(){var c;(c=a.current)!=null&&c.contains(document.activeElement)||(r(!1),e==null||e())},onClick(){var c;document.activeElement===a.current&&((c=o.current)==null||c.focus())},ref:a,tabIndex:-1}),[o,i,e,t,a]);return{isActive:n,rootProps:s}}function sle(e,t,n){F.useEffect(()=>{var r,i,o,a;if(n){const s=(r=e.current)==null?void 0:r.offsetHeight,c=(i=e.current)==null?void 0:i.offsetTop,u=(o=t.current)==null?void 0:o.offsetHeight,h=(a=t.current)==null?void 0:a.scrollTop;c<h&&t.current.scrollTo(0,c),c+s>h+u&&t.current.scrollTo(0,c+s-u)}},[n,t,e])}function lle(e,t){const{isDisabled:n,managerRef:r}=F.useContext(er),i=r.current.state.selected[e],o=F.useCallback(()=>r.current.selectTag(i),[r,i]);return{tag:i,tagProps:{"aria-disabled":n,title:uy(t,i.label),onClick:n?zc:o}}}function ule({label:e}){var t;const{rootRef:n,managerRef:r}=F.useContext(er),i=F.useRef(),o=r.current.flags.tagsDeleted[0],a=(t=i.current)==null?void 0:t.contains(document.activeElement);return F.useLayoutEffect(()=>{var s,c;if(o){const u=(s=i.current)==null?void 0:s.contains(document.activeElement);a&&!u&&((c=n.current)==null||c.focus({preventScroll:!0}))}},[a,i,n,o]),{ref:i,"aria-label":e}}const cle={position:"absolute",width:1,height:1,left:-9999,overflow:"hidden",clip:"rect(0 0 0 0)"};function fle({ariaAddedText:e,ariaDeletedText:t}){const{managerRef:n}=F.useContext(er),r=F.useRef([]);return n.current.flags.tagsAdded.forEach(i=>{r.current.push(uy(e,i.label))}),n.current.flags.tagsDeleted.forEach(i=>{r.current.push(uy(t,i.label))}),Z.createElement("div",{"aria-live":"polite","aria-relevant":"additions",role:"status",style:cle},r.current.join(`
`))}function dle({children:e}){const{classNames:t,comboBoxRef:n,id:r}=F.useContext(er);return Z.createElement("div",{className:t.comboBox,id:$se(r),ref:n},e)}const hle=({classNames:e,text:t})=>Z.createElement("mark",{className:e.highlight},t);function ple({option:e,query:t,render:n=hle}){const{classNames:r}=F.useContext(er);if(e.value===kT||e.value===f7)return Z.createElement(Z.Fragment,null,uy(e.label,t));if(t){const i=Wse(e.label,t);if(i){const o=n({text:i[1],classNames:r});return Z.createElement(Z.Fragment,null,i[0],o,i[2])}}return Z.createElement(Z.Fragment,null,e.label)}const mle=Z.memo(ple),vle=({classNames:e,inputWidth:t,...n})=>Z.createElement("input",{className:e.input,style:{width:t},...n});function gle({allowBackspace:e=!0,allowResize:t=!0,ariaDescribedBy:n,ariaErrorMessage:r,delimiterKeys:i,placeholderText:o,render:a=vle}){const{classNames:s}=F.useContext(er),{value:c,...u}=Qse({allowBackspace:e,ariaDescribedBy:n,ariaErrorMessage:r,delimiterKeys:i}),h=c.length<o.length?o:c,{width:p,sizerProps:v}=tle({allowResize:t,text:h});return Z.createElement(Z.Fragment,null,a({classNames:s,inputWidth:p,placeholder:o,value:c,...u}),t?Z.createElement("div",{...v},h):null)}const yle=({children:e,classNames:t,id:n})=>Z.createElement("div",{className:t.label,id:n},e);function ble({children:e,render:t=yle}){const{classNames:n,id:r}=F.useContext(er);return t({children:e,classNames:n,id:W0(r)})}const _le=({children:e,classNames:t,...n})=>Z.createElement("div",{className:t.listBox,...n},e);function xle({children:e,render:t=_le}){const{classNames:n,managerRef:r}=F.useContext(er),i=nle();return!r.current.state.isExpanded||Z.Children.count(e)===0?null:t({children:e,classNames:n,...i})}const wle=({children:e,classNames:t,option:n,...r})=>{const i=[t.option];return n.active&&i.push(t.optionIsActive),Z.createElement("div",{className:i.join(" "),...r},e)};function Ole({children:e,index:t,render:n=wle}){const{classNames:r}=F.useContext(er),{option:i,optionProps:o}=ile(t);return n({classNames:r,children:e,option:i,...o})}const Sle=({children:e,classNames:t,isActive:n,isDisabled:r,isInvalid:i,...o})=>{const a=[t.root];return n&&a.push(t.rootIsActive),r&&a.push(t.rootIsDisabled),i&&a.push(t.rootIsInvalid),Z.createElement("div",{className:a.join(" "),...o},e)};function Ple({children:e,onBlur:t,onFocus:n,render:r=Sle}){const{classNames:i,isDisabled:o,isInvalid:a}=F.useContext(er),{isActive:s,rootProps:c}=ale({onBlur:t,onFocus:n});return r({children:e,classNames:i,isActive:s,isDisabled:o,isInvalid:a,...c})}const Cle=({classNames:e,tag:t,...n})=>Z.createElement("button",{type:"button",className:e.tag,...n},Z.createElement("span",{className:e.tagName},t.label));function Ele({render:e=Cle,index:t,title:n}){const{classNames:r}=F.useContext(er),{tag:i,tagProps:o}=lle(t,n);return e({classNames:r,tag:i,...o})}const Tle=({children:e,classNames:t,...n})=>Z.createElement("ul",{className:t.tagList,...n,role:"list"},Z.Children.map(e,r=>{if(Z.isValidElement(r))return Z.createElement("li",{className:t.tagListItem,key:r.key,role:"listitem"},r)}));function jle({children:e,label:t,render:n=Tle}){const{classNames:r}=F.useContext(er),i=ule({label:t});return n({classNames:r,children:e,...i})}const Ale={root:"react-tags",rootIsActive:"is-active",rootIsDisabled:"is-disabled",rootIsInvalid:"is-invalid",label:"react-tags__label",tagList:"react-tags__list",tagListItem:"react-tags__list-item",tag:"react-tags__tag",tagName:"react-tags__tag-name",comboBox:"react-tags__combobox",input:"react-tags__combobox-input",listBox:"react-tags__listbox",option:"react-tags__listbox-option",optionIsActive:"is-active",highlight:"react-tags__listbox-option-highlight"},kle=[nu.Enter];function Rle({activateFirstOption:e=!1,allowBackspace:t=!0,allowNew:n=!1,allowResize:r=!0,ariaAddedText:i="Added tag %value%",ariaDescribedBy:o,ariaErrorMessage:a,ariaDeletedText:s="Removed tag %value%",classNames:c=Ale,collapseOnSelect:u=!1,deleteButtonText:h="Remove %value% from the list",delimiterKeys:p=kle,id:v="react-tags",isDisabled:b=!1,isInvalid:x=!1,labelText:_="Select tags",newOptionPosition:w="last",newOptionText:O="Add %value%",noOptionsText:P="No options found for %value%",onAdd:E,onBlur:T,onCollapse:A,onDelete:j,onExpand:N,onFocus:$,onInput:W,onShouldCollapse:B,onShouldExpand:V,onValidate:H,placeholderText:J="Add a tag",renderHighlight:Q,renderInput:re,renderLabel:ae,renderListBox:se,renderOption:oe,renderRoot:K,renderTag:G,renderTagList:z,selected:ne=[],suggestions:X=[],suggestionsTransform:le=Yse,tagListLabelText:ce="Selected tags"},de){const be=F.useRef(null),M=F.useRef(null),D=F.useRef(null),Y=F.useRef(null),ue=rle({activateFirstOption:e,allowNew:n,collapseOnSelect:u,newOptionPosition:w,newOptionText:O,noOptionsText:P,onAdd:E,onDelete:j,onCollapse:A,onExpand:N,onInput:W,onShouldCollapse:B,onShouldExpand:V,onValidate:H,selected:ne,suggestions:X,suggestionsTransform:le}),ie=ole({inputRef:M,managerRef:ue});return de&&(typeof de=="function"?de(ie):de.current=ie),Z.createElement(er.Provider,{value:{classNames:c,comboBoxRef:be,id:v,inputRef:M,isDisabled:b,isInvalid:x,listBoxRef:D,managerRef:ue,rootRef:Y}},Z.createElement(Ple,{onBlur:T,onFocus:$,render:K},Z.createElement(ble,{render:ae},_),Z.createElement(jle,{render:z,label:ce},ue.current.state.selected.map((he,Se)=>Z.createElement(Ele,{key:HP(he),index:Se,render:G,title:h}))),Z.createElement(dle,null,Z.createElement(gle,{allowBackspace:t,allowResize:r,ariaDescribedBy:o,ariaErrorMessage:a,delimiterKeys:p,placeholderText:J,render:re}),Z.createElement(xle,{render:se},ue.current.state.options.map((he,Se)=>Z.createElement(Ole,{key:HP(he),index:Se,render:oe},Z.createElement(mle,{option:he,query:ue.current.state.value,render:Q}))))),Z.createElement(fle,{ariaAddedText:i,ariaDeletedText:s})))}const Nle=Z.forwardRef(Rle);function D1(e){return e==null?"":`${e}`}function Mle(e={}){const{separator:t,decimals:n}=e;return t?n?r=>r.toFixed(n).replace(".",t):r=>`${r}`.replace(".",t):n?r=>r.toFixed(n):r=>`${r}`}function RT(e={}){const t=typeof e.quote=="string"?e.quote:'"',n=typeof e.escapedQuote=="string"?e.escapedQuote:`${t}${t}`;if(!t||t===n)return i=>i;const r=new RegExp(t,"g");return i=>(i.includes(t)&&(i=i.replace(r,n)),`${t}${i}${t}`)}function Lle(e={stringFormatter:RT()}){return t=>e.stringFormatter(t.toString().slice(7,-1))}function Ile(e={stringFormatter:RT()}){return t=>{if(t===null)return"";let n=JSON.stringify(t);return n===void 0?"":(n[0]==='"'&&(n=n.replace(/^"(.+)"$/,"$1")),e.stringFormatter(n))}}const Dle=RegExp(`[^.[\\]]+|\\[(?:([^"'][^[]*)|(["'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))`,"g");function $le(e){var t,n,r;const i=[];let o;for(;o=Dle.exec(e);)i.push((r=(t=o[3])!==null&&t!==void 0?t:(n=o[1])===null||n===void 0?void 0:n.trim())!==null&&r!==void 0?r:o[0]);return i}function yN(e,t,n){if(t in e){const o=e[t];return o===void 0?n:o}const r=Array.isArray(t)?t:$le(t);let i=e;for(const o of r)if(i=i==null?void 0:i[o],i===void 0)return n;return i}function v7(e,t){try{return Array.isArray(t)?e.push(...t):e.push(t),e}catch{return e.concat(t)}}function KP(e,t){let n=!0;return e.reduce((r,i)=>(i==null&&(i=""),n?(n=!1,`${i}`):`${r}${t}${i}`),"")}var bN;(function(e){e.header="header",e.undefined="undefined",e.boolean="boolean",e.number="number",e.bigint="bigint",e.string="string",e.symbol="symbol",e.function="function",e.object="object"})(bN||(bN={}));class Fle{constructor(t){this.opts=this.preprocessOpts(t)}preprocessOpts(t){const n=Object.assign({},t);n.fields&&(n.fields=this.preprocessFieldsInfo(n.fields,n.defaultValue)),n.transforms=n.transforms||[];const r=n.formatters&&n.formatters.string||RT(),i=Ile({stringFormatter:r}),o={header:r,undefined:D1,boolean:D1,number:Mle(),bigint:D1,string:r,symbol:Lle({stringFormatter:r}),function:i,object:i};return n.formatters=Object.assign(Object.assign({},o),n.formatters),n.delimiter=n.delimiter||",",n.eol=n.eol||`
`,n.header=n.header!==!1,n.includeEmptyRows=n.includeEmptyRows||!1,n.withBOM=n.withBOM||!1,n}preprocessFieldsInfo(t,n){return t.map(r=>{if(typeof r=="string")return{label:r,value:i=>yN(i,r,n)};if(typeof r=="object"){const i="default"in r?r.default:n;if(typeof r.value=="string"){const o=r.value;return{label:r.label||r.value,value:a=>yN(a,o,i)}}if(typeof r.value=="function"){const o=r.label||r.value.name||"",a={label:o,default:i},s=r.value;return{label:o,value(c){const u=s(c,a);return u===void 0?i:u}}}}throw new Error("Invalid field info option. "+JSON.stringify(r))})}getHeader(){return KP(this.opts.fields.map(t=>this.opts.formatters.header(t.label)),this.opts.delimiter)}preprocessRow(t){return this.opts.transforms.reduce((n,r)=>n.map(i=>r(i)).reduce(v7,[]),[t])}processRow(t){if(!t)return;const n=this.opts.fields.map(r=>this.processCell(t,r));if(!(!this.opts.includeEmptyRows&&n.every(r=>r==="")))return KP(n,this.opts.delimiter)}processCell(t,n){return this.processValue(n.value(t))}processValue(t){const n=this.opts.formatters[typeof t];return n(t)}}class g7 extends Fle{constructor(t){super(t)}parse(t){const n=this.preprocessData(t);this.opts.fields=this.opts.fields||this.preprocessFieldsInfo(n.reduce((a,s)=>(Object.keys(s).forEach(c=>{a.includes(c)||a.push(c)}),a),[]),this.opts.defaultValue);const r=this.opts.header?this.getHeader():"",i=this.processData(n);return(this.opts.withBOM?"\uFEFF":"")+r+(r&&i?this.opts.eol:"")+i}preprocessData(t){const n=Array.isArray(t)?t:[t];if(!this.opts.fields){if(t==null||n.length===0)throw new Error('Data should not be empty or the "fields" option should be included');if(typeof n[0]!="object")throw new Error('Data items should be objects or the "fields" option should be included')}return this.opts.transforms.length===0?n:n.map(r=>this.preprocessRow(r)).reduce(v7,[])}processData(t){return KP(t.map(n=>this.processRow(n)).filter(n=>n),this.opts.eol)}}var Zn;(function(e){e[e.BACKSPACE=8]="BACKSPACE",e[e.FORM_FEED=12]="FORM_FEED",e[e.NEWLINE=10]="NEWLINE",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.TAB=9]="TAB",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.NUMBER_SIGN=35]="NUMBER_SIGN",e[e.DOLLAR_SIGN=36]="DOLLAR_SIGN",e[e.PERCENT_SIGN=37]="PERCENT_SIGN",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.LEFT_PARENTHESIS=40]="LEFT_PARENTHESIS",e[e.RIGHT_PARENTHESIS=41]="RIGHT_PARENTHESIS",e[e.ASTERISK=42]="ASTERISK",e[e.PLUS_SIGN=43]="PLUS_SIGN",e[e.COMMA=44]="COMMA",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.FULL_STOP=46]="FULL_STOP",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_ZERO=48]="DIGIT_ZERO",e[e.DIGIT_ONE=49]="DIGIT_ONE",e[e.DIGIT_TWO=50]="DIGIT_TWO",e[e.DIGIT_THREE=51]="DIGIT_THREE",e[e.DIGIT_FOUR=52]="DIGIT_FOUR",e[e.DIGIT_FIVE=53]="DIGIT_FIVE",e[e.DIGIT_SIX=54]="DIGIT_SIX",e[e.DIGIT_SEVEN=55]="DIGIT_SEVEN",e[e.DIGIT_EIGHT=56]="DIGIT_EIGHT",e[e.DIGIT_NINE=57]="DIGIT_NINE",e[e.COLON=58]="COLON",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.COMMERCIAL_AT=64]="COMMERCIAL_AT",e[e.LATIN_CAPITAL_LETTER_A=65]="LATIN_CAPITAL_LETTER_A",e[e.LATIN_CAPITAL_LETTER_B=66]="LATIN_CAPITAL_LETTER_B",e[e.LATIN_CAPITAL_LETTER_C=67]="LATIN_CAPITAL_LETTER_C",e[e.LATIN_CAPITAL_LETTER_D=68]="LATIN_CAPITAL_LETTER_D",e[e.LATIN_CAPITAL_LETTER_E=69]="LATIN_CAPITAL_LETTER_E",e[e.LATIN_CAPITAL_LETTER_F=70]="LATIN_CAPITAL_LETTER_F",e[e.LATIN_CAPITAL_LETTER_G=71]="LATIN_CAPITAL_LETTER_G",e[e.LATIN_CAPITAL_LETTER_H=72]="LATIN_CAPITAL_LETTER_H",e[e.LATIN_CAPITAL_LETTER_I=73]="LATIN_CAPITAL_LETTER_I",e[e.LATIN_CAPITAL_LETTER_J=74]="LATIN_CAPITAL_LETTER_J",e[e.LATIN_CAPITAL_LETTER_K=75]="LATIN_CAPITAL_LETTER_K",e[e.LATIN_CAPITAL_LETTER_L=76]="LATIN_CAPITAL_LETTER_L",e[e.LATIN_CAPITAL_LETTER_M=77]="LATIN_CAPITAL_LETTER_M",e[e.LATIN_CAPITAL_LETTER_N=78]="LATIN_CAPITAL_LETTER_N",e[e.LATIN_CAPITAL_LETTER_O=79]="LATIN_CAPITAL_LETTER_O",e[e.LATIN_CAPITAL_LETTER_P=80]="LATIN_CAPITAL_LETTER_P",e[e.LATIN_CAPITAL_LETTER_Q=81]="LATIN_CAPITAL_LETTER_Q",e[e.LATIN_CAPITAL_LETTER_R=82]="LATIN_CAPITAL_LETTER_R",e[e.LATIN_CAPITAL_LETTER_S=83]="LATIN_CAPITAL_LETTER_S",e[e.LATIN_CAPITAL_LETTER_T=84]="LATIN_CAPITAL_LETTER_T",e[e.LATIN_CAPITAL_LETTER_U=85]="LATIN_CAPITAL_LETTER_U",e[e.LATIN_CAPITAL_LETTER_V=86]="LATIN_CAPITAL_LETTER_V",e[e.LATIN_CAPITAL_LETTER_W=87]="LATIN_CAPITAL_LETTER_W",e[e.LATIN_CAPITAL_LETTER_X=88]="LATIN_CAPITAL_LETTER_X",e[e.LATIN_CAPITAL_LETTER_Y=89]="LATIN_CAPITAL_LETTER_Y",e[e.LATIN_CAPITAL_LETTER_Z=90]="LATIN_CAPITAL_LETTER_Z",e[e.LEFT_SQUARE_BRACKET=91]="LEFT_SQUARE_BRACKET",e[e.REVERSE_SOLIDUS=92]="REVERSE_SOLIDUS",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.CIRCUMFLEX_ACCENT=94]="CIRCUMFLEX_ACCENT",e[e.LOW_LINE=95]="LOW_LINE",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_LETTER_A=97]="LATIN_SMALL_LETTER_A",e[e.LATIN_SMALL_LETTER_B=98]="LATIN_SMALL_LETTER_B",e[e.LATIN_SMALL_LETTER_C=99]="LATIN_SMALL_LETTER_C",e[e.LATIN_SMALL_LETTER_D=100]="LATIN_SMALL_LETTER_D",e[e.LATIN_SMALL_LETTER_E=101]="LATIN_SMALL_LETTER_E",e[e.LATIN_SMALL_LETTER_F=102]="LATIN_SMALL_LETTER_F",e[e.LATIN_SMALL_LETTER_G=103]="LATIN_SMALL_LETTER_G",e[e.LATIN_SMALL_LETTER_H=104]="LATIN_SMALL_LETTER_H",e[e.LATIN_SMALL_LETTER_I=105]="LATIN_SMALL_LETTER_I",e[e.LATIN_SMALL_LETTER_J=106]="LATIN_SMALL_LETTER_J",e[e.LATIN_SMALL_LETTER_K=107]="LATIN_SMALL_LETTER_K",e[e.LATIN_SMALL_LETTER_L=108]="LATIN_SMALL_LETTER_L",e[e.LATIN_SMALL_LETTER_M=109]="LATIN_SMALL_LETTER_M",e[e.LATIN_SMALL_LETTER_N=110]="LATIN_SMALL_LETTER_N",e[e.LATIN_SMALL_LETTER_O=111]="LATIN_SMALL_LETTER_O",e[e.LATIN_SMALL_LETTER_P=112]="LATIN_SMALL_LETTER_P",e[e.LATIN_SMALL_LETTER_Q=113]="LATIN_SMALL_LETTER_Q",e[e.LATIN_SMALL_LETTER_R=114]="LATIN_SMALL_LETTER_R",e[e.LATIN_SMALL_LETTER_S=115]="LATIN_SMALL_LETTER_S",e[e.LATIN_SMALL_LETTER_T=116]="LATIN_SMALL_LETTER_T",e[e.LATIN_SMALL_LETTER_U=117]="LATIN_SMALL_LETTER_U",e[e.LATIN_SMALL_LETTER_V=118]="LATIN_SMALL_LETTER_V",e[e.LATIN_SMALL_LETTER_W=119]="LATIN_SMALL_LETTER_W",e[e.LATIN_SMALL_LETTER_X=120]="LATIN_SMALL_LETTER_X",e[e.LATIN_SMALL_LETTER_Y=121]="LATIN_SMALL_LETTER_Y",e[e.LATIN_SMALL_LETTER_Z=122]="LATIN_SMALL_LETTER_Z",e[e.LEFT_CURLY_BRACKET=123]="LEFT_CURLY_BRACKET",e[e.VERTICAL_LINE=124]="VERTICAL_LINE",e[e.RIGHT_CURLY_BRACKET=125]="RIGHT_CURLY_BRACKET",e[e.TILDE=126]="TILDE"})(Zn||(Zn={}));Zn.QUOTATION_MARK+"",Zn.QUOTATION_MARK,Zn.REVERSE_SOLIDUS+"",Zn.REVERSE_SOLIDUS,Zn.SOLIDUS+"",Zn.SOLIDUS,Zn.LATIN_SMALL_LETTER_B+"",Zn.BACKSPACE,Zn.LATIN_SMALL_LETTER_F+"",Zn.FORM_FEED,Zn.LATIN_SMALL_LETTER_N+"",Zn.NEWLINE,Zn.LATIN_SMALL_LETTER_R+"",Zn.CARRIAGE_RETURN,Zn.LATIN_SMALL_LETTER_T+"",Zn.TAB;var _N;(function(e){e[e.LEFT_BRACE=0]="LEFT_BRACE",e[e.RIGHT_BRACE=1]="RIGHT_BRACE",e[e.LEFT_BRACKET=2]="LEFT_BRACKET",e[e.RIGHT_BRACKET=3]="RIGHT_BRACKET",e[e.COLON=4]="COLON",e[e.COMMA=5]="COMMA",e[e.TRUE=6]="TRUE",e[e.FALSE=7]="FALSE",e[e.NULL=8]="NULL",e[e.STRING=9]="STRING",e[e.NUMBER=10]="NUMBER",e[e.SEPARATOR=11]="SEPARATOR"})(_N||(_N={}));var xN;(function(e){e[e.START=0]="START",e[e.ENDED=1]="ENDED",e[e.ERROR=2]="ERROR",e[e.TRUE1=3]="TRUE1",e[e.TRUE2=4]="TRUE2",e[e.TRUE3=5]="TRUE3",e[e.FALSE1=6]="FALSE1",e[e.FALSE2=7]="FALSE2",e[e.FALSE3=8]="FALSE3",e[e.FALSE4=9]="FALSE4",e[e.NULL1=10]="NULL1",e[e.NULL2=11]="NULL2",e[e.NULL3=12]="NULL3",e[e.STRING_DEFAULT=13]="STRING_DEFAULT",e[e.STRING_AFTER_BACKSLASH=14]="STRING_AFTER_BACKSLASH",e[e.STRING_UNICODE_DIGIT_1=15]="STRING_UNICODE_DIGIT_1",e[e.STRING_UNICODE_DIGIT_2=16]="STRING_UNICODE_DIGIT_2",e[e.STRING_UNICODE_DIGIT_3=17]="STRING_UNICODE_DIGIT_3",e[e.STRING_UNICODE_DIGIT_4=18]="STRING_UNICODE_DIGIT_4",e[e.STRING_INCOMPLETE_CHAR=19]="STRING_INCOMPLETE_CHAR",e[e.NUMBER_AFTER_INITIAL_MINUS=20]="NUMBER_AFTER_INITIAL_MINUS",e[e.NUMBER_AFTER_INITIAL_ZERO=21]="NUMBER_AFTER_INITIAL_ZERO",e[e.NUMBER_AFTER_INITIAL_NON_ZERO=22]="NUMBER_AFTER_INITIAL_NON_ZERO",e[e.NUMBER_AFTER_FULL_STOP=23]="NUMBER_AFTER_FULL_STOP",e[e.NUMBER_AFTER_DECIMAL=24]="NUMBER_AFTER_DECIMAL",e[e.NUMBER_AFTER_E=25]="NUMBER_AFTER_E",e[e.NUMBER_AFTER_E_AND_SIGN=26]="NUMBER_AFTER_E_AND_SIGN",e[e.NUMBER_AFTER_E_AND_DIGIT=27]="NUMBER_AFTER_E_AND_DIGIT",e[e.SEPARATOR=28]="SEPARATOR",e[e.BOM_OR_START=29]="BOM_OR_START",e[e.BOM=30]="BOM"})(xN||(xN={}));var wN;(function(e){e[e.OBJECT=0]="OBJECT",e[e.ARRAY=1]="ARRAY"})(wN||(wN={}));var ON;(function(e){e[e.VALUE=0]="VALUE",e[e.KEY=1]="KEY",e[e.COLON=2]="COLON",e[e.COMMA=3]="COMMA",e[e.ENDED=4]="ENDED",e[e.ERROR=5]="ERROR",e[e.SEPARATOR=6]="SEPARATOR"})(ON||(ON={}));var $1,SN;function Xr(){if(SN)return $1;SN=1;var e=Array.isArray;return $1=e,$1}var F1,PN;function y7(){if(PN)return F1;PN=1;var e=typeof Lv=="object"&&Lv&&Lv.Object===Object&&Lv;return F1=e,F1}var B1,CN;function sa(){if(CN)return B1;CN=1;var e=y7(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return B1=n,B1}var U1,EN;function om(){if(EN)return U1;EN=1;var e=sa(),t=e.Symbol;return U1=t,U1}var z1,TN;function Ble(){if(TN)return z1;TN=1;var e=om(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;function o(a){var s=n.call(a,i),c=a[i];try{a[i]=void 0;var u=!0}catch{}var h=r.call(a);return u&&(s?a[i]=c:delete a[i]),h}return z1=o,z1}var V1,jN;function Ule(){if(jN)return V1;jN=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return V1=n,V1}var W1,AN;function es(){if(AN)return W1;AN=1;var e=om(),t=Ble(),n=Ule(),r="[object Null]",i="[object Undefined]",o=e?e.toStringTag:void 0;function a(s){return s==null?s===void 0?i:r:o&&o in Object(s)?t(s):n(s)}return W1=a,W1}var q1,kN;function ts(){if(kN)return q1;kN=1;function e(t){return t!=null&&typeof t=="object"}return q1=e,q1}var H1,RN;function Xf(){if(RN)return H1;RN=1;var e=es(),t=ts(),n="[object Symbol]";function r(i){return typeof i=="symbol"||t(i)&&e(i)==n}return H1=r,H1}var G1,NN;function NT(){if(NN)return G1;NN=1;var e=Xr(),t=Xf(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(o,a){if(e(o))return!1;var s=typeof o;return s=="number"||s=="symbol"||s=="boolean"||o==null||t(o)?!0:r.test(o)||!n.test(o)||a!=null&&o in Object(a)}return G1=i,G1}var K1,MN;function ml(){if(MN)return K1;MN=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return K1=e,K1}var Y1,LN;function MT(){if(LN)return Y1;LN=1;var e=es(),t=ml(),n="[object AsyncFunction]",r="[object Function]",i="[object GeneratorFunction]",o="[object Proxy]";function a(s){if(!t(s))return!1;var c=e(s);return c==r||c==i||c==n||c==o}return Y1=a,Y1}var Z1,IN;function zle(){if(IN)return Z1;IN=1;var e=sa(),t=e["__core-js_shared__"];return Z1=t,Z1}var X1,DN;function Vle(){if(DN)return X1;DN=1;var e=zle(),t=function(){var r=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function n(r){return!!t&&t in r}return X1=n,X1}var Q1,$N;function b7(){if($N)return Q1;$N=1;var e=Function.prototype,t=e.toString;function n(r){if(r!=null){try{return t.call(r)}catch{}try{return r+""}catch{}}return""}return Q1=n,Q1}var J1,FN;function Wle(){if(FN)return J1;FN=1;var e=MT(),t=Vle(),n=ml(),r=b7(),i=/[\\^$.*+?()[\]{}|]/g,o=/^\[object .+?Constructor\]$/,a=Function.prototype,s=Object.prototype,c=a.toString,u=s.hasOwnProperty,h=RegExp("^"+c.call(u).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function p(v){if(!n(v)||t(v))return!1;var b=e(v)?h:o;return b.test(r(v))}return J1=p,J1}var ex,BN;function qle(){if(BN)return ex;BN=1;function e(t,n){return t==null?void 0:t[n]}return ex=e,ex}var tx,UN;function Lu(){if(UN)return tx;UN=1;var e=Wle(),t=qle();function n(r,i){var o=t(r,i);return e(o)?o:void 0}return tx=n,tx}var nx,zN;function q0(){if(zN)return nx;zN=1;var e=Lu(),t=e(Object,"create");return nx=t,nx}var rx,VN;function Hle(){if(VN)return rx;VN=1;var e=q0();function t(){this.__data__=e?e(null):{},this.size=0}return rx=t,rx}var ix,WN;function Gle(){if(WN)return ix;WN=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return ix=e,ix}var ox,qN;function Kle(){if(qN)return ox;qN=1;var e=q0(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function i(o){var a=this.__data__;if(e){var s=a[o];return s===t?void 0:s}return r.call(a,o)?a[o]:void 0}return ox=i,ox}var ax,HN;function Yle(){if(HN)return ax;HN=1;var e=q0(),t=Object.prototype,n=t.hasOwnProperty;function r(i){var o=this.__data__;return e?o[i]!==void 0:n.call(o,i)}return ax=r,ax}var sx,GN;function Zle(){if(GN)return sx;GN=1;var e=q0(),t="__lodash_hash_undefined__";function n(r,i){var o=this.__data__;return this.size+=this.has(r)?0:1,o[r]=e&&i===void 0?t:i,this}return sx=n,sx}var lx,KN;function Xle(){if(KN)return lx;KN=1;var e=Hle(),t=Gle(),n=Kle(),r=Yle(),i=Zle();function o(a){var s=-1,c=a==null?0:a.length;for(this.clear();++s<c;){var u=a[s];this.set(u[0],u[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,lx=o,lx}var ux,YN;function Qle(){if(YN)return ux;YN=1;function e(){this.__data__=[],this.size=0}return ux=e,ux}var cx,ZN;function LT(){if(ZN)return cx;ZN=1;function e(t,n){return t===n||t!==t&&n!==n}return cx=e,cx}var fx,XN;function H0(){if(XN)return fx;XN=1;var e=LT();function t(n,r){for(var i=n.length;i--;)if(e(n[i][0],r))return i;return-1}return fx=t,fx}var dx,QN;function Jle(){if(QN)return dx;QN=1;var e=H0(),t=Array.prototype,n=t.splice;function r(i){var o=this.__data__,a=e(o,i);if(a<0)return!1;var s=o.length-1;return a==s?o.pop():n.call(o,a,1),--this.size,!0}return dx=r,dx}var hx,JN;function eue(){if(JN)return hx;JN=1;var e=H0();function t(n){var r=this.__data__,i=e(r,n);return i<0?void 0:r[i][1]}return hx=t,hx}var px,eM;function tue(){if(eM)return px;eM=1;var e=H0();function t(n){return e(this.__data__,n)>-1}return px=t,px}var mx,tM;function nue(){if(tM)return mx;tM=1;var e=H0();function t(n,r){var i=this.__data__,o=e(i,n);return o<0?(++this.size,i.push([n,r])):i[o][1]=r,this}return mx=t,mx}var vx,nM;function G0(){if(nM)return vx;nM=1;var e=Qle(),t=Jle(),n=eue(),r=tue(),i=nue();function o(a){var s=-1,c=a==null?0:a.length;for(this.clear();++s<c;){var u=a[s];this.set(u[0],u[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,vx=o,vx}var gx,rM;function IT(){if(rM)return gx;rM=1;var e=Lu(),t=sa(),n=e(t,"Map");return gx=n,gx}var yx,iM;function rue(){if(iM)return yx;iM=1;var e=Xle(),t=G0(),n=IT();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return yx=r,yx}var bx,oM;function iue(){if(oM)return bx;oM=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return bx=e,bx}var _x,aM;function K0(){if(aM)return _x;aM=1;var e=iue();function t(n,r){var i=n.__data__;return e(r)?i[typeof r=="string"?"string":"hash"]:i.map}return _x=t,_x}var xx,sM;function oue(){if(sM)return xx;sM=1;var e=K0();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return xx=t,xx}var wx,lM;function aue(){if(lM)return wx;lM=1;var e=K0();function t(n){return e(this,n).get(n)}return wx=t,wx}var Ox,uM;function sue(){if(uM)return Ox;uM=1;var e=K0();function t(n){return e(this,n).has(n)}return Ox=t,Ox}var Sx,cM;function lue(){if(cM)return Sx;cM=1;var e=K0();function t(n,r){var i=e(this,n),o=i.size;return i.set(n,r),this.size+=i.size==o?0:1,this}return Sx=t,Sx}var Px,fM;function DT(){if(fM)return Px;fM=1;var e=rue(),t=oue(),n=aue(),r=sue(),i=lue();function o(a){var s=-1,c=a==null?0:a.length;for(this.clear();++s<c;){var u=a[s];this.set(u[0],u[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,Px=o,Px}var Cx,dM;function _7(){if(dM)return Cx;dM=1;var e=DT(),t="Expected a function";function n(r,i){if(typeof r!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var o=function(){var a=arguments,s=i?i.apply(this,a):a[0],c=o.cache;if(c.has(s))return c.get(s);var u=r.apply(this,a);return o.cache=c.set(s,u)||c,u};return o.cache=new(n.Cache||e),o}return n.Cache=e,Cx=n,Cx}var Ex,hM;function uue(){if(hM)return Ex;hM=1;var e=_7(),t=500;function n(r){var i=e(r,function(a){return o.size===t&&o.clear(),a}),o=i.cache;return i}return Ex=n,Ex}var Tx,pM;function cue(){if(pM)return Tx;pM=1;var e=uue(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(i){var o=[];return i.charCodeAt(0)===46&&o.push(""),i.replace(t,function(a,s,c,u){o.push(c?u.replace(n,"$1"):s||a)}),o});return Tx=r,Tx}var jx,mM;function $T(){if(mM)return jx;mM=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,o=Array(i);++r<i;)o[r]=n(t[r],r,t);return o}return jx=e,jx}var Ax,vM;function fue(){if(vM)return Ax;vM=1;var e=om(),t=$T(),n=Xr(),r=Xf(),i=1/0,o=e?e.prototype:void 0,a=o?o.toString:void 0;function s(c){if(typeof c=="string")return c;if(n(c))return t(c,s)+"";if(r(c))return a?a.call(c):"";var u=c+"";return u=="0"&&1/c==-i?"-0":u}return Ax=s,Ax}var kx,gM;function x7(){if(gM)return kx;gM=1;var e=fue();function t(n){return n==null?"":e(n)}return kx=t,kx}var Rx,yM;function w7(){if(yM)return Rx;yM=1;var e=Xr(),t=NT(),n=cue(),r=x7();function i(o,a){return e(o)?o:t(o,a)?[o]:n(r(o))}return Rx=i,Rx}var Nx,bM;function Y0(){if(bM)return Nx;bM=1;var e=Xf(),t=1/0;function n(r){if(typeof r=="string"||e(r))return r;var i=r+"";return i=="0"&&1/r==-t?"-0":i}return Nx=n,Nx}var Mx,_M;function FT(){if(_M)return Mx;_M=1;var e=w7(),t=Y0();function n(r,i){i=e(i,r);for(var o=0,a=i.length;r!=null&&o<a;)r=r[t(i[o++])];return o&&o==a?r:void 0}return Mx=n,Mx}var Lx,xM;function O7(){if(xM)return Lx;xM=1;var e=FT();function t(n,r,i){var o=n==null?void 0:e(n,r);return o===void 0?i:o}return Lx=t,Lx}var due=O7();const vi=Nt(due);var Ix,wM;function hue(){if(wM)return Ix;wM=1;function e(t){return t==null}return Ix=e,Ix}var pue=hue();const ft=Nt(pue);var Dx,OM;function mue(){if(OM)return Dx;OM=1;var e=es(),t=Xr(),n=ts(),r="[object String]";function i(o){return typeof o=="string"||!t(o)&&n(o)&&e(o)==r}return Dx=i,Dx}var vue=mue();const am=Nt(vue);var gue=MT();const dt=Nt(gue);var yue=ml();const Qf=Nt(yue);var $x={exports:{}},$t={};/**
* @license React
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var SM;function bue(){if(SM)return $t;SM=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),x;x=Symbol.for("react.module.reference");function _(w){if(typeof w=="object"&&w!==null){var O=w.$$typeof;switch(O){case e:switch(w=w.type,w){case n:case i:case r:case u:case h:return w;default:switch(w=w&&w.$$typeof,w){case s:case a:case c:case v:case p:case o:return w;default:return O}}case t:return O}}}return $t.ContextConsumer=a,$t.ContextProvider=o,$t.Element=e,$t.ForwardRef=c,$t.Fragment=n,$t.Lazy=v,$t.Memo=p,$t.Portal=t,$t.Profiler=i,$t.StrictMode=r,$t.Suspense=u,$t.SuspenseList=h,$t.isAsyncMode=function(){return!1},$t.isConcurrentMode=function(){return!1},$t.isContextConsumer=function(w){return _(w)===a},$t.isContextProvider=function(w){return _(w)===o},$t.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===e},$t.isForwardRef=function(w){return _(w)===c},$t.isFragment=function(w){return _(w)===n},$t.isLazy=function(w){return _(w)===v},$t.isMemo=function(w){return _(w)===p},$t.isPortal=function(w){return _(w)===t},$t.isProfiler=function(w){return _(w)===i},$t.isStrictMode=function(w){return _(w)===r},$t.isSuspense=function(w){return _(w)===u},$t.isSuspenseList=function(w){return _(w)===h},$t.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===n||w===i||w===r||w===u||w===h||w===b||typeof w=="object"&&w!==null&&(w.$$typeof===v||w.$$typeof===p||w.$$typeof===o||w.$$typeof===a||w.$$typeof===c||w.$$typeof===x||w.getModuleId!==void 0)},$t.typeOf=_,$t}var PM;function _ue(){return PM||(PM=1,$x.exports=bue()),$x.exports}var xue=_ue(),Fx,CM;function S7(){if(CM)return Fx;CM=1;var e=es(),t=ts(),n="[object Number]";function r(i){return typeof i=="number"||t(i)&&e(i)==n}return Fx=r,Fx}var Bx,EM;function wue(){if(EM)return Bx;EM=1;var e=S7();function t(n){return e(n)&&n!=+n}return Bx=t,Bx}var Oue=wue();const Jf=Nt(Oue);var Sue=S7();const Pue=Nt(Sue);var Pr=function(t){return t===0?0:t>0?1:-1},uu=function(t){return am(t)&&t.indexOf("%")===t.length-1},Ve=function(t){return Pue(t)&&!Jf(t)},Wn=function(t){return Ve(t)||am(t)},Cue=0,vl=function(t){var n=++Cue;return"".concat(t||"").concat(n)},Cr=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(!Ve(t)&&!am(t))return r;var o;if(uu(t)){var a=t.indexOf("%");o=n*parseFloat(t.slice(0,a))/100}else o=+t;return Jf(o)&&(o=r),i&&o>n&&(o=n),o},qs=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},Eue=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},xn=function(t,n){return Ve(t)&&Ve(n)?function(r){return t+r*(n-t)}:function(){return n}};function cy(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):vi(r,t))===n})}var Tue=function(t){if(!t||!t.length)return null;for(var n=t.length,r=0,i=0,o=0,a=0,s=1/0,c=-1/0,u=0,h=0,p=0;p<n;p++)u=t[p].cx||0,h=t[p].cy||0,r+=u,i+=h,o+=u*h,a+=u*u,s=Math.min(s,u),c=Math.max(c,u);var v=n*a!==r*r?(n*o-r*i)/(n*a-r*r):0;return{xmin:s,xmax:c,a:v,b:(i-v*r)/n}};function ef(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 YP(e){"@babel/helpers - typeof";return YP=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},YP(e)}var jue=["viewBox","children"],Aue=["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"],TM=["points","pathLength"],Ux={svg:jue,polygon:TM,polyline:TM},BT=["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"],fy=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(F.isValidElement(t)&&(r=t.props),!Qf(r))return null;var i={};return Object.keys(r).forEach(function(o){BT.includes(o)&&(i[o]=n||function(a){return r[o](r,a)})}),i},kue=function(t,n,r){return function(i){return t(n,r,i),null}},sl=function(t,n,r){if(!Qf(t)||YP(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(o){var a=t[o];BT.includes(o)&&typeof a=="function"&&(i||(i={}),i[o]=kue(a,n,r))}),i},Rue=["children"],Nue=["children"];function jM(e,t){if(e==null)return{};var n=Mue(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 Mue(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 ZP(e){"@babel/helpers - typeof";return ZP=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},ZP(e)}var AM={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},Ia=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},kM=null,zx=null,UT=function e(t){if(t===kM&&Array.isArray(zx))return zx;var n=[];return F.Children.forEach(t,function(r){ft(r)||(xue.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),zx=n,kM=t,n};function Ar(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(i){return Ia(i)}):r=[Ia(t)],UT(e).forEach(function(i){var o=vi(i,"type.displayName")||vi(i,"type.name");r.indexOf(o)!==-1&&n.push(i)}),n}function hi(e,t){var n=Ar(e,t);return n&&n[0]}var RM=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,i=n.height;return!(!Ve(r)||r<=0||!Ve(i)||i<=0)},Lue=["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"],Iue=function(t){return t&&t.type&&am(t.type)&&Lue.indexOf(t.type)>=0},P7=function(t){return t&&ZP(t)==="object"&&"clipDot"in t},Due=function(t,n,r,i){var o,a=(o=Ux==null?void 0:Ux[i])!==null&&o!==void 0?o:[];return!dt(t)&&(i&&a.includes(n)||Aue.includes(n))||r&&BT.includes(n)},it=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(F.isValidElement(t)&&(i=t.props),!Qf(i))return null;var o={};return Object.keys(i).forEach(function(a){var s;Due((s=i)===null||s===void 0?void 0:s[a],a,n,r)&&(o[a]=i[a])}),o},XP=function e(t,n){if(t===n)return!0;var r=F.Children.count(t);if(r!==F.Children.count(n))return!1;if(r===0)return!0;if(r===1)return NM(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var i=0;i<r;i++){var o=t[i],a=n[i];if(Array.isArray(o)||Array.isArray(a)){if(!e(o,a))return!1}else if(!NM(o,a))return!1}return!0},NM=function(t,n){if(ft(t)&&ft(n))return!0;if(!ft(t)&&!ft(n)){var r=t.props||{},i=r.children,o=jM(r,Rue),a=n.props||{},s=a.children,c=jM(a,Nue);return i&&s?ef(o,c)&&XP(i,s):!i&&!s?ef(o,c):!1}return!1},MM=function(t,n){var r=[],i={};return UT(t).forEach(function(o,a){if(Iue(o))r.push(o);else if(o){var s=Ia(o.type),c=n[s]||{},u=c.handler,h=c.once;if(u&&(!h||!i[s])){var p=u(o,s,a);r.push(p),i[s]=!0}}}),r},$ue=function(t){var n=t&&t.type;return n&&AM[n]?AM[n]:null},Fue=function(t,n){return UT(n).indexOf(t)},Bue=["children","width","height","viewBox","className","style","title","desc"];function QP(){return QP=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},QP.apply(this,arguments)}function Uue(e,t){if(e==null)return{};var n=zue(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 zue(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 JP(e){var t=e.children,n=e.width,r=e.height,i=e.viewBox,o=e.className,a=e.style,s=e.title,c=e.desc,u=Uue(e,Bue),h=i||{width:n,height:r,x:0,y:0},p=Be("recharts-surface",o);return Z.createElement("svg",QP({},it(u,!0,"svg"),{className:p,width:n,height:r,style:a,viewBox:"".concat(h.x," ").concat(h.y," ").concat(h.width," ").concat(h.height)}),Z.createElement("title",null,s),Z.createElement("desc",null,c),t)}var Vue=["children","className"];function eC(){return eC=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},eC.apply(this,arguments)}function Wue(e,t){if(e==null)return{};var n=que(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 que(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 Pt=Z.forwardRef(function(e,t){var n=e.children,r=e.className,i=Wue(e,Vue),o=Be("recharts-layer",r);return Z.createElement("g",eC({className:o},it(i,!0),{ref:t}),n)}),wo=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]},Vx,LM;function Hue(){if(LM)return Vx;LM=1;function e(t,n,r){var i=-1,o=t.length;n<0&&(n=-n>o?0:o+n),r=r>o?o:r,r<0&&(r+=o),o=n>r?0:r-n>>>0,n>>>=0;for(var a=Array(o);++i<o;)a[i]=t[i+n];return a}return Vx=e,Vx}var Wx,IM;function Gue(){if(IM)return Wx;IM=1;var e=Hue();function t(n,r,i){var o=n.length;return i=i===void 0?o:i,!r&&i>=o?n:e(n,r,i)}return Wx=t,Wx}var qx,DM;function C7(){if(DM)return qx;DM=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i=t+n+r,o="\\ufe0e\\ufe0f",a="\\u200d",s=RegExp("["+a+e+i+o+"]");function c(u){return s.test(u)}return qx=c,qx}var Hx,$M;function Kue(){if($M)return Hx;$M=1;function e(t){return t.split("")}return Hx=e,Hx}var Gx,FM;function Yue(){if(FM)return Gx;FM=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i=t+n+r,o="\\ufe0e\\ufe0f",a="["+e+"]",s="["+i+"]",c="\\ud83c[\\udffb-\\udfff]",u="(?:"+s+"|"+c+")",h="[^"+e+"]",p="(?:\\ud83c[\\udde6-\\uddff]){2}",v="[\\ud800-\\udbff][\\udc00-\\udfff]",b="\\u200d",x=u+"?",_="["+o+"]?",w="(?:"+b+"(?:"+[h,p,v].join("|")+")"+_+x+")*",O=_+x+w,P="(?:"+[h+s+"?",s,p,v,a].join("|")+")",E=RegExp(c+"(?="+c+")|"+P+O,"g");function T(A){return A.match(E)||[]}return Gx=T,Gx}var Kx,BM;function Zue(){if(BM)return Kx;BM=1;var e=Kue(),t=C7(),n=Yue();function r(i){return t(i)?n(i):e(i)}return Kx=r,Kx}var Yx,UM;function Xue(){if(UM)return Yx;UM=1;var e=Gue(),t=C7(),n=Zue(),r=x7();function i(o){return function(a){a=r(a);var s=t(a)?n(a):void 0,c=s?s[0]:a.charAt(0),u=s?e(s,1).join(""):a.slice(1);return c[o]()+u}}return Yx=i,Yx}var Zx,zM;function Que(){if(zM)return Zx;zM=1;var e=Xue(),t=e("toUpperCase");return Zx=t,Zx}var Jue=Que();const Z0=Nt(Jue);function Xt(e){return function(){return e}}const E7=Math.cos,dy=Math.sin,To=Math.sqrt,hy=Math.PI,X0=2*hy,tC=Math.PI,nC=2*tC,ru=1e-6,ece=nC-ru;function T7(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function tce(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return T7;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 nce{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?T7:tce(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,a){this._append`C${+t},${+n},${+r},${+i},${this._x1=+o},${this._y1=+a}`}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 a=this._x1,s=this._y1,c=r-t,u=i-n,h=a-t,p=s-n,v=h*h+p*p;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(v>ru)if(!(Math.abs(p*c-u*h)>ru)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let b=r-a,x=i-s,_=c*c+u*u,w=b*b+x*x,O=Math.sqrt(_),P=Math.sqrt(v),E=o*Math.tan((tC-Math.acos((_+v-w)/(2*O*P)))/2),T=E/P,A=E/O;Math.abs(T-1)>ru&&this._append`L${t+T*h},${n+T*p}`,this._append`A${o},${o},0,0,${+(p*b>h*x)},${this._x1=t+A*c},${this._y1=n+A*u}`}}arc(t,n,r,i,o,a){if(t=+t,n=+n,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),c=r*Math.sin(i),u=t+s,h=n+c,p=1^a,v=a?i-o:o-i;this._x1===null?this._append`M${u},${h}`:(Math.abs(this._x1-u)>ru||Math.abs(this._y1-h)>ru)&&this._append`L${u},${h}`,r&&(v<0&&(v=v%nC+nC),v>ece?this._append`A${r},${r},0,1,${p},${t-s},${n-c}A${r},${r},0,1,${p},${this._x1=u},${this._y1=h}`:v>ru&&this._append`A${r},${r},0,${+(v>=tC)},${p},${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 zT(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 nce(t)}function VT(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function j7(e){this._context=e}j7.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 Q0(e){return new j7(e)}function A7(e){return e[0]}function k7(e){return e[1]}function R7(e,t){var n=Xt(!0),r=null,i=Q0,o=null,a=zT(s);e=typeof e=="function"?e:e===void 0?A7:Xt(e),t=typeof t=="function"?t:t===void 0?k7:Xt(t);function s(c){var u,h=(c=VT(c)).length,p,v=!1,b;for(r==null&&(o=i(b=a())),u=0;u<=h;++u)!(u<h&&n(p=c[u],u,c))===v&&((v=!v)?o.lineStart():o.lineEnd()),v&&o.point(+e(p,u,c),+t(p,u,c));if(b)return o=null,b+""||null}return s.x=function(c){return arguments.length?(e=typeof c=="function"?c:Xt(+c),s):e},s.y=function(c){return arguments.length?(t=typeof c=="function"?c:Xt(+c),s):t},s.defined=function(c){return arguments.length?(n=typeof c=="function"?c:Xt(!!c),s):n},s.curve=function(c){return arguments.length?(i=c,r!=null&&(o=i(r)),s):i},s.context=function(c){return arguments.length?(c==null?r=o=null:o=i(r=c),s):r},s}function Wv(e,t,n){var r=null,i=Xt(!0),o=null,a=Q0,s=null,c=zT(u);e=typeof e=="function"?e:e===void 0?A7:Xt(+e),t=typeof t=="function"?t:Xt(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?k7:Xt(+n);function u(p){var v,b,x,_=(p=VT(p)).length,w,O=!1,P,E=new Array(_),T=new Array(_);for(o==null&&(s=a(P=c())),v=0;v<=_;++v){if(!(v<_&&i(w=p[v],v,p))===O)if(O=!O)b=v,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),x=v-1;x>=b;--x)s.point(E[x],T[x]);s.lineEnd(),s.areaEnd()}O&&(E[v]=+e(w,v,p),T[v]=+t(w,v,p),s.point(r?+r(w,v,p):E[v],n?+n(w,v,p):T[v]))}if(P)return s=null,P+""||null}function h(){return R7().defined(i).curve(a).context(o)}return u.x=function(p){return arguments.length?(e=typeof p=="function"?p:Xt(+p),r=null,u):e},u.x0=function(p){return arguments.length?(e=typeof p=="function"?p:Xt(+p),u):e},u.x1=function(p){return arguments.length?(r=p==null?null:typeof p=="function"?p:Xt(+p),u):r},u.y=function(p){return arguments.length?(t=typeof p=="function"?p:Xt(+p),n=null,u):t},u.y0=function(p){return arguments.length?(t=typeof p=="function"?p:Xt(+p),u):t},u.y1=function(p){return arguments.length?(n=p==null?null:typeof p=="function"?p:Xt(+p),u):n},u.lineX0=u.lineY0=function(){return h().x(e).y(t)},u.lineY1=function(){return h().x(e).y(n)},u.lineX1=function(){return h().x(r).y(t)},u.defined=function(p){return arguments.length?(i=typeof p=="function"?p:Xt(!!p),u):i},u.curve=function(p){return arguments.length?(a=p,o!=null&&(s=a(o)),u):a},u.context=function(p){return arguments.length?(p==null?o=s=null:s=a(o=p),u):o},u}class N7{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 rce(e){return new N7(e,!0)}function ice(e){return new N7(e,!1)}const WT={draw(e,t){const n=To(t/hy);e.moveTo(n,0),e.arc(0,0,n,0,X0)}},oce={draw(e,t){const n=To(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()}},M7=To(1/3),ace=M7*2,sce={draw(e,t){const n=To(t/ace),r=n*M7;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},lce={draw(e,t){const n=To(t),r=-n/2;e.rect(r,r,n,n)}},uce=.8908130915292852,L7=dy(hy/10)/dy(7*hy/10),cce=dy(X0/10)*L7,fce=-E7(X0/10)*L7,dce={draw(e,t){const n=To(t*uce),r=cce*n,i=fce*n;e.moveTo(0,-n),e.lineTo(r,i);for(let o=1;o<5;++o){const a=X0*o/5,s=E7(a),c=dy(a);e.lineTo(c*n,-s*n),e.lineTo(s*r-c*i,c*r+s*i)}e.closePath()}},Xx=To(3),hce={draw(e,t){const n=-To(t/(Xx*3));e.moveTo(0,n*2),e.lineTo(-Xx*n,-n),e.lineTo(Xx*n,-n),e.closePath()}},Di=-.5,$i=To(3)/2,rC=1/To(12),pce=(rC/2+1)*3,mce={draw(e,t){const n=To(t/pce),r=n/2,i=n*rC,o=r,a=n*rC+n,s=-o,c=a;e.moveTo(r,i),e.lineTo(o,a),e.lineTo(s,c),e.lineTo(Di*r-$i*i,$i*r+Di*i),e.lineTo(Di*o-$i*a,$i*o+Di*a),e.lineTo(Di*s-$i*c,$i*s+Di*c),e.lineTo(Di*r+$i*i,Di*i-$i*r),e.lineTo(Di*o+$i*a,Di*a-$i*o),e.lineTo(Di*s+$i*c,Di*c-$i*s),e.closePath()}};function vce(e,t){let n=null,r=zT(i);e=typeof e=="function"?e:Xt(e||WT),t=typeof t=="function"?t:Xt(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:Xt(o),i):e},i.size=function(o){return arguments.length?(t=typeof o=="function"?o:Xt(+o),i):t},i.context=function(o){return arguments.length?(n=o??null,i):n},i}function py(){}function my(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 I7(e){this._context=e}I7.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:my(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:my(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function gce(e){return new I7(e)}function D7(e){this._context=e}D7.prototype={areaStart:py,areaEnd:py,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:my(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function yce(e){return new D7(e)}function $7(e){this._context=e}$7.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:my(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function bce(e){return new $7(e)}function F7(e){this._context=e}F7.prototype={areaStart:py,areaEnd:py,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 _ce(e){return new F7(e)}function VM(e){return e<0?-1:1}function WM(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(VM(o)+VM(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function qM(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Qx(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function vy(e){this._context=e}vy.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:Qx(this,this._t0,qM(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,Qx(this,qM(this,n=WM(this,e,t)),n);break;default:Qx(this,this._t0,n=WM(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function B7(e){this._context=new U7(e)}(B7.prototype=Object.create(vy.prototype)).point=function(e,t){vy.prototype.point.call(this,t,e)};function U7(e){this._context=e}U7.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 xce(e){return new vy(e)}function wce(e){return new B7(e)}function z7(e){this._context=e}z7.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=HM(e),i=HM(t),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[a],t[a]);(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 HM(e){var t,n=e.length-1,r,i=new Array(n),o=new Array(n),a=new Array(n);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,o[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/o[t-1],o[t]-=r,a[t]-=r*a[t-1];for(i[n-1]=a[n-1]/o[n-1],t=n-2;t>=0;--t)i[t]=(a[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 Oce(e){return new z7(e)}function J0(e,t){this._context=e,this._t=t}J0.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 Sce(e){return new J0(e,.5)}function Pce(e){return new J0(e,0)}function Cce(e){return new J0(e,1)}function vf(e,t){if((a=e.length)>1)for(var n=1,r,i,o=e[t[0]],a,s=o.length;n<a;++n)for(i=o,o=e[t[n]],r=0;r<s;++r)o[r][1]+=o[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function iC(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function Ece(e,t){return e[t]}function Tce(e){const t=[];return t.key=e,t}function jce(){var e=Xt([]),t=iC,n=vf,r=Ece;function i(o){var a=Array.from(e.apply(this,arguments),Tce),s,c=a.length,u=-1,h;for(const p of o)for(s=0,++u;s<c;++s)(a[s][u]=[0,+r(p,a[s].key,u,o)]).data=p;for(s=0,h=VT(t(a));s<c;++s)a[h[s]].index=s;return n(a,h),a}return i.keys=function(o){return arguments.length?(e=typeof o=="function"?o:Xt(Array.from(o)),i):e},i.value=function(o){return arguments.length?(r=typeof o=="function"?o:Xt(+o),i):r},i.order=function(o){return arguments.length?(t=o==null?iC:typeof o=="function"?o:Xt(Array.from(o)),i):t},i.offset=function(o){return arguments.length?(n=o??vf,i):n},i}function Ace(e,t){if((r=e.length)>0){for(var n,r,i=0,o=e[0].length,a;i<o;++i){for(a=n=0;n<r;++n)a+=e[n][i][1]||0;if(a)for(n=0;n<r;++n)e[n][i][1]/=a}vf(e,t)}}function kce(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,o=r.length;n<o;++n){for(var a=0,s=0;a<i;++a)s+=e[a][n][1]||0;r[n][1]+=r[n][0]=-s/2}vf(e,t)}}function Rce(e,t){if(!(!((a=e.length)>0)||!((o=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,o,a;r<o;++r){for(var s=0,c=0,u=0;s<a;++s){for(var h=e[t[s]],p=h[r][1]||0,v=h[r-1][1]||0,b=(p-v)/2,x=0;x<s;++x){var _=e[t[x]],w=_[r][1]||0,O=_[r-1][1]||0;b+=w-O}c+=p,u+=b*p}i[r-1][1]+=i[r-1][0]=n,c&&(n-=u/c)}i[r-1][1]+=i[r-1][0]=n,vf(e,t)}}function up(e){"@babel/helpers - typeof";return up=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},up(e)}var Nce=["type","size","sizeType"];function oC(){return oC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oC.apply(this,arguments)}function GM(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 KM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?GM(Object(n),!0).forEach(function(r){Mce(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Mce(e,t,n){return t=Lce(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lce(e){var t=Ice(e,"string");return up(t)=="symbol"?t:t+""}function Ice(e,t){if(up(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(up(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Dce(e,t){if(e==null)return{};var n=$ce(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 $ce(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 V7={symbolCircle:WT,symbolCross:oce,symbolDiamond:sce,symbolSquare:lce,symbolStar:dce,symbolTriangle:hce,symbolWye:mce},Fce=Math.PI/180,Bce=function(t){var n="symbol".concat(Z0(t));return V7[n]||WT},Uce=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*Fce;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}},zce=function(t,n){V7["symbol".concat(Z0(t))]=n},eb=function(t){var n=t.type,r=n===void 0?"circle":n,i=t.size,o=i===void 0?64:i,a=t.sizeType,s=a===void 0?"area":a,c=Dce(t,Nce),u=KM(KM({},c),{},{type:r,size:o,sizeType:s}),h=function(){var w=Bce(r),O=vce().type(w).size(Uce(o,s,r));return O()},p=u.className,v=u.cx,b=u.cy,x=it(u,!0);return v===+v&&b===+b&&o===+o?Z.createElement("path",oC({},x,{className:Be("recharts-symbols",p),transform:"translate(".concat(v,", ").concat(b,")"),d:h()})):null};eb.registerSymbol=zce;function gf(e){"@babel/helpers - typeof";return gf=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},gf(e)}function aC(){return aC=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},aC.apply(this,arguments)}function YM(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 Vce(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?YM(Object(n),!0).forEach(function(r){cp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Wce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qce(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,q7(r.key),r)}}function Hce(e,t,n){return t&&qce(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Gce(e,t,n){return t=gy(t),Kce(e,W7()?Reflect.construct(t,n||[],gy(e).constructor):t.apply(e,n))}function Kce(e,t){if(t&&(gf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Yce(e)}function Yce(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function W7(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(W7=function(){return!!e})()}function gy(e){return gy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},gy(e)}function Zce(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&&sC(e,t)}function sC(e,t){return sC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},sC(e,t)}function cp(e,t,n){return t=q7(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function q7(e){var t=Xce(e,"string");return gf(t)=="symbol"?t:t+""}function Xce(e,t){if(gf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(gf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Fi=32,qT=function(e){function t(){return Wce(this,t),Gce(this,t,arguments)}return Zce(t,e),Hce(t,[{key:"renderIcon",value:function(r){var i=this.props.inactiveColor,o=Fi/2,a=Fi/6,s=Fi/3,c=r.inactive?i:r.color;if(r.type==="plainline")return Z.createElement("line",{strokeWidth:4,fill:"none",stroke:c,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:o,x2:Fi,y2:o,className:"recharts-legend-icon"});if(r.type==="line")return Z.createElement("path",{strokeWidth:4,fill:"none",stroke:c,d:"M0,".concat(o,"h").concat(s,`
A`).concat(a,",").concat(a,",0,1,1,").concat(2*s,",").concat(o,`
H`).concat(Fi,"M").concat(2*s,",").concat(o,`
A`).concat(a,",").concat(a,",0,1,1,").concat(s,",").concat(o),className:"recharts-legend-icon"});if(r.type==="rect")return Z.createElement("path",{stroke:"none",fill:c,d:"M0,".concat(Fi/8,"h").concat(Fi,"v").concat(Fi*3/4,"h").concat(-Fi,"z"),className:"recharts-legend-icon"});if(Z.isValidElement(r.legendIcon)){var u=Vce({},r);return delete u.legendIcon,Z.cloneElement(r.legendIcon,u)}return Z.createElement(eb,{fill:c,cx:o,cy:o,size:Fi,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,i=this.props,o=i.payload,a=i.iconSize,s=i.layout,c=i.formatter,u=i.inactiveColor,h={x:0,y:0,width:Fi,height:Fi},p={display:s==="horizontal"?"inline-block":"block",marginRight:10},v={display:"inline-block",verticalAlign:"middle",marginRight:4};return o.map(function(b,x){var _=b.formatter||c,w=Be(cp(cp({"recharts-legend-item":!0},"legend-item-".concat(x),!0),"inactive",b.inactive));if(b.type==="none")return null;var O=dt(b.value)?null:b.value;wo(!dt(b.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 P=b.inactive?u:b.color;return Z.createElement("li",aC({className:w,style:p,key:"legend-item-".concat(x)},sl(r.props,b,x)),Z.createElement(JP,{width:a,height:a,viewBox:h,style:v},r.renderIcon(b)),Z.createElement("span",{className:"recharts-legend-item-text",style:{color:P}},_?_(O,b,x):O))})}},{key:"render",value:function(){var r=this.props,i=r.payload,o=r.layout,a=r.align;if(!i||!i.length)return null;var s={padding:0,margin:0,textAlign:o==="horizontal"?a:"left"};return Z.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])}(F.PureComponent);cp(qT,"displayName","Legend");cp(qT,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Jx,ZM;function Qce(){if(ZM)return Jx;ZM=1;var e=G0();function t(){this.__data__=new e,this.size=0}return Jx=t,Jx}var ew,XM;function Jce(){if(XM)return ew;XM=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return ew=e,ew}var tw,QM;function efe(){if(QM)return tw;QM=1;function e(t){return this.__data__.get(t)}return tw=e,tw}var nw,JM;function tfe(){if(JM)return nw;JM=1;function e(t){return this.__data__.has(t)}return nw=e,nw}var rw,eL;function nfe(){if(eL)return rw;eL=1;var e=G0(),t=IT(),n=DT(),r=200;function i(o,a){var s=this.__data__;if(s instanceof e){var c=s.__data__;if(!t||c.length<r-1)return c.push([o,a]),this.size=++s.size,this;s=this.__data__=new n(c)}return s.set(o,a),this.size=s.size,this}return rw=i,rw}var iw,tL;function H7(){if(tL)return iw;tL=1;var e=G0(),t=Qce(),n=Jce(),r=efe(),i=tfe(),o=nfe();function a(s){var c=this.__data__=new e(s);this.size=c.size}return a.prototype.clear=t,a.prototype.delete=n,a.prototype.get=r,a.prototype.has=i,a.prototype.set=o,iw=a,iw}var ow,nL;function rfe(){if(nL)return ow;nL=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return ow=t,ow}var aw,rL;function ife(){if(rL)return aw;rL=1;function e(t){return this.__data__.has(t)}return aw=e,aw}var sw,iL;function G7(){if(iL)return sw;iL=1;var e=DT(),t=rfe(),n=ife();function r(i){var o=-1,a=i==null?0:i.length;for(this.__data__=new e;++o<a;)this.add(i[o])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,sw=r,sw}var lw,oL;function K7(){if(oL)return lw;oL=1;function e(t,n){for(var r=-1,i=t==null?0:t.length;++r<i;)if(n(t[r],r,t))return!0;return!1}return lw=e,lw}var uw,aL;function Y7(){if(aL)return uw;aL=1;function e(t,n){return t.has(n)}return uw=e,uw}var cw,sL;function Z7(){if(sL)return cw;sL=1;var e=G7(),t=K7(),n=Y7(),r=1,i=2;function o(a,s,c,u,h,p){var v=c&r,b=a.length,x=s.length;if(b!=x&&!(v&&x>b))return!1;var _=p.get(a),w=p.get(s);if(_&&w)return _==s&&w==a;var O=-1,P=!0,E=c&i?new e:void 0;for(p.set(a,s),p.set(s,a);++O<b;){var T=a[O],A=s[O];if(u)var j=v?u(A,T,O,s,a,p):u(T,A,O,a,s,p);if(j!==void 0){if(j)continue;P=!1;break}if(E){if(!t(s,function(N,$){if(!n(E,$)&&(T===N||h(T,N,c,u,p)))return E.push($)})){P=!1;break}}else if(!(T===A||h(T,A,c,u,p))){P=!1;break}}return p.delete(a),p.delete(s),P}return cw=o,cw}var fw,lL;function ofe(){if(lL)return fw;lL=1;var e=sa(),t=e.Uint8Array;return fw=t,fw}var dw,uL;function afe(){if(uL)return dw;uL=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i,o){r[++n]=[o,i]}),r}return dw=e,dw}var hw,cL;function HT(){if(cL)return hw;cL=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i){r[++n]=i}),r}return hw=e,hw}var pw,fL;function sfe(){if(fL)return pw;fL=1;var e=om(),t=ofe(),n=LT(),r=Z7(),i=afe(),o=HT(),a=1,s=2,c="[object Boolean]",u="[object Date]",h="[object Error]",p="[object Map]",v="[object Number]",b="[object RegExp]",x="[object Set]",_="[object String]",w="[object Symbol]",O="[object ArrayBuffer]",P="[object DataView]",E=e?e.prototype:void 0,T=E?E.valueOf:void 0;function A(j,N,$,W,B,V,H){switch($){case P:if(j.byteLength!=N.byteLength||j.byteOffset!=N.byteOffset)return!1;j=j.buffer,N=N.buffer;case O:return!(j.byteLength!=N.byteLength||!V(new t(j),new t(N)));case c:case u:case v:return n(+j,+N);case h:return j.name==N.name&&j.message==N.message;case b:case _:return j==N+"";case p:var J=i;case x:var Q=W&a;if(J||(J=o),j.size!=N.size&&!Q)return!1;var re=H.get(j);if(re)return re==N;W|=s,H.set(j,N);var ae=r(J(j),J(N),W,B,V,H);return H.delete(j),ae;case w:if(T)return T.call(j)==T.call(N)}return!1}return pw=A,pw}var mw,dL;function X7(){if(dL)return mw;dL=1;function e(t,n){for(var r=-1,i=n.length,o=t.length;++r<i;)t[o+r]=n[r];return t}return mw=e,mw}var vw,hL;function lfe(){if(hL)return vw;hL=1;var e=X7(),t=Xr();function n(r,i,o){var a=i(r);return t(r)?a:e(a,o(r))}return vw=n,vw}var gw,pL;function ufe(){if(pL)return gw;pL=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,o=0,a=[];++r<i;){var s=t[r];n(s,r,t)&&(a[o++]=s)}return a}return gw=e,gw}var yw,mL;function cfe(){if(mL)return yw;mL=1;function e(){return[]}return yw=e,yw}var bw,vL;function ffe(){if(vL)return bw;vL=1;var e=ufe(),t=cfe(),n=Object.prototype,r=n.propertyIsEnumerable,i=Object.getOwnPropertySymbols,o=i?function(a){return a==null?[]:(a=Object(a),e(i(a),function(s){return r.call(a,s)}))}:t;return bw=o,bw}var _w,gL;function dfe(){if(gL)return _w;gL=1;function e(t,n){for(var r=-1,i=Array(t);++r<t;)i[r]=n(r);return i}return _w=e,_w}var xw,yL;function hfe(){if(yL)return xw;yL=1;var e=es(),t=ts(),n="[object Arguments]";function r(i){return t(i)&&e(i)==n}return xw=r,xw}var ww,bL;function GT(){if(bL)return ww;bL=1;var e=hfe(),t=ts(),n=Object.prototype,r=n.hasOwnProperty,i=n.propertyIsEnumerable,o=e(function(){return arguments}())?e:function(a){return t(a)&&r.call(a,"callee")&&!i.call(a,"callee")};return ww=o,ww}var Oh={exports:{}},Ow,_L;function pfe(){if(_L)return Ow;_L=1;function e(){return!1}return Ow=e,Ow}Oh.exports;var xL;function Q7(){return xL||(xL=1,function(e,t){var n=sa(),r=pfe(),i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a?n.Buffer:void 0,c=s?s.isBuffer:void 0,u=c||r;e.exports=u}(Oh,Oh.exports)),Oh.exports}var Sw,wL;function KT(){if(wL)return Sw;wL=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(r,i){var o=typeof r;return i=i??e,!!i&&(o=="number"||o!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<i}return Sw=n,Sw}var Pw,OL;function YT(){if(OL)return Pw;OL=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return Pw=t,Pw}var Cw,SL;function mfe(){if(SL)return Cw;SL=1;var e=es(),t=YT(),n=ts(),r="[object Arguments]",i="[object Array]",o="[object Boolean]",a="[object Date]",s="[object Error]",c="[object Function]",u="[object Map]",h="[object Number]",p="[object Object]",v="[object RegExp]",b="[object Set]",x="[object String]",_="[object WeakMap]",w="[object ArrayBuffer]",O="[object DataView]",P="[object Float32Array]",E="[object Float64Array]",T="[object Int8Array]",A="[object Int16Array]",j="[object Int32Array]",N="[object Uint8Array]",$="[object Uint8ClampedArray]",W="[object Uint16Array]",B="[object Uint32Array]",V={};V[P]=V[E]=V[T]=V[A]=V[j]=V[N]=V[$]=V[W]=V[B]=!0,V[r]=V[i]=V[w]=V[o]=V[O]=V[a]=V[s]=V[c]=V[u]=V[h]=V[p]=V[v]=V[b]=V[x]=V[_]=!1;function H(J){return n(J)&&t(J.length)&&!!V[e(J)]}return Cw=H,Cw}var Ew,PL;function J7(){if(PL)return Ew;PL=1;function e(t){return function(n){return t(n)}}return Ew=e,Ew}var Sh={exports:{}};Sh.exports;var CL;function vfe(){return CL||(CL=1,function(e,t){var n=y7(),r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,a=o&&n.process,s=function(){try{var c=i&&i.require&&i.require("util").types;return c||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s}(Sh,Sh.exports)),Sh.exports}var Tw,EL;function eB(){if(EL)return Tw;EL=1;var e=mfe(),t=J7(),n=vfe(),r=n&&n.isTypedArray,i=r?t(r):e;return Tw=i,Tw}var jw,TL;function gfe(){if(TL)return jw;TL=1;var e=dfe(),t=GT(),n=Xr(),r=Q7(),i=KT(),o=eB(),a=Object.prototype,s=a.hasOwnProperty;function c(u,h){var p=n(u),v=!p&&t(u),b=!p&&!v&&r(u),x=!p&&!v&&!b&&o(u),_=p||v||b||x,w=_?e(u.length,String):[],O=w.length;for(var P in u)(h||s.call(u,P))&&!(_&&(P=="length"||b&&(P=="offset"||P=="parent")||x&&(P=="buffer"||P=="byteLength"||P=="byteOffset")||i(P,O)))&&w.push(P);return w}return jw=c,jw}var Aw,jL;function yfe(){if(jL)return Aw;jL=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,i=typeof r=="function"&&r.prototype||e;return n===i}return Aw=t,Aw}var kw,AL;function tB(){if(AL)return kw;AL=1;function e(t,n){return function(r){return t(n(r))}}return kw=e,kw}var Rw,kL;function bfe(){if(kL)return Rw;kL=1;var e=tB(),t=e(Object.keys,Object);return Rw=t,Rw}var Nw,RL;function _fe(){if(RL)return Nw;RL=1;var e=yfe(),t=bfe(),n=Object.prototype,r=n.hasOwnProperty;function i(o){if(!e(o))return t(o);var a=[];for(var s in Object(o))r.call(o,s)&&s!="constructor"&&a.push(s);return a}return Nw=i,Nw}var Mw,NL;function sm(){if(NL)return Mw;NL=1;var e=MT(),t=YT();function n(r){return r!=null&&t(r.length)&&!e(r)}return Mw=n,Mw}var Lw,ML;function tb(){if(ML)return Lw;ML=1;var e=gfe(),t=_fe(),n=sm();function r(i){return n(i)?e(i):t(i)}return Lw=r,Lw}var Iw,LL;function xfe(){if(LL)return Iw;LL=1;var e=lfe(),t=ffe(),n=tb();function r(i){return e(i,n,t)}return Iw=r,Iw}var Dw,IL;function wfe(){if(IL)return Dw;IL=1;var e=xfe(),t=1,n=Object.prototype,r=n.hasOwnProperty;function i(o,a,s,c,u,h){var p=s&t,v=e(o),b=v.length,x=e(a),_=x.length;if(b!=_&&!p)return!1;for(var w=b;w--;){var O=v[w];if(!(p?O in a:r.call(a,O)))return!1}var P=h.get(o),E=h.get(a);if(P&&E)return P==a&&E==o;var T=!0;h.set(o,a),h.set(a,o);for(var A=p;++w<b;){O=v[w];var j=o[O],N=a[O];if(c)var $=p?c(N,j,O,a,o,h):c(j,N,O,o,a,h);if(!($===void 0?j===N||u(j,N,s,c,h):$)){T=!1;break}A||(A=O=="constructor")}if(T&&!A){var W=o.constructor,B=a.constructor;W!=B&&"constructor"in o&&"constructor"in a&&!(typeof W=="function"&&W instanceof W&&typeof B=="function"&&B instanceof B)&&(T=!1)}return h.delete(o),h.delete(a),T}return Dw=i,Dw}var $w,DL;function Ofe(){if(DL)return $w;DL=1;var e=Lu(),t=sa(),n=e(t,"DataView");return $w=n,$w}var Fw,$L;function Sfe(){if($L)return Fw;$L=1;var e=Lu(),t=sa(),n=e(t,"Promise");return Fw=n,Fw}var Bw,FL;function nB(){if(FL)return Bw;FL=1;var e=Lu(),t=sa(),n=e(t,"Set");return Bw=n,Bw}var Uw,BL;function Pfe(){if(BL)return Uw;BL=1;var e=Lu(),t=sa(),n=e(t,"WeakMap");return Uw=n,Uw}var zw,UL;function Cfe(){if(UL)return zw;UL=1;var e=Ofe(),t=IT(),n=Sfe(),r=nB(),i=Pfe(),o=es(),a=b7(),s="[object Map]",c="[object Object]",u="[object Promise]",h="[object Set]",p="[object WeakMap]",v="[object DataView]",b=a(e),x=a(t),_=a(n),w=a(r),O=a(i),P=o;return(e&&P(new e(new ArrayBuffer(1)))!=v||t&&P(new t)!=s||n&&P(n.resolve())!=u||r&&P(new r)!=h||i&&P(new i)!=p)&&(P=function(E){var T=o(E),A=T==c?E.constructor:void 0,j=A?a(A):"";if(j)switch(j){case b:return v;case x:return s;case _:return u;case w:return h;case O:return p}return T}),zw=P,zw}var Vw,zL;function Efe(){if(zL)return Vw;zL=1;var e=H7(),t=Z7(),n=sfe(),r=wfe(),i=Cfe(),o=Xr(),a=Q7(),s=eB(),c=1,u="[object Arguments]",h="[object Array]",p="[object Object]",v=Object.prototype,b=v.hasOwnProperty;function x(_,w,O,P,E,T){var A=o(_),j=o(w),N=A?h:i(_),$=j?h:i(w);N=N==u?p:N,$=$==u?p:$;var W=N==p,B=$==p,V=N==$;if(V&&a(_)){if(!a(w))return!1;A=!0,W=!1}if(V&&!W)return T||(T=new e),A||s(_)?t(_,w,O,P,E,T):n(_,w,N,O,P,E,T);if(!(O&c)){var H=W&&b.call(_,"__wrapped__"),J=B&&b.call(w,"__wrapped__");if(H||J){var Q=H?_.value():_,re=J?w.value():w;return T||(T=new e),E(Q,re,O,P,T)}}return V?(T||(T=new e),r(_,w,O,P,E,T)):!1}return Vw=x,Vw}var Ww,VL;function ZT(){if(VL)return Ww;VL=1;var e=Efe(),t=ts();function n(r,i,o,a,s){return r===i?!0:r==null||i==null||!t(r)&&!t(i)?r!==r&&i!==i:e(r,i,o,a,n,s)}return Ww=n,Ww}var qw,WL;function Tfe(){if(WL)return qw;WL=1;var e=H7(),t=ZT(),n=1,r=2;function i(o,a,s,c){var u=s.length,h=u,p=!c;if(o==null)return!h;for(o=Object(o);u--;){var v=s[u];if(p&&v[2]?v[1]!==o[v[0]]:!(v[0]in o))return!1}for(;++u<h;){v=s[u];var b=v[0],x=o[b],_=v[1];if(p&&v[2]){if(x===void 0&&!(b in o))return!1}else{var w=new e;if(c)var O=c(x,_,b,o,a,w);if(!(O===void 0?t(_,x,n|r,c,w):O))return!1}}return!0}return qw=i,qw}var Hw,qL;function rB(){if(qL)return Hw;qL=1;var e=ml();function t(n){return n===n&&!e(n)}return Hw=t,Hw}var Gw,HL;function jfe(){if(HL)return Gw;HL=1;var e=rB(),t=tb();function n(r){for(var i=t(r),o=i.length;o--;){var a=i[o],s=r[a];i[o]=[a,s,e(s)]}return i}return Gw=n,Gw}var Kw,GL;function iB(){if(GL)return Kw;GL=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return Kw=e,Kw}var Yw,KL;function Afe(){if(KL)return Yw;KL=1;var e=Tfe(),t=jfe(),n=iB();function r(i){var o=t(i);return o.length==1&&o[0][2]?n(o[0][0],o[0][1]):function(a){return a===i||e(a,i,o)}}return Yw=r,Yw}var Zw,YL;function kfe(){if(YL)return Zw;YL=1;function e(t,n){return t!=null&&n in Object(t)}return Zw=e,Zw}var Xw,ZL;function Rfe(){if(ZL)return Xw;ZL=1;var e=w7(),t=GT(),n=Xr(),r=KT(),i=YT(),o=Y0();function a(s,c,u){c=e(c,s);for(var h=-1,p=c.length,v=!1;++h<p;){var b=o(c[h]);if(!(v=s!=null&&u(s,b)))break;s=s[b]}return v||++h!=p?v:(p=s==null?0:s.length,!!p&&i(p)&&r(b,p)&&(n(s)||t(s)))}return Xw=a,Xw}var Qw,XL;function Nfe(){if(XL)return Qw;XL=1;var e=kfe(),t=Rfe();function n(r,i){return r!=null&&t(r,i,e)}return Qw=n,Qw}var Jw,QL;function Mfe(){if(QL)return Jw;QL=1;var e=ZT(),t=O7(),n=Nfe(),r=NT(),i=rB(),o=iB(),a=Y0(),s=1,c=2;function u(h,p){return r(h)&&i(p)?o(a(h),p):function(v){var b=t(v,h);return b===void 0&&b===p?n(v,h):e(p,b,s|c)}}return Jw=u,Jw}var e2,JL;function ed(){if(JL)return e2;JL=1;function e(t){return t}return e2=e,e2}var t2,e4;function Lfe(){if(e4)return t2;e4=1;function e(t){return function(n){return n==null?void 0:n[t]}}return t2=e,t2}var n2,t4;function Ife(){if(t4)return n2;t4=1;var e=FT();function t(n){return function(r){return e(r,n)}}return n2=t,n2}var r2,n4;function Dfe(){if(n4)return r2;n4=1;var e=Lfe(),t=Ife(),n=NT(),r=Y0();function i(o){return n(o)?e(r(o)):t(o)}return r2=i,r2}var i2,r4;function la(){if(r4)return i2;r4=1;var e=Afe(),t=Mfe(),n=ed(),r=Xr(),i=Dfe();function o(a){return typeof a=="function"?a:a==null?n:typeof a=="object"?r(a)?t(a[0],a[1]):e(a):i(a)}return i2=o,i2}var o2,i4;function oB(){if(i4)return o2;i4=1;function e(t,n,r,i){for(var o=t.length,a=r+(i?1:-1);i?a--:++a<o;)if(n(t[a],a,t))return a;return-1}return o2=e,o2}var a2,o4;function $fe(){if(o4)return a2;o4=1;function e(t){return t!==t}return a2=e,a2}var s2,a4;function Ffe(){if(a4)return s2;a4=1;function e(t,n,r){for(var i=r-1,o=t.length;++i<o;)if(t[i]===n)return i;return-1}return s2=e,s2}var l2,s4;function Bfe(){if(s4)return l2;s4=1;var e=oB(),t=$fe(),n=Ffe();function r(i,o,a){return o===o?n(i,o,a):e(i,t,a)}return l2=r,l2}var u2,l4;function Ufe(){if(l4)return u2;l4=1;var e=Bfe();function t(n,r){var i=n==null?0:n.length;return!!i&&e(n,r,0)>-1}return u2=t,u2}var c2,u4;function zfe(){if(u4)return c2;u4=1;function e(t,n,r){for(var i=-1,o=t==null?0:t.length;++i<o;)if(r(n,t[i]))return!0;return!1}return c2=e,c2}var f2,c4;function Vfe(){if(c4)return f2;c4=1;function e(){}return f2=e,f2}var d2,f4;function Wfe(){if(f4)return d2;f4=1;var e=nB(),t=Vfe(),n=HT(),r=1/0,i=e&&1/n(new e([,-0]))[1]==r?function(o){return new e(o)}:t;return d2=i,d2}var h2,d4;function qfe(){if(d4)return h2;d4=1;var e=G7(),t=Ufe(),n=zfe(),r=Y7(),i=Wfe(),o=HT(),a=200;function s(c,u,h){var p=-1,v=t,b=c.length,x=!0,_=[],w=_;if(h)x=!1,v=n;else if(b>=a){var O=u?null:i(c);if(O)return o(O);x=!1,v=r,w=new e}else w=u?[]:_;e:for(;++p<b;){var P=c[p],E=u?u(P):P;if(P=h||P!==0?P:0,x&&E===E){for(var T=w.length;T--;)if(w[T]===E)continue e;u&&w.push(E),_.push(P)}else v(w,E,h)||(w!==_&&w.push(E),_.push(P))}return _}return h2=s,h2}var p2,h4;function Hfe(){if(h4)return p2;h4=1;var e=la(),t=qfe();function n(r,i){return r&&r.length?t(r,e(i,2)):[]}return p2=n,p2}var Gfe=Hfe();const p4=Nt(Gfe);function aB(e,t,n){return t===!0?p4(e,n):dt(t)?p4(e,t):e}function yf(e){"@babel/helpers - typeof";return yf=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},yf(e)}var Kfe=["ref"];function m4(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 Aa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?m4(Object(n),!0).forEach(function(r){nb(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Yfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v4(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,lB(r.key),r)}}function Zfe(e,t,n){return t&&v4(e.prototype,t),n&&v4(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Xfe(e,t,n){return t=yy(t),Qfe(e,sB()?Reflect.construct(t,n||[],yy(e).constructor):t.apply(e,n))}function Qfe(e,t){if(t&&(yf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Jfe(e)}function Jfe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(sB=function(){return!!e})()}function yy(e){return yy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},yy(e)}function ede(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&&lC(e,t)}function lC(e,t){return lC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},lC(e,t)}function nb(e,t,n){return t=lB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lB(e){var t=tde(e,"string");return yf(t)=="symbol"?t:t+""}function tde(e,t){if(yf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(yf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nde(e,t){if(e==null)return{};var n=rde(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 rde(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 ide(e){return e.value}function ode(e,t){if(Z.isValidElement(e))return Z.cloneElement(e,t);if(typeof e=="function")return Z.createElement(e,t);t.ref;var n=nde(t,Kfe);return Z.createElement(qT,n)}var g4=1,tf=function(e){function t(){var n;Yfe(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=Xfe(this,t,[].concat(i)),nb(n,"lastBoundingBox",{width:-1,height:-1}),n}return ede(t,e),Zfe(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)>g4||Math.abs(i.height-this.lastBoundingBox.height)>g4)&&(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?Aa({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var i=this.props,o=i.layout,a=i.align,s=i.verticalAlign,c=i.margin,u=i.chartWidth,h=i.chartHeight,p,v;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(a==="center"&&o==="vertical"){var b=this.getBBoxSnapshot();p={left:((u||0)-b.width)/2}}else p=a==="right"?{right:c&&c.right||0}:{left:c&&c.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(s==="middle"){var x=this.getBBoxSnapshot();v={top:((h||0)-x.height)/2}}else v=s==="bottom"?{bottom:c&&c.bottom||0}:{top:c&&c.top||0};return Aa(Aa({},p),v)}},{key:"render",value:function(){var r=this,i=this.props,o=i.content,a=i.width,s=i.height,c=i.wrapperStyle,u=i.payloadUniqBy,h=i.payload,p=Aa(Aa({position:"absolute",width:a||"auto",height:s||"auto"},this.getDefaultPosition(c)),c);return Z.createElement("div",{className:"recharts-legend-wrapper",style:p,ref:function(b){r.wrapperNode=b}},ode(o,Aa(Aa({},this.props),{},{payload:aB(h,u,ide)})))}}],[{key:"getWithHeight",value:function(r,i){var o=Aa(Aa({},this.defaultProps),r.props),a=o.layout;return a==="vertical"&&Ve(r.props.height)?{height:r.props.height}:a==="horizontal"?{width:r.props.width||i}:null}}])}(F.PureComponent);nb(tf,"displayName","Legend");nb(tf,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var m2,y4;function ade(){if(y4)return m2;y4=1;var e=om(),t=GT(),n=Xr(),r=e?e.isConcatSpreadable:void 0;function i(o){return n(o)||t(o)||!!(r&&o&&o[r])}return m2=i,m2}var v2,b4;function uB(){if(b4)return v2;b4=1;var e=X7(),t=ade();function n(r,i,o,a,s){var c=-1,u=r.length;for(o||(o=t),s||(s=[]);++c<u;){var h=r[c];i>0&&o(h)?i>1?n(h,i-1,o,a,s):e(s,h):a||(s[s.length]=h)}return s}return v2=n,v2}var g2,_4;function sde(){if(_4)return g2;_4=1;function e(t){return function(n,r,i){for(var o=-1,a=Object(n),s=i(n),c=s.length;c--;){var u=s[t?c:++o];if(r(a[u],u,a)===!1)break}return n}}return g2=e,g2}var y2,x4;function lde(){if(x4)return y2;x4=1;var e=sde(),t=e();return y2=t,y2}var b2,w4;function cB(){if(w4)return b2;w4=1;var e=lde(),t=tb();function n(r,i){return r&&e(r,i,t)}return b2=n,b2}var _2,O4;function ude(){if(O4)return _2;O4=1;var e=sm();function t(n,r){return function(i,o){if(i==null)return i;if(!e(i))return n(i,o);for(var a=i.length,s=r?a:-1,c=Object(i);(r?s--:++s<a)&&o(c[s],s,c)!==!1;);return i}}return _2=t,_2}var x2,S4;function XT(){if(S4)return x2;S4=1;var e=cB(),t=ude(),n=t(e);return x2=n,x2}var w2,P4;function fB(){if(P4)return w2;P4=1;var e=XT(),t=sm();function n(r,i){var o=-1,a=t(r)?Array(r.length):[];return e(r,function(s,c,u){a[++o]=i(s,c,u)}),a}return w2=n,w2}var O2,C4;function cde(){if(C4)return O2;C4=1;function e(t,n){var r=t.length;for(t.sort(n);r--;)t[r]=t[r].value;return t}return O2=e,O2}var S2,E4;function fde(){if(E4)return S2;E4=1;var e=Xf();function t(n,r){if(n!==r){var i=n!==void 0,o=n===null,a=n===n,s=e(n),c=r!==void 0,u=r===null,h=r===r,p=e(r);if(!u&&!p&&!s&&n>r||s&&c&&h&&!u&&!p||o&&c&&h||!i&&h||!a)return 1;if(!o&&!s&&!p&&n<r||p&&i&&a&&!o&&!s||u&&i&&a||!c&&a||!h)return-1}return 0}return S2=t,S2}var P2,T4;function dde(){if(T4)return P2;T4=1;var e=fde();function t(n,r,i){for(var o=-1,a=n.criteria,s=r.criteria,c=a.length,u=i.length;++o<c;){var h=e(a[o],s[o]);if(h){if(o>=u)return h;var p=i[o];return h*(p=="desc"?-1:1)}}return n.index-r.index}return P2=t,P2}var C2,j4;function hde(){if(j4)return C2;j4=1;var e=$T(),t=FT(),n=la(),r=fB(),i=cde(),o=J7(),a=dde(),s=ed(),c=Xr();function u(h,p,v){p.length?p=e(p,function(_){return c(_)?function(w){return t(w,_.length===1?_[0]:_)}:_}):p=[s];var b=-1;p=e(p,o(n));var x=r(h,function(_,w,O){var P=e(p,function(E){return E(_)});return{criteria:P,index:++b,value:_}});return i(x,function(_,w){return a(_,w,v)})}return C2=u,C2}var E2,A4;function pde(){if(A4)return E2;A4=1;function e(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}return E2=e,E2}var T2,k4;function mde(){if(k4)return T2;k4=1;var e=pde(),t=Math.max;function n(r,i,o){return i=t(i===void 0?r.length-1:i,0),function(){for(var a=arguments,s=-1,c=t(a.length-i,0),u=Array(c);++s<c;)u[s]=a[i+s];s=-1;for(var h=Array(i+1);++s<i;)h[s]=a[s];return h[i]=o(u),e(r,this,h)}}return T2=n,T2}var j2,R4;function vde(){if(R4)return j2;R4=1;function e(t){return function(){return t}}return j2=e,j2}var A2,N4;function dB(){if(N4)return A2;N4=1;var e=Lu(),t=function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch{}}();return A2=t,A2}var k2,M4;function gde(){if(M4)return k2;M4=1;var e=vde(),t=dB(),n=ed(),r=t?function(i,o){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(o),writable:!0})}:n;return k2=r,k2}var R2,L4;function yde(){if(L4)return R2;L4=1;var e=800,t=16,n=Date.now;function r(i){var o=0,a=0;return function(){var s=n(),c=t-(s-a);if(a=s,c>0){if(++o>=e)return arguments[0]}else o=0;return i.apply(void 0,arguments)}}return R2=r,R2}var N2,I4;function bde(){if(I4)return N2;I4=1;var e=gde(),t=yde(),n=t(e);return N2=n,N2}var M2,D4;function _de(){if(D4)return M2;D4=1;var e=ed(),t=mde(),n=bde();function r(i,o){return n(t(i,o,e),i+"")}return M2=r,M2}var L2,$4;function rb(){if($4)return L2;$4=1;var e=LT(),t=sm(),n=KT(),r=ml();function i(o,a,s){if(!r(s))return!1;var c=typeof a;return(c=="number"?t(s)&&n(a,s.length):c=="string"&&a in s)?e(s[a],o):!1}return L2=i,L2}var I2,F4;function xde(){if(F4)return I2;F4=1;var e=uB(),t=hde(),n=_de(),r=rb(),i=n(function(o,a){if(o==null)return[];var s=a.length;return s>1&&r(o,a[0],a[1])?a=[]:s>2&&r(a[0],a[1],a[2])&&(a=[a[0]]),t(o,e(a,1),[])});return I2=i,I2}var wde=xde();const QT=Nt(wde);function fp(e){"@babel/helpers - typeof";return fp=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},fp(e)}function uC(){return uC=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},uC.apply(this,arguments)}function Ode(e,t){return Ede(e)||Cde(e,t)||Pde(e,t)||Sde()}function Sde(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pde(e,t){if(e){if(typeof e=="string")return B4(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 B4(e,t)}}function B4(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 Cde(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],c=!0,u=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(h){u=!0,i=h}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function Ede(e){if(Array.isArray(e))return e}function U4(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 D2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?U4(Object(n),!0).forEach(function(r){Tde(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Tde(e,t,n){return t=jde(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jde(e){var t=Ade(e,"string");return fp(t)=="symbol"?t:t+""}function Ade(e,t){if(fp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(fp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kde(e){return Array.isArray(e)&&Wn(e[0])&&Wn(e[1])?e.join(" ~ "):e}var Rde=function(t){var n=t.separator,r=n===void 0?" : ":n,i=t.contentStyle,o=i===void 0?{}:i,a=t.itemStyle,s=a===void 0?{}:a,c=t.labelStyle,u=c===void 0?{}:c,h=t.payload,p=t.formatter,v=t.itemSorter,b=t.wrapperClassName,x=t.labelClassName,_=t.label,w=t.labelFormatter,O=t.accessibilityLayer,P=O===void 0?!1:O,E=function(){if(h&&h.length){var H={padding:0,margin:0},J=(v?QT(h,v):h).map(function(Q,re){if(Q.type==="none")return null;var ae=D2({display:"block",paddingTop:4,paddingBottom:4,color:Q.color||"#000"},s),se=Q.formatter||p||kde,oe=Q.value,K=Q.name,G=oe,z=K;if(se&&G!=null&&z!=null){var ne=se(oe,K,Q,re,h);if(Array.isArray(ne)){var X=Ode(ne,2);G=X[0],z=X[1]}else G=ne}return Z.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(re),style:ae},Wn(z)?Z.createElement("span",{className:"recharts-tooltip-item-name"},z):null,Wn(z)?Z.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,Z.createElement("span",{className:"recharts-tooltip-item-value"},G),Z.createElement("span",{className:"recharts-tooltip-item-unit"},Q.unit||""))});return Z.createElement("ul",{className:"recharts-tooltip-item-list",style:H},J)}return null},T=D2({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},o),A=D2({margin:0},u),j=!ft(_),N=j?_:"",$=Be("recharts-default-tooltip",b),W=Be("recharts-tooltip-label",x);j&&w&&h!==void 0&&h!==null&&(N=w(_,h));var B=P?{role:"status","aria-live":"assertive"}:{};return Z.createElement("div",uC({className:$,style:T},B),Z.createElement("p",{className:W,style:A},Z.isValidElement(N)?N:"".concat(N)),E())};function dp(e){"@babel/helpers - typeof";return dp=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},dp(e)}function qv(e,t,n){return t=Nde(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nde(e){var t=Mde(e,"string");return dp(t)=="symbol"?t:t+""}function Mde(e,t){if(dp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(dp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var lh="recharts-tooltip-wrapper",Lde={visibility:"hidden"};function Ide(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return Be(lh,qv(qv(qv(qv({},"".concat(lh,"-right"),Ve(n)&&t&&Ve(t.x)&&n>=t.x),"".concat(lh,"-left"),Ve(n)&&t&&Ve(t.x)&&n<t.x),"".concat(lh,"-bottom"),Ve(r)&&t&&Ve(t.y)&&r>=t.y),"".concat(lh,"-top"),Ve(r)&&t&&Ve(t.y)&&r<t.y))}function z4(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,i=e.offsetTopLeft,o=e.position,a=e.reverseDirection,s=e.tooltipDimension,c=e.viewBox,u=e.viewBoxDimension;if(o&&Ve(o[r]))return o[r];var h=n[r]-s-i,p=n[r]+i;if(t[r])return a[r]?h:p;if(a[r]){var v=h,b=c[r];return v<b?Math.max(p,c[r]):Math.max(h,c[r])}var x=p+s,_=c[r]+u;return x>_?Math.max(h,c[r]):Math.max(p,c[r])}function Dde(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 $de(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,i=e.position,o=e.reverseDirection,a=e.tooltipBox,s=e.useTranslate3d,c=e.viewBox,u,h,p;return a.height>0&&a.width>0&&n?(h=z4({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:i,reverseDirection:o,tooltipDimension:a.width,viewBox:c,viewBoxDimension:c.width}),p=z4({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:i,reverseDirection:o,tooltipDimension:a.height,viewBox:c,viewBoxDimension:c.height}),u=Dde({translateX:h,translateY:p,useTranslate3d:s})):u=Lde,{cssProperties:u,cssClasses:Ide({translateX:h,translateY:p,coordinate:n})}}function bf(e){"@babel/helpers - typeof";return bf=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},bf(e)}function V4(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 W4(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?V4(Object(n),!0).forEach(function(r){fC(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Fde(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bde(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,pB(r.key),r)}}function Ude(e,t,n){return t&&Bde(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function zde(e,t,n){return t=by(t),Vde(e,hB()?Reflect.construct(t,n||[],by(e).constructor):t.apply(e,n))}function Vde(e,t){if(t&&(bf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Wde(e)}function Wde(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(hB=function(){return!!e})()}function by(e){return by=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},by(e)}function qde(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&&cC(e,t)}function cC(e,t){return cC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},cC(e,t)}function fC(e,t,n){return t=pB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pB(e){var t=Hde(e,"string");return bf(t)=="symbol"?t:t+""}function Hde(e,t){if(bf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(bf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var q4=1,Gde=function(e){function t(){var n;Fde(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=zde(this,t,[].concat(i)),fC(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),fC(n,"handleKeyDown",function(a){if(a.key==="Escape"){var s,c,u,h;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(s=(c=n.props.coordinate)===null||c===void 0?void 0:c.x)!==null&&s!==void 0?s:0,y:(u=(h=n.props.coordinate)===null||h===void 0?void 0:h.y)!==null&&u!==void 0?u:0}})}}),n}return qde(t,e),Ude(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>q4||Math.abs(r.height-this.state.lastBoundingBox.height)>q4)&&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,a=i.allowEscapeViewBox,s=i.animationDuration,c=i.animationEasing,u=i.children,h=i.coordinate,p=i.hasPayload,v=i.isAnimationActive,b=i.offset,x=i.position,_=i.reverseDirection,w=i.useTranslate3d,O=i.viewBox,P=i.wrapperStyle,E=$de({allowEscapeViewBox:a,coordinate:h,offsetTopLeft:b,position:x,reverseDirection:_,tooltipBox:this.state.lastBoundingBox,useTranslate3d:w,viewBox:O}),T=E.cssClasses,A=E.cssProperties,j=W4(W4({transition:v&&o?"transform ".concat(s,"ms ").concat(c):void 0},A),{},{pointerEvents:"none",visibility:!this.state.dismissed&&o&&p?"visible":"hidden",position:"absolute",top:0,left:0},P);return Z.createElement("div",{tabIndex:-1,className:T,style:j,ref:function($){r.wrapperNode=$}},u)}}])}(F.PureComponent),Kde=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Ki={isSsr:Kde(),get:function(t){return Ki[t]},set:function(t,n){if(typeof t=="string")Ki[t]=n;else{var r=Object.keys(t);r&&r.length&&r.forEach(function(i){Ki[i]=t[i]})}}};function _f(e){"@babel/helpers - typeof";return _f=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},_f(e)}function H4(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 G4(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?H4(Object(n),!0).forEach(function(r){JT(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Yde(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zde(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,vB(r.key),r)}}function Xde(e,t,n){return t&&Zde(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qde(e,t,n){return t=_y(t),Jde(e,mB()?Reflect.construct(t,n||[],_y(e).constructor):t.apply(e,n))}function Jde(e,t){if(t&&(_f(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ehe(e)}function ehe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(mB=function(){return!!e})()}function _y(e){return _y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_y(e)}function the(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&&dC(e,t)}function dC(e,t){return dC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},dC(e,t)}function JT(e,t,n){return t=vB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vB(e){var t=nhe(e,"string");return _f(t)=="symbol"?t:t+""}function nhe(e,t){if(_f(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(_f(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rhe(e){return e.dataKey}function ihe(e,t){return Z.isValidElement(e)?Z.cloneElement(e,t):typeof e=="function"?Z.createElement(e,t):Z.createElement(Rde,t)}var zi=function(e){function t(){return Yde(this,t),Qde(this,t,arguments)}return the(t,e),Xde(t,[{key:"render",value:function(){var r=this,i=this.props,o=i.active,a=i.allowEscapeViewBox,s=i.animationDuration,c=i.animationEasing,u=i.content,h=i.coordinate,p=i.filterNull,v=i.isAnimationActive,b=i.offset,x=i.payload,_=i.payloadUniqBy,w=i.position,O=i.reverseDirection,P=i.useTranslate3d,E=i.viewBox,T=i.wrapperStyle,A=x??[];p&&A.length&&(A=aB(x.filter(function(N){return N.value!=null&&(N.hide!==!0||r.props.includeHidden)}),_,rhe));var j=A.length>0;return Z.createElement(Gde,{allowEscapeViewBox:a,animationDuration:s,animationEasing:c,isAnimationActive:v,active:o,coordinate:h,hasPayload:j,offset:b,position:w,reverseDirection:O,useTranslate3d:P,viewBox:E,wrapperStyle:T},ihe(u,G4(G4({},this.props),{},{payload:A})))}}])}(F.PureComponent);JT(zi,"displayName","Tooltip");JT(zi,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Ki.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 $2,K4;function ohe(){if(K4)return $2;K4=1;var e=sa(),t=function(){return e.Date.now()};return $2=t,$2}var F2,Y4;function ahe(){if(Y4)return F2;Y4=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return F2=t,F2}var B2,Z4;function she(){if(Z4)return B2;Z4=1;var e=ahe(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return B2=n,B2}var U2,X4;function gB(){if(X4)return U2;X4=1;var e=she(),t=ml(),n=Xf(),r=NaN,i=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,a=/^0o[0-7]+$/i,s=parseInt;function c(u){if(typeof u=="number")return u;if(n(u))return r;if(t(u)){var h=typeof u.valueOf=="function"?u.valueOf():u;u=t(h)?h+"":h}if(typeof u!="string")return u===0?u:+u;u=e(u);var p=o.test(u);return p||a.test(u)?s(u.slice(2),p?2:8):i.test(u)?r:+u}return U2=c,U2}var z2,Q4;function lhe(){if(Q4)return z2;Q4=1;var e=ml(),t=ohe(),n=gB(),r="Expected a function",i=Math.max,o=Math.min;function a(s,c,u){var h,p,v,b,x,_,w=0,O=!1,P=!1,E=!0;if(typeof s!="function")throw new TypeError(r);c=n(c)||0,e(u)&&(O=!!u.leading,P="maxWait"in u,v=P?i(n(u.maxWait)||0,c):v,E="trailing"in u?!!u.trailing:E);function T(J){var Q=h,re=p;return h=p=void 0,w=J,b=s.apply(re,Q),b}function A(J){return w=J,x=setTimeout($,c),O?T(J):b}function j(J){var Q=J-_,re=J-w,ae=c-Q;return P?o(ae,v-re):ae}function N(J){var Q=J-_,re=J-w;return _===void 0||Q>=c||Q<0||P&&re>=v}function $(){var J=t();if(N(J))return W(J);x=setTimeout($,j(J))}function W(J){return x=void 0,E&&h?T(J):(h=p=void 0,b)}function B(){x!==void 0&&clearTimeout(x),w=0,h=_=p=x=void 0}function V(){return x===void 0?b:W(t())}function H(){var J=t(),Q=N(J);if(h=arguments,p=this,_=J,Q){if(x===void 0)return A(_);if(P)return clearTimeout(x),x=setTimeout($,c),T(_)}return x===void 0&&(x=setTimeout($,c)),b}return H.cancel=B,H.flush=V,H}return z2=a,z2}var V2,J4;function uhe(){if(J4)return V2;J4=1;var e=lhe(),t=ml(),n="Expected a function";function r(i,o,a){var s=!0,c=!0;if(typeof i!="function")throw new TypeError(n);return t(a)&&(s="leading"in a?!!a.leading:s,c="trailing"in a?!!a.trailing:c),e(i,o,{leading:s,maxWait:o,trailing:c})}return V2=r,V2}var che=uhe();const yB=Nt(che);function hp(e){"@babel/helpers - typeof";return hp=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},hp(e)}function eI(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 Hv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eI(Object(n),!0).forEach(function(r){fhe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fhe(e,t,n){return t=dhe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dhe(e){var t=hhe(e,"string");return hp(t)=="symbol"?t:t+""}function hhe(e,t){if(hp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(hp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function phe(e,t){return yhe(e)||ghe(e,t)||vhe(e,t)||mhe()}function mhe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vhe(e,t){if(e){if(typeof e=="string")return tI(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 tI(e,t)}}function tI(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 ghe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],c=!0,u=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(h){u=!0,i=h}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function yhe(e){if(Array.isArray(e))return e}var ej=F.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,i=r===void 0?{width:-1,height:-1}:r,o=e.width,a=o===void 0?"100%":o,s=e.height,c=s===void 0?"100%":s,u=e.minWidth,h=u===void 0?0:u,p=e.minHeight,v=e.maxHeight,b=e.children,x=e.debounce,_=x===void 0?0:x,w=e.id,O=e.className,P=e.onResize,E=e.style,T=E===void 0?{}:E,A=F.useRef(null),j=F.useRef();j.current=P,F.useImperativeHandle(t,function(){return Object.defineProperty(A.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),A.current},configurable:!0})});var N=F.useState({containerWidth:i.width,containerHeight:i.height}),$=phe(N,2),W=$[0],B=$[1],V=F.useCallback(function(J,Q){B(function(re){var ae=Math.round(J),se=Math.round(Q);return re.containerWidth===ae&&re.containerHeight===se?re:{containerWidth:ae,containerHeight:se}})},[]);F.useEffect(function(){var J=function(K){var G,z=K[0].contentRect,ne=z.width,X=z.height;V(ne,X),(G=j.current)===null||G===void 0||G.call(j,ne,X)};_>0&&(J=yB(J,_,{trailing:!0,leading:!1}));var Q=new ResizeObserver(J),re=A.current.getBoundingClientRect(),ae=re.width,se=re.height;return V(ae,se),Q.observe(A.current),function(){Q.disconnect()}},[V,_]);var H=F.useMemo(function(){var J=W.containerWidth,Q=W.containerHeight;if(J<0||Q<0)return null;wo(uu(a)||uu(c),`The width(%s) and height(%s) are both fixed numbers,
maybe you don't need to use a ResponsiveContainer.`,a,c),wo(!n||n>0,"The aspect(%s) must be greater than zero.",n);var re=uu(a)?J:a,ae=uu(c)?Q:c;n&&n>0&&(re?ae=re/n:ae&&(re=ae*n),v&&ae>v&&(ae=v)),wo(re>0||ae>0,`The width(%s) and height(%s) of chart should be greater than 0,
please check the style of container, or the props width(%s) and height(%s),
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
height and width.`,re,ae,a,c,h,p,n);var se=!Array.isArray(b)&&Ia(b.type).endsWith("Chart");return Z.Children.map(b,function(oe){return Z.isValidElement(oe)?F.cloneElement(oe,Hv({width:re,height:ae},se?{style:Hv({height:"100%",width:"100%",maxHeight:ae,maxWidth:re},oe.props.style)}:{})):oe})},[n,b,c,v,p,h,W,a]);return Z.createElement("div",{id:w?"".concat(w):void 0,className:Be("recharts-responsive-container",O),style:Hv(Hv({},T),{},{width:a,height:c,minWidth:h,minHeight:p,maxHeight:v}),ref:A},H)}),Js=function(t){return null};Js.displayName="Cell";function pp(e){"@babel/helpers - typeof";return pp=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},pp(e)}function nI(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 hC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nI(Object(n),!0).forEach(function(r){bhe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bhe(e,t,n){return t=_he(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _he(e){var t=xhe(e,"string");return pp(t)=="symbol"?t:t+""}function xhe(e,t){if(pp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(pp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Nc={widthCache:{},cacheCount:0},whe=2e3,Ohe={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},rI="recharts_measurement_span";function She(e){var t=hC({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var Lh=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Ki.isSsr)return{width:0,height:0};var r=She(n),i=JSON.stringify({text:t,copyStyle:r});if(Nc.widthCache[i])return Nc.widthCache[i];try{var o=document.getElementById(rI);o||(o=document.createElement("span"),o.setAttribute("id",rI),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var a=hC(hC({},Ohe),r);Object.assign(o.style,a),o.textContent="".concat(t);var s=o.getBoundingClientRect(),c={width:s.width,height:s.height};return Nc.widthCache[i]=c,++Nc.cacheCount>whe&&(Nc.cacheCount=0,Nc.widthCache={}),c}catch{return{width:0,height:0}}},Phe=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function mp(e){"@babel/helpers - typeof";return mp=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},mp(e)}function xy(e,t){return jhe(e)||The(e,t)||Ehe(e,t)||Che()}function Che(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ehe(e,t){if(e){if(typeof e=="string")return iI(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 iI(e,t)}}function iI(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 The(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],c=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(h){u=!0,i=h}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function jhe(e){if(Array.isArray(e))return e}function Ahe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oI(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,Rhe(r.key),r)}}function khe(e,t,n){return t&&oI(e.prototype,t),n&&oI(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Rhe(e){var t=Nhe(e,"string");return mp(t)=="symbol"?t:t+""}function Nhe(e,t){if(mp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(mp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var aI=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,sI=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Mhe=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,Lhe=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,bB={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},Ihe=Object.keys(bB),Gc="NaN";function Dhe(e,t){return e*bB[t]}var Gv=function(){function e(t,n){Ahe(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!Mhe.test(n)&&(this.num=NaN,this.unit=""),Ihe.includes(n)&&(this.num=Dhe(t,n),this.unit="px")}return khe(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=Lhe.exec(n))!==null&&r!==void 0?r:[],o=xy(i,3),a=o[1],s=o[2];return new e(parseFloat(a),s??"")}}])}();function _B(e){if(e.includes(Gc))return Gc;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=aI.exec(t))!==null&&n!==void 0?n:[],i=xy(r,4),o=i[1],a=i[2],s=i[3],c=Gv.parse(o??""),u=Gv.parse(s??""),h=a==="*"?c.multiply(u):c.divide(u);if(h.isNaN())return Gc;t=t.replace(aI,h.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var p,v=(p=sI.exec(t))!==null&&p!==void 0?p:[],b=xy(v,4),x=b[1],_=b[2],w=b[3],O=Gv.parse(x??""),P=Gv.parse(w??""),E=_==="+"?O.add(P):O.subtract(P);if(E.isNaN())return Gc;t=t.replace(sI,E.toString())}return t}var lI=/\(([^()]*)\)/;function $he(e){for(var t=e;t.includes("(");){var n=lI.exec(t),r=xy(n,2),i=r[1];t=t.replace(lI,_B(i))}return t}function Fhe(e){var t=e.replace(/\s+/g,"");return t=$he(t),t=_B(t),t}function Bhe(e){try{return Fhe(e)}catch{return Gc}}function W2(e){var t=Bhe(e.slice(5,-1));return t===Gc?"":t}var Uhe=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],zhe=["dx","dy","angle","className","breakAll"];function pC(){return pC=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},pC.apply(this,arguments)}function uI(e,t){if(e==null)return{};var n=Vhe(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 Vhe(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 cI(e,t){return Ghe(e)||Hhe(e,t)||qhe(e,t)||Whe()}function Whe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qhe(e,t){if(e){if(typeof e=="string")return fI(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 fI(e,t)}}function fI(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 Hhe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],c=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(h){u=!0,i=h}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function Ghe(e){if(Array.isArray(e))return e}var xB=/[ \f\n\r\t\v\u2028\u2029]+/,wB=function(t){var n=t.children,r=t.breakAll,i=t.style;try{var o=[];ft(n)||(r?o=n.toString().split(""):o=n.toString().split(xB));var a=o.map(function(c){return{word:c,width:Lh(c,i).width}}),s=r?0:Lh(" ",i).width;return{wordsWithComputedWidth:a,spaceWidth:s}}catch{return null}},Khe=function(t,n,r,i,o){var a=t.maxLines,s=t.children,c=t.style,u=t.breakAll,h=Ve(a),p=s,v=function(){var re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return re.reduce(function(ae,se){var oe=se.word,K=se.width,G=ae[ae.length-1];if(G&&(i==null||o||G.width+K+r<Number(i)))G.words.push(oe),G.width+=K+r;else{var z={words:[oe],width:K};ae.push(z)}return ae},[])},b=v(n),x=function(re){return re.reduce(function(ae,se){return ae.width>se.width?ae:se})};if(!h)return b;for(var _="…",w=function(re){var ae=p.slice(0,re),se=wB({breakAll:u,style:c,children:ae+_}).wordsWithComputedWidth,oe=v(se),K=oe.length>a||x(oe).width>Number(i);return[K,oe]},O=0,P=p.length-1,E=0,T;O<=P&&E<=p.length-1;){var A=Math.floor((O+P)/2),j=A-1,N=w(j),$=cI(N,2),W=$[0],B=$[1],V=w(A),H=cI(V,1),J=H[0];if(!W&&!J&&(O=A+1),W&&J&&(P=A-1),!W&&J){T=B;break}E++}return T||b},dI=function(t){var n=ft(t)?[]:t.toString().split(xB);return[{words:n}]},Yhe=function(t){var n=t.width,r=t.scaleToFit,i=t.children,o=t.style,a=t.breakAll,s=t.maxLines;if((n||r)&&!Ki.isSsr){var c,u,h=wB({breakAll:a,children:i,style:o});if(h){var p=h.wordsWithComputedWidth,v=h.spaceWidth;c=p,u=v}else return dI(i);return Khe({breakAll:a,children:i,maxLines:s,style:o},c,u,n,r)}return dI(i)},hI="#808080",Eu=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,o=i===void 0?0:i,a=t.lineHeight,s=a===void 0?"1em":a,c=t.capHeight,u=c===void 0?"0.71em":c,h=t.scaleToFit,p=h===void 0?!1:h,v=t.textAnchor,b=v===void 0?"start":v,x=t.verticalAnchor,_=x===void 0?"end":x,w=t.fill,O=w===void 0?hI:w,P=uI(t,Uhe),E=F.useMemo(function(){return Yhe({breakAll:P.breakAll,children:P.children,maxLines:P.maxLines,scaleToFit:p,style:P.style,width:P.width})},[P.breakAll,P.children,P.maxLines,p,P.style,P.width]),T=P.dx,A=P.dy,j=P.angle,N=P.className,$=P.breakAll,W=uI(P,zhe);if(!Wn(r)||!Wn(o))return null;var B=r+(Ve(T)?T:0),V=o+(Ve(A)?A:0),H;switch(_){case"start":H=W2("calc(".concat(u,")"));break;case"middle":H=W2("calc(".concat((E.length-1)/2," * -").concat(s," + (").concat(u," / 2))"));break;default:H=W2("calc(".concat(E.length-1," * -").concat(s,")"));break}var J=[];if(p){var Q=E[0].width,re=P.width;J.push("scale(".concat((Ve(re)?re/Q:1)/Q,")"))}return j&&J.push("rotate(".concat(j,", ").concat(B,", ").concat(V,")")),J.length&&(W.transform=J.join(" ")),Z.createElement("text",pC({},it(W,!0),{x:B,y:V,className:Be("recharts-text",N),textAnchor:b,fill:O.includes("url")?hI:O}),E.map(function(ae,se){var oe=ae.words.join($?"":" ");return Z.createElement("tspan",{x:B,dy:se===0?H:s,key:"".concat(oe,"-").concat(se)},oe)}))};function el(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Zhe(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function tj(e){let t,n,r;e.length!==2?(t=el,n=(s,c)=>el(e(s),c),r=(s,c)=>e(s)-c):(t=e===el||e===Zhe?e:Xhe,n=e,r=e);function i(s,c,u=0,h=s.length){if(u<h){if(t(c,c)!==0)return h;do{const p=u+h>>>1;n(s[p],c)<0?u=p+1:h=p}while(u<h)}return u}function o(s,c,u=0,h=s.length){if(u<h){if(t(c,c)!==0)return h;do{const p=u+h>>>1;n(s[p],c)<=0?u=p+1:h=p}while(u<h)}return u}function a(s,c,u=0,h=s.length){const p=i(s,c,u,h-1);return p>u&&r(s[p-1],c)>-r(s[p],c)?p-1:p}return{left:i,center:a,right:o}}function Xhe(){return 0}function OB(e){return e===null?NaN:+e}function*Qhe(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const Jhe=tj(el),lm=Jhe.right;tj(OB).center;class pI extends Map{constructor(t,n=npe){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(mI(this,t))}has(t){return super.has(mI(this,t))}set(t,n){return super.set(epe(this,t),n)}delete(t){return super.delete(tpe(this,t))}}function mI({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function epe({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function tpe({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function npe(e){return e!==null&&typeof e=="object"?e.valueOf():e}function rpe(e=el){if(e===el)return SB;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 SB(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const ipe=Math.sqrt(50),ope=Math.sqrt(10),ape=Math.sqrt(2);function wy(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),a=o>=ipe?10:o>=ope?5:o>=ape?2:1;let s,c,u;return i<0?(u=Math.pow(10,-i)/a,s=Math.round(e*u),c=Math.round(t*u),s/u<e&&++s,c/u>t&&--c,u=-u):(u=Math.pow(10,i)*a,s=Math.round(e/u),c=Math.round(t/u),s*u<e&&++s,c*u>t&&--c),c<s&&.5<=n&&n<2?wy(e,t,n*2):[s,c,u]}function mC(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,o,a]=r?wy(t,e,n):wy(e,t,n);if(!(o>=i))return[];const s=o-i+1,c=new Array(s);if(r)if(a<0)for(let u=0;u<s;++u)c[u]=(o-u)/-a;else for(let u=0;u<s;++u)c[u]=(o-u)*a;else if(a<0)for(let u=0;u<s;++u)c[u]=(i+u)/-a;else for(let u=0;u<s;++u)c[u]=(i+u)*a;return c}function vC(e,t,n){return t=+t,e=+e,n=+n,wy(e,t,n)[2]}function gC(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?vC(t,e,n):vC(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function vI(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function gI(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function PB(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?SB:rpe(i);r>n;){if(r-n>600){const c=r-n+1,u=t-n+1,h=Math.log(c),p=.5*Math.exp(2*h/3),v=.5*Math.sqrt(h*p*(c-p)/c)*(u-c/2<0?-1:1),b=Math.max(n,Math.floor(t-u*p/c+v)),x=Math.min(r,Math.floor(t+(c-u)*p/c+v));PB(e,t,b,x,i)}const o=e[t];let a=n,s=r;for(uh(e,n,t),i(e[r],o)>0&&uh(e,n,r);a<s;){for(uh(e,a,s),++a,--s;i(e[a],o)<0;)++a;for(;i(e[s],o)>0;)--s}i(e[n],o)===0?uh(e,n,s):(++s,uh(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function uh(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function spe(e,t,n){if(e=Float64Array.from(Qhe(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return gI(e);if(t>=1)return vI(e);var r,i=(r-1)*t,o=Math.floor(i),a=vI(PB(e,o).subarray(0,o+1)),s=gI(e.subarray(o+1));return a+(s-a)*(i-o)}}function lpe(e,t,n=OB){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),a=+n(e[o],o,e),s=+n(e[o+1],o+1,e);return a+(s-a)*(i-o)}}function upe(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 eo(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function ns(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 yC=Symbol("implicit");function nj(){var e=new pI,t=[],n=[],r=yC;function i(o){let a=e.get(o);if(a===void 0){if(r!==yC)return r;e.set(o,a=t.push(o)-1)}return n[a%n.length]}return i.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new pI;for(const a of o)e.has(a)||e.set(a,t.push(a)-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 nj(t,n).unknown(r)},eo.apply(i,arguments),i}function vp(){var e=nj().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,o,a,s=!1,c=0,u=0,h=.5;delete e.unknown;function p(){var v=t().length,b=i<r,x=b?i:r,_=b?r:i;o=(_-x)/Math.max(1,v-c+u*2),s&&(o=Math.floor(o)),x+=(_-x-o*(v-c))*h,a=o*(1-c),s&&(x=Math.round(x),a=Math.round(a));var w=upe(v).map(function(O){return x+o*O});return n(b?w.reverse():w)}return e.domain=function(v){return arguments.length?(t(v),p()):t()},e.range=function(v){return arguments.length?([r,i]=v,r=+r,i=+i,p()):[r,i]},e.rangeRound=function(v){return[r,i]=v,r=+r,i=+i,s=!0,p()},e.bandwidth=function(){return a},e.step=function(){return o},e.round=function(v){return arguments.length?(s=!!v,p()):s},e.padding=function(v){return arguments.length?(c=Math.min(1,u=+v),p()):c},e.paddingInner=function(v){return arguments.length?(c=Math.min(1,v),p()):c},e.paddingOuter=function(v){return arguments.length?(u=+v,p()):u},e.align=function(v){return arguments.length?(h=Math.max(0,Math.min(1,v)),p()):h},e.copy=function(){return vp(t(),[r,i]).round(s).paddingInner(c).paddingOuter(u).align(h)},eo.apply(p(),arguments)}function CB(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return CB(t())},e}function Ih(){return CB(vp.apply(null,arguments).paddingInner(1))}function rj(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function EB(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function um(){}var gp=.7,Oy=1/gp,nf="\\s*([+-]?\\d+)\\s*",yp="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Xo="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",cpe=/^#([0-9a-f]{3,8})$/,fpe=new RegExp(`^rgb\\(${nf},${nf},${nf}\\)$`),dpe=new RegExp(`^rgb\\(${Xo},${Xo},${Xo}\\)$`),hpe=new RegExp(`^rgba\\(${nf},${nf},${nf},${yp}\\)$`),ppe=new RegExp(`^rgba\\(${Xo},${Xo},${Xo},${yp}\\)$`),mpe=new RegExp(`^hsl\\(${yp},${Xo},${Xo}\\)$`),vpe=new RegExp(`^hsla\\(${yp},${Xo},${Xo},${yp}\\)$`),yI={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};rj(um,bp,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:bI,formatHex:bI,formatHex8:gpe,formatHsl:ype,formatRgb:_I,toString:_I});function bI(){return this.rgb().formatHex()}function gpe(){return this.rgb().formatHex8()}function ype(){return TB(this).formatHsl()}function _I(){return this.rgb().formatRgb()}function bp(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=cpe.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?xI(t):n===3?new Wr(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Kv(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Kv(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=fpe.exec(e))?new Wr(t[1],t[2],t[3],1):(t=dpe.exec(e))?new Wr(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=hpe.exec(e))?Kv(t[1],t[2],t[3],t[4]):(t=ppe.exec(e))?Kv(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=mpe.exec(e))?SI(t[1],t[2]/100,t[3]/100,1):(t=vpe.exec(e))?SI(t[1],t[2]/100,t[3]/100,t[4]):yI.hasOwnProperty(e)?xI(yI[e]):e==="transparent"?new Wr(NaN,NaN,NaN,0):null}function xI(e){return new Wr(e>>16&255,e>>8&255,e&255,1)}function Kv(e,t,n,r){return r<=0&&(e=t=n=NaN),new Wr(e,t,n,r)}function bpe(e){return e instanceof um||(e=bp(e)),e?(e=e.rgb(),new Wr(e.r,e.g,e.b,e.opacity)):new Wr}function bC(e,t,n,r){return arguments.length===1?bpe(e):new Wr(e,t,n,r??1)}function Wr(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}rj(Wr,bC,EB(um,{brighter(e){return e=e==null?Oy:Math.pow(Oy,e),new Wr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?gp:Math.pow(gp,e),new Wr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Wr(gu(this.r),gu(this.g),gu(this.b),Sy(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:wI,formatHex:wI,formatHex8:_pe,formatRgb:OI,toString:OI}));function wI(){return`#${cu(this.r)}${cu(this.g)}${cu(this.b)}`}function _pe(){return`#${cu(this.r)}${cu(this.g)}${cu(this.b)}${cu((isNaN(this.opacity)?1:this.opacity)*255)}`}function OI(){const e=Sy(this.opacity);return`${e===1?"rgb(":"rgba("}${gu(this.r)}, ${gu(this.g)}, ${gu(this.b)}${e===1?")":`, ${e})`}`}function Sy(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function gu(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function cu(e){return e=gu(e),(e<16?"0":"")+e.toString(16)}function SI(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new _o(e,t,n,r)}function TB(e){if(e instanceof _o)return new _o(e.h,e.s,e.l,e.opacity);if(e instanceof um||(e=bp(e)),!e)return new _o;if(e instanceof _o)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),a=NaN,s=o-i,c=(o+i)/2;return s?(t===o?a=(n-r)/s+(n<r)*6:n===o?a=(r-t)/s+2:a=(t-n)/s+4,s/=c<.5?o+i:2-o-i,a*=60):s=c>0&&c<1?0:a,new _o(a,s,c,e.opacity)}function xpe(e,t,n,r){return arguments.length===1?TB(e):new _o(e,t,n,r??1)}function _o(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}rj(_o,xpe,EB(um,{brighter(e){return e=e==null?Oy:Math.pow(Oy,e),new _o(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?gp:Math.pow(gp,e),new _o(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 Wr(q2(e>=240?e-240:e+120,i,r),q2(e,i,r),q2(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new _o(PI(this.h),Yv(this.s),Yv(this.l),Sy(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=Sy(this.opacity);return`${e===1?"hsl(":"hsla("}${PI(this.h)}, ${Yv(this.s)*100}%, ${Yv(this.l)*100}%${e===1?")":`, ${e})`}`}}));function PI(e){return e=(e||0)%360,e<0?e+360:e}function Yv(e){return Math.max(0,Math.min(1,e||0))}function q2(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 ij=e=>()=>e;function wpe(e,t){return function(n){return e+n*t}}function Ope(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 Spe(e){return(e=+e)==1?jB:function(t,n){return n-t?Ope(t,n,e):ij(isNaN(t)?n:t)}}function jB(e,t){var n=t-e;return n?wpe(e,n):ij(isNaN(e)?t:e)}const CI=function e(t){var n=Spe(t);function r(i,o){var a=n((i=bC(i)).r,(o=bC(o)).r),s=n(i.g,o.g),c=n(i.b,o.b),u=jB(i.opacity,o.opacity);return function(h){return i.r=a(h),i.g=s(h),i.b=c(h),i.opacity=u(h),i+""}}return r.gamma=e,r}(1);function Ppe(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 Cpe(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Epe(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),o=new Array(n),a;for(a=0;a<r;++a)i[a]=td(e[a],t[a]);for(;a<n;++a)o[a]=t[a];return function(s){for(a=0;a<r;++a)o[a]=i[a](s);return o}}function Tpe(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Py(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function jpe(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]=td(e[i],t[i]):r[i]=t[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var _C=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,H2=new RegExp(_C.source,"g");function Ape(e){return function(){return e}}function kpe(e){return function(t){return e(t)+""}}function Rpe(e,t){var n=_C.lastIndex=H2.lastIndex=0,r,i,o,a=-1,s=[],c=[];for(e=e+"",t=t+"";(r=_C.exec(e))&&(i=H2.exec(t));)(o=i.index)>n&&(o=t.slice(n,o),s[a]?s[a]+=o:s[++a]=o),(r=r[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,c.push({i:a,x:Py(r,i)})),n=H2.lastIndex;return n<t.length&&(o=t.slice(n),s[a]?s[a]+=o:s[++a]=o),s.length<2?c[0]?kpe(c[0].x):Ape(t):(t=c.length,function(u){for(var h=0,p;h<t;++h)s[(p=c[h]).i]=p.x(u);return s.join("")})}function td(e,t){var n=typeof t,r;return t==null||n==="boolean"?ij(t):(n==="number"?Py:n==="string"?(r=bp(t))?(t=r,CI):Rpe:t instanceof bp?CI:t instanceof Date?Tpe:Cpe(t)?Ppe:Array.isArray(t)?Epe:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?jpe:Py)(e,t)}function oj(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Npe(e,t){t===void 0&&(t=e,e=td);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(a){var s=Math.max(0,Math.min(r-1,Math.floor(a*=r)));return o[s](a-s)}}function Mpe(e){return function(){return e}}function Cy(e){return+e}var EI=[0,1];function Er(e){return e}function xC(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Mpe(isNaN(t)?NaN:.5)}function Lpe(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function Ipe(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=xC(i,r),o=n(a,o)):(r=xC(r,i),o=n(o,a)),function(s){return o(r(s))}}function Dpe(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=xC(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(s){var c=lm(e,s,1,r)-1;return o[c](i[c](s))}}function cm(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function ib(){var e=EI,t=EI,n=td,r,i,o,a=Er,s,c,u;function h(){var v=Math.min(e.length,t.length);return a!==Er&&(a=Lpe(e[0],e[v-1])),s=v>2?Dpe:Ipe,c=u=null,p}function p(v){return v==null||isNaN(v=+v)?o:(c||(c=s(e.map(r),t,n)))(r(a(v)))}return p.invert=function(v){return a(i((u||(u=s(t,e.map(r),Py)))(v)))},p.domain=function(v){return arguments.length?(e=Array.from(v,Cy),h()):e.slice()},p.range=function(v){return arguments.length?(t=Array.from(v),h()):t.slice()},p.rangeRound=function(v){return t=Array.from(v),n=oj,h()},p.clamp=function(v){return arguments.length?(a=v?!0:Er,h()):a!==Er},p.interpolate=function(v){return arguments.length?(n=v,h()):n},p.unknown=function(v){return arguments.length?(o=v,p):o},function(v,b){return r=v,i=b,h()}}function aj(){return ib()(Er,Er)}function $pe(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Ey(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function xf(e){return e=Ey(Math.abs(e)),e?e[1]:NaN}function Fpe(e,t){return function(n,r){for(var i=n.length,o=[],a=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),o.push(n.substring(i-=s,i+s)),!((c+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(t)}}function Bpe(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var Upe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function _p(e){if(!(t=Upe.exec(e)))throw new Error("invalid format: "+e);var t;return new sj({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]})}_p.prototype=sj.prototype;function sj(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+""}sj.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 zpe(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 AB;function Vpe(e,t){var n=Ey(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(AB=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Ey(e,Math.max(0,t+o-1))[0]}function TI(e,t){var n=Ey(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 jI={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:$pe,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)=>TI(e*100,t),r:TI,s:Vpe,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function AI(e){return e}var kI=Array.prototype.map,RI=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Wpe(e){var t=e.grouping===void 0||e.thousands===void 0?AI:Fpe(kI.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?AI:Bpe(kI.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function u(p){p=_p(p);var v=p.fill,b=p.align,x=p.sign,_=p.symbol,w=p.zero,O=p.width,P=p.comma,E=p.precision,T=p.trim,A=p.type;A==="n"?(P=!0,A="g"):jI[A]||(E===void 0&&(E=12),T=!0,A="g"),(w||v==="0"&&b==="=")&&(w=!0,v="0",b="=");var j=_==="$"?n:_==="#"&&/[boxX]/.test(A)?"0"+A.toLowerCase():"",N=_==="$"?r:/[%p]/.test(A)?a:"",$=jI[A],W=/[defgprs%]/.test(A);E=E===void 0?6:/[gprs]/.test(A)?Math.max(1,Math.min(21,E)):Math.max(0,Math.min(20,E));function B(V){var H=j,J=N,Q,re,ae;if(A==="c")J=$(V)+J,V="";else{V=+V;var se=V<0||1/V<0;if(V=isNaN(V)?c:$(Math.abs(V),E),T&&(V=zpe(V)),se&&+V==0&&x!=="+"&&(se=!1),H=(se?x==="("?x:s:x==="-"||x==="("?"":x)+H,J=(A==="s"?RI[8+AB/3]:"")+J+(se&&x==="("?")":""),W){for(Q=-1,re=V.length;++Q<re;)if(ae=V.charCodeAt(Q),48>ae||ae>57){J=(ae===46?i+V.slice(Q+1):V.slice(Q))+J,V=V.slice(0,Q);break}}}P&&!w&&(V=t(V,1/0));var oe=H.length+V.length+J.length,K=oe<O?new Array(O-oe+1).join(v):"";switch(P&&w&&(V=t(K+V,K.length?O-J.length:1/0),K=""),b){case"<":V=H+V+J+K;break;case"=":V=H+K+V+J;break;case"^":V=K.slice(0,oe=K.length>>1)+H+V+J+K.slice(oe);break;default:V=K+H+V+J;break}return o(V)}return B.toString=function(){return p+""},B}function h(p,v){var b=u((p=_p(p),p.type="f",p)),x=Math.max(-8,Math.min(8,Math.floor(xf(v)/3)))*3,_=Math.pow(10,-x),w=RI[8+x/3];return function(O){return b(_*O)+w}}return{format:u,formatPrefix:h}}var Zv,lj,kB;qpe({thousands:",",grouping:[3],currency:["$",""]});function qpe(e){return Zv=Wpe(e),lj=Zv.format,kB=Zv.formatPrefix,Zv}function Hpe(e){return Math.max(0,-xf(Math.abs(e)))}function Gpe(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(xf(t)/3)))*3-xf(Math.abs(e)))}function Kpe(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,xf(t)-xf(e))+1}function RB(e,t,n,r){var i=gC(e,t,n),o;switch(r=_p(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=Gpe(i,a))&&(r.precision=o),kB(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=Kpe(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=Hpe(i))&&(r.precision=o-(r.type==="%")*2);break}}return lj(r)}function gl(e){var t=e.domain;return e.ticks=function(n){var r=t();return mC(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return RB(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,a=r[i],s=r[o],c,u,h=10;for(s<a&&(u=a,a=s,s=u,u=i,i=o,o=u);h-- >0;){if(u=vC(a,s,n),u===c)return r[i]=a,r[o]=s,t(r);if(u>0)a=Math.floor(a/u)*u,s=Math.ceil(s/u)*u;else if(u<0)a=Math.ceil(a*u)/u,s=Math.floor(s*u)/u;else break;c=u}return e},e}function Ty(){var e=aj();return e.copy=function(){return cm(e,Ty())},eo.apply(e,arguments),gl(e)}function NB(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,Cy),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return NB(e).unknown(t)},e=arguments.length?Array.from(e,Cy):[0,1],gl(n)}function MB(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],o=e[r],a;return o<i&&(a=n,n=r,r=a,a=i,i=o,o=a),e[n]=t.floor(i),e[r]=t.ceil(o),e}function NI(e){return Math.log(e)}function MI(e){return Math.exp(e)}function Ype(e){return-Math.log(-e)}function Zpe(e){return-Math.exp(-e)}function Xpe(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Qpe(e){return e===10?Xpe:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Jpe(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 LI(e){return(t,n)=>-e(-t,n)}function uj(e){const t=e(NI,MI),n=t.domain;let r=10,i,o;function a(){return i=Jpe(r),o=Qpe(r),n()[0]<0?(i=LI(i),o=LI(o),e(Ype,Zpe)):e(NI,MI),t}return t.base=function(s){return arguments.length?(r=+s,a()):r},t.domain=function(s){return arguments.length?(n(s),a()):n()},t.ticks=s=>{const c=n();let u=c[0],h=c[c.length-1];const p=h<u;p&&([u,h]=[h,u]);let v=i(u),b=i(h),x,_;const w=s==null?10:+s;let O=[];if(!(r%1)&&b-v<w){if(v=Math.floor(v),b=Math.ceil(b),u>0){for(;v<=b;++v)for(x=1;x<r;++x)if(_=v<0?x/o(-v):x*o(v),!(_<u)){if(_>h)break;O.push(_)}}else for(;v<=b;++v)for(x=r-1;x>=1;--x)if(_=v>0?x/o(-v):x*o(v),!(_<u)){if(_>h)break;O.push(_)}O.length*2<w&&(O=mC(u,h,w))}else O=mC(v,b,Math.min(b-v,w)).map(o);return p?O.reverse():O},t.tickFormat=(s,c)=>{if(s==null&&(s=10),c==null&&(c=r===10?"s":","),typeof c!="function"&&(!(r%1)&&(c=_p(c)).precision==null&&(c.trim=!0),c=lj(c)),s===1/0)return c;const u=Math.max(1,r*s/t.ticks().length);return h=>{let p=h/o(Math.round(i(h)));return p*r<r-.5&&(p*=r),p<=u?c(h):""}},t.nice=()=>n(MB(n(),{floor:s=>o(Math.floor(i(s))),ceil:s=>o(Math.ceil(i(s)))})),t}function LB(){const e=uj(ib()).domain([1,10]);return e.copy=()=>cm(e,LB()).base(e.base()),eo.apply(e,arguments),e}function II(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function DI(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function cj(e){var t=1,n=e(II(t),DI(t));return n.constant=function(r){return arguments.length?e(II(t=+r),DI(t)):t},gl(n)}function IB(){var e=cj(ib());return e.copy=function(){return cm(e,IB()).constant(e.constant())},eo.apply(e,arguments)}function $I(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function eme(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function tme(e){return e<0?-e*e:e*e}function fj(e){var t=e(Er,Er),n=1;function r(){return n===1?e(Er,Er):n===.5?e(eme,tme):e($I(n),$I(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},gl(t)}function dj(){var e=fj(ib());return e.copy=function(){return cm(e,dj()).exponent(e.exponent())},eo.apply(e,arguments),e}function nme(){return dj.apply(null,arguments).exponent(.5)}function FI(e){return Math.sign(e)*e*e}function rme(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function DB(){var e=aj(),t=[0,1],n=!1,r;function i(o){var a=rme(e(o));return isNaN(a)?r:n?Math.round(a):a}return i.invert=function(o){return e.invert(FI(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,Cy)).map(FI)),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 DB(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},eo.apply(i,arguments),gl(i)}function $B(){var e=[],t=[],n=[],r;function i(){var a=0,s=Math.max(1,t.length);for(n=new Array(s-1);++a<s;)n[a-1]=lpe(e,a/s);return o}function o(a){return a==null||isNaN(a=+a)?r:t[lm(n,a)]}return o.invertExtent=function(a){var s=t.indexOf(a);return s<0?[NaN,NaN]:[s>0?n[s-1]:e[0],s<n.length?n[s]:e[e.length-1]]},o.domain=function(a){if(!arguments.length)return e.slice();e=[];for(let s of a)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(el),i()},o.range=function(a){return arguments.length?(t=Array.from(a),i()):t.slice()},o.unknown=function(a){return arguments.length?(r=a,o):r},o.quantiles=function(){return n.slice()},o.copy=function(){return $B().domain(e).range(t).unknown(r)},eo.apply(o,arguments)}function FB(){var e=0,t=1,n=1,r=[.5],i=[0,1],o;function a(c){return c!=null&&c<=c?i[lm(r,c,0,n)]:o}function s(){var c=-1;for(r=new Array(n);++c<n;)r[c]=((c+1)*t-(c-n)*e)/(n+1);return a}return a.domain=function(c){return arguments.length?([e,t]=c,e=+e,t=+t,s()):[e,t]},a.range=function(c){return arguments.length?(n=(i=Array.from(c)).length-1,s()):i.slice()},a.invertExtent=function(c){var u=i.indexOf(c);return u<0?[NaN,NaN]:u<1?[e,r[0]]:u>=n?[r[n-1],t]:[r[u-1],r[u]]},a.unknown=function(c){return arguments.length&&(o=c),a},a.thresholds=function(){return r.slice()},a.copy=function(){return FB().domain([e,t]).range(i).unknown(o)},eo.apply(gl(a),arguments)}function BB(){var e=[.5],t=[0,1],n,r=1;function i(o){return o!=null&&o<=o?t[lm(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 a=t.indexOf(o);return[e[a-1],e[a]]},i.unknown=function(o){return arguments.length?(n=o,i):n},i.copy=function(){return BB().domain(e).range(t).unknown(n)},eo.apply(i,arguments)}const G2=new Date,K2=new Date;function Hn(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 a=i(o),s=i.ceil(o);return o-a<s-o?a:s},i.offset=(o,a)=>(t(o=new Date(+o),a==null?1:Math.floor(a)),o),i.range=(o,a,s)=>{const c=[];if(o=i.ceil(o),s=s==null?1:Math.floor(s),!(o<a)||!(s>0))return c;let u;do c.push(u=new Date(+o)),t(o,s),e(o);while(u<o&&o<a);return c},i.filter=o=>Hn(a=>{if(a>=a)for(;e(a),!o(a);)a.setTime(a-1)},(a,s)=>{if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!o(a););else for(;--s>=0;)for(;t(a,1),!o(a););}),n&&(i.count=(o,a)=>(G2.setTime(+o),K2.setTime(+a),e(G2),e(K2),Math.floor(n(G2,K2))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?a=>r(a)%o===0:a=>i.count(0,a)%o===0):i)),i}const jy=Hn(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);jy.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Hn(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):jy);jy.range;const Ra=1e3,Hi=Ra*60,Na=Hi*60,qa=Na*24,hj=qa*7,BI=qa*30,Y2=qa*365,fu=Hn(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Ra)},(e,t)=>(t-e)/Ra,e=>e.getUTCSeconds());fu.range;const pj=Hn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ra)},(e,t)=>{e.setTime(+e+t*Hi)},(e,t)=>(t-e)/Hi,e=>e.getMinutes());pj.range;const mj=Hn(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Hi)},(e,t)=>(t-e)/Hi,e=>e.getUTCMinutes());mj.range;const vj=Hn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ra-e.getMinutes()*Hi)},(e,t)=>{e.setTime(+e+t*Na)},(e,t)=>(t-e)/Na,e=>e.getHours());vj.range;const gj=Hn(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Na)},(e,t)=>(t-e)/Na,e=>e.getUTCHours());gj.range;const fm=Hn(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Hi)/qa,e=>e.getDate()-1);fm.range;const ob=Hn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/qa,e=>e.getUTCDate()-1);ob.range;const UB=Hn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/qa,e=>Math.floor(e/qa));UB.range;function Iu(e){return Hn(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())*Hi)/hj)}const ab=Iu(0),Ay=Iu(1),ime=Iu(2),ome=Iu(3),wf=Iu(4),ame=Iu(5),sme=Iu(6);ab.range;Ay.range;ime.range;ome.range;wf.range;ame.range;sme.range;function Du(e){return Hn(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)/hj)}const sb=Du(0),ky=Du(1),lme=Du(2),ume=Du(3),Of=Du(4),cme=Du(5),fme=Du(6);sb.range;ky.range;lme.range;ume.range;Of.range;cme.range;fme.range;const yj=Hn(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());yj.range;const bj=Hn(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());bj.range;const Ha=Hn(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());Ha.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Hn(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)});Ha.range;const Ga=Hn(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());Ga.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Hn(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)});Ga.range;function zB(e,t,n,r,i,o){const a=[[fu,1,Ra],[fu,5,5*Ra],[fu,15,15*Ra],[fu,30,30*Ra],[o,1,Hi],[o,5,5*Hi],[o,15,15*Hi],[o,30,30*Hi],[i,1,Na],[i,3,3*Na],[i,6,6*Na],[i,12,12*Na],[r,1,qa],[r,2,2*qa],[n,1,hj],[t,1,BI],[t,3,3*BI],[e,1,Y2]];function s(u,h,p){const v=h<u;v&&([u,h]=[h,u]);const b=p&&typeof p.range=="function"?p:c(u,h,p),x=b?b.range(u,+h+1):[];return v?x.reverse():x}function c(u,h,p){const v=Math.abs(h-u)/p,b=tj(([,,w])=>w).right(a,v);if(b===a.length)return e.every(gC(u/Y2,h/Y2,p));if(b===0)return jy.every(Math.max(gC(u,h,p),1));const[x,_]=a[v/a[b-1][2]<a[b][2]/v?b-1:b];return x.every(_)}return[s,c]}const[dme,hme]=zB(Ga,bj,sb,UB,gj,mj),[pme,mme]=zB(Ha,yj,ab,fm,vj,pj);function Z2(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 X2(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 ch(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function vme(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,c=e.shortMonths,u=fh(i),h=dh(i),p=fh(o),v=dh(o),b=fh(a),x=dh(a),_=fh(s),w=dh(s),O=fh(c),P=dh(c),E={a:se,A:oe,b:K,B:G,c:null,d:HI,e:HI,f:Fme,g:Yme,G:Xme,H:Ime,I:Dme,j:$me,L:VB,m:Bme,M:Ume,p:z,q:ne,Q:YI,s:ZI,S:zme,u:Vme,U:Wme,V:qme,w:Hme,W:Gme,x:null,X:null,y:Kme,Y:Zme,Z:Qme,"%":KI},T={a:X,A:le,b:ce,B:de,c:null,d:GI,e:GI,f:nve,g:dve,G:pve,H:Jme,I:eve,j:tve,L:qB,m:rve,M:ive,p:be,q:M,Q:YI,s:ZI,S:ove,u:ave,U:sve,V:lve,w:uve,W:cve,x:null,X:null,y:fve,Y:hve,Z:mve,"%":KI},A={a:B,A:V,b:H,B:J,c:Q,d:WI,e:WI,f:Rme,g:VI,G:zI,H:qI,I:qI,j:Tme,L:kme,m:Eme,M:jme,p:W,q:Cme,Q:Mme,s:Lme,S:Ame,u:xme,U:wme,V:Ome,w:_me,W:Sme,x:re,X:ae,y:VI,Y:zI,Z:Pme,"%":Nme};E.x=j(n,E),E.X=j(r,E),E.c=j(t,E),T.x=j(n,T),T.X=j(r,T),T.c=j(t,T);function j(D,Y){return function(ue){var ie=[],he=-1,Se=0,Fe=D.length,ge,Ee,je;for(ue instanceof Date||(ue=new Date(+ue));++he<Fe;)D.charCodeAt(he)===37&&(ie.push(D.slice(Se,he)),(Ee=UI[ge=D.charAt(++he)])!=null?ge=D.charAt(++he):Ee=ge==="e"?" ":"0",(je=Y[ge])&&(ge=je(ue,Ee)),ie.push(ge),Se=he+1);return ie.push(D.slice(Se,he)),ie.join("")}}function N(D,Y){return function(ue){var ie=ch(1900,void 0,1),he=$(ie,D,ue+="",0),Se,Fe;if(he!=ue.length)return null;if("Q"in ie)return new Date(ie.Q);if("s"in ie)return new Date(ie.s*1e3+("L"in ie?ie.L:0));if(Y&&!("Z"in ie)&&(ie.Z=0),"p"in ie&&(ie.H=ie.H%12+ie.p*12),ie.m===void 0&&(ie.m="q"in ie?ie.q:0),"V"in ie){if(ie.V<1||ie.V>53)return null;"w"in ie||(ie.w=1),"Z"in ie?(Se=X2(ch(ie.y,0,1)),Fe=Se.getUTCDay(),Se=Fe>4||Fe===0?ky.ceil(Se):ky(Se),Se=ob.offset(Se,(ie.V-1)*7),ie.y=Se.getUTCFullYear(),ie.m=Se.getUTCMonth(),ie.d=Se.getUTCDate()+(ie.w+6)%7):(Se=Z2(ch(ie.y,0,1)),Fe=Se.getDay(),Se=Fe>4||Fe===0?Ay.ceil(Se):Ay(Se),Se=fm.offset(Se,(ie.V-1)*7),ie.y=Se.getFullYear(),ie.m=Se.getMonth(),ie.d=Se.getDate()+(ie.w+6)%7)}else("W"in ie||"U"in ie)&&("w"in ie||(ie.w="u"in ie?ie.u%7:"W"in ie?1:0),Fe="Z"in ie?X2(ch(ie.y,0,1)).getUTCDay():Z2(ch(ie.y,0,1)).getDay(),ie.m=0,ie.d="W"in ie?(ie.w+6)%7+ie.W*7-(Fe+5)%7:ie.w+ie.U*7-(Fe+6)%7);return"Z"in ie?(ie.H+=ie.Z/100|0,ie.M+=ie.Z%100,X2(ie)):Z2(ie)}}function $(D,Y,ue,ie){for(var he=0,Se=Y.length,Fe=ue.length,ge,Ee;he<Se;){if(ie>=Fe)return-1;if(ge=Y.charCodeAt(he++),ge===37){if(ge=Y.charAt(he++),Ee=A[ge in UI?Y.charAt(he++):ge],!Ee||(ie=Ee(D,ue,ie))<0)return-1}else if(ge!=ue.charCodeAt(ie++))return-1}return ie}function W(D,Y,ue){var ie=u.exec(Y.slice(ue));return ie?(D.p=h.get(ie[0].toLowerCase()),ue+ie[0].length):-1}function B(D,Y,ue){var ie=b.exec(Y.slice(ue));return ie?(D.w=x.get(ie[0].toLowerCase()),ue+ie[0].length):-1}function V(D,Y,ue){var ie=p.exec(Y.slice(ue));return ie?(D.w=v.get(ie[0].toLowerCase()),ue+ie[0].length):-1}function H(D,Y,ue){var ie=O.exec(Y.slice(ue));return ie?(D.m=P.get(ie[0].toLowerCase()),ue+ie[0].length):-1}function J(D,Y,ue){var ie=_.exec(Y.slice(ue));return ie?(D.m=w.get(ie[0].toLowerCase()),ue+ie[0].length):-1}function Q(D,Y,ue){return $(D,t,Y,ue)}function re(D,Y,ue){return $(D,n,Y,ue)}function ae(D,Y,ue){return $(D,r,Y,ue)}function se(D){return a[D.getDay()]}function oe(D){return o[D.getDay()]}function K(D){return c[D.getMonth()]}function G(D){return s[D.getMonth()]}function z(D){return i[+(D.getHours()>=12)]}function ne(D){return 1+~~(D.getMonth()/3)}function X(D){return a[D.getUTCDay()]}function le(D){return o[D.getUTCDay()]}function ce(D){return c[D.getUTCMonth()]}function de(D){return s[D.getUTCMonth()]}function be(D){return i[+(D.getUTCHours()>=12)]}function M(D){return 1+~~(D.getUTCMonth()/3)}return{format:function(D){var Y=j(D+="",E);return Y.toString=function(){return D},Y},parse:function(D){var Y=N(D+="",!1);return Y.toString=function(){return D},Y},utcFormat:function(D){var Y=j(D+="",T);return Y.toString=function(){return D},Y},utcParse:function(D){var Y=N(D+="",!0);return Y.toString=function(){return D},Y}}}var UI={"-":"",_:" ",0:"0"},tr=/^\s*\d+/,gme=/^%/,yme=/[\\^$*+?|[\]().{}]/g;function It(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 bme(e){return e.replace(yme,"\\$&")}function fh(e){return new RegExp("^(?:"+e.map(bme).join("|")+")","i")}function dh(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function _me(e,t,n){var r=tr.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function xme(e,t,n){var r=tr.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function wme(e,t,n){var r=tr.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Ome(e,t,n){var r=tr.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Sme(e,t,n){var r=tr.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function zI(e,t,n){var r=tr.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function VI(e,t,n){var r=tr.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Pme(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 Cme(e,t,n){var r=tr.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Eme(e,t,n){var r=tr.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function WI(e,t,n){var r=tr.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Tme(e,t,n){var r=tr.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function qI(e,t,n){var r=tr.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function jme(e,t,n){var r=tr.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Ame(e,t,n){var r=tr.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function kme(e,t,n){var r=tr.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Rme(e,t,n){var r=tr.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Nme(e,t,n){var r=gme.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Mme(e,t,n){var r=tr.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Lme(e,t,n){var r=tr.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function HI(e,t){return It(e.getDate(),t,2)}function Ime(e,t){return It(e.getHours(),t,2)}function Dme(e,t){return It(e.getHours()%12||12,t,2)}function $me(e,t){return It(1+fm.count(Ha(e),e),t,3)}function VB(e,t){return It(e.getMilliseconds(),t,3)}function Fme(e,t){return VB(e,t)+"000"}function Bme(e,t){return It(e.getMonth()+1,t,2)}function Ume(e,t){return It(e.getMinutes(),t,2)}function zme(e,t){return It(e.getSeconds(),t,2)}function Vme(e){var t=e.getDay();return t===0?7:t}function Wme(e,t){return It(ab.count(Ha(e)-1,e),t,2)}function WB(e){var t=e.getDay();return t>=4||t===0?wf(e):wf.ceil(e)}function qme(e,t){return e=WB(e),It(wf.count(Ha(e),e)+(Ha(e).getDay()===4),t,2)}function Hme(e){return e.getDay()}function Gme(e,t){return It(Ay.count(Ha(e)-1,e),t,2)}function Kme(e,t){return It(e.getFullYear()%100,t,2)}function Yme(e,t){return e=WB(e),It(e.getFullYear()%100,t,2)}function Zme(e,t){return It(e.getFullYear()%1e4,t,4)}function Xme(e,t){var n=e.getDay();return e=n>=4||n===0?wf(e):wf.ceil(e),It(e.getFullYear()%1e4,t,4)}function Qme(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+It(t/60|0,"0",2)+It(t%60,"0",2)}function GI(e,t){return It(e.getUTCDate(),t,2)}function Jme(e,t){return It(e.getUTCHours(),t,2)}function eve(e,t){return It(e.getUTCHours()%12||12,t,2)}function tve(e,t){return It(1+ob.count(Ga(e),e),t,3)}function qB(e,t){return It(e.getUTCMilliseconds(),t,3)}function nve(e,t){return qB(e,t)+"000"}function rve(e,t){return It(e.getUTCMonth()+1,t,2)}function ive(e,t){return It(e.getUTCMinutes(),t,2)}function ove(e,t){return It(e.getUTCSeconds(),t,2)}function ave(e){var t=e.getUTCDay();return t===0?7:t}function sve(e,t){return It(sb.count(Ga(e)-1,e),t,2)}function HB(e){var t=e.getUTCDay();return t>=4||t===0?Of(e):Of.ceil(e)}function lve(e,t){return e=HB(e),It(Of.count(Ga(e),e)+(Ga(e).getUTCDay()===4),t,2)}function uve(e){return e.getUTCDay()}function cve(e,t){return It(ky.count(Ga(e)-1,e),t,2)}function fve(e,t){return It(e.getUTCFullYear()%100,t,2)}function dve(e,t){return e=HB(e),It(e.getUTCFullYear()%100,t,2)}function hve(e,t){return It(e.getUTCFullYear()%1e4,t,4)}function pve(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Of(e):Of.ceil(e),It(e.getUTCFullYear()%1e4,t,4)}function mve(){return"+0000"}function KI(){return"%"}function YI(e){return+e}function ZI(e){return Math.floor(+e/1e3)}var Mc,GB,KB;vve({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 vve(e){return Mc=vme(e),GB=Mc.format,Mc.parse,KB=Mc.utcFormat,Mc.utcParse,Mc}function gve(e){return new Date(e)}function yve(e){return e instanceof Date?+e:+new Date(+e)}function _j(e,t,n,r,i,o,a,s,c,u){var h=aj(),p=h.invert,v=h.domain,b=u(".%L"),x=u(":%S"),_=u("%I:%M"),w=u("%I %p"),O=u("%a %d"),P=u("%b %d"),E=u("%B"),T=u("%Y");function A(j){return(c(j)<j?b:s(j)<j?x:a(j)<j?_:o(j)<j?w:r(j)<j?i(j)<j?O:P:n(j)<j?E:T)(j)}return h.invert=function(j){return new Date(p(j))},h.domain=function(j){return arguments.length?v(Array.from(j,yve)):v().map(gve)},h.ticks=function(j){var N=v();return e(N[0],N[N.length-1],j??10)},h.tickFormat=function(j,N){return N==null?A:u(N)},h.nice=function(j){var N=v();return(!j||typeof j.range!="function")&&(j=t(N[0],N[N.length-1],j??10)),j?v(MB(N,j)):h},h.copy=function(){return cm(h,_j(e,t,n,r,i,o,a,s,c,u))},h}function bve(){return eo.apply(_j(pme,mme,Ha,yj,ab,fm,vj,pj,fu,GB).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function _ve(){return eo.apply(_j(dme,hme,Ga,bj,sb,ob,gj,mj,fu,KB).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function lb(){var e=0,t=1,n,r,i,o,a=Er,s=!1,c;function u(p){return p==null||isNaN(p=+p)?c:a(i===0?.5:(p=(o(p)-n)*i,s?Math.max(0,Math.min(1,p)):p))}u.domain=function(p){return arguments.length?([e,t]=p,n=o(e=+e),r=o(t=+t),i=n===r?0:1/(r-n),u):[e,t]},u.clamp=function(p){return arguments.length?(s=!!p,u):s},u.interpolator=function(p){return arguments.length?(a=p,u):a};function h(p){return function(v){var b,x;return arguments.length?([b,x]=v,a=p(b,x),u):[a(0),a(1)]}}return u.range=h(td),u.rangeRound=h(oj),u.unknown=function(p){return arguments.length?(c=p,u):c},function(p){return o=p,n=p(e),r=p(t),i=n===r?0:1/(r-n),u}}function yl(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function YB(){var e=gl(lb()(Er));return e.copy=function(){return yl(e,YB())},ns.apply(e,arguments)}function ZB(){var e=uj(lb()).domain([1,10]);return e.copy=function(){return yl(e,ZB()).base(e.base())},ns.apply(e,arguments)}function XB(){var e=cj(lb());return e.copy=function(){return yl(e,XB()).constant(e.constant())},ns.apply(e,arguments)}function xj(){var e=fj(lb());return e.copy=function(){return yl(e,xj()).exponent(e.exponent())},ns.apply(e,arguments)}function xve(){return xj.apply(null,arguments).exponent(.5)}function QB(){var e=[],t=Er;function n(r){if(r!=null&&!isNaN(r=+r))return t((lm(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(el),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)=>spe(e,o/r))},n.copy=function(){return QB(t).domain(e)},ns.apply(n,arguments)}function ub(){var e=0,t=.5,n=1,r=1,i,o,a,s,c,u=Er,h,p=!1,v;function b(_){return isNaN(_=+_)?v:(_=.5+((_=+h(_))-o)*(r*_<r*o?s:c),u(p?Math.max(0,Math.min(1,_)):_))}b.domain=function(_){return arguments.length?([e,t,n]=_,i=h(e=+e),o=h(t=+t),a=h(n=+n),s=i===o?0:.5/(o-i),c=o===a?0:.5/(a-o),r=o<i?-1:1,b):[e,t,n]},b.clamp=function(_){return arguments.length?(p=!!_,b):p},b.interpolator=function(_){return arguments.length?(u=_,b):u};function x(_){return function(w){var O,P,E;return arguments.length?([O,P,E]=w,u=Npe(_,[O,P,E]),b):[u(0),u(.5),u(1)]}}return b.range=x(td),b.rangeRound=x(oj),b.unknown=function(_){return arguments.length?(v=_,b):v},function(_){return h=_,i=_(e),o=_(t),a=_(n),s=i===o?0:.5/(o-i),c=o===a?0:.5/(a-o),r=o<i?-1:1,b}}function JB(){var e=gl(ub()(Er));return e.copy=function(){return yl(e,JB())},ns.apply(e,arguments)}function eU(){var e=uj(ub()).domain([.1,1,10]);return e.copy=function(){return yl(e,eU()).base(e.base())},ns.apply(e,arguments)}function tU(){var e=cj(ub());return e.copy=function(){return yl(e,tU()).constant(e.constant())},ns.apply(e,arguments)}function wj(){var e=fj(ub());return e.copy=function(){return yl(e,wj()).exponent(e.exponent())},ns.apply(e,arguments)}function wve(){return wj.apply(null,arguments).exponent(.5)}const XI=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:vp,scaleDiverging:JB,scaleDivergingLog:eU,scaleDivergingPow:wj,scaleDivergingSqrt:wve,scaleDivergingSymlog:tU,scaleIdentity:NB,scaleImplicit:yC,scaleLinear:Ty,scaleLog:LB,scaleOrdinal:nj,scalePoint:Ih,scalePow:dj,scaleQuantile:$B,scaleQuantize:FB,scaleRadial:DB,scaleSequential:YB,scaleSequentialLog:ZB,scaleSequentialPow:xj,scaleSequentialQuantile:QB,scaleSequentialSqrt:xve,scaleSequentialSymlog:XB,scaleSqrt:nme,scaleSymlog:IB,scaleThreshold:BB,scaleTime:bve,scaleUtc:_ve,tickFormat:RB},Symbol.toStringTag,{value:"Module"}));var Q2,QI;function cb(){if(QI)return Q2;QI=1;var e=Xf();function t(n,r,i){for(var o=-1,a=n.length;++o<a;){var s=n[o],c=r(s);if(c!=null&&(u===void 0?c===c&&!e(c):i(c,u)))var u=c,h=s}return h}return Q2=t,Q2}var J2,JI;function nU(){if(JI)return J2;JI=1;function e(t,n){return t>n}return J2=e,J2}var eO,e6;function Ove(){if(e6)return eO;e6=1;var e=cb(),t=nU(),n=ed();function r(i){return i&&i.length?e(i,n,t):void 0}return eO=r,eO}var Sve=Ove();const Gs=Nt(Sve);var tO,t6;function rU(){if(t6)return tO;t6=1;function e(t,n){return t<n}return tO=e,tO}var nO,n6;function Pve(){if(n6)return nO;n6=1;var e=cb(),t=rU(),n=ed();function r(i){return i&&i.length?e(i,n,t):void 0}return nO=r,nO}var Cve=Pve();const fb=Nt(Cve);var rO,r6;function Eve(){if(r6)return rO;r6=1;var e=$T(),t=la(),n=fB(),r=Xr();function i(o,a){var s=r(o)?e:n;return s(o,t(a,3))}return rO=i,rO}var iO,i6;function Tve(){if(i6)return iO;i6=1;var e=uB(),t=Eve();function n(r,i){return e(t(r,i),1)}return iO=n,iO}var jve=Tve();const Ave=Nt(jve);var oO,o6;function kve(){if(o6)return oO;o6=1;var e=ZT();function t(n,r){return e(n,r)}return oO=t,oO}var Rve=kve();const ll=Nt(Rve);var nd=1e9,Nve={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Sj,un=!0,Qi="[DecimalError] ",yu=Qi+"Invalid argument: ",Oj=Qi+"Exponent out of range: ",rd=Math.floor,iu=Math.pow,Mve=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,pi,Xn=1e7,rn=7,iU=9007199254740991,Ry=rd(iU/rn),et={};et.absoluteValue=et.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};et.comparedTo=et.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};et.decimalPlaces=et.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*rn;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};et.dividedBy=et.div=function(e){return Da(this,new this.constructor(e))};et.dividedToIntegerBy=et.idiv=function(e){var t=this,n=t.constructor;return Ht(Da(t,new n(e),0,1),n.precision)};et.equals=et.eq=function(e){return!this.cmp(e)};et.exponent=function(){return In(this)};et.greaterThan=et.gt=function(e){return this.cmp(e)>0};et.greaterThanOrEqualTo=et.gte=function(e){return this.cmp(e)>=0};et.isInteger=et.isint=function(){return this.e>this.d.length-2};et.isNegative=et.isneg=function(){return this.s<0};et.isPositive=et.ispos=function(){return this.s>0};et.isZero=function(){return this.s===0};et.lessThan=et.lt=function(e){return this.cmp(e)<0};et.lessThanOrEqualTo=et.lte=function(e){return this.cmp(e)<1};et.logarithm=et.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(pi))throw Error(Qi+"NaN");if(n.s<1)throw Error(Qi+(n.s?"NaN":"-Infinity"));return n.eq(pi)?new r(0):(un=!1,t=Da(xp(n,o),xp(e,o),o),un=!0,Ht(t,i))};et.minus=et.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?sU(t,e):oU(t,(e.s=-e.s,e))};et.modulo=et.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(Qi+"NaN");return n.s?(un=!1,t=Da(n,e,0,1).times(e),un=!0,n.minus(t)):Ht(new r(n),i)};et.naturalExponential=et.exp=function(){return aU(this)};et.naturalLogarithm=et.ln=function(){return xp(this)};et.negated=et.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};et.plus=et.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?oU(t,e):sU(t,(e.s=-e.s,e))};et.precision=et.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(yu+e);if(t=In(i)+1,r=i.d.length-1,n=r*rn+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};et.squareRoot=et.sqrt=function(){var e,t,n,r,i,o,a,s=this,c=s.constructor;if(s.s<1){if(!s.s)return new c(0);throw Error(Qi+"NaN")}for(e=In(s),un=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=Ko(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=rd((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 c(t)):r=new c(i.toString()),n=c.precision,i=a=n+3;;)if(o=r,r=o.plus(Da(s,o,a+2)).times(.5),Ko(o.d).slice(0,a)===(t=Ko(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),i==a&&t=="4999"){if(Ht(o,n+1,0),o.times(o).eq(s)){r=o;break}}else if(t!="9999")break;a+=4}return un=!0,Ht(r,n)};et.times=et.mul=function(e){var t,n,r,i,o,a,s,c,u,h=this,p=h.constructor,v=h.d,b=(e=new p(e)).d;if(!h.s||!e.s)return new p(0);for(e.s*=h.s,n=h.e+e.e,c=v.length,u=b.length,c<u&&(o=v,v=b,b=o,a=c,c=u,u=a),o=[],a=c+u,r=a;r--;)o.push(0);for(r=u;--r>=0;){for(t=0,i=c+r;i>r;)s=o[i]+b[r]*v[i-r-1]+t,o[i--]=s%Xn|0,t=s/Xn|0;o[i]=(o[i]+t)%Xn|0}for(;!o[--a];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,un?Ht(e,p.precision):e};et.toDecimalPlaces=et.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(na(e,0,nd),t===void 0?t=r.rounding:na(t,0,8),Ht(n,e+In(n)+1,t))};et.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=Tu(r,!0):(na(e,0,nd),t===void 0?t=i.rounding:na(t,0,8),r=Ht(new i(r),e+1,t),n=Tu(r,!0,e+1)),n};et.toFixed=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?Tu(i):(na(e,0,nd),t===void 0?t=o.rounding:na(t,0,8),r=Ht(new o(i),e+In(i)+1,t),n=Tu(r.abs(),!1,e+In(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};et.toInteger=et.toint=function(){var e=this,t=e.constructor;return Ht(new t(e),In(e)+1,t.rounding)};et.toNumber=function(){return+this};et.toPower=et.pow=function(e){var t,n,r,i,o,a,s=this,c=s.constructor,u=12,h=+(e=new c(e));if(!e.s)return new c(pi);if(s=new c(s),!s.s){if(e.s<1)throw Error(Qi+"Infinity");return s}if(s.eq(pi))return s;if(r=c.precision,e.eq(pi))return Ht(s,r);if(t=e.e,n=e.d.length-1,a=t>=n,o=s.s,a){if((n=h<0?-h:h)<=iU){for(i=new c(pi),t=Math.ceil(r/rn+4),un=!1;n%2&&(i=i.times(s),s6(i.d,t)),n=rd(n/2),n!==0;)s=s.times(s),s6(s.d,t);return un=!0,e.s<0?new c(pi).div(i):Ht(i,r)}}else if(o<0)throw Error(Qi+"NaN");return o=o<0&&e.d[Math.max(t,n)]&1?-1:1,s.s=1,un=!1,i=e.times(xp(s,r+u)),un=!0,i=aU(i),i.s=o,i};et.toPrecision=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?(n=In(i),r=Tu(i,n<=o.toExpNeg||n>=o.toExpPos)):(na(e,1,nd),t===void 0?t=o.rounding:na(t,0,8),i=Ht(new o(i),e,t),n=In(i),r=Tu(i,e<=n||n<=o.toExpNeg,e)),r};et.toSignificantDigits=et.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(na(e,1,nd),t===void 0?t=r.rounding:na(t,0,8)),Ht(new r(n),e,t)};et.toString=et.valueOf=et.val=et.toJSON=et[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=In(e),n=e.constructor;return Tu(e,t<=n.toExpNeg||t>=n.toExpPos)};function oU(e,t){var n,r,i,o,a,s,c,u,h=e.constructor,p=h.precision;if(!e.s||!t.s)return t.s||(t=new h(e)),un?Ht(t,p):t;if(c=e.d,u=t.d,a=e.e,i=t.e,c=c.slice(),o=a-i,o){for(o<0?(r=c,o=-o,s=u.length):(r=u,i=a,s=c.length),a=Math.ceil(p/rn),s=a>s?a+1:s+1,o>s&&(o=s,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for(s=c.length,o=u.length,s-o<0&&(o=s,r=u,u=c,c=r),n=0;o;)n=(c[--o]=c[o]+u[o]+n)/Xn|0,c[o]%=Xn;for(n&&(c.unshift(n),++i),s=c.length;c[--s]==0;)c.pop();return t.d=c,t.e=i,un?Ht(t,p):t}function na(e,t,n){if(e!==~~e||e<t||e>n)throw Error(yu+e)}function Ko(e){var t,n,r,i=e.length-1,o="",a=e[0];if(i>0){for(o+=a,t=1;t<i;t++)r=e[t]+"",n=rn-r.length,n&&(o+=Ws(n)),o+=r;a=e[t],r=a+"",n=rn-r.length,n&&(o+=Ws(n))}else if(a===0)return"0";for(;a%10===0;)a/=10;return o+a}var Da=function(){function e(r,i){var o,a=0,s=r.length;for(r=r.slice();s--;)o=r[s]*i+a,r[s]=o%Xn|0,a=o/Xn|0;return a&&r.unshift(a),r}function t(r,i,o,a){var s,c;if(o!=a)c=o>a?1:-1;else for(s=c=0;s<o;s++)if(r[s]!=i[s]){c=r[s]>i[s]?1:-1;break}return c}function n(r,i,o){for(var a=0;o--;)r[o]-=a,a=r[o]<i[o]?1:0,r[o]=a*Xn+r[o]-i[o];for(;!r[0]&&r.length>1;)r.shift()}return function(r,i,o,a){var s,c,u,h,p,v,b,x,_,w,O,P,E,T,A,j,N,$,W=r.constructor,B=r.s==i.s?1:-1,V=r.d,H=i.d;if(!r.s)return new W(r);if(!i.s)throw Error(Qi+"Division by zero");for(c=r.e-i.e,N=H.length,A=V.length,b=new W(B),x=b.d=[],u=0;H[u]==(V[u]||0);)++u;if(H[u]>(V[u]||0)&&--c,o==null?P=o=W.precision:a?P=o+(In(r)-In(i))+1:P=o,P<0)return new W(0);if(P=P/rn+2|0,u=0,N==1)for(h=0,H=H[0],P++;(u<A||h)&&P--;u++)E=h*Xn+(V[u]||0),x[u]=E/H|0,h=E%H|0;else{for(h=Xn/(H[0]+1)|0,h>1&&(H=e(H,h),V=e(V,h),N=H.length,A=V.length),T=N,_=V.slice(0,N),w=_.length;w<N;)_[w++]=0;$=H.slice(),$.unshift(0),j=H[0],H[1]>=Xn/2&&++j;do h=0,s=t(H,_,N,w),s<0?(O=_[0],N!=w&&(O=O*Xn+(_[1]||0)),h=O/j|0,h>1?(h>=Xn&&(h=Xn-1),p=e(H,h),v=p.length,w=_.length,s=t(p,_,v,w),s==1&&(h--,n(p,N<v?$:H,v))):(h==0&&(s=h=1),p=H.slice()),v=p.length,v<w&&p.unshift(0),n(_,p,w),s==-1&&(w=_.length,s=t(H,_,N,w),s<1&&(h++,n(_,N<w?$:H,w))),w=_.length):s===0&&(h++,_=[0]),x[u++]=h,s&&_[0]?_[w++]=V[T]||0:(_=[V[T]],w=1);while((T++<A||_[0]!==void 0)&&P--)}return x[0]||x.shift(),b.e=c,Ht(b,a?o+In(b)+1:o)}}();function aU(e,t){var n,r,i,o,a,s,c=0,u=0,h=e.constructor,p=h.precision;if(In(e)>16)throw Error(Oj+In(e));if(!e.s)return new h(pi);for(t==null?(un=!1,s=p):s=t,a=new h(.03125);e.abs().gte(.1);)e=e.times(a),u+=5;for(r=Math.log(iu(2,u))/Math.LN10*2+5|0,s+=r,n=i=o=new h(pi),h.precision=s;;){if(i=Ht(i.times(e),s),n=n.times(++c),a=o.plus(Da(i,n,s)),Ko(a.d).slice(0,s)===Ko(o.d).slice(0,s)){for(;u--;)o=Ht(o.times(o),s);return h.precision=p,t==null?(un=!0,Ht(o,p)):o}o=a}}function In(e){for(var t=e.e*rn,n=e.d[0];n>=10;n/=10)t++;return t}function aO(e,t,n){if(t>e.LN10.sd())throw un=!0,n&&(e.precision=n),Error(Qi+"LN10 precision limit exceeded");return Ht(new e(e.LN10),t)}function Ws(e){for(var t="";e--;)t+="0";return t}function xp(e,t){var n,r,i,o,a,s,c,u,h,p=1,v=10,b=e,x=b.d,_=b.constructor,w=_.precision;if(b.s<1)throw Error(Qi+(b.s?"NaN":"-Infinity"));if(b.eq(pi))return new _(0);if(t==null?(un=!1,u=w):u=t,b.eq(10))return t==null&&(un=!0),aO(_,u);if(u+=v,_.precision=u,n=Ko(x),r=n.charAt(0),o=In(b),Math.abs(o)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)b=b.times(e),n=Ko(b.d),r=n.charAt(0),p++;o=In(b),r>1?(b=new _("0."+n),o++):b=new _(r+"."+n.slice(1))}else return c=aO(_,u+2,w).times(o+""),b=xp(new _(r+"."+n.slice(1)),u-v).plus(c),_.precision=w,t==null?(un=!0,Ht(b,w)):b;for(s=a=b=Da(b.minus(pi),b.plus(pi),u),h=Ht(b.times(b),u),i=3;;){if(a=Ht(a.times(h),u),c=s.plus(Da(a,new _(i),u)),Ko(c.d).slice(0,u)===Ko(s.d).slice(0,u))return s=s.times(2),o!==0&&(s=s.plus(aO(_,u+2,w).times(o+""))),s=Da(s,new _(p),u),_.precision=w,t==null?(un=!0,Ht(s,w)):s;s=c,i+=2}}function a6(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=rd(n/rn),e.d=[],r=(n+1)%rn,n<0&&(r+=rn),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=rn;r<i;)e.d.push(+t.slice(r,r+=rn));t=t.slice(r),r=rn-t.length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),un&&(e.e>Ry||e.e<-Ry))throw Error(Oj+n)}else e.s=0,e.e=0,e.d=[0];return e}function Ht(e,t,n){var r,i,o,a,s,c,u,h,p=e.d;for(a=1,o=p[0];o>=10;o/=10)a++;if(r=t-a,r<0)r+=rn,i=t,u=p[h=0];else{if(h=Math.ceil((r+1)/rn),o=p.length,h>=o)return e;for(u=o=p[h],a=1;o>=10;o/=10)a++;r%=rn,i=r-rn+a}if(n!==void 0&&(o=iu(10,a-i-1),s=u/o%10|0,c=t<0||p[h+1]!==void 0||u%o,c=n<4?(s||c)&&(n==0||n==(e.s<0?3:2)):s>5||s==5&&(n==4||c||n==6&&(r>0?i>0?u/iu(10,a-i):0:p[h-1])%10&1||n==(e.s<0?8:7))),t<1||!p[0])return c?(o=In(e),p.length=1,t=t-o-1,p[0]=iu(10,(rn-t%rn)%rn),e.e=rd(-t/rn)||0):(p.length=1,p[0]=e.e=e.s=0),e;if(r==0?(p.length=h,o=1,h--):(p.length=h+1,o=iu(10,rn-r),p[h]=i>0?(u/iu(10,a-i)%iu(10,i)|0)*o:0),c)for(;;)if(h==0){(p[0]+=o)==Xn&&(p[0]=1,++e.e);break}else{if(p[h]+=o,p[h]!=Xn)break;p[h--]=0,o=1}for(r=p.length;p[--r]===0;)p.pop();if(un&&(e.e>Ry||e.e<-Ry))throw Error(Oj+In(e));return e}function sU(e,t){var n,r,i,o,a,s,c,u,h,p,v=e.constructor,b=v.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new v(e),un?Ht(t,b):t;if(c=e.d,p=t.d,r=t.e,u=e.e,c=c.slice(),a=u-r,a){for(h=a<0,h?(n=c,a=-a,s=p.length):(n=p,r=u,s=c.length),i=Math.max(Math.ceil(b/rn),s)+2,a>i&&(a=i,n.length=1),n.reverse(),i=a;i--;)n.push(0);n.reverse()}else{for(i=c.length,s=p.length,h=i<s,h&&(s=i),i=0;i<s;i++)if(c[i]!=p[i]){h=c[i]<p[i];break}a=0}for(h&&(n=c,c=p,p=n,t.s=-t.s),s=c.length,i=p.length-s;i>0;--i)c[s++]=0;for(i=p.length;i>a;){if(c[--i]<p[i]){for(o=i;o&&c[--o]===0;)c[o]=Xn-1;--c[o],c[i]+=Xn}c[i]-=p[i]}for(;c[--s]===0;)c.pop();for(;c[0]===0;c.shift())--r;return c[0]?(t.d=c,t.e=r,un?Ht(t,b):t):new v(0)}function Tu(e,t,n){var r,i=In(e),o=Ko(e.d),a=o.length;return t?(n&&(r=n-a)>0?o=o.charAt(0)+"."+o.slice(1)+Ws(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+Ws(-i-1)+o,n&&(r=n-a)>0&&(o+=Ws(r))):i>=a?(o+=Ws(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+Ws(r))):((r=i+1)<a&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-a)>0&&(i+1===a&&(o+="."),o+=Ws(r))),e.s<0?"-"+o:o}function s6(e,t){if(e.length>t)return e.length=t,!0}function lU(e){var t,n,r;function i(o){var a=this;if(!(a instanceof i))return new i(o);if(a.constructor=i,o instanceof i){a.s=o.s,a.e=o.e,a.d=(o=o.d)?o.slice():o;return}if(typeof o=="number"){if(o*0!==0)throw Error(yu+o);if(o>0)a.s=1;else if(o<0)o=-o,a.s=-1;else{a.s=0,a.e=0,a.d=[0];return}if(o===~~o&&o<1e7){a.e=0,a.d=[o];return}return a6(a,o.toString())}else if(typeof o!="string")throw Error(yu+o);if(o.charCodeAt(0)===45?(o=o.slice(1),a.s=-1):a.s=1,Mve.test(o))a6(a,o);else throw Error(yu+o)}if(i.prototype=et,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=lU,i.config=i.set=Lve,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 Lve(e){if(!e||typeof e!="object")throw Error(Qi+"Object expected");var t,n,r,i=["precision",1,nd,"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(rd(r)===r&&r>=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(yu+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(yu+n+": "+r);return this}var Sj=lU(Nve);pi=new Sj(1);const Vt=Sj;function Ive(e){return Bve(e)||Fve(e)||$ve(e)||Dve()}function Dve(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $ve(e,t){if(e){if(typeof e=="string")return wC(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 wC(e,t)}}function Fve(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Bve(e){if(Array.isArray(e))return wC(e)}function wC(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 Uve=function(t){return t},uU={"@@functional/placeholder":!0},cU=function(t){return t===uU},l6=function(t){return function n(){return arguments.length===0||arguments.length===1&&cU(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},zve=function e(t,n){return t===1?n:l6(function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=i.filter(function(s){return s!==uU}).length;return a>=t?n.apply(void 0,i):e(t-a,l6(function(){for(var s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];var h=i.map(function(p){return cU(p)?c.shift():p});return n.apply(void 0,Ive(h).concat(c))}))})},db=function(t){return zve(t.length,t)},OC=function(t,n){for(var r=[],i=t;i<n;++i)r[i-t]=i;return r},Vve=db(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),Wve=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return Uve;var i=n.reverse(),o=i[0],a=i.slice(1);return function(){return a.reduce(function(s,c){return c(s)},o.apply(void 0,arguments))}},SC=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},fU=function(t){var n=null,r=null;return function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n&&o.every(function(s,c){return s===n[c]})||(n=o,r=t.apply(void 0,o)),r}};function qve(e){var t;return e===0?t=1:t=Math.floor(new Vt(e).abs().log(10).toNumber())+1,t}function Hve(e,t,n){for(var r=new Vt(e),i=0,o=[];r.lt(t)&&i<1e5;)o.push(r.toNumber()),r=r.add(n),i++;return o}var Gve=db(function(e,t,n){var r=+e,i=+t;return r+n*(i-r)}),Kve=db(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),Yve=db(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const hb={rangeStep:Hve,getDigitCount:qve,interpolateNumber:Gve,uninterpolateNumber:Kve,uninterpolateTruncation:Yve};function PC(e){return Qve(e)||Xve(e)||dU(e)||Zve()}function Zve(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xve(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Qve(e){if(Array.isArray(e))return CC(e)}function wp(e,t){return tge(e)||ege(e,t)||dU(e,t)||Jve()}function Jve(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dU(e,t){if(e){if(typeof e=="string")return CC(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 CC(e,t)}}function CC(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 ege(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,o=void 0;try{for(var a=e[Symbol.iterator](),s;!(r=(s=a.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(c){i=!0,o=c}finally{try{!r&&a.return!=null&&a.return()}finally{if(i)throw o}}return n}}function tge(e){if(Array.isArray(e))return e}function hU(e){var t=wp(e,2),n=t[0],r=t[1],i=n,o=r;return n>r&&(i=r,o=n),[i,o]}function pU(e,t,n){if(e.lte(0))return new Vt(0);var r=hb.getDigitCount(e.toNumber()),i=new Vt(10).pow(r),o=e.div(i),a=r!==1?.05:.1,s=new Vt(Math.ceil(o.div(a).toNumber())).add(n).mul(a),c=s.mul(i);return t?c:new Vt(Math.ceil(c))}function nge(e,t,n){var r=1,i=new Vt(e);if(!i.isint()&&n){var o=Math.abs(e);o<1?(r=new Vt(10).pow(hb.getDigitCount(e)-1),i=new Vt(Math.floor(i.div(r).toNumber())).mul(r)):o>1&&(i=new Vt(Math.floor(e)))}else e===0?i=new Vt(Math.floor((t-1)/2)):n||(i=new Vt(Math.floor(e)));var a=Math.floor((t-1)/2),s=Wve(Vve(function(c){return i.add(new Vt(c-a).mul(r)).toNumber()}),OC);return s(0,t)}function mU(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 Vt(0),tickMin:new Vt(0),tickMax:new Vt(0)};var o=pU(new Vt(t).sub(e).div(n-1),r,i),a;e<=0&&t>=0?a=new Vt(0):(a=new Vt(e).add(t).div(2),a=a.sub(new Vt(a).mod(o)));var s=Math.ceil(a.sub(e).div(o).toNumber()),c=Math.ceil(new Vt(t).sub(a).div(o).toNumber()),u=s+c+1;return u>n?mU(e,t,n,r,i+1):(u<n&&(c=t>0?c+(n-u):c,s=t>0?s:s+(n-u)),{step:o,tickMin:a.sub(new Vt(s).mul(o)),tickMax:a.add(new Vt(c).mul(o))})}function rge(e){var t=wp(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,a=Math.max(i,2),s=hU([n,r]),c=wp(s,2),u=c[0],h=c[1];if(u===-1/0||h===1/0){var p=h===1/0?[u].concat(PC(OC(0,i-1).map(function(){return 1/0}))):[].concat(PC(OC(0,i-1).map(function(){return-1/0})),[h]);return n>r?SC(p):p}if(u===h)return nge(u,i,o);var v=mU(u,h,a,o),b=v.step,x=v.tickMin,_=v.tickMax,w=hb.rangeStep(x,_.add(new Vt(.1).mul(b)),b);return n>r?SC(w):w}function ige(e,t){var n=wp(e,2),r=n[0],i=n[1],o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=hU([r,i]),s=wp(a,2),c=s[0],u=s[1];if(c===-1/0||u===1/0)return[r,i];if(c===u)return[c];var h=Math.max(t,2),p=pU(new Vt(u).sub(c).div(h-1),o,0),v=[].concat(PC(hb.rangeStep(new Vt(c),new Vt(u).sub(new Vt(.99).mul(p)),p)),[u]);return r>i?SC(v):v}var oge=fU(rge),age=fU(ige),sge="Invariant failed";function ju(e,t){throw new Error(sge)}var lge=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Sf(e){"@babel/helpers - typeof";return Sf=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},Sf(e)}function Ny(){return Ny=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ny.apply(this,arguments)}function uge(e,t){return hge(e)||dge(e,t)||fge(e,t)||cge()}function cge(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fge(e,t){if(e){if(typeof e=="string")return u6(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 u6(e,t)}}function u6(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 dge(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],c=!0,u=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(h){u=!0,i=h}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function hge(e){if(Array.isArray(e))return e}function pge(e,t){if(e==null)return{};var n=mge(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 mge(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 vge(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gge(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,yU(r.key),r)}}function yge(e,t,n){return t&&gge(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function bge(e,t,n){return t=My(t),_ge(e,vU()?Reflect.construct(t,n||[],My(e).constructor):t.apply(e,n))}function _ge(e,t){if(t&&(Sf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xge(e)}function xge(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(vU=function(){return!!e})()}function My(e){return My=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},My(e)}function wge(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&&EC(e,t)}function EC(e,t){return EC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},EC(e,t)}function gU(e,t,n){return t=yU(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yU(e){var t=Oge(e,"string");return Sf(t)=="symbol"?t:t+""}function Oge(e,t){if(Sf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Sf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var id=function(e){function t(){return vge(this,t),bge(this,t,arguments)}return wge(t,e),yge(t,[{key:"render",value:function(){var r=this.props,i=r.offset,o=r.layout,a=r.width,s=r.dataKey,c=r.data,u=r.dataPointFormatter,h=r.xAxis,p=r.yAxis,v=pge(r,lge),b=it(v,!1);this.props.direction==="x"&&h.type!=="number"&&ju();var x=c.map(function(_){var w=u(_,s),O=w.x,P=w.y,E=w.value,T=w.errorVal;if(!T)return null;var A=[],j,N;if(Array.isArray(T)){var $=uge(T,2);j=$[0],N=$[1]}else j=N=T;if(o==="vertical"){var W=h.scale,B=P+i,V=B+a,H=B-a,J=W(E-j),Q=W(E+N);A.push({x1:Q,y1:V,x2:Q,y2:H}),A.push({x1:J,y1:B,x2:Q,y2:B}),A.push({x1:J,y1:V,x2:J,y2:H})}else if(o==="horizontal"){var re=p.scale,ae=O+i,se=ae-a,oe=ae+a,K=re(E-j),G=re(E+N);A.push({x1:se,y1:G,x2:oe,y2:G}),A.push({x1:ae,y1:K,x2:ae,y2:G}),A.push({x1:se,y1:K,x2:oe,y2:K})}return Z.createElement(Pt,Ny({className:"recharts-errorBar",key:"bar-".concat(A.map(function(z){return"".concat(z.x1,"-").concat(z.x2,"-").concat(z.y1,"-").concat(z.y2)}))},b),A.map(function(z){return Z.createElement("line",Ny({},z,{key:"line-".concat(z.x1,"-").concat(z.x2,"-").concat(z.y1,"-").concat(z.y2)}))}))});return Z.createElement(Pt,{className:"recharts-errorBars"},x)}}])}(Z.Component);gU(id,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});gU(id,"displayName","ErrorBar");function Op(e){"@babel/helpers - typeof";return Op=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},Op(e)}function c6(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 Kl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?c6(Object(n),!0).forEach(function(r){Sge(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Sge(e,t,n){return t=Pge(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pge(e){var t=Cge(e,"string");return Op(t)=="symbol"?t:t+""}function Cge(e,t){if(Op(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Op(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var bU=function(t){var n=t.children,r=t.formattedGraphicalItems,i=t.legendWidth,o=t.legendContent,a=hi(n,tf);if(!a)return null;var s=tf.defaultProps,c=s!==void 0?Kl(Kl({},s),a.props):{},u;return a.props&&a.props.payload?u=a.props&&a.props.payload:o==="children"?u=(r||[]).reduce(function(h,p){var v=p.item,b=p.props,x=b.sectors||b.data||[];return h.concat(x.map(function(_){return{type:a.props.iconType||v.props.legendType,value:_.name,color:_.fill,payload:_}}))},[]):u=(r||[]).map(function(h){var p=h.item,v=p.type.defaultProps,b=v!==void 0?Kl(Kl({},v),p.props):{},x=b.dataKey,_=b.name,w=b.legendType,O=b.hide;return{inactive:O,dataKey:x,type:c.iconType||w||"square",color:Pj(p),value:_||x,payload:b}}),Kl(Kl(Kl({},c),tf.getWithHeight(a,i)),{},{payload:u,item:a})};function Sp(e){"@babel/helpers - typeof";return Sp=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},Sp(e)}function f6(e){return Age(e)||jge(e)||Tge(e)||Ege()}function Ege(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Tge(e,t){if(e){if(typeof e=="string")return TC(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 TC(e,t)}}function jge(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Age(e){if(Array.isArray(e))return TC(e)}function TC(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 d6(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 Pn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?d6(Object(n),!0).forEach(function(r){rf(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rf(e,t,n){return t=kge(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kge(e){var t=Rge(e,"string");return Sp(t)=="symbol"?t:t+""}function Rge(e,t){if(Sp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Sp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function on(e,t,n){return ft(e)||ft(t)?n:Wn(t)?vi(e,t,n):dt(t)?t(e):n}function Dh(e,t,n,r){var i=Ave(e,function(s){return on(s,t)});if(n==="number"){var o=i.filter(function(s){return Ve(s)||parseFloat(s)});return o.length?[fb(o),Gs(o)]:[1/0,-1/0]}var a=r?i.filter(function(s){return!ft(s)}):i;return a.map(function(s){return Wn(s)||s instanceof Date?s:""})}var Nge=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,a=-1,s=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(s<=1)return 0;if(o&&o.axisType==="angleAxis"&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var c=o.range,u=0;u<s;u++){var h=u>0?i[u-1].coordinate:i[s-1].coordinate,p=i[u].coordinate,v=u>=s-1?i[0].coordinate:i[u+1].coordinate,b=void 0;if(Pr(p-h)!==Pr(v-p)){var x=[];if(Pr(v-p)===Pr(c[1]-c[0])){b=v;var _=p+c[1]-c[0];x[0]=Math.min(_,(_+h)/2),x[1]=Math.max(_,(_+h)/2)}else{b=h;var w=v+c[1]-c[0];x[0]=Math.min(p,(w+p)/2),x[1]=Math.max(p,(w+p)/2)}var O=[Math.min(p,(b+p)/2),Math.max(p,(b+p)/2)];if(t>O[0]&&t<=O[1]||t>=x[0]&&t<=x[1]){a=i[u].index;break}}else{var P=Math.min(h,v),E=Math.max(h,v);if(t>(P+p)/2&&t<=(E+p)/2){a=i[u].index;break}}}else for(var T=0;T<s;T++)if(T===0&&t<=(r[T].coordinate+r[T+1].coordinate)/2||T>0&&T<s-1&&t>(r[T].coordinate+r[T-1].coordinate)/2&&t<=(r[T].coordinate+r[T+1].coordinate)/2||T===s-1&&t>(r[T].coordinate+r[T-1].coordinate)/2){a=r[T].index;break}return a},Pj=function(t){var n,r=t,i=r.type.displayName,o=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Pn(Pn({},t.type.defaultProps),t.props):t.props,a=o.stroke,s=o.fill,c;switch(i){case"Line":c=a;break;case"Area":case"Radar":c=a&&a!=="none"?a:s;break;default:c=s;break}return c},Mge=function(t){var n=t.barSize,r=t.totalSize,i=t.stackGroups,o=i===void 0?{}:i;if(!o)return{};for(var a={},s=Object.keys(o),c=0,u=s.length;c<u;c++)for(var h=o[s[c]].stackGroups,p=Object.keys(h),v=0,b=p.length;v<b;v++){var x=h[p[v]],_=x.items,w=x.cateAxisId,O=_.filter(function(N){return Ia(N.type).indexOf("Bar")>=0});if(O&&O.length){var P=O[0].type.defaultProps,E=P!==void 0?Pn(Pn({},P),O[0].props):O[0].props,T=E.barSize,A=E[w];a[A]||(a[A]=[]);var j=ft(T)?n:T;a[A].push({item:O[0],stackList:O.slice(1),barSize:ft(j)?void 0:Cr(j,r,0)})}}return a},Lge=function(t){var n=t.barGap,r=t.barCategoryGap,i=t.bandSize,o=t.sizeList,a=o===void 0?[]:o,s=t.maxBarSize,c=a.length;if(c<1)return null;var u=Cr(n,i,0,!0),h,p=[];if(a[0].barSize===+a[0].barSize){var v=!1,b=i/c,x=a.reduce(function(T,A){return T+A.barSize||0},0);x+=(c-1)*u,x>=i&&(x-=(c-1)*u,u=0),x>=i&&b>0&&(v=!0,b*=.9,x=c*b);var _=(i-x)/2>>0,w={offset:_-u,size:0};h=a.reduce(function(T,A){var j={item:A.item,position:{offset:w.offset+w.size+u,size:v?b:A.barSize}},N=[].concat(f6(T),[j]);return w=N[N.length-1].position,A.stackList&&A.stackList.length&&A.stackList.forEach(function($){N.push({item:$,position:w})}),N},p)}else{var O=Cr(r,i,0,!0);i-2*O-(c-1)*u<=0&&(u=0);var P=(i-2*O-(c-1)*u)/c;P>1&&(P>>=0);var E=s===+s?Math.min(P,s):P;h=a.reduce(function(T,A,j){var N=[].concat(f6(T),[{item:A.item,position:{offset:O+(P+u)*j+(P-E)/2,size:E}}]);return A.stackList&&A.stackList.length&&A.stackList.forEach(function($){N.push({item:$,position:N[N.length-1].position})}),N},p)}return h},Ige=function(t,n,r,i){var o=r.children,a=r.width,s=r.margin,c=a-(s.left||0)-(s.right||0),u=bU({children:o,legendWidth:c});if(u){var h=i||{},p=h.width,v=h.height,b=u.align,x=u.verticalAlign,_=u.layout;if((_==="vertical"||_==="horizontal"&&x==="middle")&&b!=="center"&&Ve(t[b]))return Pn(Pn({},t),{},rf({},b,t[b]+(p||0)));if((_==="horizontal"||_==="vertical"&&b==="center")&&x!=="middle"&&Ve(t[x]))return Pn(Pn({},t),{},rf({},x,t[x]+(v||0)))}return t},Dge=function(t,n,r){return ft(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},_U=function(t,n,r,i,o){var a=n.props.children,s=Ar(a,id).filter(function(u){return Dge(i,o,u.props.direction)});if(s&&s.length){var c=s.map(function(u){return u.props.dataKey});return t.reduce(function(u,h){var p=on(h,r);if(ft(p))return u;var v=Array.isArray(p)?[fb(p),Gs(p)]:[p,p],b=c.reduce(function(x,_){var w=on(h,_,0),O=v[0]-Math.abs(Array.isArray(w)?w[0]:w),P=v[1]+Math.abs(Array.isArray(w)?w[1]:w);return[Math.min(O,x[0]),Math.max(P,x[1])]},[1/0,-1/0]);return[Math.min(b[0],u[0]),Math.max(b[1],u[1])]},[1/0,-1/0])}return null},$ge=function(t,n,r,i,o){var a=n.map(function(s){return _U(t,s,r,o,i)}).filter(function(s){return!ft(s)});return a&&a.length?a.reduce(function(s,c){return[Math.min(s[0],c[0]),Math.max(s[1],c[1])]},[1/0,-1/0]):null},xU=function(t,n,r,i,o){var a=n.map(function(c){var u=c.props.dataKey;return r==="number"&&u&&_U(t,c,u,i)||Dh(t,u,r,o)});if(r==="number")return a.reduce(function(c,u){return[Math.min(c[0],u[0]),Math.max(c[1],u[1])]},[1/0,-1/0]);var s={};return a.reduce(function(c,u){for(var h=0,p=u.length;h<p;h++)s[u[h]]||(s[u[h]]=!0,c.push(u[h]));return c},[])},wU=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},OU=function(t,n,r,i){if(i)return t.map(function(c){return c.coordinate});var o,a,s=t.map(function(c){return c.coordinate===n&&(o=!0),c.coordinate===r&&(a=!0),c.coordinate});return o||s.push(n),a||s.push(r),s},Ma=function(t,n,r){if(!t)return null;var i=t.scale,o=t.duplicateDomain,a=t.type,s=t.range,c=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,u=(n||r)&&a==="category"&&i.bandwidth?i.bandwidth()/c:0;if(u=t.axisType==="angleAxis"&&(s==null?void 0:s.length)>=2?Pr(s[0]-s[1])*2*u:u,n&&(t.ticks||t.niceTicks)){var h=(t.ticks||t.niceTicks).map(function(p){var v=o?o.indexOf(p):p;return{coordinate:i(v)+u,value:p,offset:u}});return h.filter(function(p){return!Jf(p.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(p,v){return{coordinate:i(p)+u,value:p,index:v,offset:u}}):i.ticks&&!r?i.ticks(t.tickCount).map(function(p){return{coordinate:i(p)+u,value:p,offset:u}}):i.domain().map(function(p,v){return{coordinate:i(p)+u,value:o?o[p]:p,index:v,offset:u}})},sO=new WeakMap,Xv=function(t,n){if(typeof n!="function")return t;sO.has(t)||sO.set(t,new WeakMap);var r=sO.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},SU=function(t,n,r){var i=t.scale,o=t.type,a=t.layout,s=t.axisType;if(i==="auto")return a==="radial"&&s==="radiusAxis"?{scale:vp(),realScaleType:"band"}:a==="radial"&&s==="angleAxis"?{scale:Ty(),realScaleType:"linear"}:o==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:Ih(),realScaleType:"point"}:o==="category"?{scale:vp(),realScaleType:"band"}:{scale:Ty(),realScaleType:"linear"};if(am(i)){var c="scale".concat(Z0(i));return{scale:(XI[c]||Ih)(),realScaleType:XI[c]?c:"point"}}return dt(i)?{scale:i}:{scale:Ih(),realScaleType:"point"}},h6=1e-4,PU=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])-h6,a=Math.max(i[0],i[1])+h6,s=t(n[0]),c=t(n[r-1]);(s<o||s>a||c<o||c>a)&&t.domain([n[0],n[r-1]])}},Fge=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},Bge=function(t,n){if(!n||n.length!==2||!Ve(n[0])||!Ve(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(!Ve(t[0])||t[0]<r)&&(o[0]=r),(!Ve(t[1])||t[1]>i)&&(o[1]=i),o[0]>i&&(o[0]=i),o[1]<r&&(o[1]=r),o},Uge=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r<i;++r)for(var o=0,a=0,s=0;s<n;++s){var c=Jf(t[s][r][1])?t[s][r][0]:t[s][r][1];c>=0?(t[s][r][0]=o,t[s][r][1]=o+c,o=t[s][r][1]):(t[s][r][0]=a,t[s][r][1]=a+c,a=t[s][r][1])}},zge=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r<i;++r)for(var o=0,a=0;a<n;++a){var s=Jf(t[a][r][1])?t[a][r][0]:t[a][r][1];s>=0?(t[a][r][0]=o,t[a][r][1]=o+s,o=t[a][r][1]):(t[a][r][0]=0,t[a][r][1]=0)}},Vge={sign:Uge,expand:Ace,none:vf,silhouette:kce,wiggle:Rce,positive:zge},Wge=function(t,n,r){var i=n.map(function(s){return s.props.dataKey}),o=Vge[r],a=jce().keys(i).value(function(s,c){return+on(s,c,0)}).order(iC).offset(o);return a(t)},qge=function(t,n,r,i,o,a){if(!t)return null;var s=a?n.reverse():n,c={},u=s.reduce(function(p,v){var b,x=(b=v.type)!==null&&b!==void 0&&b.defaultProps?Pn(Pn({},v.type.defaultProps),v.props):v.props,_=x.stackId,w=x.hide;if(w)return p;var O=x[r],P=p[O]||{hasStack:!1,stackGroups:{}};if(Wn(_)){var E=P.stackGroups[_]||{numericAxisId:r,cateAxisId:i,items:[]};E.items.push(v),P.hasStack=!0,P.stackGroups[_]=E}else P.stackGroups[vl("_stackId_")]={numericAxisId:r,cateAxisId:i,items:[v]};return Pn(Pn({},p),{},rf({},O,P))},c),h={};return Object.keys(u).reduce(function(p,v){var b=u[v];if(b.hasStack){var x={};b.stackGroups=Object.keys(b.stackGroups).reduce(function(_,w){var O=b.stackGroups[w];return Pn(Pn({},_),{},rf({},w,{numericAxisId:r,cateAxisId:i,items:O.items,stackedData:Wge(t,O.items,o)}))},x)}return Pn(Pn({},p),{},rf({},v,b))},h)},CU=function(t,n){var r=n.realScaleType,i=n.type,o=n.tickCount,a=n.originalDomain,s=n.allowDecimals,c=r||n.scale;if(c!=="auto"&&c!=="linear")return null;if(o&&i==="number"&&a&&(a[0]==="auto"||a[1]==="auto")){var u=t.domain();if(!u.length)return null;var h=oge(u,o,s);return t.domain([fb(h),Gs(h)]),{niceTicks:h}}if(o&&i==="number"){var p=t.domain(),v=age(p,o,s);return{niceTicks:v}}return null};function Pf(e){var t=e.axis,n=e.ticks,r=e.bandSize,i=e.entry,o=e.index,a=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!ft(i[t.dataKey])){var s=cy(n,"value",i[t.dataKey]);if(s)return s.coordinate+r/2}return n[o]?n[o].coordinate+r/2:null}var c=on(i,ft(a)?t.dataKey:a);return ft(c)?null:t.scale(c)}var p6=function(t){var n=t.axis,r=t.ticks,i=t.offset,o=t.bandSize,a=t.entry,s=t.index;if(n.type==="category")return r[s]?r[s].coordinate+i:null;var c=on(a,n.dataKey,n.domain[s]);return ft(c)?null:n.scale(c)-o/2+i},Hge=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]},Gge=function(t,n){var r,i=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Pn(Pn({},t.type.defaultProps),t.props):t.props,o=i.stackId;if(Wn(o)){var a=n[o];if(a){var s=a.items.indexOf(t);return s>=0?a.stackedData[s]:null}}return null},Kge=function(t){return t.reduce(function(n,r){return[fb(r.concat([n[0]]).filter(Ve)),Gs(r.concat([n[1]]).filter(Ve))]},[1/0,-1/0])},EU=function(t,n,r){return Object.keys(t).reduce(function(i,o){var a=t[o],s=a.stackedData,c=s.reduce(function(u,h){var p=Kge(h.slice(n,r+1));return[Math.min(u[0],p[0]),Math.max(u[1],p[1])]},[1/0,-1/0]);return[Math.min(c[0],i[0]),Math.max(c[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},m6=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,v6=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,jC=function(t,n,r){if(dt(t))return t(n,r);if(!Array.isArray(t))return n;var i=[];if(Ve(t[0]))i[0]=r?t[0]:Math.min(t[0],n[0]);else if(m6.test(t[0])){var o=+m6.exec(t[0])[1];i[0]=n[0]-o}else dt(t[0])?i[0]=t[0](n[0]):i[0]=n[0];if(Ve(t[1]))i[1]=r?t[1]:Math.max(t[1],n[1]);else if(v6.test(t[1])){var a=+v6.exec(t[1])[1];i[1]=n[1]+a}else dt(t[1])?i[1]=t[1](n[1]):i[1]=n[1];return i},Ly=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=QT(n,function(p){return p.coordinate}),a=1/0,s=1,c=o.length;s<c;s++){var u=o[s],h=o[s-1];a=Math.min((u.coordinate||0)-(h.coordinate||0),a)}return a===1/0?0:a}return r?void 0:0},g6=function(t,n,r){return!t||!t.length||ll(t,vi(r,"type.defaultProps.domain"))?n:t},TU=function(t,n){var r=t.type.defaultProps?Pn(Pn({},t.type.defaultProps),t.props):t.props,i=r.dataKey,o=r.name,a=r.unit,s=r.formatter,c=r.tooltipType,u=r.chartType,h=r.hide;return Pn(Pn({},it(t,!1)),{},{dataKey:i,unit:a,formatter:s,name:o||i,color:Pj(t),value:on(n,i),type:c,payload:n,chartType:u,hide:h})};function Pp(e){"@babel/helpers - typeof";return Pp=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},Pp(e)}function y6(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 ka(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?y6(Object(n),!0).forEach(function(r){jU(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jU(e,t,n){return t=Yge(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yge(e){var t=Zge(e,"string");return Pp(t)=="symbol"?t:t+""}function Zge(e,t){if(Pp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Pp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Xge(e,t){return tye(e)||eye(e,t)||Jge(e,t)||Qge()}function Qge(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jge(e,t){if(e){if(typeof e=="string")return b6(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 b6(e,t)}}function b6(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 eye(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],c=!0,u=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(h){u=!0,i=h}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function tye(e){if(Array.isArray(e))return e}var Iy=Math.PI/180,nye=function(t){return t*180/Math.PI},Qt=function(t,n,r,i){return{x:t+Math.cos(-Iy*i)*r,y:n+Math.sin(-Iy*i)*r}},AU=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(n-(r.top||0)-(r.bottom||0)))/2},rye=function(t,n,r,i,o){var a=t.width,s=t.height,c=t.startAngle,u=t.endAngle,h=Cr(t.cx,a,a/2),p=Cr(t.cy,s,s/2),v=AU(a,s,r),b=Cr(t.innerRadius,v,0),x=Cr(t.outerRadius,v,v*.8),_=Object.keys(n);return _.reduce(function(w,O){var P=n[O],E=P.domain,T=P.reversed,A;if(ft(P.range))i==="angleAxis"?A=[c,u]:i==="radiusAxis"&&(A=[b,x]),T&&(A=[A[1],A[0]]);else{A=P.range;var j=A,N=Xge(j,2);c=N[0],u=N[1]}var $=SU(P,o),W=$.realScaleType,B=$.scale;B.domain(E).range(A),PU(B);var V=CU(B,ka(ka({},P),{},{realScaleType:W})),H=ka(ka(ka({},P),V),{},{range:A,radius:x,realScaleType:W,scale:B,cx:h,cy:p,innerRadius:b,outerRadius:x,startAngle:c,endAngle:u});return ka(ka({},w),{},jU({},O,H))},{})},iye=function(t,n){var r=t.x,i=t.y,o=n.x,a=n.y;return Math.sqrt(Math.pow(r-o,2)+Math.pow(i-a,2))},oye=function(t,n){var r=t.x,i=t.y,o=n.cx,a=n.cy,s=iye({x:r,y:i},{x:o,y:a});if(s<=0)return{radius:s};var c=(r-o)/s,u=Math.acos(c);return i>a&&(u=2*Math.PI-u),{radius:s,angle:nye(u),angleInRadian:u}},aye=function(t){var n=t.startAngle,r=t.endAngle,i=Math.floor(n/360),o=Math.floor(r/360),a=Math.min(i,o);return{startAngle:n-a*360,endAngle:r-a*360}},sye=function(t,n){var r=n.startAngle,i=n.endAngle,o=Math.floor(r/360),a=Math.floor(i/360),s=Math.min(o,a);return t+s*360},_6=function(t,n){var r=t.x,i=t.y,o=oye({x:r,y:i},n),a=o.radius,s=o.angle,c=n.innerRadius,u=n.outerRadius;if(a<c||a>u)return!1;if(a===0)return!0;var h=aye(n),p=h.startAngle,v=h.endAngle,b=s,x;if(p<=v){for(;b>v;)b-=360;for(;b<p;)b+=360;x=b>=p&&b<=v}else{for(;b>p;)b-=360;for(;b<v;)b+=360;x=b>=v&&b<=p}return x?ka(ka({},n),{},{radius:a,angle:sye(b,n)}):null},kU=function(t){return!F.isValidElement(t)&&!dt(t)&&typeof t!="boolean"?t.className:""};function Cp(e){"@babel/helpers - typeof";return Cp=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},Cp(e)}var lye=["offset"];function uye(e){return hye(e)||dye(e)||fye(e)||cye()}function cye(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fye(e,t){if(e){if(typeof e=="string")return AC(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 AC(e,t)}}function dye(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function hye(e){if(Array.isArray(e))return AC(e)}function AC(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 pye(e,t){if(e==null)return{};var n=mye(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 mye(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 x6(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 Vn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?x6(Object(n),!0).forEach(function(r){vye(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function vye(e,t,n){return t=gye(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gye(e){var t=yye(e,"string");return Cp(t)=="symbol"?t:t+""}function yye(e,t){if(Cp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Cp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ep(){return Ep=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},Ep.apply(this,arguments)}var bye=function(t){var n=t.value,r=t.formatter,i=ft(t.children)?n:t.children;return dt(r)?r(i):i},_ye=function(t,n){var r=Pr(n-t),i=Math.min(Math.abs(n-t),360);return r*i},xye=function(t,n,r){var i=t.position,o=t.viewBox,a=t.offset,s=t.className,c=o,u=c.cx,h=c.cy,p=c.innerRadius,v=c.outerRadius,b=c.startAngle,x=c.endAngle,_=c.clockWise,w=(p+v)/2,O=_ye(b,x),P=O>=0?1:-1,E,T;i==="insideStart"?(E=b+P*a,T=_):i==="insideEnd"?(E=x-P*a,T=!_):i==="end"&&(E=x+P*a,T=_),T=O<=0?T:!T;var A=Qt(u,h,w,E),j=Qt(u,h,w,E+(T?1:-1)*359),N="M".concat(A.x,",").concat(A.y,`
A`).concat(w,",").concat(w,",0,1,").concat(T?0:1,`,
`).concat(j.x,",").concat(j.y),$=ft(t.id)?vl("recharts-radial-line-"):t.id;return Z.createElement("text",Ep({},r,{dominantBaseline:"central",className:Be("recharts-radial-bar-label",s)}),Z.createElement("defs",null,Z.createElement("path",{id:$,d:N})),Z.createElement("textPath",{xlinkHref:"#".concat($)},n))},wye=function(t){var n=t.viewBox,r=t.offset,i=t.position,o=n,a=o.cx,s=o.cy,c=o.innerRadius,u=o.outerRadius,h=o.startAngle,p=o.endAngle,v=(h+p)/2;if(i==="outside"){var b=Qt(a,s,u+r,v),x=b.x,_=b.y;return{x,y:_,textAnchor:x>=a?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:a,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:a,y:s,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:a,y:s,textAnchor:"middle",verticalAnchor:"end"};var w=(c+u)/2,O=Qt(a,s,w,v),P=O.x,E=O.y;return{x:P,y:E,textAnchor:"middle",verticalAnchor:"middle"}},Oye=function(t){var n=t.viewBox,r=t.parentViewBox,i=t.offset,o=t.position,a=n,s=a.x,c=a.y,u=a.width,h=a.height,p=h>=0?1:-1,v=p*i,b=p>0?"end":"start",x=p>0?"start":"end",_=u>=0?1:-1,w=_*i,O=_>0?"end":"start",P=_>0?"start":"end";if(o==="top"){var E={x:s+u/2,y:c-p*i,textAnchor:"middle",verticalAnchor:b};return Vn(Vn({},E),r?{height:Math.max(c-r.y,0),width:u}:{})}if(o==="bottom"){var T={x:s+u/2,y:c+h+v,textAnchor:"middle",verticalAnchor:x};return Vn(Vn({},T),r?{height:Math.max(r.y+r.height-(c+h),0),width:u}:{})}if(o==="left"){var A={x:s-w,y:c+h/2,textAnchor:O,verticalAnchor:"middle"};return Vn(Vn({},A),r?{width:Math.max(A.x-r.x,0),height:h}:{})}if(o==="right"){var j={x:s+u+w,y:c+h/2,textAnchor:P,verticalAnchor:"middle"};return Vn(Vn({},j),r?{width:Math.max(r.x+r.width-j.x,0),height:h}:{})}var N=r?{width:u,height:h}:{};return o==="insideLeft"?Vn({x:s+w,y:c+h/2,textAnchor:P,verticalAnchor:"middle"},N):o==="insideRight"?Vn({x:s+u-w,y:c+h/2,textAnchor:O,verticalAnchor:"middle"},N):o==="insideTop"?Vn({x:s+u/2,y:c+v,textAnchor:"middle",verticalAnchor:x},N):o==="insideBottom"?Vn({x:s+u/2,y:c+h-v,textAnchor:"middle",verticalAnchor:b},N):o==="insideTopLeft"?Vn({x:s+w,y:c+v,textAnchor:P,verticalAnchor:x},N):o==="insideTopRight"?Vn({x:s+u-w,y:c+v,textAnchor:O,verticalAnchor:x},N):o==="insideBottomLeft"?Vn({x:s+w,y:c+h-v,textAnchor:P,verticalAnchor:b},N):o==="insideBottomRight"?Vn({x:s+u-w,y:c+h-v,textAnchor:O,verticalAnchor:b},N):Qf(o)&&(Ve(o.x)||uu(o.x))&&(Ve(o.y)||uu(o.y))?Vn({x:s+Cr(o.x,u),y:c+Cr(o.y,h),textAnchor:"end",verticalAnchor:"end"},N):Vn({x:s+u/2,y:c+h/2,textAnchor:"middle",verticalAnchor:"middle"},N)},Sye=function(t){return"cx"in t&&Ve(t.cx)};function Jn(e){var t=e.offset,n=t===void 0?5:t,r=pye(e,lye),i=Vn({offset:n},r),o=i.viewBox,a=i.position,s=i.value,c=i.children,u=i.content,h=i.className,p=h===void 0?"":h,v=i.textBreakAll;if(!o||ft(s)&&ft(c)&&!F.isValidElement(u)&&!dt(u))return null;if(F.isValidElement(u))return F.cloneElement(u,i);var b;if(dt(u)){if(b=F.createElement(u,i),F.isValidElement(b))return b}else b=bye(i);var x=Sye(o),_=it(i,!0);if(x&&(a==="insideStart"||a==="insideEnd"||a==="end"))return xye(i,b,_);var w=x?wye(i):Oye(i);return Z.createElement(Eu,Ep({className:Be("recharts-label",p)},_,w,{breakAll:v}),b)}Jn.displayName="Label";var RU=function(t){var n=t.cx,r=t.cy,i=t.angle,o=t.startAngle,a=t.endAngle,s=t.r,c=t.radius,u=t.innerRadius,h=t.outerRadius,p=t.x,v=t.y,b=t.top,x=t.left,_=t.width,w=t.height,O=t.clockWise,P=t.labelViewBox;if(P)return P;if(Ve(_)&&Ve(w)){if(Ve(p)&&Ve(v))return{x:p,y:v,width:_,height:w};if(Ve(b)&&Ve(x))return{x:b,y:x,width:_,height:w}}return Ve(p)&&Ve(v)?{x:p,y:v,width:0,height:0}:Ve(n)&&Ve(r)?{cx:n,cy:r,startAngle:o||i||0,endAngle:a||i||0,innerRadius:u||0,outerRadius:h||c||s||0,clockWise:O}:t.viewBox?t.viewBox:{}},Pye=function(t,n){return t?t===!0?Z.createElement(Jn,{key:"label-implicit",viewBox:n}):Wn(t)?Z.createElement(Jn,{key:"label-implicit",viewBox:n,value:t}):F.isValidElement(t)?t.type===Jn?F.cloneElement(t,{key:"label-implicit",viewBox:n}):Z.createElement(Jn,{key:"label-implicit",content:t,viewBox:n}):dt(t)?Z.createElement(Jn,{key:"label-implicit",content:t,viewBox:n}):Qf(t)?Z.createElement(Jn,Ep({viewBox:n},t,{key:"label-implicit"})):null:null},Cye=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=RU(t),a=Ar(i,Jn).map(function(c,u){return F.cloneElement(c,{viewBox:n||o,key:"label-".concat(u)})});if(!r)return a;var s=Pye(t.label,n||o);return[s].concat(uye(a))};Jn.parseViewBox=RU;Jn.renderCallByParent=Cye;var lO,w6;function Eye(){if(w6)return lO;w6=1;function e(t){var n=t==null?0:t.length;return n?t[n-1]:void 0}return lO=e,lO}var Tye=Eye();const jye=Nt(Tye);function Tp(e){"@babel/helpers - typeof";return Tp=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},Tp(e)}var Aye=["valueAccessor"],kye=["data","dataKey","clockWise","id","textBreakAll"];function Rye(e){return Iye(e)||Lye(e)||Mye(e)||Nye()}function Nye(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mye(e,t){if(e){if(typeof e=="string")return kC(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 kC(e,t)}}function Lye(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Iye(e){if(Array.isArray(e))return kC(e)}function kC(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 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 O6(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 S6(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?O6(Object(n),!0).forEach(function(r){Dye(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Dye(e,t,n){return t=$ye(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $ye(e){var t=Fye(e,"string");return Tp(t)=="symbol"?t:t+""}function Fye(e,t){if(Tp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Tp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function P6(e,t){if(e==null)return{};var n=Bye(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 Bye(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 Uye=function(t){return Array.isArray(t.value)?jye(t.value):t.value};function Oo(e){var t=e.valueAccessor,n=t===void 0?Uye:t,r=P6(e,Aye),i=r.data,o=r.dataKey,a=r.clockWise,s=r.id,c=r.textBreakAll,u=P6(r,kye);return!i||!i.length?null:Z.createElement(Pt,{className:"recharts-label-list"},i.map(function(h,p){var v=ft(o)?n(h,p):on(h&&h.payload,o),b=ft(s)?{}:{id:"".concat(s,"-").concat(p)};return Z.createElement(Jn,Dy({},it(h,!0),u,b,{parentViewBox:h.parentViewBox,value:v,textBreakAll:c,viewBox:Jn.parseViewBox(ft(a)?h:S6(S6({},h),{},{clockWise:a})),key:"label-".concat(p),index:p}))}))}Oo.displayName="LabelList";function zye(e,t){return e?e===!0?Z.createElement(Oo,{key:"labelList-implicit",data:t}):Z.isValidElement(e)||dt(e)?Z.createElement(Oo,{key:"labelList-implicit",data:t,content:e}):Qf(e)?Z.createElement(Oo,Dy({data:t},e,{key:"labelList-implicit"})):null:null}function Vye(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var r=e.children,i=Ar(r,Oo).map(function(a,s){return F.cloneElement(a,{data:t,key:"labelList-".concat(s)})});if(!n)return i;var o=zye(e.label,t);return[o].concat(Rye(i))}Oo.renderCallByParent=Vye;function jp(e){"@babel/helpers - typeof";return jp=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},jp(e)}function RC(){return RC=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},RC.apply(this,arguments)}function C6(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 E6(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?C6(Object(n),!0).forEach(function(r){Wye(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Wye(e,t,n){return t=qye(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qye(e){var t=Hye(e,"string");return jp(t)=="symbol"?t:t+""}function Hye(e,t){if(jp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(jp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Gye=function(t,n){var r=Pr(n-t),i=Math.min(Math.abs(n-t),359.999);return r*i},Qv=function(t){var n=t.cx,r=t.cy,i=t.radius,o=t.angle,a=t.sign,s=t.isExternal,c=t.cornerRadius,u=t.cornerIsExternal,h=c*(s?1:-1)+i,p=Math.asin(c/h)/Iy,v=u?o:o+a*p,b=Qt(n,r,h,v),x=Qt(n,r,i,v),_=u?o-a*p:o,w=Qt(n,r,h*Math.cos(p*Iy),_);return{center:b,circleTangency:x,lineTangency:w,theta:p}},NU=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,o=t.outerRadius,a=t.startAngle,s=t.endAngle,c=Gye(a,s),u=a+c,h=Qt(n,r,o,a),p=Qt(n,r,o,u),v="M ".concat(h.x,",").concat(h.y,`
A `).concat(o,",").concat(o,`,0,
`).concat(+(Math.abs(c)>180),",").concat(+(a>u),`,
`).concat(p.x,",").concat(p.y,`
`);if(i>0){var b=Qt(n,r,i,a),x=Qt(n,r,i,u);v+="L ".concat(x.x,",").concat(x.y,`
A `).concat(i,",").concat(i,`,0,
`).concat(+(Math.abs(c)>180),",").concat(+(a<=u),`,
`).concat(b.x,",").concat(b.y," Z")}else v+="L ".concat(n,",").concat(r," Z");return v},Kye=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,o=t.outerRadius,a=t.cornerRadius,s=t.forceCornerRadius,c=t.cornerIsExternal,u=t.startAngle,h=t.endAngle,p=Pr(h-u),v=Qv({cx:n,cy:r,radius:o,angle:u,sign:p,cornerRadius:a,cornerIsExternal:c}),b=v.circleTangency,x=v.lineTangency,_=v.theta,w=Qv({cx:n,cy:r,radius:o,angle:h,sign:-p,cornerRadius:a,cornerIsExternal:c}),O=w.circleTangency,P=w.lineTangency,E=w.theta,T=c?Math.abs(u-h):Math.abs(u-h)-_-E;if(T<0)return s?"M ".concat(x.x,",").concat(x.y,`
a`).concat(a,",").concat(a,",0,0,1,").concat(a*2,`,0
a`).concat(a,",").concat(a,",0,0,1,").concat(-a*2,`,0
`):NU({cx:n,cy:r,innerRadius:i,outerRadius:o,startAngle:u,endAngle:h});var A="M ".concat(x.x,",").concat(x.y,`
A`).concat(a,",").concat(a,",0,0,").concat(+(p<0),",").concat(b.x,",").concat(b.y,`
A`).concat(o,",").concat(o,",0,").concat(+(T>180),",").concat(+(p<0),",").concat(O.x,",").concat(O.y,`
A`).concat(a,",").concat(a,",0,0,").concat(+(p<0),",").concat(P.x,",").concat(P.y,`
`);if(i>0){var j=Qv({cx:n,cy:r,radius:i,angle:u,sign:p,isExternal:!0,cornerRadius:a,cornerIsExternal:c}),N=j.circleTangency,$=j.lineTangency,W=j.theta,B=Qv({cx:n,cy:r,radius:i,angle:h,sign:-p,isExternal:!0,cornerRadius:a,cornerIsExternal:c}),V=B.circleTangency,H=B.lineTangency,J=B.theta,Q=c?Math.abs(u-h):Math.abs(u-h)-W-J;if(Q<0&&a===0)return"".concat(A,"L").concat(n,",").concat(r,"Z");A+="L".concat(H.x,",").concat(H.y,`
A`).concat(a,",").concat(a,",0,0,").concat(+(p<0),",").concat(V.x,",").concat(V.y,`
A`).concat(i,",").concat(i,",0,").concat(+(Q>180),",").concat(+(p>0),",").concat(N.x,",").concat(N.y,`
A`).concat(a,",").concat(a,",0,0,").concat(+(p<0),",").concat($.x,",").concat($.y,"Z")}else A+="L".concat(n,",").concat(r,"Z");return A},Yye={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},MU=function(t){var n=E6(E6({},Yye),t),r=n.cx,i=n.cy,o=n.innerRadius,a=n.outerRadius,s=n.cornerRadius,c=n.forceCornerRadius,u=n.cornerIsExternal,h=n.startAngle,p=n.endAngle,v=n.className;if(a<o||h===p)return null;var b=Be("recharts-sector",v),x=a-o,_=Cr(s,x,0,!0),w;return _>0&&Math.abs(h-p)<360?w=Kye({cx:r,cy:i,innerRadius:o,outerRadius:a,cornerRadius:Math.min(_,x/2),forceCornerRadius:c,cornerIsExternal:u,startAngle:h,endAngle:p}):w=NU({cx:r,cy:i,innerRadius:o,outerRadius:a,startAngle:h,endAngle:p}),Z.createElement("path",RC({},it(n,!0),{className:b,d:w,role:"img"}))};function Ap(e){"@babel/helpers - typeof";return Ap=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},Ap(e)}function NC(){return NC=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},NC.apply(this,arguments)}function T6(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 j6(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?T6(Object(n),!0).forEach(function(r){Zye(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Zye(e,t,n){return t=Xye(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xye(e){var t=Qye(e,"string");return Ap(t)=="symbol"?t:t+""}function Qye(e,t){if(Ap(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ap(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var A6={curveBasisClosed:yce,curveBasisOpen:bce,curveBasis:gce,curveBumpX:rce,curveBumpY:ice,curveLinearClosed:_ce,curveLinear:Q0,curveMonotoneX:xce,curveMonotoneY:wce,curveNatural:Oce,curveStep:Sce,curveStepAfter:Cce,curveStepBefore:Pce},Jv=function(t){return t.x===+t.x&&t.y===+t.y},hh=function(t){return t.x},ph=function(t){return t.y},Jye=function(t,n){if(dt(t))return t;var r="curve".concat(Z0(t));return(r==="curveMonotone"||r==="curveBump")&&n?A6["".concat(r).concat(n==="vertical"?"Y":"X")]:A6[r]||Q0},e0e=function(t){var n=t.type,r=n===void 0?"linear":n,i=t.points,o=i===void 0?[]:i,a=t.baseLine,s=t.layout,c=t.connectNulls,u=c===void 0?!1:c,h=Jye(r,s),p=u?o.filter(function(_){return Jv(_)}):o,v;if(Array.isArray(a)){var b=u?a.filter(function(_){return Jv(_)}):a,x=p.map(function(_,w){return j6(j6({},_),{},{base:b[w]})});return s==="vertical"?v=Wv().y(ph).x1(hh).x0(function(_){return _.base.x}):v=Wv().x(hh).y1(ph).y0(function(_){return _.base.y}),v.defined(Jv).curve(h),v(x)}return s==="vertical"&&Ve(a)?v=Wv().y(ph).x1(hh).x0(a):Ve(a)?v=Wv().x(hh).y1(ph).y0(a):v=R7().x(hh).y(ph),v.defined(Jv).curve(h),v(p)},tl=function(t){var n=t.className,r=t.points,i=t.path,o=t.pathRef;if((!r||!r.length)&&!i)return null;var a=r&&r.length?e0e(t):i;return Z.createElement("path",NC({},it(t,!1),fy(t),{className:Be("recharts-curve",n),d:a,ref:o}))},t0e=Object.getOwnPropertyNames,n0e=Object.getOwnPropertySymbols,r0e=Object.prototype.hasOwnProperty;function k6(e,t){return function(r,i,o){return e(r,i,o)&&t(r,i,o)}}function eg(e){return function(n,r,i){if(!n||!r||typeof n!="object"||typeof r!="object")return e(n,r,i);var o=i.cache,a=o.get(n),s=o.get(r);if(a&&s)return a===r&&s===n;o.set(n,r),o.set(r,n);var c=e(n,r,i);return o.delete(n),o.delete(r),c}}function R6(e){return t0e(e).concat(n0e(e))}var LU=Object.hasOwn||function(e,t){return r0e.call(e,t)};function od(e,t){return e||t?e===t:e===t||e!==e&&t!==t}var IU="_owner",N6=Object.getOwnPropertyDescriptor,M6=Object.keys;function i0e(e,t,n){var 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 o0e(e,t){return od(e.getTime(),t.getTime())}function L6(e,t,n){if(e.size!==t.size)return!1;for(var r={},i=e.entries(),o=0,a,s;(a=i.next())&&!a.done;){for(var c=t.entries(),u=!1,h=0;(s=c.next())&&!s.done;){var p=a.value,v=p[0],b=p[1],x=s.value,_=x[0],w=x[1];!u&&!r[h]&&(u=n.equals(v,_,o,h,e,t,n)&&n.equals(b,w,v,_,e,t,n))&&(r[h]=!0),h++}if(!u)return!1;o++}return!0}function a0e(e,t,n){var r=M6(e),i=r.length;if(M6(t).length!==i)return!1;for(var o;i-- >0;)if(o=r[i],o===IU&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!LU(t,o)||!n.equals(e[o],t[o],o,o,e,t,n))return!1;return!0}function mh(e,t,n){var r=R6(e),i=r.length;if(R6(t).length!==i)return!1;for(var o,a,s;i-- >0;)if(o=r[i],o===IU&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!LU(t,o)||!n.equals(e[o],t[o],o,o,e,t,n)||(a=N6(e,o),s=N6(t,o),(a||s)&&(!a||!s||a.configurable!==s.configurable||a.enumerable!==s.enumerable||a.writable!==s.writable)))return!1;return!0}function s0e(e,t){return od(e.valueOf(),t.valueOf())}function l0e(e,t){return e.source===t.source&&e.flags===t.flags}function I6(e,t,n){if(e.size!==t.size)return!1;for(var r={},i=e.values(),o,a;(o=i.next())&&!o.done;){for(var s=t.values(),c=!1,u=0;(a=s.next())&&!a.done;)!c&&!r[u]&&(c=n.equals(o.value,a.value,o.value,a.value,e,t,n))&&(r[u]=!0),u++;if(!c)return!1}return!0}function u0e(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}var c0e="[object Arguments]",f0e="[object Boolean]",d0e="[object Date]",h0e="[object Map]",p0e="[object Number]",m0e="[object Object]",v0e="[object RegExp]",g0e="[object Set]",y0e="[object String]",b0e=Array.isArray,D6=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,$6=Object.assign,_0e=Object.prototype.toString.call.bind(Object.prototype.toString);function x0e(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areMapsEqual,i=e.areObjectsEqual,o=e.arePrimitiveWrappersEqual,a=e.areRegExpsEqual,s=e.areSetsEqual,c=e.areTypedArraysEqual;return function(h,p,v){if(h===p)return!0;if(h==null||p==null||typeof h!="object"||typeof p!="object")return h!==h&&p!==p;var b=h.constructor;if(b!==p.constructor)return!1;if(b===Object)return i(h,p,v);if(b0e(h))return t(h,p,v);if(D6!=null&&D6(h))return c(h,p,v);if(b===Date)return n(h,p,v);if(b===RegExp)return a(h,p,v);if(b===Map)return r(h,p,v);if(b===Set)return s(h,p,v);var x=_0e(h);return x===d0e?n(h,p,v):x===v0e?a(h,p,v):x===h0e?r(h,p,v):x===g0e?s(h,p,v):x===m0e?typeof h.then!="function"&&typeof p.then!="function"&&i(h,p,v):x===c0e?i(h,p,v):x===f0e||x===p0e||x===y0e?o(h,p,v):!1}}function w0e(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,i={areArraysEqual:r?mh:i0e,areDatesEqual:o0e,areMapsEqual:r?k6(L6,mh):L6,areObjectsEqual:r?mh:a0e,arePrimitiveWrappersEqual:s0e,areRegExpsEqual:l0e,areSetsEqual:r?k6(I6,mh):I6,areTypedArraysEqual:r?mh:u0e};if(n&&(i=$6({},i,n(i))),t){var o=eg(i.areArraysEqual),a=eg(i.areMapsEqual),s=eg(i.areObjectsEqual),c=eg(i.areSetsEqual);i=$6({},i,{areArraysEqual:o,areMapsEqual:a,areObjectsEqual:s,areSetsEqual:c})}return i}function O0e(e){return function(t,n,r,i,o,a,s){return e(t,n,s)}}function S0e(e){var t=e.circular,n=e.comparator,r=e.createState,i=e.equals,o=e.strict;if(r)return function(c,u){var h=r(),p=h.cache,v=p===void 0?t?new WeakMap:void 0:p,b=h.meta;return n(c,u,{cache:v,equals:i,meta:b,strict:o})};if(t)return function(c,u){return n(c,u,{cache:new WeakMap,equals:i,meta:void 0,strict:o})};var a={cache:void 0,equals:i,meta:void 0,strict:o};return function(c,u){return n(c,u,a)}}var P0e=bl();bl({strict:!0});bl({circular:!0});bl({circular:!0,strict:!0});bl({createInternalComparator:function(){return od}});bl({strict:!0,createInternalComparator:function(){return od}});bl({circular:!0,createInternalComparator:function(){return od}});bl({circular:!0,createInternalComparator:function(){return od},strict:!0});function bl(e){e===void 0&&(e={});var t=e.circular,n=t===void 0?!1:t,r=e.createInternalComparator,i=e.createState,o=e.strict,a=o===void 0?!1:o,s=w0e(e),c=x0e(s),u=r?r(c):O0e(c);return S0e({circular:n,comparator:c,createState:i,equals:u,strict:a})}function C0e(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function F6(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):C0e(i)};requestAnimationFrame(r)}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 E0e(e){return k0e(e)||A0e(e)||j0e(e)||T0e()}function T0e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function j0e(e,t){if(e){if(typeof e=="string")return B6(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 B6(e,t)}}function B6(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 A0e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function k0e(e){if(Array.isArray(e))return e}function R0e(){var e={},t=function(){return null},n=!1,r=function i(o){if(!n){if(Array.isArray(o)){if(!o.length)return;var a=o,s=E0e(a),c=s[0],u=s.slice(1);if(typeof c=="number"){F6(i.bind(null,u),c);return}i(c),F6(i.bind(null,u));return}MC(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 kp(e){"@babel/helpers - typeof";return kp=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},kp(e)}function U6(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 z6(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?U6(Object(n),!0).forEach(function(r){DU(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function DU(e,t,n){return t=N0e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function N0e(e){var t=M0e(e,"string");return kp(t)==="symbol"?t:String(t)}function M0e(e,t){if(kp(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(kp(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var L0e=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,i){return r.filter(function(o){return i.includes(o)})})},I0e=function(t){return t},D0e=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},$h=function(t,n){return Object.keys(n).reduce(function(r,i){return z6(z6({},r),{},DU({},i,t(i,n[i])))},{})},V6=function(t,n,r){return t.map(function(i){return"".concat(D0e(i)," ").concat(n,"ms ").concat(r)}).join(",")};function $0e(e,t){return U0e(e)||B0e(e,t)||$U(e,t)||F0e()}function F0e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function B0e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],c=!0,u=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(h){u=!0,i=h}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function U0e(e){if(Array.isArray(e))return e}function z0e(e){return q0e(e)||W0e(e)||$U(e)||V0e()}function V0e(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $U(e,t){if(e){if(typeof e=="string")return LC(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 LC(e,t)}}function W0e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function q0e(e){if(Array.isArray(e))return LC(e)}function LC(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 $y=1e-4,FU=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},BU=function(t,n){return t.map(function(r,i){return r*Math.pow(n,i)}).reduce(function(r,i){return r+i})},W6=function(t,n){return function(r){var i=FU(t,n);return BU(i,r)}},H0e=function(t,n){return function(r){var i=FU(t,n),o=[].concat(z0e(i.map(function(a,s){return a*s}).slice(1)),[0]);return BU(o,r)}},q6=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],a=n[2],s=n[3];if(n.length===1)switch(n[0]){case"linear":i=0,o=0,a=1,s=1;break;case"ease":i=.25,o=.1,a=.25,s=1;break;case"ease-in":i=.42,o=0,a=1,s=1;break;case"ease-out":i=.42,o=0,a=.58,s=1;break;case"ease-in-out":i=0,o=0,a=.58,s=1;break;default:{var c=n[0].split("(");if(c[0]==="cubic-bezier"&&c[1].split(")")[0].split(",").length===4){var u=c[1].split(")")[0].split(",").map(function(w){return parseFloat(w)}),h=$0e(u,4);i=h[0],o=h[1],a=h[2],s=h[3]}}}var p=W6(i,a),v=W6(o,s),b=H0e(i,a),x=function(O){return O>1?1:O<0?0:O},_=function(O){for(var P=O>1?1:O,E=P,T=0;T<8;++T){var A=p(E)-P,j=b(E);if(Math.abs(A-P)<$y||j<$y)return v(E);E=x(E-A/j)}return v(E)};return _.isStepper=!1,_},G0e=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,a=t.dt,s=a===void 0?17:a,c=function(h,p,v){var b=-(h-p)*r,x=v*o,_=v+(b-x)*s/1e3,w=v*s/1e3+h;return Math.abs(w-p)<$y&&Math.abs(_)<$y?[p,0]:[w,_]};return c.isStepper=!0,c.dt=s,c},K0e=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 q6(i);case"spring":return G0e();default:if(i.split("(")[0]==="cubic-bezier")return q6(i)}return typeof i=="function"?i:null};function Rp(e){"@babel/helpers - typeof";return Rp=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},Rp(e)}function H6(e){return X0e(e)||Z0e(e)||UU(e)||Y0e()}function Y0e(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Z0e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function X0e(e){if(Array.isArray(e))return DC(e)}function G6(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 ar(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?G6(Object(n),!0).forEach(function(r){IC(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function IC(e,t,n){return t=Q0e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Q0e(e){var t=J0e(e,"string");return Rp(t)==="symbol"?t:String(t)}function J0e(e,t){if(Rp(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Rp(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ebe(e,t){return rbe(e)||nbe(e,t)||UU(e,t)||tbe()}function tbe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function UU(e,t){if(e){if(typeof e=="string")return DC(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 DC(e,t)}}function DC(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 nbe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],c=!0,u=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(h){u=!0,i=h}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function rbe(e){if(Array.isArray(e))return e}var Fy=function(t,n,r){return t+(n-t)*r},$C=function(t){var n=t.from,r=t.to;return n!==r},ibe=function e(t,n,r){var i=$h(function(o,a){if($C(a)){var s=t(a.from,a.to,a.velocity),c=ebe(s,2),u=c[0],h=c[1];return ar(ar({},a),{},{from:u,velocity:h})}return a},n);return r<1?$h(function(o,a){return $C(a)?ar(ar({},a),{},{velocity:Fy(a.velocity,i[o].velocity,r),from:Fy(a.from,i[o].from,r)}):a},n):e(t,i,r-1)};const obe=function(e,t,n,r,i){var o=L0e(e,t),a=o.reduce(function(w,O){return ar(ar({},w),{},IC({},O,[e[O],t[O]]))},{}),s=o.reduce(function(w,O){return ar(ar({},w),{},IC({},O,{from:e[O],velocity:0,to:t[O]}))},{}),c=-1,u,h,p=function(){return null},v=function(){return $h(function(O,P){return P.from},s)},b=function(){return!Object.values(s).filter($C).length},x=function(O){u||(u=O);var P=O-u,E=P/n.dt;s=ibe(n,s,E),i(ar(ar(ar({},e),t),v())),u=O,b()||(c=requestAnimationFrame(p))},_=function(O){h||(h=O);var P=(O-h)/r,E=$h(function(A,j){return Fy.apply(void 0,H6(j).concat([n(P)]))},a);if(i(ar(ar(ar({},e),t),E)),P<1)c=requestAnimationFrame(p);else{var T=$h(function(A,j){return Fy.apply(void 0,H6(j).concat([n(1)]))},a);i(ar(ar(ar({},e),t),T))}};return p=n.isStepper?x:_,function(){return requestAnimationFrame(p),function(){cancelAnimationFrame(c)}}};function Cf(e){"@babel/helpers - typeof";return Cf=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},Cf(e)}var abe=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function sbe(e,t){if(e==null)return{};var n=lbe(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 lbe(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 uO(e){return dbe(e)||fbe(e)||cbe(e)||ube()}function ube(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cbe(e,t){if(e){if(typeof e=="string")return FC(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 FC(e,t)}}function fbe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function dbe(e){if(Array.isArray(e))return FC(e)}function FC(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 K6(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 mo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?K6(Object(n),!0).forEach(function(r){Ph(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ph(e,t,n){return t=zU(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hbe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pbe(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,zU(r.key),r)}}function mbe(e,t,n){return t&&pbe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function zU(e){var t=vbe(e,"string");return Cf(t)==="symbol"?t:String(t)}function vbe(e,t){if(Cf(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Cf(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gbe(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&&BC(e,t)}function BC(e,t){return BC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},BC(e,t)}function ybe(e){var t=bbe();return function(){var r=By(e),i;if(t){var o=By(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return UC(this,i)}}function UC(e,t){if(t&&(Cf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return zC(e)}function zC(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bbe(){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 By(e){return By=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},By(e)}var Ji=function(e){gbe(n,e);var t=ybe(n);function n(r,i){var o;hbe(this,n),o=t.call(this,r,i);var a=o.props,s=a.isActive,c=a.attributeName,u=a.from,h=a.to,p=a.steps,v=a.children,b=a.duration;if(o.handleStyleChange=o.handleStyleChange.bind(zC(o)),o.changeStyle=o.changeStyle.bind(zC(o)),!s||b<=0)return o.state={style:{}},typeof v=="function"&&(o.state={style:h}),UC(o);if(p&&p.length)o.state={style:p[0].style};else if(u){if(typeof v=="function")return o.state={style:u},UC(o);o.state={style:c?Ph({},c,u):u}}else o.state={style:{}};return o}return mbe(n,[{key:"componentDidMount",value:function(){var i=this.props,o=i.isActive,a=i.canBegin;this.mounted=!0,!(!o||!a)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var o=this.props,a=o.isActive,s=o.canBegin,c=o.attributeName,u=o.shouldReAnimate,h=o.to,p=o.from,v=this.state.style;if(s){if(!a){var b={style:c?Ph({},c,h):h};this.state&&v&&(c&&v[c]!==h||!c&&v!==h)&&this.setState(b);return}if(!(P0e(i.to,h)&&i.canBegin&&i.isActive)){var x=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var _=x||u?p:i.to;if(this.state&&v){var w={style:c?Ph({},c,_):_};(c&&v[c]!==_||!c&&v!==_)&&this.setState(w)}this.runAnimation(mo(mo({},this.props),{},{from:_,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var o=this,a=i.from,s=i.to,c=i.duration,u=i.easing,h=i.begin,p=i.onAnimationEnd,v=i.onAnimationStart,b=obe(a,s,K0e(u),c,this.changeStyle),x=function(){o.stopJSAnimation=b()};this.manager.start([v,h,x,c,p])}},{key:"runStepAnimation",value:function(i){var o=this,a=i.steps,s=i.begin,c=i.onAnimationStart,u=a[0],h=u.style,p=u.duration,v=p===void 0?0:p,b=function(_,w,O){if(O===0)return _;var P=w.duration,E=w.easing,T=E===void 0?"ease":E,A=w.style,j=w.properties,N=w.onAnimationEnd,$=O>0?a[O-1]:w,W=j||Object.keys(A);if(typeof T=="function"||T==="spring")return[].concat(uO(_),[o.runJSAnimation.bind(o,{from:$.style,to:A,duration:P,easing:T}),P]);var B=V6(W,P,T),V=mo(mo(mo({},$.style),A),{},{transition:B});return[].concat(uO(_),[V,P,N]).filter(I0e)};return this.manager.start([c].concat(uO(a.reduce(b,[h,Math.max(v,s)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=R0e());var o=i.begin,a=i.duration,s=i.attributeName,c=i.to,u=i.easing,h=i.onAnimationStart,p=i.onAnimationEnd,v=i.steps,b=i.children,x=this.manager;if(this.unSubscribe=x.subscribe(this.handleStyleChange),typeof u=="function"||typeof b=="function"||u==="spring"){this.runJSAnimation(i);return}if(v.length>1){this.runStepAnimation(i);return}var _=s?Ph({},s,c):c,w=V6(Object.keys(_),a,u);x.start([h,o,mo(mo({},_),{},{transition:w}),a,p])}},{key:"render",value:function(){var i=this.props,o=i.children;i.begin;var a=i.duration;i.attributeName,i.easing;var s=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var c=sbe(i,abe),u=F.Children.count(o),h=this.state.style;if(typeof o=="function")return o(h);if(!s||u===0||a<=0)return o;var p=function(b){var x=b.props,_=x.style,w=_===void 0?{}:_,O=x.className,P=F.cloneElement(b,mo(mo({},c),{},{style:mo(mo({},w),h),className:O}));return P};return u===1?p(F.Children.only(o)):Z.createElement("div",null,F.Children.map(o,function(v){return p(v)}))}}]),n}(F.PureComponent);Ji.displayName="Animate";Ji.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Ji.propTypes={from:q.oneOfType([q.object,q.string]),to:q.oneOfType([q.object,q.string]),attributeName:q.string,duration:q.number,begin:q.number,easing:q.oneOfType([q.string,q.func]),steps:q.arrayOf(q.shape({duration:q.number.isRequired,style:q.object.isRequired,easing:q.oneOfType([q.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),q.func]),properties:q.arrayOf("string"),onAnimationEnd:q.func})),children:q.oneOfType([q.node,q.func]),isActive:q.bool,canBegin:q.bool,onAnimationEnd:q.func,shouldReAnimate:q.bool,onAnimationStart:q.func,onAnimationReStart:q.func};q.object,q.object,q.object,q.element;q.object,q.object,q.object,q.oneOfType([q.array,q.element]),q.any;function Np(e){"@babel/helpers - typeof";return Np=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},Np(e)}function Uy(){return Uy=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},Uy.apply(this,arguments)}function _be(e,t){return Sbe(e)||Obe(e,t)||wbe(e,t)||xbe()}function xbe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wbe(e,t){if(e){if(typeof e=="string")return Y6(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 Y6(e,t)}}function Y6(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 Obe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],c=!0,u=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(h){u=!0,i=h}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function Sbe(e){if(Array.isArray(e))return e}function Z6(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 X6(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Z6(Object(n),!0).forEach(function(r){Pbe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Pbe(e,t,n){return t=Cbe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cbe(e){var t=Ebe(e,"string");return Np(t)=="symbol"?t:t+""}function Ebe(e,t){if(Np(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Np(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Q6=function(t,n,r,i,o){var a=Math.min(Math.abs(r)/2,Math.abs(i)/2),s=i>=0?1:-1,c=r>=0?1:-1,u=i>=0&&r>=0||i<0&&r<0?1:0,h;if(a>0&&o instanceof Array){for(var p=[0,0,0,0],v=0,b=4;v<b;v++)p[v]=o[v]>a?a:o[v];h="M".concat(t,",").concat(n+s*p[0]),p[0]>0&&(h+="A ".concat(p[0],",").concat(p[0],",0,0,").concat(u,",").concat(t+c*p[0],",").concat(n)),h+="L ".concat(t+r-c*p[1],",").concat(n),p[1]>0&&(h+="A ".concat(p[1],",").concat(p[1],",0,0,").concat(u,`,
`).concat(t+r,",").concat(n+s*p[1])),h+="L ".concat(t+r,",").concat(n+i-s*p[2]),p[2]>0&&(h+="A ".concat(p[2],",").concat(p[2],",0,0,").concat(u,`,
`).concat(t+r-c*p[2],",").concat(n+i)),h+="L ".concat(t+c*p[3],",").concat(n+i),p[3]>0&&(h+="A ".concat(p[3],",").concat(p[3],",0,0,").concat(u,`,
`).concat(t,",").concat(n+i-s*p[3])),h+="Z"}else if(a>0&&o===+o&&o>0){var x=Math.min(a,o);h="M ".concat(t,",").concat(n+s*x,`
A `).concat(x,",").concat(x,",0,0,").concat(u,",").concat(t+c*x,",").concat(n,`
L `).concat(t+r-c*x,",").concat(n,`
A `).concat(x,",").concat(x,",0,0,").concat(u,",").concat(t+r,",").concat(n+s*x,`
L `).concat(t+r,",").concat(n+i-s*x,`
A `).concat(x,",").concat(x,",0,0,").concat(u,",").concat(t+r-c*x,",").concat(n+i,`
L `).concat(t+c*x,",").concat(n+i,`
A `).concat(x,",").concat(x,",0,0,").concat(u,",").concat(t,",").concat(n+i-s*x," Z")}else h="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(i," h ").concat(-r," Z");return h},Tbe=function(t,n){if(!t||!n)return!1;var r=t.x,i=t.y,o=n.x,a=n.y,s=n.width,c=n.height;if(Math.abs(s)>0&&Math.abs(c)>0){var u=Math.min(o,o+s),h=Math.max(o,o+s),p=Math.min(a,a+c),v=Math.max(a,a+c);return r>=u&&r<=h&&i>=p&&i<=v}return!1},jbe={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Cj=function(t){var n=X6(X6({},jbe),t),r=F.useRef(),i=F.useState(-1),o=_be(i,2),a=o[0],s=o[1];F.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var T=r.current.getTotalLength();T&&s(T)}catch{}},[]);var c=n.x,u=n.y,h=n.width,p=n.height,v=n.radius,b=n.className,x=n.animationEasing,_=n.animationDuration,w=n.animationBegin,O=n.isAnimationActive,P=n.isUpdateAnimationActive;if(c!==+c||u!==+u||h!==+h||p!==+p||h===0||p===0)return null;var E=Be("recharts-rectangle",b);return P?Z.createElement(Ji,{canBegin:a>0,from:{width:h,height:p,x:c,y:u},to:{width:h,height:p,x:c,y:u},duration:_,animationEasing:x,isActive:P},function(T){var A=T.width,j=T.height,N=T.x,$=T.y;return Z.createElement(Ji,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:w,duration:_,isActive:O,easing:x},Z.createElement("path",Uy({},it(n,!0),{className:E,d:Q6(N,$,A,j,v),ref:r})))}):Z.createElement("path",Uy({},it(n,!0),{className:E,d:Q6(c,u,h,p,v)}))},Abe=["points","className","baseLinePoints","connectNulls"];function Kc(){return Kc=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},Kc.apply(this,arguments)}function kbe(e,t){if(e==null)return{};var n=Rbe(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 Rbe(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 J6(e){return Ibe(e)||Lbe(e)||Mbe(e)||Nbe()}function Nbe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mbe(e,t){if(e){if(typeof e=="string")return VC(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 VC(e,t)}}function Lbe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ibe(e){if(Array.isArray(e))return VC(e)}function VC(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 eD=function(t){return t&&t.x===+t.x&&t.y===+t.y},Dbe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return t.forEach(function(r){eD(r)?n[n.length-1].push(r):n[n.length-1].length>0&&n.push([])}),eD(t[0])&&n[n.length-1].push(t[0]),n[n.length-1].length<=0&&(n=n.slice(0,-1)),n},Fh=function(t,n){var r=Dbe(t);n&&(r=[r.reduce(function(o,a){return[].concat(J6(o),J6(a))},[])]);var i=r.map(function(o){return o.reduce(function(a,s,c){return"".concat(a).concat(c===0?"M":"L").concat(s.x,",").concat(s.y)},"")}).join("");return r.length===1?"".concat(i,"Z"):i},$be=function(t,n,r){var i=Fh(t,r);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(Fh(n.reverse(),r).slice(1))},Fbe=function(t){var n=t.points,r=t.className,i=t.baseLinePoints,o=t.connectNulls,a=kbe(t,Abe);if(!n||!n.length)return null;var s=Be("recharts-polygon",r);if(i&&i.length){var c=a.stroke&&a.stroke!=="none",u=$be(n,i,o);return Z.createElement("g",{className:s},Z.createElement("path",Kc({},it(a,!0),{fill:u.slice(-1)==="Z"?a.fill:"none",stroke:"none",d:u})),c?Z.createElement("path",Kc({},it(a,!0),{fill:"none",d:Fh(n,o)})):null,c?Z.createElement("path",Kc({},it(a,!0),{fill:"none",d:Fh(i,o)})):null)}var h=Fh(n,o);return Z.createElement("path",Kc({},it(a,!0),{fill:h.slice(-1)==="Z"?a.fill:"none",className:s,d:h}))};function WC(){return WC=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},WC.apply(this,arguments)}var dm=function(t){var n=t.cx,r=t.cy,i=t.r,o=t.className,a=Be("recharts-dot",o);return n===+n&&r===+r&&i===+i?Z.createElement("circle",WC({},it(t,!1),fy(t),{className:a,cx:n,cy:r,r:i})):null};function Mp(e){"@babel/helpers - typeof";return Mp=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},Mp(e)}var Bbe=["x","y","top","left","width","height","className"];function qC(){return qC=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},qC.apply(this,arguments)}function tD(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 Ube(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tD(Object(n),!0).forEach(function(r){zbe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zbe(e,t,n){return t=Vbe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vbe(e){var t=Wbe(e,"string");return Mp(t)=="symbol"?t:t+""}function Wbe(e,t){if(Mp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Mp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qbe(e,t){if(e==null)return{};var n=Hbe(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 Hbe(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 Gbe=function(t,n,r,i,o,a){return"M".concat(t,",").concat(o,"v").concat(i,"M").concat(a,",").concat(n,"h").concat(r)},Kbe=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,o=i===void 0?0:i,a=t.top,s=a===void 0?0:a,c=t.left,u=c===void 0?0:c,h=t.width,p=h===void 0?0:h,v=t.height,b=v===void 0?0:v,x=t.className,_=qbe(t,Bbe),w=Ube({x:r,y:o,top:s,left:u,width:p,height:b},_);return!Ve(r)||!Ve(o)||!Ve(p)||!Ve(b)||!Ve(s)||!Ve(u)?null:Z.createElement("path",qC({},it(w,!0),{className:Be("recharts-cross",x),d:Gbe(r,o,p,b,s,u)}))},cO,nD;function Ybe(){if(nD)return cO;nD=1;var e=cb(),t=nU(),n=la();function r(i,o){return i&&i.length?e(i,n(o,2),t):void 0}return cO=r,cO}var Zbe=Ybe();const Xbe=Nt(Zbe);var fO,rD;function Qbe(){if(rD)return fO;rD=1;var e=cb(),t=la(),n=rU();function r(i,o){return i&&i.length?e(i,t(o,2),n):void 0}return fO=r,fO}var Jbe=Qbe();const e_e=Nt(Jbe);var t_e=["cx","cy","angle","ticks","axisLine"],n_e=["ticks","tick","angle","tickFormatter","stroke"];function Ef(e){"@babel/helpers - typeof";return Ef=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},Ef(e)}function Bh(){return Bh=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},Bh.apply(this,arguments)}function iD(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 Yl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?iD(Object(n),!0).forEach(function(r){pb(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function oD(e,t){if(e==null)return{};var n=r_e(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 r_e(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 i_e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aD(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,WU(r.key),r)}}function o_e(e,t,n){return t&&aD(e.prototype,t),n&&aD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function a_e(e,t,n){return t=zy(t),s_e(e,VU()?Reflect.construct(t,n||[],zy(e).constructor):t.apply(e,n))}function s_e(e,t){if(t&&(Ef(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return l_e(e)}function l_e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function VU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(VU=function(){return!!e})()}function zy(e){return zy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},zy(e)}function u_e(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&&HC(e,t)}function HC(e,t){return HC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},HC(e,t)}function pb(e,t,n){return t=WU(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WU(e){var t=c_e(e,"string");return Ef(t)=="symbol"?t:t+""}function c_e(e,t){if(Ef(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ef(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var mb=function(e){function t(){return i_e(this,t),a_e(this,t,arguments)}return u_e(t,e),o_e(t,[{key:"getTickValueCoord",value:function(r){var i=r.coordinate,o=this.props,a=o.angle,s=o.cx,c=o.cy;return Qt(s,c,i,a)}},{key:"getTickTextAnchor",value:function(){var r=this.props.orientation,i;switch(r){case"left":i="end";break;case"right":i="start";break;default:i="middle";break}return i}},{key:"getViewBox",value:function(){var r=this.props,i=r.cx,o=r.cy,a=r.angle,s=r.ticks,c=Xbe(s,function(h){return h.coordinate||0}),u=e_e(s,function(h){return h.coordinate||0});return{cx:i,cy:o,startAngle:a,endAngle:a,innerRadius:u.coordinate||0,outerRadius:c.coordinate||0}}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.cx,o=r.cy,a=r.angle,s=r.ticks,c=r.axisLine,u=oD(r,t_e),h=s.reduce(function(x,_){return[Math.min(x[0],_.coordinate),Math.max(x[1],_.coordinate)]},[1/0,-1/0]),p=Qt(i,o,h[0],a),v=Qt(i,o,h[1],a),b=Yl(Yl(Yl({},it(u,!1)),{},{fill:"none"},it(c,!1)),{},{x1:p.x,y1:p.y,x2:v.x,y2:v.y});return Z.createElement("line",Bh({className:"recharts-polar-radius-axis-line"},b))}},{key:"renderTicks",value:function(){var r=this,i=this.props,o=i.ticks,a=i.tick,s=i.angle,c=i.tickFormatter,u=i.stroke,h=oD(i,n_e),p=this.getTickTextAnchor(),v=it(h,!1),b=it(a,!1),x=o.map(function(_,w){var O=r.getTickValueCoord(_),P=Yl(Yl(Yl(Yl({textAnchor:p,transform:"rotate(".concat(90-s,", ").concat(O.x,", ").concat(O.y,")")},v),{},{stroke:"none",fill:u},b),{},{index:w},O),{},{payload:_});return Z.createElement(Pt,Bh({className:Be("recharts-polar-radius-axis-tick",kU(a)),key:"tick-".concat(_.coordinate)},sl(r.props,_,w)),t.renderTickItem(a,P,c?c(_.value,w):_.value))});return Z.createElement(Pt,{className:"recharts-polar-radius-axis-ticks"},x)}},{key:"render",value:function(){var r=this.props,i=r.ticks,o=r.axisLine,a=r.tick;return!i||!i.length?null:Z.createElement(Pt,{className:Be("recharts-polar-radius-axis",this.props.className)},o&&this.renderAxisLine(),a&&this.renderTicks(),Jn.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(r,i,o){var a;return Z.isValidElement(r)?a=Z.cloneElement(r,i):dt(r)?a=r(i):a=Z.createElement(Eu,Bh({},i,{className:"recharts-polar-radius-axis-tick-value"}),o),a}}])}(F.PureComponent);pb(mb,"displayName","PolarRadiusAxis");pb(mb,"axisType","radiusAxis");pb(mb,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});function Tf(e){"@babel/helpers - typeof";return Tf=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},Tf(e)}function ou(){return ou=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},ou.apply(this,arguments)}function sD(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 Zl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sD(Object(n),!0).forEach(function(r){vb(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function f_e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lD(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,HU(r.key),r)}}function d_e(e,t,n){return t&&lD(e.prototype,t),n&&lD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function h_e(e,t,n){return t=Vy(t),p_e(e,qU()?Reflect.construct(t,n||[],Vy(e).constructor):t.apply(e,n))}function p_e(e,t){if(t&&(Tf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return m_e(e)}function m_e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(qU=function(){return!!e})()}function Vy(e){return Vy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Vy(e)}function v_e(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&&GC(e,t)}function GC(e,t){return GC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},GC(e,t)}function vb(e,t,n){return t=HU(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HU(e){var t=g_e(e,"string");return Tf(t)=="symbol"?t:t+""}function g_e(e,t){if(Tf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Tf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var y_e=Math.PI/180,uD=1e-5,gb=function(e){function t(){return f_e(this,t),h_e(this,t,arguments)}return v_e(t,e),d_e(t,[{key:"getTickLineCoord",value:function(r){var i=this.props,o=i.cx,a=i.cy,s=i.radius,c=i.orientation,u=i.tickSize,h=u||8,p=Qt(o,a,s,r.coordinate),v=Qt(o,a,s+(c==="inner"?-1:1)*h,r.coordinate);return{x1:p.x,y1:p.y,x2:v.x,y2:v.y}}},{key:"getTickTextAnchor",value:function(r){var i=this.props.orientation,o=Math.cos(-r.coordinate*y_e),a;return o>uD?a=i==="outer"?"start":"end":o<-uD?a=i==="outer"?"end":"start":a="middle",a}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.cx,o=r.cy,a=r.radius,s=r.axisLine,c=r.axisLineType,u=Zl(Zl({},it(this.props,!1)),{},{fill:"none"},it(s,!1));if(c==="circle")return Z.createElement(dm,ou({className:"recharts-polar-angle-axis-line"},u,{cx:i,cy:o,r:a}));var h=this.props.ticks,p=h.map(function(v){return Qt(i,o,a,v.coordinate)});return Z.createElement(Fbe,ou({className:"recharts-polar-angle-axis-line"},u,{points:p}))}},{key:"renderTicks",value:function(){var r=this,i=this.props,o=i.ticks,a=i.tick,s=i.tickLine,c=i.tickFormatter,u=i.stroke,h=it(this.props,!1),p=it(a,!1),v=Zl(Zl({},h),{},{fill:"none"},it(s,!1)),b=o.map(function(x,_){var w=r.getTickLineCoord(x),O=r.getTickTextAnchor(x),P=Zl(Zl(Zl({textAnchor:O},h),{},{stroke:"none",fill:u},p),{},{index:_,payload:x,x:w.x2,y:w.y2});return Z.createElement(Pt,ou({className:Be("recharts-polar-angle-axis-tick",kU(a)),key:"tick-".concat(x.coordinate)},sl(r.props,x,_)),s&&Z.createElement("line",ou({className:"recharts-polar-angle-axis-tick-line"},v,w)),a&&t.renderTickItem(a,P,c?c(x.value,_):x.value))});return Z.createElement(Pt,{className:"recharts-polar-angle-axis-ticks"},b)}},{key:"render",value:function(){var r=this.props,i=r.ticks,o=r.radius,a=r.axisLine;return o<=0||!i||!i.length?null:Z.createElement(Pt,{className:Be("recharts-polar-angle-axis",this.props.className)},a&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(r,i,o){var a;return Z.isValidElement(r)?a=Z.cloneElement(r,i):dt(r)?a=r(i):a=Z.createElement(Eu,ou({},i,{className:"recharts-polar-angle-axis-tick-value"}),o),a}}])}(F.PureComponent);vb(gb,"displayName","PolarAngleAxis");vb(gb,"axisType","angleAxis");vb(gb,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var dO,cD;function b_e(){if(cD)return dO;cD=1;var e=tB(),t=e(Object.getPrototypeOf,Object);return dO=t,dO}var hO,fD;function __e(){if(fD)return hO;fD=1;var e=es(),t=b_e(),n=ts(),r="[object Object]",i=Function.prototype,o=Object.prototype,a=i.toString,s=o.hasOwnProperty,c=a.call(Object);function u(h){if(!n(h)||e(h)!=r)return!1;var p=t(h);if(p===null)return!0;var v=s.call(p,"constructor")&&p.constructor;return typeof v=="function"&&v instanceof v&&a.call(v)==c}return hO=u,hO}var x_e=__e();const w_e=Nt(x_e);var pO,dD;function O_e(){if(dD)return pO;dD=1;var e=es(),t=ts(),n="[object Boolean]";function r(i){return i===!0||i===!1||t(i)&&e(i)==n}return pO=r,pO}var S_e=O_e();const P_e=Nt(S_e);function Lp(e){"@babel/helpers - typeof";return Lp=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},Lp(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 C_e(e,t){return A_e(e)||j_e(e,t)||T_e(e,t)||E_e()}function E_e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function T_e(e,t){if(e){if(typeof e=="string")return hD(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 hD(e,t)}}function hD(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 j_e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],c=!0,u=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(h){u=!0,i=h}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function A_e(e){if(Array.isArray(e))return e}function pD(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 mD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pD(Object(n),!0).forEach(function(r){k_e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function k_e(e,t,n){return t=R_e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R_e(e){var t=N_e(e,"string");return Lp(t)=="symbol"?t:t+""}function N_e(e,t){if(Lp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Lp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var vD=function(t,n,r,i,o){var a=r-i,s;return s="M ".concat(t,",").concat(n),s+="L ".concat(t+r,",").concat(n),s+="L ".concat(t+r-a/2,",").concat(n+o),s+="L ".concat(t+r-a/2-i,",").concat(n+o),s+="L ".concat(t,",").concat(n," Z"),s},M_e={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},L_e=function(t){var n=mD(mD({},M_e),t),r=F.useRef(),i=F.useState(-1),o=C_e(i,2),a=o[0],s=o[1];F.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var E=r.current.getTotalLength();E&&s(E)}catch{}},[]);var c=n.x,u=n.y,h=n.upperWidth,p=n.lowerWidth,v=n.height,b=n.className,x=n.animationEasing,_=n.animationDuration,w=n.animationBegin,O=n.isUpdateAnimationActive;if(c!==+c||u!==+u||h!==+h||p!==+p||v!==+v||h===0&&p===0||v===0)return null;var P=Be("recharts-trapezoid",b);return O?Z.createElement(Ji,{canBegin:a>0,from:{upperWidth:0,lowerWidth:0,height:v,x:c,y:u},to:{upperWidth:h,lowerWidth:p,height:v,x:c,y:u},duration:_,animationEasing:x,isActive:O},function(E){var T=E.upperWidth,A=E.lowerWidth,j=E.height,N=E.x,$=E.y;return Z.createElement(Ji,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:w,duration:_,easing:x},Z.createElement("path",Wy({},it(n,!0),{className:P,d:vD(N,$,T,A,j),ref:r})))}):Z.createElement("g",null,Z.createElement("path",Wy({},it(n,!0),{className:P,d:vD(c,u,h,p,v)})))},I_e=["option","shapeType","propTransformer","activeClassName","isActive"];function Ip(e){"@babel/helpers - typeof";return Ip=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},Ip(e)}function D_e(e,t){if(e==null)return{};var n=$_e(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 $_e(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 gD(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 qy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gD(Object(n),!0).forEach(function(r){F_e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function F_e(e,t,n){return t=B_e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function B_e(e){var t=U_e(e,"string");return Ip(t)=="symbol"?t:t+""}function U_e(e,t){if(Ip(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ip(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function z_e(e,t){return qy(qy({},t),e)}function V_e(e,t){return e==="symbols"}function yD(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return Z.createElement(Cj,n);case"trapezoid":return Z.createElement(L_e,n);case"sector":return Z.createElement(MU,n);case"symbols":if(V_e(t))return Z.createElement(eb,n);break;default:return null}}function W_e(e){return F.isValidElement(e)?e.props:e}function Hy(e){var t=e.option,n=e.shapeType,r=e.propTransformer,i=r===void 0?z_e:r,o=e.activeClassName,a=o===void 0?"recharts-active-shape":o,s=e.isActive,c=D_e(e,I_e),u;if(F.isValidElement(t))u=F.cloneElement(t,qy(qy({},c),W_e(t)));else if(dt(t))u=t(c);else if(w_e(t)&&!P_e(t)){var h=i(t,c);u=Z.createElement(yD,{shapeType:n,elementProps:h})}else{var p=c;u=Z.createElement(yD,{shapeType:n,elementProps:p})}return s?Z.createElement(Pt,{className:a},u):u}function yb(e,t){return t!=null&&"trapezoids"in e.props}function bb(e,t){return t!=null&&"sectors"in e.props}function Dp(e,t){return t!=null&&"points"in e.props}function q_e(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 H_e(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function G_e(e,t){var n=e.x===t.x,r=e.y===t.y,i=e.z===t.z;return n&&r&&i}function K_e(e,t){var n;return yb(e,t)?n=q_e:bb(e,t)?n=H_e:Dp(e,t)&&(n=G_e),n}function Y_e(e,t){var n;return yb(e,t)?n="trapezoids":bb(e,t)?n="sectors":Dp(e,t)&&(n="points"),n}function Z_e(e,t){if(yb(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(bb(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 Dp(e,t)?t.payload:{}}function X_e(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,i=Y_e(n,t),o=Z_e(n,t),a=r.filter(function(c,u){var h=ll(o,c),p=n.props[i].filter(function(x){var _=K_e(n,t);return _(x,t)}),v=n.props[i].indexOf(p[p.length-1]),b=u===v;return h&&b}),s=r.indexOf(a[a.length-1]);return s}var bg;function jf(e){"@babel/helpers - typeof";return jf=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},jf(e)}function Yc(){return Yc=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},Yc.apply(this,arguments)}function bD(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?bD(Object(n),!0).forEach(function(r){Wi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Q_e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _D(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,KU(r.key),r)}}function J_e(e,t,n){return t&&_D(e.prototype,t),n&&_D(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function e1e(e,t,n){return t=Gy(t),t1e(e,GU()?Reflect.construct(t,n||[],Gy(e).constructor):t.apply(e,n))}function t1e(e,t){if(t&&(jf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return n1e(e)}function n1e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function GU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(GU=function(){return!!e})()}function Gy(e){return Gy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Gy(e)}function r1e(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&&KC(e,t)}function KC(e,t){return KC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},KC(e,t)}function Wi(e,t,n){return t=KU(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function KU(e){var t=i1e(e,"string");return jf(t)=="symbol"?t:t+""}function i1e(e,t){if(jf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(jf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ra=function(e){function t(n){var r;return Q_e(this,t),r=e1e(this,t,[n]),Wi(r,"pieRef",null),Wi(r,"sectorRefs",[]),Wi(r,"id",vl("recharts-pie-")),Wi(r,"handleAnimationEnd",function(){var i=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),dt(i)&&i()}),Wi(r,"handleAnimationStart",function(){var i=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),dt(i)&&i()}),r.state={isAnimationFinished:!n.isAnimationActive,prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,sectorToFocus:0},r}return r1e(t,e),J_e(t,[{key:"isActiveIndex",value:function(r){var i=this.props.activeIndex;return Array.isArray(i)?i.indexOf(r)!==-1:r===i}},{key:"hasActiveIndex",value:function(){var r=this.props.activeIndex;return Array.isArray(r)?r.length!==0:r||r===0}},{key:"renderLabels",value:function(r){var i=this.props.isAnimationActive;if(i&&!this.state.isAnimationFinished)return null;var o=this.props,a=o.label,s=o.labelLine,c=o.dataKey,u=o.valueKey,h=it(this.props,!1),p=it(a,!1),v=it(s,!1),b=a&&a.offsetRadius||20,x=r.map(function(_,w){var O=(_.startAngle+_.endAngle)/2,P=Qt(_.cx,_.cy,_.outerRadius+b,O),E=Zt(Zt(Zt(Zt({},h),_),{},{stroke:"none"},p),{},{index:w,textAnchor:t.getTextAnchor(P.x,_.cx)},P),T=Zt(Zt(Zt(Zt({},h),_),{},{fill:"none",stroke:_.fill},v),{},{index:w,points:[Qt(_.cx,_.cy,_.outerRadius,O),P]}),A=c;return ft(c)&&ft(u)?A="value":ft(c)&&(A=u),Z.createElement(Pt,{key:"label-".concat(_.startAngle,"-").concat(_.endAngle,"-").concat(_.midAngle,"-").concat(w)},s&&t.renderLabelLineItem(s,T,"line"),t.renderLabelItem(a,E,on(_,A)))});return Z.createElement(Pt,{className:"recharts-pie-labels"},x)}},{key:"renderSectorsStatically",value:function(r){var i=this,o=this.props,a=o.activeShape,s=o.blendStroke,c=o.inactiveShape;return r.map(function(u,h){if((u==null?void 0:u.startAngle)===0&&(u==null?void 0:u.endAngle)===0&&r.length!==1)return null;var p=i.isActiveIndex(h),v=c&&i.hasActiveIndex()?c:null,b=p?a:v,x=Zt(Zt({},u),{},{stroke:s?u.fill:u.stroke,tabIndex:-1});return Z.createElement(Pt,Yc({ref:function(w){w&&!i.sectorRefs.includes(w)&&i.sectorRefs.push(w)},tabIndex:-1,className:"recharts-pie-sector"},sl(i.props,u,h),{key:"sector-".concat(u==null?void 0:u.startAngle,"-").concat(u==null?void 0:u.endAngle,"-").concat(u.midAngle,"-").concat(h)}),Z.createElement(Hy,Yc({option:b,isActive:p,shapeType:"sector"},x)))})}},{key:"renderSectorsWithAnimation",value:function(){var r=this,i=this.props,o=i.sectors,a=i.isAnimationActive,s=i.animationBegin,c=i.animationDuration,u=i.animationEasing,h=i.animationId,p=this.state,v=p.prevSectors,b=p.prevIsAnimationActive;return Z.createElement(Ji,{begin:s,duration:c,isActive:a,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(h,"-").concat(b),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(x){var _=x.t,w=[],O=o&&o[0],P=O.startAngle;return o.forEach(function(E,T){var A=v&&v[T],j=T>0?vi(E,"paddingAngle",0):0;if(A){var N=xn(A.endAngle-A.startAngle,E.endAngle-E.startAngle),$=Zt(Zt({},E),{},{startAngle:P+j,endAngle:P+N(_)+j});w.push($),P=$.endAngle}else{var W=E.endAngle,B=E.startAngle,V=xn(0,W-B),H=V(_),J=Zt(Zt({},E),{},{startAngle:P+j,endAngle:P+H+j});w.push(J),P=J.endAngle}}),Z.createElement(Pt,null,r.renderSectorsStatically(w))})}},{key:"attachKeyboardHandlers",value:function(r){var i=this;r.onkeydown=function(o){if(!o.altKey)switch(o.key){case"ArrowLeft":{var a=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[a].focus(),i.setState({sectorToFocus:a});break}case"ArrowRight":{var s=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[s].focus(),i.setState({sectorToFocus:s});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var r=this.props,i=r.sectors,o=r.isAnimationActive,a=this.state.prevSectors;return o&&i&&i.length&&(!a||!ll(a,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var r=this,i=this.props,o=i.hide,a=i.sectors,s=i.className,c=i.label,u=i.cx,h=i.cy,p=i.innerRadius,v=i.outerRadius,b=i.isAnimationActive,x=this.state.isAnimationFinished;if(o||!a||!a.length||!Ve(u)||!Ve(h)||!Ve(p)||!Ve(v))return null;var _=Be("recharts-pie",s);return Z.createElement(Pt,{tabIndex:this.props.rootTabIndex,className:_,ref:function(O){r.pieRef=O}},this.renderSectors(),c&&this.renderLabels(a),Jn.renderCallByParent(this.props,null,!1),(!b||x)&&Oo.renderCallByParent(this.props,a,!1))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return i.prevIsAnimationActive!==r.isAnimationActive?{prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:[],isAnimationFinished:!0}:r.isAnimationActive&&r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:r.sectors!==i.curSectors?{curSectors:r.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(r,i){return r>i?"start":r<i?"end":"middle"}},{key:"renderLabelLineItem",value:function(r,i,o){if(Z.isValidElement(r))return Z.cloneElement(r,i);if(dt(r))return r(i);var a=Be("recharts-pie-label-line",typeof r!="boolean"?r.className:"");return Z.createElement(tl,Yc({},i,{key:o,type:"linear",className:a}))}},{key:"renderLabelItem",value:function(r,i,o){if(Z.isValidElement(r))return Z.cloneElement(r,i);var a=o;if(dt(r)&&(a=r(i),Z.isValidElement(a)))return a;var s=Be("recharts-pie-label-text",typeof r!="boolean"&&!dt(r)?r.className:"");return Z.createElement(Eu,Yc({},i,{alignmentBaseline:"middle",className:s}),a)}}])}(F.PureComponent);bg=ra;Wi(ra,"displayName","Pie");Wi(ra,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!Ki.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});Wi(ra,"parseDeltaAngle",function(e,t){var n=Pr(t-e),r=Math.min(Math.abs(t-e),360);return n*r});Wi(ra,"getRealPieData",function(e){var t=e.data,n=e.children,r=it(e,!1),i=Ar(n,Js);return t&&t.length?t.map(function(o,a){return Zt(Zt(Zt({payload:o},r),o),i&&i[a]&&i[a].props)}):i&&i.length?i.map(function(o){return Zt(Zt({},r),o.props)}):[]});Wi(ra,"parseCoordinateOfPie",function(e,t){var n=t.top,r=t.left,i=t.width,o=t.height,a=AU(i,o),s=r+Cr(e.cx,i,i/2),c=n+Cr(e.cy,o,o/2),u=Cr(e.innerRadius,a,0),h=Cr(e.outerRadius,a,a*.8),p=e.maxRadius||Math.sqrt(i*i+o*o)/2;return{cx:s,cy:c,innerRadius:u,outerRadius:h,maxRadius:p}});Wi(ra,"getComposedData",function(e){var t=e.item,n=e.offset,r=t.type.defaultProps!==void 0?Zt(Zt({},t.type.defaultProps),t.props):t.props,i=bg.getRealPieData(r);if(!i||!i.length)return null;var o=r.cornerRadius,a=r.startAngle,s=r.endAngle,c=r.paddingAngle,u=r.dataKey,h=r.nameKey,p=r.valueKey,v=r.tooltipType,b=Math.abs(r.minAngle),x=bg.parseCoordinateOfPie(r,n),_=bg.parseDeltaAngle(a,s),w=Math.abs(_),O=u;ft(u)&&ft(p)?(wo(!1,`Use "dataKey" to specify the value of pie,
the props "valueKey" will be deprecated in 1.1.0`),O="value"):ft(u)&&(wo(!1,`Use "dataKey" to specify the value of pie,
the props "valueKey" will be deprecated in 1.1.0`),O=p);var P=i.filter(function($){return on($,O,0)!==0}).length,E=(w>=360?P:P-1)*c,T=w-P*b-E,A=i.reduce(function($,W){var B=on(W,O,0);return $+(Ve(B)?B:0)},0),j;if(A>0){var N;j=i.map(function($,W){var B=on($,O,0),V=on($,h,W),H=(Ve(B)?B:0)/A,J;W?J=N.endAngle+Pr(_)*c*(B!==0?1:0):J=a;var Q=J+Pr(_)*((B!==0?b:0)+H*T),re=(J+Q)/2,ae=(x.innerRadius+x.outerRadius)/2,se=[{name:V,value:B,payload:$,dataKey:O,type:v}],oe=Qt(x.cx,x.cy,ae,re);return N=Zt(Zt(Zt({percent:H,cornerRadius:o,name:V,tooltipPayload:se,midAngle:re,middleRadius:ae,tooltipPosition:oe},$),x),{},{value:on($,O),startAngle:J,endAngle:Q,payload:$,paddingAngle:Pr(_)*c}),N})}return Zt(Zt({},x),{},{sectors:j,data:i})});var mO,xD;function o1e(){if(xD)return mO;xD=1;var e=Math.ceil,t=Math.max;function n(r,i,o,a){for(var s=-1,c=t(e((i-r)/(o||1)),0),u=Array(c);c--;)u[a?c:++s]=r,r+=o;return u}return mO=n,mO}var vO,wD;function YU(){if(wD)return vO;wD=1;var e=gB(),t=1/0,n=17976931348623157e292;function r(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var o=i<0?-1:1;return o*n}return i===i?i:0}return vO=r,vO}var gO,OD;function a1e(){if(OD)return gO;OD=1;var e=o1e(),t=rb(),n=YU();function r(i){return function(o,a,s){return s&&typeof s!="number"&&t(o,a,s)&&(a=s=void 0),o=n(o),a===void 0?(a=o,o=0):a=n(a),s=s===void 0?o<a?1:-1:n(s),e(o,a,s,i)}}return gO=r,gO}var yO,SD;function s1e(){if(SD)return yO;SD=1;var e=a1e(),t=e();return yO=t,yO}var l1e=s1e();const Ky=Nt(l1e);function $p(e){"@babel/helpers - typeof";return $p=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},$p(e)}function PD(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 CD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PD(Object(n),!0).forEach(function(r){ZU(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ZU(e,t,n){return t=u1e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u1e(e){var t=c1e(e,"string");return $p(t)=="symbol"?t:t+""}function c1e(e,t){if($p(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if($p(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var f1e=["Webkit","Moz","O","ms"],d1e=function(t,n){var r=t.replace(/(\w)/,function(o){return o.toUpperCase()}),i=f1e.reduce(function(o,a){return CD(CD({},o),{},ZU({},a+r,n))},{});return i[t]=n,i};function Af(e){"@babel/helpers - typeof";return Af=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},Af(e)}function Yy(){return Yy=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},Yy.apply(this,arguments)}function ED(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 bO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ED(Object(n),!0).forEach(function(r){di(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ED(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function h1e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function TD(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,QU(r.key),r)}}function p1e(e,t,n){return t&&TD(e.prototype,t),n&&TD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function m1e(e,t,n){return t=Zy(t),v1e(e,XU()?Reflect.construct(t,n||[],Zy(e).constructor):t.apply(e,n))}function v1e(e,t){if(t&&(Af(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return g1e(e)}function g1e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function XU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(XU=function(){return!!e})()}function Zy(e){return Zy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Zy(e)}function y1e(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&&YC(e,t)}function YC(e,t){return YC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},YC(e,t)}function di(e,t,n){return t=QU(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QU(e){var t=b1e(e,"string");return Af(t)=="symbol"?t:t+""}function b1e(e,t){if(Af(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Af(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _1e=function(t){var n=t.data,r=t.startIndex,i=t.endIndex,o=t.x,a=t.width,s=t.travellerWidth;if(!n||!n.length)return{};var c=n.length,u=Ih().domain(Ky(0,c)).range([o,o+a-s]),h=u.domain().map(function(p){return u(p)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(r),endX:u(i),scale:u,scaleValues:h}},jD=function(t){return t.changedTouches&&!!t.changedTouches.length},kf=function(e){function t(n){var r;return h1e(this,t),r=m1e(this,t,[n]),di(r,"handleDrag",function(i){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(i):r.state.isSlideMoving&&r.handleSlideDrag(i)}),di(r,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&r.handleDrag(i.changedTouches[0])}),di(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=r.props,o=i.endIndex,a=i.onDragEnd,s=i.startIndex;a==null||a({endIndex:o,startIndex:s})}),r.detachDragEndListener()}),di(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),di(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),di(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),di(r,"handleSlideDragStart",function(i){var o=jD(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 y1e(t,e),p1e(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,a=this.state.scaleValues,s=this.props,c=s.gap,u=s.data,h=u.length-1,p=Math.min(i,o),v=Math.max(i,o),b=t.getIndexInRange(a,p),x=t.getIndexInRange(a,v);return{startIndex:b-b%c,endIndex:x===h?h:x-x%c}}},{key:"getTextOfTick",value:function(r){var i=this.props,o=i.data,a=i.tickFormatter,s=i.dataKey,c=on(o[r],s,r);return dt(a)?a(c,r):c}},{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,a=i.startX,s=i.endX,c=this.props,u=c.x,h=c.width,p=c.travellerWidth,v=c.startIndex,b=c.endIndex,x=c.onChange,_=r.pageX-o;_>0?_=Math.min(_,u+h-p-s,u+h-p-a):_<0&&(_=Math.max(_,u-a,u-s));var w=this.getIndex({startX:a+_,endX:s+_});(w.startIndex!==v||w.endIndex!==b)&&x&&x(w),this.setState({startX:a+_,endX:s+_,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,i){var o=jD(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,a=i.movingTravellerId,s=i.endX,c=i.startX,u=this.state[a],h=this.props,p=h.x,v=h.width,b=h.travellerWidth,x=h.onChange,_=h.gap,w=h.data,O={startX:this.state.startX,endX:this.state.endX},P=r.pageX-o;P>0?P=Math.min(P,p+v-b-u):P<0&&(P=Math.max(P,p-u)),O[a]=u+P;var E=this.getIndex(O),T=E.startIndex,A=E.endIndex,j=function(){var $=w.length-1;return a==="startX"&&(s>c?T%_===0:A%_===0)||s<c&&A===$||a==="endX"&&(s>c?A%_===0:T%_===0)||s>c&&A===$};this.setState(di(di({},a,u+P),"brushMoveStartX",r.pageX),function(){x&&j()&&x(E)})}},{key:"handleTravellerMoveKeyboard",value:function(r,i){var o=this,a=this.state,s=a.scaleValues,c=a.startX,u=a.endX,h=this.state[i],p=s.indexOf(h);if(p!==-1){var v=p+r;if(!(v===-1||v>=s.length)){var b=s[v];i==="startX"&&b>=u||i==="endX"&&b<=c||this.setState(di({},i,b),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,a=r.width,s=r.height,c=r.fill,u=r.stroke;return Z.createElement("rect",{stroke:u,fill:c,x:i,y:o,width:a,height:s})}},{key:"renderPanorama",value:function(){var r=this.props,i=r.x,o=r.y,a=r.width,s=r.height,c=r.data,u=r.children,h=r.padding,p=F.Children.only(u);return p?Z.cloneElement(p,{x:i,y:o,width:a,height:s,margin:h,compact:!0,data:c}):null}},{key:"renderTravellerLayer",value:function(r,i){var o,a,s=this,c=this.props,u=c.y,h=c.travellerWidth,p=c.height,v=c.traveller,b=c.ariaLabel,x=c.data,_=c.startIndex,w=c.endIndex,O=Math.max(r,this.props.x),P=bO(bO({},it(this.props,!1)),{},{x:O,y:u,width:h,height:p}),E=b||"Min value: ".concat((o=x[_])===null||o===void 0?void 0:o.name,", Max value: ").concat((a=x[w])===null||a===void 0?void 0:a.name);return Z.createElement(Pt,{tabIndex:0,role:"slider","aria-label":E,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(A){["ArrowLeft","ArrowRight"].includes(A.key)&&(A.preventDefault(),A.stopPropagation(),s.handleTravellerMoveKeyboard(A.key==="ArrowRight"?1:-1,i))},onFocus:function(){s.setState({isTravellerFocused:!0})},onBlur:function(){s.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(v,P))}},{key:"renderSlide",value:function(r,i){var o=this.props,a=o.y,s=o.height,c=o.stroke,u=o.travellerWidth,h=Math.min(r,i)+u,p=Math.max(Math.abs(i-r)-u,0);return Z.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:c,fillOpacity:.2,x:h,y:a,width:p,height:s})}},{key:"renderText",value:function(){var r=this.props,i=r.startIndex,o=r.endIndex,a=r.y,s=r.height,c=r.travellerWidth,u=r.stroke,h=this.state,p=h.startX,v=h.endX,b=5,x={pointerEvents:"none",fill:u};return Z.createElement(Pt,{className:"recharts-brush-texts"},Z.createElement(Eu,Yy({textAnchor:"end",verticalAnchor:"middle",x:Math.min(p,v)-b,y:a+s/2},x),this.getTextOfTick(i)),Z.createElement(Eu,Yy({textAnchor:"start",verticalAnchor:"middle",x:Math.max(p,v)+c+b,y:a+s/2},x),this.getTextOfTick(o)))}},{key:"render",value:function(){var r=this.props,i=r.data,o=r.className,a=r.children,s=r.x,c=r.y,u=r.width,h=r.height,p=r.alwaysShowText,v=this.state,b=v.startX,x=v.endX,_=v.isTextActive,w=v.isSlideMoving,O=v.isTravellerMoving,P=v.isTravellerFocused;if(!i||!i.length||!Ve(s)||!Ve(c)||!Ve(u)||!Ve(h)||u<=0||h<=0)return null;var E=Be("recharts-brush",o),T=Z.Children.count(a)===1,A=d1e("userSelect","none");return Z.createElement(Pt,{className:E,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:A},this.renderBackground(),T&&this.renderPanorama(),this.renderSlide(b,x),this.renderTravellerLayer(b,"startX"),this.renderTravellerLayer(x,"endX"),(_||w||O||P||p)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var i=r.x,o=r.y,a=r.width,s=r.height,c=r.stroke,u=Math.floor(o+s/2)-1;return Z.createElement(Z.Fragment,null,Z.createElement("rect",{x:i,y:o,width:a,height:s,fill:c,stroke:"none"}),Z.createElement("line",{x1:i+1,y1:u,x2:i+a-1,y2:u,fill:"none",stroke:"#fff"}),Z.createElement("line",{x1:i+1,y1:u+2,x2:i+a-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,i){var o;return Z.isValidElement(r)?o=Z.cloneElement(r,i):dt(r)?o=r(i):o=t.renderDefaultTraveller(i),o}},{key:"getDerivedStateFromProps",value:function(r,i){var o=r.data,a=r.width,s=r.x,c=r.travellerWidth,u=r.updateId,h=r.startIndex,p=r.endIndex;if(o!==i.prevData||u!==i.prevUpdateId)return bO({prevData:o,prevTravellerWidth:c,prevUpdateId:u,prevX:s,prevWidth:a},o&&o.length?_1e({data:o,width:a,x:s,travellerWidth:c,startIndex:h,endIndex:p}):{scale:null,scaleValues:null});if(i.scale&&(a!==i.prevWidth||s!==i.prevX||c!==i.prevTravellerWidth)){i.scale.range([s,s+a-c]);var v=i.scale.domain().map(function(b){return i.scale(b)});return{prevData:o,prevTravellerWidth:c,prevUpdateId:u,prevX:s,prevWidth:a,startX:i.scale(r.startIndex),endX:i.scale(r.endIndex),scaleValues:v}}return null}},{key:"getIndexInRange",value:function(r,i){for(var o=r.length,a=0,s=o-1;s-a>1;){var c=Math.floor((a+s)/2);r[c]>i?s=c:a=c}return i>=r[s]?s:a}}])}(F.PureComponent);di(kf,"displayName","Brush");di(kf,"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 _O,AD;function x1e(){if(AD)return _O;AD=1;var e=XT();function t(n,r){var i;return e(n,function(o,a,s){return i=r(o,a,s),!i}),!!i}return _O=t,_O}var xO,kD;function w1e(){if(kD)return xO;kD=1;var e=K7(),t=la(),n=x1e(),r=Xr(),i=rb();function o(a,s,c){var u=r(a)?e:n;return c&&i(a,s,c)&&(s=void 0),u(a,t(s,3))}return xO=o,xO}var O1e=w1e();const S1e=Nt(O1e);var Qo=function(t,n){var r=t.alwaysShow,i=t.ifOverflow;return r&&(i="extendDomain"),i===n},wO,RD;function P1e(){if(RD)return wO;RD=1;var e=dB();function t(n,r,i){r=="__proto__"&&e?e(n,r,{configurable:!0,enumerable:!0,value:i,writable:!0}):n[r]=i}return wO=t,wO}var OO,ND;function C1e(){if(ND)return OO;ND=1;var e=P1e(),t=cB(),n=la();function r(i,o){var a={};return o=n(o,3),t(i,function(s,c,u){e(a,c,o(s,c,u))}),a}return OO=r,OO}var E1e=C1e();const T1e=Nt(E1e);var SO,MD;function j1e(){if(MD)return SO;MD=1;function e(t,n){for(var r=-1,i=t==null?0:t.length;++r<i;)if(!n(t[r],r,t))return!1;return!0}return SO=e,SO}var PO,LD;function A1e(){if(LD)return PO;LD=1;var e=XT();function t(n,r){var i=!0;return e(n,function(o,a,s){return i=!!r(o,a,s),i}),i}return PO=t,PO}var CO,ID;function k1e(){if(ID)return CO;ID=1;var e=j1e(),t=A1e(),n=la(),r=Xr(),i=rb();function o(a,s,c){var u=r(a)?e:t;return c&&i(a,s,c)&&(s=void 0),u(a,n(s,3))}return CO=o,CO}var R1e=k1e();const JU=Nt(R1e);var N1e=["x","y"];function Fp(e){"@babel/helpers - typeof";return Fp=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},Fp(e)}function ZC(){return ZC=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},ZC.apply(this,arguments)}function DD(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 vh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?DD(Object(n),!0).forEach(function(r){M1e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function M1e(e,t,n){return t=L1e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function L1e(e){var t=I1e(e,"string");return Fp(t)=="symbol"?t:t+""}function I1e(e,t){if(Fp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Fp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function D1e(e,t){if(e==null)return{};var n=$1e(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 $1e(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 F1e(e,t){var n=e.x,r=e.y,i=D1e(e,N1e),o="".concat(n),a=parseInt(o,10),s="".concat(r),c=parseInt(s,10),u="".concat(t.height||i.height),h=parseInt(u,10),p="".concat(t.width||i.width),v=parseInt(p,10);return vh(vh(vh(vh(vh({},t),i),a?{x:a}:{}),c?{y:c}:{}),{},{height:h,width:v,name:t.name,radius:t.radius})}function $D(e){return Z.createElement(Hy,ZC({shapeType:"rectangle",propTransformer:F1e,activeClassName:"recharts-active-bar"},e))}var B1e=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=typeof r=="number";return o?t(r,i):(o||ju(),n)}},U1e=["value","background"],e9;function Rf(e){"@babel/helpers - typeof";return Rf=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},Rf(e)}function z1e(e,t){if(e==null)return{};var n=V1e(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 V1e(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 Xy(){return Xy=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},Xy.apply(this,arguments)}function FD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ln(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?FD(Object(n),!0).forEach(function(r){Ks(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function W1e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function BD(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,n9(r.key),r)}}function q1e(e,t,n){return t&&BD(e.prototype,t),n&&BD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function H1e(e,t,n){return t=Qy(t),G1e(e,t9()?Reflect.construct(t,n||[],Qy(e).constructor):t.apply(e,n))}function G1e(e,t){if(t&&(Rf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return K1e(e)}function K1e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function t9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(t9=function(){return!!e})()}function Qy(e){return Qy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Qy(e)}function Y1e(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&&XC(e,t)}function XC(e,t){return XC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},XC(e,t)}function Ks(e,t,n){return t=n9(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function n9(e){var t=Z1e(e,"string");return Rf(t)=="symbol"?t:t+""}function Z1e(e,t){if(Rf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Rf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $a=function(e){function t(){var n;W1e(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=H1e(this,t,[].concat(i)),Ks(n,"state",{isAnimationFinished:!1}),Ks(n,"id",vl("recharts-bar-")),Ks(n,"handleAnimationEnd",function(){var a=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),a&&a()}),Ks(n,"handleAnimationStart",function(){var a=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),a&&a()}),n}return Y1e(t,e),q1e(t,[{key:"renderRectanglesStatically",value:function(r){var i=this,o=this.props,a=o.shape,s=o.dataKey,c=o.activeIndex,u=o.activeBar,h=it(this.props,!1);return r&&r.map(function(p,v){var b=v===c,x=b?u:a,_=Ln(Ln(Ln({},h),p),{},{isActive:b,option:x,index:v,dataKey:s,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return Z.createElement(Pt,Xy({className:"recharts-bar-rectangle"},sl(i.props,p,v),{key:"rectangle-".concat(p==null?void 0:p.x,"-").concat(p==null?void 0:p.y,"-").concat(p==null?void 0:p.value)}),Z.createElement($D,_))})}},{key:"renderRectanglesWithAnimation",value:function(){var r=this,i=this.props,o=i.data,a=i.layout,s=i.isAnimationActive,c=i.animationBegin,u=i.animationDuration,h=i.animationEasing,p=i.animationId,v=this.state.prevData;return Z.createElement(Ji,{begin:c,duration:u,isActive:s,easing:h,from:{t:0},to:{t:1},key:"bar-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(b){var x=b.t,_=o.map(function(w,O){var P=v&&v[O];if(P){var E=xn(P.x,w.x),T=xn(P.y,w.y),A=xn(P.width,w.width),j=xn(P.height,w.height);return Ln(Ln({},w),{},{x:E(x),y:T(x),width:A(x),height:j(x)})}if(a==="horizontal"){var N=xn(0,w.height),$=N(x);return Ln(Ln({},w),{},{y:w.y+w.height-$,height:$})}var W=xn(0,w.width),B=W(x);return Ln(Ln({},w),{},{width:B})});return Z.createElement(Pt,null,r.renderRectanglesStatically(_))})}},{key:"renderRectangles",value:function(){var r=this.props,i=r.data,o=r.isAnimationActive,a=this.state.prevData;return o&&i&&i.length&&(!a||!ll(a,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var r=this,i=this.props,o=i.data,a=i.dataKey,s=i.activeIndex,c=it(this.props.background,!1);return o.map(function(u,h){u.value;var p=u.background,v=z1e(u,U1e);if(!p)return null;var b=Ln(Ln(Ln(Ln(Ln({},v),{},{fill:"#eee"},p),c),sl(r.props,u,h)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:a,index:h,className:"recharts-bar-background-rectangle"});return Z.createElement($D,Xy({key:"background-bar-".concat(h),option:r.props.background,isActive:h===s},b))})}},{key:"renderErrorBar",value:function(r,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var o=this.props,a=o.data,s=o.xAxis,c=o.yAxis,u=o.layout,h=o.children,p=Ar(h,id);if(!p)return null;var v=u==="vertical"?a[0].height/2:a[0].width/2,b=function(w,O){var P=Array.isArray(w.value)?w.value[1]:w.value;return{x:w.x,y:w.y,value:P,errorVal:on(w,O)}},x={clipPath:r?"url(#clipPath-".concat(i,")"):null};return Z.createElement(Pt,x,p.map(function(_){return Z.cloneElement(_,{key:"error-bar-".concat(i,"-").concat(_.props.dataKey),data:a,xAxis:s,yAxis:c,layout:u,offset:v,dataPointFormatter:b})}))}},{key:"render",value:function(){var r=this.props,i=r.hide,o=r.data,a=r.className,s=r.xAxis,c=r.yAxis,u=r.left,h=r.top,p=r.width,v=r.height,b=r.isAnimationActive,x=r.background,_=r.id;if(i||!o||!o.length)return null;var w=this.state.isAnimationFinished,O=Be("recharts-bar",a),P=s&&s.allowDataOverflow,E=c&&c.allowDataOverflow,T=P||E,A=ft(_)?this.id:_;return Z.createElement(Pt,{className:O},P||E?Z.createElement("defs",null,Z.createElement("clipPath",{id:"clipPath-".concat(A)},Z.createElement("rect",{x:P?u:u-p/2,y:E?h:h-v/2,width:P?p:p*2,height:E?v:v*2}))):null,Z.createElement(Pt,{className:"recharts-bar-rectangles",clipPath:T?"url(#clipPath-".concat(A,")"):null},x?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(T,A),(!b||w)&&Oo.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}}])}(F.PureComponent);e9=$a;Ks($a,"displayName","Bar");Ks($a,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Ki.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Ks($a,"getComposedData",function(e){var t=e.props,n=e.item,r=e.barPosition,i=e.bandSize,o=e.xAxis,a=e.yAxis,s=e.xAxisTicks,c=e.yAxisTicks,u=e.stackedData,h=e.dataStartIndex,p=e.displayedData,v=e.offset,b=Fge(r,n);if(!b)return null;var x=t.layout,_=n.type.defaultProps,w=_!==void 0?Ln(Ln({},_),n.props):n.props,O=w.dataKey,P=w.children,E=w.minPointSize,T=x==="horizontal"?a:o,A=u?T.scale.domain():null,j=Hge({numericAxis:T}),N=Ar(P,Js),$=p.map(function(W,B){var V,H,J,Q,re,ae;u?V=Bge(u[h+B],A):(V=on(W,O),Array.isArray(V)||(V=[j,V]));var se=B1e(E,e9.defaultProps.minPointSize)(V[1],B);if(x==="horizontal"){var oe,K=[a.scale(V[0]),a.scale(V[1])],G=K[0],z=K[1];H=p6({axis:o,ticks:s,bandSize:i,offset:b.offset,entry:W,index:B}),J=(oe=z??G)!==null&&oe!==void 0?oe:void 0,Q=b.size;var ne=G-z;if(re=Number.isNaN(ne)?0:ne,ae={x:H,y:a.y,width:Q,height:a.height},Math.abs(se)>0&&Math.abs(re)<Math.abs(se)){var X=Pr(re||se)*(Math.abs(se)-Math.abs(re));J-=X,re+=X}}else{var le=[o.scale(V[0]),o.scale(V[1])],ce=le[0],de=le[1];if(H=ce,J=p6({axis:a,ticks:c,bandSize:i,offset:b.offset,entry:W,index:B}),Q=de-ce,re=b.size,ae={x:o.x,y:J,width:o.width,height:re},Math.abs(se)>0&&Math.abs(Q)<Math.abs(se)){var be=Pr(Q||se)*(Math.abs(se)-Math.abs(Q));Q+=be}}return Ln(Ln(Ln({},W),{},{x:H,y:J,width:Q,height:re,value:u?V:V[1],payload:W,background:ae},N&&N[B]&&N[B].props),{},{tooltipPayload:[TU(n,W)],tooltipPosition:{x:H+Q/2,y:J+re/2}})});return Ln({data:$,layout:x},v)});function Bp(e){"@babel/helpers - typeof";return Bp=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},Bp(e)}function X1e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UD(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,r9(r.key),r)}}function Q1e(e,t,n){return t&&UD(e.prototype,t),n&&UD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function zD(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 go(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zD(Object(n),!0).forEach(function(r){_b(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _b(e,t,n){return t=r9(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r9(e){var t=J1e(e,"string");return Bp(t)=="symbol"?t:t+""}function J1e(e,t){if(Bp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Bp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var i9=function(t,n,r,i,o){var a=t.width,s=t.height,c=t.layout,u=t.children,h=Object.keys(n),p={left:r.left,leftMirror:r.left,right:a-r.right,rightMirror:a-r.right,top:r.top,topMirror:r.top,bottom:s-r.bottom,bottomMirror:s-r.bottom},v=!!hi(u,$a);return h.reduce(function(b,x){var _=n[x],w=_.orientation,O=_.domain,P=_.padding,E=P===void 0?{}:P,T=_.mirror,A=_.reversed,j="".concat(w).concat(T?"Mirror":""),N,$,W,B,V;if(_.type==="number"&&(_.padding==="gap"||_.padding==="no-gap")){var H=O[1]-O[0],J=1/0,Q=_.categoricalDomain.sort();if(Q.forEach(function(le,ce){ce>0&&(J=Math.min((le||0)-(Q[ce-1]||0),J))}),Number.isFinite(J)){var re=J/H,ae=_.layout==="vertical"?r.height:r.width;if(_.padding==="gap"&&(N=re*ae/2),_.padding==="no-gap"){var se=Cr(t.barCategoryGap,re*ae),oe=re*ae/2;N=oe-se-(oe-se)/ae*se}}}i==="xAxis"?$=[r.left+(E.left||0)+(N||0),r.left+r.width-(E.right||0)-(N||0)]:i==="yAxis"?$=c==="horizontal"?[r.top+r.height-(E.bottom||0),r.top+(E.top||0)]:[r.top+(E.top||0)+(N||0),r.top+r.height-(E.bottom||0)-(N||0)]:$=_.range,A&&($=[$[1],$[0]]);var K=SU(_,o,v),G=K.scale,z=K.realScaleType;G.domain(O).range($),PU(G);var ne=CU(G,go(go({},_),{},{realScaleType:z}));i==="xAxis"?(V=w==="top"&&!T||w==="bottom"&&T,W=r.left,B=p[j]-V*_.height):i==="yAxis"&&(V=w==="left"&&!T||w==="right"&&T,W=p[j]-V*_.width,B=r.top);var X=go(go(go({},_),ne),{},{realScaleType:z,x:W,y:B,scale:G,width:i==="xAxis"?r.width:_.width,height:i==="yAxis"?r.height:_.height});return X.bandSize=Ly(X,ne),!_.hide&&i==="xAxis"?p[j]+=(V?-1:1)*X.height:_.hide||(p[j]+=(V?-1:1)*X.width),go(go({},b),{},_b({},x,X))},{})},o9=function(t,n){var r=t.x,i=t.y,o=n.x,a=n.y;return{x:Math.min(r,o),y:Math.min(i,a),width:Math.abs(o-r),height:Math.abs(a-i)}},exe=function(t){var n=t.x1,r=t.y1,i=t.x2,o=t.y2;return o9({x:n,y:r},{x:i,y:o})},a9=function(){function e(t){X1e(this,e),this.scale=t}return Q1e(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 a=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+a}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(n)+s}default:return this.scale(n)}if(i){var c=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+c}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)}}])}();_b(a9,"EPS",1e-4);var Ej=function(t){var n=Object.keys(t).reduce(function(r,i){return go(go({},r),{},_b({},i,a9.create(t[i])))},{});return go(go({},n),{},{apply:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=o.bandAware,s=o.position;return T1e(i,function(c,u){return n[u].apply(c,{bandAware:a,position:s})})},isInRange:function(i){return JU(i,function(o,a){return n[a].isInRange(o)})}})};function txe(e){return(e%180+180)%180}var nxe=function(t){var n=t.width,r=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=txe(i),a=o*Math.PI/180,s=Math.atan(r/n),c=a>s&&a<Math.PI-s?r/Math.sin(a):n/Math.cos(a);return Math.abs(c)},EO,VD;function rxe(){if(VD)return EO;VD=1;var e=la(),t=sm(),n=tb();function r(i){return function(o,a,s){var c=Object(o);if(!t(o)){var u=e(a,3);o=n(o),a=function(p){return u(c[p],p,c)}}var h=i(o,a,s);return h>-1?c[u?o[h]:h]:void 0}}return EO=r,EO}var TO,WD;function ixe(){if(WD)return TO;WD=1;var e=YU();function t(n){var r=e(n),i=r%1;return r===r?i?r-i:r:0}return TO=t,TO}var jO,qD;function oxe(){if(qD)return jO;qD=1;var e=oB(),t=la(),n=ixe(),r=Math.max;function i(o,a,s){var c=o==null?0:o.length;if(!c)return-1;var u=s==null?0:n(s);return u<0&&(u=r(c+u,0)),e(o,t(a,3),u)}return jO=i,jO}var AO,HD;function axe(){if(HD)return AO;HD=1;var e=rxe(),t=oxe(),n=e(t);return AO=n,AO}var sxe=axe();const lxe=Nt(sxe);var uxe=_7();const cxe=Nt(uxe);var fxe=cxe(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("")}),Tj=F.createContext(void 0),jj=F.createContext(void 0),s9=F.createContext(void 0),l9=F.createContext({}),u9=F.createContext(void 0),c9=F.createContext(0),f9=F.createContext(0),GD=function(t){var n=t.state,r=n.xAxisMap,i=n.yAxisMap,o=n.offset,a=t.clipPathId,s=t.children,c=t.width,u=t.height,h=fxe(o);return Z.createElement(Tj.Provider,{value:r},Z.createElement(jj.Provider,{value:i},Z.createElement(l9.Provider,{value:o},Z.createElement(s9.Provider,{value:h},Z.createElement(u9.Provider,{value:a},Z.createElement(c9.Provider,{value:u},Z.createElement(f9.Provider,{value:c},s)))))))},dxe=function(){return F.useContext(u9)},d9=function(t){var n=F.useContext(Tj);n==null&&ju();var r=n[t];return r==null&&ju(),r},hxe=function(){var t=F.useContext(Tj);return qs(t)},pxe=function(){var t=F.useContext(jj),n=lxe(t,function(r){return JU(r.domain,Number.isFinite)});return n||qs(t)},h9=function(t){var n=F.useContext(jj);n==null&&ju();var r=n[t];return r==null&&ju(),r},mxe=function(){var t=F.useContext(s9);return t},vxe=function(){return F.useContext(l9)},Aj=function(){return F.useContext(f9)},kj=function(){return F.useContext(c9)};function Nf(e){"@babel/helpers - typeof";return Nf=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},Nf(e)}function gxe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yxe(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,m9(r.key),r)}}function bxe(e,t,n){return t&&yxe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _xe(e,t,n){return t=Jy(t),xxe(e,p9()?Reflect.construct(t,n||[],Jy(e).constructor):t.apply(e,n))}function xxe(e,t){if(t&&(Nf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wxe(e)}function wxe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(p9=function(){return!!e})()}function Jy(e){return Jy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Jy(e)}function Oxe(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&&QC(e,t)}function QC(e,t){return QC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},QC(e,t)}function KD(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 YD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?KD(Object(n),!0).forEach(function(r){Rj(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Rj(e,t,n){return t=m9(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m9(e){var t=Sxe(e,"string");return Nf(t)=="symbol"?t:t+""}function Sxe(e,t){if(Nf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Nf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Pxe(e,t){return jxe(e)||Txe(e,t)||Exe(e,t)||Cxe()}function Cxe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Exe(e,t){if(e){if(typeof e=="string")return ZD(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 ZD(e,t)}}function ZD(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 Txe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],c=!0,u=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(h){u=!0,i=h}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function jxe(e){if(Array.isArray(e))return e}function JC(){return JC=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},JC.apply(this,arguments)}var Axe=function(t,n){var r;return Z.isValidElement(t)?r=Z.cloneElement(t,n):dt(t)?r=t(n):r=Z.createElement("line",JC({},n,{className:"recharts-reference-line-line"})),r},kxe=function(t,n,r,i,o,a,s,c,u){var h=o.x,p=o.y,v=o.width,b=o.height;if(r){var x=u.y,_=t.y.apply(x,{position:a});if(Qo(u,"discard")&&!t.y.isInRange(_))return null;var w=[{x:h+v,y:_},{x:h,y:_}];return c==="left"?w.reverse():w}if(n){var O=u.x,P=t.x.apply(O,{position:a});if(Qo(u,"discard")&&!t.x.isInRange(P))return null;var E=[{x:P,y:p+b},{x:P,y:p}];return s==="top"?E.reverse():E}if(i){var T=u.segment,A=T.map(function(j){return t.apply(j,{position:a})});return Qo(u,"discard")&&S1e(A,function(j){return!t.isInRange(j)})?null:A}return null};function Rxe(e){var t=e.x,n=e.y,r=e.segment,i=e.xAxisId,o=e.yAxisId,a=e.shape,s=e.className,c=e.alwaysShow,u=dxe(),h=d9(i),p=h9(o),v=mxe();if(!u||!v)return null;wo(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var b=Ej({x:h.scale,y:p.scale}),x=Wn(t),_=Wn(n),w=r&&r.length===2,O=kxe(b,x,_,w,v,e.position,h.orientation,p.orientation,e);if(!O)return null;var P=Pxe(O,2),E=P[0],T=E.x,A=E.y,j=P[1],N=j.x,$=j.y,W=Qo(e,"hidden")?"url(#".concat(u,")"):void 0,B=YD(YD({clipPath:W},it(e,!0)),{},{x1:T,y1:A,x2:N,y2:$});return Z.createElement(Pt,{className:Be("recharts-reference-line",s)},Axe(a,B),Jn.renderCallByParent(e,exe({x1:T,y1:A,x2:N,y2:$})))}var Nj=function(e){function t(){return gxe(this,t),_xe(this,t,arguments)}return Oxe(t,e),bxe(t,[{key:"render",value:function(){return Z.createElement(Rxe,this.props)}}])}(Z.Component);Rj(Nj,"displayName","ReferenceLine");Rj(Nj,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function eE(){return eE=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},eE.apply(this,arguments)}function Mf(e){"@babel/helpers - typeof";return Mf=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},Mf(e)}function XD(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 QD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?XD(Object(n),!0).forEach(function(r){xb(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Nxe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mxe(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,g9(r.key),r)}}function Lxe(e,t,n){return t&&Mxe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ixe(e,t,n){return t=e0(t),Dxe(e,v9()?Reflect.construct(t,n||[],e0(e).constructor):t.apply(e,n))}function Dxe(e,t){if(t&&(Mf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $xe(e)}function $xe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(v9=function(){return!!e})()}function e0(e){return e0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},e0(e)}function Fxe(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&&tE(e,t)}function tE(e,t){return tE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},tE(e,t)}function xb(e,t,n){return t=g9(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g9(e){var t=Bxe(e,"string");return Mf(t)=="symbol"?t:t+""}function Bxe(e,t){if(Mf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Mf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Uxe=function(t){var n=t.x,r=t.y,i=t.xAxis,o=t.yAxis,a=Ej({x:i.scale,y:o.scale}),s=a.apply({x:n,y:r},{bandAware:!0});return Qo(t,"discard")&&!a.isInRange(s)?null:s},wb=function(e){function t(){return Nxe(this,t),Ixe(this,t,arguments)}return Fxe(t,e),Lxe(t,[{key:"render",value:function(){var r=this.props,i=r.x,o=r.y,a=r.r,s=r.alwaysShow,c=r.clipPathId,u=Wn(i),h=Wn(o);if(wo(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!h)return null;var p=Uxe(this.props);if(!p)return null;var v=p.x,b=p.y,x=this.props,_=x.shape,w=x.className,O=Qo(this.props,"hidden")?"url(#".concat(c,")"):void 0,P=QD(QD({clipPath:O},it(this.props,!0)),{},{cx:v,cy:b});return Z.createElement(Pt,{className:Be("recharts-reference-dot",w)},t.renderDot(_,P),Jn.renderCallByParent(this.props,{x:v-a,y:b-a,width:2*a,height:2*a}))}}])}(Z.Component);xb(wb,"displayName","ReferenceDot");xb(wb,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});xb(wb,"renderDot",function(e,t){var n;return Z.isValidElement(e)?n=Z.cloneElement(e,t):dt(e)?n=e(t):n=Z.createElement(dm,eE({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function nE(){return nE=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},nE.apply(this,arguments)}function Lf(e){"@babel/helpers - typeof";return Lf=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},Lf(e)}function JD(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 e5(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JD(Object(n),!0).forEach(function(r){Ob(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zxe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vxe(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,b9(r.key),r)}}function Wxe(e,t,n){return t&&Vxe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function qxe(e,t,n){return t=t0(t),Hxe(e,y9()?Reflect.construct(t,n||[],t0(e).constructor):t.apply(e,n))}function Hxe(e,t){if(t&&(Lf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Gxe(e)}function Gxe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(y9=function(){return!!e})()}function t0(e){return t0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},t0(e)}function Kxe(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&&rE(e,t)}function rE(e,t){return rE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},rE(e,t)}function Ob(e,t,n){return t=b9(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b9(e){var t=Yxe(e,"string");return Lf(t)=="symbol"?t:t+""}function Yxe(e,t){if(Lf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Lf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Zxe=function(t,n,r,i,o){var a=o.x1,s=o.x2,c=o.y1,u=o.y2,h=o.xAxis,p=o.yAxis;if(!h||!p)return null;var v=Ej({x:h.scale,y:p.scale}),b={x:t?v.x.apply(a,{position:"start"}):v.x.rangeMin,y:r?v.y.apply(c,{position:"start"}):v.y.rangeMin},x={x:n?v.x.apply(s,{position:"end"}):v.x.rangeMax,y:i?v.y.apply(u,{position:"end"}):v.y.rangeMax};return Qo(o,"discard")&&(!v.isInRange(b)||!v.isInRange(x))?null:o9(b,x)},hm=function(e){function t(){return zxe(this,t),qxe(this,t,arguments)}return Kxe(t,e),Wxe(t,[{key:"render",value:function(){var r=this.props,i=r.x1,o=r.x2,a=r.y1,s=r.y2,c=r.className,u=r.alwaysShow,h=r.clipPathId;wo(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=Wn(i),v=Wn(o),b=Wn(a),x=Wn(s),_=this.props.shape;if(!p&&!v&&!b&&!x&&!_)return null;var w=Zxe(p,v,b,x,this.props);if(!w&&!_)return null;var O=Qo(this.props,"hidden")?"url(#".concat(h,")"):void 0;return Z.createElement(Pt,{className:Be("recharts-reference-area",c)},t.renderRect(_,e5(e5({clipPath:O},it(this.props,!0)),w)),Jn.renderCallByParent(this.props,w))}}])}(Z.Component);Ob(hm,"displayName","ReferenceArea");Ob(hm,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});Ob(hm,"renderRect",function(e,t){var n;return Z.isValidElement(e)?n=Z.cloneElement(e,t):dt(e)?n=e(t):n=Z.createElement(Cj,nE({},t,{className:"recharts-reference-area-rect"})),n});function _9(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 Xxe(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return nxe(r,n)}function Qxe(e,t,n){var r=n==="width",i=e.x,o=e.y,a=e.width,s=e.height;return t===1?{start:r?i:o,end:r?i+a:o+s}:{start:r?i+a:o+s,end:r?i:o}}function n0(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 Jxe(e,t){return _9(e,t+1)}function ewe(e,t,n,r,i){for(var o=(r||[]).slice(),a=t.start,s=t.end,c=0,u=1,h=a,p=function(){var x=r==null?void 0:r[c];if(x===void 0)return{v:_9(r,u)};var _=c,w,O=function(){return w===void 0&&(w=n(x,_)),w},P=x.coordinate,E=c===0||n0(e,P,O,h,s);E||(c=0,h=a,u+=1),E&&(h=P+e*(O()/2+i),c+=u)},v;u<=o.length;)if(v=p(),v)return v.v;return[]}function Up(e){"@babel/helpers - typeof";return Up=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},Up(e)}function t5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function mr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?t5(Object(n),!0).forEach(function(r){twe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function twe(e,t,n){return t=nwe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nwe(e){var t=rwe(e,"string");return Up(t)=="symbol"?t:t+""}function rwe(e,t){if(Up(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Up(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function iwe(e,t,n,r,i){for(var o=(r||[]).slice(),a=o.length,s=t.start,c=t.end,u=function(v){var b=o[v],x,_=function(){return x===void 0&&(x=n(b,v)),x};if(v===a-1){var w=e*(b.coordinate+e*_()/2-c);o[v]=b=mr(mr({},b),{},{tickCoord:w>0?b.coordinate-w*e:b.coordinate})}else o[v]=b=mr(mr({},b),{},{tickCoord:b.coordinate});var O=n0(e,b.tickCoord,_,s,c);O&&(c=b.tickCoord-e*(_()/2+i),o[v]=mr(mr({},b),{},{isShow:!0}))},h=a-1;h>=0;h--)u(h);return o}function owe(e,t,n,r,i,o){var a=(r||[]).slice(),s=a.length,c=t.start,u=t.end;if(o){var h=r[s-1],p=n(h,s-1),v=e*(h.coordinate+e*p/2-u);a[s-1]=h=mr(mr({},h),{},{tickCoord:v>0?h.coordinate-v*e:h.coordinate});var b=n0(e,h.tickCoord,function(){return p},c,u);b&&(u=h.tickCoord-e*(p/2+i),a[s-1]=mr(mr({},h),{},{isShow:!0}))}for(var x=o?s-1:s,_=function(P){var E=a[P],T,A=function(){return T===void 0&&(T=n(E,P)),T};if(P===0){var j=e*(E.coordinate-e*A()/2-c);a[P]=E=mr(mr({},E),{},{tickCoord:j<0?E.coordinate-j*e:E.coordinate})}else a[P]=E=mr(mr({},E),{},{tickCoord:E.coordinate});var N=n0(e,E.tickCoord,A,c,u);N&&(c=E.tickCoord+e*(A()/2+i),a[P]=mr(mr({},E),{},{isShow:!0}))},w=0;w<x;w++)_(w);return a}function Mj(e,t,n){var r=e.tick,i=e.ticks,o=e.viewBox,a=e.minTickGap,s=e.orientation,c=e.interval,u=e.tickFormatter,h=e.unit,p=e.angle;if(!i||!i.length||!r)return[];if(Ve(c)||Ki.isSsr)return Jxe(i,typeof c=="number"&&Ve(c)?c:0);var v=[],b=s==="top"||s==="bottom"?"width":"height",x=h&&b==="width"?Lh(h,{fontSize:t,letterSpacing:n}):{width:0,height:0},_=function(E,T){var A=dt(u)?u(E.value,T):E.value;return b==="width"?Xxe(Lh(A,{fontSize:t,letterSpacing:n}),x,p):Lh(A,{fontSize:t,letterSpacing:n})[b]},w=i.length>=2?Pr(i[1].coordinate-i[0].coordinate):1,O=Qxe(o,w,b);return c==="equidistantPreserveStart"?ewe(w,O,_,i,a):(c==="preserveStart"||c==="preserveStartEnd"?v=owe(w,O,_,i,a,c==="preserveStartEnd"):v=iwe(w,O,_,i,a),v.filter(function(P){return P.isShow}))}var awe=["viewBox"],swe=["viewBox"],lwe=["ticks"];function If(e){"@babel/helpers - typeof";return If=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},If(e)}function Zc(){return Zc=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},Zc.apply(this,arguments)}function n5(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 Or(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?n5(Object(n),!0).forEach(function(r){Lj(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):n5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kO(e,t){if(e==null)return{};var n=uwe(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 uwe(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 cwe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r5(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,w9(r.key),r)}}function fwe(e,t,n){return t&&r5(e.prototype,t),n&&r5(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function dwe(e,t,n){return t=r0(t),hwe(e,x9()?Reflect.construct(t,n||[],r0(e).constructor):t.apply(e,n))}function hwe(e,t){if(t&&(If(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pwe(e)}function pwe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(x9=function(){return!!e})()}function r0(e){return r0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},r0(e)}function mwe(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&&iE(e,t)}function iE(e,t){return iE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},iE(e,t)}function Lj(e,t,n){return t=w9(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w9(e){var t=vwe(e,"string");return If(t)=="symbol"?t:t+""}function vwe(e,t){if(If(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(If(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ad=function(e){function t(n){var r;return cwe(this,t),r=dwe(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return mwe(t,e),fwe(t,[{key:"shouldComponentUpdate",value:function(r,i){var o=r.viewBox,a=kO(r,awe),s=this.props,c=s.viewBox,u=kO(s,swe);return!ef(o,c)||!ef(a,u)||!ef(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,a=i.y,s=i.width,c=i.height,u=i.orientation,h=i.tickSize,p=i.mirror,v=i.tickMargin,b,x,_,w,O,P,E=p?-1:1,T=r.tickSize||h,A=Ve(r.tickCoord)?r.tickCoord:r.coordinate;switch(u){case"top":b=x=r.coordinate,w=a+ +!p*c,_=w-E*T,P=_-E*v,O=A;break;case"left":_=w=r.coordinate,x=o+ +!p*s,b=x-E*T,O=b-E*v,P=A;break;case"right":_=w=r.coordinate,x=o+ +p*s,b=x+E*T,O=b+E*v,P=A;break;default:b=x=r.coordinate,w=a+ +p*c,_=w+E*T,P=_+E*v,O=A;break}return{line:{x1:b,y1:_,x2:x,y2:w},tick:{x:O,y:P}}}},{key:"getTickTextAnchor",value:function(){var r=this.props,i=r.orientation,o=r.mirror,a;switch(i){case"left":a=o?"start":"end";break;case"right":a=o?"end":"start";break;default:a="middle";break}return a}},{key:"getTickVerticalAnchor",value:function(){var r=this.props,i=r.orientation,o=r.mirror,a="end";switch(i){case"left":case"right":a="middle";break;case"top":a=o?"start":"end";break;default:a=o?"end":"start";break}return a}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.x,o=r.y,a=r.width,s=r.height,c=r.orientation,u=r.mirror,h=r.axisLine,p=Or(Or(Or({},it(this.props,!1)),it(h,!1)),{},{fill:"none"});if(c==="top"||c==="bottom"){var v=+(c==="top"&&!u||c==="bottom"&&u);p=Or(Or({},p),{},{x1:i,y1:o+v*s,x2:i+a,y2:o+v*s})}else{var b=+(c==="left"&&!u||c==="right"&&u);p=Or(Or({},p),{},{x1:i+b*a,y1:o,x2:i+b*a,y2:o+s})}return Z.createElement("line",Zc({},p,{className:Be("recharts-cartesian-axis-line",vi(h,"className"))}))}},{key:"renderTicks",value:function(r,i,o){var a=this,s=this.props,c=s.tickLine,u=s.stroke,h=s.tick,p=s.tickFormatter,v=s.unit,b=Mj(Or(Or({},this.props),{},{ticks:r}),i,o),x=this.getTickTextAnchor(),_=this.getTickVerticalAnchor(),w=it(this.props,!1),O=it(h,!1),P=Or(Or({},w),{},{fill:"none"},it(c,!1)),E=b.map(function(T,A){var j=a.getTickLineCoord(T),N=j.line,$=j.tick,W=Or(Or(Or(Or({textAnchor:x,verticalAnchor:_},w),{},{stroke:"none",fill:u},O),$),{},{index:A,payload:T,visibleTicksCount:b.length,tickFormatter:p});return Z.createElement(Pt,Zc({className:"recharts-cartesian-axis-tick",key:"tick-".concat(T.value,"-").concat(T.coordinate,"-").concat(T.tickCoord)},sl(a.props,T,A)),c&&Z.createElement("line",Zc({},P,N,{className:Be("recharts-cartesian-axis-tick-line",vi(c,"className"))})),h&&t.renderTickItem(h,W,"".concat(dt(p)?p(T.value,A):T.value).concat(v||"")))});return Z.createElement("g",{className:"recharts-cartesian-axis-ticks"},E)}},{key:"render",value:function(){var r=this,i=this.props,o=i.axisLine,a=i.width,s=i.height,c=i.ticksGenerator,u=i.className,h=i.hide;if(h)return null;var p=this.props,v=p.ticks,b=kO(p,lwe),x=v;return dt(c)&&(x=v&&v.length>0?c(this.props):c(b)),a<=0||s<=0||!x||!x.length?null:Z.createElement(Pt,{className:Be("recharts-cartesian-axis",u),ref:function(w){r.layerReference=w}},o&&this.renderAxisLine(),this.renderTicks(x,this.state.fontSize,this.state.letterSpacing),Jn.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,i,o){var a;return Z.isValidElement(r)?a=Z.cloneElement(r,i):dt(r)?a=r(i):a=Z.createElement(Eu,Zc({},i,{className:"recharts-cartesian-axis-tick-value"}),o),a}}])}(F.Component);Lj(ad,"displayName","CartesianAxis");Lj(ad,"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 gwe=["x1","y1","x2","y2","key"],ywe=["offset"];function Au(e){"@babel/helpers - typeof";return Au=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},Au(e)}function i5(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?i5(Object(n),!0).forEach(function(r){bwe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bwe(e,t,n){return t=_we(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _we(e){var t=xwe(e,"string");return Au(t)=="symbol"?t:t+""}function xwe(e,t){if(Au(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Au(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function du(){return du=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},du.apply(this,arguments)}function o5(e,t){if(e==null)return{};var n=wwe(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 wwe(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 Owe=function(t){var n=t.fill;if(!n||n==="none")return null;var r=t.fillOpacity,i=t.x,o=t.y,a=t.width,s=t.height,c=t.ry;return Z.createElement("rect",{x:i,y:o,ry:c,width:a,height:s,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function O9(e,t){var n;if(Z.isValidElement(e))n=Z.cloneElement(e,t);else if(dt(e))n=e(t);else{var r=t.x1,i=t.y1,o=t.x2,a=t.y2,s=t.key,c=o5(t,gwe),u=it(c,!1);u.offset;var h=o5(u,ywe);n=Z.createElement("line",du({},h,{x1:r,y1:i,x2:o,y2:a,fill:"none",key:s}))}return n}function Swe(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 a=o.map(function(s,c){var u=vr(vr({},e),{},{x1:t,y1:s,x2:t+n,y2:s,key:"line-".concat(c),index:c});return O9(i,u)});return Z.createElement("g",{className:"recharts-cartesian-grid-horizontal"},a)}function Pwe(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 a=o.map(function(s,c){var u=vr(vr({},e),{},{x1:s,y1:t,x2:s,y2:t+n,key:"line-".concat(c),index:c});return O9(i,u)});return Z.createElement("g",{className:"recharts-cartesian-grid-vertical"},a)}function Cwe(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,i=e.y,o=e.width,a=e.height,s=e.horizontalPoints,c=e.horizontal,u=c===void 0?!0:c;if(!u||!t||!t.length)return null;var h=s.map(function(v){return Math.round(v+i-i)}).sort(function(v,b){return v-b});i!==h[0]&&h.unshift(0);var p=h.map(function(v,b){var x=!h[b+1],_=x?i+a-v:h[b+1]-v;if(_<=0)return null;var w=b%t.length;return Z.createElement("rect",{key:"react-".concat(b),y:v,x:r,height:_,width:o,stroke:"none",fill:t[w],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return Z.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},p)}function Ewe(e){var t=e.vertical,n=t===void 0?!0:t,r=e.verticalFill,i=e.fillOpacity,o=e.x,a=e.y,s=e.width,c=e.height,u=e.verticalPoints;if(!n||!r||!r.length)return null;var h=u.map(function(v){return Math.round(v+o-o)}).sort(function(v,b){return v-b});o!==h[0]&&h.unshift(0);var p=h.map(function(v,b){var x=!h[b+1],_=x?o+s-v:h[b+1]-v;if(_<=0)return null;var w=b%r.length;return Z.createElement("rect",{key:"react-".concat(b),x:v,y:a,width:_,height:c,stroke:"none",fill:r[w],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return Z.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},p)}var Twe=function(t,n){var r=t.xAxis,i=t.width,o=t.height,a=t.offset;return OU(Mj(vr(vr(vr({},ad.defaultProps),r),{},{ticks:Ma(r,!0),viewBox:{x:0,y:0,width:i,height:o}})),a.left,a.left+a.width,n)},jwe=function(t,n){var r=t.yAxis,i=t.width,o=t.height,a=t.offset;return OU(Mj(vr(vr(vr({},ad.defaultProps),r),{},{ticks:Ma(r,!0),viewBox:{x:0,y:0,width:i,height:o}})),a.top,a.top+a.height,n)},Lc={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function Ij(e){var t,n,r,i,o,a,s=Aj(),c=kj(),u=vxe(),h=vr(vr({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Lc.stroke,fill:(n=e.fill)!==null&&n!==void 0?n:Lc.fill,horizontal:(r=e.horizontal)!==null&&r!==void 0?r:Lc.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:Lc.horizontalFill,vertical:(o=e.vertical)!==null&&o!==void 0?o:Lc.vertical,verticalFill:(a=e.verticalFill)!==null&&a!==void 0?a:Lc.verticalFill,x:Ve(e.x)?e.x:u.left,y:Ve(e.y)?e.y:u.top,width:Ve(e.width)?e.width:u.width,height:Ve(e.height)?e.height:u.height}),p=h.x,v=h.y,b=h.width,x=h.height,_=h.syncWithTicks,w=h.horizontalValues,O=h.verticalValues,P=hxe(),E=pxe();if(!Ve(b)||b<=0||!Ve(x)||x<=0||!Ve(p)||p!==+p||!Ve(v)||v!==+v)return null;var T=h.verticalCoordinatesGenerator||Twe,A=h.horizontalCoordinatesGenerator||jwe,j=h.horizontalPoints,N=h.verticalPoints;if((!j||!j.length)&&dt(A)){var $=w&&w.length,W=A({yAxis:E?vr(vr({},E),{},{ticks:$?w:E.ticks}):void 0,width:s,height:c,offset:u},$?!0:_);wo(Array.isArray(W),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Au(W),"]")),Array.isArray(W)&&(j=W)}if((!N||!N.length)&&dt(T)){var B=O&&O.length,V=T({xAxis:P?vr(vr({},P),{},{ticks:B?O:P.ticks}):void 0,width:s,height:c,offset:u},B?!0:_);wo(Array.isArray(V),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Au(V),"]")),Array.isArray(V)&&(N=V)}return Z.createElement("g",{className:"recharts-cartesian-grid"},Z.createElement(Owe,{fill:h.fill,fillOpacity:h.fillOpacity,x:h.x,y:h.y,width:h.width,height:h.height,ry:h.ry}),Z.createElement(Swe,du({},h,{offset:u,horizontalPoints:j,xAxis:P,yAxis:E})),Z.createElement(Pwe,du({},h,{offset:u,verticalPoints:N,xAxis:P,yAxis:E})),Z.createElement(Cwe,du({},h,{horizontalPoints:j})),Z.createElement(Ewe,du({},h,{verticalPoints:N})))}Ij.displayName="CartesianGrid";var Awe=["type","layout","connectNulls","ref"],kwe=["key"];function Df(e){"@babel/helpers - typeof";return Df=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},Df(e)}function a5(e,t){if(e==null)return{};var n=Rwe(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 Rwe(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 Uh(){return Uh=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},Uh.apply(this,arguments)}function s5(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 fi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?s5(Object(n),!0).forEach(function(r){yo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ic(e){return Iwe(e)||Lwe(e)||Mwe(e)||Nwe()}function Nwe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mwe(e,t){if(e){if(typeof e=="string")return oE(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 oE(e,t)}}function Lwe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Iwe(e){if(Array.isArray(e))return oE(e)}function oE(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 Dwe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l5(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,P9(r.key),r)}}function $we(e,t,n){return t&&l5(e.prototype,t),n&&l5(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Fwe(e,t,n){return t=i0(t),Bwe(e,S9()?Reflect.construct(t,n||[],i0(e).constructor):t.apply(e,n))}function Bwe(e,t){if(t&&(Df(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Uwe(e)}function Uwe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(S9=function(){return!!e})()}function i0(e){return i0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},i0(e)}function zwe(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&&aE(e,t)}function aE(e,t){return aE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},aE(e,t)}function yo(e,t,n){return t=P9(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function P9(e){var t=Vwe(e,"string");return Df(t)=="symbol"?t:t+""}function Vwe(e,t){if(Df(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Df(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var sd=function(e){function t(){var n;Dwe(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=Fwe(this,t,[].concat(i)),yo(n,"state",{isAnimationFinished:!0,totalLength:0}),yo(n,"generateSimpleStrokeDasharray",function(a,s){return"".concat(s,"px ").concat(a-s,"px")}),yo(n,"getStrokeDasharray",function(a,s,c){var u=c.reduce(function(O,P){return O+P});if(!u)return n.generateSimpleStrokeDasharray(s,a);for(var h=Math.floor(a/u),p=a%u,v=s-a,b=[],x=0,_=0;x<c.length;_+=c[x],++x)if(_+c[x]>p){b=[].concat(Ic(c.slice(0,x)),[p-_]);break}var w=b.length%2===0?[0,v]:[v];return[].concat(Ic(t.repeat(c,h)),Ic(b),w).map(function(O){return"".concat(O,"px")}).join(", ")}),yo(n,"id",vl("recharts-line-")),yo(n,"pathRef",function(a){n.mainCurve=a}),yo(n,"handleAnimationEnd",function(){n.setState({isAnimationFinished:!0}),n.props.onAnimationEnd&&n.props.onAnimationEnd()}),yo(n,"handleAnimationStart",function(){n.setState({isAnimationFinished:!1}),n.props.onAnimationStart&&n.props.onAnimationStart()}),n}return zwe(t,e),$we(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var r=this.getTotalLength();this.setState({totalLength:r})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var r=this.getTotalLength();r!==this.state.totalLength&&this.setState({totalLength:r})}}},{key:"getTotalLength",value:function(){var r=this.mainCurve;try{return r&&r.getTotalLength&&r.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(r,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var o=this.props,a=o.points,s=o.xAxis,c=o.yAxis,u=o.layout,h=o.children,p=Ar(h,id);if(!p)return null;var v=function(_,w){return{x:_.x,y:_.y,value:_.value,errorVal:on(_.payload,w)}},b={clipPath:r?"url(#clipPath-".concat(i,")"):null};return Z.createElement(Pt,b,p.map(function(x){return Z.cloneElement(x,{key:"bar-".concat(x.props.dataKey),data:a,xAxis:s,yAxis:c,layout:u,dataPointFormatter:v})}))}},{key:"renderDots",value:function(r,i,o){var a=this.props.isAnimationActive;if(a&&!this.state.isAnimationFinished)return null;var s=this.props,c=s.dot,u=s.points,h=s.dataKey,p=it(this.props,!1),v=it(c,!0),b=u.map(function(_,w){var O=fi(fi(fi({key:"dot-".concat(w),r:3},p),v),{},{value:_.value,dataKey:h,cx:_.x,cy:_.y,index:w,payload:_.payload});return t.renderDotItem(c,O)}),x={clipPath:r?"url(#clipPath-".concat(i?"":"dots-").concat(o,")"):null};return Z.createElement(Pt,Uh({className:"recharts-line-dots",key:"dots"},x),b)}},{key:"renderCurveStatically",value:function(r,i,o,a){var s=this.props,c=s.type,u=s.layout,h=s.connectNulls;s.ref;var p=a5(s,Awe),v=fi(fi(fi({},it(p,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(o,")"):null,points:r},a),{},{type:c,layout:u,connectNulls:h});return Z.createElement(tl,Uh({},v,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(r,i){var o=this,a=this.props,s=a.points,c=a.strokeDasharray,u=a.isAnimationActive,h=a.animationBegin,p=a.animationDuration,v=a.animationEasing,b=a.animationId,x=a.animateNewValues,_=a.width,w=a.height,O=this.state,P=O.prevPoints,E=O.totalLength;return Z.createElement(Ji,{begin:h,duration:p,isActive:u,easing:v,from:{t:0},to:{t:1},key:"line-".concat(b),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(T){var A=T.t;if(P){var j=P.length/s.length,N=s.map(function(H,J){var Q=Math.floor(J*j);if(P[Q]){var re=P[Q],ae=xn(re.x,H.x),se=xn(re.y,H.y);return fi(fi({},H),{},{x:ae(A),y:se(A)})}if(x){var oe=xn(_*2,H.x),K=xn(w/2,H.y);return fi(fi({},H),{},{x:oe(A),y:K(A)})}return fi(fi({},H),{},{x:H.x,y:H.y})});return o.renderCurveStatically(N,r,i)}var $=xn(0,E),W=$(A),B;if(c){var V="".concat(c).split(/[,\s]+/gim).map(function(H){return parseFloat(H)});B=o.getStrokeDasharray(W,E,V)}else B=o.generateSimpleStrokeDasharray(E,W);return o.renderCurveStatically(s,r,i,{strokeDasharray:B})})}},{key:"renderCurve",value:function(r,i){var o=this.props,a=o.points,s=o.isAnimationActive,c=this.state,u=c.prevPoints,h=c.totalLength;return s&&a&&a.length&&(!u&&h>0||!ll(u,a))?this.renderCurveWithAnimation(r,i):this.renderCurveStatically(a,r,i)}},{key:"render",value:function(){var r,i=this.props,o=i.hide,a=i.dot,s=i.points,c=i.className,u=i.xAxis,h=i.yAxis,p=i.top,v=i.left,b=i.width,x=i.height,_=i.isAnimationActive,w=i.id;if(o||!s||!s.length)return null;var O=this.state.isAnimationFinished,P=s.length===1,E=Be("recharts-line",c),T=u&&u.allowDataOverflow,A=h&&h.allowDataOverflow,j=T||A,N=ft(w)?this.id:w,$=(r=it(a,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},W=$.r,B=W===void 0?3:W,V=$.strokeWidth,H=V===void 0?2:V,J=P7(a)?a:{},Q=J.clipDot,re=Q===void 0?!0:Q,ae=B*2+H;return Z.createElement(Pt,{className:E},T||A?Z.createElement("defs",null,Z.createElement("clipPath",{id:"clipPath-".concat(N)},Z.createElement("rect",{x:T?v:v-b/2,y:A?p:p-x/2,width:T?b:b*2,height:A?x:x*2})),!re&&Z.createElement("clipPath",{id:"clipPath-dots-".concat(N)},Z.createElement("rect",{x:v-ae/2,y:p-ae/2,width:b+ae,height:x+ae}))):null,!P&&this.renderCurve(j,N),this.renderErrorBar(j,N),(P||a)&&this.renderDots(j,re,N),(!_||O)&&Oo.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,prevPoints:i.curPoints}:r.points!==i.curPoints?{curPoints:r.points}:null}},{key:"repeat",value:function(r,i){for(var o=r.length%2!==0?[].concat(Ic(r),[0]):r,a=[],s=0;s<i;++s)a=[].concat(Ic(a),Ic(o));return a}},{key:"renderDotItem",value:function(r,i){var o;if(Z.isValidElement(r))o=Z.cloneElement(r,i);else if(dt(r))o=r(i);else{var a=i.key,s=a5(i,kwe),c=Be("recharts-line-dot",typeof r!="boolean"?r.className:"");o=Z.createElement(dm,Uh({key:a},s,{className:c}))}return o}}])}(F.PureComponent);yo(sd,"displayName","Line");yo(sd,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Ki.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});yo(sd,"getComposedData",function(e){var t=e.props,n=e.xAxis,r=e.yAxis,i=e.xAxisTicks,o=e.yAxisTicks,a=e.dataKey,s=e.bandSize,c=e.displayedData,u=e.offset,h=t.layout,p=c.map(function(v,b){var x=on(v,a);return h==="horizontal"?{x:Pf({axis:n,ticks:i,bandSize:s,entry:v,index:b}),y:ft(x)?null:r.scale(x),value:x,payload:v}:{x:ft(x)?null:n.scale(x),y:Pf({axis:r,ticks:o,bandSize:s,entry:v,index:b}),value:x,payload:v}});return fi({points:p,layout:h},u)});var Wwe=["layout","type","stroke","connectNulls","isRange","ref"],qwe=["key"],C9;function $f(e){"@babel/helpers - typeof";return $f=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},$f(e)}function E9(e,t){if(e==null)return{};var n=Hwe(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 Hwe(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 hu(){return hu=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},hu.apply(this,arguments)}function u5(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 Us(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?u5(Object(n),!0).forEach(function(r){Yo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Gwe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c5(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,j9(r.key),r)}}function Kwe(e,t,n){return t&&c5(e.prototype,t),n&&c5(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ywe(e,t,n){return t=o0(t),Zwe(e,T9()?Reflect.construct(t,n||[],o0(e).constructor):t.apply(e,n))}function Zwe(e,t){if(t&&($f(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Xwe(e)}function Xwe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function T9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(T9=function(){return!!e})()}function o0(e){return o0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},o0(e)}function Qwe(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&&sE(e,t)}function sE(e,t){return sE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},sE(e,t)}function Yo(e,t,n){return t=j9(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j9(e){var t=Jwe(e,"string");return $f(t)=="symbol"?t:t+""}function Jwe(e,t){if($f(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if($f(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $u=function(e){function t(){var n;Gwe(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=Ywe(this,t,[].concat(i)),Yo(n,"state",{isAnimationFinished:!0}),Yo(n,"id",vl("recharts-area-")),Yo(n,"handleAnimationEnd",function(){var a=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),dt(a)&&a()}),Yo(n,"handleAnimationStart",function(){var a=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),dt(a)&&a()}),n}return Qwe(t,e),Kwe(t,[{key:"renderDots",value:function(r,i,o){var a=this.props.isAnimationActive,s=this.state.isAnimationFinished;if(a&&!s)return null;var c=this.props,u=c.dot,h=c.points,p=c.dataKey,v=it(this.props,!1),b=it(u,!0),x=h.map(function(w,O){var P=Us(Us(Us({key:"dot-".concat(O),r:3},v),b),{},{index:O,cx:w.x,cy:w.y,dataKey:p,value:w.value,payload:w.payload,points:h});return t.renderDotItem(u,P)}),_={clipPath:r?"url(#clipPath-".concat(i?"":"dots-").concat(o,")"):null};return Z.createElement(Pt,hu({className:"recharts-area-dots"},_),x)}},{key:"renderHorizontalRect",value:function(r){var i=this.props,o=i.baseLine,a=i.points,s=i.strokeWidth,c=a[0].x,u=a[a.length-1].x,h=r*Math.abs(c-u),p=Gs(a.map(function(v){return v.y||0}));return Ve(o)&&typeof o=="number"?p=Math.max(o,p):o&&Array.isArray(o)&&o.length&&(p=Math.max(Gs(o.map(function(v){return v.y||0})),p)),Ve(p)?Z.createElement("rect",{x:c<u?c:c-h,y:0,width:h,height:Math.floor(p+(s?parseInt("".concat(s),10):1))}):null}},{key:"renderVerticalRect",value:function(r){var i=this.props,o=i.baseLine,a=i.points,s=i.strokeWidth,c=a[0].y,u=a[a.length-1].y,h=r*Math.abs(c-u),p=Gs(a.map(function(v){return v.x||0}));return Ve(o)&&typeof o=="number"?p=Math.max(o,p):o&&Array.isArray(o)&&o.length&&(p=Math.max(Gs(o.map(function(v){return v.x||0})),p)),Ve(p)?Z.createElement("rect",{x:0,y:c<u?c:c-h,width:p+(s?parseInt("".concat(s),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,a){var s=this.props,c=s.layout,u=s.type,h=s.stroke,p=s.connectNulls,v=s.isRange;s.ref;var b=E9(s,Wwe);return Z.createElement(Pt,{clipPath:o?"url(#clipPath-".concat(a,")"):null},Z.createElement(tl,hu({},it(b,!0),{points:r,connectNulls:p,type:u,baseLine:i,layout:c,stroke:"none",className:"recharts-area-area"})),h!=="none"&&Z.createElement(tl,hu({},it(this.props,!1),{className:"recharts-area-curve",layout:c,type:u,connectNulls:p,fill:"none",points:r})),h!=="none"&&v&&Z.createElement(tl,hu({},it(this.props,!1),{className:"recharts-area-curve",layout:c,type:u,connectNulls:p,fill:"none",points:i})))}},{key:"renderAreaWithAnimation",value:function(r,i){var o=this,a=this.props,s=a.points,c=a.baseLine,u=a.isAnimationActive,h=a.animationBegin,p=a.animationDuration,v=a.animationEasing,b=a.animationId,x=this.state,_=x.prevPoints,w=x.prevBaseLine;return Z.createElement(Ji,{begin:h,duration:p,isActive:u,easing:v,from:{t:0},to:{t:1},key:"area-".concat(b),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(O){var P=O.t;if(_){var E=_.length/s.length,T=s.map(function($,W){var B=Math.floor(W*E);if(_[B]){var V=_[B],H=xn(V.x,$.x),J=xn(V.y,$.y);return Us(Us({},$),{},{x:H(P),y:J(P)})}return $}),A;if(Ve(c)&&typeof c=="number"){var j=xn(w,c);A=j(P)}else if(ft(c)||Jf(c)){var N=xn(w,0);A=N(P)}else A=c.map(function($,W){var B=Math.floor(W*E);if(w[B]){var V=w[B],H=xn(V.x,$.x),J=xn(V.y,$.y);return Us(Us({},$),{},{x:H(P),y:J(P)})}return $});return o.renderAreaStatically(T,A,r,i)}return Z.createElement(Pt,null,Z.createElement("defs",null,Z.createElement("clipPath",{id:"animationClipPath-".concat(i)},o.renderClipRect(P))),Z.createElement(Pt,{clipPath:"url(#animationClipPath-".concat(i,")")},o.renderAreaStatically(s,c,r,i)))})}},{key:"renderArea",value:function(r,i){var o=this.props,a=o.points,s=o.baseLine,c=o.isAnimationActive,u=this.state,h=u.prevPoints,p=u.prevBaseLine,v=u.totalLength;return c&&a&&a.length&&(!h&&v>0||!ll(h,a)||!ll(p,s))?this.renderAreaWithAnimation(r,i):this.renderAreaStatically(a,s,r,i)}},{key:"render",value:function(){var r,i=this.props,o=i.hide,a=i.dot,s=i.points,c=i.className,u=i.top,h=i.left,p=i.xAxis,v=i.yAxis,b=i.width,x=i.height,_=i.isAnimationActive,w=i.id;if(o||!s||!s.length)return null;var O=this.state.isAnimationFinished,P=s.length===1,E=Be("recharts-area",c),T=p&&p.allowDataOverflow,A=v&&v.allowDataOverflow,j=T||A,N=ft(w)?this.id:w,$=(r=it(a,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},W=$.r,B=W===void 0?3:W,V=$.strokeWidth,H=V===void 0?2:V,J=P7(a)?a:{},Q=J.clipDot,re=Q===void 0?!0:Q,ae=B*2+H;return Z.createElement(Pt,{className:E},T||A?Z.createElement("defs",null,Z.createElement("clipPath",{id:"clipPath-".concat(N)},Z.createElement("rect",{x:T?h:h-b/2,y:A?u:u-x/2,width:T?b:b*2,height:A?x:x*2})),!re&&Z.createElement("clipPath",{id:"clipPath-dots-".concat(N)},Z.createElement("rect",{x:h-ae/2,y:u-ae/2,width:b+ae,height:x+ae}))):null,P?null:this.renderArea(j,N),(a||P)&&this.renderDots(j,re,N),(!_||O)&&Oo.renderCallByParent(this.props,s))}}],[{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}}])}(F.PureComponent);C9=$u;Yo($u,"displayName","Area");Yo($u,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Ki.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});Yo($u,"getBaseValue",function(e,t,n,r){var i=e.layout,o=e.baseValue,a=t.props.baseValue,s=a??o;if(Ve(s)&&typeof s=="number")return s;var c=i==="horizontal"?r:n,u=c.scale.domain();if(c.type==="number"){var h=Math.max(u[0],u[1]),p=Math.min(u[0],u[1]);return s==="dataMin"?p:s==="dataMax"||h<0?h:Math.max(Math.min(u[0],u[1]),0)}return s==="dataMin"?u[0]:s==="dataMax"?u[1]:u[0]});Yo($u,"getComposedData",function(e){var t=e.props,n=e.item,r=e.xAxis,i=e.yAxis,o=e.xAxisTicks,a=e.yAxisTicks,s=e.bandSize,c=e.dataKey,u=e.stackedData,h=e.dataStartIndex,p=e.displayedData,v=e.offset,b=t.layout,x=u&&u.length,_=C9.getBaseValue(t,n,r,i),w=b==="horizontal",O=!1,P=p.map(function(T,A){var j;x?j=u[h+A]:(j=on(T,c),Array.isArray(j)?O=!0:j=[_,j]);var N=j[1]==null||x&&on(T,c)==null;return w?{x:Pf({axis:r,ticks:o,bandSize:s,entry:T,index:A}),y:N?null:i.scale(j[1]),value:j,payload:T}:{x:N?null:r.scale(j[1]),y:Pf({axis:i,ticks:a,bandSize:s,entry:T,index:A}),value:j,payload:T}}),E;return x||O?E=P.map(function(T){var A=Array.isArray(T.value)?T.value[0]:null;return w?{x:T.x,y:A!=null&&T.y!=null?i.scale(A):null}:{x:A!=null?r.scale(A):null,y:T.y}}):E=w?i.scale(_):r.scale(_),Us({points:P,baseLine:E,layout:b,isRange:O},v)});Yo($u,"renderDotItem",function(e,t){var n;if(Z.isValidElement(e))n=Z.cloneElement(e,t);else if(dt(e))n=e(t);else{var r=Be("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,o=E9(t,qwe);n=Z.createElement(dm,hu({},o,{key:i,className:r}))}return n});function Ff(e){"@babel/helpers - typeof";return Ff=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},Ff(e)}function e2e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t2e(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,R9(r.key),r)}}function n2e(e,t,n){return t&&t2e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function r2e(e,t,n){return t=a0(t),i2e(e,A9()?Reflect.construct(t,n||[],a0(e).constructor):t.apply(e,n))}function i2e(e,t){if(t&&(Ff(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return o2e(e)}function o2e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function A9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(A9=function(){return!!e})()}function a0(e){return a0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},a0(e)}function a2e(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&&lE(e,t)}function lE(e,t){return lE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},lE(e,t)}function k9(e,t,n){return t=R9(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R9(e){var t=s2e(e,"string");return Ff(t)=="symbol"?t:t+""}function s2e(e,t){if(Ff(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ff(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Sb=function(e){function t(){return e2e(this,t),r2e(this,t,arguments)}return a2e(t,e),n2e(t,[{key:"render",value:function(){return null}}])}(Z.Component);k9(Sb,"displayName","ZAxis");k9(Sb,"defaultProps",{zAxisId:0,range:[64,64],scale:"auto",type:"number"});var l2e=["option","isActive"];function zh(){return zh=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},zh.apply(this,arguments)}function u2e(e,t){if(e==null)return{};var n=c2e(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 c2e(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 f2e(e){var t=e.option,n=e.isActive,r=u2e(e,l2e);return typeof t=="string"?Z.createElement(Hy,zh({option:Z.createElement(eb,zh({type:t},r)),isActive:n,shapeType:"symbols"},r)):Z.createElement(Hy,zh({option:t,isActive:n,shapeType:"symbols"},r))}function Bf(e){"@babel/helpers - typeof";return Bf=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},Bf(e)}function Vh(){return Vh=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},Vh.apply(this,arguments)}function f5(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 Ui(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?f5(Object(n),!0).forEach(function(r){Ys(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function d2e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d5(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,M9(r.key),r)}}function h2e(e,t,n){return t&&d5(e.prototype,t),n&&d5(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function p2e(e,t,n){return t=s0(t),m2e(e,N9()?Reflect.construct(t,n||[],s0(e).constructor):t.apply(e,n))}function m2e(e,t){if(t&&(Bf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v2e(e)}function v2e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function N9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(N9=function(){return!!e})()}function s0(e){return s0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},s0(e)}function g2e(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&&uE(e,t)}function uE(e,t){return uE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},uE(e,t)}function Ys(e,t,n){return t=M9(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M9(e){var t=y2e(e,"string");return Bf(t)=="symbol"?t:t+""}function y2e(e,t){if(Bf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Bf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Pb=function(e){function t(){var n;d2e(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=p2e(this,t,[].concat(i)),Ys(n,"state",{isAnimationFinished:!1}),Ys(n,"handleAnimationEnd",function(){n.setState({isAnimationFinished:!0})}),Ys(n,"handleAnimationStart",function(){n.setState({isAnimationFinished:!1})}),Ys(n,"id",vl("recharts-scatter-")),n}return g2e(t,e),h2e(t,[{key:"renderSymbolsStatically",value:function(r){var i=this,o=this.props,a=o.shape,s=o.activeShape,c=o.activeIndex,u=it(this.props,!1);return r.map(function(h,p){var v=c===p,b=v?s:a,x=Ui(Ui({},u),h);return Z.createElement(Pt,Vh({className:"recharts-scatter-symbol",key:"symbol-".concat(h==null?void 0:h.cx,"-").concat(h==null?void 0:h.cy,"-").concat(h==null?void 0:h.size,"-").concat(p)},sl(i.props,h,p),{role:"img"}),Z.createElement(f2e,Vh({option:b,isActive:v,key:"symbol-".concat(p)},x)))})}},{key:"renderSymbolsWithAnimation",value:function(){var r=this,i=this.props,o=i.points,a=i.isAnimationActive,s=i.animationBegin,c=i.animationDuration,u=i.animationEasing,h=i.animationId,p=this.state.prevPoints;return Z.createElement(Ji,{begin:s,duration:c,isActive:a,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(h),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(v){var b=v.t,x=o.map(function(_,w){var O=p&&p[w];if(O){var P=xn(O.cx,_.cx),E=xn(O.cy,_.cy),T=xn(O.size,_.size);return Ui(Ui({},_),{},{cx:P(b),cy:E(b),size:T(b)})}var A=xn(0,_.size);return Ui(Ui({},_),{},{size:A(b)})});return Z.createElement(Pt,null,r.renderSymbolsStatically(x))})}},{key:"renderSymbols",value:function(){var r=this.props,i=r.points,o=r.isAnimationActive,a=this.state.prevPoints;return o&&i&&i.length&&(!a||!ll(a,i))?this.renderSymbolsWithAnimation():this.renderSymbolsStatically(i)}},{key:"renderErrorBar",value:function(){var r=this.props.isAnimationActive;if(r&&!this.state.isAnimationFinished)return null;var i=this.props,o=i.points,a=i.xAxis,s=i.yAxis,c=i.children,u=Ar(c,id);return u?u.map(function(h,p){var v=h.props,b=v.direction,x=v.dataKey;return Z.cloneElement(h,{key:"".concat(b,"-").concat(x,"-").concat(o[p]),data:o,xAxis:a,yAxis:s,layout:b==="x"?"vertical":"horizontal",dataPointFormatter:function(w,O){return{x:w.cx,y:w.cy,value:b==="x"?+w.node.x:+w.node.y,errorVal:on(w,O)}}})}):null}},{key:"renderLine",value:function(){var r=this.props,i=r.points,o=r.line,a=r.lineType,s=r.lineJointType,c=it(this.props,!1),u=it(o,!1),h,p;if(a==="joint")h=i.map(function(E){return{x:E.cx,y:E.cy}});else if(a==="fitting"){var v=Tue(i),b=v.xmin,x=v.xmax,_=v.a,w=v.b,O=function(T){return _*T+w};h=[{x:b,y:O(b)},{x,y:O(x)}]}var P=Ui(Ui(Ui({},c),{},{fill:"none",stroke:c&&c.fill},u),{},{points:h});return Z.isValidElement(o)?p=Z.cloneElement(o,P):dt(o)?p=o(P):p=Z.createElement(tl,Vh({},P,{type:s})),Z.createElement(Pt,{className:"recharts-scatter-line",key:"recharts-scatter-line"},p)}},{key:"render",value:function(){var r=this.props,i=r.hide,o=r.points,a=r.line,s=r.className,c=r.xAxis,u=r.yAxis,h=r.left,p=r.top,v=r.width,b=r.height,x=r.id,_=r.isAnimationActive;if(i||!o||!o.length)return null;var w=this.state.isAnimationFinished,O=Be("recharts-scatter",s),P=c&&c.allowDataOverflow,E=u&&u.allowDataOverflow,T=P||E,A=ft(x)?this.id:x;return Z.createElement(Pt,{className:O,clipPath:T?"url(#clipPath-".concat(A,")"):null},P||E?Z.createElement("defs",null,Z.createElement("clipPath",{id:"clipPath-".concat(A)},Z.createElement("rect",{x:P?h:h-v/2,y:E?p:p-b/2,width:P?v:v*2,height:E?b:b*2}))):null,a&&this.renderLine(),this.renderErrorBar(),Z.createElement(Pt,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!_||w)&&Oo.renderCallByParent(this.props,o))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,prevPoints:i.curPoints}:r.points!==i.curPoints?{curPoints:r.points}:null}}])}(F.PureComponent);Ys(Pb,"displayName","Scatter");Ys(Pb,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!Ki.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"});Ys(Pb,"getComposedData",function(e){var t=e.xAxis,n=e.yAxis,r=e.zAxis,i=e.item,o=e.displayedData,a=e.xAxisTicks,s=e.yAxisTicks,c=e.offset,u=i.props.tooltipType,h=Ar(i.props.children,Js),p=ft(t.dataKey)?i.props.dataKey:t.dataKey,v=ft(n.dataKey)?i.props.dataKey:n.dataKey,b=r&&r.dataKey,x=r?r.range:Sb.defaultProps.range,_=x&&x[0],w=t.scale.bandwidth?t.scale.bandwidth():0,O=n.scale.bandwidth?n.scale.bandwidth():0,P=o.map(function(E,T){var A=on(E,p),j=on(E,v),N=!ft(b)&&on(E,b)||"-",$=[{name:ft(t.dataKey)?i.props.name:t.name||t.dataKey,unit:t.unit||"",value:A,payload:E,dataKey:p,type:u},{name:ft(n.dataKey)?i.props.name:n.name||n.dataKey,unit:n.unit||"",value:j,payload:E,dataKey:v,type:u}];N!=="-"&&$.push({name:r.name||r.dataKey,unit:r.unit||"",value:N,payload:E,dataKey:b,type:u});var W=Pf({axis:t,ticks:a,bandSize:w,entry:E,index:T,dataKey:p}),B=Pf({axis:n,ticks:s,bandSize:O,entry:E,index:T,dataKey:v}),V=N!=="-"?r.scale(N):_,H=Math.sqrt(Math.max(V,0)/Math.PI);return Ui(Ui({},E),{},{cx:W,cy:B,x:W-H,y:B-H,xAxis:t,yAxis:n,zAxis:r,width:2*H,height:2*H,size:V,node:{x:A,y:j,z:N},tooltipPayload:$,tooltipPosition:{x:W,y:B},payload:E},h&&h[T]&&h[T].props)});return Ui({points:P},c)});function Uf(e){"@babel/helpers - typeof";return Uf=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},Uf(e)}function b2e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _2e(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,D9(r.key),r)}}function x2e(e,t,n){return t&&_2e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function w2e(e,t,n){return t=l0(t),O2e(e,L9()?Reflect.construct(t,n||[],l0(e).constructor):t.apply(e,n))}function O2e(e,t){if(t&&(Uf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return S2e(e)}function S2e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function L9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(L9=function(){return!!e})()}function l0(e){return l0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},l0(e)}function P2e(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&&cE(e,t)}function cE(e,t){return cE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},cE(e,t)}function I9(e,t,n){return t=D9(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function D9(e){var t=C2e(e,"string");return Uf(t)=="symbol"?t:t+""}function C2e(e,t){if(Uf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Uf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fE(){return fE=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},fE.apply(this,arguments)}function E2e(e){var t=e.xAxisId,n=Aj(),r=kj(),i=d9(t);return i==null?null:Z.createElement(ad,fE({},i,{className:Be("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(a){return Ma(a,!0)}}))}var ld=function(e){function t(){return b2e(this,t),w2e(this,t,arguments)}return P2e(t,e),x2e(t,[{key:"render",value:function(){return Z.createElement(E2e,this.props)}}])}(Z.Component);I9(ld,"displayName","XAxis");I9(ld,"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 zf(e){"@babel/helpers - typeof";return zf=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},zf(e)}function T2e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function j2e(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,B9(r.key),r)}}function A2e(e,t,n){return t&&j2e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function k2e(e,t,n){return t=u0(t),R2e(e,$9()?Reflect.construct(t,n||[],u0(e).constructor):t.apply(e,n))}function R2e(e,t){if(t&&(zf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return N2e(e)}function N2e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($9=function(){return!!e})()}function u0(e){return u0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},u0(e)}function M2e(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&&dE(e,t)}function dE(e,t){return dE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},dE(e,t)}function F9(e,t,n){return t=B9(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function B9(e){var t=L2e(e,"string");return zf(t)=="symbol"?t:t+""}function L2e(e,t){if(zf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(zf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hE(){return hE=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},hE.apply(this,arguments)}var I2e=function(t){var n=t.yAxisId,r=Aj(),i=kj(),o=h9(n);return o==null?null:Z.createElement(ad,hE({},o,{className:Be("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:r,height:i},ticksGenerator:function(s){return Ma(s,!0)}}))},ud=function(e){function t(){return T2e(this,t),k2e(this,t,arguments)}return M2e(t,e),A2e(t,[{key:"render",value:function(){return Z.createElement(I2e,this.props)}}])}(Z.Component);F9(ud,"displayName","YAxis");F9(ud,"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 h5(e){return B2e(e)||F2e(e)||$2e(e)||D2e()}function D2e(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $2e(e,t){if(e){if(typeof e=="string")return pE(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 pE(e,t)}}function F2e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function B2e(e){if(Array.isArray(e))return pE(e)}function pE(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 mE=function(t,n,r,i,o){var a=Ar(t,Nj),s=Ar(t,wb),c=[].concat(h5(a),h5(s)),u=Ar(t,hm),h="".concat(i,"Id"),p=i[0],v=n;if(c.length&&(v=c.reduce(function(_,w){if(w.props[h]===r&&Qo(w.props,"extendDomain")&&Ve(w.props[p])){var O=w.props[p];return[Math.min(_[0],O),Math.max(_[1],O)]}return _},v)),u.length){var b="".concat(p,"1"),x="".concat(p,"2");v=u.reduce(function(_,w){if(w.props[h]===r&&Qo(w.props,"extendDomain")&&Ve(w.props[b])&&Ve(w.props[x])){var O=w.props[b],P=w.props[x];return[Math.min(_[0],O,P),Math.max(_[1],O,P)]}return _},v)}return o&&o.length&&(v=o.reduce(function(_,w){return Ve(w)?[Math.min(_[0],w),Math.max(_[1],w)]:_},v)),v},RO={exports:{}},p5;function U2e(){return p5||(p5=1,function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(c,u,h){this.fn=c,this.context=u,this.once=h||!1}function o(c,u,h,p,v){if(typeof h!="function")throw new TypeError("The listener must be a function");var b=new i(h,p||c,v),x=n?n+u:u;return c._events[x]?c._events[x].fn?c._events[x]=[c._events[x],b]:c._events[x].push(b):(c._events[x]=b,c._eventsCount++),c}function a(c,u){--c._eventsCount===0?c._events=new r:delete c._events[u]}function s(){this._events=new r,this._eventsCount=0}s.prototype.eventNames=function(){var u=[],h,p;if(this._eventsCount===0)return u;for(p in h=this._events)t.call(h,p)&&u.push(n?p.slice(1):p);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(h)):u},s.prototype.listeners=function(u){var h=n?n+u:u,p=this._events[h];if(!p)return[];if(p.fn)return[p.fn];for(var v=0,b=p.length,x=new Array(b);v<b;v++)x[v]=p[v].fn;return x},s.prototype.listenerCount=function(u){var h=n?n+u:u,p=this._events[h];return p?p.fn?1:p.length:0},s.prototype.emit=function(u,h,p,v,b,x){var _=n?n+u:u;if(!this._events[_])return!1;var w=this._events[_],O=arguments.length,P,E;if(w.fn){switch(w.once&&this.removeListener(u,w.fn,void 0,!0),O){case 1:return w.fn.call(w.context),!0;case 2:return w.fn.call(w.context,h),!0;case 3:return w.fn.call(w.context,h,p),!0;case 4:return w.fn.call(w.context,h,p,v),!0;case 5:return w.fn.call(w.context,h,p,v,b),!0;case 6:return w.fn.call(w.context,h,p,v,b,x),!0}for(E=1,P=new Array(O-1);E<O;E++)P[E-1]=arguments[E];w.fn.apply(w.context,P)}else{var T=w.length,A;for(E=0;E<T;E++)switch(w[E].once&&this.removeListener(u,w[E].fn,void 0,!0),O){case 1:w[E].fn.call(w[E].context);break;case 2:w[E].fn.call(w[E].context,h);break;case 3:w[E].fn.call(w[E].context,h,p);break;case 4:w[E].fn.call(w[E].context,h,p,v);break;default:if(!P)for(A=1,P=new Array(O-1);A<O;A++)P[A-1]=arguments[A];w[E].fn.apply(w[E].context,P)}}return!0},s.prototype.on=function(u,h,p){return o(this,u,h,p,!1)},s.prototype.once=function(u,h,p){return o(this,u,h,p,!0)},s.prototype.removeListener=function(u,h,p,v){var b=n?n+u:u;if(!this._events[b])return this;if(!h)return a(this,b),this;var x=this._events[b];if(x.fn)x.fn===h&&(!v||x.once)&&(!p||x.context===p)&&a(this,b);else{for(var _=0,w=[],O=x.length;_<O;_++)(x[_].fn!==h||v&&!x[_].once||p&&x[_].context!==p)&&w.push(x[_]);w.length?this._events[b]=w.length===1?w[0]:w:a(this,b)}return this},s.prototype.removeAllListeners=function(u){var h;return u?(h=n?n+u:u,this._events[h]&&a(this,h)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s}(RO)),RO.exports}var z2e=U2e();const V2e=Nt(z2e);var NO=new V2e,MO="recharts.syncMouseEvents";function zp(e){"@babel/helpers - typeof";return zp=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},zp(e)}function W2e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function q2e(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,U9(r.key),r)}}function H2e(e,t,n){return t&&q2e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function LO(e,t,n){return t=U9(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function U9(e){var t=G2e(e,"string");return zp(t)=="symbol"?t:t+""}function G2e(e,t){if(zp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(zp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var K2e=function(){function e(){W2e(this,e),LO(this,"activeIndex",0),LO(this,"coordinateList",[]),LO(this,"layout","horizontal")}return H2e(e,[{key:"setDetails",value:function(n){var r,i=n.coordinateList,o=i===void 0?null:i,a=n.container,s=a===void 0?null:a,c=n.layout,u=c===void 0?null:c,h=n.offset,p=h===void 0?null:h,v=n.mouseHandlerCallback,b=v===void 0?null:v;this.coordinateList=(r=o??this.coordinateList)!==null&&r!==void 0?r:[],this.container=s??this.container,this.layout=u??this.layout,this.offset=p??this.offset,this.mouseHandlerCallback=b??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,a=i.y,s=i.height,c=this.coordinateList[this.activeIndex].coordinate,u=((n=window)===null||n===void 0?void 0:n.scrollX)||0,h=((r=window)===null||r===void 0?void 0:r.scrollY)||0,p=o+c+u,v=a+this.offset.top+s/2+h;this.mouseHandlerCallback({pageX:p,pageY:v})}}}])}();function Y2e(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&&Ve(r)&&Ve(i))return!0}return!1}function Z2e(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 z9(e){var t=e.cx,n=e.cy,r=e.radius,i=e.startAngle,o=e.endAngle,a=Qt(t,n,r,i),s=Qt(t,n,r,o);return{points:[a,s],cx:t,cy:n,radius:r,startAngle:i,endAngle:o}}function X2e(e,t,n){var r,i,o,a;if(e==="horizontal")r=t.x,o=r,i=n.top,a=n.top+n.height;else if(e==="vertical")i=t.y,a=i,r=n.left,o=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var s=t.cx,c=t.cy,u=t.innerRadius,h=t.outerRadius,p=t.angle,v=Qt(s,c,u,p),b=Qt(s,c,h,p);r=v.x,i=v.y,o=b.x,a=b.y}else return z9(t);return[{x:r,y:i},{x:o,y:a}]}function Vp(e){"@babel/helpers - typeof";return Vp=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},Vp(e)}function m5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function tg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?m5(Object(n),!0).forEach(function(r){Q2e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Q2e(e,t,n){return t=J2e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function J2e(e){var t=eOe(e,"string");return Vp(t)=="symbol"?t:t+""}function eOe(e,t){if(Vp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Vp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tOe(e){var t,n,r=e.element,i=e.tooltipEventType,o=e.isActive,a=e.activeCoordinate,s=e.activePayload,c=e.offset,u=e.activeTooltipIndex,h=e.tooltipAxisBandSize,p=e.layout,v=e.chartName,b=(t=r.props.cursor)!==null&&t!==void 0?t:(n=r.type.defaultProps)===null||n===void 0?void 0:n.cursor;if(!r||!b||!o||!a||v!=="ScatterChart"&&i!=="axis")return null;var x,_=tl;if(v==="ScatterChart")x=a,_=Kbe;else if(v==="BarChart")x=Z2e(p,a,c,h),_=Cj;else if(p==="radial"){var w=z9(a),O=w.cx,P=w.cy,E=w.radius,T=w.startAngle,A=w.endAngle;x={cx:O,cy:P,startAngle:T,endAngle:A,innerRadius:E,outerRadius:E},_=MU}else x={points:X2e(p,a,c)},_=tl;var j=tg(tg(tg(tg({stroke:"#ccc",pointerEvents:"none"},c),x),it(b,!1)),{},{payload:s,payloadIndex:u,className:Be("recharts-tooltip-cursor",b.className)});return F.isValidElement(b)?F.cloneElement(b,j):F.createElement(_,j)}var nOe=["item"],rOe=["children","className","width","height","style","compact","title","desc"];function Vf(e){"@babel/helpers - typeof";return Vf=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},Vf(e)}function Xc(){return Xc=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},Xc.apply(this,arguments)}function v5(e,t){return aOe(e)||oOe(e,t)||W9(e,t)||iOe()}function iOe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oOe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],c=!0,u=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(h){u=!0,i=h}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function aOe(e){if(Array.isArray(e))return e}function g5(e,t){if(e==null)return{};var n=sOe(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 sOe(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 lOe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uOe(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,q9(r.key),r)}}function cOe(e,t,n){return t&&uOe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function fOe(e,t,n){return t=c0(t),dOe(e,V9()?Reflect.construct(t,n||[],c0(e).constructor):t.apply(e,n))}function dOe(e,t){if(t&&(Vf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hOe(e)}function hOe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function V9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(V9=function(){return!!e})()}function c0(e){return c0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},c0(e)}function pOe(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&&vE(e,t)}function vE(e,t){return vE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},vE(e,t)}function Wf(e){return gOe(e)||vOe(e)||W9(e)||mOe()}function mOe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function W9(e,t){if(e){if(typeof e=="string")return gE(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 gE(e,t)}}function vOe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function gOe(e){if(Array.isArray(e))return gE(e)}function gE(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 y5(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 Te(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?y5(Object(n),!0).forEach(function(r){pt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pt(e,t,n){return t=q9(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function q9(e){var t=yOe(e,"string");return Vf(t)=="symbol"?t:t+""}function yOe(e,t){if(Vf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Vf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var bOe={xAxis:["bottom","top"],yAxis:["left","right"]},_Oe={width:"100%",height:"100%"},H9={x:0,y:0};function ng(e){return e}var xOe=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},wOe=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 a=o.coordinate,s=i.radius;return Te(Te(Te({},i),Qt(i.cx,i.cy,s,a)),{},{angle:a,radius:s})}var c=o.coordinate,u=i.angle;return Te(Te(Te({},i),Qt(i.cx,i.cy,c,u)),{},{angle:u,radius:c})}return H9},Cb=function(t,n){var r=n.graphicalItems,i=n.dataStartIndex,o=n.dataEndIndex,a=(r??[]).reduce(function(s,c){var u=c.props.data;return u&&u.length?[].concat(Wf(s),Wf(u)):s},[]);return a.length>0?a:t&&t.length&&Ve(i)&&Ve(o)?t.slice(i,o+1):[]};function G9(e){return e==="number"?[0,"auto"]:void 0}var yE=function(t,n,r,i){var o=t.graphicalItems,a=t.tooltipAxis,s=Cb(n,t);return r<0||!o||!o.length||r>=s.length?null:o.reduce(function(c,u){var h,p=(h=u.props.data)!==null&&h!==void 0?h:n;p&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(p=p.slice(t.dataStartIndex,t.dataEndIndex+1));var v;if(a.dataKey&&!a.allowDuplicatedCategory){var b=p===void 0?s:p;v=cy(b,a.dataKey,i)}else v=p&&p[r]||s[r];return v?[].concat(Wf(c),[TU(u,v)]):c},[])},b5=function(t,n,r,i){var o=i||{x:t.chartX,y:t.chartY},a=xOe(o,r),s=t.orderedTooltipTicks,c=t.tooltipAxis,u=t.tooltipTicks,h=Nge(a,s,u,c);if(h>=0&&u){var p=u[h]&&u[h].value,v=yE(t,n,h,p),b=wOe(r,s,h,o);return{activeTooltipIndex:h,activeLabel:p,activePayload:v,activeCoordinate:b}}return null},OOe=function(t,n){var r=n.axes,i=n.graphicalItems,o=n.axisType,a=n.axisIdKey,s=n.stackGroups,c=n.dataStartIndex,u=n.dataEndIndex,h=t.layout,p=t.children,v=t.stackOffset,b=wU(h,o);return r.reduce(function(x,_){var w,O=_.type.defaultProps!==void 0?Te(Te({},_.type.defaultProps),_.props):_.props,P=O.type,E=O.dataKey,T=O.allowDataOverflow,A=O.allowDuplicatedCategory,j=O.scale,N=O.ticks,$=O.includeHidden,W=O[a];if(x[W])return x;var B=Cb(t.data,{graphicalItems:i.filter(function(ne){var X,le=a in ne.props?ne.props[a]:(X=ne.type.defaultProps)===null||X===void 0?void 0:X[a];return le===W}),dataStartIndex:c,dataEndIndex:u}),V=B.length,H,J,Q;Y2e(O.domain,T,P)&&(H=jC(O.domain,null,T),b&&(P==="number"||j!=="auto")&&(Q=Dh(B,E,"category")));var re=G9(P);if(!H||H.length===0){var ae,se=(ae=O.domain)!==null&&ae!==void 0?ae:re;if(E){if(H=Dh(B,E,P),P==="category"&&b){var oe=Eue(H);A&&oe?(J=H,H=Ky(0,V)):A||(H=g6(se,H,_).reduce(function(ne,X){return ne.indexOf(X)>=0?ne:[].concat(Wf(ne),[X])},[]))}else if(P==="category")A?H=H.filter(function(ne){return ne!==""&&!ft(ne)}):H=g6(se,H,_).reduce(function(ne,X){return ne.indexOf(X)>=0||X===""||ft(X)?ne:[].concat(Wf(ne),[X])},[]);else if(P==="number"){var K=$ge(B,i.filter(function(ne){var X,le,ce=a in ne.props?ne.props[a]:(X=ne.type.defaultProps)===null||X===void 0?void 0:X[a],de="hide"in ne.props?ne.props.hide:(le=ne.type.defaultProps)===null||le===void 0?void 0:le.hide;return ce===W&&($||!de)}),E,o,h);K&&(H=K)}b&&(P==="number"||j!=="auto")&&(Q=Dh(B,E,"category"))}else b?H=Ky(0,V):s&&s[W]&&s[W].hasStack&&P==="number"?H=v==="expand"?[0,1]:EU(s[W].stackGroups,c,u):H=xU(B,i.filter(function(ne){var X=a in ne.props?ne.props[a]:ne.type.defaultProps[a],le="hide"in ne.props?ne.props.hide:ne.type.defaultProps.hide;return X===W&&($||!le)}),P,h,!0);if(P==="number")H=mE(p,H,W,o,N),se&&(H=jC(se,H,T));else if(P==="category"&&se){var G=se,z=H.every(function(ne){return G.indexOf(ne)>=0});z&&(H=G)}}return Te(Te({},x),{},pt({},W,Te(Te({},O),{},{axisType:o,domain:H,categoricalDomain:Q,duplicateDomain:J,originalDomain:(w=O.domain)!==null&&w!==void 0?w:re,isCategorical:b,layout:h})))},{})},SOe=function(t,n){var r=n.graphicalItems,i=n.Axis,o=n.axisType,a=n.axisIdKey,s=n.stackGroups,c=n.dataStartIndex,u=n.dataEndIndex,h=t.layout,p=t.children,v=Cb(t.data,{graphicalItems:r,dataStartIndex:c,dataEndIndex:u}),b=v.length,x=wU(h,o),_=-1;return r.reduce(function(w,O){var P=O.type.defaultProps!==void 0?Te(Te({},O.type.defaultProps),O.props):O.props,E=P[a],T=G9("number");if(!w[E]){_++;var A;return x?A=Ky(0,b):s&&s[E]&&s[E].hasStack?(A=EU(s[E].stackGroups,c,u),A=mE(p,A,E,o)):(A=jC(T,xU(v,r.filter(function(j){var N,$,W=a in j.props?j.props[a]:(N=j.type.defaultProps)===null||N===void 0?void 0:N[a],B="hide"in j.props?j.props.hide:($=j.type.defaultProps)===null||$===void 0?void 0:$.hide;return W===E&&!B}),"number",h),i.defaultProps.allowDataOverflow),A=mE(p,A,E,o)),Te(Te({},w),{},pt({},E,Te(Te({axisType:o},i.defaultProps),{},{hide:!0,orientation:vi(bOe,"".concat(o,".").concat(_%2),null),domain:A,originalDomain:T,isCategorical:x,layout:h})))}return w},{})},POe=function(t,n){var r=n.axisType,i=r===void 0?"xAxis":r,o=n.AxisComp,a=n.graphicalItems,s=n.stackGroups,c=n.dataStartIndex,u=n.dataEndIndex,h=t.children,p="".concat(i,"Id"),v=Ar(h,o),b={};return v&&v.length?b=OOe(t,{axes:v,graphicalItems:a,axisType:i,axisIdKey:p,stackGroups:s,dataStartIndex:c,dataEndIndex:u}):a&&a.length&&(b=SOe(t,{Axis:o,graphicalItems:a,axisType:i,axisIdKey:p,stackGroups:s,dataStartIndex:c,dataEndIndex:u})),b},COe=function(t){var n=qs(t),r=Ma(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:QT(r,function(i){return i.coordinate}),tooltipAxis:n,tooltipAxisBandSize:Ly(n,r)}},_5=function(t){var n=t.children,r=t.defaultShowTooltip,i=hi(n,kf),o=0,a=0;return t.data&&t.data.length!==0&&(a=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(o=i.props.startIndex),i.props.endIndex>=0&&(a=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:a,activeTooltipIndex:-1,isTooltipActive:!!r}},EOe=function(t){return!t||!t.length?!1:t.some(function(n){var r=Ia(n&&n.type);return r&&r.indexOf("Bar")>=0})},x5=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"}},TOe=function(t,n){var r=t.props,i=t.graphicalItems,o=t.xAxisMap,a=o===void 0?{}:o,s=t.yAxisMap,c=s===void 0?{}:s,u=r.width,h=r.height,p=r.children,v=r.margin||{},b=hi(p,kf),x=hi(p,tf),_=Object.keys(c).reduce(function(A,j){var N=c[j],$=N.orientation;return!N.mirror&&!N.hide?Te(Te({},A),{},pt({},$,A[$]+N.width)):A},{left:v.left||0,right:v.right||0}),w=Object.keys(a).reduce(function(A,j){var N=a[j],$=N.orientation;return!N.mirror&&!N.hide?Te(Te({},A),{},pt({},$,vi(A,"".concat($))+N.height)):A},{top:v.top||0,bottom:v.bottom||0}),O=Te(Te({},w),_),P=O.bottom;b&&(O.bottom+=b.props.height||kf.defaultProps.height),x&&n&&(O=Ige(O,i,r,n));var E=u-O.left-O.right,T=h-O.top-O.bottom;return Te(Te({brushBottom:P},O),{},{width:Math.max(E,0),height:Math.max(T,0)})},jOe=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},Dj=function(t){var n=t.chartName,r=t.GraphicalChild,i=t.defaultTooltipEventType,o=i===void 0?"axis":i,a=t.validateTooltipEventTypes,s=a===void 0?["axis"]:a,c=t.axisComponents,u=t.legendContent,h=t.formatAxisMap,p=t.defaultProps,v=function(O,P){var E=P.graphicalItems,T=P.stackGroups,A=P.offset,j=P.updateId,N=P.dataStartIndex,$=P.dataEndIndex,W=O.barSize,B=O.layout,V=O.barGap,H=O.barCategoryGap,J=O.maxBarSize,Q=x5(B),re=Q.numericAxisName,ae=Q.cateAxisName,se=EOe(E),oe=[];return E.forEach(function(K,G){var z=Cb(O.data,{graphicalItems:[K],dataStartIndex:N,dataEndIndex:$}),ne=K.type.defaultProps!==void 0?Te(Te({},K.type.defaultProps),K.props):K.props,X=ne.dataKey,le=ne.maxBarSize,ce=ne["".concat(re,"Id")],de=ne["".concat(ae,"Id")],be={},M=c.reduce(function(Ue,qe){var ye=P["".concat(qe.axisType,"Map")],we=ne["".concat(qe.axisType,"Id")];ye&&ye[we]||qe.axisType==="zAxis"||ju();var Ae=ye[we];return Te(Te({},Ue),{},pt(pt({},qe.axisType,Ae),"".concat(qe.axisType,"Ticks"),Ma(Ae)))},be),D=M[ae],Y=M["".concat(ae,"Ticks")],ue=T&&T[ce]&&T[ce].hasStack&&Gge(K,T[ce].stackGroups),ie=Ia(K.type).indexOf("Bar")>=0,he=Ly(D,Y),Se=[],Fe=se&&Mge({barSize:W,stackGroups:T,totalSize:jOe(M,ae)});if(ie){var ge,Ee,je=ft(le)?J:le,Me=(ge=(Ee=Ly(D,Y,!0))!==null&&Ee!==void 0?Ee:je)!==null&&ge!==void 0?ge:0;Se=Lge({barGap:V,barCategoryGap:H,bandSize:Me!==he?Me:he,sizeList:Fe[de],maxBarSize:je}),Me!==he&&(Se=Se.map(function(Ue){return Te(Te({},Ue),{},{position:Te(Te({},Ue.position),{},{offset:Ue.position.offset-Me/2})})}))}var He=K&&K.type&&K.type.getComposedData;He&&oe.push({props:Te(Te({},He(Te(Te({},M),{},{displayedData:z,props:O,dataKey:X,item:K,bandSize:he,barPosition:Se,offset:A,stackedData:ue,layout:B,dataStartIndex:N,dataEndIndex:$}))),{},pt(pt(pt({key:K.key||"item-".concat(G)},re,M[re]),ae,M[ae]),"animationId",j)),childIndex:Fue(K,O.children),item:K})}),oe},b=function(O,P){var E=O.props,T=O.dataStartIndex,A=O.dataEndIndex,j=O.updateId;if(!RM({props:E}))return null;var N=E.children,$=E.layout,W=E.stackOffset,B=E.data,V=E.reverseStackOrder,H=x5($),J=H.numericAxisName,Q=H.cateAxisName,re=Ar(N,r),ae=qge(B,re,"".concat(J,"Id"),"".concat(Q,"Id"),W,V),se=c.reduce(function(ne,X){var le="".concat(X.axisType,"Map");return Te(Te({},ne),{},pt({},le,POe(E,Te(Te({},X),{},{graphicalItems:re,stackGroups:X.axisType===J&&ae,dataStartIndex:T,dataEndIndex:A}))))},{}),oe=TOe(Te(Te({},se),{},{props:E,graphicalItems:re}),P==null?void 0:P.legendBBox);Object.keys(se).forEach(function(ne){se[ne]=h(E,se[ne],oe,ne.replace("Map",""),n)});var K=se["".concat(Q,"Map")],G=COe(K),z=v(E,Te(Te({},se),{},{dataStartIndex:T,dataEndIndex:A,updateId:j,graphicalItems:re,stackGroups:ae,offset:oe}));return Te(Te({formattedGraphicalItems:z,graphicalItems:re,offset:oe,stackGroups:ae},G),se)},x=function(w){function O(P){var E,T,A;return lOe(this,O),A=fOe(this,O,[P]),pt(A,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),pt(A,"accessibilityManager",new K2e),pt(A,"handleLegendBBoxUpdate",function(j){if(j){var N=A.state,$=N.dataStartIndex,W=N.dataEndIndex,B=N.updateId;A.setState(Te({legendBBox:j},b({props:A.props,dataStartIndex:$,dataEndIndex:W,updateId:B},Te(Te({},A.state),{},{legendBBox:j}))))}}),pt(A,"handleReceiveSyncEvent",function(j,N,$){if(A.props.syncId===j){if($===A.eventEmitterSymbol&&typeof A.props.syncMethod!="function")return;A.applySyncEvent(N)}}),pt(A,"handleBrushChange",function(j){var N=j.startIndex,$=j.endIndex;if(N!==A.state.dataStartIndex||$!==A.state.dataEndIndex){var W=A.state.updateId;A.setState(function(){return Te({dataStartIndex:N,dataEndIndex:$},b({props:A.props,dataStartIndex:N,dataEndIndex:$,updateId:W},A.state))}),A.triggerSyncEvent({dataStartIndex:N,dataEndIndex:$})}}),pt(A,"handleMouseEnter",function(j){var N=A.getMouseInfo(j);if(N){var $=Te(Te({},N),{},{isTooltipActive:!0});A.setState($),A.triggerSyncEvent($);var W=A.props.onMouseEnter;dt(W)&&W($,j)}}),pt(A,"triggeredAfterMouseMove",function(j){var N=A.getMouseInfo(j),$=N?Te(Te({},N),{},{isTooltipActive:!0}):{isTooltipActive:!1};A.setState($),A.triggerSyncEvent($);var W=A.props.onMouseMove;dt(W)&&W($,j)}),pt(A,"handleItemMouseEnter",function(j){A.setState(function(){return{isTooltipActive:!0,activeItem:j,activePayload:j.tooltipPayload,activeCoordinate:j.tooltipPosition||{x:j.cx,y:j.cy}}})}),pt(A,"handleItemMouseLeave",function(){A.setState(function(){return{isTooltipActive:!1}})}),pt(A,"handleMouseMove",function(j){j.persist(),A.throttleTriggeredAfterMouseMove(j)}),pt(A,"handleMouseLeave",function(j){A.throttleTriggeredAfterMouseMove.cancel();var N={isTooltipActive:!1};A.setState(N),A.triggerSyncEvent(N);var $=A.props.onMouseLeave;dt($)&&$(N,j)}),pt(A,"handleOuterEvent",function(j){var N=$ue(j),$=vi(A.props,"".concat(N));if(N&&dt($)){var W,B;/.*touch.*/i.test(N)?B=A.getMouseInfo(j.changedTouches[0]):B=A.getMouseInfo(j),$((W=B)!==null&&W!==void 0?W:{},j)}}),pt(A,"handleClick",function(j){var N=A.getMouseInfo(j);if(N){var $=Te(Te({},N),{},{isTooltipActive:!0});A.setState($),A.triggerSyncEvent($);var W=A.props.onClick;dt(W)&&W($,j)}}),pt(A,"handleMouseDown",function(j){var N=A.props.onMouseDown;if(dt(N)){var $=A.getMouseInfo(j);N($,j)}}),pt(A,"handleMouseUp",function(j){var N=A.props.onMouseUp;if(dt(N)){var $=A.getMouseInfo(j);N($,j)}}),pt(A,"handleTouchMove",function(j){j.changedTouches!=null&&j.changedTouches.length>0&&A.throttleTriggeredAfterMouseMove(j.changedTouches[0])}),pt(A,"handleTouchStart",function(j){j.changedTouches!=null&&j.changedTouches.length>0&&A.handleMouseDown(j.changedTouches[0])}),pt(A,"handleTouchEnd",function(j){j.changedTouches!=null&&j.changedTouches.length>0&&A.handleMouseUp(j.changedTouches[0])}),pt(A,"triggerSyncEvent",function(j){A.props.syncId!==void 0&&NO.emit(MO,A.props.syncId,j,A.eventEmitterSymbol)}),pt(A,"applySyncEvent",function(j){var N=A.props,$=N.layout,W=N.syncMethod,B=A.state.updateId,V=j.dataStartIndex,H=j.dataEndIndex;if(j.dataStartIndex!==void 0||j.dataEndIndex!==void 0)A.setState(Te({dataStartIndex:V,dataEndIndex:H},b({props:A.props,dataStartIndex:V,dataEndIndex:H,updateId:B},A.state)));else if(j.activeTooltipIndex!==void 0){var J=j.chartX,Q=j.chartY,re=j.activeTooltipIndex,ae=A.state,se=ae.offset,oe=ae.tooltipTicks;if(!se)return;if(typeof W=="function")re=W(oe,j);else if(W==="value"){re=-1;for(var K=0;K<oe.length;K++)if(oe[K].value===j.activeLabel){re=K;break}}var G=Te(Te({},se),{},{x:se.left,y:se.top}),z=Math.min(J,G.x+G.width),ne=Math.min(Q,G.y+G.height),X=oe[re]&&oe[re].value,le=yE(A.state,A.props.data,re),ce=oe[re]?{x:$==="horizontal"?oe[re].coordinate:z,y:$==="horizontal"?ne:oe[re].coordinate}:H9;A.setState(Te(Te({},j),{},{activeLabel:X,activeCoordinate:ce,activePayload:le,activeTooltipIndex:re}))}else A.setState(j)}),pt(A,"renderCursor",function(j){var N,$=A.state,W=$.isTooltipActive,B=$.activeCoordinate,V=$.activePayload,H=$.offset,J=$.activeTooltipIndex,Q=$.tooltipAxisBandSize,re=A.getTooltipEventType(),ae=(N=j.props.active)!==null&&N!==void 0?N:W,se=A.props.layout,oe=j.key||"_recharts-cursor";return Z.createElement(tOe,{key:oe,activeCoordinate:B,activePayload:V,activeTooltipIndex:J,chartName:n,element:j,isActive:ae,layout:se,offset:H,tooltipAxisBandSize:Q,tooltipEventType:re})}),pt(A,"renderPolarAxis",function(j,N,$){var W=vi(j,"type.axisType"),B=vi(A.state,"".concat(W,"Map")),V=j.type.defaultProps,H=V!==void 0?Te(Te({},V),j.props):j.props,J=B&&B[H["".concat(W,"Id")]];return F.cloneElement(j,Te(Te({},J),{},{className:Be(W,J.className),key:j.key||"".concat(N,"-").concat($),ticks:Ma(J,!0)}))}),pt(A,"renderPolarGrid",function(j){var N=j.props,$=N.radialLines,W=N.polarAngles,B=N.polarRadius,V=A.state,H=V.radiusAxisMap,J=V.angleAxisMap,Q=qs(H),re=qs(J),ae=re.cx,se=re.cy,oe=re.innerRadius,K=re.outerRadius;return F.cloneElement(j,{polarAngles:Array.isArray(W)?W:Ma(re,!0).map(function(G){return G.coordinate}),polarRadius:Array.isArray(B)?B:Ma(Q,!0).map(function(G){return G.coordinate}),cx:ae,cy:se,innerRadius:oe,outerRadius:K,key:j.key||"polar-grid",radialLines:$})}),pt(A,"renderLegend",function(){var j=A.state.formattedGraphicalItems,N=A.props,$=N.children,W=N.width,B=N.height,V=A.props.margin||{},H=W-(V.left||0)-(V.right||0),J=bU({children:$,formattedGraphicalItems:j,legendWidth:H,legendContent:u});if(!J)return null;var Q=J.item,re=g5(J,nOe);return F.cloneElement(Q,Te(Te({},re),{},{chartWidth:W,chartHeight:B,margin:V,onBBoxUpdate:A.handleLegendBBoxUpdate}))}),pt(A,"renderTooltip",function(){var j,N=A.props,$=N.children,W=N.accessibilityLayer,B=hi($,zi);if(!B)return null;var V=A.state,H=V.isTooltipActive,J=V.activeCoordinate,Q=V.activePayload,re=V.activeLabel,ae=V.offset,se=(j=B.props.active)!==null&&j!==void 0?j:H;return F.cloneElement(B,{viewBox:Te(Te({},ae),{},{x:ae.left,y:ae.top}),active:se,label:re,payload:se?Q:[],coordinate:J,accessibilityLayer:W})}),pt(A,"renderBrush",function(j){var N=A.props,$=N.margin,W=N.data,B=A.state,V=B.offset,H=B.dataStartIndex,J=B.dataEndIndex,Q=B.updateId;return F.cloneElement(j,{key:j.key||"_recharts-brush",onChange:Xv(A.handleBrushChange,j.props.onChange),data:W,x:Ve(j.props.x)?j.props.x:V.left,y:Ve(j.props.y)?j.props.y:V.top+V.height+V.brushBottom-($.bottom||0),width:Ve(j.props.width)?j.props.width:V.width,startIndex:H,endIndex:J,updateId:"brush-".concat(Q)})}),pt(A,"renderReferenceElement",function(j,N,$){if(!j)return null;var W=A,B=W.clipPathId,V=A.state,H=V.xAxisMap,J=V.yAxisMap,Q=V.offset,re=j.type.defaultProps||{},ae=j.props,se=ae.xAxisId,oe=se===void 0?re.xAxisId:se,K=ae.yAxisId,G=K===void 0?re.yAxisId:K;return F.cloneElement(j,{key:j.key||"".concat(N,"-").concat($),xAxis:H[oe],yAxis:J[G],viewBox:{x:Q.left,y:Q.top,width:Q.width,height:Q.height},clipPathId:B})}),pt(A,"renderActivePoints",function(j){var N=j.item,$=j.activePoint,W=j.basePoint,B=j.childIndex,V=j.isRange,H=[],J=N.props.key,Q=N.item.type.defaultProps!==void 0?Te(Te({},N.item.type.defaultProps),N.item.props):N.item.props,re=Q.activeDot,ae=Q.dataKey,se=Te(Te({index:B,dataKey:ae,cx:$.x,cy:$.y,r:4,fill:Pj(N.item),strokeWidth:2,stroke:"#fff",payload:$.payload,value:$.value},it(re,!1)),fy(re));return H.push(O.renderActiveDot(re,se,"".concat(J,"-activePoint-").concat(B))),W?H.push(O.renderActiveDot(re,Te(Te({},se),{},{cx:W.x,cy:W.y}),"".concat(J,"-basePoint-").concat(B))):V&&H.push(null),H}),pt(A,"renderGraphicChild",function(j,N,$){var W=A.filterFormatItem(j,N,$);if(!W)return null;var B=A.getTooltipEventType(),V=A.state,H=V.isTooltipActive,J=V.tooltipAxis,Q=V.activeTooltipIndex,re=V.activeLabel,ae=A.props.children,se=hi(ae,zi),oe=W.props,K=oe.points,G=oe.isRange,z=oe.baseLine,ne=W.item.type.defaultProps!==void 0?Te(Te({},W.item.type.defaultProps),W.item.props):W.item.props,X=ne.activeDot,le=ne.hide,ce=ne.activeBar,de=ne.activeShape,be=!!(!le&&H&&se&&(X||ce||de)),M={};B!=="axis"&&se&&se.props.trigger==="click"?M={onClick:Xv(A.handleItemMouseEnter,j.props.onClick)}:B!=="axis"&&(M={onMouseLeave:Xv(A.handleItemMouseLeave,j.props.onMouseLeave),onMouseEnter:Xv(A.handleItemMouseEnter,j.props.onMouseEnter)});var D=F.cloneElement(j,Te(Te({},W.props),M));function Y(qe){return typeof J.dataKey=="function"?J.dataKey(qe.payload):null}if(be)if(Q>=0){var ue,ie;if(J.dataKey&&!J.allowDuplicatedCategory){var he=typeof J.dataKey=="function"?Y:"payload.".concat(J.dataKey.toString());ue=cy(K,he,re),ie=G&&z&&cy(z,he,re)}else ue=K==null?void 0:K[Q],ie=G&&z&&z[Q];if(de||ce){var Se=j.props.activeIndex!==void 0?j.props.activeIndex:Q;return[F.cloneElement(j,Te(Te(Te({},W.props),M),{},{activeIndex:Se})),null,null]}if(!ft(ue))return[D].concat(Wf(A.renderActivePoints({item:W,activePoint:ue,basePoint:ie,childIndex:Q,isRange:G})))}else{var Fe,ge=(Fe=A.getItemByXY(A.state.activeCoordinate))!==null&&Fe!==void 0?Fe:{graphicalItem:D},Ee=ge.graphicalItem,je=Ee.item,Me=je===void 0?j:je,He=Ee.childIndex,Ue=Te(Te(Te({},W.props),M),{},{activeIndex:He});return[F.cloneElement(Me,Ue),null,null]}return G?[D,null,null]:[D,null]}),pt(A,"renderCustomized",function(j,N,$){return F.cloneElement(j,Te(Te({key:"recharts-customized-".concat($)},A.props),A.state))}),pt(A,"renderMap",{CartesianGrid:{handler:ng,once:!0},ReferenceArea:{handler:A.renderReferenceElement},ReferenceLine:{handler:ng},ReferenceDot:{handler:A.renderReferenceElement},XAxis:{handler:ng},YAxis:{handler:ng},Brush:{handler:A.renderBrush,once:!0},Bar:{handler:A.renderGraphicChild},Line:{handler:A.renderGraphicChild},Area:{handler:A.renderGraphicChild},Radar:{handler:A.renderGraphicChild},RadialBar:{handler:A.renderGraphicChild},Scatter:{handler:A.renderGraphicChild},Pie:{handler:A.renderGraphicChild},Funnel:{handler:A.renderGraphicChild},Tooltip:{handler:A.renderCursor,once:!0},PolarGrid:{handler:A.renderPolarGrid,once:!0},PolarAngleAxis:{handler:A.renderPolarAxis},PolarRadiusAxis:{handler:A.renderPolarAxis},Customized:{handler:A.renderCustomized}}),A.clipPathId="".concat((E=P.id)!==null&&E!==void 0?E:vl("recharts"),"-clip"),A.throttleTriggeredAfterMouseMove=yB(A.triggeredAfterMouseMove,(T=P.throttleDelay)!==null&&T!==void 0?T:1e3/60),A.state={},A}return pOe(O,w),cOe(O,[{key:"componentDidMount",value:function(){var E,T;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(E=this.props.margin.left)!==null&&E!==void 0?E:0,top:(T=this.props.margin.top)!==null&&T!==void 0?T:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var E=this.props,T=E.children,A=E.data,j=E.height,N=E.layout,$=hi(T,zi);if($){var W=$.props.defaultIndex;if(!(typeof W!="number"||W<0||W>this.state.tooltipTicks.length-1)){var B=this.state.tooltipTicks[W]&&this.state.tooltipTicks[W].value,V=yE(this.state,A,W,B),H=this.state.tooltipTicks[W].coordinate,J=(this.state.offset.top+j)/2,Q=N==="horizontal",re=Q?{x:H,y:J}:{y:H,x:J},ae=this.state.formattedGraphicalItems.find(function(oe){var K=oe.item;return K.type.name==="Scatter"});ae&&(re=Te(Te({},re),ae.props.points[W].tooltipPosition),V=ae.props.points[W].tooltipPayload);var se={activeTooltipIndex:W,isTooltipActive:!0,activeLabel:B,activePayload:V,activeCoordinate:re};this.setState(se),this.renderCursor($),this.accessibilityManager.setIndex(W)}}}},{key:"getSnapshotBeforeUpdate",value:function(E,T){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==T.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==E.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==E.margin){var A,j;this.accessibilityManager.setDetails({offset:{left:(A=this.props.margin.left)!==null&&A!==void 0?A:0,top:(j=this.props.margin.top)!==null&&j!==void 0?j:0}})}return null}},{key:"componentDidUpdate",value:function(E){XP([hi(E.children,zi)],[hi(this.props.children,zi)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var E=hi(this.props.children,zi);if(E&&typeof E.props.shared=="boolean"){var T=E.props.shared?"axis":"item";return s.indexOf(T)>=0?T:o}return o}},{key:"getMouseInfo",value:function(E){if(!this.container)return null;var T=this.container,A=T.getBoundingClientRect(),j=Phe(A),N={chartX:Math.round(E.pageX-j.left),chartY:Math.round(E.pageY-j.top)},$=A.width/T.offsetWidth||1,W=this.inRange(N.chartX,N.chartY,$);if(!W)return null;var B=this.state,V=B.xAxisMap,H=B.yAxisMap,J=this.getTooltipEventType();if(J!=="axis"&&V&&H){var Q=qs(V).scale,re=qs(H).scale,ae=Q&&Q.invert?Q.invert(N.chartX):null,se=re&&re.invert?re.invert(N.chartY):null;return Te(Te({},N),{},{xValue:ae,yValue:se})}var oe=b5(this.state,this.props.data,this.props.layout,W);return oe?Te(Te({},N),oe):null}},{key:"inRange",value:function(E,T){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,j=this.props.layout,N=E/A,$=T/A;if(j==="horizontal"||j==="vertical"){var W=this.state.offset,B=N>=W.left&&N<=W.left+W.width&&$>=W.top&&$<=W.top+W.height;return B?{x:N,y:$}:null}var V=this.state,H=V.angleAxisMap,J=V.radiusAxisMap;if(H&&J){var Q=qs(H);return _6({x:N,y:$},Q)}return null}},{key:"parseEventsOfWrapper",value:function(){var E=this.props.children,T=this.getTooltipEventType(),A=hi(E,zi),j={};A&&T==="axis"&&(A.props.trigger==="click"?j={onClick:this.handleClick}:j={onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd});var N=fy(this.props,this.handleOuterEvent);return Te(Te({},N),j)}},{key:"addListener",value:function(){NO.on(MO,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){NO.removeListener(MO,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(E,T,A){for(var j=this.state.formattedGraphicalItems,N=0,$=j.length;N<$;N++){var W=j[N];if(W.item===E||W.props.key===E.key||T===Ia(W.item.type)&&A===W.childIndex)return W}return null}},{key:"renderClipPath",value:function(){var E=this.clipPathId,T=this.state.offset,A=T.left,j=T.top,N=T.height,$=T.width;return Z.createElement("defs",null,Z.createElement("clipPath",{id:E},Z.createElement("rect",{x:A,y:j,height:N,width:$})))}},{key:"getXScales",value:function(){var E=this.state.xAxisMap;return E?Object.entries(E).reduce(function(T,A){var j=v5(A,2),N=j[0],$=j[1];return Te(Te({},T),{},pt({},N,$.scale))},{}):null}},{key:"getYScales",value:function(){var E=this.state.yAxisMap;return E?Object.entries(E).reduce(function(T,A){var j=v5(A,2),N=j[0],$=j[1];return Te(Te({},T),{},pt({},N,$.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(E){var T;return(T=this.state.xAxisMap)===null||T===void 0||(T=T[E])===null||T===void 0?void 0:T.scale}},{key:"getYScaleByAxisId",value:function(E){var T;return(T=this.state.yAxisMap)===null||T===void 0||(T=T[E])===null||T===void 0?void 0:T.scale}},{key:"getItemByXY",value:function(E){var T=this.state,A=T.formattedGraphicalItems,j=T.activeItem;if(A&&A.length)for(var N=0,$=A.length;N<$;N++){var W=A[N],B=W.props,V=W.item,H=V.type.defaultProps!==void 0?Te(Te({},V.type.defaultProps),V.props):V.props,J=Ia(V.type);if(J==="Bar"){var Q=(B.data||[]).find(function(oe){return Tbe(E,oe)});if(Q)return{graphicalItem:W,payload:Q}}else if(J==="RadialBar"){var re=(B.data||[]).find(function(oe){return _6(E,oe)});if(re)return{graphicalItem:W,payload:re}}else if(yb(W,j)||bb(W,j)||Dp(W,j)){var ae=X_e({graphicalItem:W,activeTooltipItem:j,itemData:H.data}),se=H.activeIndex===void 0?ae:H.activeIndex;return{graphicalItem:Te(Te({},W),{},{childIndex:se}),payload:Dp(W,j)?H.data[ae]:W.props.data[ae]}}}return null}},{key:"render",value:function(){var E=this;if(!RM(this))return null;var T=this.props,A=T.children,j=T.className,N=T.width,$=T.height,W=T.style,B=T.compact,V=T.title,H=T.desc,J=g5(T,rOe),Q=it(J,!1);if(B)return Z.createElement(GD,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},Z.createElement(JP,Xc({},Q,{width:N,height:$,title:V,desc:H}),this.renderClipPath(),MM(A,this.renderMap)));if(this.props.accessibilityLayer){var re,ae;Q.tabIndex=(re=this.props.tabIndex)!==null&&re!==void 0?re:0,Q.role=(ae=this.props.role)!==null&&ae!==void 0?ae:"application",Q.onKeyDown=function(oe){E.accessibilityManager.keyboardEvent(oe)},Q.onFocus=function(){E.accessibilityManager.focus()}}var se=this.parseEventsOfWrapper();return Z.createElement(GD,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},Z.createElement("div",Xc({className:Be("recharts-wrapper",j),style:Te({position:"relative",cursor:"default",width:N,height:$},W)},se,{ref:function(K){E.container=K}}),Z.createElement(JP,Xc({},Q,{width:N,height:$,title:V,desc:H,style:_Oe}),this.renderClipPath(),MM(A,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(F.Component);pt(x,"displayName",n),pt(x,"defaultProps",Te({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},p)),pt(x,"getDerivedStateFromProps",function(w,O){var P=w.dataKey,E=w.data,T=w.children,A=w.width,j=w.height,N=w.layout,$=w.stackOffset,W=w.margin,B=O.dataStartIndex,V=O.dataEndIndex;if(O.updateId===void 0){var H=_5(w);return Te(Te(Te({},H),{},{updateId:0},b(Te(Te({props:w},H),{},{updateId:0}),O)),{},{prevDataKey:P,prevData:E,prevWidth:A,prevHeight:j,prevLayout:N,prevStackOffset:$,prevMargin:W,prevChildren:T})}if(P!==O.prevDataKey||E!==O.prevData||A!==O.prevWidth||j!==O.prevHeight||N!==O.prevLayout||$!==O.prevStackOffset||!ef(W,O.prevMargin)){var J=_5(w),Q={chartX:O.chartX,chartY:O.chartY,isTooltipActive:O.isTooltipActive},re=Te(Te({},b5(O,E,N)),{},{updateId:O.updateId+1}),ae=Te(Te(Te({},J),Q),re);return Te(Te(Te({},ae),b(Te({props:w},ae),O)),{},{prevDataKey:P,prevData:E,prevWidth:A,prevHeight:j,prevLayout:N,prevStackOffset:$,prevMargin:W,prevChildren:T})}if(!XP(T,O.prevChildren)){var se,oe,K,G,z=hi(T,kf),ne=z&&(se=(oe=z.props)===null||oe===void 0?void 0:oe.startIndex)!==null&&se!==void 0?se:B,X=z&&(K=(G=z.props)===null||G===void 0?void 0:G.endIndex)!==null&&K!==void 0?K:V,le=ne!==B||X!==V,ce=!ft(E),de=ce&&!le?O.updateId:O.updateId+1;return Te(Te({updateId:de},b(Te(Te({props:w},O),{},{updateId:de,dataStartIndex:ne,dataEndIndex:X}),O)),{},{prevChildren:T,dataStartIndex:ne,dataEndIndex:X})}return null}),pt(x,"renderActiveDot",function(w,O,P){var E;return F.isValidElement(w)?E=F.cloneElement(w,O):dt(w)?E=w(O):E=Z.createElement(dm,O),Z.createElement(Pt,{className:"recharts-active-dot",key:P},E)});var _=F.forwardRef(function(O,P){return Z.createElement(x,Xc({},O,{ref:P}))});return _.displayName=x.displayName,_},AOe=Dj({chartName:"LineChart",GraphicalChild:sd,axisComponents:[{axisType:"xAxis",AxisComp:ld},{axisType:"yAxis",AxisComp:ud}],formatAxisMap:i9}),kOe=Dj({chartName:"PieChart",GraphicalChild:ra,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:gb},{axisType:"radiusAxis",AxisComp:mb}],formatAxisMap:rye,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),ROe=Dj({chartName:"ComposedChart",GraphicalChild:[sd,$u,$a,Pb],axisComponents:[{axisType:"xAxis",AxisComp:ld},{axisType:"yAxis",AxisComp:ud},{axisType:"zAxis",AxisComp:Sb}],formatAxisMap:i9});function K9(e,t){const n=F.useRef(t);F.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])}const NOe=1;function MOe(e){return Object.freeze({__version:NOe,map:e})}function LOe(e,t){return Object.freeze({...e,...t})}const Y9=F.createContext(null),Z9=Y9.Provider;function X9(){const e=F.useContext(Y9);if(e==null)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return e}function IOe(e){function t(n,r){const{instance:i,context:o}=e(n).current;return F.useImperativeHandle(r,()=>i),n.children==null?null:Z.createElement(Z9,{value:o},n.children)}return F.forwardRef(t)}function DOe(e){function t(n,r){const[i,o]=F.useState(!1),{instance:a}=e(n,o).current;F.useImperativeHandle(r,()=>a),F.useEffect(function(){i&&a.update()},[a,i,n.children]);const s=a._contentNode;return s?AE.createPortal(n.children,s):null}return F.forwardRef(t)}function $Oe(e){function t(n,r){const{instance:i}=e(n).current;return F.useImperativeHandle(r,()=>i),null}return F.forwardRef(t)}function Q9(e,t){const n=F.useRef();F.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 $j(e,t){const n=e.pane??t.pane;return n?{...e,pane:n}:e}function FOe(e,t){return function(r,i){const o=X9(),a=e($j(r,o),o);return K9(o.map,r.attribution),Q9(a.current,r.eventHandlers),t(a.current,o,r,i),a}}var Ch={exports:{}};/* @preserve
* Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
* (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
*/var BOe=Ch.exports,w5;function UOe(){return w5||(w5=1,function(e,t){(function(n,r){r(t)})(BOe,function(n){var r="1.9.4";function i(f){var m,S,k,U;for(S=1,k=arguments.length;S<k;S++){U=arguments[S];for(m in U)f[m]=U[m]}return f}var o=Object.create||function(){function f(){}return function(m){return f.prototype=m,new f}}();function a(f,m){var S=Array.prototype.slice;if(f.bind)return f.bind.apply(f,S.call(arguments,1));var k=S.call(arguments,2);return function(){return f.apply(m,k.length?k.concat(S.call(arguments)):arguments)}}var s=0;function c(f){return"_leaflet_id"in f||(f._leaflet_id=++s),f._leaflet_id}function u(f,m,S){var k,U,te,pe;return pe=function(){k=!1,U&&(te.apply(S,U),U=!1)},te=function(){k?U=arguments:(f.apply(S,arguments),setTimeout(pe,m),k=!0)},te}function h(f,m,S){var k=m[1],U=m[0],te=k-U;return f===k&&S?f:((f-U)%te+te)%te+U}function p(){return!1}function v(f,m){if(m===!1)return f;var S=Math.pow(10,m===void 0?6:m);return Math.round(f*S)/S}function b(f){return f.trim?f.trim():f.replace(/^\s+|\s+$/g,"")}function x(f){return b(f).split(/\s+/)}function _(f,m){Object.prototype.hasOwnProperty.call(f,"options")||(f.options=f.options?o(f.options):{});for(var S in m)f.options[S]=m[S];return f.options}function w(f,m,S){var k=[];for(var U in f)k.push(encodeURIComponent(S?U.toUpperCase():U)+"="+encodeURIComponent(f[U]));return(!m||m.indexOf("?")===-1?"?":"&")+k.join("&")}var O=/\{ *([\w_ -]+) *\}/g;function P(f,m){return f.replace(O,function(S,k){var U=m[k];if(U===void 0)throw new Error("No value provided for variable "+S);return typeof U=="function"&&(U=U(m)),U})}var E=Array.isArray||function(f){return Object.prototype.toString.call(f)==="[object Array]"};function T(f,m){for(var S=0;S<f.length;S++)if(f[S]===m)return S;return-1}var A="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function j(f){return window["webkit"+f]||window["moz"+f]||window["ms"+f]}var N=0;function $(f){var m=+new Date,S=Math.max(0,16-(m-N));return N=m+S,window.setTimeout(f,S)}var W=window.requestAnimationFrame||j("RequestAnimationFrame")||$,B=window.cancelAnimationFrame||j("CancelAnimationFrame")||j("CancelRequestAnimationFrame")||function(f){window.clearTimeout(f)};function V(f,m,S){if(S&&W===$)f.call(m);else return W.call(window,a(f,m))}function H(f){f&&B.call(window,f)}var J={__proto__:null,extend:i,create:o,bind:a,get lastId(){return s},stamp:c,throttle:u,wrapNum:h,falseFn:p,formatNum:v,trim:b,splitWords:x,setOptions:_,getParamString:w,template:P,isArray:E,indexOf:T,emptyImageUrl:A,requestFn:W,cancelFn:B,requestAnimFrame:V,cancelAnimFrame:H};function Q(){}Q.extend=function(f){var m=function(){_(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},S=m.__super__=this.prototype,k=o(S);k.constructor=m,m.prototype=k;for(var U in this)Object.prototype.hasOwnProperty.call(this,U)&&U!=="prototype"&&U!=="__super__"&&(m[U]=this[U]);return f.statics&&i(m,f.statics),f.includes&&(re(f.includes),i.apply(null,[k].concat(f.includes))),i(k,f),delete k.statics,delete k.includes,k.options&&(k.options=S.options?o(S.options):{},i(k.options,f.options)),k._initHooks=[],k.callInitHooks=function(){if(!this._initHooksCalled){S.callInitHooks&&S.callInitHooks.call(this),this._initHooksCalled=!0;for(var te=0,pe=k._initHooks.length;te<pe;te++)k._initHooks[te].call(this)}},m},Q.include=function(f){var m=this.prototype.options;return i(this.prototype,f),f.options&&(this.prototype.options=m,this.mergeOptions(f.options)),this},Q.mergeOptions=function(f){return i(this.prototype.options,f),this},Q.addInitHook=function(f){var m=Array.prototype.slice.call(arguments,1),S=typeof f=="function"?f:function(){this[f].apply(this,m)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(S),this};function re(f){if(!(typeof L>"u"||!L||!L.Mixin)){f=E(f)?f:[f];for(var m=0;m<f.length;m++)f[m]===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 ae={on:function(f,m,S){if(typeof f=="object")for(var k in f)this._on(k,f[k],m);else{f=x(f);for(var U=0,te=f.length;U<te;U++)this._on(f[U],m,S)}return this},off:function(f,m,S){if(!arguments.length)delete this._events;else if(typeof f=="object")for(var k in f)this._off(k,f[k],m);else{f=x(f);for(var U=arguments.length===1,te=0,pe=f.length;te<pe;te++)U?this._off(f[te]):this._off(f[te],m,S)}return this},_on:function(f,m,S,k){if(typeof m!="function"){console.warn("wrong listener type: "+typeof m);return}if(this._listens(f,m,S)===!1){S===this&&(S=void 0);var U={fn:m,ctx:S};k&&(U.once=!0),this._events=this._events||{},this._events[f]=this._events[f]||[],this._events[f].push(U)}},_off:function(f,m,S){var k,U,te;if(this._events&&(k=this._events[f],!!k)){if(arguments.length===1){if(this._firingCount)for(U=0,te=k.length;U<te;U++)k[U].fn=p;delete this._events[f];return}if(typeof m!="function"){console.warn("wrong listener type: "+typeof m);return}var pe=this._listens(f,m,S);if(pe!==!1){var _e=k[pe];this._firingCount&&(_e.fn=p,this._events[f]=k=k.slice()),k.splice(pe,1)}}},fire:function(f,m,S){if(!this.listens(f,S))return this;var k=i({},m,{type:f,target:this,sourceTarget:m&&m.sourceTarget||this});if(this._events){var U=this._events[f];if(U){this._firingCount=this._firingCount+1||1;for(var te=0,pe=U.length;te<pe;te++){var _e=U[te],Pe=_e.fn;_e.once&&this.off(f,Pe,_e.ctx),Pe.call(_e.ctx||this,k)}this._firingCount--}}return S&&this._propagateEvent(k),this},listens:function(f,m,S,k){typeof f!="string"&&console.warn('"string" type argument expected');var U=m;typeof m!="function"&&(k=!!m,U=void 0,S=void 0);var te=this._events&&this._events[f];if(te&&te.length&&this._listens(f,U,S)!==!1)return!0;if(k){for(var pe in this._eventParents)if(this._eventParents[pe].listens(f,m,S,k))return!0}return!1},_listens:function(f,m,S){if(!this._events)return!1;var k=this._events[f]||[];if(!m)return!!k.length;S===this&&(S=void 0);for(var U=0,te=k.length;U<te;U++)if(k[U].fn===m&&k[U].ctx===S)return U;return!1},once:function(f,m,S){if(typeof f=="object")for(var k in f)this._on(k,f[k],m,!0);else{f=x(f);for(var U=0,te=f.length;U<te;U++)this._on(f[U],m,S,!0)}return this},addEventParent:function(f){return this._eventParents=this._eventParents||{},this._eventParents[c(f)]=f,this},removeEventParent:function(f){return this._eventParents&&delete this._eventParents[c(f)],this},_propagateEvent:function(f){for(var m in this._eventParents)this._eventParents[m].fire(f.type,i({layer:f.target,propagatedFrom:f.target},f),!0)}};ae.addEventListener=ae.on,ae.removeEventListener=ae.clearAllEventListeners=ae.off,ae.addOneTimeEventListener=ae.once,ae.fireEvent=ae.fire,ae.hasEventListeners=ae.listens;var se=Q.extend(ae);function oe(f,m,S){this.x=S?Math.round(f):f,this.y=S?Math.round(m):m}var K=Math.trunc||function(f){return f>0?Math.floor(f):Math.ceil(f)};oe.prototype={clone:function(){return new oe(this.x,this.y)},add:function(f){return this.clone()._add(G(f))},_add:function(f){return this.x+=f.x,this.y+=f.y,this},subtract:function(f){return this.clone()._subtract(G(f))},_subtract:function(f){return this.x-=f.x,this.y-=f.y,this},divideBy:function(f){return this.clone()._divideBy(f)},_divideBy:function(f){return this.x/=f,this.y/=f,this},multiplyBy:function(f){return this.clone()._multiplyBy(f)},_multiplyBy:function(f){return this.x*=f,this.y*=f,this},scaleBy:function(f){return new oe(this.x*f.x,this.y*f.y)},unscaleBy:function(f){return new oe(this.x/f.x,this.y/f.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=K(this.x),this.y=K(this.y),this},distanceTo:function(f){f=G(f);var m=f.x-this.x,S=f.y-this.y;return Math.sqrt(m*m+S*S)},equals:function(f){return f=G(f),f.x===this.x&&f.y===this.y},contains:function(f){return f=G(f),Math.abs(f.x)<=Math.abs(this.x)&&Math.abs(f.y)<=Math.abs(this.y)},toString:function(){return"Point("+v(this.x)+", "+v(this.y)+")"}};function G(f,m,S){return f instanceof oe?f:E(f)?new oe(f[0],f[1]):f==null?f:typeof f=="object"&&"x"in f&&"y"in f?new oe(f.x,f.y):new oe(f,m,S)}function z(f,m){if(f)for(var S=m?[f,m]:f,k=0,U=S.length;k<U;k++)this.extend(S[k])}z.prototype={extend:function(f){var m,S;if(!f)return this;if(f instanceof oe||typeof f[0]=="number"||"x"in f)m=S=G(f);else if(f=ne(f),m=f.min,S=f.max,!m||!S)return this;return!this.min&&!this.max?(this.min=m.clone(),this.max=S.clone()):(this.min.x=Math.min(m.x,this.min.x),this.max.x=Math.max(S.x,this.max.x),this.min.y=Math.min(m.y,this.min.y),this.max.y=Math.max(S.y,this.max.y)),this},getCenter:function(f){return G((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,f)},getBottomLeft:function(){return G(this.min.x,this.max.y)},getTopRight:function(){return G(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(f){var m,S;return typeof f[0]=="number"||f instanceof oe?f=G(f):f=ne(f),f instanceof z?(m=f.min,S=f.max):m=S=f,m.x>=this.min.x&&S.x<=this.max.x&&m.y>=this.min.y&&S.y<=this.max.y},intersects:function(f){f=ne(f);var m=this.min,S=this.max,k=f.min,U=f.max,te=U.x>=m.x&&k.x<=S.x,pe=U.y>=m.y&&k.y<=S.y;return te&&pe},overlaps:function(f){f=ne(f);var m=this.min,S=this.max,k=f.min,U=f.max,te=U.x>m.x&&k.x<S.x,pe=U.y>m.y&&k.y<S.y;return te&&pe},isValid:function(){return!!(this.min&&this.max)},pad:function(f){var m=this.min,S=this.max,k=Math.abs(m.x-S.x)*f,U=Math.abs(m.y-S.y)*f;return ne(G(m.x-k,m.y-U),G(S.x+k,S.y+U))},equals:function(f){return f?(f=ne(f),this.min.equals(f.getTopLeft())&&this.max.equals(f.getBottomRight())):!1}};function ne(f,m){return!f||f instanceof z?f:new z(f,m)}function X(f,m){if(f)for(var S=m?[f,m]:f,k=0,U=S.length;k<U;k++)this.extend(S[k])}X.prototype={extend:function(f){var m=this._southWest,S=this._northEast,k,U;if(f instanceof ce)k=f,U=f;else if(f instanceof X){if(k=f._southWest,U=f._northEast,!k||!U)return this}else return f?this.extend(de(f)||le(f)):this;return!m&&!S?(this._southWest=new ce(k.lat,k.lng),this._northEast=new ce(U.lat,U.lng)):(m.lat=Math.min(k.lat,m.lat),m.lng=Math.min(k.lng,m.lng),S.lat=Math.max(U.lat,S.lat),S.lng=Math.max(U.lng,S.lng)),this},pad:function(f){var m=this._southWest,S=this._northEast,k=Math.abs(m.lat-S.lat)*f,U=Math.abs(m.lng-S.lng)*f;return new X(new ce(m.lat-k,m.lng-U),new ce(S.lat+k,S.lng+U))},getCenter:function(){return new ce((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 ce(this.getNorth(),this.getWest())},getSouthEast:function(){return new ce(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(f){typeof f[0]=="number"||f instanceof ce||"lat"in f?f=de(f):f=le(f);var m=this._southWest,S=this._northEast,k,U;return f instanceof X?(k=f.getSouthWest(),U=f.getNorthEast()):k=U=f,k.lat>=m.lat&&U.lat<=S.lat&&k.lng>=m.lng&&U.lng<=S.lng},intersects:function(f){f=le(f);var m=this._southWest,S=this._northEast,k=f.getSouthWest(),U=f.getNorthEast(),te=U.lat>=m.lat&&k.lat<=S.lat,pe=U.lng>=m.lng&&k.lng<=S.lng;return te&&pe},overlaps:function(f){f=le(f);var m=this._southWest,S=this._northEast,k=f.getSouthWest(),U=f.getNorthEast(),te=U.lat>m.lat&&k.lat<S.lat,pe=U.lng>m.lng&&k.lng<S.lng;return te&&pe},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(f,m){return f?(f=le(f),this._southWest.equals(f.getSouthWest(),m)&&this._northEast.equals(f.getNorthEast(),m)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function le(f,m){return f instanceof X?f:new X(f,m)}function ce(f,m,S){if(isNaN(f)||isNaN(m))throw new Error("Invalid LatLng object: ("+f+", "+m+")");this.lat=+f,this.lng=+m,S!==void 0&&(this.alt=+S)}ce.prototype={equals:function(f,m){if(!f)return!1;f=de(f);var S=Math.max(Math.abs(this.lat-f.lat),Math.abs(this.lng-f.lng));return S<=(m===void 0?1e-9:m)},toString:function(f){return"LatLng("+v(this.lat,f)+", "+v(this.lng,f)+")"},distanceTo:function(f){return M.distance(this,de(f))},wrap:function(){return M.wrapLatLng(this)},toBounds:function(f){var m=180*f/40075017,S=m/Math.cos(Math.PI/180*this.lat);return le([this.lat-m,this.lng-S],[this.lat+m,this.lng+S])},clone:function(){return new ce(this.lat,this.lng,this.alt)}};function de(f,m,S){return f instanceof ce?f:E(f)&&typeof f[0]!="object"?f.length===3?new ce(f[0],f[1],f[2]):f.length===2?new ce(f[0],f[1]):null:f==null?f:typeof f=="object"&&"lat"in f?new ce(f.lat,"lng"in f?f.lng:f.lon,f.alt):m===void 0?null:new ce(f,m,S)}var be={latLngToPoint:function(f,m){var S=this.projection.project(f),k=this.scale(m);return this.transformation._transform(S,k)},pointToLatLng:function(f,m){var S=this.scale(m),k=this.transformation.untransform(f,S);return this.projection.unproject(k)},project:function(f){return this.projection.project(f)},unproject:function(f){return this.projection.unproject(f)},scale:function(f){return 256*Math.pow(2,f)},zoom:function(f){return Math.log(f/256)/Math.LN2},getProjectedBounds:function(f){if(this.infinite)return null;var m=this.projection.bounds,S=this.scale(f),k=this.transformation.transform(m.min,S),U=this.transformation.transform(m.max,S);return new z(k,U)},infinite:!1,wrapLatLng:function(f){var m=this.wrapLng?h(f.lng,this.wrapLng,!0):f.lng,S=this.wrapLat?h(f.lat,this.wrapLat,!0):f.lat,k=f.alt;return new ce(S,m,k)},wrapLatLngBounds:function(f){var m=f.getCenter(),S=this.wrapLatLng(m),k=m.lat-S.lat,U=m.lng-S.lng;if(k===0&&U===0)return f;var te=f.getSouthWest(),pe=f.getNorthEast(),_e=new ce(te.lat-k,te.lng-U),Pe=new ce(pe.lat-k,pe.lng-U);return new X(_e,Pe)}},M=i({},be,{wrapLng:[-180,180],R:6371e3,distance:function(f,m){var S=Math.PI/180,k=f.lat*S,U=m.lat*S,te=Math.sin((m.lat-f.lat)*S/2),pe=Math.sin((m.lng-f.lng)*S/2),_e=te*te+Math.cos(k)*Math.cos(U)*pe*pe,Pe=2*Math.atan2(Math.sqrt(_e),Math.sqrt(1-_e));return this.R*Pe}}),D=6378137,Y={R:D,MAX_LATITUDE:85.0511287798,project:function(f){var m=Math.PI/180,S=this.MAX_LATITUDE,k=Math.max(Math.min(S,f.lat),-S),U=Math.sin(k*m);return new oe(this.R*f.lng*m,this.R*Math.log((1+U)/(1-U))/2)},unproject:function(f){var m=180/Math.PI;return new ce((2*Math.atan(Math.exp(f.y/this.R))-Math.PI/2)*m,f.x*m/this.R)},bounds:function(){var f=D*Math.PI;return new z([-f,-f],[f,f])}()};function ue(f,m,S,k){if(E(f)){this._a=f[0],this._b=f[1],this._c=f[2],this._d=f[3];return}this._a=f,this._b=m,this._c=S,this._d=k}ue.prototype={transform:function(f,m){return this._transform(f.clone(),m)},_transform:function(f,m){return m=m||1,f.x=m*(this._a*f.x+this._b),f.y=m*(this._c*f.y+this._d),f},untransform:function(f,m){return m=m||1,new oe((f.x/m-this._b)/this._a,(f.y/m-this._d)/this._c)}};function ie(f,m,S,k){return new ue(f,m,S,k)}var he=i({},M,{code:"EPSG:3857",projection:Y,transformation:function(){var f=.5/(Math.PI*Y.R);return ie(f,.5,-f,.5)}()}),Se=i({},he,{code:"EPSG:900913"});function Fe(f){return document.createElementNS("http://www.w3.org/2000/svg",f)}function ge(f,m){var S="",k,U,te,pe,_e,Pe;for(k=0,te=f.length;k<te;k++){for(_e=f[k],U=0,pe=_e.length;U<pe;U++)Pe=_e[U],S+=(U?"L":"M")+Pe.x+" "+Pe.y;S+=m?rt.svg?"z":"x":""}return S||"M0 0"}var Ee=document.documentElement.style,je="ActiveXObject"in window,Me=je&&!document.addEventListener,He="msLaunchUri"in navigator&&!("documentMode"in document),Ue=vn("webkit"),qe=vn("android"),ye=vn("android 2")||vn("android 3"),we=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),Ae=qe&&vn("Google")&&we<537&&!("AudioNode"in window),ke=!!window.opera,De=!He&&vn("chrome"),Ke=vn("gecko")&&!Ue&&!ke&&!je,Xe=!De&&vn("safari"),bt=vn("phantom"),Ot="OTransition"in Ee,xt=navigator.platform.indexOf("Win")===0,en=je&&"transition"in Ee,Gt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!ye,kn="MozPerspective"in Ee,Dn=!window.L_DISABLE_3D&&(en||Gt||kn)&&!Ot&&!bt,Nr=typeof orientation<"u"||vn("mobile"),En=Nr&&Ue,ua=Nr&&Gt,Mr=!window.PointerEvent&&window.MSPointerEvent,to=!!(window.PointerEvent||Mr),no="ontouchstart"in window||!!window.TouchEvent,xl=!window.L_NO_TOUCH&&(no||to),rs=Nr&&ke,ko=Nr&&Ke,hn=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,sn=function(){var f=!1;try{var m=Object.defineProperty({},"passive",{get:function(){f=!0}});window.addEventListener("testPassiveEventSupport",p,m),window.removeEventListener("testPassiveEventSupport",p,m)}catch{}return f}(),$n=function(){return!!document.createElement("canvas").getContext}(),Rn=!!(document.createElementNS&&Fe("svg").createSVGRect),pn=!!Rn&&function(){var f=document.createElement("div");return f.innerHTML="<svg/>",(f.firstChild&&f.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),mn=!Rn&&function(){try{var f=document.createElement("div");f.innerHTML='<v:shape adj="1"/>';var m=f.firstChild;return m.style.behavior="url(#default#VML)",m&&typeof m.adj=="object"}catch{return!1}}(),nr=navigator.platform.indexOf("Mac")===0,Qr=navigator.platform.indexOf("Linux")===0;function vn(f){return navigator.userAgent.toLowerCase().indexOf(f)>=0}var rt={ie:je,ielt9:Me,edge:He,webkit:Ue,android:qe,android23:ye,androidStock:Ae,opera:ke,chrome:De,gecko:Ke,safari:Xe,phantom:bt,opera12:Ot,win:xt,ie3d:en,webkit3d:Gt,gecko3d:kn,any3d:Dn,mobile:Nr,mobileWebkit:En,mobileWebkit3d:ua,msPointer:Mr,pointer:to,touch:xl,touchNative:no,mobileOpera:rs,mobileGecko:ko,retina:hn,passiveEvents:sn,canvas:$n,svg:Rn,vml:mn,inlineSvg:pn,mac:nr,linux:Qr},wl=rt.msPointer?"MSPointerDown":"pointerdown",Uu=rt.msPointer?"MSPointerMove":"pointermove",wm=rt.msPointer?"MSPointerUp":"pointerup",Om=rt.msPointer?"MSPointerCancel":"pointercancel",hd={touchstart:wl,touchmove:Uu,touchend:wm,touchcancel:Om},Ro={touchstart:gn,touchmove:zu,touchend:zu,touchcancel:zu},ca={},pd=!1;function Ib(f,m,S){return m==="touchstart"&&Db(),Ro[m]?(S=Ro[m].bind(this,S),f.addEventListener(hd[m],S,!1),S):(console.warn("wrong event specified:",m),p)}function Sm(f,m,S){if(!hd[m]){console.warn("wrong event specified:",m);return}f.removeEventListener(hd[m],S,!1)}function Pm(f){ca[f.pointerId]=f}function Cm(f){ca[f.pointerId]&&(ca[f.pointerId]=f)}function md(f){delete ca[f.pointerId]}function Db(){pd||(document.addEventListener(wl,Pm,!0),document.addEventListener(Uu,Cm,!0),document.addEventListener(wm,md,!0),document.addEventListener(Om,md,!0),pd=!0)}function zu(f,m){if(m.pointerType!==(m.MSPOINTER_TYPE_MOUSE||"mouse")){m.touches=[];for(var S in ca)m.touches.push(ca[S]);m.changedTouches=[m],f(m)}}function gn(f,m){m.MSPOINTER_TYPE_TOUCH&&m.pointerType===m.MSPOINTER_TYPE_TOUCH&&yn(m),zu(f,m)}function $b(f){var m={},S,k;for(k in f)S=f[k],m[k]=S&&S.bind?S.bind(f):S;return f=m,m.type="dblclick",m.detail=2,m.isTrusted=!1,m._simulated=!0,m}var vd=200;function Em(f,m){f.addEventListener("dblclick",m);var S=0,k;function U(te){if(te.detail!==1){k=te.detail;return}if(!(te.pointerType==="mouse"||te.sourceCapabilities&&!te.sourceCapabilities.firesTouchEvents)){var pe=ha(te);if(!(pe.some(function(Pe){return Pe instanceof HTMLLabelElement&&Pe.attributes.for})&&!pe.some(function(Pe){return Pe instanceof HTMLInputElement||Pe instanceof HTMLSelectElement}))){var _e=Date.now();_e-S<=vd?(k++,k===2&&m($b(te))):k=1,S=_e}}}return f.addEventListener("click",U),{dblclick:m,simDblclick:U}}function Vu(f,m){f.removeEventListener("dblclick",m.dblclick),f.removeEventListener("click",m.simDblclick)}var gd=ss(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),is=ss(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Ol=is==="webkitTransition"||is==="OTransition"?is+"End":"transitionend";function Jr(f){return typeof f=="string"?document.getElementById(f):f}function Sl(f,m){var S=f.style[m]||f.currentStyle&&f.currentStyle[m];if((!S||S==="auto")&&document.defaultView){var k=document.defaultView.getComputedStyle(f,null);S=k?k[m]:null}return S==="auto"?null:S}function wt(f,m,S){var k=document.createElement(f);return k.className=m||"",S&&S.appendChild(k),k}function tn(f){var m=f.parentNode;m&&m.removeChild(f)}function Wu(f){for(;f.firstChild;)f.removeChild(f.firstChild)}function os(f){var m=f.parentNode;m&&m.lastChild!==f&&m.appendChild(f)}function ro(f){var m=f.parentNode;m&&m.firstChild!==f&&m.insertBefore(f,m.firstChild)}function as(f,m){if(f.classList!==void 0)return f.classList.contains(m);var S=qu(f);return S.length>0&&new RegExp("(^|\\s)"+m+"(\\s|$)").test(S)}function gt(f,m){if(f.classList!==void 0)for(var S=x(m),k=0,U=S.length;k<U;k++)f.classList.add(S[k]);else if(!as(f,m)){var te=qu(f);yd(f,(te?te+" ":"")+m)}}function Kt(f,m){f.classList!==void 0?f.classList.remove(m):yd(f,b((" "+qu(f)+" ").replace(" "+m+" "," ")))}function yd(f,m){f.className.baseVal===void 0?f.className=m:f.className.baseVal=m}function qu(f){return f.correspondingElement&&(f=f.correspondingElement),f.className.baseVal===void 0?f.className:f.className.baseVal}function lr(f,m){"opacity"in f.style?f.style.opacity=m:"filter"in f.style&&Tm(f,m)}function Tm(f,m){var S=!1,k="DXImageTransform.Microsoft.Alpha";try{S=f.filters.item(k)}catch{if(m===1)return}m=Math.round(m*100),S?(S.Enabled=m!==100,S.Opacity=m):f.style.filter+=" progid:"+k+"(opacity="+m+")"}function ss(f){for(var m=document.documentElement.style,S=0;S<f.length;S++)if(f[S]in m)return f[S];return!1}function ei(f,m,S){var k=m||new oe(0,0);f.style[gd]=(rt.ie3d?"translate("+k.x+"px,"+k.y+"px)":"translate3d("+k.x+"px,"+k.y+"px,0)")+(S?" scale("+S+")":"")}function On(f,m){f._leaflet_pos=m,rt.any3d?ei(f,m):(f.style.left=m.x+"px",f.style.top=m.y+"px")}function io(f){return f._leaflet_pos||new oe(0,0)}var kt,ls,Hu;if("onselectstart"in document)kt=function(){ht(window,"selectstart",yn)},ls=function(){Ut(window,"selectstart",yn)};else{var fa=ss(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);kt=function(){if(fa){var f=document.documentElement.style;Hu=f[fa],f[fa]="none"}},ls=function(){fa&&(document.documentElement.style[fa]=Hu,Hu=void 0)}}function Gu(){ht(window,"dragstart",yn)}function Ku(){Ut(window,"dragstart",yn)}var Pl,Cl;function us(f){for(;f.tabIndex===-1;)f=f.parentNode;f.style&&(ti(),Pl=f,Cl=f.style.outlineStyle,f.style.outlineStyle="none",ht(window,"keydown",ti))}function ti(){Pl&&(Pl.style.outlineStyle=Cl,Pl=void 0,Cl=void 0,Ut(window,"keydown",ti))}function oo(f){do f=f.parentNode;while((!f.offsetWidth||!f.offsetHeight)&&f!==document.body);return f}function Pi(f){var m=f.getBoundingClientRect();return{x:m.width/f.offsetWidth||1,y:m.height/f.offsetHeight||1,boundingClientRect:m}}var El={__proto__:null,TRANSFORM:gd,TRANSITION:is,TRANSITION_END:Ol,get:Jr,getStyle:Sl,create:wt,remove:tn,empty:Wu,toFront:os,toBack:ro,hasClass:as,addClass:gt,removeClass:Kt,setClass:yd,getClass:qu,setOpacity:lr,testProp:ss,setTransform:ei,setPosition:On,getPosition:io,get disableTextSelection(){return kt},get enableTextSelection(){return ls},disableImageDrag:Gu,enableImageDrag:Ku,preventOutline:us,restoreOutline:ti,getSizedParentNode:oo,getScale:Pi};function ht(f,m,S,k){if(m&&typeof m=="object")for(var U in m)_d(f,U,m[U],S);else{m=x(m);for(var te=0,pe=m.length;te<pe;te++)_d(f,m[te],S,k)}return this}var Fn="_leaflet_events";function Ut(f,m,S,k){if(arguments.length===1)bd(f),delete f[Fn];else if(m&&typeof m=="object")for(var U in m)Yu(f,U,m[U],S);else if(m=x(m),arguments.length===2)bd(f,function(_e){return T(m,_e)!==-1});else for(var te=0,pe=m.length;te<pe;te++)Yu(f,m[te],S,k);return this}function bd(f,m){for(var S in f[Fn]){var k=S.split(/\d/)[0];(!m||m(k))&&Yu(f,k,null,null,S)}}var da={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function _d(f,m,S,k){var U=m+c(S)+(k?"_"+c(k):"");if(f[Fn]&&f[Fn][U])return this;var te=function(_e){return S.call(k||f,_e||window.event)},pe=te;!rt.touchNative&&rt.pointer&&m.indexOf("touch")===0?te=Ib(f,m,te):rt.touch&&m==="dblclick"?te=Em(f,te):"addEventListener"in f?m==="touchstart"||m==="touchmove"||m==="wheel"||m==="mousewheel"?f.addEventListener(da[m]||m,te,rt.passiveEvents?{passive:!1}:!1):m==="mouseenter"||m==="mouseleave"?(te=function(_e){_e=_e||window.event,Al(f,_e)&&pe(_e)},f.addEventListener(da[m],te,!1)):f.addEventListener(m,pe,!1):f.attachEvent("on"+m,te),f[Fn]=f[Fn]||{},f[Fn][U]=te}function Yu(f,m,S,k,U){U=U||m+c(S)+(k?"_"+c(k):"");var te=f[Fn]&&f[Fn][U];if(!te)return this;!rt.touchNative&&rt.pointer&&m.indexOf("touch")===0?Sm(f,m,te):rt.touch&&m==="dblclick"?Vu(f,te):"removeEventListener"in f?f.removeEventListener(da[m]||m,te,!1):f.detachEvent("on"+m,te),f[Fn][U]=null}function Ci(f){return f.stopPropagation?f.stopPropagation():f.originalEvent?f.originalEvent._stopped=!0:f.cancelBubble=!0,this}function Zu(f){return _d(f,"wheel",Ci),this}function Tl(f){return ht(f,"mousedown touchstart dblclick contextmenu",Ci),f._leaflet_disable_click=!0,this}function yn(f){return f.preventDefault?f.preventDefault():f.returnValue=!1,this}function ni(f){return yn(f),Ci(f),this}function ha(f){if(f.composedPath)return f.composedPath();for(var m=[],S=f.target;S;)m.push(S),S=S.parentNode;return m}function jl(f,m){if(!m)return new oe(f.clientX,f.clientY);var S=Pi(m),k=S.boundingClientRect;return new oe((f.clientX-k.left)/S.x-m.clientLeft,(f.clientY-k.top)/S.y-m.clientTop)}var Fb=rt.linux&&rt.chrome?window.devicePixelRatio:rt.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function jm(f){return rt.edge?f.wheelDeltaY/2:f.deltaY&&f.deltaMode===0?-f.deltaY/Fb:f.deltaY&&f.deltaMode===1?-f.deltaY*20:f.deltaY&&f.deltaMode===2?-f.deltaY*60:f.deltaX||f.deltaZ?0:f.wheelDelta?(f.wheelDeltaY||f.wheelDelta)/2:f.detail&&Math.abs(f.detail)<32765?-f.detail*20:f.detail?f.detail/-32765*60:0}function Al(f,m){var S=m.relatedTarget;if(!S)return!0;try{for(;S&&S!==f;)S=S.parentNode}catch{return!1}return S!==f}var Xu={__proto__:null,on:ht,off:Ut,stopPropagation:Ci,disableScrollPropagation:Zu,disableClickPropagation:Tl,preventDefault:yn,stop:ni,getPropagationPath:ha,getMousePosition:jl,getWheelDelta:jm,isExternalTarget:Al,addListener:ht,removeListener:Ut},Qu=se.extend({run:function(f,m,S,k){this.stop(),this._el=f,this._inProgress=!0,this._duration=S||.25,this._easeOutPower=1/Math.max(k||.5,.2),this._startPos=io(f),this._offset=m.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=V(this._animate,this),this._step()},_step:function(f){var m=+new Date-this._startTime,S=this._duration*1e3;m<S?this._runFrame(this._easeOut(m/S),f):(this._runFrame(1),this._complete())},_runFrame:function(f,m){var S=this._startPos.add(this._offset.multiplyBy(f));m&&S._round(),On(this._el,S),this.fire("step")},_complete:function(){H(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(f){return 1-Math.pow(1-f,this._easeOutPower)}}),Et=se.extend({options:{crs:he,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(f,m){m=_(this,m),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(f),this._initLayout(),this._onResize=a(this._onResize,this),this._initEvents(),m.maxBounds&&this.setMaxBounds(m.maxBounds),m.zoom!==void 0&&(this._zoom=this._limitZoom(m.zoom)),m.center&&m.zoom!==void 0&&this.setView(de(m.center),m.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=is&&rt.any3d&&!rt.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),ht(this._proxy,Ol,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(f,m,S){if(m=m===void 0?this._zoom:this._limitZoom(m),f=this._limitCenter(de(f),m,this.options.maxBounds),S=S||{},this._stop(),this._loaded&&!S.reset&&S!==!0){S.animate!==void 0&&(S.zoom=i({animate:S.animate},S.zoom),S.pan=i({animate:S.animate,duration:S.duration},S.pan));var k=this._zoom!==m?this._tryAnimatedZoom&&this._tryAnimatedZoom(f,m,S.zoom):this._tryAnimatedPan(f,S.pan);if(k)return clearTimeout(this._sizeTimer),this}return this._resetView(f,m,S.pan&&S.pan.noMoveStart),this},setZoom:function(f,m){return this._loaded?this.setView(this.getCenter(),f,{zoom:m}):(this._zoom=f,this)},zoomIn:function(f,m){return f=f||(rt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+f,m)},zoomOut:function(f,m){return f=f||(rt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-f,m)},setZoomAround:function(f,m,S){var k=this.getZoomScale(m),U=this.getSize().divideBy(2),te=f instanceof oe?f:this.latLngToContainerPoint(f),pe=te.subtract(U).multiplyBy(1-1/k),_e=this.containerPointToLatLng(U.add(pe));return this.setView(_e,m,{zoom:S})},_getBoundsCenterZoom:function(f,m){m=m||{},f=f.getBounds?f.getBounds():le(f);var S=G(m.paddingTopLeft||m.padding||[0,0]),k=G(m.paddingBottomRight||m.padding||[0,0]),U=this.getBoundsZoom(f,!1,S.add(k));if(U=typeof m.maxZoom=="number"?Math.min(m.maxZoom,U):U,U===1/0)return{center:f.getCenter(),zoom:U};var te=k.subtract(S).divideBy(2),pe=this.project(f.getSouthWest(),U),_e=this.project(f.getNorthEast(),U),Pe=this.unproject(pe.add(_e).divideBy(2).add(te),U);return{center:Pe,zoom:U}},fitBounds:function(f,m){if(f=le(f),!f.isValid())throw new Error("Bounds are not valid.");var S=this._getBoundsCenterZoom(f,m);return this.setView(S.center,S.zoom,m)},fitWorld:function(f){return this.fitBounds([[-90,-180],[90,180]],f)},panTo:function(f,m){return this.setView(f,this._zoom,{pan:m})},panBy:function(f,m){if(f=G(f).round(),m=m||{},!f.x&&!f.y)return this.fire("moveend");if(m.animate!==!0&&!this.getSize().contains(f))return this._resetView(this.unproject(this.project(this.getCenter()).add(f)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new Qu,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),m.noMoveStart||this.fire("movestart"),m.animate!==!1){gt(this._mapPane,"leaflet-pan-anim");var S=this._getMapPanePos().subtract(f).round();this._panAnim.run(this._mapPane,S,m.duration||.25,m.easeLinearity)}else this._rawPanBy(f),this.fire("move").fire("moveend");return this},flyTo:function(f,m,S){if(S=S||{},S.animate===!1||!rt.any3d)return this.setView(f,m,S);this._stop();var k=this.project(this.getCenter()),U=this.project(f),te=this.getSize(),pe=this._zoom;f=de(f),m=m===void 0?pe:m;var _e=Math.max(te.x,te.y),Pe=_e*this.getZoomScale(pe,m),Re=U.distanceTo(k)||1,Ze=1.42,st=Ze*Ze;function St(Dt){var Ss=Dt?-1:1,Jb=Dt?Pe:_e,e_=Pe*Pe-_e*_e+Ss*st*st*Re*Re,_a=2*Jb*st*Re,xa=e_/_a,wa=Math.sqrt(xa*xa+1)-xa,dc=wa<1e-9?-18:Math.log(wa);return dc}function Bn(Dt){return(Math.exp(Dt)-Math.exp(-Dt))/2}function Nn(Dt){return(Math.exp(Dt)+Math.exp(-Dt))/2}function _r(Dt){return Bn(Dt)/Nn(Dt)}var cr=St(0);function ws(Dt){return _e*(Nn(cr)/Nn(cr+Ze*Dt))}function Ud(Dt){return _e*(Nn(cr)*_r(cr+Ze*Dt)-Bn(cr))/st}function Bo(Dt){return 1-Math.pow(1-Dt,1.5)}var Zm=Date.now(),ba=(St(1)-cr)/Ze,Ai=S.duration?1e3*S.duration:1e3*ba*.8;function Os(){var Dt=(Date.now()-Zm)/Ai,Ss=Bo(Dt)*ba;Dt<=1?(this._flyToFrame=V(Os,this),this._move(this.unproject(k.add(U.subtract(k).multiplyBy(Ud(Ss)/Re)),pe),this.getScaleZoom(_e/ws(Ss),pe),{flyTo:!0})):this._move(f,m)._moveEnd(!0)}return this._moveStart(!0,S.noMoveStart),Os.call(this),this},flyToBounds:function(f,m){var S=this._getBoundsCenterZoom(f,m);return this.flyTo(S.center,S.zoom,m)},setMaxBounds:function(f){return f=le(f),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),f.isValid()?(this.options.maxBounds=f,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(f){var m=this.options.minZoom;return this.options.minZoom=f,this._loaded&&m!==f&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(f):this},setMaxZoom:function(f){var m=this.options.maxZoom;return this.options.maxZoom=f,this._loaded&&m!==f&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(f):this},panInsideBounds:function(f,m){this._enforcingBounds=!0;var S=this.getCenter(),k=this._limitCenter(S,this._zoom,le(f));return S.equals(k)||this.panTo(k,m),this._enforcingBounds=!1,this},panInside:function(f,m){m=m||{};var S=G(m.paddingTopLeft||m.padding||[0,0]),k=G(m.paddingBottomRight||m.padding||[0,0]),U=this.project(this.getCenter()),te=this.project(f),pe=this.getPixelBounds(),_e=ne([pe.min.add(S),pe.max.subtract(k)]),Pe=_e.getSize();if(!_e.contains(te)){this._enforcingBounds=!0;var Re=te.subtract(_e.getCenter()),Ze=_e.extend(te).getSize().subtract(Pe);U.x+=Re.x<0?-Ze.x:Ze.x,U.y+=Re.y<0?-Ze.y:Ze.y,this.panTo(this.unproject(U),m),this._enforcingBounds=!1}return this},invalidateSize:function(f){if(!this._loaded)return this;f=i({animate:!1,pan:!0},f===!0?{animate:!0}:f);var m=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var S=this.getSize(),k=m.divideBy(2).round(),U=S.divideBy(2).round(),te=k.subtract(U);return!te.x&&!te.y?this:(f.animate&&f.pan?this.panBy(te):(f.pan&&this._rawPanBy(te),this.fire("move"),f.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(a(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:m,newSize:S}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(f){if(f=this._locateOptions=i({timeout:1e4,watch:!1},f),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var m=a(this._handleGeolocationResponse,this),S=a(this._handleGeolocationError,this);return f.watch?this._locationWatchId=navigator.geolocation.watchPosition(m,S,f):navigator.geolocation.getCurrentPosition(m,S,f),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(f){if(this._container._leaflet_id){var m=f.code,S=f.message||(m===1?"permission denied":m===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:m,message:"Geolocation error: "+S+"."})}},_handleGeolocationResponse:function(f){if(this._container._leaflet_id){var m=f.coords.latitude,S=f.coords.longitude,k=new ce(m,S),U=k.toBounds(f.coords.accuracy*2),te=this._locateOptions;if(te.setView){var pe=this.getBoundsZoom(U);this.setView(k,te.maxZoom?Math.min(pe,te.maxZoom):pe)}var _e={latlng:k,bounds:U,timestamp:f.timestamp};for(var Pe in f.coords)typeof f.coords[Pe]=="number"&&(_e[Pe]=f.coords[Pe]);this.fire("locationfound",_e)}},addHandler:function(f,m){if(!m)return this;var S=this[f]=new m(this);return this._handlers.push(S),this.options[f]&&S.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(),tn(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(H(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var f;for(f in this._layers)this._layers[f].remove();for(f in this._panes)tn(this._panes[f]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(f,m){var S="leaflet-pane"+(f?" leaflet-"+f.replace("Pane","")+"-pane":""),k=wt("div",S,m||this._mapPane);return f&&(this._panes[f]=k),k},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var f=this.getPixelBounds(),m=this.unproject(f.getBottomLeft()),S=this.unproject(f.getTopRight());return new X(m,S)},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(f,m,S){f=le(f),S=G(S||[0,0]);var k=this.getZoom()||0,U=this.getMinZoom(),te=this.getMaxZoom(),pe=f.getNorthWest(),_e=f.getSouthEast(),Pe=this.getSize().subtract(S),Re=ne(this.project(_e,k),this.project(pe,k)).getSize(),Ze=rt.any3d?this.options.zoomSnap:1,st=Pe.x/Re.x,St=Pe.y/Re.y,Bn=m?Math.max(st,St):Math.min(st,St);return k=this.getScaleZoom(Bn,k),Ze&&(k=Math.round(k/(Ze/100))*(Ze/100),k=m?Math.ceil(k/Ze)*Ze:Math.floor(k/Ze)*Ze),Math.max(U,Math.min(te,k))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new oe(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(f,m){var S=this._getTopLeftPoint(f,m);return new z(S,S.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(f){return this.options.crs.getProjectedBounds(f===void 0?this.getZoom():f)},getPane:function(f){return typeof f=="string"?this._panes[f]:f},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(f,m){var S=this.options.crs;return m=m===void 0?this._zoom:m,S.scale(f)/S.scale(m)},getScaleZoom:function(f,m){var S=this.options.crs;m=m===void 0?this._zoom:m;var k=S.zoom(f*S.scale(m));return isNaN(k)?1/0:k},project:function(f,m){return m=m===void 0?this._zoom:m,this.options.crs.latLngToPoint(de(f),m)},unproject:function(f,m){return m=m===void 0?this._zoom:m,this.options.crs.pointToLatLng(G(f),m)},layerPointToLatLng:function(f){var m=G(f).add(this.getPixelOrigin());return this.unproject(m)},latLngToLayerPoint:function(f){var m=this.project(de(f))._round();return m._subtract(this.getPixelOrigin())},wrapLatLng:function(f){return this.options.crs.wrapLatLng(de(f))},wrapLatLngBounds:function(f){return this.options.crs.wrapLatLngBounds(le(f))},distance:function(f,m){return this.options.crs.distance(de(f),de(m))},containerPointToLayerPoint:function(f){return G(f).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(f){return G(f).add(this._getMapPanePos())},containerPointToLatLng:function(f){var m=this.containerPointToLayerPoint(G(f));return this.layerPointToLatLng(m)},latLngToContainerPoint:function(f){return this.layerPointToContainerPoint(this.latLngToLayerPoint(de(f)))},mouseEventToContainerPoint:function(f){return jl(f,this._container)},mouseEventToLayerPoint:function(f){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(f))},mouseEventToLatLng:function(f){return this.layerPointToLatLng(this.mouseEventToLayerPoint(f))},_initContainer:function(f){var m=this._container=Jr(f);if(m){if(m._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");ht(m,"scroll",this._onScroll,this),this._containerId=c(m)},_initLayout:function(){var f=this._container;this._fadeAnimated=this.options.fadeAnimation&&rt.any3d,gt(f,"leaflet-container"+(rt.touch?" leaflet-touch":"")+(rt.retina?" leaflet-retina":"")+(rt.ielt9?" leaflet-oldie":"")+(rt.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var m=Sl(f,"position");m!=="absolute"&&m!=="relative"&&m!=="fixed"&&m!=="sticky"&&(f.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var f=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),On(this._mapPane,new oe(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(gt(f.markerPane,"leaflet-zoom-hide"),gt(f.shadowPane,"leaflet-zoom-hide"))},_resetView:function(f,m,S){On(this._mapPane,new oe(0,0));var k=!this._loaded;this._loaded=!0,m=this._limitZoom(m),this.fire("viewprereset");var U=this._zoom!==m;this._moveStart(U,S)._move(f,m)._moveEnd(U),this.fire("viewreset"),k&&this.fire("load")},_moveStart:function(f,m){return f&&this.fire("zoomstart"),m||this.fire("movestart"),this},_move:function(f,m,S,k){m===void 0&&(m=this._zoom);var U=this._zoom!==m;return this._zoom=m,this._lastCenter=f,this._pixelOrigin=this._getNewPixelOrigin(f),k?S&&S.pinch&&this.fire("zoom",S):((U||S&&S.pinch)&&this.fire("zoom",S),this.fire("move",S)),this},_moveEnd:function(f){return f&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return H(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(f){On(this._mapPane,this._getMapPanePos().subtract(f))},_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(f){this._targets={},this._targets[c(this._container)]=this;var m=f?Ut:ht;m(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&m(window,"resize",this._onResize,this),rt.any3d&&this.options.transform3DLimit&&(f?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){H(this._resizeRequest),this._resizeRequest=V(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var f=this._getMapPanePos();Math.max(Math.abs(f.x),Math.abs(f.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(f,m){for(var S=[],k,U=m==="mouseout"||m==="mouseover",te=f.target||f.srcElement,pe=!1;te;){if(k=this._targets[c(te)],k&&(m==="click"||m==="preclick")&&this._draggableMoved(k)){pe=!0;break}if(k&&k.listens(m,!0)&&(U&&!Al(te,f)||(S.push(k),U))||te===this._container)break;te=te.parentNode}return!S.length&&!pe&&!U&&this.listens(m,!0)&&(S=[this]),S},_isClickDisabled:function(f){for(;f&&f!==this._container;){if(f._leaflet_disable_click)return!0;f=f.parentNode}},_handleDOMEvent:function(f){var m=f.target||f.srcElement;if(!(!this._loaded||m._leaflet_disable_events||f.type==="click"&&this._isClickDisabled(m))){var S=f.type;S==="mousedown"&&us(m),this._fireDOMEvent(f,S)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(f,m,S){if(f.type==="click"){var k=i({},f);k.type="preclick",this._fireDOMEvent(k,k.type,S)}var U=this._findEventTargets(f,m);if(S){for(var te=[],pe=0;pe<S.length;pe++)S[pe].listens(m,!0)&&te.push(S[pe]);U=te.concat(U)}if(U.length){m==="contextmenu"&&yn(f);var _e=U[0],Pe={originalEvent:f};if(f.type!=="keypress"&&f.type!=="keydown"&&f.type!=="keyup"){var Re=_e.getLatLng&&(!_e._radius||_e._radius<=10);Pe.containerPoint=Re?this.latLngToContainerPoint(_e.getLatLng()):this.mouseEventToContainerPoint(f),Pe.layerPoint=this.containerPointToLayerPoint(Pe.containerPoint),Pe.latlng=Re?_e.getLatLng():this.layerPointToLatLng(Pe.layerPoint)}for(pe=0;pe<U.length;pe++)if(U[pe].fire(m,Pe,!0),Pe.originalEvent._stopped||U[pe].options.bubblingMouseEvents===!1&&T(this._mouseEvents,m)!==-1)return}},_draggableMoved:function(f){return f=f.dragging&&f.dragging.enabled()?f:this,f.dragging&&f.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var f=0,m=this._handlers.length;f<m;f++)this._handlers[f].disable()},whenReady:function(f,m){return this._loaded?f.call(m||this,{target:this}):this.on("load",f,m),this},_getMapPanePos:function(){return io(this._mapPane)||new oe(0,0)},_moved:function(){var f=this._getMapPanePos();return f&&!f.equals([0,0])},_getTopLeftPoint:function(f,m){var S=f&&m!==void 0?this._getNewPixelOrigin(f,m):this.getPixelOrigin();return S.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(f,m){var S=this.getSize()._divideBy(2);return this.project(f,m)._subtract(S)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(f,m,S){var k=this._getNewPixelOrigin(S,m);return this.project(f,m)._subtract(k)},_latLngBoundsToNewLayerBounds:function(f,m,S){var k=this._getNewPixelOrigin(S,m);return ne([this.project(f.getSouthWest(),m)._subtract(k),this.project(f.getNorthWest(),m)._subtract(k),this.project(f.getSouthEast(),m)._subtract(k),this.project(f.getNorthEast(),m)._subtract(k)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(f){return this.latLngToLayerPoint(f).subtract(this._getCenterLayerPoint())},_limitCenter:function(f,m,S){if(!S)return f;var k=this.project(f,m),U=this.getSize().divideBy(2),te=new z(k.subtract(U),k.add(U)),pe=this._getBoundsOffset(te,S,m);return Math.abs(pe.x)<=1&&Math.abs(pe.y)<=1?f:this.unproject(k.add(pe),m)},_limitOffset:function(f,m){if(!m)return f;var S=this.getPixelBounds(),k=new z(S.min.add(f),S.max.add(f));return f.add(this._getBoundsOffset(k,m))},_getBoundsOffset:function(f,m,S){var k=ne(this.project(m.getNorthEast(),S),this.project(m.getSouthWest(),S)),U=k.min.subtract(f.min),te=k.max.subtract(f.max),pe=this._rebound(U.x,-te.x),_e=this._rebound(U.y,-te.y);return new oe(pe,_e)},_rebound:function(f,m){return f+m>0?Math.round(f-m)/2:Math.max(0,Math.ceil(f))-Math.max(0,Math.floor(m))},_limitZoom:function(f){var m=this.getMinZoom(),S=this.getMaxZoom(),k=rt.any3d?this.options.zoomSnap:1;return k&&(f=Math.round(f/k)*k),Math.max(m,Math.min(S,f))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){Kt(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(f,m){var S=this._getCenterOffset(f)._trunc();return(m&&m.animate)!==!0&&!this.getSize().contains(S)?!1:(this.panBy(S,m),!0)},_createAnimProxy:function(){var f=this._proxy=wt("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(f),this.on("zoomanim",function(m){var S=gd,k=this._proxy.style[S];ei(this._proxy,this.project(m.center,m.zoom),this.getZoomScale(m.zoom,1)),k===this._proxy.style[S]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){tn(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var f=this.getCenter(),m=this.getZoom();ei(this._proxy,this.project(f,m),this.getZoomScale(m,1))},_catchTransitionEnd:function(f){this._animatingZoom&&f.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(f,m,S){if(this._animatingZoom)return!0;if(S=S||{},!this._zoomAnimated||S.animate===!1||this._nothingToAnimate()||Math.abs(m-this._zoom)>this.options.zoomAnimationThreshold)return!1;var k=this.getZoomScale(m),U=this._getCenterOffset(f)._divideBy(1-1/k);return S.animate!==!0&&!this.getSize().contains(U)?!1:(V(function(){this._moveStart(!0,S.noMoveStart||!1)._animateZoom(f,m,!0)},this),!0)},_animateZoom:function(f,m,S,k){this._mapPane&&(S&&(this._animatingZoom=!0,this._animateToCenter=f,this._animateToZoom=m,gt(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:f,zoom:m,noUpdate:k}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(a(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&Kt(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 No(f,m){return new Et(f,m)}var yr=Q.extend({options:{position:"topright"},initialize:function(f){_(this,f)},getPosition:function(){return this.options.position},setPosition:function(f){var m=this._map;return m&&m.removeControl(this),this.options.position=f,m&&m.addControl(this),this},getContainer:function(){return this._container},addTo:function(f){this.remove(),this._map=f;var m=this._container=this.onAdd(f),S=this.getPosition(),k=f._controlCorners[S];return gt(m,"leaflet-control"),S.indexOf("bottom")!==-1?k.insertBefore(m,k.firstChild):k.appendChild(m),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(tn(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(f){this._map&&f&&f.screenX>0&&f.screenY>0&&this._map.getContainer().focus()}}),Mo=function(f){return new yr(f)};Et.include({addControl:function(f){return f.addTo(this),this},removeControl:function(f){return f.remove(),this},_initControlPos:function(){var f=this._controlCorners={},m="leaflet-",S=this._controlContainer=wt("div",m+"control-container",this._container);function k(U,te){var pe=m+U+" "+m+te;f[U+te]=wt("div",pe,S)}k("top","left"),k("top","right"),k("bottom","left"),k("bottom","right")},_clearControlPos:function(){for(var f in this._controlCorners)tn(this._controlCorners[f]);tn(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var xd=yr.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(f,m,S,k){return S<k?-1:k<S?1:0}},initialize:function(f,m,S){_(this,S),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var k in f)this._addLayer(f[k],k);for(k in m)this._addLayer(m[k],k,!0)},onAdd:function(f){this._initLayout(),this._update(),this._map=f,f.on("zoomend",this._checkDisabledLayers,this);for(var m=0;m<this._layers.length;m++)this._layers[m].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(f){return yr.prototype.addTo.call(this,f),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var f=0;f<this._layers.length;f++)this._layers[f].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(f,m){return this._addLayer(f,m),this._map?this._update():this},addOverlay:function(f,m){return this._addLayer(f,m,!0),this._map?this._update():this},removeLayer:function(f){f.off("add remove",this._onLayerChange,this);var m=this._getLayer(c(f));return m&&this._layers.splice(this._layers.indexOf(m),1),this._map?this._update():this},expand:function(){gt(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var f=this._map.getSize().y-(this._container.offsetTop+50);return f<this._section.clientHeight?(gt(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=f+"px"):Kt(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return Kt(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var f="leaflet-control-layers",m=this._container=wt("div",f),S=this.options.collapsed;m.setAttribute("aria-haspopup",!0),Tl(m),Zu(m);var k=this._section=wt("section",f+"-list");S&&(this._map.on("click",this.collapse,this),ht(m,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var U=this._layersLink=wt("a",f+"-toggle",m);U.href="#",U.title="Layers",U.setAttribute("role","button"),ht(U,{keydown:function(te){te.keyCode===13&&this._expandSafely()},click:function(te){yn(te),this._expandSafely()}},this),S||this.expand(),this._baseLayersList=wt("div",f+"-base",k),this._separator=wt("div",f+"-separator",k),this._overlaysList=wt("div",f+"-overlays",k),m.appendChild(k)},_getLayer:function(f){for(var m=0;m<this._layers.length;m++)if(this._layers[m]&&c(this._layers[m].layer)===f)return this._layers[m]},_addLayer:function(f,m,S){this._map&&f.on("add remove",this._onLayerChange,this),this._layers.push({layer:f,name:m,overlay:S}),this.options.sortLayers&&this._layers.sort(a(function(k,U){return this.options.sortFunction(k.layer,U.layer,k.name,U.name)},this)),this.options.autoZIndex&&f.setZIndex&&(this._lastZIndex++,f.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;Wu(this._baseLayersList),Wu(this._overlaysList),this._layerControlInputs=[];var f,m,S,k,U=0;for(S=0;S<this._layers.length;S++)k=this._layers[S],this._addItem(k),m=m||k.overlay,f=f||!k.overlay,U+=k.overlay?0:1;return this.options.hideSingleBase&&(f=f&&U>1,this._baseLayersList.style.display=f?"":"none"),this._separator.style.display=m&&f?"":"none",this},_onLayerChange:function(f){this._handlingClick||this._update();var m=this._getLayer(c(f.target)),S=m.overlay?f.type==="add"?"overlayadd":"overlayremove":f.type==="add"?"baselayerchange":null;S&&this._map.fire(S,m)},_createRadioElement:function(f,m){var S='<input type="radio" class="leaflet-control-layers-selector" name="'+f+'"'+(m?' checked="checked"':"")+"/>",k=document.createElement("div");return k.innerHTML=S,k.firstChild},_addItem:function(f){var m=document.createElement("label"),S=this._map.hasLayer(f.layer),k;f.overlay?(k=document.createElement("input"),k.type="checkbox",k.className="leaflet-control-layers-selector",k.defaultChecked=S):k=this._createRadioElement("leaflet-base-layers_"+c(this),S),this._layerControlInputs.push(k),k.layerId=c(f.layer),ht(k,"click",this._onInputClick,this);var U=document.createElement("span");U.innerHTML=" "+f.name;var te=document.createElement("span");m.appendChild(te),te.appendChild(k),te.appendChild(U);var pe=f.overlay?this._overlaysList:this._baseLayersList;return pe.appendChild(m),this._checkDisabledLayers(),m},_onInputClick:function(){if(!this._preventClick){var f=this._layerControlInputs,m,S,k=[],U=[];this._handlingClick=!0;for(var te=f.length-1;te>=0;te--)m=f[te],S=this._getLayer(m.layerId).layer,m.checked?k.push(S):m.checked||U.push(S);for(te=0;te<U.length;te++)this._map.hasLayer(U[te])&&this._map.removeLayer(U[te]);for(te=0;te<k.length;te++)this._map.hasLayer(k[te])||this._map.addLayer(k[te]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var f=this._layerControlInputs,m,S,k=this._map.getZoom(),U=f.length-1;U>=0;U--)m=f[U],S=this._getLayer(m.layerId).layer,m.disabled=S.options.minZoom!==void 0&&k<S.options.minZoom||S.options.maxZoom!==void 0&&k>S.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var f=this._section;this._preventClick=!0,ht(f,"click",yn),this.expand();var m=this;setTimeout(function(){Ut(f,"click",yn),m._preventClick=!1})}}),Ju=function(f,m,S){return new xd(f,m,S)},cs=yr.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(f){var m="leaflet-control-zoom",S=wt("div",m+" leaflet-bar"),k=this.options;return this._zoomInButton=this._createButton(k.zoomInText,k.zoomInTitle,m+"-in",S,this._zoomIn),this._zoomOutButton=this._createButton(k.zoomOutText,k.zoomOutTitle,m+"-out",S,this._zoomOut),this._updateDisabled(),f.on("zoomend zoomlevelschange",this._updateDisabled,this),S},onRemove:function(f){f.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(f){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(f.shiftKey?3:1))},_zoomOut:function(f){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(f.shiftKey?3:1))},_createButton:function(f,m,S,k,U){var te=wt("a",S,k);return te.innerHTML=f,te.href="#",te.title=m,te.setAttribute("role","button"),te.setAttribute("aria-label",m),Tl(te),ht(te,"click",ni),ht(te,"click",U,this),ht(te,"click",this._refocusOnMap,this),te},_updateDisabled:function(){var f=this._map,m="leaflet-disabled";Kt(this._zoomInButton,m),Kt(this._zoomOutButton,m),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||f._zoom===f.getMinZoom())&&(gt(this._zoomOutButton,m),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||f._zoom===f.getMaxZoom())&&(gt(this._zoomInButton,m),this._zoomInButton.setAttribute("aria-disabled","true"))}});Et.mergeOptions({zoomControl:!0}),Et.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new cs,this.addControl(this.zoomControl))});var Am=function(f){return new cs(f)},ur=yr.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(f){var m="leaflet-control-scale",S=wt("div",m),k=this.options;return this._addScales(k,m+"-line",S),f.on(k.updateWhenIdle?"moveend":"move",this._update,this),f.whenReady(this._update,this),S},onRemove:function(f){f.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(f,m,S){f.metric&&(this._mScale=wt("div",m,S)),f.imperial&&(this._iScale=wt("div",m,S))},_update:function(){var f=this._map,m=f.getSize().y/2,S=f.distance(f.containerPointToLatLng([0,m]),f.containerPointToLatLng([this.options.maxWidth,m]));this._updateScales(S)},_updateScales:function(f){this.options.metric&&f&&this._updateMetric(f),this.options.imperial&&f&&this._updateImperial(f)},_updateMetric:function(f){var m=this._getRoundNum(f),S=m<1e3?m+" m":m/1e3+" km";this._updateScale(this._mScale,S,m/f)},_updateImperial:function(f){var m=f*3.2808399,S,k,U;m>5280?(S=m/5280,k=this._getRoundNum(S),this._updateScale(this._iScale,k+" mi",k/S)):(U=this._getRoundNum(m),this._updateScale(this._iScale,U+" ft",U/m))},_updateScale:function(f,m,S){f.style.width=Math.round(this.options.maxWidth*S)+"px",f.innerHTML=m},_getRoundNum:function(f){var m=Math.pow(10,(Math.floor(f)+"").length-1),S=f/m;return S=S>=10?10:S>=5?5:S>=3?3:S>=2?2:1,m*S}}),fs=function(f){return new ur(f)},wd='<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>',pa=yr.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(rt.inlineSvg?wd+" ":"")+"Leaflet</a>"},initialize:function(f){_(this,f),this._attributions={}},onAdd:function(f){f.attributionControl=this,this._container=wt("div","leaflet-control-attribution"),Tl(this._container);for(var m in f._layers)f._layers[m].getAttribution&&this.addAttribution(f._layers[m].getAttribution());return this._update(),f.on("layeradd",this._addAttribution,this),this._container},onRemove:function(f){f.off("layeradd",this._addAttribution,this)},_addAttribution:function(f){f.layer.getAttribution&&(this.addAttribution(f.layer.getAttribution()),f.layer.once("remove",function(){this.removeAttribution(f.layer.getAttribution())},this))},setPrefix:function(f){return this.options.prefix=f,this._update(),this},addAttribution:function(f){return f?(this._attributions[f]||(this._attributions[f]=0),this._attributions[f]++,this._update(),this):this},removeAttribution:function(f){return f?(this._attributions[f]&&(this._attributions[f]--,this._update()),this):this},_update:function(){if(this._map){var f=[];for(var m in this._attributions)this._attributions[m]&&f.push(m);var S=[];this.options.prefix&&S.push(this.options.prefix),f.length&&S.push(f.join(", ")),this._container.innerHTML=S.join(' <span aria-hidden="true">|</span> ')}}});Et.mergeOptions({attributionControl:!0}),Et.addInitHook(function(){this.options.attributionControl&&new pa().addTo(this)});var Bb=function(f){return new pa(f)};yr.Layers=xd,yr.Zoom=cs,yr.Scale=ur,yr.Attribution=pa,Mo.layers=Ju,Mo.zoom=Am,Mo.scale=fs,Mo.attribution=Bb;var Lr=Q.extend({initialize:function(f){this._map=f},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}});Lr.addTo=function(f,m){return f.addHandler(m,this),this};var Od={Events:ae},ds=rt.touch?"touchstart mousedown":"mousedown",ri=se.extend({options:{clickTolerance:3},initialize:function(f,m,S,k){_(this,k),this._element=f,this._dragStartTarget=m||f,this._preventOutline=S},enable:function(){this._enabled||(ht(this._dragStartTarget,ds,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(ri._dragging===this&&this.finishDrag(!0),Ut(this._dragStartTarget,ds,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(f){if(this._enabled&&(this._moved=!1,!as(this._element,"leaflet-zoom-anim"))){if(f.touches&&f.touches.length!==1){ri._dragging===this&&this.finishDrag();return}if(!(ri._dragging||f.shiftKey||f.which!==1&&f.button!==1&&!f.touches)&&(ri._dragging=this,this._preventOutline&&us(this._element),Gu(),kt(),!this._moving)){this.fire("down");var m=f.touches?f.touches[0]:f,S=oo(this._element);this._startPoint=new oe(m.clientX,m.clientY),this._startPos=io(this._element),this._parentScale=Pi(S);var k=f.type==="mousedown";ht(document,k?"mousemove":"touchmove",this._onMove,this),ht(document,k?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(f){if(this._enabled){if(f.touches&&f.touches.length>1){this._moved=!0;return}var m=f.touches&&f.touches.length===1?f.touches[0]:f,S=new oe(m.clientX,m.clientY)._subtract(this._startPoint);!S.x&&!S.y||Math.abs(S.x)+Math.abs(S.y)<this.options.clickTolerance||(S.x/=this._parentScale.x,S.y/=this._parentScale.y,yn(f),this._moved||(this.fire("dragstart"),this._moved=!0,gt(document.body,"leaflet-dragging"),this._lastTarget=f.target||f.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),gt(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(S),this._moving=!0,this._lastEvent=f,this._updatePosition())}},_updatePosition:function(){var f={originalEvent:this._lastEvent};this.fire("predrag",f),On(this._element,this._newPos),this.fire("drag",f)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(f){Kt(document.body,"leaflet-dragging"),this._lastTarget&&(Kt(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),Ut(document,"mousemove touchmove",this._onMove,this),Ut(document,"mouseup touchend touchcancel",this._onUp,this),Ku(),ls();var m=this._moved&&this._moving;this._moving=!1,ri._dragging=!1,m&&this.fire("dragend",{noInertia:f,distance:this._newPos.distanceTo(this._startPos)})}});function Sd(f,m,S){var k,U=[1,4,2,8],te,pe,_e,Pe,Re,Ze,st,St;for(te=0,Ze=f.length;te<Ze;te++)f[te]._code=ma(f[te],m);for(_e=0;_e<4;_e++){for(st=U[_e],k=[],te=0,Ze=f.length,pe=Ze-1;te<Ze;pe=te++)Pe=f[te],Re=f[pe],Pe._code&st?Re._code&st||(St=tc(Re,Pe,st,m,S),St._code=ma(St,m),k.push(St)):(Re._code&st&&(St=tc(Re,Pe,st,m,S),St._code=ma(St,m),k.push(St)),k.push(Pe));f=k}return f}function km(f,m){var S,k,U,te,pe,_e,Pe,Re,Ze;if(!f||f.length===0)throw new Error("latlngs not passed");Ir(f)||(console.warn("latlngs are not flat! Only the first ring will be used"),f=f[0]);var st=de([0,0]),St=le(f),Bn=St.getNorthWest().distanceTo(St.getSouthWest())*St.getNorthEast().distanceTo(St.getNorthWest());Bn<1700&&(st=Pd(f));var Nn=f.length,_r=[];for(S=0;S<Nn;S++){var cr=de(f[S]);_r.push(m.project(de([cr.lat-st.lat,cr.lng-st.lng])))}for(_e=Pe=Re=0,S=0,k=Nn-1;S<Nn;k=S++)U=_r[S],te=_r[k],pe=U.y*te.x-te.y*U.x,Pe+=(U.x+te.x)*pe,Re+=(U.y+te.y)*pe,_e+=pe*3;_e===0?Ze=_r[0]:Ze=[Pe/_e,Re/_e];var ws=m.unproject(G(Ze));return de([ws.lat+st.lat,ws.lng+st.lng])}function Pd(f){for(var m=0,S=0,k=0,U=0;U<f.length;U++){var te=de(f[U]);m+=te.lat,S+=te.lng,k++}return de([m/k,S/k])}var Ub={__proto__:null,clipPolygon:Sd,polygonCenter:km,centroid:Pd};function ec(f,m){if(!m||!f.length)return f.slice();var S=m*m;return f=Wb(f,S),f=Vb(f,S),f}function Rm(f,m,S){return Math.sqrt(va(f,m,S,!0))}function zb(f,m,S){return va(f,m,S)}function Vb(f,m){var S=f.length,k=typeof Uint8Array<"u"?Uint8Array:Array,U=new k(S);U[0]=U[S-1]=1,Cd(f,U,m,0,S-1);var te,pe=[];for(te=0;te<S;te++)U[te]&&pe.push(f[te]);return pe}function Cd(f,m,S,k,U){var te=0,pe,_e,Pe;for(_e=k+1;_e<=U-1;_e++)Pe=va(f[_e],f[k],f[U],!0),Pe>te&&(pe=_e,te=Pe);te>S&&(m[pe]=1,Cd(f,m,S,k,pe),Cd(f,m,S,pe,U))}function Wb(f,m){for(var S=[f[0]],k=1,U=0,te=f.length;k<te;k++)qb(f[k],f[U])>m&&(S.push(f[k]),U=k);return U<te-1&&S.push(f[te-1]),S}var Ed;function Nm(f,m,S,k,U){var te=k?Ed:ma(f,S),pe=ma(m,S),_e,Pe,Re;for(Ed=pe;;){if(!(te|pe))return[f,m];if(te&pe)return!1;_e=te||pe,Pe=tc(f,m,_e,S,U),Re=ma(Pe,S),_e===te?(f=Pe,te=Re):(m=Pe,pe=Re)}}function tc(f,m,S,k,U){var te=m.x-f.x,pe=m.y-f.y,_e=k.min,Pe=k.max,Re,Ze;return S&8?(Re=f.x+te*(Pe.y-f.y)/pe,Ze=Pe.y):S&4?(Re=f.x+te*(_e.y-f.y)/pe,Ze=_e.y):S&2?(Re=Pe.x,Ze=f.y+pe*(Pe.x-f.x)/te):S&1&&(Re=_e.x,Ze=f.y+pe*(_e.x-f.x)/te),new oe(Re,Ze,U)}function ma(f,m){var S=0;return f.x<m.min.x?S|=1:f.x>m.max.x&&(S|=2),f.y<m.min.y?S|=4:f.y>m.max.y&&(S|=8),S}function qb(f,m){var S=m.x-f.x,k=m.y-f.y;return S*S+k*k}function va(f,m,S,k){var U=m.x,te=m.y,pe=S.x-U,_e=S.y-te,Pe=pe*pe+_e*_e,Re;return Pe>0&&(Re=((f.x-U)*pe+(f.y-te)*_e)/Pe,Re>1?(U=S.x,te=S.y):Re>0&&(U+=pe*Re,te+=_e*Re)),pe=f.x-U,_e=f.y-te,k?pe*pe+_e*_e:new oe(U,te)}function Ir(f){return!E(f[0])||typeof f[0][0]!="object"&&typeof f[0][0]<"u"}function Mm(f){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Ir(f)}function Lm(f,m){var S,k,U,te,pe,_e,Pe,Re;if(!f||f.length===0)throw new Error("latlngs not passed");Ir(f)||(console.warn("latlngs are not flat! Only the first ring will be used"),f=f[0]);var Ze=de([0,0]),st=le(f),St=st.getNorthWest().distanceTo(st.getSouthWest())*st.getNorthEast().distanceTo(st.getNorthWest());St<1700&&(Ze=Pd(f));var Bn=f.length,Nn=[];for(S=0;S<Bn;S++){var _r=de(f[S]);Nn.push(m.project(de([_r.lat-Ze.lat,_r.lng-Ze.lng])))}for(S=0,k=0;S<Bn-1;S++)k+=Nn[S].distanceTo(Nn[S+1])/2;if(k===0)Re=Nn[0];else for(S=0,te=0;S<Bn-1;S++)if(pe=Nn[S],_e=Nn[S+1],U=pe.distanceTo(_e),te+=U,te>k){Pe=(te-k)/U,Re=[_e.x-Pe*(_e.x-pe.x),_e.y-Pe*(_e.y-pe.y)];break}var cr=m.unproject(G(Re));return de([cr.lat+Ze.lat,cr.lng+Ze.lng])}var Im={__proto__:null,simplify:ec,pointToSegmentDistance:Rm,closestPointOnSegment:zb,clipSegment:Nm,_getEdgeIntersection:tc,_getBitCode:ma,_sqClosestPointOnSegment:va,isFlat:Ir,_flat:Mm,polylineCenter:Lm},Td={project:function(f){return new oe(f.lng,f.lat)},unproject:function(f){return new ce(f.y,f.x)},bounds:new z([-180,-90],[180,90])},jd={R:6378137,R_MINOR:6356752314245179e-9,bounds:new z([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(f){var m=Math.PI/180,S=this.R,k=f.lat*m,U=this.R_MINOR/S,te=Math.sqrt(1-U*U),pe=te*Math.sin(k),_e=Math.tan(Math.PI/4-k/2)/Math.pow((1-pe)/(1+pe),te/2);return k=-S*Math.log(Math.max(_e,1e-10)),new oe(f.lng*m*S,k)},unproject:function(f){for(var m=180/Math.PI,S=this.R,k=this.R_MINOR/S,U=Math.sqrt(1-k*k),te=Math.exp(-f.y/S),pe=Math.PI/2-2*Math.atan(te),_e=0,Pe=.1,Re;_e<15&&Math.abs(Pe)>1e-7;_e++)Re=U*Math.sin(pe),Re=Math.pow((1-Re)/(1+Re),U/2),Pe=Math.PI/2-2*Math.atan(te*Re)-pe,pe+=Pe;return new ce(pe*m,f.x*m/S)}},Hb={__proto__:null,LonLat:Td,Mercator:jd,SphericalMercator:Y},Gb=i({},M,{code:"EPSG:3395",projection:jd,transformation:function(){var f=.5/(Math.PI*jd.R);return ie(f,.5,-f,.5)}()}),Dm=i({},M,{code:"EPSG:4326",projection:Td,transformation:ie(1/180,1,-1/180,.5)}),Kb=i({},be,{projection:Td,transformation:ie(1,0,-1,0),scale:function(f){return Math.pow(2,f)},zoom:function(f){return Math.log(f)/Math.LN2},distance:function(f,m){var S=m.lng-f.lng,k=m.lat-f.lat;return Math.sqrt(S*S+k*k)},infinite:!0});be.Earth=M,be.EPSG3395=Gb,be.EPSG3857=he,be.EPSG900913=Se,be.EPSG4326=Dm,be.Simple=Kb;var ii=se.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(f){return f.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(f){return f&&f.removeLayer(this),this},getPane:function(f){return this._map.getPane(f?this.options[f]||f:this.options.pane)},addInteractiveTarget:function(f){return this._map._targets[c(f)]=this,this},removeInteractiveTarget:function(f){return delete this._map._targets[c(f)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(f){var m=f.target;if(m.hasLayer(this)){if(this._map=m,this._zoomAnimated=m._zoomAnimated,this.getEvents){var S=this.getEvents();m.on(S,this),this.once("remove",function(){m.off(S,this)},this)}this.onAdd(m),this.fire("add"),m.fire("layeradd",{layer:this})}}});Et.include({addLayer:function(f){if(!f._layerAdd)throw new Error("The provided object is not a Layer.");var m=c(f);return this._layers[m]?this:(this._layers[m]=f,f._mapToAdd=this,f.beforeAdd&&f.beforeAdd(this),this.whenReady(f._layerAdd,f),this)},removeLayer:function(f){var m=c(f);return this._layers[m]?(this._loaded&&f.onRemove(this),delete this._layers[m],this._loaded&&(this.fire("layerremove",{layer:f}),f.fire("remove")),f._map=f._mapToAdd=null,this):this},hasLayer:function(f){return c(f)in this._layers},eachLayer:function(f,m){for(var S in this._layers)f.call(m,this._layers[S]);return this},_addLayers:function(f){f=f?E(f)?f:[f]:[];for(var m=0,S=f.length;m<S;m++)this.addLayer(f[m])},_addZoomLimit:function(f){(!isNaN(f.options.maxZoom)||!isNaN(f.options.minZoom))&&(this._zoomBoundLayers[c(f)]=f,this._updateZoomLevels())},_removeZoomLimit:function(f){var m=c(f);this._zoomBoundLayers[m]&&(delete this._zoomBoundLayers[m],this._updateZoomLevels())},_updateZoomLevels:function(){var f=1/0,m=-1/0,S=this._getZoomSpan();for(var k in this._zoomBoundLayers){var U=this._zoomBoundLayers[k].options;f=U.minZoom===void 0?f:Math.min(f,U.minZoom),m=U.maxZoom===void 0?m:Math.max(m,U.maxZoom)}this._layersMaxZoom=m===-1/0?void 0:m,this._layersMinZoom=f===1/0?void 0:f,S!==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 Lo=ii.extend({initialize:function(f,m){_(this,m),this._layers={};var S,k;if(f)for(S=0,k=f.length;S<k;S++)this.addLayer(f[S])},addLayer:function(f){var m=this.getLayerId(f);return this._layers[m]=f,this._map&&this._map.addLayer(f),this},removeLayer:function(f){var m=f in this._layers?f:this.getLayerId(f);return this._map&&this._layers[m]&&this._map.removeLayer(this._layers[m]),delete this._layers[m],this},hasLayer:function(f){var m=typeof f=="number"?f:this.getLayerId(f);return m in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(f){var m=Array.prototype.slice.call(arguments,1),S,k;for(S in this._layers)k=this._layers[S],k[f]&&k[f].apply(k,m);return this},onAdd:function(f){this.eachLayer(f.addLayer,f)},onRemove:function(f){this.eachLayer(f.removeLayer,f)},eachLayer:function(f,m){for(var S in this._layers)f.call(m,this._layers[S]);return this},getLayer:function(f){return this._layers[f]},getLayers:function(){var f=[];return this.eachLayer(f.push,f),f},setZIndex:function(f){return this.invoke("setZIndex",f)},getLayerId:function(f){return c(f)}}),kl=function(f,m){return new Lo(f,m)},ao=Lo.extend({addLayer:function(f){return this.hasLayer(f)?this:(f.addEventParent(this),Lo.prototype.addLayer.call(this,f),this.fire("layeradd",{layer:f}))},removeLayer:function(f){return this.hasLayer(f)?(f in this._layers&&(f=this._layers[f]),f.removeEventParent(this),Lo.prototype.removeLayer.call(this,f),this.fire("layerremove",{layer:f})):this},setStyle:function(f){return this.invoke("setStyle",f)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var f=new X;for(var m in this._layers){var S=this._layers[m];f.extend(S.getBounds?S.getBounds():S.getLatLng())}return f}}),$m=function(f,m){return new ao(f,m)},ga=Q.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(f){_(this,f)},createIcon:function(f){return this._createIcon("icon",f)},createShadow:function(f){return this._createIcon("shadow",f)},_createIcon:function(f,m){var S=this._getIconUrl(f);if(!S){if(f==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var k=this._createImg(S,m&&m.tagName==="IMG"?m:null);return this._setIconStyles(k,f),(this.options.crossOrigin||this.options.crossOrigin==="")&&(k.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),k},_setIconStyles:function(f,m){var S=this.options,k=S[m+"Size"];typeof k=="number"&&(k=[k,k]);var U=G(k),te=G(m==="shadow"&&S.shadowAnchor||S.iconAnchor||U&&U.divideBy(2,!0));f.className="leaflet-marker-"+m+" "+(S.className||""),te&&(f.style.marginLeft=-te.x+"px",f.style.marginTop=-te.y+"px"),U&&(f.style.width=U.x+"px",f.style.height=U.y+"px")},_createImg:function(f,m){return m=m||document.createElement("img"),m.src=f,m},_getIconUrl:function(f){return rt.retina&&this.options[f+"RetinaUrl"]||this.options[f+"Url"]}});function Fm(f){return new ga(f)}var hs=ga.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(f){return typeof hs.imagePath!="string"&&(hs.imagePath=this._detectIconPath()),(this.options.imagePath||hs.imagePath)+ga.prototype._getIconUrl.call(this,f)},_stripUrl:function(f){var m=function(S,k,U){var te=k.exec(S);return te&&te[U]};return f=m(f,/^url\((['"])?(.+)\1\)$/,2),f&&m(f,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var f=wt("div","leaflet-default-icon-path",document.body),m=Sl(f,"background-image")||Sl(f,"backgroundImage");if(document.body.removeChild(f),m=this._stripUrl(m),m)return m;var S=document.querySelector('link[href$="leaflet.css"]');return S?S.href.substring(0,S.href.length-11-1):""}}),Ad=Lr.extend({initialize:function(f){this._marker=f},addHooks:function(){var f=this._marker._icon;this._draggable||(this._draggable=new ri(f,f,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),gt(f,"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&&Kt(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(f){var m=this._marker,S=m._map,k=this._marker.options.autoPanSpeed,U=this._marker.options.autoPanPadding,te=io(m._icon),pe=S.getPixelBounds(),_e=S.getPixelOrigin(),Pe=ne(pe.min._subtract(_e).add(U),pe.max._subtract(_e).subtract(U));if(!Pe.contains(te)){var Re=G((Math.max(Pe.max.x,te.x)-Pe.max.x)/(pe.max.x-Pe.max.x)-(Math.min(Pe.min.x,te.x)-Pe.min.x)/(pe.min.x-Pe.min.x),(Math.max(Pe.max.y,te.y)-Pe.max.y)/(pe.max.y-Pe.max.y)-(Math.min(Pe.min.y,te.y)-Pe.min.y)/(pe.min.y-Pe.min.y)).multiplyBy(k);S.panBy(Re,{animate:!1}),this._draggable._newPos._add(Re),this._draggable._startPos._add(Re),On(m._icon,this._draggable._newPos),this._onDrag(f),this._panRequest=V(this._adjustPan.bind(this,f))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(f){this._marker.options.autoPan&&(H(this._panRequest),this._panRequest=V(this._adjustPan.bind(this,f)))},_onDrag:function(f){var m=this._marker,S=m._shadow,k=io(m._icon),U=m._map.layerPointToLatLng(k);S&&On(S,k),m._latlng=U,f.latlng=U,f.oldLatLng=this._oldLatLng,m.fire("move",f).fire("drag",f)},_onDragEnd:function(f){H(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",f)}}),so=ii.extend({options:{icon:new hs,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(f,m){_(this,m),this._latlng=de(f)},onAdd:function(f){this._zoomAnimated=this._zoomAnimated&&f.options.markerZoomAnimation,this._zoomAnimated&&f.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(f){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&f.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(f){var m=this._latlng;return this._latlng=de(f),this.update(),this.fire("move",{oldLatLng:m,latlng:this._latlng})},setZIndexOffset:function(f){return this.options.zIndexOffset=f,this.update()},getIcon:function(){return this.options.icon},setIcon:function(f){return this.options.icon=f,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 f=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(f)}return this},_initIcon:function(){var f=this.options,m="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),S=f.icon.createIcon(this._icon),k=!1;S!==this._icon&&(this._icon&&this._removeIcon(),k=!0,f.title&&(S.title=f.title),S.tagName==="IMG"&&(S.alt=f.alt||"")),gt(S,m),f.keyboard&&(S.tabIndex="0",S.setAttribute("role","button")),this._icon=S,f.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&ht(S,"focus",this._panOnFocus,this);var U=f.icon.createShadow(this._shadow),te=!1;U!==this._shadow&&(this._removeShadow(),te=!0),U&&(gt(U,m),U.alt=""),this._shadow=U,f.opacity<1&&this._updateOpacity(),k&&this.getPane().appendChild(this._icon),this._initInteraction(),U&&te&&this.getPane(f.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Ut(this._icon,"focus",this._panOnFocus,this),tn(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&tn(this._shadow),this._shadow=null},_setPos:function(f){this._icon&&On(this._icon,f),this._shadow&&On(this._shadow,f),this._zIndex=f.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(f){this._icon&&(this._icon.style.zIndex=this._zIndex+f)},_animateZoom:function(f){var m=this._map._latLngToNewLayerPoint(this._latlng,f.zoom,f.center).round();this._setPos(m)},_initInteraction:function(){if(this.options.interactive&&(gt(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Ad)){var f=this.options.draggable;this.dragging&&(f=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Ad(this),f&&this.dragging.enable()}},setOpacity:function(f){return this.options.opacity=f,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var f=this.options.opacity;this._icon&&lr(this._icon,f),this._shadow&&lr(this._shadow,f)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var f=this._map;if(f){var m=this.options.icon.options,S=m.iconSize?G(m.iconSize):G(0,0),k=m.iconAnchor?G(m.iconAnchor):G(0,0);f.panInside(this._latlng,{paddingTopLeft:k,paddingBottomRight:S.subtract(k)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function Yb(f,m){return new so(f,m)}var Io=ii.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(f){this._renderer=f.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(f){return _(this,f),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&f&&Object.prototype.hasOwnProperty.call(f,"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)}}),nc=Io.extend({options:{fill:!0,radius:10},initialize:function(f,m){_(this,m),this._latlng=de(f),this._radius=this.options.radius},setLatLng:function(f){var m=this._latlng;return this._latlng=de(f),this.redraw(),this.fire("move",{oldLatLng:m,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(f){return this.options.radius=this._radius=f,this.redraw()},getRadius:function(){return this._radius},setStyle:function(f){var m=f&&f.radius||this._radius;return Io.prototype.setStyle.call(this,f),this.setRadius(m),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var f=this._radius,m=this._radiusY||f,S=this._clickTolerance(),k=[f+S,m+S];this._pxBounds=new z(this._point.subtract(k),this._point.add(k))},_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(f){return f.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function Bm(f,m){return new nc(f,m)}var rc=nc.extend({initialize:function(f,m,S){if(typeof m=="number"&&(m=i({},S,{radius:m})),_(this,m),this._latlng=de(f),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(f){return this._mRadius=f,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var f=[this._radius,this._radiusY||this._radius];return new X(this._map.layerPointToLatLng(this._point.subtract(f)),this._map.layerPointToLatLng(this._point.add(f)))},setStyle:Io.prototype.setStyle,_project:function(){var f=this._latlng.lng,m=this._latlng.lat,S=this._map,k=S.options.crs;if(k.distance===M.distance){var U=Math.PI/180,te=this._mRadius/M.R/U,pe=S.project([m+te,f]),_e=S.project([m-te,f]),Pe=pe.add(_e).divideBy(2),Re=S.unproject(Pe).lat,Ze=Math.acos((Math.cos(te*U)-Math.sin(m*U)*Math.sin(Re*U))/(Math.cos(m*U)*Math.cos(Re*U)))/U;(isNaN(Ze)||Ze===0)&&(Ze=te/Math.cos(Math.PI/180*m)),this._point=Pe.subtract(S.getPixelOrigin()),this._radius=isNaN(Ze)?0:Pe.x-S.project([Re,f-Ze]).x,this._radiusY=Pe.y-pe.y}else{var st=k.unproject(k.project(this._latlng).subtract([this._mRadius,0]));this._point=S.latLngToLayerPoint(this._latlng),this._radius=this._point.x-S.latLngToLayerPoint(st).x}this._updateBounds()}});function Rl(f,m,S){return new rc(f,m,S)}var br=Io.extend({options:{smoothFactor:1,noClip:!1},initialize:function(f,m){_(this,m),this._setLatLngs(f)},getLatLngs:function(){return this._latlngs},setLatLngs:function(f){return this._setLatLngs(f),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(f){for(var m=1/0,S=null,k=va,U,te,pe=0,_e=this._parts.length;pe<_e;pe++)for(var Pe=this._parts[pe],Re=1,Ze=Pe.length;Re<Ze;Re++){U=Pe[Re-1],te=Pe[Re];var st=k(f,U,te,!0);st<m&&(m=st,S=k(f,U,te))}return S&&(S.distance=Math.sqrt(m)),S},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Lm(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(f,m){return m=m||this._defaultShape(),f=de(f),m.push(f),this._bounds.extend(f),this.redraw()},_setLatLngs:function(f){this._bounds=new X,this._latlngs=this._convertLatLngs(f)},_defaultShape:function(){return Ir(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(f){for(var m=[],S=Ir(f),k=0,U=f.length;k<U;k++)S?(m[k]=de(f[k]),this._bounds.extend(m[k])):m[k]=this._convertLatLngs(f[k]);return m},_project:function(){var f=new z;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,f),this._bounds.isValid()&&f.isValid()&&(this._rawPxBounds=f,this._updateBounds())},_updateBounds:function(){var f=this._clickTolerance(),m=new oe(f,f);this._rawPxBounds&&(this._pxBounds=new z([this._rawPxBounds.min.subtract(m),this._rawPxBounds.max.add(m)]))},_projectLatlngs:function(f,m,S){var k=f[0]instanceof ce,U=f.length,te,pe;if(k){for(pe=[],te=0;te<U;te++)pe[te]=this._map.latLngToLayerPoint(f[te]),S.extend(pe[te]);m.push(pe)}else for(te=0;te<U;te++)this._projectLatlngs(f[te],m,S)},_clipPoints:function(){var f=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(f))){if(this.options.noClip){this._parts=this._rings;return}var m=this._parts,S,k,U,te,pe,_e,Pe;for(S=0,U=0,te=this._rings.length;S<te;S++)for(Pe=this._rings[S],k=0,pe=Pe.length;k<pe-1;k++)_e=Nm(Pe[k],Pe[k+1],f,k,!0),_e&&(m[U]=m[U]||[],m[U].push(_e[0]),(_e[1]!==Pe[k+1]||k===pe-2)&&(m[U].push(_e[1]),U++))}},_simplifyPoints:function(){for(var f=this._parts,m=this.options.smoothFactor,S=0,k=f.length;S<k;S++)f[S]=ec(f[S],m)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(f,m){var S,k,U,te,pe,_e,Pe=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(f))return!1;for(S=0,te=this._parts.length;S<te;S++)for(_e=this._parts[S],k=0,pe=_e.length,U=pe-1;k<pe;U=k++)if(!(!m&&k===0)&&Rm(f,_e[U],_e[k])<=Pe)return!0;return!1}});function Zb(f,m){return new br(f,m)}br._flat=Mm;var lo=br.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 km(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(f){var m=br.prototype._convertLatLngs.call(this,f),S=m.length;return S>=2&&m[0]instanceof ce&&m[0].equals(m[S-1])&&m.pop(),m},_setLatLngs:function(f){br.prototype._setLatLngs.call(this,f),Ir(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Ir(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var f=this._renderer._bounds,m=this.options.weight,S=new oe(m,m);if(f=new z(f.min.subtract(S),f.max.add(S)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(f))){if(this.options.noClip){this._parts=this._rings;return}for(var k=0,U=this._rings.length,te;k<U;k++)te=Sd(this._rings[k],f,!0),te.length&&this._parts.push(te)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(f){var m=!1,S,k,U,te,pe,_e,Pe,Re;if(!this._pxBounds||!this._pxBounds.contains(f))return!1;for(te=0,Pe=this._parts.length;te<Pe;te++)for(S=this._parts[te],pe=0,Re=S.length,_e=Re-1;pe<Re;_e=pe++)k=S[pe],U=S[_e],k.y>f.y!=U.y>f.y&&f.x<(U.x-k.x)*(f.y-k.y)/(U.y-k.y)+k.x&&(m=!m);return m||br.prototype._containsPoint.call(this,f,!0)}});function Xb(f,m){return new lo(f,m)}var Ei=ao.extend({initialize:function(f,m){_(this,m),this._layers={},f&&this.addData(f)},addData:function(f){var m=E(f)?f:f.features,S,k,U;if(m){for(S=0,k=m.length;S<k;S++)U=m[S],(U.geometries||U.geometry||U.features||U.coordinates)&&this.addData(U);return this}var te=this.options;if(te.filter&&!te.filter(f))return this;var pe=ps(f,te);return pe?(pe.feature=lc(f),pe.defaultOptions=pe.options,this.resetStyle(pe),te.onEachFeature&&te.onEachFeature(f,pe),this.addLayer(pe)):this},resetStyle:function(f){return f===void 0?this.eachLayer(this.resetStyle,this):(f.options=i({},f.defaultOptions),this._setLayerStyle(f,this.options.style),this)},setStyle:function(f){return this.eachLayer(function(m){this._setLayerStyle(m,f)},this)},_setLayerStyle:function(f,m){f.setStyle&&(typeof m=="function"&&(m=m(f.feature)),f.setStyle(m))}});function ps(f,m){var S=f.type==="Feature"?f.geometry:f,k=S?S.coordinates:null,U=[],te=m&&m.pointToLayer,pe=m&&m.coordsToLatLng||oc,_e,Pe,Re,Ze;if(!k&&!S)return null;switch(S.type){case"Point":return _e=pe(k),ic(te,f,_e,m);case"MultiPoint":for(Re=0,Ze=k.length;Re<Ze;Re++)_e=pe(k[Re]),U.push(ic(te,f,_e,m));return new ao(U);case"LineString":case"MultiLineString":return Pe=Nl(k,S.type==="LineString"?0:1,pe),new br(Pe,m);case"Polygon":case"MultiPolygon":return Pe=Nl(k,S.type==="Polygon"?1:2,pe),new lo(Pe,m);case"GeometryCollection":for(Re=0,Ze=S.geometries.length;Re<Ze;Re++){var st=ps({geometry:S.geometries[Re],type:"Feature",properties:f.properties},m);st&&U.push(st)}return new ao(U);case"FeatureCollection":for(Re=0,Ze=S.features.length;Re<Ze;Re++){var St=ps(S.features[Re],m);St&&U.push(St)}return new ao(U);default:throw new Error("Invalid GeoJSON object.")}}function ic(f,m,S,k){return f?f(m,S):new so(S,k&&k.markersInheritOptions&&k)}function oc(f){return new ce(f[1],f[0],f[2])}function Nl(f,m,S){for(var k=[],U=0,te=f.length,pe;U<te;U++)pe=m?Nl(f[U],m-1,S):(S||oc)(f[U]),k.push(pe);return k}function ac(f,m){return f=de(f),f.alt!==void 0?[v(f.lng,m),v(f.lat,m),v(f.alt,m)]:[v(f.lng,m),v(f.lat,m)]}function sc(f,m,S,k){for(var U=[],te=0,pe=f.length;te<pe;te++)U.push(m?sc(f[te],Ir(f[te])?0:m-1,S,k):ac(f[te],k));return!m&&S&&U.length>0&&U.push(U[0].slice()),U}function ms(f,m){return f.feature?i({},f.feature,{geometry:m}):lc(m)}function lc(f){return f.type==="Feature"||f.type==="FeatureCollection"?f:{type:"Feature",properties:{},geometry:f}}var kd={toGeoJSON:function(f){return ms(this,{type:"Point",coordinates:ac(this.getLatLng(),f)})}};so.include(kd),rc.include(kd),nc.include(kd),br.include({toGeoJSON:function(f){var m=!Ir(this._latlngs),S=sc(this._latlngs,m?1:0,!1,f);return ms(this,{type:(m?"Multi":"")+"LineString",coordinates:S})}}),lo.include({toGeoJSON:function(f){var m=!Ir(this._latlngs),S=m&&!Ir(this._latlngs[0]),k=sc(this._latlngs,S?2:m?1:0,!0,f);return m||(k=[k]),ms(this,{type:(S?"Multi":"")+"Polygon",coordinates:k})}}),Lo.include({toMultiPoint:function(f){var m=[];return this.eachLayer(function(S){m.push(S.toGeoJSON(f).geometry.coordinates)}),ms(this,{type:"MultiPoint",coordinates:m})},toGeoJSON:function(f){var m=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(m==="MultiPoint")return this.toMultiPoint(f);var S=m==="GeometryCollection",k=[];return this.eachLayer(function(U){if(U.toGeoJSON){var te=U.toGeoJSON(f);if(S)k.push(te.geometry);else{var pe=lc(te);pe.type==="FeatureCollection"?k.push.apply(k,pe.features):k.push(pe)}}}),S?ms(this,{geometries:k,type:"GeometryCollection"}):{type:"FeatureCollection",features:k}}});function Um(f,m){return new Ei(f,m)}var oi=Um,Do=ii.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(f,m,S){this._url=f,this._bounds=le(m),_(this,S)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(gt(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){tn(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(f){return this.options.opacity=f,this._image&&this._updateOpacity(),this},setStyle:function(f){return f.opacity&&this.setOpacity(f.opacity),this},bringToFront:function(){return this._map&&os(this._image),this},bringToBack:function(){return this._map&&ro(this._image),this},setUrl:function(f){return this._url=f,this._image&&(this._image.src=f),this},setBounds:function(f){return this._bounds=le(f),this._map&&this._reset(),this},getEvents:function(){var f={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(f.zoomanim=this._animateZoom),f},setZIndex:function(f){return this.options.zIndex=f,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var f=this._url.tagName==="IMG",m=this._image=f?this._url:wt("img");if(gt(m,"leaflet-image-layer"),this._zoomAnimated&&gt(m,"leaflet-zoom-animated"),this.options.className&&gt(m,this.options.className),m.onselectstart=p,m.onmousemove=p,m.onload=a(this.fire,this,"load"),m.onerror=a(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(m.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),f){this._url=m.src;return}m.src=this._url,m.alt=this.options.alt},_animateZoom:function(f){var m=this._map.getZoomScale(f.zoom),S=this._map._latLngBoundsToNewLayerBounds(this._bounds,f.zoom,f.center).min;ei(this._image,S,m)},_reset:function(){var f=this._image,m=new z(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),S=m.getSize();On(f,m.min),f.style.width=S.x+"px",f.style.height=S.y+"px"},_updateOpacity:function(){lr(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 f=this.options.errorOverlayUrl;f&&this._url!==f&&(this._url=f,this._image.src=f)},getCenter:function(){return this._bounds.getCenter()}}),zm=function(f,m,S){return new Do(f,m,S)},Rd=Do.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var f=this._url.tagName==="VIDEO",m=this._image=f?this._url:wt("video");if(gt(m,"leaflet-image-layer"),this._zoomAnimated&&gt(m,"leaflet-zoom-animated"),this.options.className&&gt(m,this.options.className),m.onselectstart=p,m.onmousemove=p,m.onloadeddata=a(this.fire,this,"load"),f){for(var S=m.getElementsByTagName("source"),k=[],U=0;U<S.length;U++)k.push(S[U].src);this._url=S.length>0?k:[m.src];return}E(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(m.style,"objectFit")&&(m.style.objectFit="fill"),m.autoplay=!!this.options.autoplay,m.loop=!!this.options.loop,m.muted=!!this.options.muted,m.playsInline=!!this.options.playsInline;for(var te=0;te<this._url.length;te++){var pe=wt("source");pe.src=this._url[te],m.appendChild(pe)}}});function Vm(f,m,S){return new Rd(f,m,S)}var Nd=Do.extend({_initImage:function(){var f=this._image=this._url;gt(f,"leaflet-image-layer"),this._zoomAnimated&&gt(f,"leaflet-zoom-animated"),this.options.className&&gt(f,this.options.className),f.onselectstart=p,f.onmousemove=p}});function Md(f,m,S){return new Nd(f,m,S)}var Ti=ii.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(f,m){f&&(f instanceof ce||E(f))?(this._latlng=de(f),_(this,m)):(_(this,f),this._source=m),this.options.content&&(this._content=this.options.content)},openOn:function(f){return f=arguments.length?f:this._source._map,f.hasLayer(this)||f.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(f){return this._map?this.close():(arguments.length?this._source=f:f=this._source,this._prepareOpen(),this.openOn(f._map)),this},onAdd:function(f){this._zoomAnimated=f._zoomAnimated,this._container||this._initLayout(),f._fadeAnimated&&lr(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),f._fadeAnimated&&lr(this._container,1),this.bringToFront(),this.options.interactive&&(gt(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(f){f._fadeAnimated?(lr(this._container,0),this._removeTimeout=setTimeout(a(tn,void 0,this._container),200)):tn(this._container),this.options.interactive&&(Kt(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(f){return this._latlng=de(f),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(f){return this._content=f,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 f={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(f.zoomanim=this._animateZoom),f},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&os(this._container),this},bringToBack:function(){return this._map&&ro(this._container),this},_prepareOpen:function(f){var m=this._source;if(!m._map)return!1;if(m instanceof ao){m=null;var S=this._source._layers;for(var k in S)if(S[k]._map){m=S[k];break}if(!m)return!1;this._source=m}if(!f)if(m.getCenter)f=m.getCenter();else if(m.getLatLng)f=m.getLatLng();else if(m.getBounds)f=m.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(f),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var f=this._contentNode,m=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof m=="string")f.innerHTML=m;else{for(;f.hasChildNodes();)f.removeChild(f.firstChild);f.appendChild(m)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var f=this._map.latLngToLayerPoint(this._latlng),m=G(this.options.offset),S=this._getAnchor();this._zoomAnimated?On(this._container,f.add(S)):m=m.add(f).add(S);var k=this._containerBottom=-m.y,U=this._containerLeft=-Math.round(this._containerWidth/2)+m.x;this._container.style.bottom=k+"px",this._container.style.left=U+"px"}},_getAnchor:function(){return[0,0]}});Et.include({_initOverlay:function(f,m,S,k){var U=m;return U instanceof f||(U=new f(k).setContent(m)),S&&U.setLatLng(S),U}}),ii.include({_initOverlay:function(f,m,S,k){var U=S;return U instanceof f?(_(U,k),U._source=this):(U=m&&!k?m:new f(k,this),U.setContent(S)),U}});var uc=Ti.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(f){return f=arguments.length?f:this._source._map,!f.hasLayer(this)&&f._popup&&f._popup.options.autoClose&&f.removeLayer(f._popup),f._popup=this,Ti.prototype.openOn.call(this,f)},onAdd:function(f){Ti.prototype.onAdd.call(this,f),f.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Io||this._source.on("preclick",Ci))},onRemove:function(f){Ti.prototype.onRemove.call(this,f),f.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Io||this._source.off("preclick",Ci))},getEvents:function(){var f=Ti.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(f.preclick=this.close),this.options.keepInView&&(f.moveend=this._adjustPan),f},_initLayout:function(){var f="leaflet-popup",m=this._container=wt("div",f+" "+(this.options.className||"")+" leaflet-zoom-animated"),S=this._wrapper=wt("div",f+"-content-wrapper",m);if(this._contentNode=wt("div",f+"-content",S),Tl(m),Zu(this._contentNode),ht(m,"contextmenu",Ci),this._tipContainer=wt("div",f+"-tip-container",m),this._tip=wt("div",f+"-tip",this._tipContainer),this.options.closeButton){var k=this._closeButton=wt("a",f+"-close-button",m);k.setAttribute("role","button"),k.setAttribute("aria-label","Close popup"),k.href="#close",k.innerHTML='<span aria-hidden="true">&#215;</span>',ht(k,"click",function(U){yn(U),this.close()},this)}},_updateLayout:function(){var f=this._contentNode,m=f.style;m.width="",m.whiteSpace="nowrap";var S=f.offsetWidth;S=Math.min(S,this.options.maxWidth),S=Math.max(S,this.options.minWidth),m.width=S+1+"px",m.whiteSpace="",m.height="";var k=f.offsetHeight,U=this.options.maxHeight,te="leaflet-popup-scrolled";U&&k>U?(m.height=U+"px",gt(f,te)):Kt(f,te),this._containerWidth=this._container.offsetWidth},_animateZoom:function(f){var m=this._map._latLngToNewLayerPoint(this._latlng,f.zoom,f.center),S=this._getAnchor();On(this._container,m.add(S))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var f=this._map,m=parseInt(Sl(this._container,"marginBottom"),10)||0,S=this._container.offsetHeight+m,k=this._containerWidth,U=new oe(this._containerLeft,-S-this._containerBottom);U._add(io(this._container));var te=f.layerPointToContainerPoint(U),pe=G(this.options.autoPanPadding),_e=G(this.options.autoPanPaddingTopLeft||pe),Pe=G(this.options.autoPanPaddingBottomRight||pe),Re=f.getSize(),Ze=0,st=0;te.x+k+Pe.x>Re.x&&(Ze=te.x+k-Re.x+Pe.x),te.x-Ze-_e.x<0&&(Ze=te.x-_e.x),te.y+S+Pe.y>Re.y&&(st=te.y+S-Re.y+Pe.y),te.y-st-_e.y<0&&(st=te.y-_e.y),(Ze||st)&&(this.options.keepInView&&(this._autopanning=!0),f.fire("autopanstart").panBy([Ze,st]))}},_getAnchor:function(){return G(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),vs=function(f,m){return new uc(f,m)};Et.mergeOptions({closePopupOnClick:!0}),Et.include({openPopup:function(f,m,S){return this._initOverlay(uc,f,m,S).openOn(this),this},closePopup:function(f){return f=arguments.length?f:this._popup,f&&f.close(),this}}),ii.include({bindPopup:function(f,m){return this._popup=this._initOverlay(uc,this._popup,f,m),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(f){return this._popup&&(this instanceof ao||(this._popup._source=this),this._popup._prepareOpen(f||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(f){return this._popup&&this._popup.setContent(f),this},getPopup:function(){return this._popup},_openPopup:function(f){if(!(!this._popup||!this._map)){ni(f);var m=f.layer||f.target;if(this._popup._source===m&&!(m instanceof Io)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(f.latlng);return}this._popup._source=m,this.openPopup(f.latlng)}},_movePopup:function(f){this._popup.setLatLng(f.latlng)},_onKeyPress:function(f){f.originalEvent.keyCode===13&&this._openPopup(f)}});var gs=Ti.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(f){Ti.prototype.onAdd.call(this,f),this.setOpacity(this.options.opacity),f.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(f){Ti.prototype.onRemove.call(this,f),f.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var f=Ti.prototype.getEvents.call(this);return this.options.permanent||(f.preclick=this.close),f},_initLayout:function(){var f="leaflet-tooltip",m=f+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=wt("div",m),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+c(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(f){var m,S,k=this._map,U=this._container,te=k.latLngToContainerPoint(k.getCenter()),pe=k.layerPointToContainerPoint(f),_e=this.options.direction,Pe=U.offsetWidth,Re=U.offsetHeight,Ze=G(this.options.offset),st=this._getAnchor();_e==="top"?(m=Pe/2,S=Re):_e==="bottom"?(m=Pe/2,S=0):_e==="center"?(m=Pe/2,S=Re/2):_e==="right"?(m=0,S=Re/2):_e==="left"?(m=Pe,S=Re/2):pe.x<te.x?(_e="right",m=0,S=Re/2):(_e="left",m=Pe+(Ze.x+st.x)*2,S=Re/2),f=f.subtract(G(m,S,!0)).add(Ze).add(st),Kt(U,"leaflet-tooltip-right"),Kt(U,"leaflet-tooltip-left"),Kt(U,"leaflet-tooltip-top"),Kt(U,"leaflet-tooltip-bottom"),gt(U,"leaflet-tooltip-"+_e),On(U,f)},_updatePosition:function(){var f=this._map.latLngToLayerPoint(this._latlng);this._setPosition(f)},setOpacity:function(f){this.options.opacity=f,this._container&&lr(this._container,f)},_animateZoom:function(f){var m=this._map._latLngToNewLayerPoint(this._latlng,f.zoom,f.center);this._setPosition(m)},_getAnchor:function(){return G(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),Ml=function(f,m){return new gs(f,m)};Et.include({openTooltip:function(f,m,S){return this._initOverlay(gs,f,m,S).openOn(this),this},closeTooltip:function(f){return f.close(),this}}),ii.include({bindTooltip:function(f,m){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(gs,this._tooltip,f,m),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(f){if(!(!f&&this._tooltipHandlersAdded)){var m=f?"off":"on",S={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?S.add=this._openTooltip:(S.mouseover=this._openTooltip,S.mouseout=this.closeTooltip,S.click=this._openTooltip,this._map?this._addFocusListeners():S.add=this._addFocusListeners),this._tooltip.options.sticky&&(S.mousemove=this._moveTooltip),this[m](S),this._tooltipHandlersAdded=!f}},openTooltip:function(f){return this._tooltip&&(this instanceof ao||(this._tooltip._source=this),this._tooltip._prepareOpen(f)&&(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(f){return this._tooltip&&this._tooltip.setContent(f),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(f){var m=typeof f.getElement=="function"&&f.getElement();m&&(ht(m,"focus",function(){this._tooltip._source=f,this.openTooltip()},this),ht(m,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(f){var m=typeof f.getElement=="function"&&f.getElement();m&&m.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(f){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var m=this;this._map.once("moveend",function(){m._openOnceFlag=!1,m._openTooltip(f)});return}this._tooltip._source=f.layer||f.target,this.openTooltip(this._tooltip.options.sticky?f.latlng:void 0)}},_moveTooltip:function(f){var m=f.latlng,S,k;this._tooltip.options.sticky&&f.originalEvent&&(S=this._map.mouseEventToContainerPoint(f.originalEvent),k=this._map.containerPointToLayerPoint(S),m=this._map.layerPointToLatLng(k)),this._tooltip.setLatLng(m)}});var cc=ga.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(f){var m=f&&f.tagName==="DIV"?f:document.createElement("div"),S=this.options;if(S.html instanceof Element?(Wu(m),m.appendChild(S.html)):m.innerHTML=S.html!==!1?S.html:"",S.bgPos){var k=G(S.bgPos);m.style.backgroundPosition=-k.x+"px "+-k.y+"px"}return this._setIconStyles(m,"icon"),m},createShadow:function(){return null}});function Wm(f){return new cc(f)}ga.Default=hs;var $o=ii.extend({options:{tileSize:256,opacity:1,updateWhenIdle:rt.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(f){_(this,f)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(f){f._addZoomLimit(this)},onRemove:function(f){this._removeAllTiles(),tn(this._container),f._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(os(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(ro(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(f){return this.options.opacity=f,this._updateOpacity(),this},setZIndex:function(f){return this.options.zIndex=f,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var f=this._clampZoom(this._map.getZoom());f!==this._tileZoom&&(this._tileZoom=f,this._updateLevels()),this._update()}return this},getEvents:function(){var f={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=u(this._onMoveEnd,this.options.updateInterval,this)),f.move=this._onMove),this._zoomAnimated&&(f.zoomanim=this._animateZoom),f},createTile:function(){return document.createElement("div")},getTileSize:function(){var f=this.options.tileSize;return f instanceof oe?f:new oe(f,f)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(f){for(var m=this.getPane().children,S=-f(-1/0,1/0),k=0,U=m.length,te;k<U;k++)te=m[k].style.zIndex,m[k]!==this._container&&te&&(S=f(S,+te));isFinite(S)&&(this.options.zIndex=S+f(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!rt.ielt9){lr(this._container,this.options.opacity);var f=+new Date,m=!1,S=!1;for(var k in this._tiles){var U=this._tiles[k];if(!(!U.current||!U.loaded)){var te=Math.min(1,(f-U.loaded)/200);lr(U.el,te),te<1?m=!0:(U.active?S=!0:this._onOpaqueTile(U),U.active=!0)}}S&&!this._noPrune&&this._pruneTiles(),m&&(H(this._fadeFrame),this._fadeFrame=V(this._updateOpacity,this))}},_onOpaqueTile:p,_initContainer:function(){this._container||(this._container=wt("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var f=this._tileZoom,m=this.options.maxZoom;if(f!==void 0){for(var S in this._levels)S=Number(S),this._levels[S].el.children.length||S===f?(this._levels[S].el.style.zIndex=m-Math.abs(f-S),this._onUpdateLevel(S)):(tn(this._levels[S].el),this._removeTilesAtZoom(S),this._onRemoveLevel(S),delete this._levels[S]);var k=this._levels[f],U=this._map;return k||(k=this._levels[f]={},k.el=wt("div","leaflet-tile-container leaflet-zoom-animated",this._container),k.el.style.zIndex=m,k.origin=U.project(U.unproject(U.getPixelOrigin()),f).round(),k.zoom=f,this._setZoomTransform(k,U.getCenter(),U.getZoom()),p(k.el.offsetWidth),this._onCreateLevel(k)),this._level=k,k}},_onUpdateLevel:p,_onRemoveLevel:p,_onCreateLevel:p,_pruneTiles:function(){if(this._map){var f,m,S=this._map.getZoom();if(S>this.options.maxZoom||S<this.options.minZoom){this._removeAllTiles();return}for(f in this._tiles)m=this._tiles[f],m.retain=m.current;for(f in this._tiles)if(m=this._tiles[f],m.current&&!m.active){var k=m.coords;this._retainParent(k.x,k.y,k.z,k.z-5)||this._retainChildren(k.x,k.y,k.z,k.z+2)}for(f in this._tiles)this._tiles[f].retain||this._removeTile(f)}},_removeTilesAtZoom:function(f){for(var m in this._tiles)this._tiles[m].coords.z===f&&this._removeTile(m)},_removeAllTiles:function(){for(var f in this._tiles)this._removeTile(f)},_invalidateAll:function(){for(var f in this._levels)tn(this._levels[f].el),this._onRemoveLevel(Number(f)),delete this._levels[f];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(f,m,S,k){var U=Math.floor(f/2),te=Math.floor(m/2),pe=S-1,_e=new oe(+U,+te);_e.z=+pe;var Pe=this._tileCoordsToKey(_e),Re=this._tiles[Pe];return Re&&Re.active?(Re.retain=!0,!0):(Re&&Re.loaded&&(Re.retain=!0),pe>k?this._retainParent(U,te,pe,k):!1)},_retainChildren:function(f,m,S,k){for(var U=2*f;U<2*f+2;U++)for(var te=2*m;te<2*m+2;te++){var pe=new oe(U,te);pe.z=S+1;var _e=this._tileCoordsToKey(pe),Pe=this._tiles[_e];if(Pe&&Pe.active){Pe.retain=!0;continue}else Pe&&Pe.loaded&&(Pe.retain=!0);S+1<k&&this._retainChildren(U,te,S+1,k)}},_resetView:function(f){var m=f&&(f.pinch||f.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),m,m)},_animateZoom:function(f){this._setView(f.center,f.zoom,!0,f.noUpdate)},_clampZoom:function(f){var m=this.options;return m.minNativeZoom!==void 0&&f<m.minNativeZoom?m.minNativeZoom:m.maxNativeZoom!==void 0&&m.maxNativeZoom<f?m.maxNativeZoom:f},_setView:function(f,m,S,k){var U=Math.round(m);this.options.maxZoom!==void 0&&U>this.options.maxZoom||this.options.minZoom!==void 0&&U<this.options.minZoom?U=void 0:U=this._clampZoom(U);var te=this.options.updateWhenZooming&&U!==this._tileZoom;(!k||te)&&(this._tileZoom=U,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),U!==void 0&&this._update(f),S||this._pruneTiles(),this._noPrune=!!S),this._setZoomTransforms(f,m)},_setZoomTransforms:function(f,m){for(var S in this._levels)this._setZoomTransform(this._levels[S],f,m)},_setZoomTransform:function(f,m,S){var k=this._map.getZoomScale(S,f.zoom),U=f.origin.multiplyBy(k).subtract(this._map._getNewPixelOrigin(m,S)).round();rt.any3d?ei(f.el,U,k):On(f.el,U)},_resetGrid:function(){var f=this._map,m=f.options.crs,S=this._tileSize=this.getTileSize(),k=this._tileZoom,U=this._map.getPixelWorldBounds(this._tileZoom);U&&(this._globalTileRange=this._pxBoundsToTileRange(U)),this._wrapX=m.wrapLng&&!this.options.noWrap&&[Math.floor(f.project([0,m.wrapLng[0]],k).x/S.x),Math.ceil(f.project([0,m.wrapLng[1]],k).x/S.y)],this._wrapY=m.wrapLat&&!this.options.noWrap&&[Math.floor(f.project([m.wrapLat[0],0],k).y/S.x),Math.ceil(f.project([m.wrapLat[1],0],k).y/S.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(f){var m=this._map,S=m._animatingZoom?Math.max(m._animateToZoom,m.getZoom()):m.getZoom(),k=m.getZoomScale(S,this._tileZoom),U=m.project(f,this._tileZoom).floor(),te=m.getSize().divideBy(k*2);return new z(U.subtract(te),U.add(te))},_update:function(f){var m=this._map;if(m){var S=this._clampZoom(m.getZoom());if(f===void 0&&(f=m.getCenter()),this._tileZoom!==void 0){var k=this._getTiledPixelBounds(f),U=this._pxBoundsToTileRange(k),te=U.getCenter(),pe=[],_e=this.options.keepBuffer,Pe=new z(U.getBottomLeft().subtract([_e,-_e]),U.getTopRight().add([_e,-_e]));if(!(isFinite(U.min.x)&&isFinite(U.min.y)&&isFinite(U.max.x)&&isFinite(U.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var Re in this._tiles){var Ze=this._tiles[Re].coords;(Ze.z!==this._tileZoom||!Pe.contains(new oe(Ze.x,Ze.y)))&&(this._tiles[Re].current=!1)}if(Math.abs(S-this._tileZoom)>1){this._setView(f,S);return}for(var st=U.min.y;st<=U.max.y;st++)for(var St=U.min.x;St<=U.max.x;St++){var Bn=new oe(St,st);if(Bn.z=this._tileZoom,!!this._isValidTile(Bn)){var Nn=this._tiles[this._tileCoordsToKey(Bn)];Nn?Nn.current=!0:pe.push(Bn)}}if(pe.sort(function(cr,ws){return cr.distanceTo(te)-ws.distanceTo(te)}),pe.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var _r=document.createDocumentFragment();for(St=0;St<pe.length;St++)this._addTile(pe[St],_r);this._level.el.appendChild(_r)}}}},_isValidTile:function(f){var m=this._map.options.crs;if(!m.infinite){var S=this._globalTileRange;if(!m.wrapLng&&(f.x<S.min.x||f.x>S.max.x)||!m.wrapLat&&(f.y<S.min.y||f.y>S.max.y))return!1}if(!this.options.bounds)return!0;var k=this._tileCoordsToBounds(f);return le(this.options.bounds).overlaps(k)},_keyToBounds:function(f){return this._tileCoordsToBounds(this._keyToTileCoords(f))},_tileCoordsToNwSe:function(f){var m=this._map,S=this.getTileSize(),k=f.scaleBy(S),U=k.add(S),te=m.unproject(k,f.z),pe=m.unproject(U,f.z);return[te,pe]},_tileCoordsToBounds:function(f){var m=this._tileCoordsToNwSe(f),S=new X(m[0],m[1]);return this.options.noWrap||(S=this._map.wrapLatLngBounds(S)),S},_tileCoordsToKey:function(f){return f.x+":"+f.y+":"+f.z},_keyToTileCoords:function(f){var m=f.split(":"),S=new oe(+m[0],+m[1]);return S.z=+m[2],S},_removeTile:function(f){var m=this._tiles[f];m&&(tn(m.el),delete this._tiles[f],this.fire("tileunload",{tile:m.el,coords:this._keyToTileCoords(f)}))},_initTile:function(f){gt(f,"leaflet-tile");var m=this.getTileSize();f.style.width=m.x+"px",f.style.height=m.y+"px",f.onselectstart=p,f.onmousemove=p,rt.ielt9&&this.options.opacity<1&&lr(f,this.options.opacity)},_addTile:function(f,m){var S=this._getTilePos(f),k=this._tileCoordsToKey(f),U=this.createTile(this._wrapCoords(f),a(this._tileReady,this,f));this._initTile(U),this.createTile.length<2&&V(a(this._tileReady,this,f,null,U)),On(U,S),this._tiles[k]={el:U,coords:f,current:!0},m.appendChild(U),this.fire("tileloadstart",{tile:U,coords:f})},_tileReady:function(f,m,S){m&&this.fire("tileerror",{error:m,tile:S,coords:f});var k=this._tileCoordsToKey(f);S=this._tiles[k],S&&(S.loaded=+new Date,this._map._fadeAnimated?(lr(S.el,0),H(this._fadeFrame),this._fadeFrame=V(this._updateOpacity,this)):(S.active=!0,this._pruneTiles()),m||(gt(S.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:S.el,coords:f})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),rt.ielt9||!this._map._fadeAnimated?V(this._pruneTiles,this):setTimeout(a(this._pruneTiles,this),250)))},_getTilePos:function(f){return f.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(f){var m=new oe(this._wrapX?h(f.x,this._wrapX):f.x,this._wrapY?h(f.y,this._wrapY):f.y);return m.z=f.z,m},_pxBoundsToTileRange:function(f){var m=this.getTileSize();return new z(f.min.unscaleBy(m).floor(),f.max.unscaleBy(m).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var f in this._tiles)if(!this._tiles[f].loaded)return!1;return!0}});function ys(f){return new $o(f)}var Fo=$o.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(f,m){this._url=f,m=_(this,m),m.detectRetina&&rt.retina&&m.maxZoom>0?(m.tileSize=Math.floor(m.tileSize/2),m.zoomReverse?(m.zoomOffset--,m.minZoom=Math.min(m.maxZoom,m.minZoom+1)):(m.zoomOffset++,m.maxZoom=Math.max(m.minZoom,m.maxZoom-1)),m.minZoom=Math.max(0,m.minZoom)):m.zoomReverse?m.minZoom=Math.min(m.maxZoom,m.minZoom):m.maxZoom=Math.max(m.minZoom,m.maxZoom),typeof m.subdomains=="string"&&(m.subdomains=m.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(f,m){return this._url===f&&m===void 0&&(m=!0),this._url=f,m||this.redraw(),this},createTile:function(f,m){var S=document.createElement("img");return ht(S,"load",a(this._tileOnLoad,this,m,S)),ht(S,"error",a(this._tileOnError,this,m,S)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(S.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(S.referrerPolicy=this.options.referrerPolicy),S.alt="",S.src=this.getTileUrl(f),S},getTileUrl:function(f){var m={r:rt.retina?"@2x":"",s:this._getSubdomain(f),x:f.x,y:f.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var S=this._globalTileRange.max.y-f.y;this.options.tms&&(m.y=S),m["-y"]=S}return P(this._url,i(m,this.options))},_tileOnLoad:function(f,m){rt.ielt9?setTimeout(a(f,this,null,m),0):f(null,m)},_tileOnError:function(f,m,S){var k=this.options.errorTileUrl;k&&m.getAttribute("src")!==k&&(m.src=k),f(S,m)},_onTileRemove:function(f){f.tile.onload=null},_getZoomForUrl:function(){var f=this._tileZoom,m=this.options.maxZoom,S=this.options.zoomReverse,k=this.options.zoomOffset;return S&&(f=m-f),f+k},_getSubdomain:function(f){var m=Math.abs(f.x+f.y)%this.options.subdomains.length;return this.options.subdomains[m]},_abortLoading:function(){var f,m;for(f in this._tiles)if(this._tiles[f].coords.z!==this._tileZoom&&(m=this._tiles[f].el,m.onload=p,m.onerror=p,!m.complete)){m.src=A;var S=this._tiles[f].coords;tn(m),delete this._tiles[f],this.fire("tileabort",{tile:m,coords:S})}},_removeTile:function(f){var m=this._tiles[f];if(m)return m.el.setAttribute("src",A),$o.prototype._removeTile.call(this,f)},_tileReady:function(f,m,S){if(!(!this._map||S&&S.getAttribute("src")===A))return $o.prototype._tileReady.call(this,f,m,S)}});function Ld(f,m){return new Fo(f,m)}var Ll=Fo.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(f,m){this._url=f;var S=i({},this.defaultWmsParams);for(var k in m)k in this.options||(S[k]=m[k]);m=_(this,m);var U=m.detectRetina&&rt.retina?2:1,te=this.getTileSize();S.width=te.x*U,S.height=te.y*U,this.wmsParams=S},onAdd:function(f){this._crs=this.options.crs||f.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var m=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[m]=this._crs.code,Fo.prototype.onAdd.call(this,f)},getTileUrl:function(f){var m=this._tileCoordsToNwSe(f),S=this._crs,k=ne(S.project(m[0]),S.project(m[1])),U=k.min,te=k.max,pe=(this._wmsVersion>=1.3&&this._crs===Dm?[U.y,U.x,te.y,te.x]:[U.x,U.y,te.x,te.y]).join(","),_e=Fo.prototype.getTileUrl.call(this,f);return _e+w(this.wmsParams,_e,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+pe},setParams:function(f,m){return i(this.wmsParams,f),m||this.redraw(),this}});function qm(f,m){return new Ll(f,m)}Fo.WMS=Ll,Ld.wms=qm;var ji=ii.extend({options:{padding:.1},initialize:function(f){_(this,f),c(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),gt(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 f={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(f.zoomanim=this._onAnimZoom),f},_onAnimZoom:function(f){this._updateTransform(f.center,f.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(f,m){var S=this._map.getZoomScale(m,this._zoom),k=this._map.getSize().multiplyBy(.5+this.options.padding),U=this._map.project(this._center,m),te=k.multiplyBy(-S).add(U).subtract(this._map._getNewPixelOrigin(f,m));rt.any3d?ei(this._container,te,S):On(this._container,te)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var f in this._layers)this._layers[f]._reset()},_onZoomEnd:function(){for(var f in this._layers)this._layers[f]._project()},_updatePaths:function(){for(var f in this._layers)this._layers[f]._update()},_update:function(){var f=this.options.padding,m=this._map.getSize(),S=this._map.containerPointToLayerPoint(m.multiplyBy(-f)).round();this._bounds=new z(S,S.add(m.multiplyBy(1+f*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Id=ji.extend({options:{tolerance:0},getEvents:function(){var f=ji.prototype.getEvents.call(this);return f.viewprereset=this._onViewPreReset,f},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){ji.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var f=this._container=document.createElement("canvas");ht(f,"mousemove",this._onMouseMove,this),ht(f,"click dblclick mousedown mouseup contextmenu",this._onClick,this),ht(f,"mouseout",this._handleMouseOut,this),f._leaflet_disable_events=!0,this._ctx=f.getContext("2d")},_destroyContainer:function(){H(this._redrawRequest),delete this._ctx,tn(this._container),Ut(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var f;this._redrawBounds=null;for(var m in this._layers)f=this._layers[m],f._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){ji.prototype._update.call(this);var f=this._bounds,m=this._container,S=f.getSize(),k=rt.retina?2:1;On(m,f.min),m.width=k*S.x,m.height=k*S.y,m.style.width=S.x+"px",m.style.height=S.y+"px",rt.retina&&this._ctx.scale(2,2),this._ctx.translate(-f.min.x,-f.min.y),this.fire("update")}},_reset:function(){ji.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(f){this._updateDashArray(f),this._layers[c(f)]=f;var m=f._order={layer:f,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=m),this._drawLast=m,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(f){this._requestRedraw(f)},_removePath:function(f){var m=f._order,S=m.next,k=m.prev;S?S.prev=k:this._drawLast=k,k?k.next=S:this._drawFirst=S,delete f._order,delete this._layers[c(f)],this._requestRedraw(f)},_updatePath:function(f){this._extendRedrawBounds(f),f._project(),f._update(),this._requestRedraw(f)},_updateStyle:function(f){this._updateDashArray(f),this._requestRedraw(f)},_updateDashArray:function(f){if(typeof f.options.dashArray=="string"){var m=f.options.dashArray.split(/[, ]+/),S=[],k,U;for(U=0;U<m.length;U++){if(k=Number(m[U]),isNaN(k))return;S.push(k)}f.options._dashArray=S}else f.options._dashArray=f.options.dashArray},_requestRedraw:function(f){this._map&&(this._extendRedrawBounds(f),this._redrawRequest=this._redrawRequest||V(this._redraw,this))},_extendRedrawBounds:function(f){if(f._pxBounds){var m=(f.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new z,this._redrawBounds.extend(f._pxBounds.min.subtract([m,m])),this._redrawBounds.extend(f._pxBounds.max.add([m,m]))}},_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 f=this._redrawBounds;if(f){var m=f.getSize();this._ctx.clearRect(f.min.x,f.min.y,m.x,m.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 f,m=this._redrawBounds;if(this._ctx.save(),m){var S=m.getSize();this._ctx.beginPath(),this._ctx.rect(m.min.x,m.min.y,S.x,S.y),this._ctx.clip()}this._drawing=!0;for(var k=this._drawFirst;k;k=k.next)f=k.layer,(!m||f._pxBounds&&f._pxBounds.intersects(m))&&f._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(f,m){if(this._drawing){var S,k,U,te,pe=f._parts,_e=pe.length,Pe=this._ctx;if(_e){for(Pe.beginPath(),S=0;S<_e;S++){for(k=0,U=pe[S].length;k<U;k++)te=pe[S][k],Pe[k?"lineTo":"moveTo"](te.x,te.y);m&&Pe.closePath()}this._fillStroke(Pe,f)}}},_updateCircle:function(f){if(!(!this._drawing||f._empty())){var m=f._point,S=this._ctx,k=Math.max(Math.round(f._radius),1),U=(Math.max(Math.round(f._radiusY),1)||k)/k;U!==1&&(S.save(),S.scale(1,U)),S.beginPath(),S.arc(m.x,m.y/U,k,0,Math.PI*2,!1),U!==1&&S.restore(),this._fillStroke(S,f)}},_fillStroke:function(f,m){var S=m.options;S.fill&&(f.globalAlpha=S.fillOpacity,f.fillStyle=S.fillColor||S.color,f.fill(S.fillRule||"evenodd")),S.stroke&&S.weight!==0&&(f.setLineDash&&f.setLineDash(m.options&&m.options._dashArray||[]),f.globalAlpha=S.opacity,f.lineWidth=S.weight,f.strokeStyle=S.color,f.lineCap=S.lineCap,f.lineJoin=S.lineJoin,f.stroke())},_onClick:function(f){for(var m=this._map.mouseEventToLayerPoint(f),S,k,U=this._drawFirst;U;U=U.next)S=U.layer,S.options.interactive&&S._containsPoint(m)&&(!(f.type==="click"||f.type==="preclick")||!this._map._draggableMoved(S))&&(k=S);this._fireEvent(k?[k]:!1,f)},_onMouseMove:function(f){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var m=this._map.mouseEventToLayerPoint(f);this._handleMouseHover(f,m)}},_handleMouseOut:function(f){var m=this._hoveredLayer;m&&(Kt(this._container,"leaflet-interactive"),this._fireEvent([m],f,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(f,m){if(!this._mouseHoverThrottled){for(var S,k,U=this._drawFirst;U;U=U.next)S=U.layer,S.options.interactive&&S._containsPoint(m)&&(k=S);k!==this._hoveredLayer&&(this._handleMouseOut(f),k&&(gt(this._container,"leaflet-interactive"),this._fireEvent([k],f,"mouseover"),this._hoveredLayer=k)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,f),this._mouseHoverThrottled=!0,setTimeout(a(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(f,m,S){this._map._fireDOMEvent(m,S||m.type,f)},_bringToFront:function(f){var m=f._order;if(m){var S=m.next,k=m.prev;if(S)S.prev=k;else return;k?k.next=S:S&&(this._drawFirst=S),m.prev=this._drawLast,this._drawLast.next=m,m.next=null,this._drawLast=m,this._requestRedraw(f)}},_bringToBack:function(f){var m=f._order;if(m){var S=m.next,k=m.prev;if(k)k.next=S;else return;S?S.prev=k:k&&(this._drawLast=k),m.prev=null,m.next=this._drawFirst,this._drawFirst.prev=m,this._drawFirst=m,this._requestRedraw(f)}}});function Dd(f){return rt.canvas?new Id(f):null}var bs=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(f){return document.createElement("<lvml:"+f+' class="lvml">')}}catch{}return function(f){return document.createElement("<"+f+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),Hm={_initContainer:function(){this._container=wt("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(ji.prototype._update.call(this),this.fire("update"))},_initPath:function(f){var m=f._container=bs("shape");gt(m,"leaflet-vml-shape "+(this.options.className||"")),m.coordsize="1 1",f._path=bs("path"),m.appendChild(f._path),this._updateStyle(f),this._layers[c(f)]=f},_addPath:function(f){var m=f._container;this._container.appendChild(m),f.options.interactive&&f.addInteractiveTarget(m)},_removePath:function(f){var m=f._container;tn(m),f.removeInteractiveTarget(m),delete this._layers[c(f)]},_updateStyle:function(f){var m=f._stroke,S=f._fill,k=f.options,U=f._container;U.stroked=!!k.stroke,U.filled=!!k.fill,k.stroke?(m||(m=f._stroke=bs("stroke")),U.appendChild(m),m.weight=k.weight+"px",m.color=k.color,m.opacity=k.opacity,k.dashArray?m.dashStyle=E(k.dashArray)?k.dashArray.join(" "):k.dashArray.replace(/( *, *)/g," "):m.dashStyle="",m.endcap=k.lineCap.replace("butt","flat"),m.joinstyle=k.lineJoin):m&&(U.removeChild(m),f._stroke=null),k.fill?(S||(S=f._fill=bs("fill")),U.appendChild(S),S.color=k.fillColor||k.color,S.opacity=k.fillOpacity):S&&(U.removeChild(S),f._fill=null)},_updateCircle:function(f){var m=f._point.round(),S=Math.round(f._radius),k=Math.round(f._radiusY||S);this._setPath(f,f._empty()?"M0 0":"AL "+m.x+","+m.y+" "+S+","+k+" 0,"+65535*360)},_setPath:function(f,m){f._path.v=m},_bringToFront:function(f){os(f._container)},_bringToBack:function(f){ro(f._container)}},ai=rt.vml?bs:Fe,ya=ji.extend({_initContainer:function(){this._container=ai("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=ai("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){tn(this._container),Ut(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){ji.prototype._update.call(this);var f=this._bounds,m=f.getSize(),S=this._container;(!this._svgSize||!this._svgSize.equals(m))&&(this._svgSize=m,S.setAttribute("width",m.x),S.setAttribute("height",m.y)),On(S,f.min),S.setAttribute("viewBox",[f.min.x,f.min.y,m.x,m.y].join(" ")),this.fire("update")}},_initPath:function(f){var m=f._path=ai("path");f.options.className&&gt(m,f.options.className),f.options.interactive&&gt(m,"leaflet-interactive"),this._updateStyle(f),this._layers[c(f)]=f},_addPath:function(f){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(f._path),f.addInteractiveTarget(f._path)},_removePath:function(f){tn(f._path),f.removeInteractiveTarget(f._path),delete this._layers[c(f)]},_updatePath:function(f){f._project(),f._update()},_updateStyle:function(f){var m=f._path,S=f.options;m&&(S.stroke?(m.setAttribute("stroke",S.color),m.setAttribute("stroke-opacity",S.opacity),m.setAttribute("stroke-width",S.weight),m.setAttribute("stroke-linecap",S.lineCap),m.setAttribute("stroke-linejoin",S.lineJoin),S.dashArray?m.setAttribute("stroke-dasharray",S.dashArray):m.removeAttribute("stroke-dasharray"),S.dashOffset?m.setAttribute("stroke-dashoffset",S.dashOffset):m.removeAttribute("stroke-dashoffset")):m.setAttribute("stroke","none"),S.fill?(m.setAttribute("fill",S.fillColor||S.color),m.setAttribute("fill-opacity",S.fillOpacity),m.setAttribute("fill-rule",S.fillRule||"evenodd")):m.setAttribute("fill","none"))},_updatePoly:function(f,m){this._setPath(f,ge(f._parts,m))},_updateCircle:function(f){var m=f._point,S=Math.max(Math.round(f._radius),1),k=Math.max(Math.round(f._radiusY),1)||S,U="a"+S+","+k+" 0 1,0 ",te=f._empty()?"M0 0":"M"+(m.x-S)+","+m.y+U+S*2+",0 "+U+-S*2+",0 ";this._setPath(f,te)},_setPath:function(f,m){f._path.setAttribute("d",m)},_bringToFront:function(f){os(f._path)},_bringToBack:function(f){ro(f._path)}});rt.vml&&ya.include(Hm);function fc(f){return rt.svg||rt.vml?new ya(f):null}Et.include({getRenderer:function(f){var m=f.options.renderer||this._getPaneRenderer(f.options.pane)||this.options.renderer||this._renderer;return m||(m=this._renderer=this._createRenderer()),this.hasLayer(m)||this.addLayer(m),m},_getPaneRenderer:function(f){if(f==="overlayPane"||f===void 0)return!1;var m=this._paneRenderers[f];return m===void 0&&(m=this._createRenderer({pane:f}),this._paneRenderers[f]=m),m},_createRenderer:function(f){return this.options.preferCanvas&&Dd(f)||fc(f)}});var Gm=lo.extend({initialize:function(f,m){lo.prototype.initialize.call(this,this._boundsToLatLngs(f),m)},setBounds:function(f){return this.setLatLngs(this._boundsToLatLngs(f))},_boundsToLatLngs:function(f){return f=le(f),[f.getSouthWest(),f.getNorthWest(),f.getNorthEast(),f.getSouthEast()]}});function Qb(f,m){return new Gm(f,m)}ya.create=ai,ya.pointsToPath=ge,Ei.geometryToLayer=ps,Ei.coordsToLatLng=oc,Ei.coordsToLatLngs=Nl,Ei.latLngToCoords=ac,Ei.latLngsToCoords=sc,Ei.getFeature=ms,Ei.asFeature=lc,Et.mergeOptions({boxZoom:!0});var _s=Lr.extend({initialize:function(f){this._map=f,this._container=f._container,this._pane=f._panes.overlayPane,this._resetStateTimeout=0,f.on("unload",this._destroy,this)},addHooks:function(){ht(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Ut(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){tn(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(f){if(!f.shiftKey||f.which!==1&&f.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),kt(),Gu(),this._startPoint=this._map.mouseEventToContainerPoint(f),ht(document,{contextmenu:ni,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(f){this._moved||(this._moved=!0,this._box=wt("div","leaflet-zoom-box",this._container),gt(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(f);var m=new z(this._point,this._startPoint),S=m.getSize();On(this._box,m.min),this._box.style.width=S.x+"px",this._box.style.height=S.y+"px"},_finish:function(){this._moved&&(tn(this._box),Kt(this._container,"leaflet-crosshair")),ls(),Ku(),Ut(document,{contextmenu:ni,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(f){if(!(f.which!==1&&f.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(a(this._resetState,this),0);var m=new X(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(m).fire("boxzoomend",{boxZoomBounds:m})}},_onKeyDown:function(f){f.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Et.addInitHook("addHandler","boxZoom",_s),Et.mergeOptions({doubleClickZoom:!0});var Km=Lr.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(f){var m=this._map,S=m.getZoom(),k=m.options.zoomDelta,U=f.originalEvent.shiftKey?S-k:S+k;m.options.doubleClickZoom==="center"?m.setZoom(U):m.setZoomAround(f.containerPoint,U)}});Et.addInitHook("addHandler","doubleClickZoom",Km),Et.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var $d=Lr.extend({addHooks:function(){if(!this._draggable){var f=this._map;this._draggable=new ri(f._mapPane,f._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),f.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),f.on("zoomend",this._onZoomEnd,this),f.whenReady(this._onZoomEnd,this))}gt(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){Kt(this._map._container,"leaflet-grab"),Kt(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 f=this._map;if(f._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var m=le(this._map.options.maxBounds);this._offsetLimit=ne(this._map.latLngToContainerPoint(m.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(m.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;f.fire("movestart").fire("dragstart"),f.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(f){if(this._map.options.inertia){var m=this._lastTime=+new Date,S=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(S),this._times.push(m),this._prunePositions(m)}this._map.fire("move",f).fire("drag",f)},_prunePositions:function(f){for(;this._positions.length>1&&f-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var f=this._map.getSize().divideBy(2),m=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=m.subtract(f).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(f,m){return f-(f-m)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var f=this._draggable._newPos.subtract(this._draggable._startPos),m=this._offsetLimit;f.x<m.min.x&&(f.x=this._viscousLimit(f.x,m.min.x)),f.y<m.min.y&&(f.y=this._viscousLimit(f.y,m.min.y)),f.x>m.max.x&&(f.x=this._viscousLimit(f.x,m.max.x)),f.y>m.max.y&&(f.y=this._viscousLimit(f.y,m.max.y)),this._draggable._newPos=this._draggable._startPos.add(f)}},_onPreDragWrap:function(){var f=this._worldWidth,m=Math.round(f/2),S=this._initialWorldOffset,k=this._draggable._newPos.x,U=(k-m+S)%f+m-S,te=(k+m+S)%f-m-S,pe=Math.abs(U+S)<Math.abs(te+S)?U:te;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=pe},_onDragEnd:function(f){var m=this._map,S=m.options,k=!S.inertia||f.noInertia||this._times.length<2;if(m.fire("dragend",f),k)m.fire("moveend");else{this._prunePositions(+new Date);var U=this._lastPos.subtract(this._positions[0]),te=(this._lastTime-this._times[0])/1e3,pe=S.easeLinearity,_e=U.multiplyBy(pe/te),Pe=_e.distanceTo([0,0]),Re=Math.min(S.inertiaMaxSpeed,Pe),Ze=_e.multiplyBy(Re/Pe),st=Re/(S.inertiaDeceleration*pe),St=Ze.multiplyBy(-st/2).round();!St.x&&!St.y?m.fire("moveend"):(St=m._limitOffset(St,m.options.maxBounds),V(function(){m.panBy(St,{duration:st,easeLinearity:pe,noMoveStart:!0,animate:!0})}))}}});Et.addInitHook("addHandler","dragging",$d),Et.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Fd=Lr.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(f){this._map=f,this._setPanDelta(f.options.keyboardPanDelta),this._setZoomDelta(f.options.zoomDelta)},addHooks:function(){var f=this._map._container;f.tabIndex<=0&&(f.tabIndex="0"),ht(f,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),Ut(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 f=document.body,m=document.documentElement,S=f.scrollTop||m.scrollTop,k=f.scrollLeft||m.scrollLeft;this._map._container.focus(),window.scrollTo(k,S)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(f){var m=this._panKeys={},S=this.keyCodes,k,U;for(k=0,U=S.left.length;k<U;k++)m[S.left[k]]=[-1*f,0];for(k=0,U=S.right.length;k<U;k++)m[S.right[k]]=[f,0];for(k=0,U=S.down.length;k<U;k++)m[S.down[k]]=[0,f];for(k=0,U=S.up.length;k<U;k++)m[S.up[k]]=[0,-1*f]},_setZoomDelta:function(f){var m=this._zoomKeys={},S=this.keyCodes,k,U;for(k=0,U=S.zoomIn.length;k<U;k++)m[S.zoomIn[k]]=f;for(k=0,U=S.zoomOut.length;k<U;k++)m[S.zoomOut[k]]=-f},_addHooks:function(){ht(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Ut(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(f){if(!(f.altKey||f.ctrlKey||f.metaKey)){var m=f.keyCode,S=this._map,k;if(m in this._panKeys){if(!S._panAnim||!S._panAnim._inProgress)if(k=this._panKeys[m],f.shiftKey&&(k=G(k).multiplyBy(3)),S.options.maxBounds&&(k=S._limitOffset(G(k),S.options.maxBounds)),S.options.worldCopyJump){var U=S.wrapLatLng(S.unproject(S.project(S.getCenter()).add(k)));S.panTo(U)}else S.panBy(k)}else if(m in this._zoomKeys)S.setZoom(S.getZoom()+(f.shiftKey?3:1)*this._zoomKeys[m]);else if(m===27&&S._popup&&S._popup.options.closeOnEscapeKey)S.closePopup();else return;ni(f)}}});Et.addInitHook("addHandler","keyboard",Fd),Et.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var zt=Lr.extend({addHooks:function(){ht(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Ut(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(f){var m=jm(f),S=this._map.options.wheelDebounceTime;this._delta+=m,this._lastMousePos=this._map.mouseEventToContainerPoint(f),this._startTime||(this._startTime=+new Date);var k=Math.max(S-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(a(this._performZoom,this),k),ni(f)},_performZoom:function(){var f=this._map,m=f.getZoom(),S=this._map.options.zoomSnap||0;f._stop();var k=this._delta/(this._map.options.wheelPxPerZoomLevel*4),U=4*Math.log(2/(1+Math.exp(-Math.abs(k))))/Math.LN2,te=S?Math.ceil(U/S)*S:U,pe=f._limitZoom(m+(this._delta>0?te:-te))-m;this._delta=0,this._startTime=null,pe&&(f.options.scrollWheelZoom==="center"?f.setZoom(m+pe):f.setZoomAround(this._lastMousePos,m+pe))}});Et.addInitHook("addHandler","scrollWheelZoom",zt);var Bd=600;Et.mergeOptions({tapHold:rt.touchNative&&rt.safari&&rt.mobile,tapTolerance:15});var Il=Lr.extend({addHooks:function(){ht(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Ut(this._map._container,"touchstart",this._onDown,this)},_onDown:function(f){if(clearTimeout(this._holdTimeout),f.touches.length===1){var m=f.touches[0];this._startPos=this._newPos=new oe(m.clientX,m.clientY),this._holdTimeout=setTimeout(a(function(){this._cancel(),this._isTapValid()&&(ht(document,"touchend",yn),ht(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",m))},this),Bd),ht(document,"touchend touchcancel contextmenu",this._cancel,this),ht(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function f(){Ut(document,"touchend",yn),Ut(document,"touchend touchcancel",f)},_cancel:function(){clearTimeout(this._holdTimeout),Ut(document,"touchend touchcancel contextmenu",this._cancel,this),Ut(document,"touchmove",this._onMove,this)},_onMove:function(f){var m=f.touches[0];this._newPos=new oe(m.clientX,m.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(f,m){var S=new MouseEvent(f,{bubbles:!0,cancelable:!0,view:window,screenX:m.screenX,screenY:m.screenY,clientX:m.clientX,clientY:m.clientY});S._simulated=!0,m.target.dispatchEvent(S)}});Et.addInitHook("addHandler","tapHold",Il),Et.mergeOptions({touchZoom:rt.touch,bounceAtZoomLimits:!0});var xs=Lr.extend({addHooks:function(){gt(this._map._container,"leaflet-touch-zoom"),ht(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Kt(this._map._container,"leaflet-touch-zoom"),Ut(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(f){var m=this._map;if(!(!f.touches||f.touches.length!==2||m._animatingZoom||this._zooming)){var S=m.mouseEventToContainerPoint(f.touches[0]),k=m.mouseEventToContainerPoint(f.touches[1]);this._centerPoint=m.getSize()._divideBy(2),this._startLatLng=m.containerPointToLatLng(this._centerPoint),m.options.touchZoom!=="center"&&(this._pinchStartLatLng=m.containerPointToLatLng(S.add(k)._divideBy(2))),this._startDist=S.distanceTo(k),this._startZoom=m.getZoom(),this._moved=!1,this._zooming=!0,m._stop(),ht(document,"touchmove",this._onTouchMove,this),ht(document,"touchend touchcancel",this._onTouchEnd,this),yn(f)}},_onTouchMove:function(f){if(!(!f.touches||f.touches.length!==2||!this._zooming)){var m=this._map,S=m.mouseEventToContainerPoint(f.touches[0]),k=m.mouseEventToContainerPoint(f.touches[1]),U=S.distanceTo(k)/this._startDist;if(this._zoom=m.getScaleZoom(U,this._startZoom),!m.options.bounceAtZoomLimits&&(this._zoom<m.getMinZoom()&&U<1||this._zoom>m.getMaxZoom()&&U>1)&&(this._zoom=m._limitZoom(this._zoom)),m.options.touchZoom==="center"){if(this._center=this._startLatLng,U===1)return}else{var te=S._add(k)._divideBy(2)._subtract(this._centerPoint);if(U===1&&te.x===0&&te.y===0)return;this._center=m.unproject(m.project(this._pinchStartLatLng,this._zoom).subtract(te),this._zoom)}this._moved||(m._moveStart(!0,!1),this._moved=!0),H(this._animRequest);var pe=a(m._move,m,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=V(pe,this,!0),yn(f)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,H(this._animRequest),Ut(document,"touchmove",this._onTouchMove,this),Ut(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))}});Et.addInitHook("addHandler","touchZoom",xs),Et.BoxZoom=_s,Et.DoubleClickZoom=Km,Et.Drag=$d,Et.Keyboard=Fd,Et.ScrollWheelZoom=zt,Et.TapHold=Il,Et.TouchZoom=xs,n.Bounds=z,n.Browser=rt,n.CRS=be,n.Canvas=Id,n.Circle=rc,n.CircleMarker=nc,n.Class=Q,n.Control=yr,n.DivIcon=cc,n.DivOverlay=Ti,n.DomEvent=Xu,n.DomUtil=El,n.Draggable=ri,n.Evented=se,n.FeatureGroup=ao,n.GeoJSON=Ei,n.GridLayer=$o,n.Handler=Lr,n.Icon=ga,n.ImageOverlay=Do,n.LatLng=ce,n.LatLngBounds=X,n.Layer=ii,n.LayerGroup=Lo,n.LineUtil=Im,n.Map=Et,n.Marker=so,n.Mixin=Od,n.Path=Io,n.Point=oe,n.PolyUtil=Ub,n.Polygon=lo,n.Polyline=br,n.Popup=uc,n.PosAnimation=Qu,n.Projection=Hb,n.Rectangle=Gm,n.Renderer=ji,n.SVG=ya,n.SVGOverlay=Nd,n.TileLayer=Fo,n.Tooltip=gs,n.Transformation=ue,n.Util=J,n.VideoOverlay=Rd,n.bind=a,n.bounds=ne,n.canvas=Dd,n.circle=Rl,n.circleMarker=Bm,n.control=Mo,n.divIcon=Wm,n.extend=i,n.featureGroup=$m,n.geoJSON=Um,n.geoJson=oi,n.gridLayer=ys,n.icon=Fm,n.imageOverlay=zm,n.latLng=de,n.latLngBounds=le,n.layerGroup=kl,n.map=No,n.marker=Yb,n.point=G,n.polygon=Xb,n.polyline=Zb,n.popup=vs,n.rectangle=Qb,n.setOptions=_,n.stamp=c,n.svg=fc,n.svgOverlay=Md,n.tileLayer=Ld,n.tooltip=Ml,n.transformation=ie,n.version=r,n.videoOverlay=Vm;var Ym=window.L;n.noConflict=function(){return window.L=Ym,this},window.L=n})}(Ch,Ch.exports)),Ch.exports}var pm=UOe();const O5=Nt(pm);function Fj(e,t,n){return Object.freeze({instance:e,context:t,container:n})}function Bj(e,t){return t==null?function(r,i){const o=F.useRef();return o.current||(o.current=e(r,i)),o}:function(r,i){const o=F.useRef();o.current||(o.current=e(r,i));const a=F.useRef(r),{instance:s}=o.current;return F.useEffect(function(){a.current!==r&&(t(s,r,a.current),a.current=r)},[s,r,i]),o}}function zOe(e,t){F.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 J9(e){return function(n){const r=X9(),i=e($j(n,r),r);return K9(r.map,n.attribution),Q9(i.current,n.eventHandlers),zOe(i.current,r),i}}function VOe(e,t){const n=Bj(e,t),r=J9(n);return IOe(r)}function WOe(e,t){const n=Bj(e),r=FOe(n,t);return DOe(r)}function qOe(e,t){const n=Bj(e,t),r=J9(n);return $Oe(r)}function HOe(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 bE(){return bE=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},bE.apply(this,arguments)}function GOe({bounds:e,boundsOptions:t,center:n,children:r,className:i,id:o,placeholder:a,style:s,whenReady:c,zoom:u,...h},p){const[v]=F.useState({className:i,id:o,style:s}),[b,x]=F.useState(null);F.useImperativeHandle(p,()=>(b==null?void 0:b.map)??null,[b]);const _=F.useCallback(O=>{if(O!==null&&b===null){const P=new pm.Map(O,h);n!=null&&u!=null?P.setView(n,u):e!=null&&P.fitBounds(e,t),c!=null&&P.whenReady(c),x(MOe(P))}},[]);F.useEffect(()=>()=>{b==null||b.map.remove()},[b]);const w=b?Z.createElement(Z9,{value:b},r):a??null;return Z.createElement("div",bE({},v,{ref:_}),w)}const KOe=F.forwardRef(GOe),YOe=VOe(function({position:t,...n},r){const i=new pm.Marker(t,n);return Fj(i,LOe(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())}),ZOe=WOe(function(t,n){const r=new pm.Popup(t,n.overlayContainer);return Fj(r,n)},function(t,n,{position:r},i){F.useEffect(function(){const{instance:a}=t;function s(u){u.popup===a&&(a.update(),i(!0))}function c(u){u.popup===a&&i(!1)}return n.map.on({popupopen:s,popupclose:c}),n.overlayContainer==null?(r!=null&&a.setLatLng(r),a.openOn(n.map)):n.overlayContainer.bindPopup(a),function(){var h;n.map.off({popupopen:s,popupclose:c}),(h=n.overlayContainer)==null||h.unbindPopup(),n.map.removeLayer(a)}},[t,n,i,r])}),XOe=qOe(function({url:t,...n},r){const i=new pm.TileLayer(t,$j(n,r));return Fj(i,r)},function(t,n,r){HOe(t,n,r);const{url:i}=n;i!=null&&i!==r.url&&t.setUrl(i)}),QOe={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},ez={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},jn={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},Sr={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},zs={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"};class Ne{static getFirstMatch(t,n){const r=n.match(t);return r&&r.length>0&&r[1]||""}static getSecondMatch(t,n){const r=n.match(t);return r&&r.length>1&&r[2]||""}static matchAndReturnConst(t,n,r){if(t.test(n))return r}static getWindowsVersionName(t){switch(t){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(t){const n=t.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(n.push(0),n[0]===10)switch(n[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(t){const n=t.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(n.push(0),!(n[0]===1&&n[1]<5)){if(n[0]===1&&n[1]<6)return"Cupcake";if(n[0]===1&&n[1]>=6)return"Donut";if(n[0]===2&&n[1]<2)return"Eclair";if(n[0]===2&&n[1]===2)return"Froyo";if(n[0]===2&&n[1]>2)return"Gingerbread";if(n[0]===3)return"Honeycomb";if(n[0]===4&&n[1]<1)return"Ice Cream Sandwich";if(n[0]===4&&n[1]<4)return"Jelly Bean";if(n[0]===4&&n[1]>=4)return"KitKat";if(n[0]===5)return"Lollipop";if(n[0]===6)return"Marshmallow";if(n[0]===7)return"Nougat";if(n[0]===8)return"Oreo";if(n[0]===9)return"Pie"}}static getVersionPrecision(t){return t.split(".").length}static compareVersions(t,n,r=!1){const i=Ne.getVersionPrecision(t),o=Ne.getVersionPrecision(n);let a=Math.max(i,o),s=0;const c=Ne.map([t,n],u=>{const h=a-Ne.getVersionPrecision(u),p=u+new Array(h+1).join(".0");return Ne.map(p.split("."),v=>new Array(20-v.length).join("0")+v).reverse()});for(r&&(s=a-Math.min(i,o)),a-=1;a>=s;){if(c[0][a]>c[1][a])return 1;if(c[0][a]===c[1][a]){if(a===s)return 0;a-=1}else if(c[0][a]<c[1][a])return-1}}static map(t,n){const r=[];let i;if(Array.prototype.map)return Array.prototype.map.call(t,n);for(i=0;i<t.length;i+=1)r.push(n(t[i]));return r}static find(t,n){let r,i;if(Array.prototype.find)return Array.prototype.find.call(t,n);for(r=0,i=t.length;r<i;r+=1){const o=t[r];if(n(o,r))return o}}static assign(t,...n){const r=t;let i,o;if(Object.assign)return Object.assign(t,...n);for(i=0,o=n.length;i<o;i+=1){const a=n[i];typeof a=="object"&&a!==null&&Object.keys(a).forEach(c=>{r[c]=a[c]})}return t}static getBrowserAlias(t){return QOe[t]}static getBrowserTypeByAlias(t){return ez[t]||""}}const Wt=/version\/(\d+(\.?_?\d+)+)/i,JOe=[{test:[/googlebot/i],describe(e){const t={name:"Googlebot"},n=Ne.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||Ne.getFirstMatch(Wt,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){const t={name:"Opera"},n=Ne.getFirstMatch(Wt,e)||Ne.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){const t={name:"Opera"},n=Ne.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||Ne.getFirstMatch(Wt,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){const t={name:"Samsung Internet for Android"},n=Ne.getFirstMatch(Wt,e)||Ne.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){const t={name:"NAVER Whale Browser"},n=Ne.getFirstMatch(Wt,e)||Ne.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){const t={name:"MZ Browser"},n=Ne.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||Ne.getFirstMatch(Wt,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){const t={name:"Focus"},n=Ne.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||Ne.getFirstMatch(Wt,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){const t={name:"Swing"},n=Ne.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||Ne.getFirstMatch(Wt,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){const t={name:"Opera Coast"},n=Ne.getFirstMatch(Wt,e)||Ne.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){const t={name:"Opera Touch"},n=Ne.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||Ne.getFirstMatch(Wt,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){const t={name:"Yandex Browser"},n=Ne.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||Ne.getFirstMatch(Wt,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){const t={name:"UC Browser"},n=Ne.getFirstMatch(Wt,e)||Ne.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){const t={name:"Maxthon"},n=Ne.getFirstMatch(Wt,e)||Ne.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){const t={name:"Epiphany"},n=Ne.getFirstMatch(Wt,e)||Ne.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){const t={name:"Puffin"},n=Ne.getFirstMatch(Wt,e)||Ne.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){const t={name:"Sleipnir"},n=Ne.getFirstMatch(Wt,e)||Ne.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){const t={name:"K-Meleon"},n=Ne.getFirstMatch(Wt,e)||Ne.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){const t={name:"WeChat"},n=Ne.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||Ne.getFirstMatch(Wt,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){const t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=Ne.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||Ne.getFirstMatch(Wt,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){const t={name:"Internet Explorer"},n=Ne.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){const t={name:"Microsoft Edge"},n=Ne.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){const t={name:"Microsoft Edge"},n=Ne.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){const t={name:"Vivaldi"},n=Ne.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){const t={name:"SeaMonkey"},n=Ne.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){const t={name:"Sailfish"},n=Ne.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){const t={name:"Amazon Silk"},n=Ne.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){const t={name:"PhantomJS"},n=Ne.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){const t={name:"SlimerJS"},n=Ne.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t={name:"BlackBerry"},n=Ne.getFirstMatch(Wt,e)||Ne.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){const t={name:"WebOS Browser"},n=Ne.getFirstMatch(Wt,e)||Ne.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){const t={name:"Bada"},n=Ne.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){const t={name:"Tizen"},n=Ne.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||Ne.getFirstMatch(Wt,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){const t={name:"QupZilla"},n=Ne.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||Ne.getFirstMatch(Wt,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){const t={name:"Firefox"},n=Ne.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){const t={name:"Electron"},n=Ne.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){const t={name:"Miui"},n=Ne.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){const t={name:"Chromium"},n=Ne.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||Ne.getFirstMatch(Wt,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){const t={name:"Chrome"},n=Ne.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){const t={name:"Google Search"},n=Ne.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){const t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){const t={name:"Android Browser"},n=Ne.getFirstMatch(Wt,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){const t={name:"PlayStation 4"},n=Ne.getFirstMatch(Wt,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){const t={name:"Safari"},n=Ne.getFirstMatch(Wt,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){const t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,i=e.search("\\(")!==-1?n:t;return{name:Ne.getFirstMatch(i,e),version:Ne.getSecondMatch(i,e)}}}],eSe=[{test:[/Roku\/DVP/],describe(e){const t=Ne.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:Sr.Roku,version:t}}},{test:[/windows phone/i],describe(e){const t=Ne.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:Sr.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){const t=Ne.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=Ne.getWindowsVersionName(t);return{name:Sr.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){const t={name:Sr.iOS},n=Ne.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){const t=Ne.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=Ne.getMacOSVersionName(t),r={name:Sr.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe(e){const t=Ne.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:Sr.iOS,version:t}}},{test(e){const t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){const t=Ne.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=Ne.getAndroidVersionName(t),r={name:Sr.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe(e){const t=Ne.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:Sr.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t=Ne.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||Ne.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||Ne.getFirstMatch(/\bbb(\d+)/i,e);return{name:Sr.BlackBerry,version:t}}},{test:[/bada/i],describe(e){const t=Ne.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:Sr.Bada,version:t}}},{test:[/tizen/i],describe(e){const t=Ne.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:Sr.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:Sr.Linux}}},{test:[/CrOS/],describe(){return{name:Sr.ChromeOS}}},{test:[/PlayStation 4/],describe(e){const t=Ne.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:Sr.PlayStation4,version:t}}}],tSe=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){const t=Ne.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:jn.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:jn.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:jn.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:jn.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:jn.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:jn.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:jn.tablet}}},{test(e){const t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){const t=Ne.getFirstMatch(/(ipod|iphone)/i,e);return{type:jn.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:jn.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:jn.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:jn.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:jn.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:jn.mobile,vendor:"Microsoft"}}},{test(e){const t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:jn.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:jn.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:jn.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:jn.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:jn.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:jn.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:jn.tv}}}],nSe=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:zs.Blink};const n=Ne.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:zs.EdgeHTML,version:n}}},{test:[/trident/i],describe(e){const t={name:zs.Trident},n=Ne.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){const t={name:zs.Presto},n=Ne.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){const t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){const t={name:zs.Gecko},n=Ne.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:zs.Blink}}},{test:[/(apple)?webkit/i],describe(e){const t={name:zs.WebKit},n=Ne.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];class S5{constructor(t,n=!1){if(t==null||t==="")throw new Error("UserAgent parameter can't be empty");this._ua=t,this.parsedResult={},n!==!0&&this.parse()}getUA(){return this._ua}test(t){return t.test(this._ua)}parseBrowser(){this.parsedResult.browser={};const t=Ne.find(JOe,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(t){return t?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};const t=Ne.find(eSe,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os}getOSName(t){const{name:n}=this.getOS();return t?String(n).toLowerCase()||"":n||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(t=!1){const{type:n}=this.getPlatform();return t?String(n).toLowerCase()||"":n||""}parsePlatform(){this.parsedResult.platform={};const t=Ne.find(tSe,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(t){return t?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};const t=Ne.find(nSe,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return Ne.assign({},this.parsedResult)}satisfies(t){const n={};let r=0;const i={};let o=0;if(Object.keys(t).forEach(s=>{const c=t[s];typeof c=="string"?(i[s]=c,o+=1):typeof c=="object"&&(n[s]=c,r+=1)}),r>0){const s=Object.keys(n),c=Ne.find(s,h=>this.isOS(h));if(c){const h=this.satisfies(n[c]);if(h!==void 0)return h}const u=Ne.find(s,h=>this.isPlatform(h));if(u){const h=this.satisfies(n[u]);if(h!==void 0)return h}}if(o>0){const s=Object.keys(i),c=Ne.find(s,u=>this.isBrowser(u,!0));if(c!==void 0)return this.compareVersion(i[c])}}isBrowser(t,n=!1){const r=this.getBrowserName().toLowerCase();let i=t.toLowerCase();const o=Ne.getBrowserTypeByAlias(i);return n&&o&&(i=o.toLowerCase()),i===r}compareVersion(t){let n=[0],r=t,i=!1;const o=this.getBrowserVersion();if(typeof o=="string")return t[0]===">"||t[0]==="<"?(r=t.substr(1),t[1]==="="?(i=!0,r=t.substr(2)):n=[],t[0]===">"?n.push(1):n.push(-1)):t[0]==="="?r=t.substr(1):t[0]==="~"&&(i=!0,r=t.substr(1)),n.indexOf(Ne.compareVersions(o,r,i))>-1}isOS(t){return this.getOSName(!0)===String(t).toLowerCase()}isPlatform(t){return this.getPlatformType(!0)===String(t).toLowerCase()}isEngine(t){return this.getEngineName(!0)===String(t).toLowerCase()}is(t,n=!1){return this.isBrowser(t,n)||this.isOS(t)||this.isPlatform(t)}some(t=[]){return t.some(n=>this.is(n))}}/*!
* Bowser - a browser detector
* https://github.com/lancedikson/bowser
* MIT License | (c) Dustin Diaz 2012-2015
* MIT License | (c) Denis Demchenko 2015-2019
*/class rSe{static getParser(t,n=!1){if(typeof t!="string")throw new Error("UserAgent should be a string");return new S5(t,n)}static parse(t){return new S5(t).getResult()}static get BROWSER_MAP(){return ez}static get ENGINE_MAP(){return zs}static get OS_MAP(){return Sr}static get PLATFORMS_MAP(){return jn}}var iSe=Object.defineProperty,oSe=(e,t,n)=>t in e?iSe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,nl=(e,t,n)=>oSe(e,typeof t!="symbol"?t+"":t,n);const aSe=e=>(e==null?void 0:e.type)===PT.INVALID_ARGUMENT,sSe=e=>(e==null?void 0:e.type)===PT.INVALID_SHORT_URL_DELETION,lSe=e=>!!e&&typeof e=="object"&&["type","detail","title","status"].every(t=>t in e),Si=e=>lSe(e)?e:void 0,Uj=e=>"error"in e,ia=({errorData:e,fallbackMessage:t})=>g.jsxs(g.Fragment,{children:[(e==null?void 0:e.detail)??t,aSe(e)&&g.jsxs("p",{className:"mb-0",children:["Invalid elements: [",e.invalidElements.join(", "),"]"]})]}),ku=({style:e,className:t,...n})=>g.jsx("button",{type:"button",className:Be("border-0",t),style:{backgroundColor:"inherit",fontWeight:"inherit",color:"inherit",...e},...n}),tz=F.createContext(""),uSe=tz.Provider,_l=()=>F.useContext(tz),nz=F.createContext(void 0),{Provider:zj}=nz,Eb=()=>F.useContext(nz),cSe=5,Vj=()=>{const[e,t]=F.useState([]),n=F.useMemo(()=>e.length>=cSe,[e.length]),r=F.useCallback(s=>!n&&t(c=>[...c,s]),[n]),i=F.useCallback(s=>!n&&e.every(c=>c.name!==s),[e,n]),o=F.useCallback(s=>t(c=>c.filter(u=>u!==s)),[]),a=F.useCallback(()=>t([]),[]);return{itemsToCompare:e,addItemToCompare:r,removeItemToCompare:o,clearItemsToCompare:a,canAddItemWithName:i}},Wj=({className:e,type:t})=>{const n=_l(),r=Eb(),i=F.useMemo(()=>r?encodeURIComponent(r.itemsToCompare.map(c=>c.query).join(",")):"",[r]);if(!r||r.itemsToCompare.length===0)return null;const{itemsToCompare:o,clearItemsToCompare:a,removeItemToCompare:s}=r;return g.jsx("div",{className:Be("top-sticky",e),children:g.jsxs(qt,{bodyClassName:"d-md-flex gap-3 align-items-center",children:[g.jsx("ul",{className:"d-flex flex-wrap gap-1 flex-grow-1 p-0 m-0",children:o.map((c,u)=>{var h;return g.jsxs("li",{className:Be("badge pe-1",{"bg-secondary":!((h=c.style)!=null&&h.backgroundColor)}),style:c.style,children:[c.name,g.jsx(ku,{"aria-label":`Remove ${c.name}`,className:"fw-bold fs-6",onClick:()=>s(c),children:"×"})]},`${c.name}_${u}`)})}),g.jsxs("div",{className:"d-flex mt-3 mt-md-0",children:[g.jsxs(_t,{outline:!0,color:"primary",className:"flex-grow-1 indivisible",disabled:o.length<2,tag:Jt,to:`${n}/${t}/compare-visits?${t}=${i}`,children:[g.jsx(Ge,{icon:E0,fixedWidth:!0,className:"me-1"}),"Compare (",o.length,"/5) »"]}),g.jsx(_t,{"aria-label":"Close compare",outline:!0,color:"secondary",className:"ms-2 fw-bold",onClick:a,children:"×"})]})]})})},fSe=(e,{maxVersion:t,minVersion:n})=>{const r=!n||VP(e,n,">=");return(!t||VP(e,t,"<="))&&r},rz={excludeBotsOnShortUrls:{minVersion:"3.4.0"},filterDisabledUrls:{minVersion:"3.4.0"},deviceLongUrls:{minVersion:"3.5.0",maxVersion:"3.*.*"},shortUrlVisitsDeletion:{minVersion:"3.6.0"},orphanVisitsDeletion:{minVersion:"3.7.0"},shortUrlRedirectRules:{minVersion:"4.0.0"},qrCodeColors:{minVersion:"4.0.0"},urlValidation:{maxVersion:"3.*.*"},ipRedirectCondition:{minVersion:"4.2.0"},geolocationRedirectCondition:{minVersion:"4.3.0"},filterShortUrlsByDomain:{minVersion:"4.3.0"}};Object.freeze(rz);const vo=(e,t)=>fSe(t==="latest"?"999.99.99":t,rz[e]),iz=e=>({excludeBotsOnShortUrls:vo("excludeBotsOnShortUrls",e),filterDisabledUrls:vo("filterDisabledUrls",e),deviceLongUrls:vo("deviceLongUrls",e),shortUrlVisitsDeletion:vo("shortUrlVisitsDeletion",e),orphanVisitsDeletion:vo("orphanVisitsDeletion",e),shortUrlRedirectRules:vo("shortUrlRedirectRules",e),qrCodeColors:vo("qrCodeColors",e),urlValidation:vo("urlValidation",e),ipRedirectCondition:vo("ipRedirectCondition",e),geolocationRedirectCondition:vo("geolocationRedirectCondition",e),filterShortUrlsByDomain:vo("filterShortUrlsByDomain",e)}),oz=F.createContext(iz("0.0.0")),dSe=oz.Provider,hSe=e=>F.useMemo(()=>iz(e),[e]),_i=e=>F.useContext(oz)[e],qf="DEFAULT",_g=({className:e="",placement:t,children:n})=>{const r=Xi();return g.jsxs(g.Fragment,{children:[g.jsx("span",{className:e,ref:r,children:g.jsx(Ge,{icon:VE})}),g.jsx(Oi,{target:r,placement:t,children:n})]})},az=e=>t=>{t.preventDefault(),e()},qj=(e,t,n=1)=>CT(n,e+1).map(t),pSe=e=>Array.isArray(e)&&e.length===0||typeof e=="string"&&e===""||typeof e=="object"&&Object.keys(e).length===0,au=e=>e!=null&&!pSe(e),IO=e=>e||null,_E=e=>e?"true":"false",DO=e=>e===void 0?void 0:_E(e),$O=({isLast:e,...t})=>g.jsx(vg,{...t,required:!1,type:"url",placeholder:"No redirect",className:e?"mb-0":""}),mSe=({isOpen:e,toggle:t,domain:n,editDomainRedirects:r})=>{var i,o,a;const[s,c]=F.useState(((i=n.redirects)==null?void 0:i.baseUrlRedirect)??""),[u,h]=F.useState(((o=n.redirects)==null?void 0:o.regular404Redirect)??""),[p,v]=F.useState(((a=n.redirects)==null?void 0:a.invalidShortUrlRedirect)??""),b=az(async()=>r({domain:n.domain,redirects:{baseUrlRedirect:IO(s),regular404Redirect:IO(u),invalidShortUrlRedirect:IO(p)}}).then(t));return g.jsx(Zr,{isOpen:e,toggle:t,centered:!0,children:g.jsxs("form",{name:"domainRedirectsModal",onSubmit:b,children:[g.jsxs(aa,{toggle:t,children:["Edit redirects for ",g.jsx("b",{children:n.domain})]}),g.jsxs(Po,{children:[g.jsxs($O,{value:s,onChange:c,children:[g.jsxs(_g,{className:"me-2",placement:"bottom",children:["Visitors accessing the base url, as in ",g.jsxs("b",{children:["https://",n.domain,"/"]}),", will be redirected to this URL."]}),"Base URL"]}),g.jsxs($O,{value:u,onChange:h,children:[g.jsxs(_g,{className:"me-2",placement:"bottom",children:["Visitors accessing a url not matching a short URL pattern, as in ",g.jsxs("b",{children:["https://",n.domain,"/???/[...]"]}),", will be redirected to this URL."]}),"Regular 404"]}),g.jsxs($O,{value:p,isLast:!0,onChange:v,children:[g.jsx(_g,{className:"me-2",placement:"bottom",children:"Visitors accessing a url matching a short URL pattern, but not matching an existing short code, will be redirected to this URL."}),"Invalid short URL"]})]}),g.jsxs(Qa,{children:[g.jsx(_t,{color:"link",type:"button",onClick:t,children:"Cancel"}),g.jsx(_t,{color:"primary",children:"Save"})]})]})})},vSe=({domain:e,editDomainRedirects:t})=>{const[n,r]=cn(),i=_l(),o=Eb(),a=_i("filterShortUrlsByDomain");return g.jsxs(I0,{children:[g.jsxs(Ye,{tag:Jt,to:`${i}/domain/${e.domain}${e.isDefault?`_${qf}`:""}/visits`,children:[g.jsx(Ge,{icon:zE,fixedWidth:!0})," Visit stats"]}),g.jsxs(Ye,{disabled:!o||!o.canAddItemWithName(e.domain),onClick:()=>o==null?void 0:o.addItemToCompare({name:e.domain,query:e.domain}),children:[g.jsx(Ge,{icon:E0,fixedWidth:!0})," Compare visits"]}),a&&g.jsxs(Ye,{tag:Jt,to:`${i}/list-short-urls/1?domain=${e.isDefault?qf:e.domain}`,children:[g.jsx(Ge,{icon:BE,fixedWidth:!0})," Short URLs"]}),g.jsx(Ye,{divider:!0,tag:"hr"}),g.jsxs(Ye,{onClick:r,children:[g.jsx(Ge,{icon:UE,fixedWidth:!0})," Edit redirects"]}),g.jsx(mSe,{domain:e,isOpen:n,toggle:r,editDomainRedirects:t})]})},gSe=(e,t)=>{const n=r=>i=>{i.event.composedPath().some(({classList:o})=>o==null?void 0:o.contains("visits-table"))||document.querySelector(".modal")||r()};return Moe({delta:40,onSwipedLeft:n(t),onSwipedRight:n(e)})},ySe=(e,t)=>{const[n,r]=F.useState(t),i=F.useCallback(o=>{const{location:a,history:s}=window,c=TF(a.search);c[e]=o,s.pushState(null,"",`${a.pathname}?${L0(c)}`),r(o)},[e]);return[n,i]},Hj=e=>{const t=Zf();return F.useMemo(()=>{var n;return((n=t[e])==null?void 0:n.split(",").filter(Boolean))??[]},[e,t])},bSe=()=>{const e=oa();return F.useCallback(()=>e(-1),[e])},Gj=(e,t)=>{const n=F.useCallback(()=>t(`(max-width: ${e}px)`).matches,[t,e]),[r,i]=F.useState(n());return F.useEffect(()=>{const o=()=>i(n());return window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[n]),r},_Se=(e,t,n)=>{F.useEffect(()=>{if(!n)return()=>{};const r=i=>i.key===e&&t();return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)},[n,t,e])},xSe=({status:e,matchMedia:t=window.matchMedia})=>{const n=Xi(),r=Gj(991,t);return e==="validating"?g.jsx(Ge,{fixedWidth:!0,icon:X8,spin:!0}):g.jsxs(g.Fragment,{children:[g.jsx("span",{ref:n,children:e==="valid"?g.jsx(Ge,{fixedWidth:!0,icon:Yh,className:"text-muted"}):g.jsx(Ge,{fixedWidth:!0,icon:eS,className:"text-danger"})}),g.jsx(Oi,{target:n,placement:r?"right":"left",autohide:e==="valid",children:e==="valid"?"Congratulations! This domain is properly configured.":g.jsxs("span",{children:["Oops! There is some missing configuration, and short URLs shared with this domain will not work.",g.jsx("br",{}),"Check the ",g.jsx(Gr,{href:"https://slnk.to/multi-domain-docs",children:"documentation"})," in order to find out what is missing."]})})]})},FO=({fallback:e})=>g.jsxs("span",{className:"text-muted",children:[!e&&g.jsx("small",{children:"No redirect"}),e&&g.jsxs(g.Fragment,{children:[e," ",g.jsx("small",{children:"(as fallback)"})]})]}),wSe=()=>g.jsxs(g.Fragment,{children:[g.jsx(Ge,{fixedWidth:!0,icon:fK,className:"text-primary",id:"defaultDomainIcon"}),g.jsx(Oi,{target:"defaultDomainIcon",placement:"right",children:"Default domain"})]}),OSe=({domain:e,editDomainRedirects:t,checkDomainHealth:n,defaultRedirects:r})=>{const{domain:i,isDefault:o,redirects:a,status:s}=e;return F.useEffect(()=>{n(e.domain)},[n,e.domain]),g.jsxs("tr",{className:"responsive-table__row",children:[g.jsx("td",{className:"responsive-table__cell","data-th":"Is default domain",children:o&&g.jsx(wSe,{})}),g.jsx("th",{className:"responsive-table__cell","data-th":"Domain",children:i}),g.jsx("td",{className:"responsive-table__cell","data-th":"Base path redirect",children:(a==null?void 0:a.baseUrlRedirect)??g.jsx(FO,{fallback:r==null?void 0:r.baseUrlRedirect})}),g.jsx("td",{className:"responsive-table__cell","data-th":"Regular 404 redirect",children:(a==null?void 0:a.regular404Redirect)??g.jsx(FO,{fallback:r==null?void 0:r.regular404Redirect})}),g.jsx("td",{className:"responsive-table__cell","data-th":"Invalid short URL redirect",children:(a==null?void 0:a.invalidShortUrlRedirect)??g.jsx(FO,{fallback:r==null?void 0:r.invalidShortUrlRedirect})}),g.jsx("td",{className:"responsive-table__cell text-lg-center","data-th":"Status",children:g.jsx(xSe,{status:s})}),g.jsx("td",{className:"responsive-table__cell text-end",children:g.jsx(vSe,{domain:e,editDomainRedirects:t})})]})},P5=[{value:"Is default domain",isHidden:!0},{value:"Domain",isHidden:!1},{value:"Base path redirect",isHidden:!1},{value:"Regular 404 redirect",isHidden:!1},{value:"Invalid short URL redirect",isHidden:!1},{value:"Domain status",isHidden:!0},{value:"Options",isHidden:!0}],SSe=({domainsList:e,filterDomains:t,editDomainRedirects:n,checkDomainHealth:r})=>{var i;const{filteredDomains:o,defaultRedirects:a,loading:s,error:c,errorData:u}=e,h=a??((i=o.find(({isDefault:v})=>v))==null?void 0:i.redirects),p=Vj();return s?g.jsx(za,{loading:!0}):g.jsxs(zj,{value:p,children:[g.jsx(tm,{className:"mb-3",onChange:t}),g.jsx(Wj,{type:"domains",className:"mb-3"}),c?g.jsx(Tr,{type:"error",children:g.jsx(ia,{errorData:u,fallbackMessage:"Error loading domains :("})}):g.jsx(qt,{children:g.jsxs("table",{className:"table table-hover responsive-table mb-0",children:[g.jsx("thead",{className:"responsive-table__header",children:g.jsx("tr",{children:P5.map((v,b)=>g.jsx("th",{children:g.jsx("span",{className:v.isHidden?"sr-only":void 0,children:v.value})},b))})}),g.jsxs("tbody",{children:[o.length<1&&g.jsx("tr",{children:g.jsx("td",{colSpan:P5.length,className:"text-center",children:"No results found"})}),o.map(v=>g.jsx(OSe,{domain:v,editDomainRedirects:n,checkDomainHealth:r,defaultRedirects:h},v.domain))]})]})})]})},qn=(e,t)=>HF(e,t,{serializeError:n=>n}),PSe="shlink/domainRedirects/EDIT_DOMAIN_REDIRECTS",CSe=e=>qn(PSe,async({domain:t,redirects:n})=>{const r=await e().editDomainRedirects({domain:t,...n});return{domain:t,redirects:r}}),rg="shlink/domainsList",ig={domains:[],filteredDomains:[],loading:!1,error:!1},C5=({domain:e,redirects:t})=>n=>n.domain!==e?n:{...n,redirects:t},E5=(e,t)=>n=>n.domain!==e?n:{...n,status:t},ESe=(e,t,n)=>{const r=qn(`${rg}/listDomains`,async()=>{const{data:s,defaultRedirects:c}=await e().listDomains();return{domains:s.map(u=>({...u,status:"validating"})),defaultRedirects:c}}),i=qn(`${rg}/checkDomainHealth`,async s=>{try{const{status:c}=await e().health(s);return{domain:s,status:c==="pass"?"valid":"invalid"}}catch{return{domain:s,status:"invalid"}}}),o=jr(`${rg}/filterDomains`),{reducer:a}=An({name:rg,initialState:ig,reducers:{},extraReducers:s=>{s.addCase(r.pending,()=>({...ig,loading:!0})),s.addCase(r.rejected,(c,{error:u})=>({...ig,error:!0,errorData:Si(u)})),s.addCase(r.fulfilled,(c,{payload:u})=>({...ig,...u,filteredDomains:u.domains})),s.addCase(i.fulfilled,({domains:c,filteredDomains:u,...h},{payload:p})=>({...h,domains:c.map(E5(p.domain,p.status)),filteredDomains:u.map(E5(p.domain,p.status))})),s.addCase(o,(c,{payload:u})=>({...c,filteredDomains:c.domains.filter(({domain:h})=>h.toLowerCase().match(u.toLowerCase()))})),s.addCase(t.fulfilled,(c,{payload:u})=>({...c,domains:c.domains.map(C5(u)),filteredDomains:c.filteredDomains.map(C5(u))})),s.addCase(n.fulfilled,(c,{payload:u})=>{u.domain===null||c.domains.some(h=>h.domain===u.domain)||c.domains.push({domain:u.domain,status:"validating",isDefault:!1,redirects:{baseUrlRedirect:null,regular404Redirect:null,invalidShortUrlRedirect:null}})})}});return{reducer:a,listDomains:r,checkDomainHealth:i,filterDomains:o}},TSe=(e,t)=>{e.serviceFactory("ManageDomains",()=>SSe),e.decorator("ManageDomains",t(["domainsList"],["filterDomains","editDomainRedirects","checkDomainHealth"])),e.serviceFactory("domainsListReducerCreator",ESe,"apiClientFactory","editDomainRedirects","createShortUrl"),e.serviceFactory("domainsListReducer",n=>n.reducer,"domainsListReducerCreator"),e.serviceFactory("listDomains",n=>n.listDomains,"domainsListReducerCreator"),e.serviceFactory("filterDomains",n=>n.filterDomains,"domainsListReducerCreator"),e.serviceFactory("editDomainRedirects",CSe,"apiClientFactory"),e.serviceFactory("checkDomainHealth",n=>n.checkDomainHealth,"domainsListReducerCreator")},T5="shlink/mercure",jSe={loading:!0,error:!1},ASe=e=>{const t=qn(`${T5}/loadMercureInfo`,r=>{if(r&&r.realTimeUpdates&&!r.realTimeUpdates.enabled)throw new Error("Real time updates not enabled");return e().mercureInfo()}),{reducer:n}=An({name:T5,initialState:jSe,reducers:{},extraReducers:r=>{r.addCase(t.pending,i=>({...i,loading:!0,error:!1})),r.addCase(t.rejected,i=>({...i,loading:!1,error:!0})),r.addCase(t.fulfilled,(i,{payload:o})=>({...o,loading:!1,error:!1}))}});return{loadMercureInfo:t,reducer:n}},kSe=e=>{e.serviceFactory("mercureInfoReducerCreator",ASe,"apiClientFactory"),e.serviceFactory("mercureInfoReducer",t=>t.reducer,"mercureInfoReducerCreator"),e.serviceFactory("loadMercureInfo",t=>t.loadMercureInfo,"mercureInfoReducerCreator")};function fn(e){return F.useRef(e).current}function dn(e,t){return(n,r=globalThis.console)=>(t.forEach(i=>{const o=n[i];e[i]=o}),e)}const RSe=(e,t,n,r)=>{const{mercureHubUrl:i,token:o,loading:a,error:s}=e;if(a||s||!i)return;const c=({data:p})=>n(JSON.parse(p)),u=({status:p})=>p===401&&r(),h=t.map(p=>{const v=new URL(i);v.searchParams.append("topic",p);const b=new Doe.EventSourcePolyfill(v,{headers:{Authorization:`Bearer ${o}`}});return b.onmessage=c,b.onerror=u,b});return()=>h.forEach(p=>p.close())};function jo(e,t){const n=new Set;return r=>{const{createNewVisits:i,loadMercureInfo:o,mercureInfo:a}=r,s=Gf();return F.useEffect(()=>{const{interval:c}=a,u=b=>c?n.add(b):i([b]),h=t(s),p=RSe(a,h,u,o);if(!c)return p;const v=setInterval(()=>{i([...n]),n.clear()},c*1e3*60);return()=>{clearInterval(v),p==null||p()}},[i,o,a,s]),g.jsx(e,{...r})}}class kr{}nl(kr,"visits","https://shlink.io/new-visit"),nl(kr,"orphanVisits","https://shlink.io/new-orphan-visit"),nl(kr,"shortUrlVisits",e=>`https://shlink.io/new-visit/${e}`);const cd=jr("shlink/visitCreation/createNewVisits",e=>({payload:{createdVisits:e}})),Wh=(e,t,n)=>n==null?e.shortCode===t&&!e.domain:e.shortCode===t&&e.domain===n,NSe=(e,t)=>!e.domain&&t===qf?!0:e.domain===t,MSe=(e,t)=>{const n=(t==null?void 0:t.validateUrls)??!1;return e?{longUrl:e.longUrl,tags:e.tags,title:e.title??void 0,domain:e.domain??void 0,validSince:e.meta.validSince??void 0,validUntil:e.meta.validUntil??void 0,maxVisits:e.meta.maxVisits??void 0,crawlable:e.crawlable,forwardQuery:e.forwardQuery,deviceLongUrls:e.deviceLongUrls&&{android:e.deviceLongUrls.android??void 0,ios:e.deviceLongUrls.ios??void 0,desktop:e.deviceLongUrls.desktop??void 0},validateUrl:n}:{longUrl:"",validateUrl:n}},sz=e=>e.replaceAll("/","__"),Kj=e=>e.replaceAll("__","/"),Yj=({domain:e,shortCode:t})=>`${e??qf}__${sz(t)}`,lz=e=>{const[t,n]=e.split(/__(.+)/);if(!n)throw new Error(`It was not possible to parse domain and short code from "${e}"`);return{domain:t===qf?null:t,shortCode:Kj(n)}},Zj="shlink/shortUrlDeletion",j5={shortCode:"",loading:!1,deleted:!1,error:!1},LSe=e=>qn(`${Zj}/deleteShortUrl`,async({shortCode:t,domain:n})=>(await e().deleteShortUrl(t,n),{shortCode:t,domain:n})),uz=jr(`${Zj}/shortUrlDeleted`),ISe=e=>{const{actions:t,reducer:n}=An({name:Zj,initialState:j5,reducers:{resetDeleteShortUrl:()=>j5},extraReducers:i=>{i.addCase(e.pending,o=>({...o,loading:!0,error:!1,deleted:!1})),i.addCase(e.rejected,(o,{error:a})=>({...o,errorData:Si(a),loading:!1,error:!0,deleted:!1})),i.addCase(e.fulfilled,(o,{payload:a})=>({...o,shortCode:a.shortCode,loading:!1,error:!1,deleted:!0}))}}),{resetDeleteShortUrl:r}=t;return{reducer:n,resetDeleteShortUrl:r}},cz="shlink/shortUrlsList",fz=5,DSe={loading:!0,error:!1},$Se=e=>qn(`${cz}/listShortUrls`,t=>e().listShortUrls(t??{})),FSe=(e,t,n)=>An({name:cz,initialState:DSe,reducers:{},extraReducers:r=>{r.addCase(e.pending,i=>({...i,loading:!0,error:!1})),r.addCase(e.rejected,()=>({loading:!1,error:!0})),r.addCase(e.fulfilled,(i,{payload:o})=>({loading:!1,error:!1,shortUrls:o})),r.addCase(n.fulfilled,(i,{payload:o})=>{i.shortUrls&&(i.shortUrls.data=[o,...i.shortUrls.data.slice(0,fz-1)],i.shortUrls.pagination.totalItems+=1)}),r.addCase(t.fulfilled,(i,{payload:o})=>{i.shortUrls&&(i.shortUrls.data=i.shortUrls.data.map(a=>{const{shortCode:s,domain:c}=o;return Wh(a,s,c)?o:a}))}),r.addCase(uz,(i,{payload:o})=>{i.shortUrls&&(i.shortUrls.data=i.shortUrls.data.filter(a=>!Wh(a,o.shortCode,o.domain)),i.shortUrls.pagination.totalItems-=1)}),r.addCase(cd,(i,{payload:o})=>{i.shortUrls&&(i.shortUrls.data=i.shortUrls.data.map(a=>{var s;return((s=o.createdVisits.findLast(({shortUrl:c})=>c&&Wh(a,c.shortCode,c.domain)))==null?void 0:s.shortUrl)??a}))})}}),A5=10,{ceil:BSe}=Math,USe=new Intl.NumberFormat("en-US"),Cn=e=>USe.format(Number(e)),zSe=e=>BSe(e/A5)*A5,xE=({children:e,title:t,link:n,tooltip:r})=>{const i=Xi();return g.jsxs(g.Fragment,{children:[g.jsxs(wi,{innerRef:i,className:"highlight-card",body:!0,tag:Jt,to:n,children:[g.jsx(Ge,{size:"3x",className:"highlight-card__link-icon",icon:Xoe}),g.jsx(mF,{className:"lh-sm fw-semibold text-uppercase fs-5 highlight-card__title",children:t}),g.jsx(pF,{className:"fs-2 fw-semibold lh-sm",children:e})]}),r&&g.jsx(Oi,{target:i,placement:"bottom",children:r})]})},k5=({loading:e,excludeBots:t,visitsSummary:n,...r})=>g.jsx(xE,{tooltip:n.bots!==void 0?g.jsxs(g.Fragment,{children:[t?"Plus":"Including"," ",g.jsx("strong",{children:Cn(n.bots)})," potential bot visits"]}):void 0,...r,children:e?"Loading...":Cn(t&&n.nonBots?n.nonBots:n.total)}),R5=({children:e,titleLinkText:t,titleLink:n,title:r})=>g.jsxs(wi,{children:[g.jsxs(Qp,{className:"d-flex justify-content-between align-items-center",children:[g.jsx("span",{className:"d-sm-none",children:r}),g.jsx("h5",{className:"d-none d-sm-inline m-0",children:r}),g.jsxs(Jt,{to:n,children:[t," »"]})]}),g.jsx(Xp,{children:e})]}),dz=jo(({shortUrlsList:e,listShortUrls:t,tagsList:n,loadVisitsOverview:r,visitsOverview:i})=>{const{ShortUrlsTable:o,CreateShortUrl:a}=fn(dz),{loading:s,shortUrls:c}=e,{loading:u}=n,{loading:h,nonOrphanVisits:p,orphanVisits:v}=i,b=_l(),x=oa(),_=Rr("visits");return F.useEffect(()=>{t({itemsPerPage:fz,orderBy:{field:"dateCreated",dir:"DESC"}}),r()},[t,r]),g.jsxs(g.Fragment,{children:[g.jsxs(qi,{children:[g.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:g.jsx(k5,{title:"Visits",link:`${b}/non-orphan-visits`,excludeBots:(_==null?void 0:_.excludeBots)??!1,loading:h,visitsSummary:p})}),g.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:g.jsx(k5,{title:"Orphan visits",link:`${b}/orphan-visits`,excludeBots:(_==null?void 0:_.excludeBots)??!1,loading:h,visitsSummary:v})}),g.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:g.jsx(xE,{title:"Short URLs",link:`${b}/list-short-urls/1`,children:s?"Loading...":Cn((c==null?void 0:c.pagination.totalItems)??0)})}),g.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:g.jsx(xE,{title:"Tags",link:`${b}/manage-tags`,children:u?"Loading...":Cn(n.tags.length)})})]}),g.jsxs("div",{className:"d-flex flex-column gap-3",children:[g.jsx(R5,{title:"Create a short URL",titleLinkText:"Advanced options",titleLink:`${b}/create-short-url`,children:g.jsx(a,{basicMode:!0})}),g.jsx(R5,{title:"Recently created URLs",titleLinkText:"See all",titleLink:`${b}/list-short-urls/1`,children:g.jsx(o,{shortUrlsList:e,className:"mb-0",onTagClick:w=>x(`${b}/list-short-urls/1?tags=${encodeURIComponent(w)}`)})})]})]})},()=>[kr.visits,kr.orphanVisits]),VSe=dn(dz,["ShortUrlsTable","CreateShortUrl"]);function WSe(e,t){e.factory("Overview",VSe),e.decorator("Overview",t(["shortUrlsList","tagsList","mercureInfo","visitsOverview"],["listShortUrls","createNewVisits","loadMercureInfo","loadVisitsOverview"]))}const hz="shlink/setShortUrlRedirectRules",N5={saving:!1,saved:!1,error:!1},qSe=e=>qn(`${hz}/setShortUrlRedirectRules`,({shortUrl:t,data:n})=>{const{shortCode:r,domain:i}=t;return e().setShortUrlRedirectRules(r,i,n)}),HSe=e=>{const{reducer:t,actions:n}=An({name:hz,initialState:N5,reducers:{resetSetRules:()=>N5},extraReducers:i=>{i.addCase(e.pending,()=>({saving:!0,saved:!1,error:!1})),i.addCase(e.rejected,(o,{error:a})=>({saving:!1,saved:!1,error:!0,errorData:Si(a)})),i.addCase(e.fulfilled,()=>({saving:!1,error:!1,saved:!0}))}}),{resetSetRules:r}=n;return{reducer:t,resetSetRules:r}},pz="shlink/getShortUrlRedirectRules",GSe={loading:!0,error:!1},KSe=e=>qn(`${pz}/getShortUrlRedirectRules`,({shortCode:t,domain:n})=>e().getShortUrlRedirectRules(t,n)),YSe=e=>An({name:pz,initialState:GSe,reducers:{},extraReducers:t=>{t.addCase(e.pending,()=>({loading:!0,error:!1})),t.addCase(e.rejected,()=>({loading:!1,error:!0})),t.addCase(e.fulfilled,(n,{payload:r})=>({loading:!1,error:!1,...r}))}});function ZSe(e,t){var n=!1;return function(...r){n||(e.call(null,...r),n=!0,setTimeout(function(){n=!1},t))}}function mz(e){return e.split(" ").filter(t=>t)}var vz=typeof window<"u";function Ru(e,t,n=!1){if(!t)return;const r=mz(t);if(r.length&&!r.includes("longTouch"))for(const i of e){if(!mm(i)||!Jo.has(i)){i.classList.add(...r);continue}const o=[],a=Jo.get(i);if(a){for(const s of r)i.classList.contains(s)?i.classList.contains(s)&&n===!1&&o.push(s):i.classList.add(s);a.privateClasses=o,Jo.set(i,a)}}}function f0(e,t){if(!t)return;const n=mz(t);if(n.length)for(const r of e){if(!mm(r)){r.classList.remove(...n);continue}const i=Jo.get(r);if(i)for(const o of n)i.privateClasses.includes(o)||r.classList.remove(o)}}function gz(e){let t=e.parentNode;for(;t!==null&&t.nodeType===1&&t instanceof HTMLElement;){const n=window.getComputedStyle(t).getPropertyValue("overflow");if(n==="scroll"||n==="auto")return t;t=t.parentNode}return document.documentElement}function XSe(e){if(!(e.e instanceof TouchEvent))return;const t=e.e.touches[0].clientX,n=e.e.touches[0].clientY;let r=document.elementFromPoint(t,n);if(!mm(r))return;let i,o=!0;for(;r&&o;){if(Jo.has(r)||xo.has(r)){o=!1,i=xo.has(r);break}r=r.parentNode}if(i){const a=xo.get(r);return a?{parent:{el:r,data:a}}:void 0}else{const a=Jo.get(r);if(!a)return;const s=xo.get(r.parentNode);return s?{node:{el:r,data:a},parent:{el:r.parentNode,data:s}}:void 0}}function mm(e){return e instanceof HTMLElement&&e.parentNode instanceof HTMLElement}function yz(e,t){const n=new AbortController;for(const r in t){const i=t[r];e.addEventListener(r,i,{signal:n.signal,passive:!1})}return n}function bz(e,t,n=!1){const r=window.getComputedStyle(e),i=["position","z-index","top","left","x","pointer-events","y","transform-origin","filter","-webkit-text-fill-color"];for(const o of Array.from(r))n===!1&&o&&i.includes(o)||t.style.setProperty(o,r.getPropertyValue(o),r.getPropertyPriority(o));for(const o of Array.from(e.children)){if(!mm(o))continue;const a=t.children[Array.from(e.children).indexOf(o)];bz(o,a,n)}}function Fu(e){return e instanceof DragEvent?{x:e.clientX,y:e.clientY}:{x:e.touches[0].clientX,y:e.touches[0].clientY}}Array();var M5={up:[0,-1],down:[0,1],left:[-1,0],right:[1,0]},Jo=new WeakMap,xo=new WeakMap,yt=void 0;function QSe(){yt=void 0}function _z(e){return yt={ascendingDirection:!1,incomingDirection:void 0,enterCount:0,targetIndex:0,affectedNodes:[],lastValue:void 0,activeNode:void 0,lastTargetValue:void 0,remapJustFinished:!1,preventEnter:!1,clonedDraggedEls:[],swappedNodeValue:!1,originalZIndex:void 0,...e},yt}function JSe(e,t){return yt={...e,...t},yt}function xz(e){const{x:t,y:n}=Fu(e.e);return{coordinates:{x:t,y:n},draggedNode:{el:e.targetData.node.el,data:e.targetData.node.data},draggedNodes:[{el:e.targetData.node.el,data:e.targetData.node.data}],initialIndex:e.targetData.node.data.index,initialParent:{el:e.targetData.parent.el,data:e.targetData.parent.data},lastParent:{el:e.targetData.parent.el,data:e.targetData.parent.data},scrollParent:gz(e.targetData.node.el)}}function ePe(e,t){const n=wz(e),r=[...wE(t.targetData.parent.el,t.targetData.parent.data).filter(i=>!n.includes(i))];r.splice(t.targetData.node.data.index,0,...n),e.lastTargetValue=t.targetData.node.data.value,OE(t.targetData.parent.el,t.targetData.parent.data,[...r])}function wE(e,t){return[...t.getValues(e)]}function OE(e,t,n){t.setValues(n,e)}function wz(e){return[...e.draggedNodes.map(t=>t.data.value)]}function tPe({parent:e,getValues:t,setValues:n,config:r={}}){var i,o;if(!vz)return;document.addEventListener("dragover",s=>{if(s.preventDefault(),yt){yt.remapJustFinished=!1,yt.lastTargetValue=void 0;const{x:c,y:u}=Fu(s);yt.coordinates.y=u,yt.coordinates.x=c,Tb()}}),Oz(e);const a={getValues:t,setValues:n,config:{handleDragstart:oPe,handleDragoverNode:kPe,handleDragoverParent:RPe,handleEnd:mPe,handleTouchstart:gPe,handleTouchmove:xPe,handleTouchOverNode:cPe,handleTouchOverParent:NPe,performSort:ePe,performTransfer:DPe,root:document,setupNode:fPe,setupNodeRemap:Cz,reapplyDragClasses:dPe,tearDownNode:pPe,tearDownNodeRemap:hPe,remapFinished:iPe,scrollBehavior:{x:.8,y:.8},threshold:{horizontal:0,vertical:0},...r},enabledNodes:[],abortControllers:{}};nPe(e,a),(i=r.plugins)==null||i.forEach(s=>{var c,u;(u=(c=s(e))==null?void 0:c.tearDown)==null||u.call(c)}),(o=r.plugins)==null||o.forEach(s=>{var c,u;(u=(c=s(e))==null?void 0:c.setup)==null||u.call(c)}),Sz(e,!0)}function Oz(e){const t=xo.get(e);t&&t.abortControllers.mainParent&&t.abortControllers.mainParent.abort()}function nPe(e,t){new MutationObserver(rPe).observe(e,{childList:!0}),xo.set(e,t),t.abortControllers.mainParent=yz(e,{dragover:$Pe(ZSe(t.config.handleDragoverParent,10)),touchOverParent:t.config.handleTouchOverParent})}function rPe(e){const t=e[0].target;t instanceof HTMLElement&&Sz(t)}function Sz(e,t){const n=xo.get(e);if(!n)return;const r=[],i=n.config;for(let s=0;s<e.children.length;s++){const c=e.children[s];if(!mm(c))continue;const u=Jo.get(c);(t||!u)&&i.tearDownNode({node:c,parent:e,nodeData:u,parentData:n}),!i.disabled&&(!i.draggable||i.draggable&&i.draggable(c))&&r.push(c)}if(r.length!==n.getValues(e).length&&!i.disabled){console.warn("The number of enabled nodes does not match the number of values.");return}const o=n.getValues(e),a=[];for(let s=0;s<r.length;s++){const c=r[s],u=Jo.get(c),h=Object.assign(u??{privateClasses:[],abortControllers:{}},{value:o[s],index:s});if(yt&&h.value===yt.draggedNode.data.value&&(yt.draggedNode.data=h,yt.draggedNode.el=c),yt&&yt.draggedNodes.map(v=>v.data.value).includes(h.value)){const v=yt.draggedNodes.find(b=>b.data.value===h.value);v&&(v.el=c)}a.push({el:c,data:h});const p={node:c,parent:e,parentData:n,nodeData:h};(t||!u)&&i.setupNode(p),Cz(p)}xo.set(e,{...n,enabledNodes:a}),i.remapFinished(n)}function iPe(){yt&&(yt.preventEnter=!1,yt.swappedNodeValue=void 0,yt.remapJustFinished=!0)}function oPe(e){e.e instanceof DragEvent&&uPe({e:e.e,targetData:e.targetData})}function aPe(e,t,n){Ru([e],t),setTimeout(()=>{f0([e],t),Ru([e],n)})}function sPe(e){const t=_z(xz(e));return e.e.stopPropagation(),e.e.dataTransfer&&(e.e.dataTransfer.dropEffect="move",e.e.dataTransfer.effectAllowed="move",e.e.dataTransfer.setDragImage(e.targetData.node.el,e.e.offsetX,e.e.offsetY)),t}function Pz(e){if(!(e.e instanceof DragEvent)&&!(e.e instanceof TouchEvent))return!1;const t=e.targetData.parent.data.config;if(!t.dragHandle)return!0;const n=e.targetData.node.el.querySelectorAll(t.dragHandle);if(!n)return!1;const r=Fu(e.e),i=t.root.elementFromPoint(r.x,r.y);if(!i)return!1;for(const o of Array.from(n))if(i===o||o.contains(i))return!0;return!1}function lPe(e){if(!Pz(e))return;const t=yPe(e);bPe(e,t),_Pe(e,t)}function uPe(e){if(!Pz(e)){e.e.preventDefault();return}const t=e.targetData.parent.data.config,n=sPe(e),r=e.targetData.node.el.style.zIndex;n.originalZIndex=r,e.targetData.node.el.style.zIndex="9999",aPe(n.draggedNode.el,t.draggingClass,t.dropZoneClass)}function cPe(e){yt&&(e.detail.targetData.parent.el===yt.lastParent.el?jz(e.detail,yt):jb(e.detail,yt))}function fPe(e){var t;const n=e.parentData.config;e.node.draggable=!0,e.nodeData.abortControllers.mainNode=yz(e.node,{dragstart:Dc(n.handleDragstart),dragover:Dc(n.handleDragoverNode),dragend:Dc(n.handleEnd),touchstart:Dc(n.handleTouchstart),touchmove:Dc(n.handleTouchmove),touchend:Dc(n.handleEnd),touchOverNode:n.handleTouchOverNode}),n.reapplyDragClasses(e.node,e.parentData),(t=e.parentData.config.plugins)==null||t.forEach(r=>{var i,o;(o=(i=r(e.parent))==null?void 0:i.setupNode)==null||o.call(i,e)})}function Cz(e){var t;Jo.set(e.node,e.nodeData),(t=e.parentData.config.plugins)==null||t.forEach(n=>{var r,i;(i=(r=n(e.parent))==null?void 0:r.setupNodeRemap)==null||i.call(r,e)})}function dPe(e,t){if(!yt)return;const n="touchedNode"in yt?t.config.touchDropZoneClass:t.config.dropZoneClass;yt.draggedNode.el===e&&Ru([e],n,!0)}function hPe(e){var t;(t=e.parentData.config.plugins)==null||t.forEach(n=>{var r,i;(i=(r=n(e.parent))==null?void 0:r.tearDownNodeRemap)==null||i.call(r,e)})}function pPe(e){var t,n,r,i,o;(t=e.parentData.config.plugins)==null||t.forEach(a=>{var s,c;(c=(s=a(e.parent))==null?void 0:s.tearDownNode)==null||c.call(s,e)}),e.node.draggable=!1,(r=(n=e.nodeData)==null?void 0:n.abortControllers)!=null&&r.mainNode&&((o=(i=e.nodeData)==null?void 0:i.abortControllers)==null||o.mainNode.abort())}function mPe(e){yt&&(vPe(e,yt),QSe())}function vPe(e,t){var n,r,i,o;document.removeEventListener("contextmenu",Ez),"longTouchTimeout"in t&&t.longTouchTimeout&&clearTimeout(t.longTouchTimeout);const a=(n=xo.get(t.initialParent.el))==null?void 0:n.config,s="touchedNode"in t?a==null?void 0:a.touchDropZoneClass:a==null?void 0:a.dropZoneClass;t.originalZIndex!==void 0&&(t.draggedNode.el.style.zIndex=t.originalZIndex),Ru(t.draggedNodes.map(c=>c.el),s,!0),f0(t.draggedNodes.map(c=>c.el),s),a!=null&&a.longTouchClass&&f0(t.draggedNodes.map(c=>c.el),(i=(r=t.initialParent.data)==null?void 0:r.config)==null?void 0:i.longTouchClass),"touchedNode"in t&&((o=t.touchedNode)==null||o.remove())}function gPe(e){e.e instanceof TouchEvent&&lPe({e:e.e,targetData:e.targetData})}function yPe(e){e.e.stopPropagation();const t=e.targetData.node.el.cloneNode(!0),n=e.targetData.node.el.getBoundingClientRect();return JSe(_z(xz(e)),{coordinates:{x:e.e.touches[0].clientX,y:e.e.touches[0].clientY},scrollParent:gz(e.targetData.node.el),touchStartLeft:e.e.touches[0].clientX-n.left,touchStartTop:e.e.touches[0].clientY-n.top,touchedNode:t,touchMoving:!1})}function Ez(e){e.preventDefault()}function bPe(e,t){t.touchedNodeDisplay=t.touchedNode.style.display;const n=e.targetData.node.el.getBoundingClientRect();t.touchedNode.style.cssText=`
width: ${n.width}px;
position: fixed;
pointer-events: none;
top: -9999px;
z-index: 999999;
display: none;
`,document.body.append(t.touchedNode),bz(e.targetData.node.el,t.touchedNode),t.touchedNode.style.display="none",document.addEventListener("contextmenu",Ez)}function _Pe(e,t){const n=e.targetData.parent.data.config;n.longTouch&&(t.longTouchTimeout=setTimeout(()=>{t&&(t.longTouch=!0,n.longTouchClass&&e.e.cancelable&&Ru(t.draggedNodes.map(r=>r.el),n.longTouchClass),e.e.preventDefault())},n.longTouchTimeout||200))}function xPe(e){!yt||!("touchedNode"in yt)||APe(e,yt)}function wPe(e,t){t.longTouchClass&&f0(e.draggedNodes.map(n=>n.el),t==null?void 0:t.longTouchClass),t.touchDraggingClass&&Ru([e.touchedNode],t.touchDraggingClass),t.touchDropZoneClass&&Ru(e.draggedNodes.map(n=>n.el),t.touchDropZoneClass)}function OPe(e){if(!e||!e.scrollParent)return;const{x:t,y:n,width:r,height:i}=e.scrollParent.getBoundingClientRect(),{x:o,y:a,scrollOutside:s}=e.lastParent.data.config.scrollBehavior;return{state:e,xThresh:o,yThresh:a,scrollOutside:s,scrollParent:e.scrollParent,x:t,y:n,width:r,height:i}}function SPe(e){const t=OPe(yt);if(t)switch(e){case"down":return TPe(t.state,t);case"up":return EPe(t.state,t);case"right":return PPe(t.state,t);case"left":return CPe(t.state,t)}}function PPe(e,t){const n=t.scrollParent.clientWidth+t.x-e.coordinates.x;if(!(!t.scrollOutside&&n<0)&&n<(1-t.xThresh)*t.scrollParent.clientWidth&&!(t.scrollParent.scrollLeft+t.scrollParent.clientWidth>=t.scrollParent.scrollWidth))return e}function CPe(e,t){const n=t.scrollParent.clientWidth+t.x-e.coordinates.x;if(!(!t.scrollOutside&&n>t.scrollParent.clientWidth)&&n>t.xThresh*t.scrollParent.clientWidth&&t.scrollParent.scrollLeft!==0)return e}function EPe(e,t){const n=t.scrollParent.clientHeight+t.y-e.coordinates.y;if(!(!t.scrollOutside&&n>t.scrollParent.clientHeight)&&n>t.yThresh*t.scrollParent.clientHeight&&t.scrollParent.scrollTop!==0)return e}function TPe(e,t){const n=t.scrollParent.clientHeight+t.y-e.coordinates.y;if(!(!t.scrollOutside&&n<0)&&n<(1-t.yThresh)*t.scrollParent.clientHeight&&!(t.scrollParent.scrollTop+t.scrollParent.clientHeight>=t.scrollParent.scrollHeight))return e}function jPe(e,t){t.touchMoving=!0,t.touchedNode.style.display=t.touchedNodeDisplay||"";const{x:n,y:r}=Fu(e.e);t.coordinates.y=r,t.coordinates.x=n;const i=t.touchStartLeft??0,o=t.touchStartTop??0;t.touchedNode.style.left=`${n-i}px`,t.touchedNode.style.top=`${r-o}px`,wPe(t,e.targetData.parent.data.config)}function APe(e,t){if(e.targetData.parent.data.config.longTouch&&!t.longTouch){clearTimeout(t.longTouchTimeout);return}e.e.cancelable&&e.e.preventDefault(),jPe(e,t),Tb();const n=XSe(e);if(!n)return;const r={e:e.e,targetData:n};"node"in n?n.node.el.dispatchEvent(new CustomEvent("touchOverNode",{detail:r})):n.parent.el.dispatchEvent(new CustomEvent("touchOverParent",{detail:r}))}function Tb(){for(const e of Object.keys(M5)){const[t,n]=M5[e];Tz(e,t,n)}}function Tz(e,t,n){const r=SPe(e);r&&(r.scrollParent.scrollBy(t,n),setTimeout(()=>{Tz(e,t,n)},"touchedNode"in r?10:100))}function kPe(e){if(!yt)return;const{x:t,y:n}=Fu(e.e);yt.coordinates.y=n,yt.coordinates.x=t,Tb(),LPe(e,yt)}function RPe(e){if(!yt)return;const{x:t,y:n}=Fu(e.e);yt.coordinates.y=n,yt.coordinates.x=t,Tb(),jb(e,yt)}function NPe(e){yt&&jb(e.detail,yt)}function MPe(e,t){if(e.targetData.parent.el===t.lastParent.el)return!1;const n=e.targetData.parent.data.config;if(n.dropZone===!1)return!1;const r=t.initialParent.data.config;return n.accepts?n.accepts(e.targetData.parent,t.initialParent,t.lastParent,t):!(!n.group||n.group!==r.group)}function LPe(e,t){var n;e.e.preventDefault(),e.e.stopPropagation(),e.targetData.parent.el===((n=t.lastParent)==null?void 0:n.el)?jz(e,t):jb(e,t)}function IPe(e,t,n,r){var i;if(t.remapJustFinished)return t.remapJustFinished=!1,t.lastTargetValue=e.targetData.node.data.value,!1;if(t.lastTargetValue===e.targetData.node.data.value||t.draggedNodes.map(v=>v.el).includes(e.targetData.node.el)||t.preventEnter||t.swappedNodeValue===e.targetData.node.data.value||e.targetData.parent.el!==((i=t.lastParent)==null?void 0:i.el)||e.targetData.parent.data.config.sortable===!1)return!1;const o=e.targetData.node.el.getBoundingClientRect(),a=t.draggedNode.el.getBoundingClientRect(),s=o.y-a.y,c=o.x-a.x;let u;const h=t.draggedNode.data.index>e.targetData.node.data.index?[e.targetData.node.data.index,t.draggedNode.data.index]:[t.draggedNode.data.index,e.targetData.node.data.index];t.targetIndex=e.targetData.node.data.index,t.affectedNodes=e.targetData.parent.data.enabledNodes.filter(v=>h[0]<=v.data.index&&v.data.index<=h[1]&&v.el!==t.draggedNode.el),Math.abs(s)>Math.abs(c)?u=s>0?"above":"below":u=c>0?"left":"right";const p=t.lastParent.data.config.threshold;switch(u){case"left":if(n>o.x+o.width*p.horizontal)return t.incomingDirection="left",!0;break;case"right":if(n<o.x+o.width*(1-p.horizontal))return t.incomingDirection="right",!0;break;case"above":if(r>o.y+o.height*p.vertical)return t.incomingDirection="above",!0;break;case"below":if(r<o.y+o.height*(1-p.vertical))return t.incomingDirection="below",!0;break}return!1}function jz(e,t){const{x:n,y:r}=Fu(e.e);IPe(e,t,n,r)&&(t.swappedNodeValue=e.targetData.node.data.value,t.preventEnter=!0,e.targetData.parent.data.config.performSort(t,e))}function Dc(e){function t(n){var r;const i=Jo.get(n),o=n.parentNode||((r=yt==null?void 0:yt.lastParent)==null?void 0:r.el);if(!i)return;const a=xo.get(o);if(a)return{node:{el:n,data:i},parent:{el:o,data:a}}}return n=>{const r=t(n.currentTarget);if(r)return e({e:n,targetData:r})}}function DPe(e,t){const n=wz(e),r=wE(e.lastParent.el,e.lastParent.data).filter(s=>!n.includes(s)),i=wE(t.targetData.parent.el,t.targetData.parent.data),o=e.initialParent.el===t.targetData.parent.el&&t.targetData.parent.data.config.sortable===!1;let a;"node"in t.targetData?(o?a=e.initialIndex:t.targetData.parent.data.config.sortable===!1?a=t.targetData.parent.data.enabledNodes.length:a=t.targetData.node.data.index,i.splice(a,0,...n)):(a=o?e.initialIndex:t.targetData.parent.data.enabledNodes.length,i.splice(a,0,...n)),OE(e.lastParent.el,e.lastParent.data,r),OE(t.targetData.parent.el,t.targetData.parent.data,i)}function jb(e,t){MPe(e,t)&&(e.targetData.parent.data.config.performTransfer(t,e),t.lastParent=e.targetData.parent)}function $Pe(e){function t(n){const r=xo.get(n);if(r)return{parent:{el:n,data:r}}}return n=>{const r=t(n.currentTarget);if(r)return e({e:n,targetData:r})}}function FPe(e){if(e instanceof HTMLElement)return e;if("current"in e&&e.current instanceof HTMLElement)return e.current;console.warn("Invalid parent element",e)}function BPe(e,t){const n=FPe(e);n&&t(n)}var d0=new WeakMap;function UPe(e){const t=d0.get(e);return t?t[0]:(console.warn("No values found for parent element"),[])}function zPe(e,t){const n=d0.get(t);n&&n[1](e),d0.set(t,[e,n[1]])}function VPe(e,t){return n=>{d0.set(n,t),tPe({parent:n,getValues:UPe,setValues:zPe,config:e})}}function L5(e){vz&&(Array.isArray(e)||(e=[e]),e.forEach(t=>{const{parent:n,state:r,...i}=t;BPe(n,VPe(i,r))}))}function WPe(e,t={}){const n=F.useRef(null),[r,i]=F.useState(e);function o(a={}){L5({parent:n,state:[r,i],...a})}return F.useEffect(()=>{L5({parent:n,state:[r,i],...t})},[r]),F.useEffect(()=>()=>{n.current&&Oz(n.current)},[]),[n,r,i,o]}const Ab=()=>{const e=oa(),t=_l(),n=Zf(),r=F.useMemo(()=>{const{orderBy:o,tags:a,excludeBots:s,excludeMaxVisitsReached:c,excludePastValidUntil:u,...h}=n,p=o?hie(o):void 0,v=(a==null?void 0:a.split(","))??[];return{...h,orderBy:p,tags:v,excludeBots:s!==void 0?s==="true":void 0,excludeMaxVisitsReached:c!==void 0?c==="true":void 0,excludePastValidUntil:u!==void 0?u==="true":void 0}},[n]),i=F.useCallback(o=>{const a={...r,...o},{orderBy:s,tags:c,excludeBots:u,excludeMaxVisitsReached:h,excludePastValidUntil:p,...v}=a,b={...v,orderBy:s&&die(s),tags:c.length>0?c.join(","):void 0,excludeBots:DO(u),excludeMaxVisitsReached:DO(h),excludePastValidUntil:DO(p)},x=L0(b),_=x?`?${x}`:"";e(`${t}/list-short-urls/1${_}`)},[r,e,t]);return[r,i]},Xj=()=>{const{domain:e}=Zf(),{shortCode:t=""}=Gf();return F.useMemo(()=>({shortCode:Kj(t),domain:e}),[e,t])},kb=()=>{const e=bSe();return g.jsx(_t,{color:"link",size:"lg",className:"p-0 me-3",onClick:e,"aria-label":"Go back",children:g.jsx(Ge,{icon:SK})})},qPe={AF:"Afghanistan",AL:"Albania",DZ:"Algeria",AS:"American Samoa",AD:"Andorra",AO:"Angola",AI:"Anguilla",AQ:"Antarctica",AG:"Antigua and Barbuda",AR:"Argentina",AM:"Armenia",AW:"Aruba",AU:"Australia",AT:"Austria",AZ:"Azerbaijan",BS:"Bahamas",BH:"Bahrain",BD:"Bangladesh",BB:"Barbados",BY:"Belarus",BE:"Belgium",BZ:"Belize",BJ:"Benin",BM:"Bermuda",BT:"Bhutan",BO:"Bolivia",BA:"Bosnia and Herzegovina",BW:"Botswana",BR:"Brazil",IO:"British Indian Ocean Territory",VG:"British Virgin Islands",BN:"Brunei",BG:"Bulgaria",BF:"Burkina Faso",BI:"Burundi",KH:"Cambodia",CM:"Cameroon",CA:"Canada",CV:"Cape Verde",KY:"Cayman Islands",CF:"Central African Republic",TD:"Chad",CL:"Chile",CN:"China",CX:"Christmas Island",CC:"Cocos Islands",CO:"Colombia",KM:"Comoros",CK:"Cook Islands",CR:"Costa Rica",HR:"Croatia",CU:"Cuba",CW:"Curacao",CY:"Cyprus",CZ:"Czech Republic",CD:"Democratic Republic of the Congo",DK:"Denmark",DJ:"Djibouti",DM:"Dominica",DO:"Dominican Republic",TL:"East Timor",EC:"Ecuador",EG:"Egypt",SV:"El Salvador",GQ:"Equatorial Guinea",ER:"Eritrea",EE:"Estonia",ET:"Ethiopia",FK:"Falkland Islands",FO:"Faroe Islands",FJ:"Fiji",FI:"Finland",FR:"France",PF:"French Polynesia",GA:"Gabon",GM:"Gambia",GE:"Georgia",DE:"Germany",GH:"Ghana",GI:"Gibraltar",GR:"Greece",GL:"Greenland",GD:"Grenada",GU:"Guam",GT:"Guatemala",GG:"Guernsey",GN:"Guinea",GW:"Guinea-Bissau",GY:"Guyana",HT:"Haiti",HN:"Honduras",HK:"Hong Kong",HU:"Hungary",IS:"Iceland",IN:"India",ID:"Indonesia",IR:"Iran",IQ:"Iraq",IE:"Ireland",IM:"Isle of Man",IL:"Israel",IT:"Italy",CI:"Ivory Coast",JM:"Jamaica",JP:"Japan",JE:"Jersey",JO:"Jordan",KZ:"Kazakhstan",KE:"Kenya",KI:"Kiribati",XK:"Kosovo",KW:"Kuwait",KG:"Kyrgyzstan",LA:"Laos",LV:"Latvia",LB:"Lebanon",LS:"Lesotho",LR:"Liberia",LY:"Libya",LI:"Liechtenstein",LT:"Lithuania",LU:"Luxembourg",MO:"Macao",MK:"Macedonia",MG:"Madagascar",MW:"Malawi",MY:"Malaysia",MV:"Maldives",ML:"Mali",MT:"Malta",MH:"Marshall Islands",MR:"Mauritania",MU:"Mauritius",YT:"Mayotte",MX:"Mexico",FM:"Micronesia",MD:"Moldova",MC:"Monaco",MN:"Mongolia",ME:"Montenegro",MS:"Montserrat",MA:"Morocco",MZ:"Mozambique",MM:"Myanmar",NA:"Namibia",NR:"Nauru",NP:"Nepal",NL:"Netherlands",AN:"Netherlands Antilles",NC:"New Caledonia",NZ:"New Zealand",NI:"Nicaragua",NE:"Niger",NG:"Nigeria",NU:"Niue",KP:"North Korea",MP:"Northern Mariana Islands",NO:"Norway",OM:"Oman",PK:"Pakistan",PW:"Palau",PS:"Palestine",PA:"Panama",PG:"Papua New Guinea",PY:"Paraguay",PE:"Peru",PH:"Philippines",PN:"Pitcairn",PL:"Poland",PT:"Portugal",PR:"Puerto Rico",QA:"Qatar",CG:"Republic of the Congo",RE:"Reunion",RO:"Romania",RU:"Russia",RW:"Rwanda",BL:"Saint Barthelemy",SH:"Saint Helena",KN:"Saint Kitts and Nevis",LC:"Saint Lucia",MF:"Saint Martin",PM:"Saint Pierre and Miquelon",VC:"Saint Vincent and the Grenadines",WS:"Samoa",SM:"San Marino",ST:"Sao Tome and Principe",SA:"Saudi Arabia",SN:"Senegal",RS:"Serbia",SC:"Seychelles",SL:"Sierra Leone",SG:"Singapore",SX:"Sint Maarten",SK:"Slovakia",SI:"Slovenia",SB:"Solomon Islands",SO:"Somalia",ZA:"South Africa",KR:"South Korea",SS:"South Sudan",ES:"Spain",LK:"Sri Lanka",SD:"Sudan",SR:"Suriname",SJ:"Svalbard and Jan Mayen",SZ:"Swaziland",SE:"Sweden",CH:"Switzerland",SY:"Syria",TW:"Taiwan",TJ:"Tajikistan",TZ:"Tanzania",TH:"Thailand",TG:"Togo",TK:"Tokelau",TO:"Tonga",TT:"Trinidad and Tobago",TN:"Tunisia",TR:"Turkey",TM:"Turkmenistan",TC:"Turks and Caicos Islands",TV:"Tuvalu",VI:"U.S. Virgin Islands",UG:"Uganda",UA:"Ukraine",AE:"United Arab Emirates",GB:"United Kingdom",US:"United States",UY:"Uruguay",UZ:"Uzbekistan",VU:"Vanuatu",VA:"Vatican",VE:"Venezuela",VN:"Vietnam",WF:"Wallis and Futuna",EH:"Western Sahara",YE:"Yemen",ZM:"Zambia",ZW:"Zimbabwe"},HPe={android:"Android",ios:"iOS",desktop:"Desktop"},GPe=({deviceType:e,onDeviceTypeChange:t})=>{const n=F.useId();return g.jsxs("div",{children:[g.jsx("label",{htmlFor:n,children:"Device type:"}),g.jsxs("select",{id:n,className:"form-select",value:e,onChange:r=>t(r.target.value),required:!0,children:[!e&&g.jsx("option",{value:"",children:"- Select type -"}),Object.entries(HPe).map(([r,i])=>g.jsx("option",{value:r,children:i},r))]})]})},Qj=({value:e,onValueChange:t,label:n,placeholder:r})=>{const i=F.useId();return g.jsxs("div",{children:[g.jsxs("label",{htmlFor:i,children:[n,":"]}),g.jsx(Qn,{id:i,value:e??"",onChange:o=>t(o.target.value),placeholder:r,required:!0})]})},KPe=({language:e,onLanguageChange:t})=>g.jsx(Qj,{value:e,onValueChange:t,label:"Language",placeholder:"en-US / en"}),YPe=({name:e,value:t,onNameChange:n,onValueChange:r})=>{const i=F.useId(),o=F.useId();return g.jsxs(g.Fragment,{children:[g.jsxs("div",{children:[g.jsx("label",{htmlFor:i,children:"Param name:"}),g.jsx(Qn,{id:i,value:e??"",onChange:a=>n(a.target.value),placeholder:"hello",required:!0})]}),g.jsxs("div",{children:[g.jsx("label",{htmlFor:o,children:"Param value:"}),g.jsx(Qn,{id:o,value:t??"",onChange:a=>r(a.target.value),placeholder:"world",required:!0})]})]})},ZPe=({ipAddress:e,onIpAddressChange:t})=>g.jsx(Qj,{value:e,onValueChange:t,label:"IP address",placeholder:"192.168.1.10"}),XPe=({countryCode:e,onCountryCodeChange:t})=>{const n=F.useId();return g.jsxs("div",{children:[g.jsx("label",{htmlFor:n,children:"Country:"}),g.jsxs("select",{id:n,className:"form-select",value:e,onChange:r=>t(r.target.value),required:!0,children:[!e&&g.jsx("option",{value:"",children:"- Select country -"}),Object.entries(qPe).map(([r,i])=>g.jsx("option",{value:r,children:i},r))]})]})},QPe=({cityName:e,onCityNameChange:t})=>g.jsx(Qj,{value:e,onValueChange:t,label:"City name",placeholder:"New York"}),JPe=({condition:e,onConditionChange:t,onDelete:n})=>{const r=F.useId(),i=F.useCallback(h=>t({type:h,matchValue:"",matchKey:null}),[t]),o=F.useCallback(h=>t({...e,matchValue:h}),[e,t]),a=F.useCallback(h=>t({...e,matchKey:h}),[e,t]),s=_i("ipRedirectCondition"),c=_i("geolocationRedirectCondition"),u=F.useMemo(()=>{const h={device:"Device type",language:"Language","query-param":"Query param"};return s&&(h["ip-address"]="IP address"),c&&(h["geolocation-country-code"]="Country (geolocation)",h["geolocation-city-name"]="City name (geolocation)"),h},[c,s]);return g.jsxs("div",{className:"redirect-rule-modal__condition rounded p-3 h-100 d-flex flex-column gap-2 position-relative",children:[g.jsxs("div",{children:[g.jsx(_t,{outline:!0,size:"sm",type:"button","aria-label":"Remove condition",onClick:n,className:"position-absolute rounded-circle redirect-rule-modal__remove-condition-button",children:g.jsx(Ge,{icon:e$,className:"redirect-rule-modal__remove-condition-button-icon"})}),g.jsx("label",{htmlFor:r,children:"Type:"}),g.jsx("select",{id:r,className:"form-select flex-grow-1",value:e.type,onChange:h=>i(h.target.value),children:Object.entries(u).map(([h,p])=>g.jsx("option",{value:h,children:p},h))})]}),e.type==="device"&&g.jsx(GPe,{deviceType:e.matchValue,onDeviceTypeChange:o}),e.type==="language"&&g.jsx(KPe,{language:e.matchValue,onLanguageChange:o}),e.type==="query-param"&&g.jsx(YPe,{value:e.matchValue,name:e.matchKey??"",onNameChange:a,onValueChange:o}),e.type==="ip-address"&&g.jsx(ZPe,{ipAddress:e.matchValue,onIpAddressChange:o}),e.type==="geolocation-country-code"&&g.jsx(XPe,{countryCode:e.matchValue,onCountryCodeChange:o}),e.type==="geolocation-city-name"&&g.jsx(QPe,{cityName:e.matchValue,onCityNameChange:o})]})},Az=({isOpen:e,toggle:t,onSave:n,initialData:r})=>{const[i,o]=F.useState(r??{longUrl:"",conditions:[]}),a=F.useCallback(b=>{b.preventDefault(),b.stopPropagation(),i&&n(i),t()},[n,i,t]),s=F.useCallback(()=>o(({longUrl:b,conditions:x})=>({longUrl:b,conditions:[...x,{type:"device",matchValue:"",matchKey:null}]})),[]),c=F.useCallback((b,x)=>o(({longUrl:_,conditions:w})=>{const O=[...w];return O[b]=x,{longUrl:_,conditions:O}}),[]),u=F.useCallback(b=>o(({longUrl:x,conditions:_})=>{const w=[..._];return w.splice(b,1),{longUrl:x,conditions:w}}),[]),h=Xi(),p=F.useCallback(()=>{var b;return(b=h==null?void 0:h.current)==null?void 0:b.focus()},[h]),v=F.useCallback(()=>o(r??{longUrl:"",conditions:[]}),[r]);return g.jsx(Zr,{size:"xl",isOpen:e,toggle:t,centered:!0,onOpened:p,onClosed:v,children:g.jsxs("form",{onSubmit:a,children:[g.jsx(aa,{toggle:t,className:"sticky-top redirect-rule-modal__header",children:"Redirect rule"}),g.jsxs(Po,{children:[g.jsx("label",{htmlFor:"longUrl",className:"fw-bold",children:"Long URL:"}),g.jsx(Qn,{id:"longUrl",type:"url",placeholder:"https://www.example.com",value:i.longUrl,onChange:b=>o(x=>({...x,longUrl:b.target.value})),required:!0,innerRef:h}),g.jsx("hr",{}),g.jsxs("div",{className:"d-flex justify-content-between",children:[g.jsx("b",{children:"Conditions:"}),g.jsx(_t,{outline:!0,size:"sm",type:"button","aria-label":"Add condition",onClick:s,children:g.jsx(Ge,{icon:Hp})})]}),i.conditions.length===0&&g.jsx("div",{className:"text-center",children:g.jsx("i",{children:"Add conditions..."})}),i.conditions.length>0&&g.jsx(qi,{className:"redirect-rule-modal__conditions-row",children:i.conditions.map((b,x)=>g.jsx("div",{className:"col-lg-6 col-xl-4 mt-4",children:g.jsx(JPe,{condition:b,onConditionChange:_=>c(x,_),onDelete:()=>u(x)})},`${x}_${b.type}`))})]}),g.jsxs(Qa,{className:"sticky-bottom redirect-rule-modal__footer",children:[g.jsx(_t,{type:"button",color:"link",onClick:t,children:"Cancel"}),g.jsx(_t,{color:"primary",disabled:i.conditions.length===0,children:"Confirm"})]})]})})},eCe=({priority:e,isLast:t,redirectRule:n,onDelete:r,onMoveUp:i,onMoveDown:o,onUpdate:a})=>{const[s,c]=cn();return g.jsxs(qt,{children:[g.jsxs("div",{className:"d-flex align-content-center gap-3",children:[g.jsx("div",{className:"d-flex flex-column my-auto drag-n-drop-handler d-none d-md-block",style:{cursor:"grab"},children:g.jsx(Ge,{icon:AK})}),g.jsxs("div",{className:"d-flex flex-column my-auto",children:[g.jsx(_t,{outline:!0,color:"secondary",size:"sm","aria-label":`Move rule with priority ${e} up`,disabled:e===1,onClick:i,className:"rounded-0 rounded-top",style:{marginBottom:"-1px"},children:g.jsx(Ge,{icon:qK})}),g.jsx(_t,{outline:!0,color:"secondary",size:"sm","aria-label":`Move rule with priority ${e} down`,disabled:t,onClick:o,className:"rounded-0 rounded-bottom",children:g.jsx(Ge,{icon:BK})})]}),g.jsxs("div",{className:"flex-grow-1",children:[g.jsxs("div",{className:"mb-2",children:[g.jsx("b",{children:"Long URL:"})," ",g.jsx(Gr,{href:n.longUrl,"data-testid":"rule-long-url"})]}),g.jsxs("div",{className:"d-flex flex-column flex-lg-row gap-2",children:[g.jsx("b",{children:"Conditions:"}),n.conditions.map((u,h)=>g.jsxs("div",{className:"badge bg-secondary",children:[u.type==="device"&&g.jsxs(g.Fragment,{children:["Device is ",u.matchValue]}),u.type==="language"&&g.jsxs(g.Fragment,{children:[u.matchValue," language is accepted"]}),u.type==="query-param"&&g.jsxs(g.Fragment,{children:["Query string contains ",u.matchKey,"=",u.matchValue]}),u.type==="ip-address"&&g.jsxs(g.Fragment,{children:["IP address matches ",u.matchValue]}),u.type==="geolocation-country-code"&&g.jsxs(g.Fragment,{children:["Country code is ",u.matchValue]}),u.type==="geolocation-city-name"&&g.jsxs(g.Fragment,{children:["City name is ",u.matchValue]})]},`${u.type}_${h}`))]})]}),g.jsxs("div",{className:"d-flex flex-column flex-sm-row gap-1 my-auto",children:[g.jsx(_t,{outline:!0,color:"secondary",size:"sm","aria-label":`Edit rule with priority ${e}`,onClick:c,children:g.jsx(Ge,{icon:Z8})}),g.jsx(_t,{outline:!0,color:"danger",size:"sm","aria-label":`Delete rule with priority ${e}`,onClick:r,children:g.jsx(Ge,{icon:nK})})]})]}),g.jsx(Az,{onSave:a,isOpen:s,toggle:c,initialData:n})]})},tCe=({shortUrlRedirectRules:e,getShortUrlRedirectRules:t,getShortUrlsDetails:n,shortUrlsDetails:r,setShortUrlRedirectRules:i,shortUrlRedirectRulesSaving:o,resetSetRules:a})=>{const s=Xj(),{shortUrls:c}=r,u=s&&(c==null?void 0:c.get(s)),[h,p,v]=WPe([],{dragHandle:".drag-n-drop-handler",dropZoneClass:"opacity-25"}),{saving:b,saved:x,errorData:_}=o,[w,O]=cn(),P=F.useCallback(W=>v((B=[])=>[...B,W]),[v]),E=F.useCallback(W=>v((B=[])=>{const V=[...B];return V.splice(W,1),V}),[v]),T=F.useCallback((W,B)=>v((V=[])=>{const H=[...V];return H[W]=B,H}),[v]),A=F.useCallback((W,B)=>v((V=[])=>{if(!V[B])return V;const H=[...V],J=H[B];return H[B]=H[W],H[W]=J,H}),[v]),j=F.useCallback(W=>A(W,W-1),[A]),N=F.useCallback(W=>A(W,W+1),[A]),$=F.useCallback(W=>{W.preventDefault(),p&&i({shortUrl:s,data:{redirectRules:p}})},[s,p,i]);return F.useEffect(()=>(t(s),n([s]),a),[t,n,s,a]),F.useEffect(()=>{e.redirectRules&&v(e.redirectRules)},[v,e.redirectRules]),g.jsxs("div",{className:"d-flex flex-column gap-3",children:[g.jsx("header",{children:g.jsxs(wi,{body:!0,children:[g.jsxs("h2",{className:"d-sm-flex justify-content-between align-items-center mb-0",children:[g.jsx(kb,{}),g.jsxs("div",{className:"text-center flex-grow-1",children:[r.loading&&g.jsx(g.Fragment,{children:"Loading..."}),!r.loading&&g.jsxs("small",{children:["Redirect rules for ",g.jsx(Gr,{href:(u==null?void 0:u.shortUrl)??""})]})]})]}),g.jsx("hr",{}),g.jsxs("div",{children:[g.jsx("p",{className:"mb-2",children:"Configure dynamic conditions that will be checked at runtime."}),"If no conditions match, visitors will be redirected to: ",g.jsx(Gr,{href:e.defaultLongUrl??""})]})]})}),g.jsx("div",{children:g.jsxs(_t,{outline:!0,color:"primary",onClick:O,children:[g.jsx(Ge,{icon:Hp,className:"me-1"})," Add rule"]})}),g.jsxs("form",{onSubmit:$,children:[e.loading&&g.jsx(za,{loading:!0}),p.length===0&&!e.loading&&g.jsx(qt,{className:"text-center",children:g.jsx("i",{children:"This short URL has no dynamic redirect rules"})}),g.jsx("div",{className:"d-flex flex-column gap-2",ref:h,children:p.map((W,B)=>g.jsx(eCe,{redirectRule:W,priority:B+1,isLast:B===p.length-1,onDelete:()=>E(B),onMoveUp:()=>j(B),onMoveDown:()=>N(B),onUpdate:V=>T(B,V)},`${W.longUrl}_${B}`))}),g.jsx("div",{className:"text-center mt-3",children:g.jsx(_t,{outline:!0,color:"primary",className:"btn-sm-block",disabled:b,"data-testid":"save-button",children:b?"Saving...":"Save rules"})})]}),_&&g.jsx(Tr,{type:"error",children:g.jsx(ia,{errorData:_,fallbackMessage:"An error occurred while saving short URL redirect rules :("})}),x&&g.jsx(Tr,{type:"success",children:"Redirect rules properly saved."}),g.jsx(Az,{isOpen:w,toggle:O,onSave:P})]})},nCe=(e,t)=>{e.serviceFactory("ShortUrlRedirectRules",()=>tCe),e.decorator("ShortUrlRedirectRules",t(["shortUrlRedirectRules","shortUrlsDetails","shortUrlRedirectRulesSaving"],["getShortUrlRedirectRules","getShortUrlsDetails","setShortUrlRedirectRules","resetSetRules"])),e.serviceFactory("getShortUrlRedirectRules",KSe,"apiClientFactory"),e.serviceFactory("setShortUrlRedirectRules",qSe,"apiClientFactory"),e.serviceFactory("resetSetRules",n=>n.resetSetRules,"setShortUrlRedirectRulesReducerCreator"),e.serviceFactory("shortUrlRedirectRulesReducerCreator",YSe,"getShortUrlRedirectRules"),e.serviceFactory("shortUrlRedirectRulesReducer",n=>n.reducer,"shortUrlRedirectRulesReducerCreator"),e.serviceFactory("setShortUrlRedirectRulesReducerCreator",HSe,"setShortUrlRedirectRules"),e.serviceFactory("setShortUrlRedirectRulesReducer",n=>n.reducer,"setShortUrlRedirectRulesReducerCreator")},rCe=e=>({longUrl:"",tags:[],customSlug:"",title:void 0,shortCodeLength:void 0,domain:"",validSince:void 0,validUntil:void 0,maxVisits:void 0,findIfExists:!1,validateUrl:(e==null?void 0:e.validateUrls)??!1,forwardQuery:(e==null?void 0:e.forwardQuery)??!0}),kz=({createShortUrl:e,shortUrlCreation:t,resetCreateShortUrl:n,basicMode:r=!1})=>{const{ShortUrlForm:i,CreateShortUrlResult:o}=fn(kz),a=Rr("shortUrlCreation"),s=F.useMemo(()=>rCe(a),[a]);return g.jsxs(g.Fragment,{children:[g.jsx(i,{initialState:s,saving:t.saving,basicMode:r,onSave:async c=>(n(),e(c))}),g.jsx(o,{creation:t,resetCreateShortUrl:n,canBeClosed:r})]})},iCe=dn(kz,["ShortUrlForm","CreateShortUrlResult"]),Rz=({shortUrlsDetails:e,getShortUrlsDetails:t,shortUrlEdition:n,editShortUrl:r})=>{const{ShortUrlForm:i}=fn(Rz),o=Xj(),{loading:a,error:s,errorData:c,shortUrls:u}=e,h=o&&(u==null?void 0:u.get(o)),{saving:p,saved:v,error:b,errorData:x}=n,_=Rr("shortUrlCreation"),w=F.useMemo(()=>MSe(h,_),[h,_]);return F.useEffect(()=>{o&&t([o])},[t,o]),a?g.jsx(za,{loading:!0}):s?g.jsx(Tr,{type:"error",children:g.jsx(ia,{errorData:c,fallbackMessage:"An error occurred while loading short URL detail :("})}):g.jsxs(g.Fragment,{children:[g.jsx("header",{className:"mb-3",children:g.jsx(wi,{body:!0,children:g.jsxs("h2",{className:"d-sm-flex justify-content-between align-items-center mb-0",children:[g.jsx(kb,{}),g.jsx("div",{className:"text-center flex-grow-1",children:g.jsxs("small",{children:["Edit ",g.jsx(Gr,{href:(h==null?void 0:h.shortUrl)??""})]})})]})})}),g.jsx(i,{initialState:w,saving:p,onSave:async O=>{h&&r({...h,data:O})}}),v&&b&&g.jsx(Tr,{type:"error",className:"mt-3",children:g.jsx(ia,{errorData:x,fallbackMessage:"An error occurred while updating short URL :("})}),v&&!b&&g.jsx(Tr,{type:"success",className:"mt-3",children:"Short URL properly edited."})]})},oCe=dn(Rz,["ShortUrlForm"]),Nz=({text:e,onCopy:t},n=navigator)=>{var r;return(r=n.clipboard)==null?void 0:r.writeText(e).then(()=>t==null?void 0:t(e,!0)).catch(()=>t==null?void 0:t(e,!1))},Mz=({creation:e,resetCreateShortUrl:t,canBeClosed:n=!1})=>{const{useTimeoutToggle:r}=fn(Mz),[i,o]=r(),{error:a,saved:s}=e;if(F.useEffect(()=>{t()},[t]),a)return g.jsxs(Tr,{type:"error",className:"mt-3",children:[n&&g.jsx(Ge,{"data-testid":"error-close-button",icon:eS,className:"float-end pointer",onClick:t}),g.jsx(ia,{errorData:e.errorData,fallbackMessage:"An error occurred while creating the URL :("})]});if(!s)return null;const{shortUrl:c}=e.result;return g.jsxs(Tr,{type:"success",className:"mt-3",children:[n&&g.jsx(Ge,{"data-testid":"success-close-button",icon:eS,className:"float-end pointer",onClick:t}),g.jsxs("span",{children:[g.jsx("b",{children:"Great!"})," The short URL is ",g.jsx("b",{children:c})]}),g.jsxs("button",{className:"btn btn-light btn-sm create-short-url-result__copy-btn",id:"copyBtn",type:"button",onClick:()=>Nz({text:c,onCopy:o}),children:[g.jsx(Ge,{icon:t7})," Copy ",g.jsxs("span",{className:"sr-only",children:[c," to clipboard"]})]}),g.jsx(M0,{placement:"left",isOpen:i,target:"copyBtn",children:"Copied!"})]})},aCe=dn(Mz,["useTimeoutToggle"]),BO="delete",sCe=({shortUrl:e,toggle:t,isOpen:n,shortUrlDeletion:r,resetDeleteShortUrl:i,deleteShortUrl:o,shortUrlDeleted:a})=>{const[s,c]=F.useState("");F.useEffect(()=>i,[i]);const{loading:u,error:h,deleted:p,errorData:v}=r,b=F.useCallback(()=>{i(),t()},[i,t]),x=F.useCallback(_=>(_.preventDefault(),o(e).then(w=>!Uj(w)&&t())),[o,e,t]);return g.jsx(Zr,{isOpen:n,toggle:b,centered:!0,onClosed:()=>p&&a(e),children:g.jsxs("form",{onSubmit:x,children:[g.jsx(aa,{toggle:b,children:g.jsx("span",{className:"text-danger",children:"Delete short URL"})}),g.jsxs(Po,{children:[g.jsxs("p",{children:[g.jsx("b",{className:"text-danger",children:"Caution!"})," You are about to delete a short URL."]}),g.jsx("p",{children:"This action cannot be undone. Once you have deleted it, all the visits stats will be lost."}),g.jsxs("p",{children:["Write ",g.jsx("b",{children:BO})," to confirm deletion."]}),g.jsx("input",{type:"text",className:"form-control",placeholder:`Insert ${BO}`,value:s,onChange:_=>c(_.target.value)}),h&&g.jsx(Tr,{type:sSe(v)?"warning":"error",small:!0,className:"mt-2",children:g.jsx(ia,{errorData:v,fallbackMessage:"Something went wrong while deleting the URL :("})})]}),g.jsxs(Qa,{children:[g.jsx("button",{type:"button",className:"btn btn-link",onClick:b,children:"Cancel"}),g.jsx("button",{type:"submit",className:"btn btn-danger",disabled:s!==BO||u,children:u?"Deleting...":"Delete"})]})]})})},Lz=({amount:e=0,loading:t=!1,...n})=>g.jsxs(_t,{...n,outline:!0,color:"primary",disabled:t,children:[g.jsx(Ge,{icon:sK})," ",t?"Exporting...":g.jsxs(g.Fragment,{children:["Export (",Cn(e),")"]})]}),I5=20,Iz=({amount:e=0})=>{const{apiClientFactory:t,ReportExporter:n}=fn(Iz),[{tags:r,search:i,startDate:o,endDate:a,orderBy:s,tagsMode:c}]=Ab(),[u,,h,p]=cn(),v=F.useCallback(async()=>{const b=e/I5,x=async(w=1)=>{const{data:O}=await t().listShortUrls({page:`${w}`,tags:r,searchTerm:i,startDate:o,endDate:a,orderBy:s,tagsMode:c,itemsPerPage:I5});return w>=b?O:O.concat(await x(w+1))};h();const _=await x();n.exportShortUrls(_.map(w=>{var O;const{hostname:P,pathname:E}=new URL(w.shortUrl),T=E.substring(1);return{createdAt:w.dateCreated,domain:P,shortCode:T,shortUrl:w.shortUrl,longUrl:w.longUrl,title:w.title??"",tags:w.tags.join("|"),visits:((O=w==null?void 0:w.visitsSummary)==null?void 0:O.total)??w.visitsCount??0}})),p()},[e,t,a,s,n,i,o,h,p,r,c]);return g.jsx(Lz,{loading:u,className:"btn-md-block",amount:e,onClick:v})},lCe=dn(Iz,["apiClientFactory","ReportExporter"]),Dz=({text:e,onCopy:t,copyToClipboard:n=Nz})=>g.jsx(ku,{className:"ms-2 p-0","aria-label":`Copy ${e} to clipboard`,onClick:()=>n({text:e,onCopy:t}),children:g.jsx(Ge,{icon:t7,className:"fs-5"})}),D5=e=>e&&e.startsWith("#")?e.substring(1):e,uCe=(e,{color:t,bgColor:n,...r})=>{const i=`${e}/qr-code`,o=L0({...r,color:D5(t),bgColor:D5(n)});return`${i}${o?`?${o}`:""}`},cCe=6,$5="0123456789ABCDEF",fCe=128;function dCe(){return`#${qj(cCe,()=>$5[Math.floor(Math.random()*$5.length)]).join("")}`}function hCe(e,t,n){return Math.round(Math.sqrt(.299*e**2+.587*t**2+.114*n**2))}function $z(e){const[t,n,r]=(e.match(/../g)??[]).map(i=>parseInt(i,16)||0);return hCe(t,n,r)>=fCe}const Fz=F.forwardRef(({name:e,color:t,onChange:n,className:r},i)=>g.jsxs("div",{className:Be("p-0 position-relative",r),style:{backgroundColor:t,borderColor:t},children:[g.jsx(Ge,{icon:_K,className:"position-absolute top-50 start-50 translate-middle",style:{color:$z(t.substring(1))?"#000":"fff"}}),g.jsx(Qn,{className:"form-control-color opacity-0",type:"color",value:t,onChange:o=>n(o.target.value),innerRef:i,name:e,"aria-label":e})]})),pCe=({color:e,onChange:t,name:n})=>{const r=Xi();return g.jsxs(Jp,{children:[g.jsx(Fz,{name:n,color:e,onChange:t,className:"input-group-text",ref:r}),g.jsx(Qn,{readOnly:!0,value:e,onClick:()=>{var i;return(i=r.current)==null?void 0:i.click()},"aria-label":n,"data-testid":"text-input"})]})},h0=({label:e,...t})=>g.jsx(_t,{outline:!0,color:"link",style:{color:"var(--input-text-color)",borderColor:"var(--border-color)"},"aria-label":e,title:e,...t}),F5=({name:e,color:t,initialColor:n,onChange:r})=>g.jsx(g.Fragment,{children:t===void 0?g.jsx(h0,{className:"text-start fst-italic w-100",onClick:()=>r(n),children:g.jsxs("span",{className:"indivisible",children:["Customize ",e]})}):g.jsxs("div",{className:"d-flex gap-1 w-100",children:[g.jsx(pCe,{color:t,onChange:r,name:e}),g.jsx(h0,{label:`Default ${e}`,onClick:()=>r(void 0),children:g.jsx(Ge,{icon:WE})})]})}),B5=({name:e,value:t,step:n,min:r,max:i,onChange:o,initial:a=r})=>{const s=F.useId();return g.jsx(g.Fragment,{children:t===void 0?g.jsxs(h0,{className:"text-start fst-italic w-100",onClick:()=>o(a),children:["Customize ",e]}):g.jsxs("div",{className:"d-flex gap-1 w-100",children:[g.jsxs("div",{className:"d-flex flex-column flex-grow-1",children:[g.jsxs("label",{htmlFor:s,className:"text-capitalize",children:[e,": ",t,"px"]}),g.jsx("input",{id:s,type:"range",className:"form-control-range",value:t,step:n,min:r,max:i,onChange:c=>o(Number(c.target.value))})]}),g.jsx(h0,{label:`Default ${e}`,onClick:()=>o(void 0),children:g.jsx(Ge,{icon:WE})})]})})},mCe=({errorCorrection:e,onChange:t})=>g.jsxs(Ja,{text:e?`Error correction (${e})`:g.jsx("i",{children:"Default error correction"}),dropdownClassName:"w-100",children:[g.jsx(Ye,{active:!e,onClick:()=>t(void 0),children:"Default"}),g.jsx(Ye,{divider:!0,tag:"hr"}),g.jsxs(Ye,{active:e==="L",onClick:()=>t("L"),children:[g.jsx("b",{children:"L"}),"ow"]}),g.jsxs(Ye,{active:e==="M",onClick:()=>t("M"),children:[g.jsx("b",{children:"M"}),"edium"]}),g.jsxs(Ye,{active:e==="Q",onClick:()=>t("Q"),children:[g.jsx("b",{children:"Q"}),"uartile"]}),g.jsxs(Ye,{active:e==="H",onClick:()=>t("H"),children:[g.jsx("b",{children:"H"}),"igh"]})]}),vCe=({format:e,onChange:t})=>g.jsxs(Ja,{text:e?`Format (${e})`:g.jsx("i",{children:"Default format"}),dropdownClassName:"w-100",children:[g.jsx(Ye,{active:!e,onClick:()=>t(void 0),children:"Default"}),g.jsx(Ye,{divider:!0,tag:"hr"}),g.jsx(Ye,{active:e==="png",onClick:()=>t("png"),children:"PNG"}),g.jsx(Ye,{active:e==="svg",onClick:()=>t("svg"),children:"SVG"})]}),Bz=({shortUrl:{shortUrl:e,shortCode:t},toggle:n,isOpen:r})=>{const{ImageDownloader:i}=fn(Bz),[o,a]=F.useState(),[s,c]=F.useState(),[u,h]=F.useState(),[p,v]=F.useState(),[b,x]=F.useState(),[_,w]=F.useState(),O=_i("qrCodeColors"),P=F.useMemo(()=>uCe(e,{size:o,format:u,margin:s,errorCorrection:p,color:b,bgColor:_}),[e,o,u,s,p,b,_]);return g.jsxs(Zr,{isOpen:r,toggle:n,centered:!0,size:"lg",children:[g.jsxs(aa,{toggle:n,children:["QR code for ",g.jsx(Gr,{href:e,children:e})]}),g.jsxs(Po,{className:"d-flex flex-column-reverse flex-lg-row gap-3",children:[g.jsx("div",{className:"flex-grow-1 d-flex align-items-center justify-content-around text-center",children:g.jsx("img",{src:P,alt:"QR code",className:"shadow",style:{maxWidth:"100%"}})}),g.jsxs("div",{className:"d-flex flex-column gap-2 qr-code-modal__controls",children:[g.jsx(B5,{name:"size",value:o,onChange:a,step:10,min:50,max:1e3,initial:300}),g.jsx(B5,{name:"margin",value:s,onChange:c,step:1,min:0,max:100}),g.jsx(vCe,{format:u,onChange:h}),g.jsx(mCe,{errorCorrection:p,onChange:v}),O&&g.jsxs(g.Fragment,{children:[g.jsx(F5,{name:"color",initialColor:"#000000",color:b,onChange:x}),g.jsx(F5,{name:"background",initialColor:"#ffffff",color:_,onChange:w})]}),g.jsx("div",{className:"mt-auto",children:g.jsxs(_t,{block:!0,color:"primary",onClick:()=>{i.saveImage(P,`${t}-qr-code.${u??"png"}`).catch(()=>{})},children:["Download ",g.jsx(Ge,{icon:J8,className:"ms-1"})]})})]})]}),g.jsx(Qa,{className:"sticky-bottom justify-content-around",style:{backgroundColor:"var(--primary-color)",zIndex:"1"},children:g.jsxs("div",{className:"text-center",children:[g.jsx(Gr,{href:P}),g.jsx(Dz,{text:P})]})})]})},gCe=dn(Bz,["ImageDownloader"]),yCe="yyyy-MM-dd",Uz="yyyy-MM-dd HH:mm",ul=()=>new Date,Jj=e=>typeof e!="string",eA=(e,t)=>!e||!Jj(e)?e:t?ay(e,t):mse(e),cl=e=>eA(e,void 0),Zs=e=>eA(e,yCe),Wp=e=>eA(e,Uz),mi=e=>Jj(e)?e:al(e),vm=(e,t,n)=>{const r=mi(e),i=t&&mi(t),o=n&&mi(n);if(i&&o)try{return yse(r,{start:i,end:o})}catch{return!1}return i?qP(r,i)||gse(r,i):o?qP(r,o)||sy(r,o):!0},Xl=(e,t)=>qP(e,t)||sy(e,t),p0=({date:e,format:t=Uz,relative:n=!1})=>{const r=Jj(e)?e:al(e);return g.jsx("time",{dateTime:`${vse(r)}000`,children:n?`${pse(ul(),r)} ago`:ay(r,t)})},bCe=(e,{shortCode:t,domain:n},r)=>{const i=n?`?domain=${n}`:"";return`${e}/short-code/${sz(t)}/${r}${i}`},qh=({shortUrl:e,suffix:t,asLink:n,children:r,...i})=>{const o=_l();return!n||!e?g.jsx("span",{...i,children:r}):g.jsx(Jt,{to:bCe(o,e,t),...i,children:r})},_Ce=e=>{const{meta:t,visitsCount:n,visitsSummary:r}=e,{maxVisits:i,validSince:o,validUntil:a}=t,s=(r==null?void 0:r.total)??n??0;return i&&s>=i?{icon:JK,className:"text-danger",description:g.jsxs(g.Fragment,{children:["This short URL cannot be currently visited because it has reached the maximum amount of ",g.jsx("b",{children:i})," visit",i>1?"s":"","."]})}:a&&sy(mi(a),ul())?{icon:wk,className:"text-danger",description:g.jsxs(g.Fragment,{children:["This short URL cannot be visited since ",g.jsx("b",{className:"indivisible",children:Wp(mi(a))}),"."]})}:o&&sy(ul(),mi(o))?{icon:wk,className:"text-warning",description:g.jsxs(g.Fragment,{children:["This short URL will start working on ",g.jsx("b",{className:"indivisible",children:Wp(mi(o))}),"."]})}:{icon:Yh,className:"text-primary",description:"This short URL can be visited normally."}},xCe=({shortUrl:e})=>{const t=Xi(),{icon:n,className:r,description:i}=_Ce(e);return g.jsxs(g.Fragment,{children:[g.jsx("span",{style:{cursor:i?"help":void 0},ref:t,children:g.jsx(Ge,{icon:n,className:r})}),g.jsx(Oi,{target:t,placement:"bottom",children:i})]})},zz=({visitsCount:e,shortUrl:t,active:n=!1,asLink:r=!1})=>{const i=Xi(),{maxVisits:o,validSince:a,validUntil:s}=(t==null?void 0:t.meta)??{},c=!!o||!!a||!!s,u=g.jsx(qh,{shortUrl:t,suffix:"visits",asLink:r,children:g.jsx("strong",{className:Be("short-url-visits-count__amount",{"short-url-visits-count__amount--big":n}),children:Cn(e)})});return c?g.jsxs(g.Fragment,{children:[g.jsxs("span",{className:"indivisible",children:[u,g.jsxs("small",{className:"short-urls-visits-count__max-visits-control",ref:i,children:[o&&g.jsxs(g.Fragment,{children:[" / ",Cn(o)]}),g.jsx("sup",{className:"ms-1",children:g.jsx(Ge,{icon:VE})})]})]}),g.jsx(Oi,{target:i,placement:"bottom",children:g.jsxs("ul",{className:"list-unstyled mb-0",children:[o&&g.jsxs("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept more than ",g.jsx("b",{children:Cn(o)})," visit",o===1?"":"s","."]}),a&&g.jsxs("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept visits before ",g.jsx("b",{className:"indivisible",children:Wp(mi(a))}),"."]}),s&&g.jsxs("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept visits after ",g.jsx("b",{className:"indivisible",children:Wp(mi(s))}),"."]})]})})]}):u},wCe=e=>!!e.onClose,OCe=e=>!!e.onClick,Rb=e=>{const{text:t,children:n,className:r,colorGenerator:i}=e,o=OCe(e),a=o?ku:"span",s=F.useMemo(()=>i.stylesForKey(t),[t,i]);return g.jsxs(a,{className:Be("badge tag fw-bold",r,{pointer:o}),style:s,onClick:o?e.onClick:void 0,children:[n??t,wCe(e)&&g.jsx(ku,{"aria-label":`Remove ${t}`,className:"bg-transparent ms-1 opacity-100 p-0 fw-bold tag__close",onClick:e.onClose,children:"×"})]})},SCe=({tags:e,onTagClick:t,colorGenerator:n})=>e.length===0?g.jsx("i",{className:"indivisible",children:g.jsx("small",{children:"No tags"})}):g.jsx(g.Fragment,{children:e.map(r=>g.jsx(Rb,{text:r,colorGenerator:n,onClick:()=>t==null?void 0:t(r)},r))}),Vz=({shortUrl:e,onTagClick:t})=>{var n,r,i,o;const{ShortUrlsRowMenu:a,ColorGenerator:s,useTimeoutToggle:c}=fn(Vz),[u,h]=c(),[p,v]=c(!1,500),b=F.useRef(!0),[{excludeBots:x}]=Ab(),_=Rr("visits"),w=x??(_==null?void 0:_.excludeBots);return F.useEffect(()=>{b.current||v(),b.current=!1},[(n=e.visitsSummary)==null?void 0:n.total,(r=e.visitsSummary)==null?void 0:r.nonBots,e.visitsCount,v]),g.jsxs("tr",{className:"responsive-table__row",children:[g.jsx("td",{className:"indivisible short-urls-row__cell responsive-table__cell","data-th":"Created at",children:g.jsx(p0,{date:e.dateCreated})}),g.jsx("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Short URL",children:g.jsxs("span",{className:"position-relative short-urls-row__cell--indivisible",children:[g.jsx("span",{className:"short-urls-row__short-url-wrapper",children:g.jsx(Gr,{href:e.shortUrl})}),g.jsx(Dz,{text:e.shortUrl,onCopy:h}),g.jsx("span",{role:"status",className:"badge bg-warning text-black short-urls-row__copy-hint",hidden:!u,children:"Copied short URL!"})]})}),g.jsx("td",{className:"responsive-table__cell short-urls-row__cell short-urls-row__cell--break","data-th":`${e.title?"Title":"Long URL"}`,children:g.jsx(Gr,{href:e.longUrl,children:e.title??e.longUrl})}),e.title&&g.jsx("td",{className:"short-urls-row__cell responsive-table__cell short-urls-row__cell--break d-lg-none","data-th":"Long URL",children:g.jsx(Gr,{href:e.longUrl})}),g.jsx("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Tags",children:g.jsx(SCe,{tags:e.tags,colorGenerator:s,onTagClick:t})}),g.jsx("td",{className:"responsive-table__cell short-urls-row__cell text-lg-end","data-th":"Visits",children:g.jsx(zz,{visitsCount:(w?(i=e.visitsSummary)==null?void 0:i.nonBots:(o=e.visitsSummary)==null?void 0:o.total)??e.visitsCount??0,shortUrl:e,active:p,asLink:!0})}),g.jsx("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Status",children:g.jsxs("div",{className:"d-flex gap-2",children:[g.jsx(xCe,{shortUrl:e}),e.hasRedirectRules&&g.jsx(qh,{asLink:!0,shortUrl:e,suffix:"redirect-rules",title:"This short URL has dynamic redirect rules",children:g.jsx(Ge,{icon:n$})})]})}),g.jsx("td",{className:"responsive-table__cell short-urls-row__cell text-end",children:g.jsx(a,{shortUrl:e})})]})},PCe=dn(Vz,["ShortUrlsRowMenu","ColorGenerator","useTimeoutToggle"]),Wz=({shortUrl:e,deleteShortUrl:t,shortUrlDeleted:n})=>{const{DeleteShortUrlModal:r,QrCodeModal:i}=fn(Wz),[o,,a,s]=cn(),[c,,u,h]=cn(),p=Eb(),v=_i("shortUrlRedirectRules"),{confirmDeletions:b=!0}=Rr("shortUrlsList",{}),x=F.useCallback(async()=>{const _=await t(e);Uj(_)||n(e)},[t,e,n]);return g.jsxs(I0,{minWidth:v?220:190,children:[g.jsxs(Ye,{tag:qh,shortUrl:e,suffix:"visits",asLink:!0,children:[g.jsx(Ge,{icon:zE,fixedWidth:!0})," Visit stats"]}),p&&g.jsxs(g.Fragment,{children:[g.jsxs(Ye,{disabled:!p.canAddItemWithName(e.shortUrl),onClick:()=>p.addItemToCompare({name:e.shortUrl,query:Yj(e)}),children:[g.jsx(Ge,{icon:E0,fixedWidth:!0})," Compare visits"]}),g.jsx(Ye,{divider:!0,tag:"hr"})]}),g.jsxs(Ye,{tag:qh,shortUrl:e,suffix:"edit",asLink:!0,children:[g.jsx(Ge,{icon:UE,fixedWidth:!0})," Edit short URL"]}),v&&g.jsxs(Ye,{tag:qh,shortUrl:e,suffix:"redirect-rules",asLink:!0,children:[g.jsx(Ge,{icon:n$,fixedWidth:!0})," Manage redirect rules"]}),g.jsxs(Ye,{onClick:a,children:[g.jsx(Ge,{icon:ZK,fixedWidth:!0})," QR code"]}),g.jsx(i,{shortUrl:e,isOpen:o,toggle:s}),g.jsx(Ye,{divider:!0,tag:"hr"}),g.jsxs(Ye,{className:"dropdown-item--danger",onClick:b?u:x,children:[g.jsx(Ge,{icon:FE,fixedWidth:!0})," Delete short URL"]}),g.jsx(r,{shortUrl:e,deleteShortUrl:t,shortUrlDeleted:n,isOpen:c,toggle:h})]})},CCe=dn(Wz,["DeleteShortUrlModal","QrCodeModal"]),qz="shlink/shortUrlCreation",U5={saving:!1,saved:!1,error:!1},ECe=e=>qn(`${qz}/createShortUrl`,t=>e().createShortUrl(t)),TCe=e=>{const{reducer:t,actions:n}=An({name:qz,initialState:U5,reducers:{resetCreateShortUrl:()=>U5},extraReducers:i=>{i.addCase(e.pending,()=>({saving:!0,saved:!1,error:!1})),i.addCase(e.rejected,(o,{error:a})=>({saving:!1,saved:!1,error:!0,errorData:Si(a)})),i.addCase(e.fulfilled,(o,{payload:a})=>({result:a,saving:!1,saved:!0,error:!1}))}}),{resetCreateShortUrl:r}=n;return{reducer:t,resetCreateShortUrl:r}},Hz="shlink/shortUrlEdition",jCe={saving:!1,saved:!1,error:!1},ACe=e=>qn(`${Hz}/editShortUrl`,({shortCode:t,domain:n,data:r})=>e().updateShortUrl(t,n,r)),kCe=e=>An({name:Hz,initialState:jCe,reducers:{},extraReducers:t=>{t.addCase(e.pending,n=>({...n,saving:!0,error:!1,saved:!1})),t.addCase(e.rejected,(n,{error:r})=>({...n,saving:!1,error:!0,saved:!1,errorData:Si(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>({shortUrl:r,saving:!1,error:!1,saved:!0}))}}),z5="shlink/shortUrlsDetails",V5={loading:!1,error:!1},RCe=e=>{const t=qn(`${z5}/getShortUrlsDetails`,async(r,{getState:i})=>{const{shortUrlsList:o}=i(),a=await Promise.all(r.map(async s=>{var c;const{shortCode:u,domain:h}=s,p=(c=o==null?void 0:o.shortUrls)==null?void 0:c.data.find(v=>Wh(v,u,h));return[s,p??await e().getShortUrl(u,h)]}));return new Map(a)}),{reducer:n}=An({name:z5,initialState:V5,reducers:{},extraReducers:r=>{r.addCase(t.pending,()=>({loading:!0,error:!1})),r.addCase(t.rejected,(i,{error:o})=>({loading:!1,error:!0,errorData:Si(o)})),r.addCase(t.fulfilled,(i,{payload:o})=>({...V5,shortUrls:o}))}});return{reducer:n,getShortUrlsDetails:t}},NCe=({domains:e,value:t,onChange:n})=>{const[r,,i,o]=cn(),a=!t,s=F.useCallback(()=>{n(""),o()},[n,o]),c=F.useCallback(()=>{n(""),i()},[n,i]);return r?g.jsxs(Jp,{children:[g.jsx(Qn,{value:t??"",placeholder:"Domain",onChange:u=>n(u.target.value)}),g.jsx(_t,{id:"backToDropdown",outline:!0,type:"button",className:"domains-dropdown__back-btn","aria-label":"Back to domains list",onClick:s,children:g.jsx(Ge,{icon:jK})}),g.jsx(Oi,{target:"backToDropdown",placement:"left",trigger:"hover",children:"Existing domains"})]}):g.jsxs(Ja,{text:a?"Domain":`Domain: ${t}`,className:a?"domains-dropdown__toggle-btn":"domains-dropdown__toggle-btn--active",children:[e.map(({domain:u,isDefault:h})=>g.jsxs(Ye,{active:(t===u||h)&&a,onClick:()=>n(u),className:"d-flex justify-content-between align-items-center",children:[u,h&&g.jsx("span",{className:"text-muted",children:"default"})]},u)),g.jsx(Ye,{divider:!0}),g.jsx(Ye,{onClick:c,children:g.jsx("i",{children:"New domain"})})]})},UO=({icon:e,className:t,...n})=>{const r=Xi();return g.jsxs("div",{className:"icon-input-container",children:[g.jsx(Qn,{className:Be("icon-input-container__input",t),innerRef:r,...n}),g.jsx(Ge,{icon:e,fixedWidth:!0,className:"icon-input-container__icon",onClick:()=>{var i;return(i=r.current)==null?void 0:i.focus()}})]})},MCe=({minDate:e,maxDate:t,value:n,onChange:r,withTime:i=!1,...o})=>{const a=F.useCallback(({target:c})=>{if(!c.value){r==null||r(null);return}r==null||r(mi(c.value))},[r]),s=F.useMemo(()=>i?Wp:Zs,[i]);return g.jsx(Qn,{...o,type:i?"datetime-local":"date",value:s(n)??"",max:s(t)??void 0,min:s(e)??void 0,onChange:a})},m0=({label:e,id:t,...n})=>{const r=F.useId();return g.jsxs(g.Fragment,{children:[g.jsxs("label",{htmlFor:t??r,className:"mb-1",children:[e,":"]}),g.jsx(MCe,{id:t??r,...n})]})},zO=({children:e,infoTooltip:t,checked:n,onChange:r})=>g.jsxs("p",{children:[g.jsx(EF,{inline:!0,checked:n,className:t?"me-2":"",onChange:r,children:e}),t&&g.jsx(_g,{placement:"right",children:t})]}),LCe=({isOpen:e,toggle:t})=>g.jsxs(Zr,{isOpen:e,toggle:t,centered:!0,size:"lg",children:[g.jsx(aa,{toggle:t,children:"Info"}),g.jsxs(Po,{children:[g.jsxs("p",{children:["When the ",g.jsx("b",{children:g.jsx("i",{children:'"Use existing URL if found"'})})," checkbox is checked, the server will return an existing short URL if it matches provided params."]}),g.jsx("p",{children:"These are the checks performed by Shlink in order to determine if an existing short URL should be returned:"}),g.jsxs("ul",{children:[g.jsx("li",{children:"When only the long URL is provided: The most recent match will be returned, or a new short URL will be created if none is found."}),g.jsxs("li",{children:["When long URL and custom slug and/or domain are provided: Same as in previous case, but it will try to match the short URL using both the long URL and the slug, the long URL and the domain, or the three of them.",g.jsx("br",{}),"If the slug is being used by another long URL, an error will be returned."]}),g.jsx("li",{children:"When other params are provided: Same as in previous cases, but it will try to match existing short URLs with all provided data. If any of them does not match, a new short URL will be created"})]})]})]}),ICe=()=>{const[e,t]=cn();return g.jsxs(g.Fragment,{children:[g.jsx(ku,{className:"p-0",title:"What does this mean?",onClick:t,children:g.jsx(Ge,{icon:VE})}),g.jsx(LCe,{isOpen:e,toggle:t})]})},og=e=>typeof e=="string"?al(e):e,DCe=e=>"shortCodeLength"in e&&"customSlug"in e&&"domain"in e,Gz=({basicMode:e=!1,saving:t,onSave:n,initialState:r,tagsList:i,domainsList:o})=>{var a,s,c;const{TagsSelector:u}=fn(Gz),[h,p]=F.useState(r),v=DCe(h),b=_i("deviceLongUrls"),x=_i("urlValidation"),_=x||v,w=F.useCallback(()=>p(r),[r]),O=F.useCallback((j,N)=>au(j)?j:au(N)?null:void 0,[]),P=F.useCallback((j,N)=>p(({deviceLongUrls:$={},...W})=>{var B;return{...W,deviceLongUrls:{...$,[j]:O(N,(B=r.deviceLongUrls)==null?void 0:B[j])}}}),[r.deviceLongUrls,O]),E=F.useCallback(j=>p(N=>({...N,tags:j})),[]),T=F.useCallback(async j=>(j.preventDefault(),n(h).then(N=>v&&!Uj(N)&&w()).catch(()=>{})),[v,n,w,h]),A=F.useMemo(()=>g.jsxs("div",{className:"d-flex flex-column gap-3",children:[g.jsx(Qn,{bsSize:"lg",type:"url",placeholder:"URL to be shortened",required:!0,value:h.longUrl,onChange:j=>p(N=>({...N,longUrl:j.target.value}))}),g.jsxs("div",{className:Be("d-flex flex-column flex-lg-row gap-3",{"mb-3":e}),children:[e&&v&&g.jsx("div",{className:"w-100 w-lg-50",children:g.jsx(Qn,{bsSize:"lg",placeholder:"Custom slug",value:h.customSlug??"",onChange:j=>p(N=>({...N,customSlug:j.target.value}))})}),g.jsx("div",{className:Be("w-100",{"w-lg-50":e}),children:g.jsx(u,{tags:i.tags,selectedTags:h.tags??[],onChange:E})})]})]}),[u,e,E,v,h,i.tags]);return g.jsxs("form",{name:"shortUrlForm",className:"short-url-form",onSubmit:T,children:[e&&A,!e&&g.jsxs(g.Fragment,{children:[g.jsxs(qi,{children:[g.jsx("div",{className:Be("mb-3",{"col-sm-6":b,"col-12":!b}),children:g.jsx(qt,{title:"Main options",children:A})}),b&&g.jsx("div",{className:"col-sm-6 mb-3",children:g.jsxs(qt,{title:"Device-specific long URLs",bodyClassName:"d-flex flex-column gap-3",children:[g.jsx(UO,{type:"url",icon:Lse,placeholder:"Android-specific redirection",value:((a=h.deviceLongUrls)==null?void 0:a.android)??"",onChange:({target:j})=>P("android",j.value)}),g.jsx(UO,{type:"url",icon:Mse,placeholder:"iOS-specific redirection",value:((s=h.deviceLongUrls)==null?void 0:s.ios)??"",onChange:({target:j})=>P("ios",j.value)}),g.jsx(UO,{type:"url",icon:eY,placeholder:"Desktop-specific redirection",value:((c=h.deviceLongUrls)==null?void 0:c.desktop)??"",onChange:({target:j})=>P("desktop",j.value)})]})})]}),g.jsxs(qi,{children:[g.jsx("div",{className:"col-sm-6 mb-3",children:g.jsxs(qt,{title:"Customize the short URL",bodyClassName:"d-flex flex-column gap-3",children:[g.jsx(Qn,{placeholder:"Title",value:h.title??"",onChange:({target:j})=>p(N=>({...N,title:O(j.value,r.title)}))}),v&&g.jsxs(g.Fragment,{children:[g.jsxs(qi,{children:[g.jsx("div",{className:"col-lg-6 mb-3 mb-lg-0",children:g.jsx(Qn,{placeholder:"Custom slug",value:h.customSlug??"",onChange:j=>p(N=>({...N,customSlug:j.target.value})),disabled:au(h.shortCodeLength)})}),g.jsx("div",{className:"col-lg-6",children:g.jsx(Qn,{type:"number",placeholder:"Short code length",value:h.shortCodeLength??"",onChange:j=>p(N=>({...N,shortCodeLength:j.target.value})),min:4,disabled:au(h.customSlug)})})]}),g.jsx(NCe,{value:h.domain,onChange:j=>p(N=>({...N,domain:j})),domains:o.domains})]})]})}),g.jsx("div",{className:"col-sm-6 mb-3",children:g.jsxs(qt,{title:"Limit access to the short URL",children:[g.jsxs("div",{className:"row mb-3",children:[g.jsx("div",{className:"col-lg-6",children:g.jsx(m0,{label:"Enabled since",withTime:!0,maxDate:h.validUntil?og(h.validUntil):void 0,value:h.validSince?og(h.validSince):null,onChange:j=>p(N=>({...N,validSince:cl(j)}))})}),g.jsx("div",{className:"col-lg-6 mt-3 mt-lg-0",children:g.jsx(m0,{label:"Enabled until",withTime:!0,minDate:h.validSince?og(h.validSince):void 0,value:h.validUntil?og(h.validUntil):null,onChange:j=>p(N=>({...N,validUntil:cl(j)}))})})]}),g.jsxs("div",{children:[g.jsx("label",{htmlFor:"maxVisits",className:"mb-1",children:"Maximum visits allowed:"}),g.jsx(Qn,{id:"maxVisits",type:"number",min:1,placeholder:"25...",value:h.maxVisits??"",onChange:j=>p(N=>({...N,maxVisits:au(j.target.value)?Number(j.target.value):null}))})]})]})})]}),g.jsxs(qi,{children:[_&&g.jsx("div",{className:"col-sm-6 mb-3",children:g.jsxs(qt,{title:"Extra checks",children:[x&&g.jsx(zO,{infoTooltip:"If checked, Shlink will try to reach the long URL, failing in case it's not publicly accessible.",checked:h.validateUrl,onChange:j=>p(N=>({...N,validateUrl:j})),children:"Validate URL"}),v&&g.jsxs("p",{children:[g.jsx(EF,{inline:!0,className:"me-2",checked:h.findIfExists,onChange:j=>p(N=>({...N,findIfExists:j})),children:"Use existing URL if found"}),g.jsx(ICe,{})]})]})}),g.jsx("div",{className:Be("mb-3",{"col-sm-6":_}),children:g.jsxs(qt,{title:"Configure behavior",children:[g.jsx(zO,{infoTooltip:"This short URL will be included in the robots.txt for your Shlink instance, allowing web crawlers (like Google) to index it.",checked:h.crawlable,onChange:j=>p(N=>({...N,crawlable:j})),children:"Make it crawlable"}),g.jsx(zO,{infoTooltip:"When this short URL is visited, any query params appended to it will be forwarded to the long URL.",checked:h.forwardQuery,onChange:j=>p(N=>({...N,forwardQuery:j})),children:"Forward query params on redirect"})]})})]})]}),g.jsx("div",{className:"text-center",children:g.jsx(_t,{outline:!0,color:"primary",disabled:t||!h.longUrl,className:"btn-xs-block",children:t?"Saving...":"Save"})})]})},$Ce=dn(Gz,["TagsSelector"]),Nb="all",Kz={today:"Today",yesterday:"Yesterday",last7Days:"Last 7 days",last30Days:"Last 30 days",last90Days:"Last 90 days",last180Days:"Last 180 days",last365Days:"Last 365 days",[Nb]:void 0},Yz=Object.keys(Kz),FCe=e=>!e||!e.startDate&&!e.endDate,v0=e=>typeof e=="string"&&Yz.includes(e),BCe=Yz.filter(e=>e!==Nb),W5=e=>e?mi(e):null,Zz=(e,t)=>({startDate:W5(e),endDate:W5(t)}),UCe=e=>{if(!(!e||FCe(e)))return e.startDate&&!e.endDate?`Since ${Zs(e.startDate)}`:!e.startDate&&e.endDate?`Until ${Zs(e.endDate)}`:`${Zs(e.startDate)} - ${Zs(e.endDate)}`},Xz=e=>{if(!(!e||e===Nb))return v0(e)?Kz[e]:UCe(e)},Vi=e=>Cu(ly(ul(),e)),$c=e=>({startDate:e,endDate:mf(ul())}),Qz=e=>{var t;return((t=[[()=>e==="today",()=>$c(Cu(ul()))],[()=>e==="yesterday",()=>({startDate:Vi(1),endDate:mf(ly(ul(),1))})],[()=>e==="last7Days",()=>$c(Vi(7))],[()=>e==="last30Days",()=>$c(Vi(30))],[()=>e==="last90Days",()=>$c(Vi(90))],[()=>e==="last180Days",()=>$c(Vi(180))],[()=>e==="last365Days",()=>$c(Vi(365))]].find(([n])=>n()))==null?void 0:t[1]())??{}},zCe=e=>{var t;const n=mi(e);return((t=[[()=>Xl(Cu(ul()),n),"today"],[()=>Xl(Vi(1),n),"yesterday"],[()=>Xl(Vi(7),n),"last7Days"],[()=>Xl(Vi(30),n),"last30Days"],[()=>Xl(Vi(90),n),"last90Days"],[()=>Xl(Vi(180),n),"last180Days"],[()=>Xl(Vi(365),n),"last365Days"]].find(([r])=>r()))==null?void 0:t[1])??Nb},Jz=e=>v0(e)?Qz(e):e,eV=e=>!!(e&&e.startDate),VCe=({startDate:e,endDate:t})=>{const n=o7(mf(t??new Date),Cu(e))+1,r=ly(Cu(e),n),i=ly(mf(e),1);return{startDate:r,endDate:i}},WCe=e=>{if(eV(e))return o7(e.endDate??new Date,e.startDate)},qCe=({active:e,allText:t,onChange:n})=>g.jsxs(g.Fragment,{children:[g.jsx(Ye,{active:e==="all",onClick:()=>n("all"),children:t}),g.jsx(Ye,{divider:!0,tag:"hr"}),BCe.map(r=>g.jsx(Ye,{active:e===r,onClick:()=>n(r),children:Xz(r)},r))]}),HCe=({startDate:e,endDate:t,disabled:n=!1,onStartDateChange:r,onEndDateChange:i})=>g.jsxs("div",{className:"row",children:[g.jsx("div",{className:"col-md-6",children:g.jsx(m0,{label:"Since",value:e,maxDate:t??void 0,disabled:n,onChange:r})}),g.jsx("div",{className:"col-md-6 mt-3 mt-md-0",children:g.jsx(m0,{label:"Until",value:t,minDate:e??void 0,disabled:n,onChange:o=>i(o&&mf(o))})})]}),tA=({onDatesChange:e,dateRangeOrInterval:t,defaultText:n,disabled:r})=>{const i=F.useMemo(()=>Xz(t)??n,[t,n]),[o,a]=F.useMemo(()=>v0(t)?[void 0,t]:[t,void 0],[t]),s=F.useCallback(c=>{v0(c)?e(Qz(c),c):e(c)},[e]);return g.jsxs(Ja,{disabled:r,text:i,children:[g.jsx(qCe,{allText:n,active:a,onChange:s}),g.jsx(Ye,{divider:!0,tag:"hr"}),g.jsx("div",{className:"px-3 py-1",children:g.jsx(HCe,{...o,onStartDateChange:c=>s({...o,startDate:c}),onEndDateChange:c=>s({...o,endDate:c})})})]})},GCe={dateCreated:"Created at",shortCode:"Short URL",longUrl:"Long URL",title:"Title",visits:"Visits"},KCe=({onChange:e,selected:t={},className:n,domains:r})=>{const i=_i("filterDisabledUrls"),o=_i("filterShortUrlsByDomain"),{excludeBots:a=!1,excludeMaxVisitsReached:s=!1,excludePastValidUntil:c=!1,domain:u}=t,h=F.useCallback(v=>e({...t,...v}),[e,t]),p=F.useCallback(v=>h({[v]:!(t!=null&&t[v])}),[h,t]);return g.jsxs(Ja,{text:"Filters",dropdownClassName:n,end:!0,minWidth:250,children:[g.jsx(Ye,{header:!0,"aria-hidden":!0,children:"Visits:"}),g.jsx(Ye,{active:a,onClick:()=>p("excludeBots"),children:"Ignore visits from bots"}),i&&g.jsxs(g.Fragment,{children:[g.jsx(Ye,{divider:!0,tag:"hr"}),g.jsx(Ye,{header:!0,"aria-hidden":!0,children:"Short URLs:"}),g.jsx(Ye,{active:s,onClick:()=>p("excludeMaxVisitsReached"),children:"Exclude with visits reached"}),g.jsx(Ye,{active:c,onClick:()=>p("excludePastValidUntil"),children:"Exclude enabled in the past"})]}),o&&g.jsxs(g.Fragment,{children:[g.jsx(Ye,{divider:!0,tag:"hr"}),g.jsxs(Ye,{header:!0,"aria-hidden":!0,children:["Domain: ",!r&&g.jsx("i",{children:"loading..."})]}),r==null?void 0:r.map(v=>{const b=v.isDefault?qf:v.domain,x=u===b;return g.jsx(Ye,{active:x,onClick:()=>h({domain:x?void 0:b}),children:v.domain},v.domain)})]}),g.jsx(Ye,{divider:!0,tag:"hr"}),g.jsx(Ye,{disabled:t.excludeBots===void 0&&t.excludeMaxVisitsReached===void 0&&t.excludePastValidUntil===void 0&&t.domain===void 0,onClick:()=>e({excludeBots:void 0,excludeMaxVisitsReached:void 0,excludePastValidUntil:void 0,domain:void 0}),className:"fst-italic",children:"Reset to defaults"})]})},tV=({className:e,shortUrlsAmount:t,order:n,handleOrderBy:r,tagsList:i,domainsList:o})=>{const{ExportShortUrlsBtn:a,TagsSelector:s}=fn(tV),[{search:c,tags:u,startDate:h,endDate:p,excludeBots:v,excludeMaxVisitsReached:b,excludePastValidUntil:x,domain:_,tagsMode:w="any"},O]=Ab(),P=Rr("visits"),[E,T]=F.useState(),A=F.useCallback(({startDate:W,endDate:B},V)=>{O({startDate:cl(W)??void 0,endDate:cl(B)??void 0}),T(V)},[O]),j=F.useCallback(W=>O({search:W||void 0}),[O]),N=F.useCallback(W=>O({tags:W}),[O]),$=F.useCallback(()=>O({tagsMode:w==="any"?"all":"any"}),[w,O]);return g.jsxs("div",{className:Be("short-urls-filtering-bar-container",e),children:[g.jsx(tm,{initialValue:c,onChange:j}),g.jsxs(Jp,{className:"mt-3",children:[g.jsx(s,{immutable:!0,placeholder:"With tags...",tags:i.tags,selectedTags:u,onChange:N}),u.length>1&&g.jsxs(g.Fragment,{children:[g.jsx(_t,{outline:!0,color:"secondary",onClick:$,id:"tagsModeBtn","aria-label":"Change tags mode",children:g.jsx(Ge,{className:"short-urls-filtering-bar__tags-icon",icon:w==="all"?Q8:EK})}),g.jsx(Oi,{target:"tagsModeBtn",placement:"left",children:w==="all"?"With all the tags.":"With any of the tags."})]})]}),g.jsxs(qi,{className:"flex-lg-row-reverse",children:[g.jsx("div",{className:"col-lg-8 col-xl-6 mt-3",children:g.jsxs("div",{className:"d-md-flex",children:[g.jsx("div",{className:"flex-grow-1",children:g.jsx(tA,{defaultText:"All short URLs",dateRangeOrInterval:E??Zz(h,p),onDatesChange:A})}),g.jsx(KCe,{className:"ms-0 ms-md-2 mt-3 mt-md-0",selected:{excludeBots:v??(P==null?void 0:P.excludeBots),excludeMaxVisitsReached:b,excludePastValidUntil:x,domain:_},onChange:O,domains:o.loading?void 0:o.domains})]})}),g.jsx("div",{className:"col-6 col-lg-4 col-xl-6 mt-3",children:g.jsx(a,{amount:t})}),g.jsx("div",{className:"col-6 d-lg-none mt-3",children:g.jsx(nm,{prefixed:!1,items:GCe,order:n,onChange:r})})]})]})},YCe=dn(tV,["ExportShortUrlsBtn","TagsSelector"]);function Hh({currentOrder:e,field:t,className:n="ms-1"}){return!e.dir||e.field!==t?null:g.jsx(Ge,{icon:e.dir==="ASC"?bK:kK,className:n})}const Fc=2,SE="...",nV=(e,t)=>{const n=CT(Math.max(Fc,e-Fc),Math.min(t-1,e+Fc)+1);return e-Fc>Fc&&n.unshift(SE),e+Fc<t-1&&n.push(SE),n.unshift(1),n.push(t),n},qp=e=>e===SE,rV=e=>qp(e)?e:Cn(e),iV=(e,t)=>qp(e)?`${e}_${t}`:`${e}`,ZCe=({paginator:e,currentQueryString:t=""})=>{const{currentPage:n=0,pagesCount:r=0}=e??{},i=_l(),o=s=>`${i}/list-short-urls/${s}${t}`;if(r<=1)return g.jsx("div",{className:"pb-3"});const a=()=>nV(n,r).map((s,c)=>g.jsx(mu,{disabled:qp(s),active:n===s,children:g.jsx(vu,{tag:Jt,to:o(s),children:rV(s)})},iV(s,c)));return g.jsxs(bT,{className:"sticky-card-paginator py-3",listClassName:"flex-wrap justify-content-center mb-0",children:[g.jsx(mu,{disabled:n===1,children:g.jsx(vu,{previous:!0,tag:Jt,to:o(n-1)})}),a(),g.jsx(mu,{disabled:n>=r,children:g.jsx(vu,{next:!0,tag:Jt,to:o(n+1)})})]})},XCe={field:"dateCreated",dir:"DESC"},oV=jo(({listShortUrls:e,shortUrlsList:t})=>{var n,r,i;const{ShortUrlsTable:o,ShortUrlsFilteringBar:a}=fn(oV),{page:s}=Gf(),c=Kr(),[{tags:u,search:h,startDate:p,endDate:v,orderBy:b,tagsMode:x,excludeBots:_,excludePastValidUntil:w,excludeMaxVisitsReached:O,domain:P},E]=Ab(),T=ET(),[A,j]=F.useState(b??((n=T.shortUrlsList)==null?void 0:n.defaultOrdering)??XCe),{pagination:N}=(t==null?void 0:t.shortUrls)??{},$=F.useMemo(()=>{var ae;return _??((ae=T.visits)==null?void 0:ae.excludeBots)},[_,(r=T.visits)==null?void 0:r.excludeBots]),W=_i("excludeBotsOnShortUrls"),B=F.useCallback((ae,se)=>{E({orderBy:{field:ae,dir:se}}),j({field:ae,dir:se})},[E]),V=ae=>()=>B(ae,D0(ae,A.field,A.dir)),H=ae=>g.jsx(Hh,{currentOrder:A,field:ae}),J=F.useCallback(ae=>E({tags:[...new Set([...u,ae])]}),[u,E]),Q=F.useCallback(({field:ae,dir:se})=>W&&$&&ae==="visits"?{field:"nonBotVisits",dir:se}:{field:ae,dir:se},[$,W]),re=Vj();return F.useEffect(()=>{e({page:s,searchTerm:h,tags:u,startDate:p,endDate:v,orderBy:Q(A),tagsMode:x,excludePastValidUntil:w,excludeMaxVisitsReached:O,domain:P})},[e,Q,s,h,u,p,v,A,x,w,O,P]),g.jsxs(zj,{value:re,children:[g.jsx(a,{shortUrlsAmount:(i=t.shortUrls)==null?void 0:i.pagination.totalItems,order:A,handleOrderBy:B,className:"mb-3"}),g.jsx(Wj,{type:"short-urls",className:"mb-3"}),g.jsxs(wi,{body:!0,className:Be({"pb-0":!t.loading}),children:[g.jsx(o,{shortUrlsList:t,orderByColumn:V,renderOrderIcon:H,onTagClick:J}),!t.loading&&g.jsx(ZCe,{paginator:N,currentQueryString:c.search})]})]})},()=>[kr.visits]),QCe=dn(oV,["ShortUrlsTable","ShortUrlsFilteringBar"]),JCe=({shortUrlsList:e,onTagClick:t,ShortUrlsRow:n})=>{const{error:r,loading:i,shortUrls:o}=e;return r?g.jsx("tr",{children:g.jsx("td",{colSpan:6,className:"text-center table-danger text-dark",children:"Something went wrong while loading short URLs :("})}):i?g.jsx("tr",{children:g.jsx("td",{colSpan:6,className:"text-center",children:"Loading..."})}):!i&&(!o||o.data.length===0)?g.jsx("tr",{children:g.jsx("td",{colSpan:6,className:"text-center",children:"No results found"})}):o==null?void 0:o.data.map(a=>g.jsx(n,{shortUrl:a,onTagClick:t},a.shortUrl))},aV=({orderByColumn:e,renderOrderIcon:t,shortUrlsList:n,onTagClick:r,className:i})=>{const{ShortUrlsRow:o}=fn(aV),a=Be({"short-urls-table__header-cell--with-action":!!e}),s=Be("short-urls-table__header-cell",a),c=Be("table table-hover responsive-table short-urls-table",i);return g.jsxs("table",{className:c,children:[g.jsx("thead",{className:"responsive-table__header short-urls-table__header",children:g.jsxs("tr",{children:[g.jsxs("th",{className:s,onClick:e==null?void 0:e("dateCreated"),children:["Created at ",t==null?void 0:t("dateCreated")]}),g.jsxs("th",{className:s,onClick:e==null?void 0:e("shortCode"),children:["Short URL ",t==null?void 0:t("shortCode")]}),g.jsxs("th",{className:"short-urls-table__header-cell",children:[g.jsxs(ku,{className:Be("p-0",a),onClick:e==null?void 0:e("title"),children:["Title ",t==null?void 0:t("title")]}),"  /  ",g.jsxs(ku,{className:Be("p-0",a),onClick:e==null?void 0:e("longUrl"),children:[g.jsx("span",{className:"indivisible",children:"Long URL"})," ",t==null?void 0:t("longUrl")]})]}),g.jsx("th",{className:"short-urls-table__header-cell",children:"Tags"}),g.jsx("th",{className:s,onClick:e==null?void 0:e("visits"),children:g.jsxs("span",{className:"indivisible",children:["Visits ",t==null?void 0:t("visits")]})}),g.jsx("th",{className:"short-urls-table__header-cell",colSpan:2,"aria-hidden":!0})]})}),g.jsx("tbody",{children:g.jsx(JCe,{ShortUrlsRow:o,shortUrlsList:n,onTagClick:r})})]})},eEe=dn(aV,["ShortUrlsRow"]),tEe=(e,t)=>{e.factory("ShortUrlsList",QCe),e.decorator("ShortUrlsList",t(["mercureInfo","shortUrlsList"],["listShortUrls","createNewVisits","loadMercureInfo"])),e.factory("ShortUrlsTable",eEe),e.factory("ShortUrlsRow",PCe),e.factory("CreateShortUrlResult",aCe),e.factory("ShortUrlsRowMenu",CCe),e.decorator("ShortUrlsRowMenu",t(null,["shortUrlDeleted","deleteShortUrl"])),e.factory("ShortUrlForm",$Ce),e.decorator("ShortUrlForm",t(["tagsList","domainsList"])),e.factory("CreateShortUrl",iCe),e.decorator("CreateShortUrl",t(["shortUrlCreation"],["createShortUrl","resetCreateShortUrl"])),e.factory("EditShortUrl",oCe),e.decorator("EditShortUrl",t(["shortUrlsDetails","shortUrlEdition"],["getShortUrlsDetails","editShortUrl"])),e.serviceFactory("DeleteShortUrlModal",()=>sCe),e.decorator("DeleteShortUrlModal",t(["shortUrlDeletion"],["resetDeleteShortUrl"])),e.factory("QrCodeModal",gCe),e.factory("ExportShortUrlsBtn",lCe),e.factory("ShortUrlsFilteringBar",YCe),e.decorator("ShortUrlsFilteringBar",t(["tagsList","domainsList"])),e.serviceFactory("shortUrlsListReducerCreator",FSe,"listShortUrls","editShortUrl","createShortUrl"),e.serviceFactory("shortUrlsListReducer",n=>n.reducer,"shortUrlsListReducerCreator"),e.serviceFactory("shortUrlCreationReducerCreator",TCe,"createShortUrl"),e.serviceFactory("shortUrlCreationReducer",n=>n.reducer,"shortUrlCreationReducerCreator"),e.serviceFactory("shortUrlEditionReducerCreator",kCe,"editShortUrl"),e.serviceFactory("shortUrlEditionReducer",n=>n.reducer,"shortUrlEditionReducerCreator"),e.serviceFactory("shortUrlDeletionReducerCreator",ISe,"deleteShortUrl"),e.serviceFactory("shortUrlDeletionReducer",n=>n.reducer,"shortUrlDeletionReducerCreator"),e.serviceFactory("shortUrlsDetailsReducerCreator",RCe,"apiClientFactory"),e.serviceFactory("shortUrlsDetailsReducer",n=>n.reducer,"shortUrlsDetailsReducerCreator"),e.serviceFactory("listShortUrls",$Se,"apiClientFactory"),e.serviceFactory("createShortUrl",ECe,"apiClientFactory"),e.serviceFactory("resetCreateShortUrl",n=>n.resetCreateShortUrl,"shortUrlCreationReducerCreator"),e.serviceFactory("deleteShortUrl",LSe,"apiClientFactory"),e.serviceFactory("resetDeleteShortUrl",n=>n.resetDeleteShortUrl,"shortUrlDeletionReducerCreator"),e.serviceFactory("shortUrlDeleted",()=>uz),e.serviceFactory("getShortUrlsDetails",n=>n.getShortUrlsDetails,"shortUrlsDetailsReducerCreator"),e.serviceFactory("editShortUrl",ACe,"apiClientFactory")},nEe=({tag:e,toggle:t,isOpen:n,deleteTag:r,tagDelete:i,tagDeleted:o})=>{const{deleting:a,error:s,deleted:c,errorData:u}=i;return g.jsxs(Zr,{toggle:t,isOpen:n,centered:!0,onClosed:()=>c&&o(e),children:[g.jsx(aa,{toggle:t,className:"text-danger",children:"Delete tag"}),g.jsxs(Po,{children:["Are you sure you want to delete tag ",g.jsx("b",{children:e}),"?",s&&g.jsx(Tr,{type:"error",small:!0,className:"mt-2",children:g.jsx(ia,{errorData:u,fallbackMessage:"Something went wrong while deleting the tag :("})})]}),g.jsxs(Qa,{children:[g.jsx(_t,{color:"link",onClick:t,children:"Cancel"}),g.jsx(_t,{color:"danger",disabled:a,onClick:async()=>{await r(e),t()},children:a?"Deleting tag...":"Delete tag"})]})]})},sV=({tag:e,editTag:t,toggle:n,tagEdited:r,isOpen:i,tagEdit:o})=>{const{ColorGenerator:a}=fn(sV),[s,c]=F.useState(e),[u,h]=F.useState(a.getColorForKey(e)),{editing:p,error:v,edited:b,errorData:x}=o,_=az(async()=>{await t({oldName:e,newName:s,color:u}),n()}),w=F.useCallback(()=>b&&r({oldName:e,newName:s,color:u}),[u,b,s,e,r]);return g.jsx(Zr,{isOpen:i,toggle:n,centered:!0,onClosed:w,children:g.jsxs("form",{name:"editTag",onSubmit:_,children:[g.jsx(aa,{toggle:n,children:"Edit tag"}),g.jsxs(Po,{children:[g.jsxs(Jp,{children:[g.jsx(Fz,{color:u,onChange:h,className:"input-group-text",name:"tag-color"}),g.jsx(Qn,{value:s,placeholder:"Tag",required:!0,onChange:({target:O})=>c(O.value)})]}),v&&g.jsx(Tr,{type:"error",small:!0,className:"mt-2",children:g.jsx(ia,{errorData:x,fallbackMessage:"Something went wrong while editing the tag :("})})]}),g.jsxs(Qa,{children:[g.jsx(_t,{type:"button",color:"link",onClick:n,children:"Cancel"}),g.jsx(_t,{color:"primary",disabled:p,children:p?"Saving...":"Save"})]})]})})},rEe=dn(sV,["ColorGenerator"]),iEe=/\s+/g,lV=e=>e.trim().toLowerCase().replace(iEe,"-"),uV=({color:e})=>g.jsx("div",{style:{backgroundColor:e},className:"color-bullet"}),cV=({tag:e,colorGenerator:t})=>g.jsx(uV,{color:t.getColorForKey(e)});let q5=1;const fV="Tag not found",dV="Add tag",oEe=e=>e!==fV,aEe=e=>e===dV,H5=e=>(q5+=1,{label:e,value:`${e}${q5}`}),sEe=e=>({tag:t,onClick:n})=>g.jsx(Rb,{colorGenerator:e,text:t.label,className:"react-tags__tag",onClose:n}),lEe=(e,t)=>({option:n,classNames:r,...i})=>{var o;const a=oEe(n.label),s=aEe(n.label);return g.jsx("div",{className:Be(r.option,{[r.optionIsActive]:a&&n.active,"react-tags__listbox-option--not-selectable":!a}),...i,children:a?g.jsxs(g.Fragment,{children:[!s&&g.jsx(cV,{tag:`${n.label}`,colorGenerator:e}),s?g.jsxs("i",{children:['Add "',lV(((o=t.current)==null?void 0:o.input.value)??""),'"']}):n.label]}):g.jsx("i",{children:n.label})})},hV=({selectedTags:e,onChange:t,placeholder:n,tags:r,immutable:i=!1})=>{const{ColorGenerator:o}=fn(hV),a=Rr("shortUrlCreation"),s=(a==null?void 0:a.tagFilteringMode)??"startsWith",c=Xi();return g.jsx(Nle,{ref:c,selected:e.map(H5),suggestions:r.filter(u=>!e.includes(u)).map(H5),renderTag:sEe(o),renderOption:lEe(o,c),activateFirstOption:!0,allowNew:!i,newOptionText:dV,noOptionsText:fV,placeholderText:n??"Add tags to the URL",delimiterKeys:["Enter",","],suggestionsTransform:(u,h)=>{const p=u.toLowerCase().trim();return p.length<1?[]:[...h.filter(({label:v})=>s==="includes"?v.includes(p):v.startsWith(p))].slice(0,5)},onDelete:u=>{const h=[...e];h.splice(u,1),t(h)},onAdd:({label:u})=>t([...new Set([...e,...u.split(",").map(lV)])])})},uEe=dn(hV,["ColorGenerator"]),PE="shlink/tagDelete",cEe={deleting:!1,deleted:!1,error:!1},pV=jr(`${PE}/tagDeleted`),fEe=e=>{const t=qn(`${PE}/deleteTag`,async r=>{await e().deleteTags([r])}),{reducer:n}=An({name:PE,initialState:cEe,reducers:{},extraReducers:r=>{r.addCase(t.pending,()=>({deleting:!0,deleted:!1,error:!1})),r.addCase(t.rejected,(i,{error:o})=>({deleting:!1,deleted:!1,error:!0,errorData:Si(o)})),r.addCase(t.fulfilled,()=>({deleting:!1,deleted:!0,error:!1}))}});return{reducer:n,deleteTag:t}},nA="shlink/tagEdit",dEe={editing:!1,edited:!1,error:!1},mV=jr(`${nA}/tagEdited`),hEe=(e,t)=>qn(`${nA}/editTag`,async({oldName:n,newName:r,color:i})=>(await e().editTag(n,r),t.setColorForKey(r,i),{oldName:n,newName:r,color:i})),pEe=e=>An({name:nA,initialState:dEe,reducers:{},extraReducers:t=>{t.addCase(e.pending,()=>({editing:!0,edited:!1,error:!1})),t.addCase(e.rejected,(n,{error:r})=>({editing:!1,edited:!1,error:!0,errorData:Si(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>{const{oldName:i,newName:o}=r;return{oldName:i,newName:o,editing:!1,edited:!0,error:!1}})}}),rA="shlink/tagsList",VO={tags:[],filteredTags:[],stats:{},loading:!1,error:!1},G5=(e,t)=>n=>n===e?t:n,K5=(e,t)=>e.filter(n=>n!==t),mEe=(e,t)=>e.reduce((n,[r,i])=>{if(!n[r])return n;const{bots:o,nonBots:a}=i,s=n[r];return{...n,[r]:{...s,visitsSummary:s.visitsSummary&&{total:s.visitsSummary.total+o+a,bots:s.visitsSummary.bots+o,nonBots:s.visitsSummary.nonBots+a},visitsCount:(s.visitsCount??0)+o+a}}},{...t}),vEe=e=>Object.entries(e.reduce((t,{shortUrl:n,visit:r})=>(n==null||n.tags.forEach(i=>{t[i]||(t[i]={bots:0,nonBots:0}),r.potentialBot?t[i].bots+=1:t[i].nonBots+=1}),t),{})),gEe=e=>qn(`${rA}/listTags`,async()=>{const{data:t}=await e().tagsStats(),n=t.reduce((r,{tag:i,...o})=>(r[i]=o,r),{});return{tags:Object.keys(n),stats:n}}),vV=jr(`${rA}/filterTags`),yEe=(e,t)=>An({name:rA,initialState:VO,reducers:{},extraReducers:n=>{n.addCase(vV,(r,{payload:i})=>({...r,filteredTags:r.tags.filter(o=>o.toLowerCase().match(i.toLowerCase()))})),n.addCase(e.pending,r=>({...r,loading:!0,error:!1})),n.addCase(e.rejected,(r,{error:i})=>({...VO,error:!0,errorData:Si(i)})),n.addCase(e.fulfilled,(r,{payload:i})=>({...VO,stats:i.stats,tags:i.tags,filteredTags:i.tags})),n.addCase(pV,({tags:r,filteredTags:i,...o},{payload:a})=>({...o,tags:K5(r,a),filteredTags:K5(i,a)})),n.addCase(mV,({tags:r,filteredTags:i,stats:o,...a},{payload:s})=>({...a,stats:{...o,[s.newName]:o[s.oldName]},tags:r.map(G5(s.oldName,s.newName)).sort(),filteredTags:i.map(G5(s.oldName,s.newName)).sort()})),n.addCase(cd,(r,{payload:i})=>({...r,stats:mEe(vEe(i.createdVisits),r.stats)})),n.addCase(t.fulfilled,({tags:r,...i},{payload:o})=>({...i,tags:r.concat(o.tags.filter(a=>!r.includes(a)))}))}}),bEe={tag:"Tag",shortUrls:"Short URLs",visits:"Visits"},gV=jo(({filterTags:e,tagsList:t})=>{var n,r;const{TagsTable:i}=fn(gV),o=ET(),[a,s]=F.useState(((n=o.tags)==null?void 0:n.defaultOrdering)??{}),c=F.useMemo(()=>{const h=t.filteredTags.map(p=>{var v,b,x;const _=t.stats[p],w=((v=o.visits)!=null&&v.excludeBots?(b=_==null?void 0:_.visitsSummary)==null?void 0:b.nonBots:(x=_==null?void 0:_.visitsSummary)==null?void 0:x.total)??(_==null?void 0:_.visitsCount)??0;return{tag:p,visits:w,shortUrls:(_==null?void 0:_.shortUrlsCount)??0}});return kF(h,a)},[a,(r=o.visits)==null?void 0:r.excludeBots,t.filteredTags,t.stats]),u=Vj();return t.loading?g.jsx(za,{loading:!0}):t.error?g.jsx(Tr,{type:"error",children:g.jsx(ia,{errorData:t.errorData,fallbackMessage:"Error loading tags :("})}):g.jsxs(zj,{value:u,children:[g.jsx(tm,{className:"mb-3",onChange:e}),g.jsx(qi,{className:"mb-3",children:g.jsx("div",{className:"col-lg-6 offset-lg-6",children:g.jsx(nm,{items:bEe,order:a,onChange:(h,p)=>s({field:h,dir:p})})})}),g.jsx(Wj,{type:"tags",className:"mb-3"}),g.jsx(i,{sortedTags:c,currentOrder:a,orderByColumn:h=>()=>{const p=D0(h,a.field,a.dir);s({field:p?h:void 0,dir:p})}})]})},()=>[kr.visits]),_Ee=dn(gV,["TagsTable"]),iA=({pagesCount:e,currentPage:t,setCurrentPage:n,centered:r=!0})=>{if(e<2)return null;const i=o=>()=>!qp(o)&&n(o);return g.jsxs(bT,{listClassName:Be("flex-wrap mb-0 simple-paginator",{"justify-content-center":r}),children:[g.jsx(mu,{disabled:t<=1,children:g.jsx(vu,{previous:!0,tag:"span",onClick:i(t-1)})}),nV(t,e).map((o,a)=>g.jsx(mu,{disabled:qp(o),active:t===o,children:g.jsx(vu,{role:"link",tag:"span",onClick:i(o),children:rV(o)})},iV(o,a))),g.jsx(mu,{disabled:t>=e,children:g.jsx(vu,{next:!0,tag:"span",onClick:i(t+1)})})]})},xEe=20,yV=({sortedTags:e,orderByColumn:t,currentOrder:n})=>{const{TagsTableRow:r}=fn(yV),i=F.useRef(!0),{page:o=1}=Zf(),[a,s]=ySe("page",Number(o)),c=F.useCallback(v=>{s(v),scrollTo(0,0)},[s]),u=Jc(e,xEe),h=u.length>1,p=u[a-1]??[];return F.useEffect(()=>{i.current||c(1),i.current=!1},[c,e]),g.jsxs(qt,{bodyClassName:h?"pb-1":"",children:[g.jsxs("table",{className:"table table-hover responsive-table mb-0",children:[g.jsxs("thead",{className:"responsive-table__header",children:[g.jsxs("tr",{children:[g.jsxs("th",{className:"tags-table__header-cell",onClick:t("tag"),children:["Tag ",g.jsx(Hh,{currentOrder:n,field:"tag"})]}),g.jsxs("th",{className:"tags-table__header-cell text-lg-end",onClick:t("shortUrls"),children:["Short URLs ",g.jsx(Hh,{currentOrder:n,field:"shortUrls"})]}),g.jsxs("th",{className:"tags-table__header-cell text-lg-end",onClick:t("visits"),children:["Visits ",g.jsx(Hh,{currentOrder:n,field:"visits"})]}),g.jsx("th",{className:"tags-table__header-cell",children:g.jsx("span",{className:"sr-only",children:"Options"})})]}),g.jsx("tr",{children:g.jsx("th",{"aria-hidden":!0,colSpan:4,className:"p-0 border-top-0"})})]}),g.jsxs("tbody",{children:[p.length===0&&g.jsx("tr",{children:g.jsx("td",{colSpan:4,className:"text-center",children:"No tags found"})}),p.map(v=>g.jsx(r,{tag:v},v.tag))]})]}),h&&g.jsx("div",{className:"sticky-card-paginator",children:g.jsx(iA,{pagesCount:u.length,currentPage:a,setCurrentPage:c})})]},a)},wEe=dn(yV,["TagsTableRow"]),bV=({tag:e})=>{const{DeleteTagConfirmModal:t,EditTagModal:n,ColorGenerator:r}=fn(bV),[i,o]=cn(),[a,s]=cn(),c=_l(),u=Eb();return g.jsxs("tr",{className:"responsive-table__row",children:[g.jsxs("th",{className:"responsive-table__cell","data-th":"Tag",children:[g.jsx(cV,{tag:e.tag,colorGenerator:r})," ",e.tag]}),g.jsx("td",{className:"responsive-table__cell text-lg-end","data-th":"Short URLs",children:g.jsx(Jt,{to:`${c}/list-short-urls/1?tags=${encodeURIComponent(e.tag)}`,children:Cn(e.shortUrls)})}),g.jsx("td",{className:"responsive-table__cell text-lg-end","data-th":"Visits",children:g.jsx(Jt,{to:`${c}/tag/${e.tag}/visits`,children:Cn(e.visits)})}),g.jsx("td",{className:"responsive-table__cell text-lg-end",children:g.jsxs(I0,{children:[g.jsxs(Ye,{onClick:s,children:[g.jsx(Ge,{icon:Z8,fixedWidth:!0,className:"me-1"})," Edit"]}),g.jsxs(Ye,{disabled:!u||!u.canAddItemWithName(e.tag),onClick:()=>u==null?void 0:u.addItemToCompare({name:e.tag,query:e.tag,style:r.stylesForKey(e.tag)}),children:[g.jsx(Ge,{icon:E0,fixedWidth:!0})," Compare visits"]}),g.jsx(Ye,{divider:!0,tag:"hr"}),g.jsxs(Ye,{className:"dropdown-item--danger",onClick:o,children:[g.jsx(Ge,{icon:OK,fixedWidth:!0,className:"me-1"})," Delete tag"]})]})}),g.jsx(n,{tag:e.tag,toggle:s,isOpen:a}),g.jsx(t,{tag:e.tag,toggle:o,isOpen:i})]})},OEe=dn(bV,["DeleteTagConfirmModal","EditTagModal","ColorGenerator"]),SEe=(e,t)=>{e.factory("TagsSelector",uEe),e.serviceFactory("DeleteTagConfirmModal",()=>nEe),e.decorator("DeleteTagConfirmModal",t(["tagDelete"],["deleteTag","tagDeleted"])),e.factory("EditTagModal",rEe),e.decorator("EditTagModal",t(["tagEdit"],["editTag","tagEdited"])),e.factory("TagsTableRow",OEe),e.factory("TagsTable",wEe),e.factory("TagsList",_Ee),e.decorator("TagsList",t(["tagsList","mercureInfo"],["filterTags","createNewVisits","loadMercureInfo"])),e.serviceFactory("tagEditReducerCreator",pEe,"editTag"),e.serviceFactory("tagEditReducer",n=>n.reducer,"tagEditReducerCreator"),e.serviceFactory("tagDeleteReducerCreator",fEe,"apiClientFactory"),e.serviceFactory("tagDeleteReducer",n=>n.reducer,"tagDeleteReducerCreator"),e.serviceFactory("tagsListReducerCreator",yEe,"listTags","createShortUrl"),e.serviceFactory("tagsListReducer",n=>n.reducer,"tagsListReducerCreator"),e.serviceFactory("listTags",gEe,"apiClientFactory"),e.serviceFactory("filterTags",()=>vV),e.serviceFactory("deleteTag",n=>n.deleteTag,"tagDeleteReducerCreator"),e.serviceFactory("tagDeleted",()=>pV),e.serviceFactory("editTag",hEe,"apiClientFactory","ColorGenerator"),e.serviceFactory("tagEdited",()=>mV)},PEe=new g7,CEe=e=>PEe.parse(e),Y5=e=>e.toLowerCase().trim();class EEe{constructor(t){nl(this,"colors"),nl(this,"lights");var n;this.storage=t,this.colors=((n=this.storage)==null?void 0:n.getTagColors())??{},this.lights={}}getColorForKey(t){const n=Y5(t);return this.colors[n]||this.setColorForKey(n,dCe())}setColorForKey(t,n){var r;const i=Y5(t);return this.colors[i]=n,(r=this.storage)==null||r.storeTagColors(this.colors),n}stylesForKey(t){const n=this.getColorForKey(t);return{backgroundColor:n,color:this.isLightColor(n)?"#222":"#fff"}}isLightColor(t){const n=t.substring(1);return this.lights[n]===void 0&&(this.lights[n]=$z(n)),this.lights[n]}}const _V=({document:e},t,n)=>{const r=e.createElement("a");r.setAttribute("href",t),r.setAttribute("download",n),r.style.visibility="hidden",e.body.appendChild(r),r.click(),e.body.removeChild(r)},TEe=(e,t,n)=>{const r=new Blob([t],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r);_V(e,i,n)};class jEe{constructor(t,n){this.fetch=t,this.window=n}async saveImage(t,n){const r=await this.fetch(t).then(o=>o.blob()),i=URL.createObjectURL(r);_V(this.window,i,n)}}class AEe{constructor(t,n){nl(this,"exportVisits",(r,i)=>{i.length&&this.exportCsv(r,i)}),nl(this,"exportShortUrls",r=>{r.length&&this.exportCsv("short_urls.csv",r)}),nl(this,"exportCsv",(r,i)=>{const o=this.jsonToCsv(i);TEe(this.window,o,r)}),this.window=t,this.jsonToCsv=n}}function kEe(e){e.constant("window",window),e.constant("fetch",window.fetch.bind(window)),e.service("ImageDownloader",jEe,"fetch","window"),e.service("ColorGenerator",EEe,"TagColorsStorage"),e.constant("jsonToCsv",CEe),e.service("ReportExporter",AEe,"window","jsonToCsv"),e.serviceFactory("useTimeoutToggle",()=>jF)}const gm=({visits:e,shortUrl:t,children:n,title:r})=>g.jsx("header",{children:g.jsxs(wi,{body:!0,children:[g.jsxs("h2",{className:"d-flex justify-content-between align-items-center mb-0",children:[g.jsx(kb,{}),g.jsx("span",{className:"text-center d-none d-sm-block",children:g.jsx("small",{children:r})}),g.jsxs("span",{className:"badge badge-main ms-3",children:["Visits:"," ",g.jsx(zz,{visitsCount:e.length,shortUrl:t})]})]}),g.jsx("h3",{className:"text-center d-block d-sm-none mb-0 mt-3",children:g.jsx("small",{children:r})}),n&&g.jsx("div",{className:"mt-md-2",children:n})]})}),Mb=({children:e,className:t})=>g.jsx("div",{className:Be("d-flex justify-content-between align-items-center",t),children:e}),xV=({title:e,footer:t,children:n})=>g.jsxs(wi,{role:"document",children:[g.jsx(Qp,{className:"chart-card__header",children:e}),g.jsx(Xp,{children:n}),t&&g.jsx(hF,{className:"chart-card__footer--sticky",children:t})]}),wV={color:"white",background:"rgb(0 0 0 / .9)",border:"none",borderRadius:"5px"},REe={marginBottom:"5px",fontWeight:"bold"},OV={contentStyle:wV,labelStyle:REe,itemStyle:{padding:0}},Z5=["#97BBCD","#F7464A","#46BFBD","#FDB45C","#949FB1","#57A773","#414066","#08B2E3","#B6C454","#DCDCDC","#463730"],SV=e=>Z5[e%Z5.length],g0=()=>rm()?"#46e587":"#1DAA58",NEe=()=>rm()?"rgba(70, 229, 135, 0.4)":"rgba(29, 170, 88, 0.4)",MEe=({chartData:e,showNumbers:t})=>g.jsx("ul",{className:"doughnut-chart-legend",children:e.map(({name:n,color:r,value:i})=>g.jsxs("li",{className:"doughnut-chart-legend__item d-flex",children:[g.jsx("div",{className:"doughnut-chart-legend__item-color",style:{backgroundColor:r}}),g.jsxs("small",{className:"doughnut-chart-legend__item-text flex-fill",children:[n,t&&g.jsxs("b",{children:[" (",Cn(i),")"]})]})]},n))}),X5=e=>F.useMemo(()=>Object.entries(e).map(([t,n],r)=>({name:t,value:n,color:SV(r)})),[e]),LEe=({stats:e,prevStats:t,showNumbersInLegend:n,dimensions:r})=>{const i=X5(e),o=X5(t),a=o.length>0,s=rm()?gie:vie;return g.jsxs("div",{className:"row align-items-center",children:[g.jsx("div",{className:"col-sm-12 col-md-7",children:g.jsx("div",{style:r??{width:"100%",height:300},children:g.jsx(r?F.Fragment:ej,{children:g.jsxs(kOe,{...r,children:[g.jsx(zi,{formatter:Cn,contentStyle:wV,itemStyle:{color:"white"}}),g.jsx(ra,{data:i,dataKey:"value",nameKey:"name",startAngle:360,endAngle:0,outerRadius:"100%",innerRadius:a?"65%":"50%",animationBegin:0,children:i.map((c,u)=>g.jsx(Js,{fill:c.color,stroke:s},`${c.name}-${u}`))}),a&&g.jsx(ra,{data:o,dataKey:"value",nameKey:"name",startAngle:360,endAngle:0,outerRadius:"55%",innerRadius:"20%",animationBegin:0,stroke:s,fill:g0()})]})})})}),g.jsx("div",{className:"col-sm-12 col-md-5",children:g.jsx(MEe,{chartData:i,showNumbers:n})})]})},Q5=({title:e,...t})=>{const[n,r]=cn(!1);return g.jsx(xV,{title:g.jsxs(Mb,{children:[e,g.jsx("div",{children:g.jsx(Va,{checked:n,onChange:r,children:"Show numbers"})})]}),children:g.jsx(LEe,{...t,showNumbersInLegend:n})})},IEe=F.forwardRef(({visitsGroups:e},t)=>{const n=F.useMemo(()=>Object.entries(e),[e]);return n.length===0?null:g.jsx("ul",{className:"list-unstyled mb-0 mt-2 d-flex flex-wrap justify-content-center gap-3",ref:t,children:n.map(([r,i],o)=>g.jsxs("li",{className:"d-inline",children:[g.jsx(uV,{color:PV(i)}),g.jsxs("strong",{children:[r," (",Cn(i.length),")"]})]},`${r}${o}`))})}),DEe={monthly:"Month",weekly:"Week",daily:"Day",hourly:"Hour"},$Ee={hourly:e=>({hours:e}),daily:e=>({days:e}),weekly:e=>({weeks:e}),monthly:e=>({months:e})},FEe={hourly:lae,daily:V0,weekly:sae,monthly:oy},oA={hourly:e=>ay(e,"yyyy-MM-dd HH:00"),daily:e=>Zs(e),weekly(e){const t=Zs(lp(e)),n=Zs(vae(e));return`${t} - ${n}`},monthly:e=>ay(e,"yyyy-MM")},BEe=e=>{var t;const n=Object.values(e).filter(a=>a.length>0);if(n.length===0)return"monthly";const r=new Date,i=n.map(a=>al(a[a.length-1].date)),o=i7(i);return((t=[[()=>V0(r,o)<=2,"hourly"],[()=>oy(r,o)<=1,"daily"],[()=>oy(r,o)<=6,"weekly"]].find(([a])=>a()))==null?void 0:t[1])??"monthly"},UEe=(e,t)=>Object.keys(t).reduce((n,r)=>(n[r]=KF(t[r],i=>oA[e](al(i.date))),n),{}),zEe=(e,t)=>t.reduce((n,r)=>{const i=oA[e](al(r.date));return n[i]=n[i]??[],n[i].push(r),n},{}),VEe=(e,t)=>{const n=Object.values(t).filter(h=>h.length>0).map(h=>[...h].reverse());if(n.length===0)return[];const r=FEe[e],i=oA[e],o=$Ee[e],a=n.flat(),s=al(a[0].date),c=al(a[a.length-1].date),u=r(c,s)||1;return[{formattedDate:i(s),date:s},...qj(u,h=>{const p=tae(s,o(h));return{formattedDate:i(p),date:p}})]},PV=e=>{if(e.color)return e.color;const t={main:ip,highlighted:IP,previous:g0()};return e.type?t[e.type]:ip},J5=(e,t)=>F.useMemo(()=>Object.values(e).find(n=>n.type===t)??[],[e,t]),WEe=(e,t,n)=>{const r=J5(e,"main"),i=J5(e,"highlighted"),o=F.useMemo(()=>n?zEe(t,r):{},[n,t,r]),a=F.useCallback((s,{payload:c})=>{const u=o[c.formattedDate]??[];n==null||n(u===i?[]:u)},[o,i,n]);return n&&{cursor:"pointer",onClick:a}},e8=e=>{var t,n;return(n=(t=e.activePayload)==null?void 0:t[0])==null?void 0:n.payload},CV=({visitsGroups:e,setSelectedVisits:t,dimensions:n,matchMedia:r,onDateRangeChange:i})=>{const[o,a]=F.useState(BEe(e)),s=Gj(767,r??window.matchMedia),c=F.useMemo(()=>{const H=UEe(o,e),J=Object.keys(H);return VEe(o,e).map(({formattedDate:Q,date:re})=>({date:re,formattedDate:Q,...J.reduce((ae,se)=>(ae[se]=H[se][Q]??0,ae),{})}))},[o,e]),u=WEe(e,o,t),[h,p,,v]=cn(),b=Xi(),x=F.useId(),_=Xi(),[w,O]=F.useState(s?300:400);F.useLayoutEffect(()=>{if(!h)return O(s?300:400),()=>{};const H=new ResizeObserver(()=>{const{height:J}=b.current.getBoundingClientRect(),{height:Q}=_.current.getBoundingClientRect();O(J-Q-48)});return H.observe(b.current),H.observe(_.current),()=>H.disconnect()},[b,h,s,_]),_Se("Escape",v,h);const P=n?F.Fragment:ej,E=F.useMemo(()=>n?{}:{width:"100%",height:w},[n,w]),[T,A]=F.useState(),[j,N]=F.useState(),$=F.useCallback(()=>{A(void 0),N(void 0)},[]),W=F.useCallback((H,J)=>{const Q=e8(H);J.button===0&&Q&&A(Q)},[]),B=F.useCallback(H=>{const J=e8(H);T&&J&&N(J)},[T]),V=F.useCallback(()=>{if(!T||!j)return;const H=[T.date,j.date],J=iae(H),Q=i7(H);$(),i({startDate:J,endDate:Q})},[i,$,j,T]);return g.jsxs(wi,{className:Be({"fixed-top fixed-bottom":h}),"data-testid":"line-chart-card",children:[g.jsxs(Qp,{role:"heading","aria-level":4,className:"d-flex justify-content-between align-items-center",children:["Visits over time",g.jsxs("div",{className:"d-flex align-content-center gap-1",children:[g.jsx(_t,{"aria-label":h?"Collapse":"Expand","aria-expanded":h,"aria-controls":x,size:"sm",color:"link",onClick:p,children:g.jsx(Ge,{icon:h?rK:QK})}),g.jsxs(em,{className:"d-flex align-items-center",children:[g.jsx(Xa,{caret:!0,color:"link",className:"btn-sm p-0",children:"Group by"}),g.jsx(pl,{end:!0,children:Object.entries(DEe).map(([H,J])=>g.jsx(Ye,{active:o===H,onClick:()=>a(H),children:J},H))})]})]})]}),g.jsxs(Xp,{innerRef:b,id:x,children:[g.jsx(P,{...E,children:g.jsxs(AOe,{className:"user-select-none",data:c,...n,onMouseDown:W,onMouseMove:B,onMouseUp:V,children:[g.jsx(ld,{dataKey:"formattedDate"}),g.jsx(ud,{tickFormatter:Cn,yAxisId:"1"}),g.jsx(zi,{formatter:Cn,...OV}),g.jsx(Ij,{strokeOpacity:rm()?.1:.9}),Object.entries(e).map(([H,J])=>J.length>0&&g.jsx(sd,{yAxisId:"1",dataKey:H,type:"monotone",stroke:PV(J),strokeWidth:2,activeDot:J.type==="previous"?void 0:u,strokeDasharray:J.type==="previous"?"8 3":void 0},H)),T&&j&&g.jsx(hm,{yAxisId:"1",x1:T.formattedDate,x2:j.formattedDate})]})}),g.jsx(IEe,{visitsGroups:e,ref:_})]})]})},qEe=({toggleClassName:e,ranges:t,value:n,setValue:r})=>g.jsxs(em,{children:[g.jsx(Xa,{caret:!0,color:"link",className:e,children:"Paginate"}),g.jsxs(pl,{end:!0,children:[t.map(i=>g.jsxs(Ye,{active:i===n,onClick:()=>r(i),children:[g.jsx("b",{children:i})," items per page"]},i)),g.jsx(Ye,{divider:!0,tag:"hr"}),g.jsx(Ye,{disabled:n===1/0,onClick:()=>r(1/0),children:g.jsx("i",{children:"Clear pagination"})})]})]}),t8=e=>e.startsWith("hidden_"),HEe=({stats:e,prevStats:t,highlightedStats:n,highlightedLabel:r,max:i,onClick:o,dimensions:a})=>{const s=F.useMemo(()=>Object.entries(e).map(([p,v])=>{const b=(n==null?void 0:n[p])??0,x=(t==null?void 0:t[p])??0,_=t8(p);return{name:p,amount:Math.max(v,x),nonHighlightedAmount:_?null:v-b,highlightedAmount:_?null:b,prevAmount:_?null:x}}),[e,t,n]),c=F.useMemo(()=>{const p=s.reduce((v,{name:b})=>v>b.length?v:b.length,0);return Math.min(150,p*7)},[s]),u=a?F.Fragment:ej,h=F.useMemo(()=>a?{}:{width:"100%",height:Math.max(300,s.length*(t?44:22))},[a,s.length,t]);return g.jsx(u,{...h,children:g.jsxs(ROe,{layout:"vertical",data:s,barCategoryGap:3,...a,children:[g.jsx(ld,{type:"number",dataKey:"amount",tickFormatter:Cn,domain:i?[0,i]:void 0}),g.jsx(ud,{type:"category",dataKey:"name",width:c,interval:0,style:{fontSize:".8rem"},tickFormatter:p=>t8(p)?"":p}),g.jsx(Ij,{strokeOpacity:rm()?.05:.9}),g.jsx(zi,{filterNull:!0,...OV,formatter:(p,v)=>[Cn(p),v==="highlightedAmount"?r:v==="prevAmount"?"Previous period":n?"Non-selected":"Visits"]}),g.jsx($a,{dataKey:"nonHighlightedAmount",stackId:"main",cursor:"pointer",fill:ip,onClick:({name:p})=>o==null?void 0:o(p),children:s.map(p=>g.jsx(Js,{fill:pie,stroke:ip,strokeWidth:2},p.name))}),n&&g.jsx($a,{dataKey:"highlightedAmount",stackId:"main",cursor:"pointer",fill:IP,onClick:({name:p})=>o==null?void 0:o(p),children:s.map(p=>g.jsx(Js,{fill:mie,stroke:IP,strokeWidth:2},p.name))}),t&&g.jsx($a,{dataKey:"prevAmount",fill:g0(),children:s.map(p=>g.jsx(Js,{fill:NEe(),stroke:g0(),strokeWidth:2},p.name))})]})})},GEe=e=>typeof e=="string"?e.toLowerCase():e,KEe=([e])=>e,YEe=([,e])=>e,ag=({stats:e,prevStats:t,highlightedStats:n,title:r,sortingItems:i,extraHeaderContent:o,withPagination:a=!0,...s})=>{const[c,u]=F.useState({}),[h,p]=F.useState(1),[v,b]=F.useState(50),x=F.useCallback(($,W)=>{const B=Object.entries($),V=c.field?Ooe(B,([H,J])=>GEe(c.field===Object.keys(W)[0]?H:J)):B;return!c.dir||c.dir==="ASC"?V:[...V].reverse()},[c.dir,c.field]),_=F.useCallback($=>{const W=$[h-1];if(h<$.length)return W;const B=$[0].length;return[...W,...qj(B-W.length,V=>[`hidden_${V}`,0])]},[h]),w=F.useCallback($=>g.jsx(iA,{currentPage:h,pagesCount:$,setCurrentPage:p}),[h]),O=F.useCallback(($,W,B,V)=>{const H=x($,W),J=H.map(KEe),Q=B&&Object.entries({...iN(J,J.map(()=>0)),...B}),re=V&&Object.entries({...iN(J,J.map(()=>0)),...V});if(H.length<=v)return{currentPageStats:Object.fromEntries(H),currentPageHighlightedStats:Q&&Object.fromEntries(Q),currentPagePrevStats:re&&Object.fromEntries(re)};const ae=Jc(H,v),se=Q&&Jc(Q,v),oe=re&&Jc(re,v);return{currentPageStats:Object.fromEntries(_(ae)),currentPageHighlightedStats:se&&Object.fromEntries(_(se)),currentPagePrevStats:oe&&Object.fromEntries(_(oe)),pagination:w(ae.length),max:zSe(Math.max(...H.map(YEe)))}},[_,x,v,w]),{currentPageStats:P,currentPagePrevStats:E,currentPageHighlightedStats:T,pagination:A,max:j}=F.useMemo(()=>O(e,i,n&&Object.keys(n).length>0?n:void 0,t&&Object.keys(t).length>0?t:void 0),[O,n,t,i,e]),N=F.useMemo(()=>Object.keys(P),[P]);return g.jsx(xV,{title:g.jsxs(Mb,{children:[r,g.jsxs("div",{className:"d-flex gap-3",children:[o==null?void 0:o(A?N:void 0),a&&Object.keys(e).length>50&&g.jsx(qEe,{toggleClassName:"btn-sm p-0",ranges:[50,100,200,500],value:v,setValue:$=>{b($),p(1)}}),g.jsx(nm,{isButton:!1,right:!0,items:i,order:c,onChange:($,W)=>{u({field:$,dir:W}),p(1)}})]})]}),footer:A,children:g.jsx(HEe,{stats:P,prevStats:E,highlightedStats:T,max:j,...s})})},aA=e=>e.type!==void 0,ZEe=e=>e.type!==void 0,XEe=e=>{const t=YF(e,n=>aA(n.visit)?"orphanVisits":"nonOrphanVisits");return{orphanVisits:[],nonOrphanVisits:[],...t}},EV=(e,{shortCode:t,domain:n},{endDate:r,startDate:i}={})=>e.filter(({shortUrl:o,visit:a})=>o&&Wh(o,t,n)&&vm(a.date,i,r)),TV=(e,t,{endDate:n,startDate:r}={})=>e.filter(({shortUrl:i,visit:o})=>i&&NSe(i,t)&&vm(o.date,r,n)),jV=(e,t,{endDate:n,startDate:r}={})=>e.filter(({shortUrl:i,visit:o})=>(i==null?void 0:i.tags.includes(t))&&vm(o.date,r,n)),sg=(e,t)=>KF(e,n=>n[t]),QEe=e=>{const t=((e==null?void 0:e.startDate)&&cl(e==null?void 0:e.startDate))??void 0,n=((e==null?void 0:e.endDate)&&cl(e==null?void 0:e.endDate))??void 0;return{startDate:t,endDate:n}},CE=({filter:e,dateRange:t})=>{const{startDate:n,endDate:r}=QEe(t),i=(e==null?void 0:e.excludeBots)||void 0;return{startDate:n,endDate:r,excludeBots:i}},JEe=e=>eV(e.dateRange),eTe=({dateRange:e,...t})=>({...t,dateRange:VCe(e)}),n8=(e,t)=>{if(!(!t||!(e in t)))return t[e]&&cl(t[e])||""},AV=()=>{const e=oa(),t=Zf(),{startDate:n,endDate:r,orphanVisitsType:i,excludeBots:o,loadPrevInterval:a,...s}=t,c=F.useMemo(()=>({dateRange:n!=null||r!=null?Zz(n,r):void 0,visitsFilter:{orphanVisitsType:i,excludeBots:o!==void 0?o==="true":void 0},loadPrevInterval:a!==void 0?a==="true":void 0}),[r,o,a,i,n]),u=F.useCallback(h=>{const{dateRange:p,visitsFilter:v={},loadPrevInterval:b}=z0(c,h),{excludeBots:x,orphanVisitsType:_}=v,w={...s,startDate:n8("startDate",p),endDate:n8("endDate",p),excludeBots:x===void 0?void 0:_E(x),orphanVisitsType:_,loadPrevInterval:b===void 0?void 0:_E(b)},O=L0(w),P=O?`?${O}`:"";e(P,{replace:!0,relative:"route"})},[c,e,s]);return[c,u]},tTe=()=>g.jsx(XOe,{attribution:'&copy <a href="https://osm.org/copyright">OpenStreetMap</a> contributors',url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}),nTe=e=>{if(e.length===0)return{};if(e.length>1)return{bounds:e.map(({latLong:n})=>n)};const[{latLong:t}]=e;return{zoom:10,center:t}},kV=({toggle:e,isOpen:t,title:n,locations:r=[]})=>g.jsx(Zr,{toggle:e,isOpen:t,className:"map-modal__modal",contentClassName:"map-modal__modal-content",children:g.jsxs(Po,{className:"map-modal__modal-body",children:[g.jsxs(Mb,{className:"map-modal__modal-title fs-4",children:[n,g.jsx("button",{type:"button",className:"btn-close","aria-label":"Close",onClick:e})]}),g.jsxs(KOe,{...nTe(r),children:[g.jsx(tTe,{}),r.map(({cityName:i,latLong:o,count:a},s)=>g.jsx(YOe,{position:o,children:g.jsxs(ZOe,{children:[g.jsx("b",{children:a})," visit",a>1?"s":""," from ",g.jsx("b",{children:i})]})},s))]})]})}),rTe=({modalTitle:e,activeCities:t,locations:n=[]})=>{const[r,,i,o]=cn(),[a,s]=cn(),[c,u]=F.useState([]),h=F.useCallback(p=>{u(p?n.filter(p):n),i()},[n,i]);return g.jsxs(g.Fragment,{children:[!t&&g.jsx(_t,{color:"link",className:"p-0",onClick:()=>h(),"aria-label":"Show in map",title:"Show in map",children:g.jsx(Ge,{icon:JO})}),t&&g.jsxs(hl,{isOpen:a,toggle:s,children:[g.jsx(Xa,{color:"link",className:"p-0",title:"Show in map",children:g.jsx(Ge,{icon:JO})}),g.jsxs(pl,{end:!0,children:[g.jsx(Ye,{onClick:()=>h(),children:"Show all locations"}),g.jsx(Ye,{onClick:()=>h(({cityName:p})=>t.includes(p)),children:"Show locations in current page"})]})]}),g.jsx(kV,{toggle:o,isOpen:r,title:e,locations:c})]})},RV=({onChange:e,selected:t={},className:n,isOrphanVisits:r=!1,withPrevInterval:i=!1,disabled:o})=>{const{orphanVisitsType:a,excludeBots:s=!1,loadPrevInterval:c=!1}=t,u=v=>({active:a===v,onClick:()=>e({...t,orphanVisitsType:v===a?void 0:v})}),h=F.useCallback(()=>e({...t,excludeBots:!s}),[s,e,t]),p=F.useCallback(()=>e({...t,loadPrevInterval:!c}),[c,e,t]);return g.jsxs(Ja,{disabled:o,text:"More",dropdownClassName:n,end:!0,minWidth:250,children:[i&&g.jsxs(g.Fragment,{children:[g.jsx(Ye,{active:c,onClick:p,children:"Compare with previous period"}),g.jsx(Ye,{divider:!0,tag:"hr"})]}),g.jsx(Ye,{header:!0,"aria-hidden":!0,children:"Bots:"}),g.jsx(Ye,{active:s,onClick:h,children:"Exclude potential bots"}),r&&g.jsxs(g.Fragment,{children:[g.jsx(Ye,{divider:!0,tag:"hr"}),g.jsx(Ye,{header:!0,"aria-hidden":!0,children:"Orphan visits type:"}),g.jsx(Ye,{...u("base_url"),children:"Base URL"}),g.jsx(Ye,{...u("invalid_short_url"),children:"Invalid short URL"}),g.jsx(Ye,{...u("regular_404"),children:"Regular 404"})]}),g.jsx(Ye,{divider:!0,tag:"hr"}),g.jsx(Ye,{disabled:t.excludeBots===void 0&&t.loadPrevInterval===void 0&&t.orphanVisitsType===void 0,onClick:()=>e({excludeBots:void 0,loadPrevInterval:void 0,orphanVisitsType:void 0}),children:g.jsx("i",{children:"Reset to defaults"})})]})},NV=({info:e})=>{const{loading:t,errorData:n,progress:r}=e;return g.jsxs(g.Fragment,{children:[t&&r===null&&g.jsx(za,{loading:!0}),t&&r!==null&&g.jsxs(za,{loading:!0,children:["This is going to take a while... :S",g.jsx(yF,{value:r,striped:r>=100,className:"mt-3"})]}),n&&g.jsx(Tr,{type:"error",children:g.jsx(ia,{errorData:n,fallbackMessage:"An error occurred while loading visits :("})})]})},xg=({children:e,showFallback:t})=>g.jsxs(g.Fragment,{children:[t&&g.jsx(za,{className:"mt-3",children:"There are no visits matching current filter"}),!t&&g.jsx(g.Fragment,{children:e})]}),iTe=({visitsDeletion:e,deleteVisits:t})=>{const{deleting:n}=e,[r,,i]=cn();return g.jsx(qt,{title:g.jsx("span",{className:"text-danger fw-bold",children:"Danger zone"}),children:g.jsxs(Mb,{children:[g.jsxs("dl",{className:"m-0 me-3",children:[g.jsx("dt",{children:"Delete visits."}),g.jsxs("dd",{className:"m-0",children:["This will delete ",g.jsx("b",{children:"all"})," visits, not only the ones matching current filter."]})]}),!r&&g.jsx(_t,{color:"danger",className:"indivisible",onClick:i,children:"Delete visits"}),r&&g.jsxs(_t,{color:"danger",disabled:n,className:"indivisible",onClick:t,innerRef:o=>{o==null||o.focus()},children:[!n&&g.jsx(g.Fragment,{children:"Click again to confirm"}),n&&g.jsx(g.Fragment,{children:"Deleting..."})]})]})})},lg="Others",oTe=["Android Browser","Chrome","Chromium","Firefox","Internet Explorer","Microsoft Edge","Opera","Safari","Samsung Internet for Android","Vivaldi","WeChat"],aTe=e=>{if(!au(e))return{browser:lg,os:lg};const{browser:{name:t},os:{name:n}}=rSe.parse(e);return{os:n??lg,browser:t&&oTe.includes(t)?t:lg}},sTe=e=>{var t;return au(e)?((t=e.split("/")[e.includes("://")?2:0])==null?void 0:t.split(":")[0])??"":"Direct"},MV=(e,t)=>e[t]!==void 0,r8=e=>typeof e=="number"?e:e?parseFloat(e):0,lTe=(e,{os:t})=>{e[t]=(e[t]||0)+1},uTe=(e,{browser:t})=>{e[t]=(e[t]||0)+1},cTe=(e,{referer:t})=>{e[t]=(e[t]||0)+1},LV=e=>(t,n)=>{const r=MV(n,e)?n[e]:"Unknown";t[r]=(t[r]||0)+1},fTe=LV("country"),dTe=LV("city"),hTe=(e,t)=>{if(!MV(t,"city")||t.city==="Unknown")return;const{city:n,latitude:r,longitude:i}=t,o=e[n]||{cityName:n,count:0,latLong:[r8(r),r8(i)]};o.count+=1,e[n]=o},pTe=(e,t)=>{if(!ZEe(t))return;const{visitedUrl:n}=t;e[n]=(e[n]||0)+1},EE=e=>e.reduce((t,n)=>(lTe(t.os,n),uTe(t.browsers,n),cTe(t.referrers,n),fTe(t.countries,n),dTe(t.cities,n),hTe(t.citiesForMap,n),pTe(t.visitedUrls,n),t),{os:{},browsers:{},referrers:{},countries:{},cities:{},citiesForMap:{},visitedUrls:{}}),y0=e=>e.map(t=>{const{userAgent:n,date:r,referer:i,visitLocation:o,potentialBot:a}=t;return{date:r,potentialBot:a,userAgent:n,...aTe(n),referer:sTe(i),country:(o==null?void 0:o.countryName)||"Unknown",city:(o==null?void 0:o.cityName)||"Unknown",latitude:o==null?void 0:o.latitude,longitude:o==null?void 0:o.longitude,visitedUrl:t.visitedUrl,type:aA(t)?t.type:void 0}}),mTe=Object.freeze(Object.defineProperty({__proto__:null,normalizeVisits:y0,processStatsFromVisits:EE},Symbol.toStringTag,{value:"Module"})),Eh=20,vTe=({browser:e,os:t,referer:n,country:r,city:i,userAgent:o,...a},s,c)=>{const u=c?o:`${r} ${i}`;return`${e} ${t} ${n} ${u} ${a.visitedUrl}`.toLowerCase().includes(s.toLowerCase())},gTe=(e,t,n)=>t.filter(r=>vTe(r,e,n)),yTe=(e,t)=>kF(t,e),bTe=({visits:e,searchTerm:t,order:n,searchInRawUserAgent:r})=>{const i=t?gTe(t,e,r):[...e],o=yTe(n,i),a=o.length;return{visitsGroups:Jc(o,Eh),total:a}},Wo="visits-table__header-cell visits-table__sticky",_Te=({visits:e,selectedVisits:t=[],setSelectedVisits:n,matchMedia:r=window.matchMedia})=>{var i;const o=Gj(767,r),[a,s]=F.useState(),c=F.useCallback($=>{s($),w(1),n([])},[n]),[u,h]=F.useState({}),[p,v]=cn(),b=F.useCallback(()=>{v(),h({})},[v]),x=F.useMemo(()=>bTe({visits:e,searchTerm:a,order:u,searchInRawUserAgent:p}),[e,a,u,p]),[_,w]=F.useState(1),O=_*Eh,P=O-Eh,E=F.useMemo(()=>{var $,W;return!!((W=($=x.visitsGroups[_-1])==null?void 0:$[0])!=null&&W.visitedUrl)},[_,x.visitsGroups]),T=6+Number(E)+(p?1:2),A=x.total>0,j=$=>h({field:$,dir:D0($,u.field,u.dir)}),N=$=>g.jsx(Hh,{currentOrder:u,field:$,className:"visits-table__header-icon"});return g.jsx(qt,{className:"mt-3",bodyClassName:"p-0 pb-1",title:g.jsxs("div",{className:"d-flex justify-content-between align-items-center",children:["Visits list",g.jsx(Va,{checked:p,onChange:b,children:"Show user agent"})]}),children:g.jsx("div",{className:"table-responsive-md",children:g.jsxs("table",{className:Be("table table-sm position-relative m-0 visits-table",{"table-hover":A}),children:[g.jsxs("thead",{className:"visits-table__header",children:[g.jsxs("tr",{children:[g.jsxs("th",{className:`${Wo} text-center`,onClick:()=>n(t.length<x.total?x.visitsGroups.flat():[]),children:[g.jsx("span",{className:"sr-only",children:"Is selected"}),g.jsx(Ge,{icon:Yh,className:Be({"text-primary":t.length>0})})]}),g.jsxs("th",{className:`${Wo} text-center`,onClick:()=>j("potentialBot"),children:[g.jsx("span",{className:"sr-only",children:"Is bot"}),g.jsx(Ge,{icon:Ok}),N("potentialBot")]}),g.jsxs("th",{className:Wo,onClick:()=>j("date"),children:["Date",N("date")]}),g.jsxs("th",{className:Wo,onClick:()=>j("country"),children:["Country",N("country")]}),g.jsxs("th",{className:Wo,onClick:()=>j("city"),children:["City",N("city")]}),p?g.jsxs("th",{className:Wo,onClick:()=>j("userAgent"),children:["User agent",N("userAgent")]}):g.jsxs(g.Fragment,{children:[g.jsxs("th",{className:Wo,onClick:()=>j("browser"),children:["Browser",N("browser")]}),g.jsxs("th",{className:Wo,onClick:()=>j("os"),children:["OS",N("os")]})]}),g.jsxs("th",{className:Wo,onClick:()=>j("referer"),children:["Referrer",N("referer")]}),E&&g.jsxs("th",{className:Wo,onClick:()=>j("visitedUrl"),children:["Visited URL",N("visitedUrl")]})]}),g.jsx("tr",{children:g.jsx("td",{colSpan:T,className:"p-0",children:g.jsx(tm,{noBorder:!0,large:!1,onChange:c})})})]}),g.jsxs("tbody",{children:[!A&&g.jsx("tr",{children:g.jsx("td",{colSpan:T,className:"text-center",children:"There are no visits matching current filter"})}),(i=x.visitsGroups[_-1])==null?void 0:i.map(($,W)=>{const B=t.includes($);return g.jsxs("tr",{style:{cursor:"pointer"},className:Be({"table-active":B}),onClick:()=>n(B?t.filter(V=>V!==$):[...t,$]),children:[g.jsx("td",{className:"text-center",children:B&&g.jsx(Ge,{icon:Yh,className:"text-primary"})}),g.jsx("td",{className:"text-center",children:$.potentialBot&&g.jsxs(g.Fragment,{children:[g.jsx(Ge,{icon:Ok,id:`botIcon${W}`}),g.jsx(Oi,{placement:"right",target:`botIcon${W}`,children:"Potentially a visit from a bot or crawler"})]})}),g.jsx("td",{children:g.jsx(p0,{date:$.date})}),g.jsx("td",{children:$.country}),g.jsx("td",{children:$.city}),p?g.jsx("td",{children:$.userAgent}):g.jsxs(g.Fragment,{children:[g.jsx("td",{children:$.browser}),g.jsx("td",{children:$.os})]}),g.jsx("td",{children:$.referer}),$.visitedUrl&&g.jsx("td",{children:$.visitedUrl})]},W)})]}),x.total>Eh&&g.jsx("tfoot",{children:g.jsx("tr",{children:g.jsx("td",{colSpan:T,className:"visits-table__footer-cell visits-table__sticky",children:g.jsxs("div",{className:"d-flex flex-column flex-md-row justify-content-between align-items-center gap-3 p-2",children:[g.jsx(iA,{pagesCount:Math.ceil(x.total/Eh),currentPage:_,setCurrentPage:w,centered:o}),g.jsxs("div",{children:["Visits ",g.jsx("b",{children:Cn(P+1)})," to"," ",g.jsx("b",{children:Cn(Math.min(O,x.total))})," of"," ",g.jsx("b",{children:Cn(x.total)})]})]})})})})]})})})},Vs={byTime:{title:"By time",subPath:"by-time",icon:oK},byContext:{title:"By context",subPath:"by-context",icon:zE},byLocation:{title:"By location",subPath:"by-location",icon:JO},list:{title:"List",subPath:"list",icon:BE},options:{title:"Options",subPath:"options",icon:t$,shouldRender:({deletion:e})=>!!e}};Object.freeze(Vs);const WO=({display:e})=>e&&g.jsx("div",{className:"mt-3 mx-auto w-75",children:g.jsx(qt,{children:g.jsxs("div",{className:"d-flex gap-2",children:[g.jsx(Ge,{icon:nY,className:"mt-1"}),g.jsx("i",{children:"Could not calculate previous period because selected one does not have a strictly defined start date."})]})})});let ug;const ym=e=>{const{children:t,visitsInfo:n,getVisits:r,cancelGetVisits:i,deletion:o,exportCsv:a,isOrphanVisits:s=!1}=e,{visits:c,prevVisits:u,loading:h,errorData:p,fallbackInterval:v}=n,[{dateRange:b,visitsFilter:x,loadPrevInterval:_},w]=AV(),O=Rr("visits"),[P,E]=F.useState(),T=F.useCallback(({startDate:D,endDate:Y},ue)=>{w({dateRange:{startDate:D??void 0,endDate:Y??void 0}}),E(ue)},[w]),[A,j]=F.useState(v??(O==null?void 0:O.defaultInterval)??"last30Days"),[N,$]=F.useState([]),[W,B]=F.useState(),V=F.useRef(!0),{search:H}=Kr(),J=F.useCallback(D=>D?`${D}${H}`:H,[H]),Q=F.useMemo(()=>y0(c),[c]),re=F.useMemo(()=>u&&y0(u),[u]),{os:ae,browsers:se,referrers:oe,countries:K,cities:G,citiesForMap:z,visitedUrls:ne}=F.useMemo(()=>EE(Q),[Q]),X=F.useMemo(()=>EE(re??[]),[re]),le=F.useMemo(()=>Object.fromEntries([["Visits",Object.assign(Q,{type:"main"})],re&&["Previous period",Object.assign(re,{type:"previous"})],N.length>0&&[W??"Selected",Object.assign(N,{type:"highlighted"})]].filter(Boolean)),[W,N,re,Q]),ce=F.useMemo(()=>({...x,excludeBots:x.excludeBots??(O==null?void 0:O.excludeBots),loadPrevInterval:_??(O==null?void 0:O.loadPrevInterval)}),[_,x,O==null?void 0:O.excludeBots,O==null?void 0:O.loadPrevInterval]),de=F.useMemo(()=>Object.values(z),[z]),be=F.useCallback(D=>{ug=void 0,$(D)},[]),M=F.useCallback((D,Y)=>{const ue=`${D}_${Y}`;ug===ue?($([]),B(void 0),ug=void 0):($(Q.filter(ie=>ie[D]===Y)),B(Y),ug=ue)},[Q]);return F.useEffect(()=>i,[i]),F.useEffect(()=>{const D=b??Jz(A),{loadPrevInterval:Y,...ue}=ce,ie={doIntervalFallback:V.current,loadPrevInterval:Y};r({dateRange:D,filter:ue},ie),be([]),V.current=!1},[A,b,r,ce,be]),F.useEffect(()=>{v&&A===((O==null?void 0:O.defaultInterval)??"last30Days")&&j(v)},[A,v,O==null?void 0:O.defaultInterval]),g.jsxs(g.Fragment,{children:[t,g.jsx("section",{className:"mt-3",children:g.jsxs("div",{className:"row flex-md-row-reverse",children:[g.jsx("div",{className:"col-lg-7 col-xl-6",children:g.jsxs("div",{className:"d-md-flex",children:[g.jsx("div",{className:"flex-grow-1",children:g.jsx(tA,{disabled:h,dateRangeOrInterval:P??b??A,defaultText:"All visits",onDatesChange:T})}),g.jsx(RV,{disabled:h,className:"ms-0 ms-md-2 mt-3 mt-md-0",isOrphanVisits:s,withPrevInterval:!0,selected:ce,onChange:({loadPrevInterval:D,...Y})=>w({visitsFilter:Y,loadPrevInterval:D})})]})}),c.length>0&&g.jsx("div",{className:"col-lg-5 col-xl-6 mt-3 mt-lg-0",children:g.jsxs("div",{className:"d-flex",children:[g.jsx(Lz,{className:"btn-md-block",amount:Q.length,onClick:()=>a(Q)}),g.jsxs(_t,{outline:!0,disabled:N.length===0,className:"btn-md-block ms-2",onClick:()=>be([]),children:["Clear selection ",N.length>0&&g.jsxs(g.Fragment,{children:["(",Cn(N.length),")"]})]})]})})]})}),g.jsxs("section",{className:"mt-3",children:[g.jsx(NV,{info:n}),!h&&!p&&g.jsxs(g.Fragment,{children:[g.jsx(AF,{fill:!0,children:Object.values(Vs).map(({title:D,icon:Y,subPath:ue,shouldRender:ie},he)=>!ie||ie(e)?g.jsxs(Mh,{to:J(ue),replace:!0,children:[g.jsx(Ge,{icon:Y}),g.jsx("span",{className:"ms-2 d-none d-lg-inline",children:D})]},he):void 0).filter(Boolean)}),g.jsx(qi,{children:g.jsxs(P0,{children:[g.jsx(Rt,{path:Vs.byTime.subPath,element:g.jsxs(xg,{showFallback:c.length===0,children:[g.jsx("div",{className:"col-12 mt-3","data-testid":"line-chart-container",children:g.jsx(CV,{visitsGroups:le,setSelectedVisits:be,onDateRangeChange:T})}),g.jsx(WO,{display:!!ce.loadPrevInterval&&!u})]})}),g.jsx(Rt,{path:Vs.byContext.subPath,element:g.jsxs(xg,{showFallback:c.length===0,children:[g.jsx("div",{className:Be("mt-3 col-lg-6",{"col-xl-4":!s}),children:g.jsx(Q5,{title:"Operating systems",stats:ae,prevStats:X.os})}),g.jsx("div",{className:Be("mt-3 col-lg-6",{"col-xl-4":!s}),children:g.jsx(Q5,{title:"Browsers",stats:se,prevStats:X.browsers})}),g.jsx("div",{className:Be("mt-3",{"col-xl-4":!s,"col-lg-6":s}),children:g.jsx(ag,{title:"Referrers",withPagination:!1,stats:oe,prevStats:X.referrers,highlightedStats:sg(N,"referer"),highlightedLabel:W,sortingItems:{name:"Referrer name",amount:"Visits amount"},onClick:D=>M("referer",D)})}),s&&g.jsx("div",{className:"mt-3 col-lg-6",children:g.jsx(ag,{title:"Visited URLs",stats:ne,prevStats:X.visitedUrls,highlightedStats:sg(N,"visitedUrl"),highlightedLabel:W,sortingItems:{visitedUrl:"Visited URL",amount:"Visits amount"},onClick:D=>M("visitedUrl",D)})}),g.jsx("div",{className:"col-12",children:g.jsx(WO,{display:!!ce.loadPrevInterval&&!u})})]})}),g.jsx(Rt,{path:Vs.byLocation.subPath,element:g.jsxs(xg,{showFallback:c.length===0,children:[g.jsx("div",{className:"col-lg-6 mt-3",children:g.jsx(ag,{title:"Countries",stats:K,prevStats:X.countries,highlightedStats:sg(N,"country"),highlightedLabel:W,sortingItems:{name:"Country name",amount:"Visits amount"},onClick:D=>M("country",D)})}),g.jsx("div",{className:"col-lg-6 mt-3",children:g.jsx(ag,{title:"Cities",stats:G,prevStats:X.cities,highlightedStats:sg(N,"city"),highlightedLabel:W,extraHeaderContent:D=>de.length>0&&g.jsx(rTe,{modalTitle:"Cities",locations:de,activeCities:D}),sortingItems:{name:"City name",amount:"Visits amount"},onClick:D=>M("city",D)})}),g.jsx("div",{className:"col-12",children:g.jsx(WO,{display:!!ce.loadPrevInterval&&!u})})]})}),g.jsx(Rt,{path:Vs.list.subPath,element:g.jsx("div",{className:"col-12",children:g.jsx(_Te,{visits:Q,selectedVisits:N,setSelectedVisits:be})})}),o&&g.jsx(Rt,{path:Vs.options.subPath,element:g.jsx("div",{className:"col-12 mt-3",children:g.jsx(iTe,{...o})})}),g.jsx(Rt,{path:"*",element:g.jsx(NE,{replace:!0,to:J(Vs.byTime.subPath)})})]})})]})]})]})},IV=jo(({getDomainVisits:e,domainVisits:t,cancelGetDomainVisits:n})=>{const{ReportExporter:r}=fn(IV),{domain:i=""}=Gf(),[o,a=o]=i.split("_"),s=F.useCallback((u,h)=>e({domain:a,options:h,params:u}),[a,e]),c=F.useCallback(u=>r.exportVisits(`domain_${o}_visits.csv`,u),[o,r]);return g.jsx(ym,{getVisits:s,cancelGetVisits:n,visitsInfo:t,exportCsv:c,children:g.jsx(gm,{visits:t.visits,title:`"${o}" visits`})})},()=>[kr.visits]),xTe=dn(IV,["ReportExporter"]),DV=jo(({getNonOrphanVisits:e,nonOrphanVisits:t,cancelGetNonOrphanVisits:n})=>{const{ReportExporter:r}=fn(DV),i=F.useCallback(a=>r.exportVisits("non_orphan_visits.csv",a),[r]),o=F.useCallback((a,s)=>e({options:s,params:a}),[e]);return g.jsx(ym,{getVisits:o,cancelGetVisits:n,visitsInfo:t,exportCsv:i,children:g.jsx(gm,{title:"Non-orphan visits",visits:t.visits})})},()=>[kr.visits]),wTe=dn(DV,["ReportExporter"]),$V=jo(({getOrphanVisits:e,orphanVisits:t,cancelGetOrphanVisits:n,deleteOrphanVisits:r,orphanVisitsDeletion:i})=>{const o=_i("orphanVisitsDeletion"),{ReportExporter:a}=fn($V),s=F.useCallback(h=>a.exportVisits("orphan_visits.csv",h),[a]),c=F.useCallback((h,p)=>{var v;return e({options:p,params:h,orphanVisitsType:(v=h.filter)==null?void 0:v.orphanVisitsType})},[e]),u=F.useMemo(()=>o?{deleteVisits:r,visitsDeletion:i}:void 0,[r,i,o]);return g.jsx(ym,{getVisits:c,cancelGetVisits:n,visitsInfo:t,exportCsv:s,deletion:u,isOrphanVisits:!0,children:g.jsx(gm,{title:"Orphan visits",visits:t.visits})})},()=>[kr.orphanVisits]),OTe=dn($V,["ReportExporter"]),i8=5e3,STe=2,PTe=4,CTe=({currentPage:e,pagesCount:t})=>e>=t,ETe=(e,t)=>t*100/e,FV=({visitsLoader:e,shouldCancel:t,progressChanged:n,batchSize:r})=>{const i=async(a,s)=>Promise.all(s.map(async c=>e({...a,page:c,itemsPerPage:i8}).then(({data:u})=>u))).then(c=>c.flat()),o=async(a,s,c=0)=>{if(t())return[];const u=await i(a,s[c]);return n(ETe(s.length,c+1)),c<s.length-1?u.concat(await o(a,s,c+1)):u};return async a=>{const{pagination:s,data:c}=await e({...a,page:1,itemsPerPage:i8});if(CTe(s))return c;const u=CT(STe,s.pagesCount+1),h=Jc(u,r);return s.pagesCount-1>r&&n(0),c.concat(await o(a,h))}},bm=(e,t)=>async n=>e?t({page:1,itemsPerPage:1,excludeBots:n}).then(({data:r})=>r[0]):Promise.resolve(void 0),_m=({typePrefix:e,createLoaders:t,shouldCancel:n})=>{const r=jr(`${e}/progressChanged`),i=jr(`${e}/fallbackToInterval`),o=qn(e,async(a,{getState:s,dispatch:c})=>{var u;const{params:h,options:p}=a,{visitsLoader:v,lastVisitLoader:b}=t(a),x=WCe(h.dateRange),_=CE(h),w=p.loadPrevInterval&&JEe(h)?CE(eTe(h)):void 0,O=PTe/(w?2:1),P=w?{main:0,prev:0}:{main:0},E=($,W)=>{P[$]=W;const B=Object.values(P),V=B.reduce((H,J)=>H+J,0);c(r(V/B.length))},T=FV({visitsLoader:v,shouldCancel:()=>n(s),progressChanged:$=>E("main",$),batchSize:O}),[A,j,N]=await Promise.all([T(_),b((u=h.filter)==null?void 0:u.excludeBots),w?T(w).then($=>$.map(W=>{if(x===void 0)return W;const{date:B,...V}=W,H=AT(mi(B),x);return{...V,date:cl(H)}})):Promise.resolve(void 0)]);return!A.length&&j&&c(i(zCe(j.date))),{...a,visits:A,prevVisits:N}});return Object.assign(o,{progressChanged:r,fallbackToInterval:i})},xm=({name:e,asyncThunkCreator:t,initialState:n,filterCreatedVisits:r,extraReducers:i})=>{const{pending:o,rejected:a,fulfilled:s,progressChanged:c,fallbackToInterval:u}=t,{reducer:h,actions:p}=An({name:e,initialState:n,reducers:{cancelGetVisits:b=>({...b,cancelLoad:!0})},extraReducers:b=>{b.addCase(o,()=>({...n,loading:!0})),b.addCase(a,(x,{error:_})=>({...n,errorData:Si(_)??null})),b.addCase(s,(x,{payload:_})=>({...x,..._,loading:!1,progress:null,errorData:null})),b.addCase(c,(x,{payload:_})=>({...x,progress:_})),b.addCase(u,(x,{payload:_})=>({...x,fallbackInterval:_})),b.addCase(cd,(x,{payload:_})=>{const{visits:w}=x,O=r(x,_.createdVisits).map(({visit:P})=>P);return O.length?{...x,visits:[...O,...w]}:x}),i==null||i(b)}}),{cancelGetVisits:v}=p;return{reducer:h,cancelGetVisits:v}},BV="shlink/domainVisits",TTe={visits:[],domain:"",loading:!1,cancelLoad:!1,errorData:null,progress:null},jTe=e=>_m({typePrefix:`${BV}/getDomainVisits`,createLoaders:({domain:t,options:n})=>{const r=e(),{doIntervalFallback:i=!1}=n,o=s=>r.getDomainVisits(t,s),a=bm(i,s=>r.getDomainVisits(t,s));return{visitsLoader:o,lastVisitLoader:a}},shouldCancel:t=>t().domainVisits.cancelLoad}),ATe=e=>xm({name:BV,initialState:TTe,asyncThunkCreator:e,filterCreatedVisits:({domain:t,params:n},r)=>TV(r,t,n==null?void 0:n.dateRange)}),UV="shlink/orphanVisits",kTe={visits:[],loading:!1,cancelLoad:!1,errorData:null,progress:null},RTe=e=>_m({typePrefix:`${UV}/getNonOrphanVisits`,createLoaders:({options:t})=>{const n=e(),{doIntervalFallback:r=!1}=t,i=async a=>n.getNonOrphanVisits(a),o=bm(r,a=>n.getNonOrphanVisits(a));return{visitsLoader:i,lastVisitLoader:o}},shouldCancel:t=>t().orphanVisits.cancelLoad}),NTe=e=>xm({name:UV,initialState:kTe,asyncThunkCreator:e,filterCreatedVisits:({params:t},n)=>{const{startDate:r,endDate:i}=(t==null?void 0:t.dateRange)??{};return n.filter(({visit:o})=>vm(o.date,r,i))}}),zV="shlink/orphanVisits",MTe={visits:[],loading:!1,cancelLoad:!1,errorData:null,progress:null},LTe=(e,t)=>!t||t===e.type,ITe=({data:e,...t},n)=>{const r=e.filter(i=>aA(i)&&LTe(i,n));return{...t,data:r}},DTe=e=>_m({typePrefix:`${zV}/getOrphanVisits`,createLoaders:({orphanVisitsType:t,options:n})=>{const r=e(),{doIntervalFallback:i=!1}=n,o=async s=>r.getOrphanVisits({...s,type:t}).then(c=>ITe(c,t)),a=bm(i,s=>r.getOrphanVisits(s));return{visitsLoader:o,lastVisitLoader:a}},shouldCancel:t=>t().orphanVisits.cancelLoad}),$Te=(e,t)=>xm({name:zV,initialState:MTe,asyncThunkCreator:e,extraReducers:n=>{n.addCase(t.fulfilled,r=>({...r,visits:[]}))},filterCreatedVisits:({params:n},r)=>{const{startDate:i,endDate:o}=(n==null?void 0:n.dateRange)??{};return r.filter(({visit:a,shortUrl:s})=>!s&&vm(a.date,i,o))}}),VV="shlink/orphanVisitsDeletion",o8={deletedVisits:0,deleting:!1,error:!1},FTe=e=>qn(`${VV}/deleteOrphanVisits`,()=>e().deleteOrphanVisits()),BTe=e=>An({name:VV,initialState:o8,reducers:{},extraReducers:t=>{t.addCase(e.pending,n=>({...n,deleting:!0,error:!1})),t.addCase(e.rejected,(n,{error:r})=>({...n,deleting:!1,error:!0,errorData:Si(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>{const{deletedVisits:i}=r;return{...o8,deletedVisits:i}})}}),WV="shlink/shortUrlVisits",UTe={visits:[],shortCode:"",loading:!1,errorData:null,cancelLoad:!1,progress:null},zTe=e=>_m({typePrefix:`${WV}/getShortUrlVisits`,createLoaders:({shortCode:t,domain:n,options:r})=>{const i=e(),{doIntervalFallback:o=!1}=r,a=c=>i.getShortUrlVisits(t,{...c,domain:n}),s=bm(o,c=>i.getShortUrlVisits(t,{...c,domain:n}));return{visitsLoader:a,lastVisitLoader:s}},shouldCancel:t=>t().shortUrlVisits.cancelLoad}),VTe=(e,t)=>xm({name:WV,initialState:UTe,asyncThunkCreator:e,extraReducers:n=>{n.addCase(t.fulfilled,(r,{payload:i})=>r.shortCode===i.shortCode&&r.domain===i.domain?{...r,visits:[]}:r)},filterCreatedVisits:({shortCode:n,domain:r,params:i},o)=>EV(o,{shortCode:n,domain:r},i==null?void 0:i.dateRange)}),qV="shlink/shortUrlVisitsDeletion",a8={shortCode:"",deletedVisits:0,deleting:!1,error:!1},WTe=e=>qn(`${qV}/deleteShortUrlVisits`,async({shortCode:t,domain:n})=>({...await e().deleteShortUrlVisits(t,n),shortCode:t,domain:n})),qTe=e=>An({name:qV,initialState:a8,reducers:{},extraReducers:t=>{t.addCase(e.pending,n=>({...n,deleting:!0,error:!1})),t.addCase(e.rejected,(n,{error:r})=>({...n,deleting:!1,error:!0,errorData:Si(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>{const{shortCode:i,domain:o,deletedVisits:a}=r;return{...a8,shortCode:i,domain:o,deletedVisits:a}})}}),HV="shlink/tagVisits",HTe={visits:[],tag:"",loading:!1,cancelLoad:!1,errorData:null,progress:null},GTe=e=>_m({typePrefix:`${HV}/getTagVisits`,createLoaders:({tag:t,options:n})=>{const r=e(),{doIntervalFallback:i=!1}=n,o=s=>r.getTagVisits(t,s),a=bm(i,async s=>r.getTagVisits(t,s));return{visitsLoader:o,lastVisitLoader:a}},shouldCancel:t=>t().tagVisits.cancelLoad}),KTe=e=>xm({name:HV,initialState:HTe,asyncThunkCreator:e,filterCreatedVisits:({tag:t,params:n},r)=>jV(r,t,n==null?void 0:n.dateRange)}),GV="shlink/visitsOverview",cg={nonOrphanVisits:{total:0},orphanVisits:{total:0},loading:!1,error:!1},s8=e=>e.filter(({visit:t})=>t.potentialBot).length,YTe=e=>qn(`${GV}/loadVisitsOverview`,()=>e().getVisitsOverview().then(({nonOrphanVisits:t,visitsCount:n=0,orphanVisits:r,orphanVisitsCount:i=0})=>({nonOrphanVisits:{total:(t==null?void 0:t.total)??n,nonBots:t==null?void 0:t.nonBots,bots:t==null?void 0:t.bots},orphanVisits:{total:(r==null?void 0:r.total)??i,nonBots:r==null?void 0:r.nonBots,bots:r==null?void 0:r.bots}}))),ZTe=e=>An({name:GV,initialState:cg,reducers:{},extraReducers:t=>{t.addCase(e.pending,()=>({...cg,loading:!0})),t.addCase(e.rejected,()=>({...cg,error:!0})),t.addCase(e.fulfilled,(n,{payload:r})=>({...cg,...r})),t.addCase(cd,({nonOrphanVisits:n,orphanVisits:r,...i},{payload:o})=>{const{nonOrphanVisits:a,orphanVisits:s}=XEe(o.createdVisits),c=a.length,u=s8(a),h=c-u,p=s.length,v=s8(s),b=p-v;return{...i,nonOrphanVisits:{total:n.total+c,bots:n.bots&&n.bots+u,nonBots:n.nonBots&&n.nonBots+h},orphanVisits:{total:r.total+p,bots:r.bots&&r.bots+v,nonBots:r.nonBots&&r.nonBots+b}}})}}),XTe=({shortUrl:e,loading:t,shortUrlVisits:n})=>{const{visits:r}=n,i=(e==null?void 0:e.shortUrl)??"",o=(e==null?void 0:e.longUrl)??"",a=e==null?void 0:e.title;return g.jsxs(gm,{title:g.jsxs(g.Fragment,{children:["Visits for ",g.jsx(Gr,{href:i})]}),visits:r,shortUrl:e,children:[g.jsx("hr",{}),g.jsxs("div",{children:["Created: ",e?g.jsxs("span",{children:[g.jsx("b",{id:"created",className:"short-url-visits-header__created-at",children:g.jsx(p0,{date:e.dateCreated,relative:!0})}),g.jsx(Oi,{placement:"bottom",target:"created",children:g.jsx(p0,{date:e.dateCreated})})]}):g.jsx("small",{children:"Loading..."})]}),g.jsxs("div",{className:"long-url-container",children:[`${a?"Title":"Long URL"}: `,t&&g.jsx("small",{children:"Loading..."}),!t&&g.jsx(Gr,{href:o,children:a??o})]})]})},KV=jo(({shortUrlVisits:e,shortUrlVisitsDeletion:t,shortUrlsDetails:n,getShortUrlVisits:r,getShortUrlsDetails:i,deleteShortUrlVisits:o,cancelGetShortUrlVisits:a})=>{const s=_i("shortUrlVisitsDeletion"),{ReportExporter:c}=fn(KV),u=Xj(),h=F.useMemo(()=>{var x;return(x=n.shortUrls)==null?void 0:x.get(u)},[u,n.shortUrls]),p=F.useCallback((x,_)=>r({...u,options:_,params:x}),[r,u]),v=F.useCallback(x=>c.exportVisits(`short-url_${h==null?void 0:h.shortUrl.replace(/https?:\/\//g,"")}_visits.csv`,x),[c,h==null?void 0:h.shortUrl]),b=F.useMemo(()=>s?{deleteVisits:()=>o(u),visitsDeletion:t}:void 0,[o,u,t,s]);return F.useEffect(()=>{i([u])},[u,i]),g.jsx(ym,{getVisits:p,cancelGetVisits:a,visitsInfo:e,exportCsv:v,deletion:b,children:g.jsx(XTe,{shortUrl:h,loading:n.loading,shortUrlVisits:e})})},e=>e.shortCode?[kr.shortUrlVisits(Kj(e.shortCode))]:[]),QTe=dn(KV,["ReportExporter"]),JTe=({tagVisits:e,colorGenerator:t})=>{const{visits:n,tag:r}=e;return g.jsx(gm,{title:g.jsxs("span",{className:"d-flex align-items-center justify-content-center",children:[g.jsx("span",{className:"me-2",children:"Visits for"}),g.jsx(Rb,{text:r,colorGenerator:t})]}),visits:n})},YV=jo(({getTagVisits:e,tagVisits:t,cancelGetTagVisits:n})=>{const{ColorGenerator:r,ReportExporter:i}=fn(YV),{tag:o=""}=Gf(),a=F.useCallback((c,u)=>e({tag:o,params:c,options:u}),[e,o]),s=F.useCallback(c=>i.exportVisits(`tag_${o}_visits.csv`,c),[i,o]);return g.jsx(ym,{getVisits:a,cancelGetVisits:n,visitsInfo:t,exportCsv:s,children:g.jsx(JTe,{tagVisits:t,colorGenerator:r})})},()=>[kr.visits]),eje=dn(YV,["ColorGenerator","ReportExporter"]),sA=({title:e,colors:t,getVisitsForComparison:n,visitsComparisonInfo:r,cancelGetVisitsComparison:i})=>{const{loading:o,visitsGroups:a}=r,s=Rr("visits"),c=F.useMemo(()=>Object.keys(a).reduce((P,E,T)=>(P[E]=Object.assign(y0(a[E]),{color:(t==null?void 0:t[E])??SV(T)}),P),{}),[t,a]),u=F.useMemo(()=>Object.values(a).every(P=>P.length===0),[a]),[{dateRange:h,visitsFilter:p},v]=AV(),[b,x]=F.useState(),_=F.useCallback(({startDate:P,endDate:E},T)=>{v({dateRange:{startDate:P??void 0,endDate:E??void 0}}),x(T)},[v]),w=F.useRef(h??(s==null?void 0:s.defaultInterval)??"last30Days"),O=F.useMemo(()=>({...p,excludeBots:p.excludeBots??(s==null?void 0:s.excludeBots)}),[p,s==null?void 0:s.excludeBots]);return F.useEffect(()=>{const P=h??Jz(w.current);return n({params:{dateRange:P,filter:O}}),i},[i,h,n,O]),g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"mb-3",children:g.jsxs(qt,{bodyClassName:"d-flex",children:[g.jsx(kb,{}),g.jsx("h3",{className:"mb-0 flex-grow-1 text-center",children:e})]})}),g.jsx("div",{className:"col-lg-7 col-xl-6 offset-lg-5 offset-xl-6 mb-3",children:g.jsxs("div",{className:"d-md-flex",children:[g.jsx("div",{className:"flex-grow-1",children:g.jsx(tA,{disabled:o,defaultText:"All visits",dateRangeOrInterval:b??h??w.current,onDatesChange:_})}),g.jsx(RV,{disabled:o,className:"ms-0 ms-md-2 mt-3 mt-md-0",selected:O,onChange:({orphanVisitsType:P,excludeBots:E})=>v({visitsFilter:{orphanVisitsType:P,excludeBots:E}})})]})}),g.jsx(NV,{info:r}),!o&&g.jsx(xg,{showFallback:u,children:g.jsx(CV,{visitsGroups:c,onDateRangeChange:_})})]})},tje=jo(({getDomainVisitsForComparison:e,domainVisitsComparison:t,cancelGetDomainVisitsComparison:n})=>{const r=Hj("domains"),i=F.useCallback(o=>e({...o,domains:r}),[r,e]);return g.jsx(sA,{title:`Comparing "${r.join('", "')}"`,getVisitsForComparison:i,visitsComparisonInfo:t,cancelGetVisitsComparison:n})},()=>[kr.visits]),nje=({visitsLoaders:e,shouldCancel:t,progressChanged:n})=>{const r=Object.keys(e),i=Math.max(1,Math.round(4/r.length)),o=Object.fromEntries(r.map(c=>[c,0])),a=(c,u)=>{o[c]=u;const h=Object.values(o),p=h.reduce((v,b)=>v+b,0);n(p/h.length)},s=Object.entries(e).map(([c,u])=>[c,FV({visitsLoader:u,batchSize:i,shouldCancel:t,progressChanged:h=>a(c,h)})]);return async c=>{const u=await Promise.all(s.map(async([h,p])=>{const v=await p(c);return[h,v]}));return Object.fromEntries(u)}},lA=({typePrefix:e,createLoaders:t,shouldCancel:n})=>{const r=jr(`${e}/progressChanged`),i=qn(e,async(o,{getState:a,dispatch:s})=>{const c=t(o),u=await nje({visitsLoaders:c,shouldCancel:()=>n(a),progressChanged:h=>s(r(h))})(CE(o.params));return{...o,visitsGroups:u}});return Object.assign(i,{progressChanged:r})},uA=({name:e,asyncThunkCreator:t,initialState:n,filterCreatedVisitsForGroup:r})=>{const{pending:i,rejected:o,fulfilled:a,progressChanged:s}=t,{reducer:c,actions:u}=An({name:e,initialState:n,reducers:{cancelGetVisits:p=>({...p,cancelLoad:!0})},extraReducers:p=>{p.addCase(i,()=>({...n,loading:!0})),p.addCase(o,(v,{error:b})=>({...n,errorData:Si(b)??null})),p.addCase(a,(v,{payload:b})=>({...v,...b,loading:!1,progress:null,errorData:null})),p.addCase(s,(v,{payload:b})=>({...v,progress:b})),p.addCase(cd,(v,{payload:b})=>{const{visitsGroups:x,..._}=v,w=Object.keys(x).map(P=>{const E=r({..._,groupKey:P},b.createdVisits).map(({visit:T})=>T);return[P,[...E,...x[P]]]}),O=Object.fromEntries(w);return{..._,visitsGroups:O}})}}),{cancelGetVisits:h}=u;return{reducer:c,cancelGetVisits:h}},ZV="shlink/domainVisitsComparison",rje={visitsGroups:{},loading:!1,cancelLoad:!1,errorData:null,progress:null},ije=e=>lA({typePrefix:`${ZV}/getDomainVisitsForComparison`,createLoaders:({domains:t})=>{const n=e(),r=t.map(i=>[i,o=>n.getDomainVisits(i,o)]);return Object.fromEntries(r)},shouldCancel:t=>t().domainVisitsComparison.cancelLoad}),oje=e=>uA({name:ZV,initialState:rje,asyncThunkCreator:e,filterCreatedVisitsForGroup:({groupKey:t,params:n},r)=>TV(r,t,n==null?void 0:n.dateRange)}),XV="shlink/shortUrlVisitsComparison",aje={visitsGroups:{},loading:!1,cancelLoad:!1,errorData:null,progress:null},sje=e=>lA({typePrefix:`${XV}/getShortUrlVisitsForComparison`,createLoaders:({shortUrls:t})=>{const n=e(),r=t.map(i=>[Yj(i),o=>n.getShortUrlVisits(i.shortCode,{...o,domain:i.domain})]);return Object.fromEntries(r)},shouldCancel:t=>t().shortUrlVisitsComparison.cancelLoad}),lje=e=>uA({name:XV,initialState:aje,asyncThunkCreator:e,filterCreatedVisitsForGroup:({groupKey:t,params:n},r)=>EV(r,lz(t),n==null?void 0:n.dateRange)}),QV="shlink/tagVisitsComparison",uje={visitsGroups:{},loading:!1,cancelLoad:!1,errorData:null,progress:null},cje=e=>lA({typePrefix:`${QV}/getTagVisitsForComparison`,createLoaders:({tags:t})=>{const n=e(),r=t.map(i=>[i,o=>n.getTagVisits(i,o)]);return Object.fromEntries(r)},shouldCancel:t=>t().tagVisitsComparison.cancelLoad}),fje=e=>uA({name:QV,initialState:uje,asyncThunkCreator:e,filterCreatedVisitsForGroup:({groupKey:t,params:n},r)=>jV(r,t,n==null?void 0:n.dateRange)}),dje=jo(({getShortUrlVisitsForComparison:e,shortUrlVisitsComparison:t,cancelGetShortUrlVisitsComparison:n,shortUrlsDetails:r,getShortUrlsDetails:i})=>{const o=Hj("short-urls"),a=F.useMemo(()=>o.map(lz),[o]),s=F.useCallback(h=>e({...h,shortUrls:a}),[e,a]),c=F.useMemo(()=>{var h;return[...((h=r.shortUrls)==null?void 0:h.values())??[]]},[r.shortUrls]),u=F.useMemo(()=>{const{visitsGroups:h,loading:p,...v}=t,b=c.reduce((x,_)=>(x[_.shortUrl]=h[Yj(_)]??[],x),{});return{...v,visitsGroups:b,loading:p||r.loading}},[t,r.loading,c]);return F.useEffect(()=>{a.length>0&&i(a)},[i,a]),g.jsx(sA,{title:g.jsx("span",{"data-testid":"title",children:r.loading?"Loading...":`Comparing ${c.length} short URLs`}),getVisitsForComparison:s,visitsComparisonInfo:u,cancelGetVisitsComparison:n})},()=>[kr.visits]),JV=jo(({getTagVisitsForComparison:e,tagVisitsComparison:t,cancelGetTagVisitsComparison:n})=>{const{ColorGenerator:r}=fn(JV),i=Hj("tags"),o=F.useCallback(c=>e({...c,tags:i}),[e,i]),{visitsGroups:a}=t,s=F.useMemo(()=>Object.keys(a).reduce((c,u)=>(c[u]=r.getColorForKey(u),c),{}),[r,a]);return g.jsx(sA,{title:g.jsxs(g.Fragment,{children:["Comparing ",i.map(c=>g.jsx(Rb,{colorGenerator:r,text:c},c))]}),getVisitsForComparison:o,visitsComparisonInfo:t,cancelGetVisitsComparison:n,colors:s})},()=>[kr.visits]),hje=dn(JV,["ColorGenerator"]),pje=(e,t)=>{const n=(r,i)=>t([...r,"mercureInfo"],[...i,"createNewVisits","loadMercureInfo"]);e.serviceFactory("MapModal",()=>kV),e.factory("ShortUrlVisits",QTe),e.decorator("ShortUrlVisits",t(["shortUrlVisits","shortUrlVisitsDeletion","shortUrlsDetails","mercureInfo"],["getShortUrlVisits","deleteShortUrlVisits","getShortUrlsDetails","cancelGetShortUrlVisits","createNewVisits","loadMercureInfo"])),e.factory("TagVisits",eje),e.decorator("TagVisits",n(["tagVisits"],["getTagVisits","cancelGetTagVisits"])),e.factory("TagVisitsComparison",hje),e.decorator("TagVisitsComparison",n(["tagVisitsComparison"],["getTagVisitsForComparison","cancelGetTagVisitsForComparison"])),e.serviceFactory("DomainVisitsComparison",()=>tje),e.decorator("DomainVisitsComparison",n(["domainVisitsComparison"],["getDomainVisitsForComparison","cancelGetDomainVisitsForComparison"])),e.serviceFactory("ShortUrlVisitsComparison",()=>dje),e.decorator("ShortUrlVisitsComparison",n(["shortUrlVisitsComparison","shortUrlsDetails"],["getShortUrlVisitsForComparison","cancelGetShortUrlVisitsForComparison","getShortUrlsDetails"])),e.factory("DomainVisits",xTe),e.decorator("DomainVisits",n(["domainVisits"],["getDomainVisits","cancelGetDomainVisits"])),e.factory("OrphanVisits",OTe),e.decorator("OrphanVisits",n(["orphanVisits","orphanVisitsDeletion"],["getOrphanVisits","cancelGetOrphanVisits","deleteOrphanVisits"])),e.factory("NonOrphanVisits",wTe),e.decorator("NonOrphanVisits",n(["nonOrphanVisits"],["getNonOrphanVisits","cancelGetNonOrphanVisits"])),e.serviceFactory("VisitsParser",()=>mTe),e.serviceFactory("getShortUrlVisits",zTe,"apiClientFactory"),e.serviceFactory("cancelGetShortUrlVisits",r=>r.cancelGetVisits,"shortUrlVisitsReducerCreator"),e.serviceFactory("getShortUrlVisitsForComparison",sje,"apiClientFactory"),e.serviceFactory("cancelGetShortUrlVisitsForComparison",r=>r.cancelGetVisits,"shortUrlVisitsComparisonReducerCreator"),e.serviceFactory("deleteShortUrlVisits",WTe,"apiClientFactory"),e.serviceFactory("getTagVisits",GTe,"apiClientFactory"),e.serviceFactory("cancelGetTagVisits",r=>r.cancelGetVisits,"tagVisitsReducerCreator"),e.serviceFactory("getTagVisitsForComparison",cje,"apiClientFactory"),e.serviceFactory("cancelGetTagVisitsForComparison",r=>r.cancelGetVisits,"tagVisitsComparisonReducerCreator"),e.serviceFactory("getDomainVisits",jTe,"apiClientFactory"),e.serviceFactory("cancelGetDomainVisits",r=>r.cancelGetVisits,"domainVisitsReducerCreator"),e.serviceFactory("getDomainVisitsForComparison",ije,"apiClientFactory"),e.serviceFactory("cancelGetDomainVisitsForComparison",r=>r.cancelGetVisits,"domainVisitsComparisonReducerCreator"),e.serviceFactory("getOrphanVisits",DTe,"apiClientFactory"),e.serviceFactory("cancelGetOrphanVisits",r=>r.cancelGetVisits,"orphanVisitsReducerCreator"),e.serviceFactory("deleteOrphanVisits",FTe,"apiClientFactory"),e.serviceFactory("getNonOrphanVisits",RTe,"apiClientFactory"),e.serviceFactory("cancelGetNonOrphanVisits",r=>r.cancelGetVisits,"nonOrphanVisitsReducerCreator"),e.serviceFactory("createNewVisits",()=>cd),e.serviceFactory("loadVisitsOverview",YTe,"apiClientFactory"),e.serviceFactory("visitsOverviewReducerCreator",ZTe,"loadVisitsOverview"),e.serviceFactory("visitsOverviewReducer",r=>r.reducer,"visitsOverviewReducerCreator"),e.serviceFactory("domainVisitsReducerCreator",ATe,"getDomainVisits"),e.serviceFactory("domainVisitsReducer",r=>r.reducer,"domainVisitsReducerCreator"),e.serviceFactory("nonOrphanVisitsReducerCreator",NTe,"getNonOrphanVisits"),e.serviceFactory("nonOrphanVisitsReducer",r=>r.reducer,"nonOrphanVisitsReducerCreator"),e.serviceFactory("orphanVisitsReducerCreator",$Te,"getOrphanVisits","deleteOrphanVisits"),e.serviceFactory("orphanVisitsReducer",r=>r.reducer,"orphanVisitsReducerCreator"),e.serviceFactory("orphanVisitsDeletionReducerCreator",BTe,"deleteOrphanVisits"),e.serviceFactory("orphanVisitsDeletionReducer",r=>r.reducer,"orphanVisitsDeletionReducerCreator"),e.serviceFactory("shortUrlVisitsReducerCreator",VTe,"getShortUrlVisits","deleteShortUrlVisits"),e.serviceFactory("shortUrlVisitsReducer",r=>r.reducer,"shortUrlVisitsReducerCreator"),e.serviceFactory("shortUrlVisitsDeletionReducerCreator",qTe,"deleteShortUrlVisits"),e.serviceFactory("shortUrlVisitsDeletionReducer",r=>r.reducer,"shortUrlVisitsDeletionReducerCreator"),e.serviceFactory("tagVisitsReducerCreator",KTe,"getTagVisits"),e.serviceFactory("tagVisitsReducer",r=>r.reducer,"tagVisitsReducerCreator"),e.serviceFactory("tagVisitsComparisonReducerCreator",fje,"getTagVisitsForComparison"),e.serviceFactory("tagVisitsComparisonReducer",r=>r.reducer,"tagVisitsComparisonReducerCreator"),e.serviceFactory("domainVisitsComparisonReducerCreator",oje,"getDomainVisitsForComparison"),e.serviceFactory("domainVisitsComparisonReducer",r=>r.reducer,"domainVisitsComparisonReducerCreator"),e.serviceFactory("shortUrlVisitsComparisonReducerCreator",lje,"getShortUrlVisitsForComparison"),e.serviceFactory("shortUrlVisitsComparisonReducer",r=>r.reducer,"shortUrlVisitsComparisonReducerCreator")},gh=({children:e,to:t,className:n,...r})=>g.jsx(D8,{className:({isActive:i})=>Be("aside-menu__item",n,{"aside-menu__item--selected":i}),to:t,...r,children:e}),mje=({routePrefix:e,showOnMobile:t=!1})=>{const{pathname:n}=Kr(),r=Be("aside-menu",{"aside-menu--hidden":!t}),i=o=>`${e}${o}`;return g.jsx("aside",{className:r,children:g.jsxs("nav",{className:"nav flex-column aside-menu__nav",children:[g.jsxs(gh,{to:i("/overview"),children:[g.jsx(Ge,{fixedWidth:!0,icon:LK}),g.jsx("span",{className:"aside-menu__item-text",children:"Overview"})]}),g.jsxs(gh,{to:i("/list-short-urls/1"),className:Be({"aside-menu__item--selected":n.match("/list-short-urls")!==null}),children:[g.jsx(Ge,{fixedWidth:!0,icon:BE}),g.jsx("span",{className:"aside-menu__item-text",children:"List short URLs"})]}),g.jsxs(gh,{to:i("/create-short-url"),children:[g.jsx(Ge,{fixedWidth:!0,icon:UK,flip:"horizontal"}),g.jsx("span",{className:"aside-menu__item-text",children:"Create short URL"})]}),g.jsxs(gh,{to:i("/manage-tags"),children:[g.jsx(Ge,{fixedWidth:!0,icon:Q8}),g.jsx("span",{className:"aside-menu__item-text",children:"Manage tags"})]}),g.jsxs(gh,{to:i("/manage-domains"),children:[g.jsx(Ge,{fixedWidth:!0,icon:pK}),g.jsx("span",{className:"aside-menu__item-text",children:"Manage domains"})]})]})})},eW=({createNotFound:e})=>{const{TagsList:t,ShortUrlsList:n,CreateShortUrl:r,ShortUrlVisits:i,TagVisits:o,DomainVisits:a,OrphanVisits:s,NonOrphanVisits:c,Overview:u,EditShortUrl:h,ManageDomains:p,TagVisitsComparison:v,DomainVisitsComparison:b,ShortUrlVisitsComparison:x,ShortUrlRedirectRules:_}=fn(eW),w=Kr(),O=_l(),[P,E,T,A]=cn();F.useEffect(()=>A(),[w,A]);const j=Be("shlink-layout__burger-icon",{"shlink-layout__burger-icon--active":P}),N=gSe(T,A),$=_i("shortUrlRedirectRules");return g.jsxs(g.Fragment,{children:[g.jsx(Ge,{icon:uK,className:j,onClick:E}),g.jsx("div",{...N,className:"shlink-layout__swipeable",children:g.jsxs("div",{className:"shlink-layout__swipeable-inner",children:[g.jsx(mje,{routePrefix:O,showOnMobile:P}),g.jsx("div",{className:"shlink-layout__container",onPointerDown:()=>A(),children:g.jsx("div",{className:"container-xl",children:g.jsxs(P0,{children:[g.jsx(Rt,{index:!0,element:g.jsx(NE,{replace:!0,to:"overview"})}),g.jsx(Rt,{path:"/overview",element:g.jsx(u,{})}),g.jsx(Rt,{path:"/list-short-urls/:page",element:g.jsx(n,{})}),g.jsx(Rt,{path:"/create-short-url",element:g.jsx(r,{})}),g.jsx(Rt,{path:"/short-code/:shortCode/visits/*",element:g.jsx(i,{})}),g.jsx(Rt,{path:"/short-code/:shortCode/edit",element:g.jsx(h,{})}),$&&g.jsx(Rt,{path:"/short-code/:shortCode/redirect-rules",element:g.jsx(_,{})}),g.jsx(Rt,{path:"/short-urls/compare-visits",element:g.jsx(x,{})}),g.jsx(Rt,{path:"/tag/:tag/visits/*",element:g.jsx(o,{})}),g.jsx(Rt,{path:"/tags/compare-visits",element:g.jsx(v,{})}),g.jsx(Rt,{path:"/domain/:domain/visits/*",element:g.jsx(a,{})}),g.jsx(Rt,{path:"/orphan-visits/*",element:g.jsx(s,{})}),g.jsx(Rt,{path:"/non-orphan-visits/*",element:g.jsx(c,{})}),g.jsx(Rt,{path:"/manage-tags",element:g.jsx(t,{})}),g.jsx(Rt,{path:"/manage-domains",element:g.jsx(p,{})}),g.jsx(Rt,{path:"/domains/compare-visits",element:g.jsx(b,{})}),e&&g.jsx(Rt,{path:"*",element:e("/list-short-urls/1")})]})})})]})})]})},vje=dn(eW,["TagsList","ShortUrlsList","CreateShortUrl","ShortUrlVisits","TagVisits","DomainVisits","OrphanVisits","NonOrphanVisits","Overview","EditShortUrl","ManageDomains","TagVisitsComparison","DomainVisitsComparison","ShortUrlVisitsComparison","ShortUrlRedirectRules"]),gje=!0,yje=e=>WF({devTools:!gje,reducer:wT({mercureInfo:e.mercureInfoReducer,shortUrlsList:e.shortUrlsListReducer,shortUrlCreation:e.shortUrlCreationReducer,shortUrlDeletion:e.shortUrlDeletionReducer,shortUrlEdition:e.shortUrlEditionReducer,shortUrlsDetails:e.shortUrlsDetailsReducer,shortUrlVisits:e.shortUrlVisitsReducer,shortUrlVisitsDeletion:e.shortUrlVisitsDeletionReducer,shortUrlVisitsComparison:e.shortUrlVisitsComparisonReducer,tagVisits:e.tagVisitsReducer,tagVisitsComparison:e.tagVisitsComparisonReducer,domainVisits:e.domainVisitsReducer,domainVisitsComparison:e.domainVisitsComparisonReducer,orphanVisits:e.orphanVisitsReducer,orphanVisitsDeletion:e.orphanVisitsDeletionReducer,nonOrphanVisits:e.nonOrphanVisitsReducer,tagsList:e.tagsListReducer,tagDelete:e.tagDeleteReducer,tagEdit:e.tagEditReducer,domainsList:e.domainsListReducer,visitsOverview:e.visitsOverviewReducer,shortUrlRedirectRules:e.shortUrlRedirectRulesReducer,shortUrlRedirectRulesSaving:e.setShortUrlRedirectRulesReducer}),middleware:t=>t({immutableCheck:!1,serializableCheck:!1})}),bje=e=>{e.factory("Main",vje),e.factory("store",yje)},Ao=new K8,{container:_je}=Ao,xje=e=>t=>Object.fromEntries(e.map(n=>[n,t[n]])),wje=(e,t)=>(...n)=>e[t](...n),Oje=(e,t)=>({...e,[t]:wje(_je,t)}),fd=(e,t=[])=>S8(e?xje(e):null,t.reduce(Oje,{}));bje(Ao);tEe(Ao,fd);SEe(Ao,fd);pje(Ao,fd);kSe(Ao);TSe(Ao,fd);WSe(Ao,fd);kEe(Ao);nCe(Ao,fd);let l8;const Sje=e=>({serverVersion:t,apiClient:n,settings:r,routesPrefix:i="",createNotFound:o,tagColorsStorage:a})=>{const s=hSe(t),c=F.useRef(),[u,h]=F.useState(),p=Nu(),v=F.useMemo(()=>p?F.Fragment:I8,[p]);return F.useEffect(()=>{l8=n,e.value("apiClientFactory",()=>l8),a&&e.value("TagColorsStorage",a);const{container:b}=e,{Main:x,store:_,loadMercureInfo:w,listTags:O,listDomains:P}=b;c.current=g.jsx(x,{createNotFound:o}),h(_),_.dispatch(w(r)),_.dispatch(O()),_.dispatch(P())},[n,o,r,a]),u?g.jsx(P8,{store:u,children:g.jsx(e7,{value:r??{},children:g.jsx(dSe,{value:s,children:g.jsx(uSe,{value:i,children:g.jsx(v,{children:c.current})})})})}):g.jsx(g.Fragment,{})},Pje="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=",Cje="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAABSCAMAAAAhFXfZAAAC91BMVEVMaXEzeak2f7I4g7g3g7cua5gzeKg8hJo3grY4g7c3grU0gLI2frE0daAubJc2gbQwd6QzeKk2gLMtd5sxdKIua5g1frA2f7IydaM0e6w2fq41fK01eqo3grgubJgta5cxdKI1f7AydaQydaMxc6EubJgvbJkwcZ4ubZkwcJwubZgubJcydqUydKIxapgubJctbJcubZcubJcvbJYubJcvbZkubJctbJctbZcubJg2f7AubJcrbZcubJcubJcua5g3grY0fq8ubJcubJdEkdEwhsw6i88vhswuhcsuhMtBjMgthMsrg8srgss6is8qgcs8i9A9iMYtg8spgcoogMo7hcMngMonf8olfso4gr8kfck5iM8jfMk4iM8he8k1fro7itAgesk2hs8eecgzfLcofssdeMg0hc4cd8g2hcsxeLQbdsgZdcgxeLImfcszhM0vda4xgckzhM4xg84wf8Yxgs4udKsvfcQucqhUndROmdM1fK0wcZ8vb5w0eqpQm9MzeKhXoNVcpdYydKNWn9VZotVKltJFjsIwcJ1Rms9OlslLmtH///8+kc9epdYzd6dbo9VHkMM2f7FHmNBClM8ydqVcpNY9hro3gLM9hLczealQmcw3fa46f7A8gLMxc6I3eagyc6FIldJMl9JSnNRSntNNl9JPnNJFi75UnM9ZodVKksg8kM45jc09e6ZHltFBk883gbRBh7pDk9EwcaBzn784g7dKkcY2i81Om9M7j85Llc81is09g7Q4grY/j9A0eqxKmdFFltBEjcXf6fFImdBCiLxJl9FGlNFBi78yiMxVndEvbpo6js74+vx+psPP3+o/ks5HkcpGmNCjwdZCkNDM3ehYoNJEls+lxNkxh8xHks0+jdC1zd5Lg6r+/v/H2ufz9/o3jM3t8/edvdM/k89Th61OiLBSjbZklbaTt9BfptdjmL1AicBHj8hGk9FAgK1dkLNTjLRekrdClc/k7fM0icy0y9tgp9c4jc2NtM9Dlc8zicxeXZn3AAAAQ3RSTlMAHDdTb4yPA+LtnEQmC4L2EmHqB7XA0d0sr478x4/Yd5i1zOfyPkf1sLVq4Nh3FvjxopQ2/STNuFzUwFIwxKaejILpIBEV9wAABhVJREFUeF6s1NdyFEcYBeBeoQIhRAkLlRDGrhIgY3BJL8CVeKzuyXFzzjkn5ZxzzuScg3PO8cKzu70JkO0LfxdTU//pM9vTu7Xgf6KqOVTb9X7toRrVEfBf1HTVjZccrT/2by1VV928Yty9ZbVuucdz90frG8DBjl9pVApbOstvmMuvVgaNXSfAAd6pGxpy6yxf5ph43pS/4f3uoaGm2rdu72S9xzOvMymkZFq/ptDrk90mhW7e4zl7HLzhxGWPR20xmSxJ/VqldG5m9XhaVOA1DadsNh3Pu5L2N6QtPO/32JpqQBVVk20oy/Pi2s23WEvyfHbe1thadVQttvm7Llf65gGmXK67XtupyoM7HQhmXdLS8oGWJNeOJ3C5fG5XCEJnkez3/oFdsvgJ4l2ANZwhrJKk/7OSXa+3Vw2WJMlKnGkobouYk6T0TyX30klOUnTD9HJ5qpckL3EW/w4XF3Xd0FGywXUrstrclVsqz5Pd/sXFYyDnPdrLcQODmGOK47IZb4CmibmMn+MYRzFZ5jg33ZL/EJrWcszHmANy3ARBK/IXtciJy8VsitPSdE3uuHxzougojcUdr8/32atnz/ev3f/K5wtpxUTpcaI45zusVDpYtZi+jg0oU9b3x74h7+n9ABvYEZeKaVq0sh0AtLKsFtqNBdeT0MrSzwwlq9+x6xAO4tgOtSzbCjrNQQiNvQUbUEubvzBUeGw26yDCsRHCoLkTHDa7IdOLIThs/gHvChszh2CimE8peRs47cxANI0lYNB5y1DljpOF0IhzBDPOZnDOqYYbeGKECbPzWnXludPphw5c2YBq5zlwXphIbO4VDCZ0gnPfUO1TwZoYwAs2ExPCedAu9DAjfQUjzITQb3jNj0KG2Sgt6BHaQUdYzWz+XmBktOHwanXjaSTcwwziBcuMOtwBmqPrTOxFQR/DRKKPqyur0aiW6cULYsx6tBm0jXpR/AUWR6HRq9WVW6MRhIq5jLyjbaCTDCijyYJNpCajdyobP/eTw0iexBAKkJ3gA5KcQb2zBXsIBckn+xVv8jkZSaEFHE+jFEleAEfayRU0MouNoBmB/L50Ai/HSLIHxcrpCvnhSQAuakKp2C/YbCylJjXRVy/z3+Kv/RrNcCo+WUzlVEhzKffnTQnxeN9fWF88fiNCUdSTsaufaChKWInHeysygfpIqagoakW+vV20J8uyl6TyNKEZWV4oRSPyCkWpgOLSbkCObT8o2r6tlG58HQquf6O0v50tB7JM7F4EORd2dx/K0w/KHsVkLPaoYrwgP/y7krr3SSMA4zj+OBgmjYkxcdIJQyQRKgg2viX9Hddi9UBb29LrKR7CVVEEEXWojUkXNyfTNDE14W9gbHJNuhjDettN3ZvbOvdOqCD3Jp/9l+/wJE+9PkYGjx/fqkys3S2rMozM/o2106rfMUINo6hVqz+eu/hd1c4xTg0TAfy5kV+4UG6+IthHTU9woWmxuKNbTfuCSfovBCxq7EtHqvYL4Sm6F8GVxsSXHMQ07TOi1DKtZxjWaaIyi4CXWjxPccUw8WVbMYY5wxC1mzEyXMJWkllpRloi+Kkoq69sxBTlElF6aAxYUbjXNlhlDZilDnM4U5SlN5biRsRHnbx3mbeWjEh4mEyiuJDl5XcWVmX5GvNkFgLWZM5qwsop4/AWfLhU1cR7k1VVvcYCWRkOI6Xy5gmnphCYIkvzuNYzHzosq2oNk2RtSs8khfUOfHIDgR6ysYBaMpl4uEgk2U/oJTs9AaTSwma7dT69geAE2ZpEjUsn2ieJNHeKfrI3EcAGJ2ZaNgVuC8EBctCLc57P5u5led6IOBkIYkuQMrmmjChs4VkfOerHqSBkPzZlhe06RslZ3zMjk2sscqKwY0RcjKK+LWbzd7KiHhkncs/siFJ+V5eXxD34B8nVuJEpGJNmxN2gH3vSvp7J70tF+D1Ej8qUJD1TkErAND2GZwTFg/LubvmgiBG3SOvdlsqFQrkEzJCL1rstlnVFROixZoDDSuXQFHESwVGlcuQcMb/b42NgjLowh5MTDFE3vNB5qStRIErdCQEh6pLPR92anSUb/wAIhldAaDMpGgAAAABJRU5ErkJggg==",Eje="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAQAAAACach9AAACMUlEQVR4Ae3ShY7jQBAE0Aoz/f9/HTMzhg1zrdKUrJbdx+Kd2nD8VNudfsL/Th///dyQN2TH6f3y/BGpC379rV+S+qqetBOxImNQXL8JCAr2V4iMQXHGNJxeCfZXhSRBcQMfvkOWUdtfzlLgAENmZDcmo2TVmt8OSM2eXxBp3DjHSMFutqS7SbmemzBiR+xpKCNUIRkdkkYxhAkyGoBvyQFEJEefwSmmvBfJuJ6aKqKWnAkvGZOaZXTUgFqYULWNSHUckZuR1HIIimUExutRxwzOLROIG4vKmCKQt364mIlhSyzAf1m9lHZHJZrlAOMMztRRiKimp/rpdJDc9Awry5xTZCte7FHtuS8wJgeYGrex28xNTd086Dik7vUMscQOa8y4DoGtCCSkAKlNwpgNtphjrC6MIHUkR6YWxxs6Sc5xqn222mmCRFzIt8lEdKx+ikCtg91qS2WpwVfBelJCiQJwvzixfI9cxZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+qMXSxXSyGUn4UbF8l+7qdSGnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC",Tje=()=>{delete O5.Icon.Default.prototype._getIconUrl,O5.Icon.Default.mergeOptions({iconRetinaUrl:Cje,iconUrl:Pje,shadowUrl:Eje})};Tje();const jje=Sje(Ao);function b0(e){return t=>{const{resetSelectedServer:n}=t;return F.useEffect(()=>{n()},[n]),g.jsx(e,{...t})}}let Aje=class extends F.Component{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(t){const{console:n=globalThis.console}=this.props;n.error(t)}render(){const{hasError:t}=this.state,{location:n=globalThis.location}=this.props;if(t)return g.jsx("div",{className:"home",children:g.jsxs(qt,{className:"p-4",children:[g.jsx("h1",{children:"Oops! This is awkward :S"}),g.jsx("p",{children:"It seems that something went wrong. Try refreshing the page or just click this button."}),g.jsx("br",{}),g.jsx(_t,{outline:!0,color:"primary",onClick:()=>n.reload(),children:"Take me back"})]})});const{children:r}=this.props;return r}};const kje=({id:e,name:t})=>g.jsxs(OF,{tag:Jt,to:`/server/${e}`,className:"servers-list__server-item",children:[t,g.jsx(Ge,{icon:HK,className:"servers-list__server-item-icon"})]}),tW=({servers:e,children:t,embedded:n=!1})=>g.jsxs(g.Fragment,{children:[t&&g.jsx("div",{"data-testid":"title",className:"mb-0 fs-5 fw-normal lh-sm",children:t}),e.length>0&&g.jsx(xF,{"data-testid":"list",tag:"div",className:Be("servers-list__list-group",{"servers-list__list-group--embedded":n}),children:e.map(({id:r,name:i})=>g.jsx(kje,{id:r,name:i},r))})]}),nW=({color:e=ip,className:t})=>g.jsx("svg",{className:t,viewBox:"0 0 512 512",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:g.jsxs("g",{fill:e,children:[g.jsx("path",{d:" M 23.71 85.08 C 17.22 49.81 49.44 14.86 85.08 18.12 C 118.83 19.21 145.72 53.33 139.45 86.37 C 155.64 102.30 171.32 118.83 187.87 134.36 C 198.32 111.73 208.84 89.12 219.57 66.62 C 226.05 53.84 243.47 48.74 255.73 56.27 C 263.76 62.10 270.34 69.69 277.25 76.75 C 286.28 86.61 285.72 102.89 276.31 112.31 C 223.38 165.37 170.38 218.37 117.35 271.34 C 107.72 280.99 91.01 281.25 81.11 271.86 C 74.39 264.94 66.82 258.69 61.24 250.77 C 53.72 238.52 58.85 221.07 71.64 214.62 C 94.11 203.87 116.72 193.38 139.33 182.91 C 123.81 166.36 107.30 150.68 91.37 134.49 C 60.20 140.28 27.37 116.78 23.71 85.08 Z"}),g.jsx("path",{d:" M 205.21 201.23 C 225.32 181.36 260.88 181.11 281.14 200.86 C 299.25 218.75 317.37 236.65 335.10 254.93 C 356.73 278.01 352.01 318.70 326.03 336.56 C 320.07 330.47 313.73 324.65 308.12 318.28 C 323.86 309.39 328.76 286.18 316.63 272.39 C 301.73 256.95 286.30 242.03 271.24 226.75 C 264.49 219.65 256.80 212.00 246.37 211.52 C 224.65 208.64 205.52 233.36 214.49 253.58 C 221.09 266.81 234.22 275.12 243.62 286.24 C 240.43 295.96 238.09 306.13 238.29 316.46 C 225.55 304.29 213.16 291.73 200.89 279.09 C 180.97 257.57 183.10 220.45 205.21 201.23 Z"}),g.jsx("path",{d:" M 273.90 352.07 C 252.28 328.99 256.98 288.31 282.96 270.46 C 288.93 276.54 295.26 282.36 300.88 288.72 C 285.14 297.62 280.23 320.82 292.38 334.61 C 307.27 350.05 322.70 364.96 337.75 380.25 C 344.51 387.35 352.20 395.00 362.64 395.48 C 384.35 398.37 403.49 373.64 394.51 353.42 C 387.92 340.18 374.78 331.88 365.38 320.76 C 368.56 311.04 370.91 300.86 370.71 290.54 C 383.45 302.70 395.84 315.27 408.11 327.91 C 428.03 349.43 425.90 386.55 403.78 405.77 C 383.68 425.64 348.13 425.89 327.86 406.14 C 309.75 388.25 291.60 370.37 273.90 352.07 Z"}),g.jsx("path",{d:" M 422.11 403.83 C 431.96 394.07 441.60 384.06 451.66 374.51 C 460.90 383.74 471.89 392.70 474.89 406.11 C 480.16 429.97 484.08 454.13 488.76 478.12 C 490.00 483.41 484.47 488.29 479.35 486.63 C 454.66 481.52 429.55 478.12 405.14 471.84 C 393.17 467.97 385.20 457.75 376.55 449.27 C 386.39 439.49 396.13 429.60 406.06 419.91 C 416.37 433.45 435.74 414.00 422.11 403.83 Z"})]})}),Rje=({servers:e})=>{const t=oa(),n=Object.values(e),r=n.length>0;return F.useEffect(()=>{const i=n.find(({autoConnect:o})=>o);i&&t(`/server/${i.id}`)},[n,t]),g.jsx("div",{className:"w-100",children:g.jsx(wi,{className:"mx-auto",style:{maxWidth:"720px"},children:g.jsxs("div",{className:"d-flex flex-column flex-md-row",children:[g.jsx("div",{className:"p-4 d-none d-md-flex align-items-center",style:{width:"40%"},children:g.jsx("div",{className:"w-100",children:g.jsx(nW,{})})}),g.jsxs("div",{className:"home__servers-container flex-grow-1",children:[g.jsx("h1",{className:Be("home__title p-4 text-center m-0",{"border-bottom":!r}),style:{borderColor:"var(--border-color) !important"},children:"Welcome!"}),g.jsx(tW,{embedded:!0,servers:n,children:!r&&g.jsxs("div",{className:"p-4 text-center d-flex flex-column gap-5",children:[g.jsx("p",{className:"mb-0",children:"This application will help you manage your Shlink servers."}),g.jsx("p",{className:"mb-0",children:g.jsxs(Jt,{to:"/server/create",className:"btn btn-outline-primary btn-lg me-2",children:[g.jsx(Ge,{icon:Hp})," ",g.jsx("span",{className:"ms-1",children:"Add a server"})]})}),g.jsx("p",{className:"mb-0",children:g.jsx(Gr,{href:"https://shlink.io/documentation",children:g.jsxs("small",{children:[g.jsx("span",{className:"me-2",children:"Learn more about Shlink"}),g.jsx(Ge,{icon:CK})]})})})]})})]})]})})})},rW=()=>{const{ServersDropdown:e}=Co(rW),[t,n,,r]=cn(),i=Kr(),{pathname:o}=i;F.useEffect(r,[i,r]);const a="/settings",s=Be("main-header__toggle-icon",{"main-header__toggle-icon--opened":t});return g.jsxs(W$,{color:"primary",dark:!0,fixed:"top",className:"main-header",expand:"md",children:[g.jsxs(q$,{tag:Jt,to:"/",children:[g.jsx(nW,{className:"main-header__brand-logo",color:"white"})," Shlink"]}),g.jsx(H$,{onClick:n,children:g.jsx(Ge,{icon:WK,className:s})}),g.jsx(mT,{navbar:!0,isOpen:t,children:g.jsxs(oT,{navbar:!0,className:"ms-auto",children:[g.jsx(aT,{children:g.jsxs(sT,{tag:Jt,to:a,active:o.startsWith(a),children:[g.jsx(Ge,{icon:YK}),"  Settings"]})}),g.jsx(e,{})]})})]})},Nje=Eo(rW,["ServersDropdown"]),Mje=({children:e})=>{const t=Kr();return F.useEffect(()=>{scrollTo(0,0)},[t]),g.jsx(g.Fragment,{children:e})},iW=ZF(e=>e,e=>{try{return VP(e,e,"=")}catch{return!1}}),oW=e=>iW(e)?`v${e}`:e,aW=(e,t="latest")=>iW(e)?e:t,Lje="%_VERSION_%",Ije=e=>oW(aW(e)),u8=({project:e,version:t})=>g.jsx(Gr,{href:`https://github.com/shlinkio/${e}/releases/${t}`,className:"text-muted",children:g.jsx("b",{children:t})}),Dje=({selectedServer:e,clientVersion:t=Lje})=>{const n=Ije(t);return g.jsxs("small",{className:"text-muted",children:[$E(e)&&g.jsxs(g.Fragment,{children:["Server: ",g.jsx(u8,{project:"shlink",version:e.printableVersion})," - "]}),"Client: ",g.jsx(u8,{project:"shlink-web-client",version:n})]})},$je=({selectedServer:e})=>g.jsx("div",{className:Be("text-center",{"shlink-versions-container--with-sidebar":$E(e)}),children:g.jsx(Dje,{selectedServer:e})}),dd=({children:e,className:t})=>g.jsx("div",{className:Be("no-menu-wrapper container-xl",t),children:e});function sW(e){const t=n=>{const{ServerError:r}=Co(t),i=Gf(),{selectServer:o,selectedServer:a}=n;return F.useEffect(()=>{i.serverId&&o(i.serverId)},[i.serverId,o]),a?YG(a)?g.jsx(r,{}):g.jsx(e,{...n}):g.jsx(dd,{children:g.jsx(za,{loading:!0})})};return t}const lW=sW(F.memo(({selectedServer:e,settings:t})=>{const{buildShlinkApiClient:n,TagColorsStorage:r,ShlinkWebComponent:i,ServerError:o}=Co(lW);if(!$E(e))return g.jsx(o,{});const a=`/server/${e.id}`;return g.jsx(i,{serverVersion:e.version,apiClient:n(e),settings:t,routesPrefix:a,tagColorsStorage:r,createNotFound:s=>g.jsx(RF,{to:`${a}${s}`,children:"List short URLs"})})})),Fje=Eo(lW,["buildShlinkApiClient","TagColorsStorage","ShlinkWebComponent","ServerError"]),Bje=(e,t)=>{e.constant("window",window),e.constant("console",console),e.constant("fetch",window.fetch.bind(window)),e.service("HttpClient",goe,"fetch"),e.serviceFactory("ScrollToTop",()=>Mje),e.factory("MainHeader",Nje),e.serviceFactory("Home",()=>Rje),e.decorator("Home",b0),e.decorator("Home",t(["servers"],["resetSelectedServer"])),e.serviceFactory("ShlinkWebComponent",()=>jje),e.factory("ShlinkWebComponentContainer",Fje),e.decorator("ShlinkWebComponentContainer",t(["selectedServer","settings"],["selectServer"])),e.serviceFactory("ShlinkVersionsContainer",()=>$je),e.decorator("ShlinkVersionsContainer",t(["selectedServer"])),e.serviceFactory("ErrorHandler",()=>Aje)},uW=()=>{const e=oa();return F.useCallback(()=>e(-1),[e])};function Uje(e){let t=e.url;try{const{host:n,pathname:r}=new URL(t);t=n;const i=r.substring(1);i.length>0&&(t=`${t} ${i}`)}catch{}return`${e.name} ${t}`.toLowerCase().replace(/[^a-zA-Z0-9-_.~]/g,"-")}function zje(e){const t={};return e.forEach(n=>{t[n.id]=n}),t}const Vje=(e,{url:t,apiKey:n})=>e.some(r=>r.url===t&&r.apiKey===n);function Wje(e,t){const n=Object.values(e),{duplicatedServers:r=[],newServers:i=[]}=YF(t,o=>Vje(n,o)?"duplicatedServers":"newServers");return{duplicatedServers:r,newServers:i}}function _0(e,t){const n=new Set(Object.keys(e)),r=[];return t.forEach(i=>{const o=Uje(i);let a=o,s=1;for(;n.has(a);)a=`${o}-${s}`,s++;r.push({...i,id:a}),n.add(a)}),r}const cW=({isOpen:e,duplicatedServers:t,onDiscard:n,onSave:r})=>{const i=t.length>1;return g.jsxs(Zr,{centered:!0,isOpen:e,children:[g.jsxs(aa,{children:["Duplicated server",i&&"s"]}),g.jsxs(Po,{children:[g.jsx("p",{children:i?"The next servers already exist:":"There is already a server with:"}),g.jsx("ul",{children:t.map(({url:o,apiKey:a},s)=>i?g.jsxs("li",{children:[g.jsx("b",{children:o})," - ",g.jsx("b",{children:a})]},s):g.jsxs(F.Fragment,{children:[g.jsxs("li",{children:["URL: ",g.jsx("b",{children:o})]}),g.jsxs("li",{children:["API key: ",g.jsx("b",{children:a})]})]},s))}),g.jsxs("span",{children:[i?"Do you want to ignore duplicated servers":"Do you want to save this server anyway","?"]})]}),g.jsxs(Qa,{children:[g.jsx(_t,{color:"link",onClick:n,children:i?"Ignore duplicates":"Discard"}),g.jsx(_t,{color:"primary",onClick:r,children:"Save anyway"})]})]})},qje=e=>t=>{t.preventDefault(),e()},fW=({onSubmit:e,initialValues:t,children:n,title:r})=>{const[i,o]=F.useState((t==null?void 0:t.name)??""),[a,s]=F.useState((t==null?void 0:t.url)??""),[c,u]=F.useState((t==null?void 0:t.apiKey)??""),h=qje(()=>e({name:i,url:a,apiKey:c}));return g.jsxs("form",{className:"server-form",name:"serverForm",onSubmit:h,children:[g.jsxs(qt,{className:"mb-3",title:r,children:[g.jsx(vg,{value:i,onChange:o,children:"Name"}),g.jsx(vg,{type:"url",value:a,onChange:s,children:"URL"}),g.jsx(vg,{value:c,onChange:u,children:"API key"})]}),g.jsx("div",{className:"text-end",children:n})]})},c8=4e3,f8=({type:e})=>g.jsx("div",{className:"mt-3",children:g.jsxs(Tr,{type:e,children:[e==="success"&&"Servers properly imported. You can now select one from the list :)",e==="error"&&"The servers could not be imported. Make sure the format is correct."]})}),dW=({servers:e,createServers:t})=>{const{ImportServersBtn:n,useTimeoutToggle:r}=Co(dW),i=oa(),o=uW(),a=!!Object.keys(e).length,[s,c]=r(!1,c8),[u,h]=r(!1,c8),[p,v]=cn(),[b,x]=F.useState(),_=F.useCallback(O=>{const[P]=_0(e,[O]);t([P]),i(`/server/${P.id}`)},[t,i,e]),w=F.useCallback(O=>{x(O),Object.values(e).some(({url:E,apiKey:T})=>O.url===E&&O.apiKey===T)?v():_(O)},[_,e,v]);return g.jsxs(dd,{children:[g.jsxs(fW,{title:g.jsx("h5",{className:"mb-0",children:"Add new server"}),onSubmit:w,children:[!a&&g.jsx(n,{tooltipPlacement:"top",onImport:c,onImportError:h}),a&&g.jsx(_t,{outline:!0,onClick:o,children:"Cancel"}),g.jsx(_t,{outline:!0,color:"primary",className:"ms-2",children:"Create server"})]}),s&&g.jsx(f8,{type:"success"}),u&&g.jsx(f8,{type:"error"}),g.jsx(cW,{isOpen:p,duplicatedServers:b?[b]:[],onDiscard:o,onSave:()=>b&&_(b)})]})},Hje=Eo(dW,["ImportServersBtn","useTimeoutToggle"]),hW=({server:e,className:t,children:n,textClassName:r})=>{const{DeleteServerModal:i}=Co(hW),[o,,a,s]=cn();return g.jsxs(g.Fragment,{children:[g.jsxs("button",{type:"button",className:Be(t,"p-0 bg-transparent border-0"),onClick:a,children:[!n&&g.jsx(Ge,{fixedWidth:!0,icon:FE}),g.jsx("span",{className:r,children:n??"Remove this server"})]}),g.jsx(i,{server:e,isOpen:o,toggle:s})]})},Gje=Eo(hW,["DeleteServerModal"]),Kje=({server:e,toggle:t,isOpen:n,deleteServer:r,redirectHome:i=!0})=>{const o=oa(),a=F.useRef(!1),s=()=>{a.current=!0,t()},c=()=>{a.current&&(r(e),i&&o("/"))};return g.jsxs(Zr,{isOpen:n,toggle:t,centered:!0,onClosed:c,children:[g.jsx(aa,{toggle:t,className:"text-danger",children:"Remove server"}),g.jsxs(Po,{children:[g.jsxs("p",{children:["Are you sure you want to remove ",g.jsx("b",{children:e?e.name:""}),"?"]}),g.jsx("p",{children:g.jsx("i",{children:"No data will be deleted, only the access to this server will be removed from this device. You can create it again at any moment."})})]}),g.jsxs(Qa,{children:[g.jsx(_t,{color:"link",onClick:t,children:"Cancel"}),g.jsx(_t,{color:"danger",onClick:s,children:"Delete"})]})]})},Yje=sW(({editServer:e,selectedServer:t,selectServer:n})=>{const r=uW(),{reconnect:i}=Zf();if(!Th(t))return null;const o=a=>{e(t.id,a),i==="true"&&n(t.id),r()};return g.jsx(dd,{children:g.jsxs(fW,{title:g.jsxs("h5",{className:"mb-0",children:['Edit "',t.name,'"']}),initialValues:t,onSubmit:o,children:[g.jsx(_t,{outline:!0,className:"me-2",onClick:r,children:"Cancel"}),g.jsx(_t,{outline:!0,color:"primary",children:"Save"})]})})}),Zje=Eo(Yje,["ServerError"]),pW=({createServers:e,servers:t,children:n,onImport:r=()=>{},onImportError:i=()=>{},tooltipPlacement:o="bottom",className:a=""})=>{const{ServersImporter:s}=Co(pW),c=Xi(),[u,h]=F.useState([]),[p,,v,b]=cn(),x=F.useRef([]),_=F.useRef([]),w=F.useCallback(T=>{e(T),r()},[e,r]),O=F.useCallback(async({target:T})=>{var A;return s.importServersFromFile((A=T.files)==null?void 0:A[0]).then(j=>{const{duplicatedServers:N,newServers:$}=Wje(t,j);x.current=_0(t,j),_.current=_0(t,$),N.length===0?w(x.current):(h(N),v())}).then(()=>{T.value=null}).catch(i)},[w,i,t,s,v]),P=F.useCallback(()=>{w(x.current),b()},[w,b]),E=F.useCallback(()=>{w(_.current),b()},[w,b]);return g.jsxs(g.Fragment,{children:[g.jsxs(_t,{outline:!0,id:"importBtn",className:a,onClick:()=>{var T;return(T=c.current)==null?void 0:T.click()},children:[g.jsx(Ge,{icon:gK,fixedWidth:!0})," ",n??"Import from file"]}),g.jsxs(Oi,{placement:o,target:"importBtn",children:["You can create servers by importing a CSV file with ",g.jsx("b",{children:"name"}),", ",g.jsx("b",{children:"apiKey"})," and ",g.jsx("b",{children:"url"})," columns."]}),g.jsx("input",{type:"file",accept:".csv",className:"d-none","aria-hidden":!0,ref:c,onChange:O,"data-testid":"csv-file-input"}),g.jsx(cW,{isOpen:p,duplicatedServers:u,onDiscard:E,onSave:P})]})},Xje=Eo(pW,["ServersImporter"]),mW=({servers:e,selectedServer:t})=>{const{DeleteServerButton:n}=Co(mW);return g.jsx(dd,{children:g.jsxs("div",{className:"server-error__container flex-column",children:[g.jsxs(za,{className:"w-100 mb-3 mb-md-5",type:"error",fullWidth:!0,children:[!Th(t)&&"Could not find this Shlink server.",Th(t)&&g.jsxs(g.Fragment,{children:[g.jsx("p",{children:"Oops! Could not connect to this Shlink server."}),"Make sure you have internet connection, and the server is properly configured and on-line."]})]}),g.jsx(tW,{servers:Object.values(e),children:g.jsxs("p",{className:"mb-md-3",children:["These are the Shlink servers currently configured. Choose one of them or ",g.jsx(Jt,{to:"/server/create",children:"add a new one"}),"."]})}),Th(t)&&g.jsx("div",{className:"container mt-3 mt-md-5",children:g.jsxs("p",{className:"fs-5 fw-normal lh-sm",children:["Alternatively, if you think you may have miss-configured this server, you can ",g.jsx(n,{server:t,className:"server-error__delete-btn",children:"remove it"})," or ",g.jsx(Jt,{to:`/server/${t.id}/edit?reconnect=true`,children:"edit it"}),"."]})})]})})},Qje=Eo(mW,["DeleteServerButton"]),Jje=4e3,vW=({servers:e})=>{const{ServersExporter:t,ImportServersBtn:n,useTimeoutToggle:r,ManageServersRow:i}=Co(vW),[o,a]=F.useState(""),s=F.useMemo(()=>Object.values(e),[e]),c=F.useMemo(()=>s.filter(({name:v,url:b})=>`${v} ${b}`.toLowerCase().match(o.toLowerCase())),[s,o]),u=s.some(({autoConnect:v})=>!!v),[h,p]=r(!1,Jje);return g.jsxs(dd,{className:"d-flex flex-column gap-3",children:[g.jsx(tm,{onChange:a}),g.jsxs("div",{className:"d-flex flex-column flex-md-row gap-2",children:[g.jsxs("div",{className:"d-flex gap-2",children:[g.jsx(n,{className:"flex-fill",onImportError:p,children:"Import servers"}),c.length>0&&g.jsxs(_t,{outline:!0,className:"flex-fill",onClick:async()=>t.exportServers(),children:[g.jsx(Ge,{icon:J8,fixedWidth:!0})," Export servers"]})]}),g.jsxs(_t,{outline:!0,color:"primary",className:"ms-md-auto",tag:Jt,to:"/server/create",children:[g.jsx(Ge,{icon:Hp,fixedWidth:!0})," Add a server"]})]}),g.jsx(qt,{children:g.jsxs("table",{className:"table table-hover responsive-table mb-0",children:[g.jsx("thead",{className:"responsive-table__header",children:g.jsxs("tr",{children:[u&&g.jsx("th",{style:{width:"50px"},children:g.jsx("span",{className:"sr-only",children:"Auto-connect"})}),g.jsx("th",{children:"Name"}),g.jsx("th",{children:"Base URL"}),g.jsx("th",{children:g.jsx("span",{className:"sr-only",children:"Options"})})]})}),g.jsxs("tbody",{children:[!c.length&&g.jsx("tr",{className:"text-center",children:g.jsx("td",{colSpan:4,children:"No servers found."})}),c.map(v=>g.jsx(i,{server:v,hasAutoConnect:u},v.id))]})]})}),h&&g.jsx("div",{children:g.jsx(Tr,{type:"error",children:"The servers could not be imported. Make sure the format is correct."})})]})},eAe=Eo(vW,["ServersExporter","ImportServersBtn","useTimeoutToggle","ManageServersRow"]),gW=({server:e,hasAutoConnect:t})=>{const{ManageServersRowDropdown:n}=Co(gW);return g.jsxs("tr",{className:"responsive-table__row",children:[t&&g.jsx("td",{className:"responsive-table__cell","data-th":"Auto-connect",children:e.autoConnect&&g.jsxs(g.Fragment,{children:[g.jsx(Ge,{icon:Yh,className:"text-primary",id:"autoConnectIcon"}),g.jsx(Oi,{target:"autoConnectIcon",placement:"right",children:"Auto-connect to this server"})]})}),g.jsx("th",{className:"responsive-table__cell","data-th":"Name",children:g.jsx(Jt,{to:`/server/${e.id}`,children:e.name})}),g.jsx("td",{className:"responsive-table__cell","data-th":"Base URL",children:e.url}),g.jsx("td",{className:"responsive-table__cell text-end",children:g.jsx(n,{server:e})})]})},tAe=Eo(gW,["ManageServersRowDropdown"]),yW=({server:e,setAutoConnect:t})=>{const{DeleteServerModal:n}=Co(yW),[r,,i,o]=cn(),a=`/server/${e.id}`,{autoConnect:s}=e,c=s?mK:Qoe;return g.jsxs(I0,{minWidth:s?210:170,children:[g.jsxs(Ye,{tag:Jt,to:a,children:[g.jsx(Ge,{icon:hK,fixedWidth:!0})," Connect"]}),g.jsxs(Ye,{tag:Jt,to:`${a}/edit`,children:[g.jsx(Ge,{icon:UE,fixedWidth:!0})," Edit server"]}),g.jsxs(Ye,{onClick:()=>t(e,!s),children:[g.jsx(Ge,{icon:c,fixedWidth:!0})," ",s?"Do not a":"A","uto-connect"]}),g.jsx(Ye,{divider:!0,tag:"hr"}),g.jsxs(Ye,{className:"dropdown-item--danger",onClick:i,children:[g.jsx(Ge,{icon:FE,fixedWidth:!0})," Remove server"]}),g.jsx(n,{redirectHome:!1,server:e,isOpen:r,toggle:o})]})},nAe=Eo(yW,["DeleteServerModal"]),bW=(e,t)=>HF(e,t,{serializeError:n=>n}),rAe={},{actions:iAe,reducer:oAe}=An({name:"shlink/servers",initialState:rAe,reducers:{editServer:{prepare:(e,t)=>({payload:{serverId:e,serverData:t}}),reducer:(e,{payload:t})=>{const{serverId:n,serverData:r}=t;return e[n]?{...e,[n]:{...e[n],...r}}:e}},deleteServer:(e,{payload:t})=>(delete e[t.id],e),setAutoConnect:{prepare:({id:e},t)=>({payload:{serverId:e,autoConnect:t}}),reducer:(e,{payload:t})=>{const{serverId:n,autoConnect:r}=t;return e[n]?r?Object.fromEntries(Object.entries(e).map(([i,o])=>[i,{...o,autoConnect:i===n}])):{...e,[n]:{...e[n],autoConnect:r}}:e}},createServers:{prepare:e=>({payload:zje(e)}),reducer:(e,{payload:t})=>({...e,...t})}}}),{editServer:aAe,deleteServer:sAe,setAutoConnect:lAe,createServers:_W}=iAe,uAe=oAe,cAe=e=>_0({},Array.isArray(e)?e.filter(Y8):[]),fAe=e=>bW("shlink/remoteServers/fetchServers",async(t,{dispatch:n})=>{const r=await e.jsonRequest(`${Eg.homepage}/servers.json`),i=cAe(r);n(_W(i))}),cA="shlink/selectedServer",dAe="1.0.0",hAe="999.999.999",pAe="latest",mAe=e=>aW(e===pAe?hAe:e,dAe),vAe=ZF(e=>`${e.id}_${e.url}_${e.apiKey}`,async(e,t)=>t().then(({version:n})=>({version:mAe(n),printableVersion:oW(n)}))),d8=null,fA=jr(`${cA}/resetSelectedServer`),gAe=e=>bW(`${cA}/selectServer`,async(t,{dispatch:n,getState:r})=>{n(fA());const{servers:i}=r(),o=i[t];if(!o)return{serverNotFound:!0};try{const a=e(o),{version:s,printableVersion:c}=await vAe(o,()=>a.health());return{...o,version:s,printableVersion:c}}catch{return{...o,serverNotReachable:!0}}}),yAe=e=>An({name:cA,initialState:d8,reducers:{},extraReducers:t=>{t.addCase(fA,()=>d8),t.addCase(e.fulfilled,(n,{payload:r})=>r)}}),bAe=({servers:e,selectedServer:t})=>{const n=Object.values(e),r=()=>n.length===0?g.jsxs(Ye,{tag:Jt,to:"/server/create",children:[g.jsx(Ge,{icon:Hp})," ",g.jsx("span",{className:"ms-1",children:"Add a server"})]}):g.jsxs(g.Fragment,{children:[n.map(({name:i,id:o})=>g.jsx(Ye,{tag:Jt,to:`/server/${o}`,active:ZG(t)===o,children:i},o)),g.jsx(Ye,{divider:!0,tag:"hr"}),g.jsxs(Ye,{tag:Jt,to:"/manage-servers",children:[g.jsx(Ge,{icon:xk})," ",g.jsx("span",{className:"ms-1",children:"Manage servers"})]})]});return g.jsxs(em,{nav:!0,inNavbar:!0,children:[g.jsxs(Xa,{nav:!0,caret:!0,children:[g.jsx(Ge,{icon:xk})," ",g.jsx("span",{className:"ms-1",children:"Servers"})]}),g.jsx(pl,{end:!0,style:{right:0},children:r()})]})},_Ae=({document:e},t,n)=>{const r=e.createElement("a");r.setAttribute("href",t),r.setAttribute("download",n),r.style.visibility="hidden",e.body.appendChild(r),r.click(),e.body.removeChild(r)},xAe=(e,t,n)=>{const r=new Blob([t],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r);_Ae(e,i,n)},wAe="shlink-servers.csv";class OAe{constructor(t,n,r){Ec(this,"exportServers",async()=>{const t=Object.values(this.storage.get("servers")??{}).map(XG);try{const n=this.jsonToCsv(t);xAe(this.window,n,wAe)}catch(n){console.error(n)}});this.storage=t,this.window=n,this.jsonToCsv=r}}const SAe=e=>typeof e.url=="string"&&typeof e.apiKey=="string"&&typeof e.name=="string",PAe=e=>Array.isArray(e)&&e.every(SAe);class CAe{constructor(t){this.csvToJson=t}async importServersFromFile(t){if(!t)throw new Error("No file provided");const n=await t.text(),r=await this.csvToJson(n);if(!PAe(r))throw new Error("Provided file does not have the right format.");return r}}const EAe=(e,t)=>{e.factory("ManageServers",eAe),e.decorator("ManageServers",b0),e.decorator("ManageServers",t(["selectedServer","servers"],["resetSelectedServer"])),e.factory("ManageServersRow",tAe),e.factory("ManageServersRowDropdown",nAe),e.decorator("ManageServersRowDropdown",t(null,["setAutoConnect"])),e.factory("CreateServer",Hje),e.decorator("CreateServer",b0),e.decorator("CreateServer",t(["selectedServer","servers"],["createServers","resetSelectedServer"])),e.factory("EditServer",Zje),e.decorator("EditServer",t(["selectedServer"],["editServer","selectServer","resetSelectedServer"])),e.serviceFactory("ServersDropdown",()=>bAe),e.decorator("ServersDropdown",t(["servers","selectedServer"])),e.serviceFactory("DeleteServerModal",()=>Kje),e.decorator("DeleteServerModal",t(null,["deleteServer"])),e.factory("DeleteServerButton",Gje),e.factory("ImportServersBtn",Xje),e.decorator("ImportServersBtn",t(["servers"],["createServers"])),e.factory("ServerError",Qje),e.decorator("ServerError",t(["servers","selectedServer"])),e.service("ServersImporter",CAe,"csvToJson"),e.service("ServersExporter",OAe,"Storage","window","jsonToCsv"),e.serviceFactory("selectServer",gAe,"buildShlinkApiClient","loadMercureInfo"),e.serviceFactory("createServers",()=>_W),e.serviceFactory("deleteServer",()=>sAe),e.serviceFactory("editServer",()=>aAe),e.serviceFactory("setAutoConnect",()=>lAe),e.serviceFactory("fetchServers",fAe,"HttpClient"),e.serviceFactory("resetSelectedServer",()=>fA),e.serviceFactory("selectedServerReducerCreator",yAe,"selectServer"),e.serviceFactory("selectedServerReducer",n=>n.reducer,"selectedServerReducerCreator")},xW={field:"dateCreated",dir:"DESC"},TAe={realTimeUpdates:{enabled:!0},shortUrlCreation:{validateUrls:!1},ui:{theme:_T()},visits:{defaultInterval:"last30Days"},shortUrlsList:{defaultOrdering:xW}},{reducer:jAe,actions:AAe}=An({name:"shlink/settings",initialState:TAe,reducers:{setSettings:(e,{payload:t})=>z0(e,t)}}),{setSettings:kAe}=AAe,RAe=jAe,NAe=({settings:e,setSettings:t})=>g.jsx(dd,{children:g.jsx(Yoe,{settings:e,updateSettings:t,defaultShortUrlsListOrdering:xW})}),MAe=(e,t)=>{e.serviceFactory("Settings",()=>NAe),e.decorator("Settings",b0),e.decorator("Settings",t(["settings"],["setSettings","resetSelectedServer"])),e.serviceFactory("setSettings",()=>kAe)};var qO,h8;function LAe(){return h8||(h8=1,qO=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(r,i,o){n.o(r,i)||Object.defineProperty(r,i,{enumerable:!0,get:o})},n.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n.t=function(r,i){if(1&i&&(r=n(r)),8&i||4&i&&typeof r=="object"&&r&&r.__esModule)return r;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:r}),2&i&&typeof r!="string")for(var a in r)n.d(o,a,(function(s){return r[s]}).bind(null,a));return o},n.n=function(r){var i=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(i,"a",i),i},n.o=function(r,i){return Object.prototype.hasOwnProperty.call(r,i)},n.p="",n(n.s=32)}([function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch{typeof window=="object"&&(n=window)}e.exports=n},function(e,t,n){var r=n(6),i=Object.keys||function(x){var _=[];for(var w in x)_.push(w);return _};e.exports=p;var o=n(5);o.inherits=n(2);var a=n(23),s=n(14);o.inherits(p,a);for(var c=i(s.prototype),u=0;u<c.length;u++){var h=c[u];p.prototype[h]||(p.prototype[h]=s.prototype[h])}function p(x){if(!(this instanceof p))return new p(x);a.call(this,x),s.call(this,x),x&&x.readable===!1&&(this.readable=!1),x&&x.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,x&&x.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",v)}function v(){this.allowHalfOpen||this._writableState.ended||r.nextTick(b,this)}function b(x){x.end()}Object.defineProperty(p.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(p.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(x){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=x,this._writableState.destroyed=x)}}),p.prototype._destroy=function(x,_){this.push(null),this.end(),r.nextTick(_,x)}},function(e,t){typeof Object.create=="function"?e.exports=function(n,r){n.super_=r,n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(n,r){n.super_=r;var i=function(){};i.prototype=r.prototype,n.prototype=new i,n.prototype.constructor=n}},function(e,t,n){(function(r){/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
* @license MIT
*/var i=n(38),o=n(39),a=n(40);function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(M,D){if(s()<D)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(M=new Uint8Array(D)).__proto__=u.prototype:(M===null&&(M=new u(D)),M.length=D),M}function u(M,D,Y){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(M,D,Y);if(typeof M=="number"){if(typeof D=="string")throw new Error("If encoding is specified then the first argument must be a string");return v(this,M)}return h(this,M,D,Y)}function h(M,D,Y,ue){if(typeof D=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&D instanceof ArrayBuffer?function(ie,he,Se,Fe){if(he.byteLength,Se<0||he.byteLength<Se)throw new RangeError("'offset' is out of bounds");if(he.byteLength<Se+(Fe||0))throw new RangeError("'length' is out of bounds");return he=Se===void 0&&Fe===void 0?new Uint8Array(he):Fe===void 0?new Uint8Array(he,Se):new Uint8Array(he,Se,Fe),u.TYPED_ARRAY_SUPPORT?(ie=he).__proto__=u.prototype:ie=b(ie,he),ie}(M,D,Y,ue):typeof D=="string"?function(ie,he,Se){if(typeof Se=="string"&&Se!==""||(Se="utf8"),!u.isEncoding(Se))throw new TypeError('"encoding" must be a valid string encoding');var Fe=0|_(he,Se),ge=(ie=c(ie,Fe)).write(he,Se);return ge!==Fe&&(ie=ie.slice(0,ge)),ie}(M,D,Y):function(ie,he){if(u.isBuffer(he)){var Se=0|x(he.length);return(ie=c(ie,Se)).length===0||he.copy(ie,0,0,Se),ie}if(he){if(typeof ArrayBuffer<"u"&&he.buffer instanceof ArrayBuffer||"length"in he)return typeof he.length!="number"||function(Fe){return Fe!=Fe}(he.length)?c(ie,0):b(ie,he);if(he.type==="Buffer"&&a(he.data))return b(ie,he.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(M,D)}function p(M){if(typeof M!="number")throw new TypeError('"size" argument must be a number');if(M<0)throw new RangeError('"size" argument must not be negative')}function v(M,D){if(p(D),M=c(M,D<0?0:0|x(D)),!u.TYPED_ARRAY_SUPPORT)for(var Y=0;Y<D;++Y)M[Y]=0;return M}function b(M,D){var Y=D.length<0?0:0|x(D.length);M=c(M,Y);for(var ue=0;ue<Y;ue+=1)M[ue]=255&D[ue];return M}function x(M){if(M>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|M}function _(M,D){if(u.isBuffer(M))return M.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(M)||M instanceof ArrayBuffer))return M.byteLength;typeof M!="string"&&(M=""+M);var Y=M.length;if(Y===0)return 0;for(var ue=!1;;)switch(D){case"ascii":case"latin1":case"binary":return Y;case"utf8":case"utf-8":case void 0:return ce(M).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*Y;case"hex":return Y>>>1;case"base64":return de(M).length;default:if(ue)return ce(M).length;D=(""+D).toLowerCase(),ue=!0}}function w(M,D,Y){var ue=M[D];M[D]=M[Y],M[Y]=ue}function O(M,D,Y,ue,ie){if(M.length===0)return-1;if(typeof Y=="string"?(ue=Y,Y=0):Y>2147483647?Y=2147483647:Y<-2147483648&&(Y=-2147483648),Y=+Y,isNaN(Y)&&(Y=ie?0:M.length-1),Y<0&&(Y=M.length+Y),Y>=M.length){if(ie)return-1;Y=M.length-1}else if(Y<0){if(!ie)return-1;Y=0}if(typeof D=="string"&&(D=u.from(D,ue)),u.isBuffer(D))return D.length===0?-1:P(M,D,Y,ue,ie);if(typeof D=="number")return D&=255,u.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?ie?Uint8Array.prototype.indexOf.call(M,D,Y):Uint8Array.prototype.lastIndexOf.call(M,D,Y):P(M,[D],Y,ue,ie);throw new TypeError("val must be string, number or Buffer")}function P(M,D,Y,ue,ie){var he,Se=1,Fe=M.length,ge=D.length;if(ue!==void 0&&((ue=String(ue).toLowerCase())==="ucs2"||ue==="ucs-2"||ue==="utf16le"||ue==="utf-16le")){if(M.length<2||D.length<2)return-1;Se=2,Fe/=2,ge/=2,Y/=2}function Ee(Ue,qe){return Se===1?Ue[qe]:Ue.readUInt16BE(qe*Se)}if(ie){var je=-1;for(he=Y;he<Fe;he++)if(Ee(M,he)===Ee(D,je===-1?0:he-je)){if(je===-1&&(je=he),he-je+1===ge)return je*Se}else je!==-1&&(he-=he-je),je=-1}else for(Y+ge>Fe&&(Y=Fe-ge),he=Y;he>=0;he--){for(var Me=!0,He=0;He<ge;He++)if(Ee(M,he+He)!==Ee(D,He)){Me=!1;break}if(Me)return he}return-1}function E(M,D,Y,ue){Y=Number(Y)||0;var ie=M.length-Y;ue?(ue=Number(ue))>ie&&(ue=ie):ue=ie;var he=D.length;if(he%2!=0)throw new TypeError("Invalid hex string");ue>he/2&&(ue=he/2);for(var Se=0;Se<ue;++Se){var Fe=parseInt(D.substr(2*Se,2),16);if(isNaN(Fe))return Se;M[Y+Se]=Fe}return Se}function T(M,D,Y,ue){return be(ce(D,M.length-Y),M,Y,ue)}function A(M,D,Y,ue){return be(function(ie){for(var he=[],Se=0;Se<ie.length;++Se)he.push(255&ie.charCodeAt(Se));return he}(D),M,Y,ue)}function j(M,D,Y,ue){return A(M,D,Y,ue)}function N(M,D,Y,ue){return be(de(D),M,Y,ue)}function $(M,D,Y,ue){return be(function(ie,he){for(var Se,Fe,ge,Ee=[],je=0;je<ie.length&&!((he-=2)<0);++je)Fe=(Se=ie.charCodeAt(je))>>8,ge=Se%256,Ee.push(ge),Ee.push(Fe);return Ee}(D,M.length-Y),M,Y,ue)}function W(M,D,Y){return D===0&&Y===M.length?i.fromByteArray(M):i.fromByteArray(M.slice(D,Y))}function B(M,D,Y){Y=Math.min(M.length,Y);for(var ue=[],ie=D;ie<Y;){var he,Se,Fe,ge,Ee=M[ie],je=null,Me=Ee>239?4:Ee>223?3:Ee>191?2:1;if(ie+Me<=Y)switch(Me){case 1:Ee<128&&(je=Ee);break;case 2:(192&(he=M[ie+1]))==128&&(ge=(31&Ee)<<6|63&he)>127&&(je=ge);break;case 3:he=M[ie+1],Se=M[ie+2],(192&he)==128&&(192&Se)==128&&(ge=(15&Ee)<<12|(63&he)<<6|63&Se)>2047&&(ge<55296||ge>57343)&&(je=ge);break;case 4:he=M[ie+1],Se=M[ie+2],Fe=M[ie+3],(192&he)==128&&(192&Se)==128&&(192&Fe)==128&&(ge=(15&Ee)<<18|(63&he)<<12|(63&Se)<<6|63&Fe)>65535&&ge<1114112&&(je=ge)}je===null?(je=65533,Me=1):je>65535&&(je-=65536,ue.push(je>>>10&1023|55296),je=56320|1023&je),ue.push(je),ie+=Me}return function(He){var Ue=He.length;if(Ue<=V)return String.fromCharCode.apply(String,He);for(var qe="",ye=0;ye<Ue;)qe+=String.fromCharCode.apply(String,He.slice(ye,ye+=V));return qe}(ue)}t.Buffer=u,t.SlowBuffer=function(M){return+M!=M&&(M=0),u.alloc(+M)},t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=r.TYPED_ARRAY_SUPPORT!==void 0?r.TYPED_ARRAY_SUPPORT:function(){try{var M=new Uint8Array(1);return M.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},M.foo()===42&&typeof M.subarray=="function"&&M.subarray(1,1).byteLength===0}catch{return!1}}(),t.kMaxLength=s(),u.poolSize=8192,u._augment=function(M){return M.__proto__=u.prototype,M},u.from=function(M,D,Y){return h(null,M,D,Y)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(M,D,Y){return function(ue,ie,he,Se){return p(ie),ie<=0?c(ue,ie):he!==void 0?typeof Se=="string"?c(ue,ie).fill(he,Se):c(ue,ie).fill(he):c(ue,ie)}(null,M,D,Y)},u.allocUnsafe=function(M){return v(null,M)},u.allocUnsafeSlow=function(M){return v(null,M)},u.isBuffer=function(M){return!(M==null||!M._isBuffer)},u.compare=function(M,D){if(!u.isBuffer(M)||!u.isBuffer(D))throw new TypeError("Arguments must be Buffers");if(M===D)return 0;for(var Y=M.length,ue=D.length,ie=0,he=Math.min(Y,ue);ie<he;++ie)if(M[ie]!==D[ie]){Y=M[ie],ue=D[ie];break}return Y<ue?-1:ue<Y?1:0},u.isEncoding=function(M){switch(String(M).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(M,D){if(!a(M))throw new TypeError('"list" argument must be an Array of Buffers');if(M.length===0)return u.alloc(0);var Y;if(D===void 0)for(D=0,Y=0;Y<M.length;++Y)D+=M[Y].length;var ue=u.allocUnsafe(D),ie=0;for(Y=0;Y<M.length;++Y){var he=M[Y];if(!u.isBuffer(he))throw new TypeError('"list" argument must be an Array of Buffers');he.copy(ue,ie),ie+=he.length}return ue},u.byteLength=_,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var M=this.length;if(M%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var D=0;D<M;D+=2)w(this,D,D+1);return this},u.prototype.swap32=function(){var M=this.length;if(M%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var D=0;D<M;D+=4)w(this,D,D+3),w(this,D+1,D+2);return this},u.prototype.swap64=function(){var M=this.length;if(M%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var D=0;D<M;D+=8)w(this,D,D+7),w(this,D+1,D+6),w(this,D+2,D+5),w(this,D+3,D+4);return this},u.prototype.toString=function(){var M=0|this.length;return M===0?"":arguments.length===0?B(this,0,M):(function(D,Y,ue){var ie=!1;if((Y===void 0||Y<0)&&(Y=0),Y>this.length||((ue===void 0||ue>this.length)&&(ue=this.length),ue<=0)||(ue>>>=0)<=(Y>>>=0))return"";for(D||(D="utf8");;)switch(D){case"hex":return Q(this,Y,ue);case"utf8":case"utf-8":return B(this,Y,ue);case"ascii":return H(this,Y,ue);case"latin1":case"binary":return J(this,Y,ue);case"base64":return W(this,Y,ue);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return re(this,Y,ue);default:if(ie)throw new TypeError("Unknown encoding: "+D);D=(D+"").toLowerCase(),ie=!0}}).apply(this,arguments)},u.prototype.equals=function(M){if(!u.isBuffer(M))throw new TypeError("Argument must be a Buffer");return this===M||u.compare(this,M)===0},u.prototype.inspect=function(){var M="",D=t.INSPECT_MAX_BYTES;return this.length>0&&(M=this.toString("hex",0,D).match(/.{2}/g).join(" "),this.length>D&&(M+=" ... ")),"<Buffer "+M+">"},u.prototype.compare=function(M,D,Y,ue,ie){if(!u.isBuffer(M))throw new TypeError("Argument must be a Buffer");if(D===void 0&&(D=0),Y===void 0&&(Y=M?M.length:0),ue===void 0&&(ue=0),ie===void 0&&(ie=this.length),D<0||Y>M.length||ue<0||ie>this.length)throw new RangeError("out of range index");if(ue>=ie&&D>=Y)return 0;if(ue>=ie)return-1;if(D>=Y)return 1;if(D>>>=0,Y>>>=0,ue>>>=0,ie>>>=0,this===M)return 0;for(var he=ie-ue,Se=Y-D,Fe=Math.min(he,Se),ge=this.slice(ue,ie),Ee=M.slice(D,Y),je=0;je<Fe;++je)if(ge[je]!==Ee[je]){he=ge[je],Se=Ee[je];break}return he<Se?-1:Se<he?1:0},u.prototype.includes=function(M,D,Y){return this.indexOf(M,D,Y)!==-1},u.prototype.indexOf=function(M,D,Y){return O(this,M,D,Y,!0)},u.prototype.lastIndexOf=function(M,D,Y){return O(this,M,D,Y,!1)},u.prototype.write=function(M,D,Y,ue){if(D===void 0)ue="utf8",Y=this.length,D=0;else if(Y===void 0&&typeof D=="string")ue=D,Y=this.length,D=0;else{if(!isFinite(D))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");D|=0,isFinite(Y)?(Y|=0,ue===void 0&&(ue="utf8")):(ue=Y,Y=void 0)}var ie=this.length-D;if((Y===void 0||Y>ie)&&(Y=ie),M.length>0&&(Y<0||D<0)||D>this.length)throw new RangeError("Attempt to write outside buffer bounds");ue||(ue="utf8");for(var he=!1;;)switch(ue){case"hex":return E(this,M,D,Y);case"utf8":case"utf-8":return T(this,M,D,Y);case"ascii":return A(this,M,D,Y);case"latin1":case"binary":return j(this,M,D,Y);case"base64":return N(this,M,D,Y);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $(this,M,D,Y);default:if(he)throw new TypeError("Unknown encoding: "+ue);ue=(""+ue).toLowerCase(),he=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var V=4096;function H(M,D,Y){var ue="";Y=Math.min(M.length,Y);for(var ie=D;ie<Y;++ie)ue+=String.fromCharCode(127&M[ie]);return ue}function J(M,D,Y){var ue="";Y=Math.min(M.length,Y);for(var ie=D;ie<Y;++ie)ue+=String.fromCharCode(M[ie]);return ue}function Q(M,D,Y){var ue=M.length;(!D||D<0)&&(D=0),(!Y||Y<0||Y>ue)&&(Y=ue);for(var ie="",he=D;he<Y;++he)ie+=le(M[he]);return ie}function re(M,D,Y){for(var ue=M.slice(D,Y),ie="",he=0;he<ue.length;he+=2)ie+=String.fromCharCode(ue[he]+256*ue[he+1]);return ie}function ae(M,D,Y){if(M%1!=0||M<0)throw new RangeError("offset is not uint");if(M+D>Y)throw new RangeError("Trying to access beyond buffer length")}function se(M,D,Y,ue,ie,he){if(!u.isBuffer(M))throw new TypeError('"buffer" argument must be a Buffer instance');if(D>ie||D<he)throw new RangeError('"value" argument is out of bounds');if(Y+ue>M.length)throw new RangeError("Index out of range")}function oe(M,D,Y,ue){D<0&&(D=65535+D+1);for(var ie=0,he=Math.min(M.length-Y,2);ie<he;++ie)M[Y+ie]=(D&255<<8*(ue?ie:1-ie))>>>8*(ue?ie:1-ie)}function K(M,D,Y,ue){D<0&&(D=4294967295+D+1);for(var ie=0,he=Math.min(M.length-Y,4);ie<he;++ie)M[Y+ie]=D>>>8*(ue?ie:3-ie)&255}function G(M,D,Y,ue,ie,he){if(Y+ue>M.length)throw new RangeError("Index out of range");if(Y<0)throw new RangeError("Index out of range")}function z(M,D,Y,ue,ie){return ie||G(M,0,Y,4),o.write(M,D,Y,ue,23,4),Y+4}function ne(M,D,Y,ue,ie){return ie||G(M,0,Y,8),o.write(M,D,Y,ue,52,8),Y+8}u.prototype.slice=function(M,D){var Y,ue=this.length;if(M=~~M,D=D===void 0?ue:~~D,M<0?(M+=ue)<0&&(M=0):M>ue&&(M=ue),D<0?(D+=ue)<0&&(D=0):D>ue&&(D=ue),D<M&&(D=M),u.TYPED_ARRAY_SUPPORT)(Y=this.subarray(M,D)).__proto__=u.prototype;else{var ie=D-M;Y=new u(ie,void 0);for(var he=0;he<ie;++he)Y[he]=this[he+M]}return Y},u.prototype.readUIntLE=function(M,D,Y){M|=0,D|=0,Y||ae(M,D,this.length);for(var ue=this[M],ie=1,he=0;++he<D&&(ie*=256);)ue+=this[M+he]*ie;return ue},u.prototype.readUIntBE=function(M,D,Y){M|=0,D|=0,Y||ae(M,D,this.length);for(var ue=this[M+--D],ie=1;D>0&&(ie*=256);)ue+=this[M+--D]*ie;return ue},u.prototype.readUInt8=function(M,D){return D||ae(M,1,this.length),this[M]},u.prototype.readUInt16LE=function(M,D){return D||ae(M,2,this.length),this[M]|this[M+1]<<8},u.prototype.readUInt16BE=function(M,D){return D||ae(M,2,this.length),this[M]<<8|this[M+1]},u.prototype.readUInt32LE=function(M,D){return D||ae(M,4,this.length),(this[M]|this[M+1]<<8|this[M+2]<<16)+16777216*this[M+3]},u.prototype.readUInt32BE=function(M,D){return D||ae(M,4,this.length),16777216*this[M]+(this[M+1]<<16|this[M+2]<<8|this[M+3])},u.prototype.readIntLE=function(M,D,Y){M|=0,D|=0,Y||ae(M,D,this.length);for(var ue=this[M],ie=1,he=0;++he<D&&(ie*=256);)ue+=this[M+he]*ie;return ue>=(ie*=128)&&(ue-=Math.pow(2,8*D)),ue},u.prototype.readIntBE=function(M,D,Y){M|=0,D|=0,Y||ae(M,D,this.length);for(var ue=D,ie=1,he=this[M+--ue];ue>0&&(ie*=256);)he+=this[M+--ue]*ie;return he>=(ie*=128)&&(he-=Math.pow(2,8*D)),he},u.prototype.readInt8=function(M,D){return D||ae(M,1,this.length),128&this[M]?-1*(255-this[M]+1):this[M]},u.prototype.readInt16LE=function(M,D){D||ae(M,2,this.length);var Y=this[M]|this[M+1]<<8;return 32768&Y?4294901760|Y:Y},u.prototype.readInt16BE=function(M,D){D||ae(M,2,this.length);var Y=this[M+1]|this[M]<<8;return 32768&Y?4294901760|Y:Y},u.prototype.readInt32LE=function(M,D){return D||ae(M,4,this.length),this[M]|this[M+1]<<8|this[M+2]<<16|this[M+3]<<24},u.prototype.readInt32BE=function(M,D){return D||ae(M,4,this.length),this[M]<<24|this[M+1]<<16|this[M+2]<<8|this[M+3]},u.prototype.readFloatLE=function(M,D){return D||ae(M,4,this.length),o.read(this,M,!0,23,4)},u.prototype.readFloatBE=function(M,D){return D||ae(M,4,this.length),o.read(this,M,!1,23,4)},u.prototype.readDoubleLE=function(M,D){return D||ae(M,8,this.length),o.read(this,M,!0,52,8)},u.prototype.readDoubleBE=function(M,D){return D||ae(M,8,this.length),o.read(this,M,!1,52,8)},u.prototype.writeUIntLE=function(M,D,Y,ue){M=+M,D|=0,Y|=0,ue||se(this,M,D,Y,Math.pow(2,8*Y)-1,0);var ie=1,he=0;for(this[D]=255&M;++he<Y&&(ie*=256);)this[D+he]=M/ie&255;return D+Y},u.prototype.writeUIntBE=function(M,D,Y,ue){M=+M,D|=0,Y|=0,ue||se(this,M,D,Y,Math.pow(2,8*Y)-1,0);var ie=Y-1,he=1;for(this[D+ie]=255&M;--ie>=0&&(he*=256);)this[D+ie]=M/he&255;return D+Y},u.prototype.writeUInt8=function(M,D,Y){return M=+M,D|=0,Y||se(this,M,D,1,255,0),u.TYPED_ARRAY_SUPPORT||(M=Math.floor(M)),this[D]=255&M,D+1},u.prototype.writeUInt16LE=function(M,D,Y){return M=+M,D|=0,Y||se(this,M,D,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[D]=255&M,this[D+1]=M>>>8):oe(this,M,D,!0),D+2},u.prototype.writeUInt16BE=function(M,D,Y){return M=+M,D|=0,Y||se(this,M,D,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[D]=M>>>8,this[D+1]=255&M):oe(this,M,D,!1),D+2},u.prototype.writeUInt32LE=function(M,D,Y){return M=+M,D|=0,Y||se(this,M,D,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[D+3]=M>>>24,this[D+2]=M>>>16,this[D+1]=M>>>8,this[D]=255&M):K(this,M,D,!0),D+4},u.prototype.writeUInt32BE=function(M,D,Y){return M=+M,D|=0,Y||se(this,M,D,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[D]=M>>>24,this[D+1]=M>>>16,this[D+2]=M>>>8,this[D+3]=255&M):K(this,M,D,!1),D+4},u.prototype.writeIntLE=function(M,D,Y,ue){if(M=+M,D|=0,!ue){var ie=Math.pow(2,8*Y-1);se(this,M,D,Y,ie-1,-ie)}var he=0,Se=1,Fe=0;for(this[D]=255&M;++he<Y&&(Se*=256);)M<0&&Fe===0&&this[D+he-1]!==0&&(Fe=1),this[D+he]=(M/Se>>0)-Fe&255;return D+Y},u.prototype.writeIntBE=function(M,D,Y,ue){if(M=+M,D|=0,!ue){var ie=Math.pow(2,8*Y-1);se(this,M,D,Y,ie-1,-ie)}var he=Y-1,Se=1,Fe=0;for(this[D+he]=255&M;--he>=0&&(Se*=256);)M<0&&Fe===0&&this[D+he+1]!==0&&(Fe=1),this[D+he]=(M/Se>>0)-Fe&255;return D+Y},u.prototype.writeInt8=function(M,D,Y){return M=+M,D|=0,Y||se(this,M,D,1,127,-128),u.TYPED_ARRAY_SUPPORT||(M=Math.floor(M)),M<0&&(M=255+M+1),this[D]=255&M,D+1},u.prototype.writeInt16LE=function(M,D,Y){return M=+M,D|=0,Y||se(this,M,D,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[D]=255&M,this[D+1]=M>>>8):oe(this,M,D,!0),D+2},u.prototype.writeInt16BE=function(M,D,Y){return M=+M,D|=0,Y||se(this,M,D,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[D]=M>>>8,this[D+1]=255&M):oe(this,M,D,!1),D+2},u.prototype.writeInt32LE=function(M,D,Y){return M=+M,D|=0,Y||se(this,M,D,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[D]=255&M,this[D+1]=M>>>8,this[D+2]=M>>>16,this[D+3]=M>>>24):K(this,M,D,!0),D+4},u.prototype.writeInt32BE=function(M,D,Y){return M=+M,D|=0,Y||se(this,M,D,4,2147483647,-2147483648),M<0&&(M=4294967295+M+1),u.TYPED_ARRAY_SUPPORT?(this[D]=M>>>24,this[D+1]=M>>>16,this[D+2]=M>>>8,this[D+3]=255&M):K(this,M,D,!1),D+4},u.prototype.writeFloatLE=function(M,D,Y){return z(this,M,D,!0,Y)},u.prototype.writeFloatBE=function(M,D,Y){return z(this,M,D,!1,Y)},u.prototype.writeDoubleLE=function(M,D,Y){return ne(this,M,D,!0,Y)},u.prototype.writeDoubleBE=function(M,D,Y){return ne(this,M,D,!1,Y)},u.prototype.copy=function(M,D,Y,ue){if(Y||(Y=0),ue||ue===0||(ue=this.length),D>=M.length&&(D=M.length),D||(D=0),ue>0&&ue<Y&&(ue=Y),ue===Y||M.length===0||this.length===0)return 0;if(D<0)throw new RangeError("targetStart out of bounds");if(Y<0||Y>=this.length)throw new RangeError("sourceStart out of bounds");if(ue<0)throw new RangeError("sourceEnd out of bounds");ue>this.length&&(ue=this.length),M.length-D<ue-Y&&(ue=M.length-D+Y);var ie,he=ue-Y;if(this===M&&Y<D&&D<ue)for(ie=he-1;ie>=0;--ie)M[ie+D]=this[ie+Y];else if(he<1e3||!u.TYPED_ARRAY_SUPPORT)for(ie=0;ie<he;++ie)M[ie+D]=this[ie+Y];else Uint8Array.prototype.set.call(M,this.subarray(Y,Y+he),D);return he},u.prototype.fill=function(M,D,Y,ue){if(typeof M=="string"){if(typeof D=="string"?(ue=D,D=0,Y=this.length):typeof Y=="string"&&(ue=Y,Y=this.length),M.length===1){var ie=M.charCodeAt(0);ie<256&&(M=ie)}if(ue!==void 0&&typeof ue!="string")throw new TypeError("encoding must be a string");if(typeof ue=="string"&&!u.isEncoding(ue))throw new TypeError("Unknown encoding: "+ue)}else typeof M=="number"&&(M&=255);if(D<0||this.length<D||this.length<Y)throw new RangeError("Out of range index");if(Y<=D)return this;var he;if(D>>>=0,Y=Y===void 0?this.length:Y>>>0,M||(M=0),typeof M=="number")for(he=D;he<Y;++he)this[he]=M;else{var Se=u.isBuffer(M)?M:ce(new u(M,ue).toString()),Fe=Se.length;for(he=0;he<Y-D;++he)this[he+D]=Se[he%Fe]}return this};var X=/[^+\/0-9A-Za-z-_]/g;function le(M){return M<16?"0"+M.toString(16):M.toString(16)}function ce(M,D){var Y;D=D||1/0;for(var ue=M.length,ie=null,he=[],Se=0;Se<ue;++Se){if((Y=M.charCodeAt(Se))>55295&&Y<57344){if(!ie){if(Y>56319){(D-=3)>-1&&he.push(239,191,189);continue}if(Se+1===ue){(D-=3)>-1&&he.push(239,191,189);continue}ie=Y;continue}if(Y<56320){(D-=3)>-1&&he.push(239,191,189),ie=Y;continue}Y=65536+(ie-55296<<10|Y-56320)}else ie&&(D-=3)>-1&&he.push(239,191,189);if(ie=null,Y<128){if((D-=1)<0)break;he.push(Y)}else if(Y<2048){if((D-=2)<0)break;he.push(Y>>6|192,63&Y|128)}else if(Y<65536){if((D-=3)<0)break;he.push(Y>>12|224,Y>>6&63|128,63&Y|128)}else{if(!(Y<1114112))throw new Error("Invalid code point");if((D-=4)<0)break;he.push(Y>>18|240,Y>>12&63|128,Y>>6&63|128,63&Y|128)}}return he}function de(M){return i.toByteArray(function(D){if((D=function(Y){return Y.trim?Y.trim():Y.replace(/^\s+|\s+$/g,"")}(D).replace(X,"")).length<2)return"";for(;D.length%4!=0;)D+="=";return D}(M))}function be(M,D,Y,ue){for(var ie=0;ie<ue&&!(ie+Y>=D.length||ie>=M.length);++ie)D[ie+Y]=M[ie];return ie}}).call(this,n(0))},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(w){if(n===setTimeout)return setTimeout(w,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(w,0);try{return n(w,0)}catch{try{return n.call(null,w,0)}catch{return n.call(this,w,0)}}}(function(){try{n=typeof setTimeout=="function"?setTimeout:o}catch{n=o}try{r=typeof clearTimeout=="function"?clearTimeout:a}catch{r=a}})();var c,u=[],h=!1,p=-1;function v(){h&&c&&(h=!1,c.length?u=c.concat(u):p=-1,u.length&&b())}function b(){if(!h){var w=s(v);h=!0;for(var O=u.length;O;){for(c=u,u=[];++p<O;)c&&c[p].run();p=-1,O=u.length}c=null,h=!1,function(P){if(r===clearTimeout)return clearTimeout(P);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(P);try{r(P)}catch{try{return r.call(null,P)}catch{return r.call(this,P)}}}(w)}}function x(w,O){this.fun=w,this.array=O}function _(){}i.nextTick=function(w){var O=new Array(arguments.length-1);if(arguments.length>1)for(var P=1;P<arguments.length;P++)O[P-1]=arguments[P];u.push(new x(w,O)),u.length!==1||h||s(b)},x.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=_,i.addListener=_,i.once=_,i.off=_,i.removeListener=_,i.removeAllListeners=_,i.emit=_,i.prependListener=_,i.prependOnceListener=_,i.listeners=function(w){return[]},i.binding=function(w){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(w){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){(function(r){function i(o){return Object.prototype.toString.call(o)}t.isArray=function(o){return Array.isArray?Array.isArray(o):i(o)==="[object Array]"},t.isBoolean=function(o){return typeof o=="boolean"},t.isNull=function(o){return o===null},t.isNullOrUndefined=function(o){return o==null},t.isNumber=function(o){return typeof o=="number"},t.isString=function(o){return typeof o=="string"},t.isSymbol=function(o){return typeof o=="symbol"},t.isUndefined=function(o){return o===void 0},t.isRegExp=function(o){return i(o)==="[object RegExp]"},t.isObject=function(o){return typeof o=="object"&&o!==null},t.isDate=function(o){return i(o)==="[object Date]"},t.isError=function(o){return i(o)==="[object Error]"||o instanceof Error},t.isFunction=function(o){return typeof o=="function"},t.isPrimitive=function(o){return o===null||typeof o=="boolean"||typeof o=="number"||typeof o=="string"||typeof o=="symbol"||o===void 0},t.isBuffer=r.isBuffer}).call(this,n(3).Buffer)},function(e,t,n){(function(r){!r.version||r.version.indexOf("v0.")===0||r.version.indexOf("v1.")===0&&r.version.indexOf("v1.8.")!==0?e.exports={nextTick:function(i,o,a,s){if(typeof i!="function")throw new TypeError('"callback" argument must be a function');var c,u,h=arguments.length;switch(h){case 0:case 1:return r.nextTick(i);case 2:return r.nextTick(function(){i.call(null,o)});case 3:return r.nextTick(function(){i.call(null,o,a)});case 4:return r.nextTick(function(){i.call(null,o,a,s)});default:for(c=new Array(h-1),u=0;u<c.length;)c[u++]=arguments[u];return r.nextTick(function(){i.apply(null,c)})}}}:e.exports=r}).call(this,n(4))},function(e,t,n){var r=n(3),i=r.Buffer;function o(s,c){for(var u in s)c[u]=s[u]}function a(s,c,u){return i(s,c,u)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a),o(i,a),a.from=function(s,c,u){if(typeof s=="number")throw new TypeError("Argument must not be a number");return i(s,c,u)},a.alloc=function(s,c,u){if(typeof s!="number")throw new TypeError("Argument must be a number");var h=i(s);return c!==void 0?typeof u=="string"?h.fill(c,u):h.fill(c):h.fill(0),h},a.allocUnsafe=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return i(s)},a.allocUnsafeSlow=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(s)}},function(e,t,n){var r=n(17)(Object,"create");e.exports=r},function(e,t,n){var r=n(31);e.exports=function(i,o){for(var a=i.length;a--;)if(r(i[a][0],o))return a;return-1}},function(e,t,n){var r=n(96);e.exports=function(i,o){var a=i.__data__;return r(o)?a[typeof o=="string"?"string":"hash"]:a.map}},function(e,t,n){(function(r){var i=r!==void 0&&r||typeof self<"u"&&self||window,o=Function.prototype.apply;function a(s,c){this._id=s,this._clearFn=c}t.setTimeout=function(){return new a(o.call(setTimeout,i,arguments),clearTimeout)},t.setInterval=function(){return new a(o.call(setInterval,i,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(s){s&&s.close()},a.prototype.unref=a.prototype.ref=function(){},a.prototype.close=function(){this._clearFn.call(i,this._id)},t.enroll=function(s,c){clearTimeout(s._idleTimeoutId),s._idleTimeout=c},t.unenroll=function(s){clearTimeout(s._idleTimeoutId),s._idleTimeout=-1},t._unrefActive=t.active=function(s){clearTimeout(s._idleTimeoutId);var c=s._idleTimeout;c>=0&&(s._idleTimeoutId=setTimeout(function(){s._onTimeout&&s._onTimeout()},c))},n(35),t.setImmediate=typeof self<"u"&&self.setImmediate||r!==void 0&&r.setImmediate||this&&this.setImmediate,t.clearImmediate=typeof self<"u"&&self.clearImmediate||r!==void 0&&r.clearImmediate||this&&this.clearImmediate}).call(this,n(0))},function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(a){return typeof a=="function"}function i(a){return typeof a=="object"&&a!==null}function o(a){return a===void 0}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(a){if(!function(s){return typeof s=="number"}(a)||a<0||isNaN(a))throw TypeError("n must be a positive number");return this._maxListeners=a,this},n.prototype.emit=function(a){var s,c,u,h,p,v;if(this._events||(this._events={}),a==="error"&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if((s=arguments[1])instanceof Error)throw s;var b=new Error('Uncaught, unspecified "error" event. ('+s+")");throw b.context=s,b}if(o(c=this._events[a]))return!1;if(r(c))switch(arguments.length){case 1:c.call(this);break;case 2:c.call(this,arguments[1]);break;case 3:c.call(this,arguments[1],arguments[2]);break;default:h=Array.prototype.slice.call(arguments,1),c.apply(this,h)}else if(i(c))for(h=Array.prototype.slice.call(arguments,1),u=(v=c.slice()).length,p=0;p<u;p++)v[p].apply(this,h);return!0},n.prototype.addListener=function(a,s){var c;if(!r(s))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",a,r(s.listener)?s.listener:s),this._events[a]?i(this._events[a])?this._events[a].push(s):this._events[a]=[this._events[a],s]:this._events[a]=s,i(this._events[a])&&!this._events[a].warned&&(c=o(this._maxListeners)?n.defaultMaxListeners:this._maxListeners)&&c>0&&this._events[a].length>c&&(this._events[a].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[a].length),typeof console.trace=="function"&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(a,s){if(!r(s))throw TypeError("listener must be a function");var c=!1;function u(){this.removeListener(a,u),c||(c=!0,s.apply(this,arguments))}return u.listener=s,this.on(a,u),this},n.prototype.removeListener=function(a,s){var c,u,h,p;if(!r(s))throw TypeError("listener must be a function");if(!this._events||!this._events[a])return this;if(h=(c=this._events[a]).length,u=-1,c===s||r(c.listener)&&c.listener===s)delete this._events[a],this._events.removeListener&&this.emit("removeListener",a,s);else if(i(c)){for(p=h;p-- >0;)if(c[p]===s||c[p].listener&&c[p].listener===s){u=p;break}if(u<0)return this;c.length===1?(c.length=0,delete this._events[a]):c.splice(u,1),this._events.removeListener&&this.emit("removeListener",a,s)}return this},n.prototype.removeAllListeners=function(a){var s,c;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[a]&&delete this._events[a],this;if(arguments.length===0){for(s in this._events)s!=="removeListener"&&this.removeAllListeners(s);return this.removeAllListeners("removeListener"),this._events={},this}if(r(c=this._events[a]))this.removeListener(a,c);else if(c)for(;c.length;)this.removeListener(a,c[c.length-1]);return delete this._events[a],this},n.prototype.listeners=function(a){return this._events&&this._events[a]?r(this._events[a])?[this._events[a]]:this._events[a].slice():[]},n.prototype.listenerCount=function(a){if(this._events){var s=this._events[a];if(r(s))return 1;if(s)return s.length}return 0},n.listenerCount=function(a,s){return a.listenerCount(s)}},function(e,t,n){(t=e.exports=n(23)).Stream=t,t.Readable=t,t.Writable=n(14),t.Duplex=n(1),t.Transform=n(27),t.PassThrough=n(45)},function(e,t,n){(function(r,i,o){var a=n(6);function s(B){var V=this;this.next=null,this.entry=null,this.finish=function(){(function(H,J,Q){var re=H.entry;for(H.entry=null;re;){var ae=re.callback;J.pendingcb--,ae(void 0),re=re.next}J.corkedRequestsFree?J.corkedRequestsFree.next=H:J.corkedRequestsFree=H})(V,B)}}e.exports=E;var c,u=!r.browser&&["v0.10","v0.9."].indexOf(r.version.slice(0,5))>-1?i:a.nextTick;E.WritableState=P;var h=n(5);h.inherits=n(2);var p,v={deprecate:n(44)},b=n(24),x=n(7).Buffer,_=o.Uint8Array||function(){},w=n(25);function O(){}function P(B,V){c=c||n(1),B=B||{};var H=V instanceof c;this.objectMode=!!B.objectMode,H&&(this.objectMode=this.objectMode||!!B.writableObjectMode);var J=B.highWaterMark,Q=B.writableHighWaterMark,re=this.objectMode?16:16384;this.highWaterMark=J||J===0?J:H&&(Q||Q===0)?Q:re,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var ae=B.decodeStrings===!1;this.decodeStrings=!ae,this.defaultEncoding=B.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(se){(function(oe,K){var G=oe._writableState,z=G.sync,ne=G.writecb;if(function(le){le.writing=!1,le.writecb=null,le.length-=le.writelen,le.writelen=0}(G),K)(function(le,ce,de,be,M){--ce.pendingcb,de?(a.nextTick(M,be),a.nextTick(W,le,ce),le._writableState.errorEmitted=!0,le.emit("error",be)):(M(be),le._writableState.errorEmitted=!0,le.emit("error",be),W(le,ce))})(oe,G,z,K,ne);else{var X=N(G);X||G.corked||G.bufferProcessing||!G.bufferedRequest||j(oe,G),z?u(A,oe,G,X,ne):A(oe,G,X,ne)}})(V,se)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new s(this)}function E(B){if(c=c||n(1),!(p.call(E,this)||this instanceof c))return new E(B);this._writableState=new P(B,this),this.writable=!0,B&&(typeof B.write=="function"&&(this._write=B.write),typeof B.writev=="function"&&(this._writev=B.writev),typeof B.destroy=="function"&&(this._destroy=B.destroy),typeof B.final=="function"&&(this._final=B.final)),b.call(this)}function T(B,V,H,J,Q,re,ae){V.writelen=J,V.writecb=ae,V.writing=!0,V.sync=!0,H?B._writev(Q,V.onwrite):B._write(Q,re,V.onwrite),V.sync=!1}function A(B,V,H,J){H||function(Q,re){re.length===0&&re.needDrain&&(re.needDrain=!1,Q.emit("drain"))}(B,V),V.pendingcb--,J(),W(B,V)}function j(B,V){V.bufferProcessing=!0;var H=V.bufferedRequest;if(B._writev&&H&&H.next){var J=V.bufferedRequestCount,Q=new Array(J),re=V.corkedRequestsFree;re.entry=H;for(var ae=0,se=!0;H;)Q[ae]=H,H.isBuf||(se=!1),H=H.next,ae+=1;Q.allBuffers=se,T(B,V,!0,V.length,Q,"",re.finish),V.pendingcb++,V.lastBufferedRequest=null,re.next?(V.corkedRequestsFree=re.next,re.next=null):V.corkedRequestsFree=new s(V),V.bufferedRequestCount=0}else{for(;H;){var oe=H.chunk,K=H.encoding,G=H.callback;if(T(B,V,!1,V.objectMode?1:oe.length,oe,K,G),H=H.next,V.bufferedRequestCount--,V.writing)break}H===null&&(V.lastBufferedRequest=null)}V.bufferedRequest=H,V.bufferProcessing=!1}function N(B){return B.ending&&B.length===0&&B.bufferedRequest===null&&!B.finished&&!B.writing}function $(B,V){B._final(function(H){V.pendingcb--,H&&B.emit("error",H),V.prefinished=!0,B.emit("prefinish"),W(B,V)})}function W(B,V){var H=N(V);return H&&(function(J,Q){Q.prefinished||Q.finalCalled||(typeof J._final=="function"?(Q.pendingcb++,Q.finalCalled=!0,a.nextTick($,J,Q)):(Q.prefinished=!0,J.emit("prefinish")))}(B,V),V.pendingcb===0&&(V.finished=!0,B.emit("finish"))),H}h.inherits(E,b),P.prototype.getBuffer=function(){for(var B=this.bufferedRequest,V=[];B;)V.push(B),B=B.next;return V},function(){try{Object.defineProperty(P.prototype,"buffer",{get:v.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(E,Symbol.hasInstance,{value:function(B){return!!p.call(this,B)||this===E&&B&&B._writableState instanceof P}})):p=function(B){return B instanceof this},E.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},E.prototype.write=function(B,V,H){var J=this._writableState,Q=!1,re=!J.objectMode&&function(ae){return x.isBuffer(ae)||ae instanceof _}(B);return re&&!x.isBuffer(B)&&(B=function(ae){return x.from(ae)}(B)),typeof V=="function"&&(H=V,V=null),re?V="buffer":V||(V=J.defaultEncoding),typeof H!="function"&&(H=O),J.ended?function(ae,se){var oe=new Error("write after end");ae.emit("error",oe),a.nextTick(se,oe)}(this,H):(re||function(ae,se,oe,K){var G=!0,z=!1;return oe===null?z=new TypeError("May not write null values to stream"):typeof oe=="string"||oe===void 0||se.objectMode||(z=new TypeError("Invalid non-string/buffer chunk")),z&&(ae.emit("error",z),a.nextTick(K,z),G=!1),G}(this,J,B,H))&&(J.pendingcb++,Q=function(ae,se,oe,K,G,z){if(!oe){var ne=function(de,be,M){return de.objectMode||de.decodeStrings===!1||typeof be!="string"||(be=x.from(be,M)),be}(se,K,G);K!==ne&&(oe=!0,G="buffer",K=ne)}var X=se.objectMode?1:K.length;se.length+=X;var le=se.length<se.highWaterMark;if(le||(se.needDrain=!0),se.writing||se.corked){var ce=se.lastBufferedRequest;se.lastBufferedRequest={chunk:K,encoding:G,isBuf:oe,callback:z,next:null},ce?ce.next=se.lastBufferedRequest:se.bufferedRequest=se.lastBufferedRequest,se.bufferedRequestCount+=1}else T(ae,se,!1,X,K,G,z);return le}(this,J,re,B,V,H)),Q},E.prototype.cork=function(){this._writableState.corked++},E.prototype.uncork=function(){var B=this._writableState;B.corked&&(B.corked--,B.writing||B.corked||B.finished||B.bufferProcessing||!B.bufferedRequest||j(this,B))},E.prototype.setDefaultEncoding=function(B){if(typeof B=="string"&&(B=B.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((B+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+B);return this._writableState.defaultEncoding=B,this},Object.defineProperty(E.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),E.prototype._write=function(B,V,H){H(new Error("_write() is not implemented"))},E.prototype._writev=null,E.prototype.end=function(B,V,H){var J=this._writableState;typeof B=="function"?(H=B,B=null,V=null):typeof V=="function"&&(H=V,V=null),B!=null&&this.write(B,V),J.corked&&(J.corked=1,this.uncork()),J.ending||J.finished||function(Q,re,ae){re.ending=!0,W(Q,re),ae&&(re.finished?a.nextTick(ae):Q.once("finish",ae)),re.ended=!0,Q.writable=!1}(this,J,H)},Object.defineProperty(E.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(B){this._writableState&&(this._writableState.destroyed=B)}}),E.prototype.destroy=w.destroy,E.prototype._undestroy=w.undestroy,E.prototype._destroy=function(B,V){this.end(),V(B)}}).call(this,n(4),n(11).setImmediate,n(0))},function(e,t,n){(function(r,i,o){e.exports=function a(s,c,u){function h(b,x){if(!c[b]){if(!s[b]){var _=typeof _dereq_=="function"&&_dereq_;if(!x&&_)return _(b,!0);if(p)return p(b,!0);var w=new Error("Cannot find module '"+b+"'");throw w.code="MODULE_NOT_FOUND",w}var O=c[b]={exports:{}};s[b][0].call(O.exports,function(P){return h(s[b][1][P]||P)},O,O.exports,a,s,c,u)}return c[b].exports}for(var p=typeof _dereq_=="function"&&_dereq_,v=0;v<u.length;v++)h(u[v]);return h}({1:[function(a,s,c){s.exports=function(u){var h=u._SomePromiseArray;function p(v){var b=new h(v),x=b.promise();return b.setHowMany(1),b.setUnwrap(),b.init(),x}u.any=function(v){return p(v)},u.prototype.any=function(){return p(this)}}},{}],2:[function(a,s,c){var u;try{throw new Error}catch(O){u=O}var h=a("./schedule"),p=a("./queue"),v=a("./util");function b(){this._customScheduler=!1,this._isTickUsed=!1,this._lateQueue=new p(16),this._normalQueue=new p(16),this._haveDrainedQueues=!1,this._trampolineEnabled=!0;var O=this;this.drainQueues=function(){O._drainQueues()},this._schedule=h}function x(O,P,E){this._lateQueue.push(O,P,E),this._queueTick()}function _(O,P,E){this._normalQueue.push(O,P,E),this._queueTick()}function w(O){this._normalQueue._pushOne(O),this._queueTick()}b.prototype.setScheduler=function(O){var P=this._schedule;return this._schedule=O,this._customScheduler=!0,P},b.prototype.hasCustomScheduler=function(){return this._customScheduler},b.prototype.enableTrampoline=function(){this._trampolineEnabled=!0},b.prototype.disableTrampolineIfNecessary=function(){v.hasDevTools&&(this._trampolineEnabled=!1)},b.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues},b.prototype.fatalError=function(O,P){P?(r.stderr.write("Fatal "+(O instanceof Error?O.stack:O)+`
`),r.exit(2)):this.throwLater(O)},b.prototype.throwLater=function(O,P){if(arguments.length===1&&(P=O,O=function(){throw P}),typeof setTimeout<"u")setTimeout(function(){O(P)},0);else try{this._schedule(function(){O(P)})}catch{throw new Error(`No async scheduler available
See http://goo.gl/MqrFmX
`)}},v.hasDevTools?(b.prototype.invokeLater=function(O,P,E){this._trampolineEnabled?x.call(this,O,P,E):this._schedule(function(){setTimeout(function(){O.call(P,E)},100)})},b.prototype.invoke=function(O,P,E){this._trampolineEnabled?_.call(this,O,P,E):this._schedule(function(){O.call(P,E)})},b.prototype.settlePromises=function(O){this._trampolineEnabled?w.call(this,O):this._schedule(function(){O._settlePromises()})}):(b.prototype.invokeLater=x,b.prototype.invoke=_,b.prototype.settlePromises=w),b.prototype._drainQueue=function(O){for(;O.length()>0;){var P=O.shift();if(typeof P=="function"){var E=O.shift(),T=O.shift();P.call(E,T)}else P._settlePromises()}},b.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)},b.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},b.prototype._reset=function(){this._isTickUsed=!1},s.exports=b,s.exports.firstLineError=u},{"./queue":26,"./schedule":29,"./util":36}],3:[function(a,s,c){s.exports=function(u,h,p,v){var b=!1,x=function(P,E){this._reject(E)},_=function(P,E){E.promiseRejectionQueued=!0,E.bindingPromise._then(x,x,null,this,P)},w=function(P,E){!(50397184&this._bitField)&&this._resolveCallback(E.target)},O=function(P,E){E.promiseRejectionQueued||this._reject(P)};u.prototype.bind=function(P){b||(b=!0,u.prototype._propagateFrom=v.propagateFromFunction(),u.prototype._boundValue=v.boundValueFunction());var E=p(P),T=new u(h);T._propagateFrom(this,1);var A=this._target();if(T._setBoundTo(E),E instanceof u){var j={promiseRejectionQueued:!1,promise:T,target:A,bindingPromise:E};A._then(h,_,void 0,T,j),E._then(w,O,void 0,T,j),T._setOnCancel(E)}else T._resolveCallback(A);return T},u.prototype._setBoundTo=function(P){P!==void 0?(this._bitField=2097152|this._bitField,this._boundTo=P):this._bitField=-2097153&this._bitField},u.prototype._isBound=function(){return(2097152&this._bitField)==2097152},u.bind=function(P,E){return u.resolve(E).bind(P)}}},{}],4:[function(a,s,c){var u;typeof Promise<"u"&&(u=Promise);var h=a("./promise")();h.noConflict=function(){try{Promise===h&&(Promise=u)}catch{}return h},s.exports=h},{"./promise":22}],5:[function(a,s,c){var u=Object.create;if(u){var h=u(null),p=u(null);h[" size"]=p[" size"]=0}s.exports=function(v){var b=a("./util"),x=b.canEvaluate;function _(P){return function(E,T){var A;if(E!=null&&(A=E[T]),typeof A!="function"){var j="Object "+b.classString(E)+" has no method '"+b.toString(T)+"'";throw new v.TypeError(j)}return A}(P,this.pop()).apply(P,this)}function w(P){return P[this]}function O(P){var E=+this;return E<0&&(E=Math.max(0,E+P.length)),P[E]}b.isIdentifier,v.prototype.call=function(P){var E=[].slice.call(arguments,1);return E.push(P),this._then(_,void 0,void 0,E,void 0)},v.prototype.get=function(P){var E;if(typeof P=="number")E=O;else if(x){var T=(void 0)(P);E=T!==null?T:w}else E=w;return this._then(E,void 0,void 0,P,void 0)}}},{"./util":36}],6:[function(a,s,c){s.exports=function(u,h,p,v){var b=a("./util"),x=b.tryCatch,_=b.errorObj,w=u._async;u.prototype.break=u.prototype.cancel=function(){if(!v.cancellation())return this._warn("cancellation is disabled");for(var O=this,P=O;O._isCancellable();){if(!O._cancelBy(P)){P._isFollowing()?P._followee().cancel():P._cancelBranched();break}var E=O._cancellationParent;if(E==null||!E._isCancellable()){O._isFollowing()?O._followee().cancel():O._cancelBranched();break}O._isFollowing()&&O._followee().cancel(),O._setWillBeCancelled(),P=O,O=E}},u.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},u.prototype._enoughBranchesHaveCancelled=function(){return this._branchesRemainingToCancel===void 0||this._branchesRemainingToCancel<=0},u.prototype._cancelBy=function(O){return O===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),!!this._enoughBranchesHaveCancelled()&&(this._invokeOnCancel(),!0))},u.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},u.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),w.invoke(this._cancelPromises,this,void 0))},u.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},u.prototype._unsetOnCancel=function(){this._onCancelField=void 0},u.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},u.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},u.prototype._doInvokeOnCancel=function(O,P){if(b.isArray(O))for(var E=0;E<O.length;++E)this._doInvokeOnCancel(O[E],P);else if(O!==void 0)if(typeof O=="function"){if(!P){var T=x(O).call(this._boundValue());T===_&&(this._attachExtraTrace(T.e),w.throwLater(T.e))}}else O._resultCancelled(this)},u.prototype._invokeOnCancel=function(){var O=this._onCancel();this._unsetOnCancel(),w.invoke(this._doInvokeOnCancel,this,O)},u.prototype._invokeInternalOnCancel=function(){this._isCancellable()&&(this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel())},u.prototype._resultCancelled=function(){this.cancel()}}},{"./util":36}],7:[function(a,s,c){s.exports=function(u){var h=a("./util"),p=a("./es5").keys,v=h.tryCatch,b=h.errorObj;return function(x,_,w){return function(O){var P=w._boundValue();e:for(var E=0;E<x.length;++E){var T=x[E];if(T===Error||T!=null&&T.prototype instanceof Error){if(O instanceof T)return v(_).call(P,O)}else if(typeof T=="function"){var A=v(T).call(P,O);if(A===b)return A;if(A)return v(_).call(P,O)}else if(h.isObject(O)){for(var j=p(T),N=0;N<j.length;++N){var $=j[N];if(T[$]!=O[$])continue e}return v(_).call(P,O)}}return u}}}},{"./es5":13,"./util":36}],8:[function(a,s,c){s.exports=function(u){var h=!1,p=[];function v(){this._trace=new v.CapturedTrace(b())}function b(){var x=p.length-1;if(x>=0)return p[x]}return u.prototype._promiseCreated=function(){},u.prototype._pushContext=function(){},u.prototype._popContext=function(){return null},u._peekContext=u.prototype._peekContext=function(){},v.prototype._pushContext=function(){this._trace!==void 0&&(this._trace._promiseCreated=null,p.push(this._trace))},v.prototype._popContext=function(){if(this._trace!==void 0){var x=p.pop(),_=x._promiseCreated;return x._promiseCreated=null,_}return null},v.CapturedTrace=null,v.create=function(){if(h)return new v},v.deactivateLongStackTraces=function(){},v.activateLongStackTraces=function(){var x=u.prototype._pushContext,_=u.prototype._popContext,w=u._peekContext,O=u.prototype._peekContext,P=u.prototype._promiseCreated;v.deactivateLongStackTraces=function(){u.prototype._pushContext=x,u.prototype._popContext=_,u._peekContext=w,u.prototype._peekContext=O,u.prototype._promiseCreated=P,h=!1},h=!0,u.prototype._pushContext=v.prototype._pushContext,u.prototype._popContext=v.prototype._popContext,u._peekContext=u.prototype._peekContext=b,u.prototype._promiseCreated=function(){var E=this._peekContext();E&&E._promiseCreated==null&&(E._promiseCreated=this)}},v}},{}],9:[function(a,s,c){s.exports=function(u,h){var p,v,b,x=u._getDomain,_=u._async,w=a("./errors").Warning,O=a("./util"),P=O.canAttachTrace,E=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,T=/\((?:timers\.js):\d+:\d+\)/,A=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,j=null,N=null,$=!1,W=O.env("BLUEBIRD_DEBUG")!=0,B=!(O.env("BLUEBIRD_WARNINGS")==0||!W&&!O.env("BLUEBIRD_WARNINGS")),V=!(O.env("BLUEBIRD_LONG_STACK_TRACES")==0||!W&&!O.env("BLUEBIRD_LONG_STACK_TRACES")),H=O.env("BLUEBIRD_W_FORGOTTEN_RETURN")!=0&&(B||!!O.env("BLUEBIRD_W_FORGOTTEN_RETURN"));u.prototype.suppressUnhandledRejections=function(){var ye=this._target();ye._bitField=-1048577&ye._bitField|524288},u.prototype._ensurePossibleRejectionHandled=function(){if(!(524288&this._bitField)){this._setRejectionIsUnhandled();var ye=this;setTimeout(function(){ye._notifyUnhandledRejection()},1)}},u.prototype._notifyUnhandledRejectionIsHandled=function(){Se("rejectionHandled",p,void 0,this)},u.prototype._setReturnedNonUndefined=function(){this._bitField=268435456|this._bitField},u.prototype._returnedNonUndefined=function(){return(268435456&this._bitField)!=0},u.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var ye=this._settledValue();this._setUnhandledRejectionIsNotified(),Se("unhandledRejection",v,ye,this)}},u.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=262144|this._bitField},u.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=-262145&this._bitField},u.prototype._isUnhandledRejectionNotified=function(){return(262144&this._bitField)>0},u.prototype._setRejectionIsUnhandled=function(){this._bitField=1048576|this._bitField},u.prototype._unsetRejectionIsUnhandled=function(){this._bitField=-1048577&this._bitField,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},u.prototype._isRejectionUnhandled=function(){return(1048576&this._bitField)>0},u.prototype._warn=function(ye,we,Ae){return Y(ye,we,Ae||this)},u.onPossiblyUnhandledRejection=function(ye){var we=x();v=typeof ye=="function"?we===null?ye:O.domainBind(we,ye):void 0},u.onUnhandledRejectionHandled=function(ye){var we=x();p=typeof ye=="function"?we===null?ye:O.domainBind(we,ye):void 0};var J=function(){};u.longStackTraces=function(){if(_.haveItemsQueued()&&!qe.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created
See http://goo.gl/MqrFmX
`);if(!qe.longStackTraces&&ge()){var ye=u.prototype._captureStackTrace,we=u.prototype._attachExtraTrace;qe.longStackTraces=!0,J=function(){if(_.haveItemsQueued()&&!qe.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created
See http://goo.gl/MqrFmX
`);u.prototype._captureStackTrace=ye,u.prototype._attachExtraTrace=we,h.deactivateLongStackTraces(),_.enableTrampoline(),qe.longStackTraces=!1},u.prototype._captureStackTrace=M,u.prototype._attachExtraTrace=D,h.activateLongStackTraces(),_.disableTrampolineIfNecessary()}},u.hasLongStackTraces=function(){return qe.longStackTraces&&ge()};var Q=function(){try{if(typeof CustomEvent=="function"){var ye=new CustomEvent("CustomEvent");return O.global.dispatchEvent(ye),function(we,Ae){var ke=new CustomEvent(we.toLowerCase(),{detail:Ae,cancelable:!0});return!O.global.dispatchEvent(ke)}}return typeof Event=="function"?(ye=new Event("CustomEvent"),O.global.dispatchEvent(ye),function(we,Ae){var ke=new Event(we.toLowerCase(),{cancelable:!0});return ke.detail=Ae,!O.global.dispatchEvent(ke)}):((ye=document.createEvent("CustomEvent")).initCustomEvent("testingtheevent",!1,!0,{}),O.global.dispatchEvent(ye),function(we,Ae){var ke=document.createEvent("CustomEvent");return ke.initCustomEvent(we.toLowerCase(),!1,!0,Ae),!O.global.dispatchEvent(ke)})}catch{}return function(){return!1}}(),re=O.isNode?function(){return r.emit.apply(r,arguments)}:O.global?function(ye){var we="on"+ye.toLowerCase(),Ae=O.global[we];return!!Ae&&(Ae.apply(O.global,[].slice.call(arguments,1)),!0)}:function(){return!1};function ae(ye,we){return{promise:we}}var se={promiseCreated:ae,promiseFulfilled:ae,promiseRejected:ae,promiseResolved:ae,promiseCancelled:ae,promiseChained:function(ye,we,Ae){return{promise:we,child:Ae}},warning:function(ye,we){return{warning:we}},unhandledRejection:function(ye,we,Ae){return{reason:we,promise:Ae}},rejectionHandled:ae},oe=function(ye){var we=!1;try{we=re.apply(null,arguments)}catch(ke){_.throwLater(ke),we=!0}var Ae=!1;try{Ae=Q(ye,se[ye].apply(null,arguments))}catch(ke){_.throwLater(ke),Ae=!0}return Ae||we};function K(){return!1}function G(ye,we,Ae){var ke=this;try{ye(we,Ae,function(De){if(typeof De!="function")throw new TypeError("onCancel must be a function, got: "+O.toString(De));ke._attachCancellationCallback(De)})}catch(De){return De}}function z(ye){if(!this._isCancellable())return this;var we=this._onCancel();we!==void 0?O.isArray(we)?we.push(ye):this._setOnCancel([we,ye]):this._setOnCancel(ye)}function ne(){return this._onCancelField}function X(ye){this._onCancelField=ye}function le(){this._cancellationParent=void 0,this._onCancelField=void 0}function ce(ye,we){if(1&we){this._cancellationParent=ye;var Ae=ye._branchesRemainingToCancel;Ae===void 0&&(Ae=0),ye._branchesRemainingToCancel=Ae+1}2&we&&ye._isBound()&&this._setBoundTo(ye._boundTo)}u.config=function(ye){if("longStackTraces"in(ye=Object(ye))&&(ye.longStackTraces?u.longStackTraces():!ye.longStackTraces&&u.hasLongStackTraces()&&J()),"warnings"in ye){var we=ye.warnings;qe.warnings=!!we,H=qe.warnings,O.isObject(we)&&"wForgottenReturn"in we&&(H=!!we.wForgottenReturn)}if("cancellation"in ye&&ye.cancellation&&!qe.cancellation){if(_.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");u.prototype._clearCancellationData=le,u.prototype._propagateFrom=ce,u.prototype._onCancel=ne,u.prototype._setOnCancel=X,u.prototype._attachCancellationCallback=z,u.prototype._execute=G,de=ce,qe.cancellation=!0}return"monitoring"in ye&&(ye.monitoring&&!qe.monitoring?(qe.monitoring=!0,u.prototype._fireEvent=oe):!ye.monitoring&&qe.monitoring&&(qe.monitoring=!1,u.prototype._fireEvent=K)),u},u.prototype._fireEvent=K,u.prototype._execute=function(ye,we,Ae){try{ye(we,Ae)}catch(ke){return ke}},u.prototype._onCancel=function(){},u.prototype._setOnCancel=function(ye){},u.prototype._attachCancellationCallback=function(ye){},u.prototype._captureStackTrace=function(){},u.prototype._attachExtraTrace=function(){},u.prototype._clearCancellationData=function(){},u.prototype._propagateFrom=function(ye,we){};var de=function(ye,we){2&we&&ye._isBound()&&this._setBoundTo(ye._boundTo)};function be(){var ye=this._boundTo;return ye!==void 0&&ye instanceof u?ye.isFulfilled()?ye.value():void 0:ye}function M(){this._trace=new He(this._peekContext())}function D(ye,we){if(P(ye)){var Ae=this._trace;if(Ae!==void 0&&we&&(Ae=Ae._parent),Ae!==void 0)Ae.attachExtraTrace(ye);else if(!ye.__stackCleaned__){var ke=ie(ye);O.notEnumerableProp(ye,"stack",ke.message+`
`+ke.stack.join(`
`)),O.notEnumerableProp(ye,"__stackCleaned__",!0)}}}function Y(ye,we,Ae){if(qe.warnings){var ke,De=new w(ye);if(we)Ae._attachExtraTrace(De);else if(qe.longStackTraces&&(ke=u._peekContext()))ke.attachExtraTrace(De);else{var Ke=ie(De);De.stack=Ke.message+`
`+Ke.stack.join(`
`)}oe("warning",De)||he(De,"",!0)}}function ue(ye){for(var we=[],Ae=0;Ae<ye.length;++Ae){var ke=ye[Ae],De=ke===" (No stack trace)"||j.test(ke),Ke=De&&Ee(ke);De&&!Ke&&($&&ke.charAt(0)!==" "&&(ke=" "+ke),we.push(ke))}return we}function ie(ye){var we=ye.stack,Ae=ye.toString();return we=typeof we=="string"&&we.length>0?function(ke){for(var De=ke.stack.replace(/\s+$/g,"").split(`
`),Ke=0;Ke<De.length;++Ke){var Xe=De[Ke];if(Xe===" (No stack trace)"||j.test(Xe))break}return Ke>0&&ke.name!="SyntaxError"&&(De=De.slice(Ke)),De}(ye):[" (No stack trace)"],{message:Ae,stack:ye.name=="SyntaxError"?we:ue(we)}}function he(ye,we,Ae){if(typeof console<"u"){var ke;if(O.isObject(ye)){var De=ye.stack;ke=we+N(De,ye)}else ke=we+String(ye);typeof b=="function"?b(ke,Ae):typeof console.log!="function"&&typeof console.log!="object"||console.log(ke)}}function Se(ye,we,Ae,ke){var De=!1;try{typeof we=="function"&&(De=!0,ye==="rejectionHandled"?we(ke):we(Ae,ke))}catch(Ke){_.throwLater(Ke)}ye==="unhandledRejection"?oe(ye,Ae,ke)||De||he(Ae,"Unhandled rejection "):oe(ye,ke)}function Fe(ye){var we;if(typeof ye=="function")we="[function "+(ye.name||"anonymous")+"]";else{if(we=ye&&typeof ye.toString=="function"?ye.toString():O.toString(ye),/\[object [a-zA-Z0-9$_]+\]/.test(we))try{we=JSON.stringify(ye)}catch{}we.length===0&&(we="(empty array)")}return"(<"+function(Ae){return Ae.length<41?Ae:Ae.substr(0,38)+"..."}(we)+">, no stack trace)"}function ge(){return typeof Ue=="function"}var Ee=function(){return!1},je=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function Me(ye){var we=ye.match(je);if(we)return{fileName:we[1],line:parseInt(we[2],10)}}function He(ye){this._parent=ye,this._promisesCreated=0;var we=this._length=1+(ye===void 0?0:ye._length);Ue(this,He),we>32&&this.uncycle()}O.inherits(He,Error),h.CapturedTrace=He,He.prototype.uncycle=function(){var ye=this._length;if(!(ye<2)){for(var we=[],Ae={},ke=0,De=this;De!==void 0;++ke)we.push(De),De=De._parent;for(ke=(ye=this._length=ke)-1;ke>=0;--ke){var Ke=we[ke].stack;Ae[Ke]===void 0&&(Ae[Ke]=ke)}for(ke=0;ke<ye;++ke){var Xe=Ae[we[ke].stack];if(Xe!==void 0&&Xe!==ke){Xe>0&&(we[Xe-1]._parent=void 0,we[Xe-1]._length=1),we[ke]._parent=void 0,we[ke]._length=1;var bt=ke>0?we[ke-1]:this;Xe<ye-1?(bt._parent=we[Xe+1],bt._parent.uncycle(),bt._length=bt._parent._length+1):(bt._parent=void 0,bt._length=1);for(var Ot=bt._length+1,xt=ke-2;xt>=0;--xt)we[xt]._length=Ot,Ot++;return}}}},He.prototype.attachExtraTrace=function(ye){if(!ye.__stackCleaned__){this.uncycle();for(var we=ie(ye),Ae=we.message,ke=[we.stack],De=this;De!==void 0;)ke.push(ue(De.stack.split(`
`))),De=De._parent;(function(Ke){for(var Xe=Ke[0],bt=1;bt<Ke.length;++bt){for(var Ot=Ke[bt],xt=Xe.length-1,en=Xe[xt],Gt=-1,kn=Ot.length-1;kn>=0;--kn)if(Ot[kn]===en){Gt=kn;break}for(kn=Gt;kn>=0;--kn){var Dn=Ot[kn];if(Xe[xt]!==Dn)break;Xe.pop(),xt--}Xe=Ot}})(ke),function(Ke){for(var Xe=0;Xe<Ke.length;++Xe)(Ke[Xe].length===0||Xe+1<Ke.length&&Ke[Xe][0]===Ke[Xe+1][0])&&(Ke.splice(Xe,1),Xe--)}(ke),O.notEnumerableProp(ye,"stack",function(Ke,Xe){for(var bt=0;bt<Xe.length-1;++bt)Xe[bt].push("From previous event:"),Xe[bt]=Xe[bt].join(`
`);return bt<Xe.length&&(Xe[bt]=Xe[bt].join(`
`)),Ke+`
`+Xe.join(`
`)}(Ae,ke)),O.notEnumerableProp(ye,"__stackCleaned__",!0)}};var Ue=function(){var ye=/^\s*at\s*/,we=function(Ke,Xe){return typeof Ke=="string"?Ke:Xe.name!==void 0&&Xe.message!==void 0?Xe.toString():Fe(Xe)};if(typeof Error.stackTraceLimit=="number"&&typeof Error.captureStackTrace=="function"){Error.stackTraceLimit+=6,j=ye,N=we;var Ae=Error.captureStackTrace;return Ee=function(Ke){return E.test(Ke)},function(Ke,Xe){Error.stackTraceLimit+=6,Ae(Ke,Xe),Error.stackTraceLimit-=6}}var ke,De=new Error;if(typeof De.stack=="string"&&De.stack.split(`
`)[0].indexOf("stackDetection@")>=0)return j=/@/,N=we,$=!0,function(Ke){Ke.stack=new Error().stack};try{throw new Error}catch(Ke){ke="stack"in Ke}return"stack"in De||!ke||typeof Error.stackTraceLimit!="number"?(N=function(Ke,Xe){return typeof Ke=="string"?Ke:typeof Xe!="object"&&typeof Xe!="function"||Xe.name===void 0||Xe.message===void 0?Fe(Xe):Xe.toString()},null):(j=ye,N=we,function(Ke){Error.stackTraceLimit+=6;try{throw new Error}catch(Xe){Ke.stack=Xe.stack}Error.stackTraceLimit-=6})}();typeof console<"u"&&console.warn!==void 0&&(b=function(ye){console.warn(ye)},O.isNode&&r.stderr.isTTY?b=function(ye,we){var Ae=we?"\x1B[33m":"\x1B[31m";console.warn(Ae+ye+`\x1B[0m
`)}:O.isNode||typeof new Error().stack!="string"||(b=function(ye,we){console.warn("%c"+ye,we?"color: darkorange":"color: red")}));var qe={warnings:B,longStackTraces:!1,cancellation:!1,monitoring:!1};return V&&u.longStackTraces(),{longStackTraces:function(){return qe.longStackTraces},warnings:function(){return qe.warnings},cancellation:function(){return qe.cancellation},monitoring:function(){return qe.monitoring},propagateFromFunction:function(){return de},boundValueFunction:function(){return be},checkForgottenReturns:function(ye,we,Ae,ke,De){if(ye===void 0&&we!==null&&H){if(De!==void 0&&De._returnedNonUndefined()||!(65535&ke._bitField))return;Ae&&(Ae+=" ");var Ke="",Xe="";if(we._trace){for(var bt=we._trace.stack.split(`
`),Ot=ue(bt),xt=Ot.length-1;xt>=0;--xt){var en=Ot[xt];if(!T.test(en)){var Gt=en.match(A);Gt&&(Ke="at "+Gt[1]+":"+Gt[2]+":"+Gt[3]+" ");break}}if(Ot.length>0){var kn=Ot[0];for(xt=0;xt<bt.length;++xt)if(bt[xt]===kn){xt>0&&(Xe=`
`+bt[xt-1]);break}}}var Dn="a promise was created in a "+Ae+"handler "+Ke+"but was not returned from it, see http://goo.gl/rRqMUw"+Xe;ke._warn(Dn,!0,we)}},setBounds:function(ye,we){if(ge()){for(var Ae,ke,De=ye.stack.split(`
`),Ke=we.stack.split(`
`),Xe=-1,bt=-1,Ot=0;Ot<De.length;++Ot)if(xt=Me(De[Ot])){Ae=xt.fileName,Xe=xt.line;break}for(Ot=0;Ot<Ke.length;++Ot){var xt;if(xt=Me(Ke[Ot])){ke=xt.fileName,bt=xt.line;break}}Xe<0||bt<0||!Ae||!ke||Ae!==ke||Xe>=bt||(Ee=function(en){if(E.test(en))return!0;var Gt=Me(en);return!!(Gt&&Gt.fileName===Ae&&Xe<=Gt.line&&Gt.line<=bt)})}},warn:Y,deprecated:function(ye,we){var Ae=ye+" is deprecated and will be removed in a future version.";return we&&(Ae+=" Use "+we+" instead."),Y(Ae)},CapturedTrace:He,fireDomEvent:Q,fireGlobalEvent:re}}},{"./errors":12,"./util":36}],10:[function(a,s,c){s.exports=function(u){function h(){return this.value}function p(){throw this.reason}u.prototype.return=u.prototype.thenReturn=function(v){return v instanceof u&&v.suppressUnhandledRejections(),this._then(h,void 0,void 0,{value:v},void 0)},u.prototype.throw=u.prototype.thenThrow=function(v){return this._then(p,void 0,void 0,{reason:v},void 0)},u.prototype.catchThrow=function(v){if(arguments.length<=1)return this._then(void 0,p,void 0,{reason:v},void 0);var b=arguments[1];return this.caught(v,function(){throw b})},u.prototype.catchReturn=function(v){if(arguments.length<=1)return v instanceof u&&v.suppressUnhandledRejections(),this._then(void 0,h,void 0,{value:v},void 0);var b=arguments[1];return b instanceof u&&b.suppressUnhandledRejections(),this.caught(v,function(){return b})}}},{}],11:[function(a,s,c){s.exports=function(u,h){var p=u.reduce,v=u.all;function b(){return v(this)}u.prototype.each=function(x){return p(this,x,h,0)._then(b,void 0,void 0,this,void 0)},u.prototype.mapSeries=function(x){return p(this,x,h,h)},u.each=function(x,_){return p(x,_,h,0)._then(b,void 0,void 0,x,void 0)},u.mapSeries=function(x,_){return p(x,_,h,h)}}},{}],12:[function(a,s,c){var u,h,p=a("./es5"),v=p.freeze,b=a("./util"),x=b.inherits,_=b.notEnumerableProp;function w(B,V){function H(J){if(!(this instanceof H))return new H(J);_(this,"message",typeof J=="string"?J:V),_(this,"name",B),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return x(H,Error),H}var O=w("Warning","warning"),P=w("CancellationError","cancellation error"),E=w("TimeoutError","timeout error"),T=w("AggregateError","aggregate error");try{u=TypeError,h=RangeError}catch{u=w("TypeError","type error"),h=w("RangeError","range error")}for(var A="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),j=0;j<A.length;++j)typeof Array.prototype[A[j]]=="function"&&(T.prototype[A[j]]=Array.prototype[A[j]]);p.defineProperty(T.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0}),T.prototype.isOperational=!0;var N=0;function $(B){if(!(this instanceof $))return new $(B);_(this,"name","OperationalError"),_(this,"message",B),this.cause=B,this.isOperational=!0,B instanceof Error?(_(this,"message",B.message),_(this,"stack",B.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}T.prototype.toString=function(){var B=Array(4*N+1).join(" "),V=`
`+B+`AggregateError of:
`;N++,B=Array(4*N+1).join(" ");for(var H=0;H<this.length;++H){for(var J=this[H]===this?"[Circular AggregateError]":this[H]+"",Q=J.split(`
`),re=0;re<Q.length;++re)Q[re]=B+Q[re];V+=(J=Q.join(`
`))+`
`}return N--,V},x($,Error);var W=Error.__BluebirdErrorTypes__;W||(W=v({CancellationError:P,TimeoutError:E,OperationalError:$,RejectionError:$,AggregateError:T}),p.defineProperty(Error,"__BluebirdErrorTypes__",{value:W,writable:!1,enumerable:!1,configurable:!1})),s.exports={Error,TypeError:u,RangeError:h,CancellationError:W.CancellationError,OperationalError:W.OperationalError,TimeoutError:W.TimeoutError,AggregateError:W.AggregateError,Warning:O}},{"./es5":13,"./util":36}],13:[function(a,s,c){var u=function(){return this===void 0}();if(u)s.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:u,propertyIsWritable:function(x,_){var w=Object.getOwnPropertyDescriptor(x,_);return!(w&&!w.writable&&!w.set)}};else{var h={}.hasOwnProperty,p={}.toString,v={}.constructor.prototype,b=function(x){var _=[];for(var w in x)h.call(x,w)&&_.push(w);return _};s.exports={isArray:function(x){try{return p.call(x)==="[object Array]"}catch{return!1}},keys:b,names:b,defineProperty:function(x,_,w){return x[_]=w.value,x},getDescriptor:function(x,_){return{value:x[_]}},freeze:function(x){return x},getPrototypeOf:function(x){try{return Object(x).constructor.prototype}catch{return v}},isES5:u,propertyIsWritable:function(){return!0}}}},{}],14:[function(a,s,c){s.exports=function(u,h){var p=u.map;u.prototype.filter=function(v,b){return p(this,v,b,h)},u.filter=function(v,b,x){return p(v,b,x,h)}}},{}],15:[function(a,s,c){s.exports=function(u,h,p){var v=a("./util"),b=u.CancellationError,x=v.errorObj,_=a("./catch_filter")(p);function w(j,N,$){this.promise=j,this.type=N,this.handler=$,this.called=!1,this.cancelPromise=null}function O(j){this.finallyHandler=j}function P(j,N){return j.cancelPromise!=null&&(arguments.length>1?j.cancelPromise._reject(N):j.cancelPromise._cancel(),j.cancelPromise=null,!0)}function E(){return A.call(this,this.promise._target()._settledValue())}function T(j){if(!P(this,j))return x.e=j,x}function A(j){var N=this.promise,$=this.handler;if(!this.called){this.called=!0;var W=this.isFinallyHandler()?$.call(N._boundValue()):$.call(N._boundValue(),j);if(W===p)return W;if(W!==void 0){N._setReturnedNonUndefined();var B=h(W,N);if(B instanceof u){if(this.cancelPromise!=null){if(B._isCancelled()){var V=new b("late cancellation observer");return N._attachExtraTrace(V),x.e=V,x}B.isPending()&&B._attachCancellationCallback(new O(this))}return B._then(E,T,void 0,this,void 0)}}}return N.isRejected()?(P(this),x.e=j,x):(P(this),j)}return w.prototype.isFinallyHandler=function(){return this.type===0},O.prototype._resultCancelled=function(){P(this.finallyHandler)},u.prototype._passThrough=function(j,N,$,W){return typeof j!="function"?this.then():this._then($,W,void 0,new w(this,N,j),void 0)},u.prototype.lastly=u.prototype.finally=function(j){return this._passThrough(j,0,A,A)},u.prototype.tap=function(j){return this._passThrough(j,1,A)},u.prototype.tapCatch=function(j){var N=arguments.length;if(N===1)return this._passThrough(j,1,void 0,A);var $,W=new Array(N-1),B=0;for($=0;$<N-1;++$){var V=arguments[$];if(!v.isObject(V))return u.reject(new TypeError("tapCatch statement predicate: expecting an object but got "+v.classString(V)));W[B++]=V}W.length=B;var H=arguments[$];return this._passThrough(_(W,H,this),1,void 0,A)},w}},{"./catch_filter":7,"./util":36}],16:[function(a,s,c){s.exports=function(u,h,p,v,b,x){var _=a("./errors").TypeError,w=a("./util"),O=w.errorObj,P=w.tryCatch,E=[];function T(A,j,N,$){if(x.cancellation()){var W=new u(p),B=this._finallyPromise=new u(p);this._promise=W.lastly(function(){return B}),W._captureStackTrace(),W._setOnCancel(this)}else(this._promise=new u(p))._captureStackTrace();this._stack=$,this._generatorFunction=A,this._receiver=j,this._generator=void 0,this._yieldHandlers=typeof N=="function"?[N].concat(E):E,this._yieldedPromise=null,this._cancellationPhase=!1}w.inherits(T,b),T.prototype._isResolved=function(){return this._promise===null},T.prototype._cleanup=function(){this._promise=this._generator=null,x.cancellation()&&this._finallyPromise!==null&&(this._finallyPromise._fulfill(),this._finallyPromise=null)},T.prototype._promiseCancelled=function(){if(!this._isResolved()){var A;if(this._generator.return!==void 0)this._promise._pushContext(),A=P(this._generator.return).call(this._generator,void 0),this._promise._popContext();else{var j=new u.CancellationError("generator .return() sentinel");u.coroutine.returnSentinel=j,this._promise._attachExtraTrace(j),this._promise._pushContext(),A=P(this._generator.throw).call(this._generator,j),this._promise._popContext()}this._cancellationPhase=!0,this._yieldedPromise=null,this._continue(A)}},T.prototype._promiseFulfilled=function(A){this._yieldedPromise=null,this._promise._pushContext();var j=P(this._generator.next).call(this._generator,A);this._promise._popContext(),this._continue(j)},T.prototype._promiseRejected=function(A){this._yieldedPromise=null,this._promise._attachExtraTrace(A),this._promise._pushContext();var j=P(this._generator.throw).call(this._generator,A);this._promise._popContext(),this._continue(j)},T.prototype._resultCancelled=function(){if(this._yieldedPromise instanceof u){var A=this._yieldedPromise;this._yieldedPromise=null,A.cancel()}},T.prototype.promise=function(){return this._promise},T.prototype._run=function(){this._generator=this._generatorFunction.call(this._receiver),this._receiver=this._generatorFunction=void 0,this._promiseFulfilled(void 0)},T.prototype._continue=function(A){var j=this._promise;if(A===O)return this._cleanup(),this._cancellationPhase?j.cancel():j._rejectCallback(A.e,!1);var N=A.value;if(A.done===!0)return this._cleanup(),this._cancellationPhase?j.cancel():j._resolveCallback(N);var $=v(N,this._promise);if($ instanceof u||($=function(B,V,H){for(var J=0;J<V.length;++J){H._pushContext();var Q=P(V[J])(B);if(H._popContext(),Q===O){H._pushContext();var re=u.reject(O.e);return H._popContext(),re}var ae=v(Q,H);if(ae instanceof u)return ae}return null}($,this._yieldHandlers,this._promise))!==null){var W=($=$._target())._bitField;50397184&W?33554432&W?u._async.invoke(this._promiseFulfilled,this,$._value()):16777216&W?u._async.invoke(this._promiseRejected,this,$._reason()):this._promiseCancelled():(this._yieldedPromise=$,$._proxy(this,null))}else this._promiseRejected(new _(`A value %s was yielded that could not be treated as a promise
See http://goo.gl/MqrFmX
`.replace("%s",String(N))+`From coroutine:
`+this._stack.split(`
`).slice(1,-7).join(`
`)))},u.coroutine=function(A,j){if(typeof A!="function")throw new _(`generatorFunction must be a function
See http://goo.gl/MqrFmX
`);var N=Object(j).yieldHandler,$=T,W=new Error().stack;return function(){var B=A.apply(this,arguments),V=new $(void 0,void 0,N,W),H=V.promise();return V._generator=B,V._promiseFulfilled(void 0),H}},u.coroutine.addYieldHandler=function(A){if(typeof A!="function")throw new _("expecting a function but got "+w.classString(A));E.push(A)},u.spawn=function(A){if(x.deprecated("Promise.spawn()","Promise.coroutine()"),typeof A!="function")return h(`generatorFunction must be a function
See http://goo.gl/MqrFmX
`);var j=new T(A,this),N=j.promise();return j._run(u.spawn),N}}},{"./errors":12,"./util":36}],17:[function(a,s,c){s.exports=function(u,h,p,v,b,x){var _=a("./util");_.canEvaluate,_.tryCatch,_.errorObj,u.join=function(){var w,O=arguments.length-1;O>0&&typeof arguments[O]=="function"&&(w=arguments[O]);var P=[].slice.call(arguments);w&&P.pop();var E=new h(P).promise();return w!==void 0?E.spread(w):E}}},{"./util":36}],18:[function(a,s,c){s.exports=function(u,h,p,v,b,x){var _=u._getDomain,w=a("./util"),O=w.tryCatch,P=w.errorObj,E=u._async;function T(j,N,$,W){this.constructor$(j),this._promise._captureStackTrace();var B=_();this._callback=B===null?N:w.domainBind(B,N),this._preservedValues=W===b?new Array(this.length()):null,this._limit=$,this._inFlight=0,this._queue=[],E.invoke(this._asyncInit,this,void 0)}function A(j,N,$,W){if(typeof N!="function")return p("expecting a function but got "+w.classString(N));var B=0;if($!==void 0){if(typeof $!="object"||$===null)return u.reject(new TypeError("options argument must be an object but it is "+w.classString($)));if(typeof $.concurrency!="number")return u.reject(new TypeError("'concurrency' must be a number but it is "+w.classString($.concurrency)));B=$.concurrency}return new T(j,N,B=typeof B=="number"&&isFinite(B)&&B>=1?B:0,W).promise()}w.inherits(T,h),T.prototype._asyncInit=function(){this._init$(void 0,-2)},T.prototype._init=function(){},T.prototype._promiseFulfilled=function(j,N){var $=this._values,W=this.length(),B=this._preservedValues,V=this._limit;if(N<0){if($[N=-1*N-1]=j,V>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(V>=1&&this._inFlight>=V)return $[N]=j,this._queue.push(N),!1;B!==null&&(B[N]=j);var H=this._promise,J=this._callback,Q=H._boundValue();H._pushContext();var re=O(J).call(Q,j,N,W),ae=H._popContext();if(x.checkForgottenReturns(re,ae,B!==null?"Promise.filter":"Promise.map",H),re===P)return this._reject(re.e),!0;var se=v(re,this._promise);if(se instanceof u){var oe=(se=se._target())._bitField;if(!(50397184&oe))return V>=1&&this._inFlight++,$[N]=se,se._proxy(this,-1*(N+1)),!1;if(!(33554432&oe))return 16777216&oe?(this._reject(se._reason()),!0):(this._cancel(),!0);re=se._value()}$[N]=re}return++this._totalResolved>=W&&(B!==null?this._filter($,B):this._resolve($),!0)},T.prototype._drainQueue=function(){for(var j=this._queue,N=this._limit,$=this._values;j.length>0&&this._inFlight<N;){if(this._isResolved())return;var W=j.pop();this._promiseFulfilled($[W],W)}},T.prototype._filter=function(j,N){for(var $=N.length,W=new Array($),B=0,V=0;V<$;++V)j[V]&&(W[B++]=N[V]);W.length=B,this._resolve(W)},T.prototype.preservedValues=function(){return this._preservedValues},u.prototype.map=function(j,N){return A(this,j,N,null)},u.map=function(j,N,$,W){return A(j,N,$,W)}}},{"./util":36}],19:[function(a,s,c){s.exports=function(u,h,p,v,b){var x=a("./util"),_=x.tryCatch;u.method=function(w){if(typeof w!="function")throw new u.TypeError("expecting a function but got "+x.classString(w));return function(){var O=new u(h);O._captureStackTrace(),O._pushContext();var P=_(w).apply(this,arguments),E=O._popContext();return b.checkForgottenReturns(P,E,"Promise.method",O),O._resolveFromSyncValue(P),O}},u.attempt=u.try=function(w){if(typeof w!="function")return v("expecting a function but got "+x.classString(w));var O,P=new u(h);if(P._captureStackTrace(),P._pushContext(),arguments.length>1){b.deprecated("calling Promise.try with more than 1 argument");var E=arguments[1],T=arguments[2];O=x.isArray(E)?_(w).apply(T,E):_(w).call(T,E)}else O=_(w)();var A=P._popContext();return b.checkForgottenReturns(O,A,"Promise.try",P),P._resolveFromSyncValue(O),P},u.prototype._resolveFromSyncValue=function(w){w===x.errorObj?this._rejectCallback(w.e,!1):this._resolveCallback(w,!0)}}},{"./util":36}],20:[function(a,s,c){var u=a("./util"),h=u.maybeWrapAsError,p=a("./errors").OperationalError,v=a("./es5"),b=/^(?:name|message|stack|cause)$/;function x(_){var w;if(function(T){return T instanceof Error&&v.getPrototypeOf(T)===Error.prototype}(_)){(w=new p(_)).name=_.name,w.message=_.message,w.stack=_.stack;for(var O=v.keys(_),P=0;P<O.length;++P){var E=O[P];b.test(E)||(w[E]=_[E])}return w}return u.markAsOriginatingFromRejection(_),_}s.exports=function(_,w){return function(O,P){if(_!==null){if(O){var E=x(h(O));_._attachExtraTrace(E),_._reject(E)}else if(w){var T=[].slice.call(arguments,1);_._fulfill(T)}else _._fulfill(P);_=null}}}},{"./errors":12,"./es5":13,"./util":36}],21:[function(a,s,c){s.exports=function(u){var h=a("./util"),p=u._async,v=h.tryCatch,b=h.errorObj;function x(O,P){if(!h.isArray(O))return _.call(this,O,P);var E=v(P).apply(this._boundValue(),[null].concat(O));E===b&&p.throwLater(E.e)}function _(O,P){var E=this._boundValue(),T=O===void 0?v(P).call(E,null):v(P).call(E,null,O);T===b&&p.throwLater(T.e)}function w(O,P){if(!O){var E=new Error(O+"");E.cause=O,O=E}var T=v(P).call(this._boundValue(),O);T===b&&p.throwLater(T.e)}u.prototype.asCallback=u.prototype.nodeify=function(O,P){if(typeof O=="function"){var E=_;P!==void 0&&Object(P).spread&&(E=x),this._then(E,w,void 0,this,O)}return this}}},{"./util":36}],22:[function(a,s,c){s.exports=function(){var u=function(){return new T(`circular promise resolution chain
See http://goo.gl/MqrFmX
`)},h=function(){return new K.PromiseInspection(this._target())},p=function(X){return K.reject(new T(X))};function v(){}var b,x={},_=a("./util");b=_.isNode?function(){var X=r.domain;return X===void 0&&(X=null),X}:function(){return null},_.notEnumerableProp(K,"_getDomain",b);var w=a("./es5"),O=a("./async"),P=new O;w.defineProperty(K,"_async",{value:P});var E=a("./errors"),T=K.TypeError=E.TypeError;K.RangeError=E.RangeError;var A=K.CancellationError=E.CancellationError;K.TimeoutError=E.TimeoutError,K.OperationalError=E.OperationalError,K.RejectionError=E.OperationalError,K.AggregateError=E.AggregateError;var j=function(){},N={},$={},W=a("./thenables")(K,j),B=a("./promise_array")(K,j,W,p,v),V=a("./context")(K),H=V.create,J=a("./debuggability")(K,V),Q=(J.CapturedTrace,a("./finally")(K,W,$)),re=a("./catch_filter")($),ae=a("./nodeback"),se=_.errorObj,oe=_.tryCatch;function K(X){X!==j&&function(le,ce){if(le==null||le.constructor!==K)throw new T(`the promise constructor cannot be invoked directly
See http://goo.gl/MqrFmX
`);if(typeof ce!="function")throw new T("expecting a function but got "+_.classString(ce))}(this,X),this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,this._resolveFromExecutor(X),this._promiseCreated(),this._fireEvent("promiseCreated",this)}function G(X){this.promise._resolveCallback(X)}function z(X){this.promise._rejectCallback(X,!1)}function ne(X){var le=new K(j);le._fulfillmentHandler0=X,le._rejectionHandler0=X,le._promise0=X,le._receiver0=X}return K.prototype.toString=function(){return"[object Promise]"},K.prototype.caught=K.prototype.catch=function(X){var le=arguments.length;if(le>1){var ce,de=new Array(le-1),be=0;for(ce=0;ce<le-1;++ce){var M=arguments[ce];if(!_.isObject(M))return p("Catch statement predicate: expecting an object but got "+_.classString(M));de[be++]=M}return de.length=be,X=arguments[ce],this.then(void 0,re(de,X,this))}return this.then(void 0,X)},K.prototype.reflect=function(){return this._then(h,h,void 0,this,void 0)},K.prototype.then=function(X,le){if(J.warnings()&&arguments.length>0&&typeof X!="function"&&typeof le!="function"){var ce=".then() only accepts functions but was passed: "+_.classString(X);arguments.length>1&&(ce+=", "+_.classString(le)),this._warn(ce)}return this._then(X,le,void 0,void 0,void 0)},K.prototype.done=function(X,le){this._then(X,le,void 0,void 0,void 0)._setIsFinal()},K.prototype.spread=function(X){return typeof X!="function"?p("expecting a function but got "+_.classString(X)):this.all()._then(X,void 0,void 0,N,void 0)},K.prototype.toJSON=function(){var X={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(X.fulfillmentValue=this.value(),X.isFulfilled=!0):this.isRejected()&&(X.rejectionReason=this.reason(),X.isRejected=!0),X},K.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new B(this).promise()},K.prototype.error=function(X){return this.caught(_.originatesFromRejection,X)},K.getNewLibraryCopy=s.exports,K.is=function(X){return X instanceof K},K.fromNode=K.fromCallback=function(X){var le=new K(j);le._captureStackTrace();var ce=arguments.length>1&&!!Object(arguments[1]).multiArgs,de=oe(X)(ae(le,ce));return de===se&&le._rejectCallback(de.e,!0),le._isFateSealed()||le._setAsyncGuaranteed(),le},K.all=function(X){return new B(X).promise()},K.cast=function(X){var le=W(X);return le instanceof K||((le=new K(j))._captureStackTrace(),le._setFulfilled(),le._rejectionHandler0=X),le},K.resolve=K.fulfilled=K.cast,K.reject=K.rejected=function(X){var le=new K(j);return le._captureStackTrace(),le._rejectCallback(X,!0),le},K.setScheduler=function(X){if(typeof X!="function")throw new T("expecting a function but got "+_.classString(X));return P.setScheduler(X)},K.prototype._then=function(X,le,ce,de,be){var M=be!==void 0,D=M?be:new K(j),Y=this._target(),ue=Y._bitField;M||(D._propagateFrom(this,3),D._captureStackTrace(),de===void 0&&2097152&this._bitField&&(de=50397184&ue?this._boundValue():Y===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,D));var ie=b();if(50397184&ue){var he,Se,Fe=Y._settlePromiseCtx;33554432&ue?(Se=Y._rejectionHandler0,he=X):16777216&ue?(Se=Y._fulfillmentHandler0,he=le,Y._unsetRejectionIsUnhandled()):(Fe=Y._settlePromiseLateCancellationObserver,Se=new A("late cancellation observer"),Y._attachExtraTrace(Se),he=le),P.invoke(Fe,Y,{handler:ie===null?he:typeof he=="function"&&_.domainBind(ie,he),promise:D,receiver:de,value:Se})}else Y._addCallbacks(X,le,D,de,ie);return D},K.prototype._length=function(){return 65535&this._bitField},K.prototype._isFateSealed=function(){return(117506048&this._bitField)!=0},K.prototype._isFollowing=function(){return(67108864&this._bitField)==67108864},K.prototype._setLength=function(X){this._bitField=-65536&this._bitField|65535&X},K.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},K.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},K.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},K.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},K.prototype._isFinal=function(){return(4194304&this._bitField)>0},K.prototype._unsetCancelled=function(){this._bitField=-65537&this._bitField},K.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},K.prototype._setWillBeCancelled=function(){this._bitField=8388608|this._bitField},K.prototype._setAsyncGuaranteed=function(){P.hasCustomScheduler()||(this._bitField=134217728|this._bitField)},K.prototype._receiverAt=function(X){var le=X===0?this._receiver0:this[4*X-4+3];if(le!==x)return le===void 0&&this._isBound()?this._boundValue():le},K.prototype._promiseAt=function(X){return this[4*X-4+2]},K.prototype._fulfillmentHandlerAt=function(X){return this[4*X-4+0]},K.prototype._rejectionHandlerAt=function(X){return this[4*X-4+1]},K.prototype._boundValue=function(){},K.prototype._migrateCallback0=function(X){X._bitField;var le=X._fulfillmentHandler0,ce=X._rejectionHandler0,de=X._promise0,be=X._receiverAt(0);be===void 0&&(be=x),this._addCallbacks(le,ce,de,be,null)},K.prototype._migrateCallbackAt=function(X,le){var ce=X._fulfillmentHandlerAt(le),de=X._rejectionHandlerAt(le),be=X._promiseAt(le),M=X._receiverAt(le);M===void 0&&(M=x),this._addCallbacks(ce,de,be,M,null)},K.prototype._addCallbacks=function(X,le,ce,de,be){var M=this._length();if(M>=65531&&(M=0,this._setLength(0)),M===0)this._promise0=ce,this._receiver0=de,typeof X=="function"&&(this._fulfillmentHandler0=be===null?X:_.domainBind(be,X)),typeof le=="function"&&(this._rejectionHandler0=be===null?le:_.domainBind(be,le));else{var D=4*M-4;this[D+2]=ce,this[D+3]=de,typeof X=="function"&&(this[D+0]=be===null?X:_.domainBind(be,X)),typeof le=="function"&&(this[D+1]=be===null?le:_.domainBind(be,le))}return this._setLength(M+1),M},K.prototype._proxy=function(X,le){this._addCallbacks(void 0,void 0,le,X,null)},K.prototype._resolveCallback=function(X,le){if(!(117506048&this._bitField)){if(X===this)return this._rejectCallback(u(),!1);var ce=W(X,this);if(!(ce instanceof K))return this._fulfill(X);le&&this._propagateFrom(ce,2);var de=ce._target();if(de!==this){var be=de._bitField;if(50397184&be)if(33554432&be)this._fulfill(de._value());else if(16777216&be)this._reject(de._reason());else{var Y=new A("late cancellation observer");de._attachExtraTrace(Y),this._reject(Y)}else{var M=this._length();M>0&&de._migrateCallback0(this);for(var D=1;D<M;++D)de._migrateCallbackAt(this,D);this._setFollowing(),this._setLength(0),this._setFollowee(de)}}else this._reject(u())}},K.prototype._rejectCallback=function(X,le,ce){var de=_.ensureErrorObject(X),be=de===X;if(!be&&!ce&&J.warnings()){var M="a promise was rejected with a non-error: "+_.classString(X);this._warn(M,!0)}this._attachExtraTrace(de,!!le&&be),this._reject(X)},K.prototype._resolveFromExecutor=function(X){if(X!==j){var le=this;this._captureStackTrace(),this._pushContext();var ce=!0,de=this._execute(X,function(be){le._resolveCallback(be)},function(be){le._rejectCallback(be,ce)});ce=!1,this._popContext(),de!==void 0&&le._rejectCallback(de,!0)}},K.prototype._settlePromiseFromHandler=function(X,le,ce,de){var be=de._bitField;if(!(65536&be)){var M;de._pushContext(),le===N?ce&&typeof ce.length=="number"?M=oe(X).apply(this._boundValue(),ce):(M=se).e=new T("cannot .spread() a non-array: "+_.classString(ce)):M=oe(X).call(le,ce);var D=de._popContext();!(65536&(be=de._bitField))&&(M===$?de._reject(ce):M===se?de._rejectCallback(M.e,!1):(J.checkForgottenReturns(M,D,"",de,this),de._resolveCallback(M)))}},K.prototype._target=function(){for(var X=this;X._isFollowing();)X=X._followee();return X},K.prototype._followee=function(){return this._rejectionHandler0},K.prototype._setFollowee=function(X){this._rejectionHandler0=X},K.prototype._settlePromise=function(X,le,ce,de){var be=X instanceof K,M=this._bitField,D=(134217728&M)!=0;65536&M?(be&&X._invokeInternalOnCancel(),ce instanceof Q&&ce.isFinallyHandler()?(ce.cancelPromise=X,oe(le).call(ce,de)===se&&X._reject(se.e)):le===h?X._fulfill(h.call(ce)):ce instanceof v?ce._promiseCancelled(X):be||X instanceof B?X._cancel():ce.cancel()):typeof le=="function"?be?(D&&X._setAsyncGuaranteed(),this._settlePromiseFromHandler(le,ce,de,X)):le.call(ce,de,X):ce instanceof v?ce._isResolved()||(33554432&M?ce._promiseFulfilled(de,X):ce._promiseRejected(de,X)):be&&(D&&X._setAsyncGuaranteed(),33554432&M?X._fulfill(de):X._reject(de))},K.prototype._settlePromiseLateCancellationObserver=function(X){var le=X.handler,ce=X.promise,de=X.receiver,be=X.value;typeof le=="function"?ce instanceof K?this._settlePromiseFromHandler(le,de,be,ce):le.call(de,be,ce):ce instanceof K&&ce._reject(be)},K.prototype._settlePromiseCtx=function(X){this._settlePromise(X.promise,X.handler,X.receiver,X.value)},K.prototype._settlePromise0=function(X,le,ce){var de=this._promise0,be=this._receiverAt(0);this._promise0=void 0,this._receiver0=void 0,this._settlePromise(de,X,be,le)},K.prototype._clearCallbackDataAtIndex=function(X){var le=4*X-4;this[le+2]=this[le+3]=this[le+0]=this[le+1]=void 0},K.prototype._fulfill=function(X){var le=this._bitField;if(!((117506048&le)>>>16)){if(X===this){var ce=u();return this._attachExtraTrace(ce),this._reject(ce)}this._setFulfilled(),this._rejectionHandler0=X,(65535&le)>0&&(134217728&le?this._settlePromises():P.settlePromises(this))}},K.prototype._reject=function(X){var le=this._bitField;if(!((117506048&le)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=X,this._isFinal())return P.fatalError(X,_.isNode);(65535&le)>0?P.settlePromises(this):this._ensurePossibleRejectionHandled()}},K.prototype._fulfillPromises=function(X,le){for(var ce=1;ce<X;ce++){var de=this._fulfillmentHandlerAt(ce),be=this._promiseAt(ce),M=this._receiverAt(ce);this._clearCallbackDataAtIndex(ce),this._settlePromise(be,de,M,le)}},K.prototype._rejectPromises=function(X,le){for(var ce=1;ce<X;ce++){var de=this._rejectionHandlerAt(ce),be=this._promiseAt(ce),M=this._receiverAt(ce);this._clearCallbackDataAtIndex(ce),this._settlePromise(be,de,M,le)}},K.prototype._settlePromises=function(){var X=this._bitField,le=65535&X;if(le>0){if(16842752&X){var ce=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,ce,X),this._rejectPromises(le,ce)}else{var de=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,de,X),this._fulfillPromises(le,de)}this._setLength(0)}this._clearCancellationData()},K.prototype._settledValue=function(){var X=this._bitField;return 33554432&X?this._rejectionHandler0:16777216&X?this._fulfillmentHandler0:void 0},K.defer=K.pending=function(){return J.deprecated("Promise.defer","new Promise"),{promise:new K(j),resolve:G,reject:z}},_.notEnumerableProp(K,"_makeSelfResolutionError",u),a("./method")(K,j,W,p,J),a("./bind")(K,j,W,J),a("./cancel")(K,B,p,J),a("./direct_resolve")(K),a("./synchronous_inspection")(K),a("./join")(K,B,W,j,P,b),K.Promise=K,K.version="3.5.1",a("./map.js")(K,B,p,W,j,J),a("./call_get.js")(K),a("./using.js")(K,p,W,H,j,J),a("./timers.js")(K,j,J),a("./generators.js")(K,p,j,W,v,J),a("./nodeify.js")(K),a("./promisify.js")(K,j),a("./props.js")(K,B,W,p),a("./race.js")(K,j,W,p),a("./reduce.js")(K,B,p,W,j,J),a("./settle.js")(K,B,J),a("./some.js")(K,B,p),a("./filter.js")(K,j),a("./each.js")(K,j),a("./any.js")(K),_.toFastProperties(K),_.toFastProperties(K.prototype),ne({a:1}),ne({b:2}),ne({c:3}),ne(1),ne(function(){}),ne(void 0),ne(!1),ne(new K(j)),J.setBounds(O.firstLineError,_.lastLineError),K}},{"./any.js":1,"./async":2,"./bind":3,"./call_get.js":5,"./cancel":6,"./catch_filter":7,"./context":8,"./debuggability":9,"./direct_resolve":10,"./each.js":11,"./errors":12,"./es5":13,"./filter.js":14,"./finally":15,"./generators.js":16,"./join":17,"./map.js":18,"./method":19,"./nodeback":20,"./nodeify.js":21,"./promise_array":23,"./promisify.js":24,"./props.js":25,"./race.js":27,"./reduce.js":28,"./settle.js":30,"./some.js":31,"./synchronous_inspection":32,"./thenables":33,"./timers.js":34,"./using.js":35,"./util":36}],23:[function(a,s,c){s.exports=function(u,h,p,v,b){var x=a("./util");function _(w){var O=this._promise=new u(h);w instanceof u&&O._propagateFrom(w,3),O._setOnCancel(this),this._values=w,this._length=0,this._totalResolved=0,this._init(void 0,-2)}return x.isArray,x.inherits(_,b),_.prototype.length=function(){return this._length},_.prototype.promise=function(){return this._promise},_.prototype._init=function w(O,P){var E=p(this._values,this._promise);if(E instanceof u){var T=(E=E._target())._bitField;if(this._values=E,(50397184&T)==0)return this._promise._setAsyncGuaranteed(),E._then(w,this._reject,void 0,this,P);if(!(33554432&T))return 16777216&T?this._reject(E._reason()):this._cancel();E=E._value()}if((E=x.asArray(E))!==null)E.length!==0?this._iterate(E):P===-5?this._resolveEmptyArray():this._resolve(function(j){switch(P){case-2:return[];case-3:return{};case-6:return new Map}}());else{var A=v("expecting an array or an iterable object but got "+x.classString(E)).reason();this._promise._rejectCallback(A,!1)}},_.prototype._iterate=function(w){var O=this.getActualLength(w.length);this._length=O,this._values=this.shouldCopyValues()?new Array(O):this._values;for(var P=this._promise,E=!1,T=null,A=0;A<O;++A){var j=p(w[A],P);T=j instanceof u?(j=j._target())._bitField:null,E?T!==null&&j.suppressUnhandledRejections():T!==null?50397184&T?E=33554432&T?this._promiseFulfilled(j._value(),A):16777216&T?this._promiseRejected(j._reason(),A):this._promiseCancelled(A):(j._proxy(this,A),this._values[A]=j):E=this._promiseFulfilled(j,A)}E||P._setAsyncGuaranteed()},_.prototype._isResolved=function(){return this._values===null},_.prototype._resolve=function(w){this._values=null,this._promise._fulfill(w)},_.prototype._cancel=function(){!this._isResolved()&&this._promise._isCancellable()&&(this._values=null,this._promise._cancel())},_.prototype._reject=function(w){this._values=null,this._promise._rejectCallback(w,!1)},_.prototype._promiseFulfilled=function(w,O){return this._values[O]=w,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},_.prototype._promiseCancelled=function(){return this._cancel(),!0},_.prototype._promiseRejected=function(w){return this._totalResolved++,this._reject(w),!0},_.prototype._resultCancelled=function(){if(!this._isResolved()){var w=this._values;if(this._cancel(),w instanceof u)w.cancel();else for(var O=0;O<w.length;++O)w[O]instanceof u&&w[O].cancel()}},_.prototype.shouldCopyValues=function(){return!0},_.prototype.getActualLength=function(w){return w},_}},{"./util":36}],24:[function(a,s,c){s.exports=function(u,h){var p={},v=a("./util"),b=a("./nodeback"),x=v.withAppended,_=v.maybeWrapAsError,w=v.canEvaluate,O=a("./errors").TypeError,P={__isPromisified__:!0},E=new RegExp("^(?:"+["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"].join("|")+")$"),T=function(H){return v.isIdentifier(H)&&H.charAt(0)!=="_"&&H!=="constructor"};function A(H){return!E.test(H)}function j(H){try{return H.__isPromisified__===!0}catch{return!1}}function N(H,J,Q){var re=v.getDataPropertyOrDefault(H,J+Q,P);return!!re&&j(re)}function $(H,J,Q,re){for(var ae=v.inheritedDataKeys(H),se=[],oe=0;oe<ae.length;++oe){var K=ae[oe],G=H[K],z=re===T||T(K);typeof G!="function"||j(G)||N(H,K,J)||!re(K,G,H,z)||se.push(K,G)}return function(ne,X,le){for(var ce=0;ce<ne.length;ce+=2){var de=ne[ce];if(le.test(de)){for(var be=de.replace(le,""),M=0;M<ne.length;M+=2)if(ne[M]===be)throw new O(`Cannot promisify an API that has normal methods with '%s'-suffix
See http://goo.gl/MqrFmX
`.replace("%s",X))}}}(se,J,Q),se}var W=function(H){return H.replace(/([$])/,"\\$")},B=w?void 0:function(H,J,Q,re,ae,se){var oe=function(){return this}(),K=H;function G(){var z=J;J===p&&(z=this);var ne=new u(h);ne._captureStackTrace();var X=typeof K=="string"&&this!==oe?this[K]:H,le=b(ne,se);try{X.apply(z,x(arguments,le))}catch(ce){ne._rejectCallback(_(ce),!0,!0)}return ne._isFateSealed()||ne._setAsyncGuaranteed(),ne}return typeof K=="string"&&(H=re),v.notEnumerableProp(G,"__isPromisified__",!0),G};function V(H,J,Q,re,ae){for(var se=new RegExp(W(J)+"$"),oe=$(H,J,se,Q),K=0,G=oe.length;K<G;K+=2){var z=oe[K],ne=oe[K+1],X=z+J;if(re===B)H[X]=B(z,p,z,ne,J,ae);else{var le=re(ne,function(){return B(z,p,z,ne,J,ae)});v.notEnumerableProp(le,"__isPromisified__",!0),H[X]=le}}return v.toFastProperties(H),H}u.promisify=function(H,J){if(typeof H!="function")throw new O("expecting a function but got "+v.classString(H));if(j(H))return H;var Q=(J=Object(J)).context===void 0?p:J.context,re=!!J.multiArgs,ae=function(se,oe,K){return B(se,oe,void 0,se,null,re)}(H,Q);return v.copyDescriptors(H,ae,A),ae},u.promisifyAll=function(H,J){if(typeof H!="function"&&typeof H!="object")throw new O(`the target of promisifyAll must be an object or a function
See http://goo.gl/MqrFmX
`);var Q=!!(J=Object(J)).multiArgs,re=J.suffix;typeof re!="string"&&(re="Async");var ae=J.filter;typeof ae!="function"&&(ae=T);var se=J.promisifier;if(typeof se!="function"&&(se=B),!v.isIdentifier(re))throw new RangeError(`suffix must be a valid identifier
See http://goo.gl/MqrFmX
`);for(var oe=v.inheritedDataKeys(H),K=0;K<oe.length;++K){var G=H[oe[K]];oe[K]!=="constructor"&&v.isClass(G)&&(V(G.prototype,re,ae,se,Q),V(G,re,ae,se,Q))}return V(H,re,ae,se,Q)}}},{"./errors":12,"./nodeback":20,"./util":36}],25:[function(a,s,c){s.exports=function(u,h,p,v){var b,x=a("./util"),_=x.isObject,w=a("./es5");typeof Map=="function"&&(b=Map);var O=function(){var T=0,A=0;function j(N,$){this[T]=N,this[T+A]=$,T++}return function(N){A=N.size,T=0;var $=new Array(2*N.size);return N.forEach(j,$),$}}();function P(T){var A,j=!1;if(b!==void 0&&T instanceof b)A=O(T),j=!0;else{var N=w.keys(T),$=N.length;A=new Array(2*$);for(var W=0;W<$;++W){var B=N[W];A[W]=T[B],A[W+$]=B}}this.constructor$(A),this._isMap=j,this._init$(void 0,j?-6:-3)}function E(T){var A,j=p(T);return _(j)?(A=j instanceof u?j._then(u.props,void 0,void 0,void 0,void 0):new P(j).promise(),j instanceof u&&A._propagateFrom(j,2),A):v(`cannot await properties of a non-object
See http://goo.gl/MqrFmX
`)}x.inherits(P,h),P.prototype._init=function(){},P.prototype._promiseFulfilled=function(T,A){if(this._values[A]=T,++this._totalResolved>=this._length){var j;if(this._isMap)j=function(B){for(var V=new b,H=B.length/2|0,J=0;J<H;++J){var Q=B[H+J],re=B[J];V.set(Q,re)}return V}(this._values);else{j={};for(var N=this.length(),$=0,W=this.length();$<W;++$)j[this._values[$+N]]=this._values[$]}return this._resolve(j),!0}return!1},P.prototype.shouldCopyValues=function(){return!1},P.prototype.getActualLength=function(T){return T>>1},u.prototype.props=function(){return E(this)},u.props=function(T){return E(T)}}},{"./es5":13,"./util":36}],26:[function(a,s,c){function u(h){this._capacity=h,this._length=0,this._front=0}u.prototype._willBeOverCapacity=function(h){return this._capacity<h},u.prototype._pushOne=function(h){var p=this.length();this._checkCapacity(p+1),this[this._front+p&this._capacity-1]=h,this._length=p+1},u.prototype.push=function(h,p,v){var b=this.length()+3;if(this._willBeOverCapacity(b))return this._pushOne(h),this._pushOne(p),void this._pushOne(v);var x=this._front+b-3;this._checkCapacity(b);var _=this._capacity-1;this[x+0&_]=h,this[x+1&_]=p,this[x+2&_]=v,this._length=b},u.prototype.shift=function(){var h=this._front,p=this[h];return this[h]=void 0,this._front=h+1&this._capacity-1,this._length--,p},u.prototype.length=function(){return this._length},u.prototype._checkCapacity=function(h){this._capacity<h&&this._resizeTo(this._capacity<<1)},u.prototype._resizeTo=function(h){var p=this._capacity;this._capacity=h,function(v,b,x,_,w){for(var O=0;O<w;++O)x[O+_]=v[O+0],v[O+0]=void 0}(this,0,this,p,this._front+this._length&p-1)},s.exports=u},{}],27:[function(a,s,c){s.exports=function(u,h,p,v){var b=a("./util"),x=function(w){return w.then(function(O){return _(O,w)})};function _(w,O){var P=p(w);if(P instanceof u)return x(P);if((w=b.asArray(w))===null)return v("expecting an array or an iterable object but got "+b.classString(w));var E=new u(h);O!==void 0&&E._propagateFrom(O,3);for(var T=E._fulfill,A=E._reject,j=0,N=w.length;j<N;++j){var $=w[j];($!==void 0||j in w)&&u.cast($)._then(T,A,void 0,E,null)}return E}u.race=function(w){return _(w,void 0)},u.prototype.race=function(){return _(this,void 0)}}},{"./util":36}],28:[function(a,s,c){s.exports=function(u,h,p,v,b,x){var _=u._getDomain,w=a("./util"),O=w.tryCatch;function P(N,$,W,B){this.constructor$(N);var V=_();this._fn=V===null?$:w.domainBind(V,$),W!==void 0&&(W=u.resolve(W))._attachCancellationCallback(this),this._initialValue=W,this._currentCancellable=null,this._eachValues=B===b?Array(this._length):B===0?null:void 0,this._promise._captureStackTrace(),this._init$(void 0,-5)}function E(N,$){this.isFulfilled()?$._resolve(N):$._reject(N)}function T(N,$,W,B){return typeof $!="function"?p("expecting a function but got "+w.classString($)):new P(N,$,W,B).promise()}function A(N){this.accum=N,this.array._gotAccum(N);var $=v(this.value,this.array._promise);return $ instanceof u?(this.array._currentCancellable=$,$._then(j,void 0,void 0,this,void 0)):j.call(this,$)}function j(N){var $,W=this.array,B=W._promise,V=O(W._fn);B._pushContext(),($=W._eachValues!==void 0?V.call(B._boundValue(),N,this.index,this.length):V.call(B._boundValue(),this.accum,N,this.index,this.length))instanceof u&&(W._currentCancellable=$);var H=B._popContext();return x.checkForgottenReturns($,H,W._eachValues!==void 0?"Promise.each":"Promise.reduce",B),$}w.inherits(P,h),P.prototype._gotAccum=function(N){this._eachValues!==void 0&&this._eachValues!==null&&N!==b&&this._eachValues.push(N)},P.prototype._eachComplete=function(N){return this._eachValues!==null&&this._eachValues.push(N),this._eachValues},P.prototype._init=function(){},P.prototype._resolveEmptyArray=function(){this._resolve(this._eachValues!==void 0?this._eachValues:this._initialValue)},P.prototype.shouldCopyValues=function(){return!1},P.prototype._resolve=function(N){this._promise._resolveCallback(N),this._values=null},P.prototype._resultCancelled=function(N){if(N===this._initialValue)return this._cancel();this._isResolved()||(this._resultCancelled$(),this._currentCancellable instanceof u&&this._currentCancellable.cancel(),this._initialValue instanceof u&&this._initialValue.cancel())},P.prototype._iterate=function(N){var $,W;this._values=N;var B=N.length;if(this._initialValue!==void 0?($=this._initialValue,W=0):($=u.resolve(N[0]),W=1),this._currentCancellable=$,!$.isRejected())for(;W<B;++W){var V={accum:null,value:N[W],index:W,length:B,array:this};$=$._then(A,void 0,void 0,V,void 0)}this._eachValues!==void 0&&($=$._then(this._eachComplete,void 0,void 0,this,void 0)),$._then(E,E,void 0,$,this)},u.prototype.reduce=function(N,$){return T(this,N,$,null)},u.reduce=function(N,$,W,B){return T(N,$,W,B)}}},{"./util":36}],29:[function(a,s,c){var u,h=a("./util"),p=h.getNativePromise();if(h.isNode&&typeof MutationObserver>"u"){var v=i.setImmediate,b=r.nextTick;u=h.isRecentNode?function(_){v.call(i,_)}:function(_){b.call(r,_)}}else if(typeof p=="function"&&typeof p.resolve=="function"){var x=p.resolve();u=function(_){x.then(_)}}else u=typeof MutationObserver>"u"||typeof window<"u"&&window.navigator&&(window.navigator.standalone||window.cordova)?o!==void 0?function(_){o(_)}:typeof setTimeout<"u"?function(_){setTimeout(_,0)}:function(){throw new Error(`No async scheduler available
See http://goo.gl/MqrFmX
`)}:function(){var _=document.createElement("div"),w={attributes:!0},O=!1,P=document.createElement("div");return new MutationObserver(function(){_.classList.toggle("foo"),O=!1}).observe(P,w),function(E){var T=new MutationObserver(function(){T.disconnect(),E()});T.observe(_,w),O||(O=!0,P.classList.toggle("foo"))}}();s.exports=u},{"./util":36}],30:[function(a,s,c){s.exports=function(u,h,p){var v=u.PromiseInspection;function b(x){this.constructor$(x)}a("./util").inherits(b,h),b.prototype._promiseResolved=function(x,_){return this._values[x]=_,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},b.prototype._promiseFulfilled=function(x,_){var w=new v;return w._bitField=33554432,w._settledValueField=x,this._promiseResolved(_,w)},b.prototype._promiseRejected=function(x,_){var w=new v;return w._bitField=16777216,w._settledValueField=x,this._promiseResolved(_,w)},u.settle=function(x){return p.deprecated(".settle()",".reflect()"),new b(x).promise()},u.prototype.settle=function(){return u.settle(this)}}},{"./util":36}],31:[function(a,s,c){s.exports=function(u,h,p){var v=a("./util"),b=a("./errors").RangeError,x=a("./errors").AggregateError,_=v.isArray,w={};function O(E){this.constructor$(E),this._howMany=0,this._unwrap=!1,this._initialized=!1}function P(E,T){if((0|T)!==T||T<0)return p(`expecting a positive integer
See http://goo.gl/MqrFmX
`);var A=new O(E),j=A.promise();return A.setHowMany(T),A.init(),j}v.inherits(O,h),O.prototype._init=function(){if(this._initialized)if(this._howMany!==0){this._init$(void 0,-5);var E=_(this._values);!this._isResolved()&&E&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}else this._resolve([])},O.prototype.init=function(){this._initialized=!0,this._init()},O.prototype.setUnwrap=function(){this._unwrap=!0},O.prototype.howMany=function(){return this._howMany},O.prototype.setHowMany=function(E){this._howMany=E},O.prototype._promiseFulfilled=function(E){return this._addFulfilled(E),this._fulfilled()===this.howMany()&&(this._values.length=this.howMany(),this.howMany()===1&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0)},O.prototype._promiseRejected=function(E){return this._addRejected(E),this._checkOutcome()},O.prototype._promiseCancelled=function(){return this._values instanceof u||this._values==null?this._cancel():(this._addRejected(w),this._checkOutcome())},O.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var E=new x,T=this.length();T<this._values.length;++T)this._values[T]!==w&&E.push(this._values[T]);return E.length>0?this._reject(E):this._cancel(),!0}return!1},O.prototype._fulfilled=function(){return this._totalResolved},O.prototype._rejected=function(){return this._values.length-this.length()},O.prototype._addRejected=function(E){this._values.push(E)},O.prototype._addFulfilled=function(E){this._values[this._totalResolved++]=E},O.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},O.prototype._getRangeError=function(E){var T="Input array must contain at least "+this._howMany+" items but contains only "+E+" items";return new b(T)},O.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},u.some=function(E,T){return P(E,T)},u.prototype.some=function(E){return P(this,E)},u._SomePromiseArray=O}},{"./errors":12,"./util":36}],32:[function(a,s,c){s.exports=function(u){function h(O){O!==void 0?(O=O._target(),this._bitField=O._bitField,this._settledValueField=O._isFateSealed()?O._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}h.prototype._settledValue=function(){return this._settledValueField};var p=h.prototype.value=function(){if(!this.isFulfilled())throw new TypeError(`cannot get fulfillment value of a non-fulfilled promise
See http://goo.gl/MqrFmX
`);return this._settledValue()},v=h.prototype.error=h.prototype.reason=function(){if(!this.isRejected())throw new TypeError(`cannot get rejection reason of a non-rejected promise
See http://goo.gl/MqrFmX
`);return this._settledValue()},b=h.prototype.isFulfilled=function(){return(33554432&this._bitField)!=0},x=h.prototype.isRejected=function(){return(16777216&this._bitField)!=0},_=h.prototype.isPending=function(){return(50397184&this._bitField)==0},w=h.prototype.isResolved=function(){return(50331648&this._bitField)!=0};h.prototype.isCancelled=function(){return(8454144&this._bitField)!=0},u.prototype.__isCancelled=function(){return(65536&this._bitField)==65536},u.prototype._isCancelled=function(){return this._target().__isCancelled()},u.prototype.isCancelled=function(){return(8454144&this._target()._bitField)!=0},u.prototype.isPending=function(){return _.call(this._target())},u.prototype.isRejected=function(){return x.call(this._target())},u.prototype.isFulfilled=function(){return b.call(this._target())},u.prototype.isResolved=function(){return w.call(this._target())},u.prototype.value=function(){return p.call(this._target())},u.prototype.reason=function(){var O=this._target();return O._unsetRejectionIsUnhandled(),v.call(O)},u.prototype._value=function(){return this._settledValue()},u.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},u.PromiseInspection=h}},{}],33:[function(a,s,c){s.exports=function(u,h){var p=a("./util"),v=p.errorObj,b=p.isObject,x={}.hasOwnProperty;return function(_,w){if(b(_)){if(_ instanceof u)return _;var O=function(E){try{return function(T){return T.then}(E)}catch(T){return v.e=T,v}}(_);if(O===v){w&&w._pushContext();var P=u.reject(O.e);return w&&w._popContext(),P}if(typeof O=="function")return function(E){try{return x.call(E,"_promise0")}catch{return!1}}(_)?(P=new u(h),_._then(P._fulfill,P._reject,void 0,P,null),P):function(E,T,A){var j=new u(h),N=j;A&&A._pushContext(),j._captureStackTrace(),A&&A._popContext();var $=!0,W=p.tryCatch(T).call(E,function(B){j&&(j._resolveCallback(B),j=null)},function(B){j&&(j._rejectCallback(B,$,!0),j=null)});return $=!1,j&&W===v&&(j._rejectCallback(W.e,!0,!0),j=null),N}(_,O,w)}return _}}},{"./util":36}],34:[function(a,s,c){s.exports=function(u,h,p){var v=a("./util"),b=u.TimeoutError;function x(E){this.handle=E}x.prototype._resultCancelled=function(){clearTimeout(this.handle)};var _=function(E){return w(+this).thenReturn(E)},w=u.delay=function(E,T){var A,j;return T!==void 0?(A=u.resolve(T)._then(_,null,null,E,void 0),p.cancellation()&&T instanceof u&&A._setOnCancel(T)):(A=new u(h),j=setTimeout(function(){A._fulfill()},+E),p.cancellation()&&A._setOnCancel(new x(j)),A._captureStackTrace()),A._setAsyncGuaranteed(),A};function O(E){return clearTimeout(this.handle),E}function P(E){throw clearTimeout(this.handle),E}u.prototype.delay=function(E){return w(E,this)},u.prototype.timeout=function(E,T){var A,j;E=+E;var N=new x(setTimeout(function(){A.isPending()&&function($,W,B){var V;V=typeof W!="string"?W instanceof Error?W:new b("operation timed out"):new b(W),v.markAsOriginatingFromRejection(V),$._attachExtraTrace(V),$._reject(V),B!=null&&B.cancel()}(A,T,j)},E));return p.cancellation()?(j=this.then(),(A=j._then(O,P,void 0,N,void 0))._setOnCancel(N)):A=this._then(O,P,void 0,N,void 0),A}}},{"./util":36}],35:[function(a,s,c){s.exports=function(u,h,p,v,b,x){var _=a("./util"),w=a("./errors").TypeError,O=a("./util").inherits,P=_.errorObj,E=_.tryCatch,T={};function A(V){setTimeout(function(){throw V},0)}function j(V,H){var J=0,Q=V.length,re=new u(b);return function ae(){if(J>=Q)return re._fulfill();var se=function(oe){var K=p(oe);return K!==oe&&typeof oe._isDisposable=="function"&&typeof oe._getDisposer=="function"&&oe._isDisposable()&&K._setDisposable(oe._getDisposer()),K}(V[J++]);if(se instanceof u&&se._isDisposable()){try{se=p(se._getDisposer().tryDispose(H),V.promise)}catch(oe){return A(oe)}if(se instanceof u)return se._then(ae,A,null,null,null)}ae()}(),re}function N(V,H,J){this._data=V,this._promise=H,this._context=J}function $(V,H,J){this.constructor$(V,H,J)}function W(V){return N.isDisposer(V)?(this.resources[this.index]._setDisposable(V),V.promise()):V}function B(V){this.length=V,this.promise=null,this[V-1]=null}N.prototype.data=function(){return this._data},N.prototype.promise=function(){return this._promise},N.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():T},N.prototype.tryDispose=function(V){var H=this.resource(),J=this._context;J!==void 0&&J._pushContext();var Q=H!==T?this.doDispose(H,V):null;return J!==void 0&&J._popContext(),this._promise._unsetDisposable(),this._data=null,Q},N.isDisposer=function(V){return V!=null&&typeof V.resource=="function"&&typeof V.tryDispose=="function"},O($,N),$.prototype.doDispose=function(V,H){return this.data().call(V,V,H)},B.prototype._resultCancelled=function(){for(var V=this.length,H=0;H<V;++H){var J=this[H];J instanceof u&&J.cancel()}},u.using=function(){var V=arguments.length;if(V<2)return h("you must pass at least 2 arguments to Promise.using");var H,J=arguments[V-1];if(typeof J!="function")return h("expecting a function but got "+_.classString(J));var Q=!0;V===2&&Array.isArray(arguments[0])?(V=(H=arguments[0]).length,Q=!1):(H=arguments,V--);for(var re=new B(V),ae=0;ae<V;++ae){var se=H[ae];if(N.isDisposer(se)){var oe=se;(se=se.promise())._setDisposable(oe)}else{var K=p(se);K instanceof u&&(se=K._then(W,null,null,{resources:re,index:ae},void 0))}re[ae]=se}var G=new Array(re.length);for(ae=0;ae<G.length;++ae)G[ae]=u.resolve(re[ae]).reflect();var z=u.all(G).then(function(X){for(var le=0;le<X.length;++le){var ce=X[le];if(ce.isRejected())return P.e=ce.error(),P;if(!ce.isFulfilled())return void z.cancel();X[le]=ce.value()}ne._pushContext(),J=E(J);var de=Q?J.apply(void 0,X):J(X),be=ne._popContext();return x.checkForgottenReturns(de,be,"Promise.using",ne),de}),ne=z.lastly(function(){var X=new u.PromiseInspection(z);return j(re,X)});return re.promise=ne,ne._setOnCancel(re),ne},u.prototype._setDisposable=function(V){this._bitField=131072|this._bitField,this._disposer=V},u.prototype._isDisposable=function(){return(131072&this._bitField)>0},u.prototype._getDisposer=function(){return this._disposer},u.prototype._unsetDisposable=function(){this._bitField=-131073&this._bitField,this._disposer=void 0},u.prototype.disposer=function(V){if(typeof V=="function")return new $(V,this,v());throw new w}}},{"./errors":12,"./util":36}],36:[function(a,s,c){var u,h=a("./es5"),p=typeof navigator>"u",v={e:{}},b=typeof self<"u"?self:typeof window<"u"?window:i!==void 0?i:this!==void 0?this:null;function x(){try{var Q=u;return u=null,Q.apply(this,arguments)}catch(re){return v.e=re,v}}function _(Q){return Q==null||Q===!0||Q===!1||typeof Q=="string"||typeof Q=="number"}function w(Q,re,ae){if(_(Q))return Q;var se={value:ae,configurable:!0,enumerable:!1,writable:!0};return h.defineProperty(Q,re,se),Q}var O=function(){var Q=[Array.prototype,Object.prototype,Function.prototype],re=function(oe){for(var K=0;K<Q.length;++K)if(Q[K]===oe)return!0;return!1};if(h.isES5){var ae=Object.getOwnPropertyNames;return function(oe){for(var K=[],G=Object.create(null);oe!=null&&!re(oe);){var z;try{z=ae(oe)}catch{return K}for(var ne=0;ne<z.length;++ne){var X=z[ne];if(!G[X]){G[X]=!0;var le=Object.getOwnPropertyDescriptor(oe,X);le!=null&&le.get==null&&le.set==null&&K.push(X)}}oe=h.getPrototypeOf(oe)}return K}}var se={}.hasOwnProperty;return function(oe){if(re(oe))return[];var K=[];e:for(var G in oe)if(se.call(oe,G))K.push(G);else{for(var z=0;z<Q.length;++z)if(se.call(Q[z],G))continue e;K.push(G)}return K}}(),P=/this\s*\.\s*\S+\s*=/,E=/^[a-z$_][a-z$_0-9]*$/i;function T(Q){try{return Q+""}catch{return"[no string representation]"}}function A(Q){return Q instanceof Error||Q!==null&&typeof Q=="object"&&typeof Q.message=="string"&&typeof Q.name=="string"}function j(Q){return A(Q)&&h.propertyIsWritable(Q,"stack")}var N="stack"in new Error?function(Q){return j(Q)?Q:new Error(T(Q))}:function(Q){if(j(Q))return Q;try{throw new Error(T(Q))}catch(re){return re}};function $(Q){return{}.toString.call(Q)}var W=function(Q){return h.isArray(Q)?Q:null};if(typeof Symbol<"u"&&Symbol.iterator){var B=typeof Array.from=="function"?function(Q){return Array.from(Q)}:function(Q){for(var re,ae=[],se=Q[Symbol.iterator]();!(re=se.next()).done;)ae.push(re.value);return ae};W=function(Q){return h.isArray(Q)?Q:Q!=null&&typeof Q[Symbol.iterator]=="function"?B(Q):null}}var V=r!==void 0&&$(r).toLowerCase()==="[object process]",H=r!==void 0&&r.env!==void 0,J={isClass:function(Q){try{if(typeof Q=="function"){var re=h.names(Q.prototype),ae=h.isES5&&re.length>1,se=re.length>0&&!(re.length===1&&re[0]==="constructor"),oe=P.test(Q+"")&&h.names(Q).length>0;if(ae||se||oe)return!0}return!1}catch{return!1}},isIdentifier:function(Q){return E.test(Q)},inheritedDataKeys:O,getDataPropertyOrDefault:function(Q,re,ae){if(!h.isES5)return{}.hasOwnProperty.call(Q,re)?Q[re]:void 0;var se=Object.getOwnPropertyDescriptor(Q,re);return se!=null?se.get==null&&se.set==null?se.value:ae:void 0},thrower:function(Q){throw Q},isArray:h.isArray,asArray:W,notEnumerableProp:w,isPrimitive:_,isObject:function(Q){return typeof Q=="function"||typeof Q=="object"&&Q!==null},isError:A,canEvaluate:p,errorObj:v,tryCatch:function(Q){return u=Q,x},inherits:function(Q,re){var ae={}.hasOwnProperty;function se(){for(var oe in this.constructor=Q,this.constructor$=re,re.prototype)ae.call(re.prototype,oe)&&oe.charAt(oe.length-1)!=="$"&&(this[oe+"$"]=re.prototype[oe])}return se.prototype=re.prototype,Q.prototype=new se,Q.prototype},withAppended:function(Q,re){var ae,se=Q.length,oe=new Array(se+1);for(ae=0;ae<se;++ae)oe[ae]=Q[ae];return oe[ae]=re,oe},maybeWrapAsError:function(Q){return _(Q)?new Error(T(Q)):Q},toFastProperties:function(Q){return Q},filledRange:function(Q,re,ae){for(var se=new Array(Q),oe=0;oe<Q;++oe)se[oe]=re+oe+ae;return se},toString:T,canAttachTrace:j,ensureErrorObject:N,originatesFromRejection:function(Q){return Q!=null&&(Q instanceof Error.__BluebirdErrorTypes__.OperationalError||Q.isOperational===!0)},markAsOriginatingFromRejection:function(Q){try{w(Q,"isOperational",!0)}catch{}},classString:$,copyDescriptors:function(Q,re,ae){for(var se=h.names(Q),oe=0;oe<se.length;++oe){var K=se[oe];if(ae(K))try{h.defineProperty(re,K,h.getDescriptor(Q,K))}catch{}}},hasDevTools:typeof chrome<"u"&&chrome&&typeof chrome.loadTimes=="function",isNode:V,hasEnvVariables:H,env:function(Q){return H?r.env[Q]:void 0},global:b,getNativePromise:function(){if(typeof Promise=="function")try{var Q=new Promise(function(){});if({}.toString.call(Q)==="[object Promise]")return Promise}catch{}},domainBind:function(Q,re){return Q.bind(re)}};J.isRecentNode=J.isNode&&function(){var Q=r.versions.node.split(".").map(Number);return Q[0]===0&&Q[1]>10||Q[0]>0}(),J.isNode&&J.toFastProperties(r);try{throw new Error}catch(Q){J.lastLineError=Q}s.exports=J},{"./es5":13}]},{},[4])(4),typeof window<"u"&&window!==null?window.P=window.Promise:typeof self<"u"&&self!==null&&(self.P=self.Promise)}).call(this,n(4),n(0),n(11).setImmediate)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(r,i){if(!i.eol&&r){for(var o=0,a=r.length;o<a;o++)if(r[o]==="\r"){if(r[o+1]===`
`){i.eol=`\r
`;break}if(r[o+1]){i.eol="\r";break}}else if(r[o]===`
`){i.eol=`
`;break}}return i.eol||`
`}},function(e,t,n){var r=n(65),i=n(73);e.exports=function(o,a){var s=i(o,a);return r(s)?s:void 0}},function(e,t,n){var r=n(19).Symbol;e.exports=r},function(e,t,n){var r=n(67),i=typeof self=="object"&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},function(e,t){e.exports=function(n){var r=typeof n;return n!=null&&(r=="object"||r=="function")}},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var r=n(30),i=n(76);e.exports=function(o){return typeof o=="symbol"||i(o)&&r(o)=="[object Symbol]"}},function(e,t,n){(function(r,i){var o=n(6);e.exports=T;var a,s=n(37);T.ReadableState=E,n(12).EventEmitter;var c=function(G,z){return G.listeners(z).length},u=n(24),h=n(7).Buffer,p=r.Uint8Array||function(){},v=n(5);v.inherits=n(2);var b=n(41),x=void 0;x=b&&b.debuglog?b.debuglog("stream"):function(){};var _,w=n(42),O=n(25);v.inherits(T,u);var P=["error","close","destroy","pause","resume"];function E(G,z){a=a||n(1),G=G||{};var ne=z instanceof a;this.objectMode=!!G.objectMode,ne&&(this.objectMode=this.objectMode||!!G.readableObjectMode);var X=G.highWaterMark,le=G.readableHighWaterMark,ce=this.objectMode?16:16384;this.highWaterMark=X||X===0?X:ne&&(le||le===0)?le:ce,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new w,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=G.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,G.encoding&&(_||(_=n(26).StringDecoder),this.decoder=new _(G.encoding),this.encoding=G.encoding)}function T(G){if(a=a||n(1),!(this instanceof T))return new T(G);this._readableState=new E(G,this),this.readable=!0,G&&(typeof G.read=="function"&&(this._read=G.read),typeof G.destroy=="function"&&(this._destroy=G.destroy)),u.call(this)}function A(G,z,ne,X,le){var ce,de=G._readableState;return z===null?(de.reading=!1,function(be,M){if(!M.ended){if(M.decoder){var D=M.decoder.end();D&&D.length&&(M.buffer.push(D),M.length+=M.objectMode?1:D.length)}M.ended=!0,W(be)}}(G,de)):(le||(ce=function(be,M){var D;return function(Y){return h.isBuffer(Y)||Y instanceof p}(M)||typeof M=="string"||M===void 0||be.objectMode||(D=new TypeError("Invalid non-string/buffer chunk")),D}(de,z)),ce?G.emit("error",ce):de.objectMode||z&&z.length>0?(typeof z=="string"||de.objectMode||Object.getPrototypeOf(z)===h.prototype||(z=function(be){return h.from(be)}(z)),X?de.endEmitted?G.emit("error",new Error("stream.unshift() after end event")):j(G,de,z,!0):de.ended?G.emit("error",new Error("stream.push() after EOF")):(de.reading=!1,de.decoder&&!ne?(z=de.decoder.write(z),de.objectMode||z.length!==0?j(G,de,z,!1):V(G,de)):j(G,de,z,!1))):X||(de.reading=!1)),function(be){return!be.ended&&(be.needReadable||be.length<be.highWaterMark||be.length===0)}(de)}function j(G,z,ne,X){z.flowing&&z.length===0&&!z.sync?(G.emit("data",ne),G.read(0)):(z.length+=z.objectMode?1:ne.length,X?z.buffer.unshift(ne):z.buffer.push(ne),z.needReadable&&W(G)),V(G,z)}Object.defineProperty(T.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(G){this._readableState&&(this._readableState.destroyed=G)}}),T.prototype.destroy=O.destroy,T.prototype._undestroy=O.undestroy,T.prototype._destroy=function(G,z){this.push(null),z(G)},T.prototype.push=function(G,z){var ne,X=this._readableState;return X.objectMode?ne=!0:typeof G=="string"&&((z=z||X.defaultEncoding)!==X.encoding&&(G=h.from(G,z),z=""),ne=!0),A(this,G,z,!1,ne)},T.prototype.unshift=function(G){return A(this,G,null,!0,!1)},T.prototype.isPaused=function(){return this._readableState.flowing===!1},T.prototype.setEncoding=function(G){return _||(_=n(26).StringDecoder),this._readableState.decoder=new _(G),this._readableState.encoding=G,this};var N=8388608;function $(G,z){return G<=0||z.length===0&&z.ended?0:z.objectMode?1:G!=G?z.flowing&&z.length?z.buffer.head.data.length:z.length:(G>z.highWaterMark&&(z.highWaterMark=function(ne){return ne>=N?ne=N:(ne--,ne|=ne>>>1,ne|=ne>>>2,ne|=ne>>>4,ne|=ne>>>8,ne|=ne>>>16,ne++),ne}(G)),G<=z.length?G:z.ended?z.length:(z.needReadable=!0,0))}function W(G){var z=G._readableState;z.needReadable=!1,z.emittedReadable||(x("emitReadable",z.flowing),z.emittedReadable=!0,z.sync?o.nextTick(B,G):B(G))}function B(G){x("emit readable"),G.emit("readable"),re(G)}function V(G,z){z.readingMore||(z.readingMore=!0,o.nextTick(H,G,z))}function H(G,z){for(var ne=z.length;!z.reading&&!z.flowing&&!z.ended&&z.length<z.highWaterMark&&(x("maybeReadMore read 0"),G.read(0),ne!==z.length);)ne=z.length;z.readingMore=!1}function J(G){x("readable nexttick read 0"),G.read(0)}function Q(G,z){z.reading||(x("resume read 0"),G.read(0)),z.resumeScheduled=!1,z.awaitDrain=0,G.emit("resume"),re(G),z.flowing&&!z.reading&&G.read(0)}function re(G){var z=G._readableState;for(x("flow",z.flowing);z.flowing&&G.read()!==null;);}function ae(G,z){return z.length===0?null:(z.objectMode?ne=z.buffer.shift():!G||G>=z.length?(ne=z.decoder?z.buffer.join(""):z.buffer.length===1?z.buffer.head.data:z.buffer.concat(z.length),z.buffer.clear()):ne=function(X,le,ce){var de;return X<le.head.data.length?(de=le.head.data.slice(0,X),le.head.data=le.head.data.slice(X)):de=X===le.head.data.length?le.shift():ce?function(be,M){var D=M.head,Y=1,ue=D.data;for(be-=ue.length;D=D.next;){var ie=D.data,he=be>ie.length?ie.length:be;if(he===ie.length?ue+=ie:ue+=ie.slice(0,be),(be-=he)==0){he===ie.length?(++Y,D.next?M.head=D.next:M.head=M.tail=null):(M.head=D,D.data=ie.slice(he));break}++Y}return M.length-=Y,ue}(X,le):function(be,M){var D=h.allocUnsafe(be),Y=M.head,ue=1;for(Y.data.copy(D),be-=Y.data.length;Y=Y.next;){var ie=Y.data,he=be>ie.length?ie.length:be;if(ie.copy(D,D.length-be,0,he),(be-=he)==0){he===ie.length?(++ue,Y.next?M.head=Y.next:M.head=M.tail=null):(M.head=Y,Y.data=ie.slice(he));break}++ue}return M.length-=ue,D}(X,le),de}(G,z.buffer,z.decoder),ne);var ne}function se(G){var z=G._readableState;if(z.length>0)throw new Error('"endReadable()" called on non-empty stream');z.endEmitted||(z.ended=!0,o.nextTick(oe,z,G))}function oe(G,z){G.endEmitted||G.length!==0||(G.endEmitted=!0,z.readable=!1,z.emit("end"))}function K(G,z){for(var ne=0,X=G.length;ne<X;ne++)if(G[ne]===z)return ne;return-1}T.prototype.read=function(G){x("read",G),G=parseInt(G,10);var z=this._readableState,ne=G;if(G!==0&&(z.emittedReadable=!1),G===0&&z.needReadable&&(z.length>=z.highWaterMark||z.ended))return x("read: emitReadable",z.length,z.ended),z.length===0&&z.ended?se(this):W(this),null;if((G=$(G,z))===0&&z.ended)return z.length===0&&se(this),null;var X,le=z.needReadable;return x("need readable",le),(z.length===0||z.length-G<z.highWaterMark)&&x("length less than watermark",le=!0),z.ended||z.reading?x("reading or ended",le=!1):le&&(x("do read"),z.reading=!0,z.sync=!0,z.length===0&&(z.needReadable=!0),this._read(z.highWaterMark),z.sync=!1,z.reading||(G=$(ne,z))),(X=G>0?ae(G,z):null)===null?(z.needReadable=!0,G=0):z.length-=G,z.length===0&&(z.ended||(z.needReadable=!0),ne!==G&&z.ended&&se(this)),X!==null&&this.emit("data",X),X},T.prototype._read=function(G){this.emit("error",new Error("_read() is not implemented"))},T.prototype.pipe=function(G,z){var ne=this,X=this._readableState;switch(X.pipesCount){case 0:X.pipes=G;break;case 1:X.pipes=[X.pipes,G];break;default:X.pipes.push(G)}X.pipesCount+=1,x("pipe count=%d opts=%j",X.pipesCount,z);var le=z&&z.end===!1||G===i.stdout||G===i.stderr?he:ce;function ce(){x("onend"),G.end()}X.endEmitted?o.nextTick(le):ne.once("end",le),G.on("unpipe",function Se(Fe,ge){x("onunpipe"),Fe===ne&&ge&&ge.hasUnpiped===!1&&(ge.hasUnpiped=!0,x("cleanup"),G.removeListener("close",ue),G.removeListener("finish",ie),G.removeListener("drain",de),G.removeListener("error",Y),G.removeListener("unpipe",Se),ne.removeListener("end",ce),ne.removeListener("end",he),ne.removeListener("data",D),be=!0,!X.awaitDrain||G._writableState&&!G._writableState.needDrain||de())});var de=function(Se){return function(){var Fe=Se._readableState;x("pipeOnDrain",Fe.awaitDrain),Fe.awaitDrain&&Fe.awaitDrain--,Fe.awaitDrain===0&&c(Se,"data")&&(Fe.flowing=!0,re(Se))}}(ne);G.on("drain",de);var be=!1,M=!1;function D(Se){x("ondata"),M=!1,G.write(Se)!==!1||M||((X.pipesCount===1&&X.pipes===G||X.pipesCount>1&&K(X.pipes,G)!==-1)&&!be&&(x("false write response, pause",ne._readableState.awaitDrain),ne._readableState.awaitDrain++,M=!0),ne.pause())}function Y(Se){x("onerror",Se),he(),G.removeListener("error",Y),c(G,"error")===0&&G.emit("error",Se)}function ue(){G.removeListener("finish",ie),he()}function ie(){x("onfinish"),G.removeListener("close",ue),he()}function he(){x("unpipe"),ne.unpipe(G)}return ne.on("data",D),function(Se,Fe,ge){if(typeof Se.prependListener=="function")return Se.prependListener(Fe,ge);Se._events&&Se._events[Fe]?s(Se._events[Fe])?Se._events[Fe].unshift(ge):Se._events[Fe]=[ge,Se._events[Fe]]:Se.on(Fe,ge)}(G,"error",Y),G.once("close",ue),G.once("finish",ie),G.emit("pipe",ne),X.flowing||(x("pipe resume"),ne.resume()),G},T.prototype.unpipe=function(G){var z=this._readableState,ne={hasUnpiped:!1};if(z.pipesCount===0)return this;if(z.pipesCount===1)return G&&G!==z.pipes?this:(G||(G=z.pipes),z.pipes=null,z.pipesCount=0,z.flowing=!1,G&&G.emit("unpipe",this,ne),this);if(!G){var X=z.pipes,le=z.pipesCount;z.pipes=null,z.pipesCount=0,z.flowing=!1;for(var ce=0;ce<le;ce++)X[ce].emit("unpipe",this,ne);return this}var de=K(z.pipes,G);return de===-1?this:(z.pipes.splice(de,1),z.pipesCount-=1,z.pipesCount===1&&(z.pipes=z.pipes[0]),G.emit("unpipe",this,ne),this)},T.prototype.on=function(G,z){var ne=u.prototype.on.call(this,G,z);if(G==="data")this._readableState.flowing!==!1&&this.resume();else if(G==="readable"){var X=this._readableState;X.endEmitted||X.readableListening||(X.readableListening=X.needReadable=!0,X.emittedReadable=!1,X.reading?X.length&&W(this):o.nextTick(J,this))}return ne},T.prototype.addListener=T.prototype.on,T.prototype.resume=function(){var G=this._readableState;return G.flowing||(x("resume"),G.flowing=!0,function(z,ne){ne.resumeScheduled||(ne.resumeScheduled=!0,o.nextTick(Q,z,ne))}(this,G)),this},T.prototype.pause=function(){return x("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(x("pause"),this._readableState.flowing=!1,this.emit("pause")),this},T.prototype.wrap=function(G){var z=this,ne=this._readableState,X=!1;for(var le in G.on("end",function(){if(x("wrapped end"),ne.decoder&&!ne.ended){var de=ne.decoder.end();de&&de.length&&z.push(de)}z.push(null)}),G.on("data",function(de){x("wrapped data"),ne.decoder&&(de=ne.decoder.write(de)),(!ne.objectMode||de!=null)&&(ne.objectMode||de&&de.length)&&(z.push(de)||(X=!0,G.pause()))}),G)this[le]===void 0&&typeof G[le]=="function"&&(this[le]=function(de){return function(){return G[de].apply(G,arguments)}}(le));for(var ce=0;ce<P.length;ce++)G.on(P[ce],this.emit.bind(this,P[ce]));return this._read=function(de){x("wrapped _read",de),X&&(X=!1,G.resume())},this},Object.defineProperty(T.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),T._fromList=ae}).call(this,n(0),n(4))},function(e,t,n){e.exports=n(12).EventEmitter},function(e,t,n){var r=n(6);function i(o,a){o.emit("error",a)}e.exports={destroy:function(o,a){var s=this,c=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return c||u?(a?a(o):!o||this._writableState&&this._writableState.errorEmitted||r.nextTick(i,this,o),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(o||null,function(h){!a&&h?(r.nextTick(i,s,h),s._writableState&&(s._writableState.errorEmitted=!0)):a&&a(h)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(e,t,n){var r=n(7).Buffer,i=r.isEncoding||function(x){switch((x=""+x)&&x.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(x){var _;switch(this.encoding=function(w){var O=function(P){if(!P)return"utf8";for(var E;;)switch(P){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return P;default:if(E)return;P=(""+P).toLowerCase(),E=!0}}(w);if(typeof O!="string"&&(r.isEncoding===i||!i(w)))throw new Error("Unknown encoding: "+w);return O||w}(x),this.encoding){case"utf16le":this.text=c,this.end=u,_=4;break;case"utf8":this.fillLast=s,_=4;break;case"base64":this.text=h,this.end=p,_=3;break;default:return this.write=v,void(this.end=b)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(_)}function a(x){return x<=127?0:x>>5==6?2:x>>4==14?3:x>>3==30?4:x>>6==2?-1:-2}function s(x){var _=this.lastTotal-this.lastNeed,w=function(O,P,E){if((192&P[0])!=128)return O.lastNeed=0,"<22>";if(O.lastNeed>1&&P.length>1){if((192&P[1])!=128)return O.lastNeed=1,"<22>";if(O.lastNeed>2&&P.length>2&&(192&P[2])!=128)return O.lastNeed=2,"<22>"}}(this,x);return w!==void 0?w:this.lastNeed<=x.length?(x.copy(this.lastChar,_,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(x.copy(this.lastChar,_,0,x.length),void(this.lastNeed-=x.length))}function c(x,_){if((x.length-_)%2==0){var w=x.toString("utf16le",_);if(w){var O=w.charCodeAt(w.length-1);if(O>=55296&&O<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=x[x.length-2],this.lastChar[1]=x[x.length-1],w.slice(0,-1)}return w}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=x[x.length-1],x.toString("utf16le",_,x.length-1)}function u(x){var _=x&&x.length?this.write(x):"";if(this.lastNeed){var w=this.lastTotal-this.lastNeed;return _+this.lastChar.toString("utf16le",0,w)}return _}function h(x,_){var w=(x.length-_)%3;return w===0?x.toString("base64",_):(this.lastNeed=3-w,this.lastTotal=3,w===1?this.lastChar[0]=x[x.length-1]:(this.lastChar[0]=x[x.length-2],this.lastChar[1]=x[x.length-1]),x.toString("base64",_,x.length-w))}function p(x){var _=x&&x.length?this.write(x):"";return this.lastNeed?_+this.lastChar.toString("base64",0,3-this.lastNeed):_}function v(x){return x.toString(this.encoding)}function b(x){return x&&x.length?this.write(x):""}t.StringDecoder=o,o.prototype.write=function(x){if(x.length===0)return"";var _,w;if(this.lastNeed){if((_=this.fillLast(x))===void 0)return"";w=this.lastNeed,this.lastNeed=0}else w=0;return w<x.length?_?_+this.text(x,w):this.text(x,w):_||""},o.prototype.end=function(x){var _=x&&x.length?this.write(x):"";return this.lastNeed?_+"<22>":_},o.prototype.text=function(x,_){var w=function(P,E,T){var A=E.length-1;if(A<T)return 0;var j=a(E[A]);return j>=0?(j>0&&(P.lastNeed=j-1),j):--A<T||j===-2?0:(j=a(E[A]))>=0?(j>0&&(P.lastNeed=j-2),j):--A<T||j===-2?0:(j=a(E[A]))>=0?(j>0&&(j===2?j=0:P.lastNeed=j-3),j):0}(this,x,_);if(!this.lastNeed)return x.toString("utf8",_);this.lastTotal=w;var O=x.length-(w-this.lastNeed);return x.copy(this.lastChar,0,O),x.toString("utf8",_,O)},o.prototype.fillLast=function(x){if(this.lastNeed<=x.length)return x.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);x.copy(this.lastChar,this.lastTotal-this.lastNeed,0,x.length),this.lastNeed-=x.length}},function(e,t,n){e.exports=o;var r=n(1),i=n(5);function o(c){if(!(this instanceof o))return new o(c);r.call(this,c),this._transformState={afterTransform:(function(u,h){var p=this._transformState;p.transforming=!1;var v=p.writecb;if(!v)return this.emit("error",new Error("write callback called multiple times"));p.writechunk=null,p.writecb=null,h!=null&&this.push(h),v(u);var b=this._readableState;b.reading=!1,(b.needReadable||b.length<b.highWaterMark)&&this._read(b.highWaterMark)}).bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,c&&(typeof c.transform=="function"&&(this._transform=c.transform),typeof c.flush=="function"&&(this._flush=c.flush)),this.on("prefinish",a)}function a(){var c=this;typeof this._flush=="function"?this._flush(function(u,h){s(c,u,h)}):s(this,null,null)}function s(c,u,h){if(u)return c.emit("error",u);if(h!=null&&c.push(h),c._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(c._transformState.transforming)throw new Error("Calling transform done when still transforming");return c.push(null)}i.inherits=n(2),i.inherits(o,r),o.prototype.push=function(c,u){return this._transformState.needTransform=!1,r.prototype.push.call(this,c,u)},o.prototype._transform=function(c,u,h){throw new Error("_transform() is not implemented")},o.prototype._write=function(c,u,h){var p=this._transformState;if(p.writecb=h,p.writechunk=c,p.writeencoding=u,!p.transforming){var v=this._readableState;(p.needTransform||v.needReadable||v.length<v.highWaterMark)&&this._read(v.highWaterMark)}},o.prototype._read=function(c){var u=this._transformState;u.writechunk!==null&&u.writecb&&!u.transforming?(u.transforming=!0,this._transform(u.writechunk,u.writeencoding,u.afterTransform)):u.needTransform=!0},o.prototype._destroy=function(c,u){var h=this;r.prototype._destroy.call(this,c,function(p){u(p),h.emit("close")})}},function(e,t,n){(function(r){Object.defineProperty(t,"__esModule",{value:!0}),t.bufFromString=function(i){var o=r.byteLength(i),a=r.allocUnsafe?r.allocUnsafe(o):new r(o);return a.write(i),a},t.emptyBuffer=function(){return r.allocUnsafe?r.allocUnsafe(0):new r(0)},t.filterArray=function(i,o){for(var a=[],s=0;s<i.length;s++)o.indexOf(s)>-1&&a.push(i[s]);return a},t.trimLeft=String.prototype.trimLeft?function(i){return i.trimLeft()}:function(i){return i.replace(/^\s+/,"")},t.trimRight=String.prototype.trimRight?function(i){return i.trimRight()}:function(i){return i.replace(/\s+$/,"")}}).call(this,n(3).Buffer)},function(e,t,n){var r=this&&this.__extends||function(){var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var c in s)s.hasOwnProperty(c)&&(a[c]=s[c])};return function(a,s){function c(){this.constructor=a}o(a,s),a.prototype=s===null?Object.create(s):(c.prototype=s.prototype,new c)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=function(o){function a(s,c,u){var h=o.call(this,"Error: "+s+". JSON Line number: "+c+(u?" near: "+u:""))||this;return h.err=s,h.line=c,h.extra=u,h.name="CSV Parse Error",h}return r(a,o),a.column_mismatched=function(s,c){return new a("column_mismatched",s,c)},a.unclosed_quote=function(s,c){return new a("unclosed_quote",s,c)},a.fromJSON=function(s){return new a(s.err,s.line,s.extra)},a.prototype.toJSON=function(){return{err:this.err,line:this.line,extra:this.extra}},a}(Error);t.default=i},function(e,t,n){var r=n(18),i=n(68),o=n(69),a=r?r.toStringTag:void 0;e.exports=function(s){return s==null?s===void 0?"[object Undefined]":"[object Null]":a&&a in Object(s)?i(s):o(s)}},function(e,t){e.exports=function(n,r){return n===r||n!=n&&r!=r}},function(e,t,n){e.exports=n(33)},function(e,t,n){var r=n(34),i=function(o,a){return new r.Converter(o,a)};i.csv=i,i.Converter=r.Converter,e.exports=i},function(e,t,n){(function(r){var i=this&&this.__extends||function(){var b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,_){x.__proto__=_}||function(x,_){for(var w in _)_.hasOwnProperty(w)&&(x[w]=_[w])};return function(x,_){function w(){this.constructor=x}b(x,_),x.prototype=_===null?Object.create(_):(w.prototype=_.prototype,new w)}}(),o=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(36),s=n(50),c=n(51),u=o(n(15)),h=n(52),p=n(105),v=function(b){function x(_,w){w===void 0&&(w={});var O=b.call(this,w)||this;return O.options=w,O.params=s.mergeParams(_),O.runtime=c.initParseRuntime(O),O.result=new p.Result(O),O.processor=new h.ProcessorLocal(O),O.once("error",function(P){r(function(){O.result.processError(P),O.emit("done",P)})}),O.once("done",function(){O.processor.destroy()}),O}return i(x,b),x.prototype.preRawData=function(_){return this.runtime.preRawDataHook=_,this},x.prototype.preFileLine=function(_){return this.runtime.preFileLineHook=_,this},x.prototype.subscribe=function(_,w,O){return this.parseRuntime.subscribe={onNext:_,onError:w,onCompleted:O},this},x.prototype.fromFile=function(_,w){var O=this,P=n(!function(){var E=new Error("Cannot find module 'fs'");throw E.code="MODULE_NOT_FOUND",E}());return P.exists(_,function(E){E?P.createReadStream(_,w).pipe(O):O.emit("error",new Error("File does not exist. Check to make sure the file path to your csv is correct."))}),this},x.prototype.fromStream=function(_){return _.pipe(this),this},x.prototype.fromString=function(_){_.toString();var w=new a.Readable,O=0;return w._read=function(P){if(O>=_.length)this.push(null);else{var E=_.substr(O,P);this.push(E),O+=P}},this.fromStream(w)},x.prototype.then=function(_,w){var O=this;return new u.default(function(P,E){O.parseRuntime.then={onfulfilled:function(T){P(_?_(T):T)},onrejected:function(T){w?P(w(T)):E(T)}}})},Object.defineProperty(x.prototype,"parseParam",{get:function(){return this.params},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"parseRuntime",{get:function(){return this.runtime},enumerable:!0,configurable:!0}),x.prototype._transform=function(_,w,O){var P=this;this.processor.process(_).then(function(E){if(E.length>0)return P.runtime.started=!0,P.result.processResult(E)}).then(function(){P.emit("drained"),O()},function(E){P.runtime.hasError=!0,P.runtime.error=E,P.emit("error",E),O()})},x.prototype._flush=function(_){var w=this;this.processor.flush().then(function(O){if(O.length>0)return w.result.processResult(O)}).then(function(){w.processEnd(_)},function(O){w.emit("error",O),_()})},x.prototype.processEnd=function(_){this.result.endProcess(),this.emit("done"),_()},Object.defineProperty(x.prototype,"parsedLineNumber",{get:function(){return this.runtime.parsedLineNumber},enumerable:!0,configurable:!0}),x}(a.Transform);t.Converter=v}).call(this,n(11).setImmediate)},function(e,t,n){(function(r,i){(function(o,a){if(!o.setImmediate){var s,c=1,u={},h=!1,p=o.document,v=Object.getPrototypeOf&&Object.getPrototypeOf(o);v=v&&v.setTimeout?v:o,{}.toString.call(o.process)==="[object process]"?s=function(_){i.nextTick(function(){x(_)})}:function(){if(o.postMessage&&!o.importScripts){var _=!0,w=o.onmessage;return o.onmessage=function(){_=!1},o.postMessage("","*"),o.onmessage=w,_}}()?function(){var _="setImmediate$"+Math.random()+"$",w=function(O){O.source===o&&typeof O.data=="string"&&O.data.indexOf(_)===0&&x(+O.data.slice(_.length))};o.addEventListener?o.addEventListener("message",w,!1):o.attachEvent("onmessage",w),s=function(O){o.postMessage(_+O,"*")}}():o.MessageChannel?function(){var _=new MessageChannel;_.port1.onmessage=function(w){x(w.data)},s=function(w){_.port2.postMessage(w)}}():p&&"onreadystatechange"in p.createElement("script")?function(){var _=p.documentElement;s=function(w){var O=p.createElement("script");O.onreadystatechange=function(){x(w),O.onreadystatechange=null,_.removeChild(O),O=null},_.appendChild(O)}}():s=function(_){setTimeout(x,0,_)},v.setImmediate=function(_){typeof _!="function"&&(_=new Function(""+_));for(var w=new Array(arguments.length-1),O=0;O<w.length;O++)w[O]=arguments[O+1];var P={callback:_,args:w};return u[c]=P,s(c),c++},v.clearImmediate=b}function b(_){delete u[_]}function x(_){if(h)setTimeout(x,0,_);else{var w=u[_];if(w){h=!0;try{(function(O){var P=O.callback,E=O.args;switch(E.length){case 0:P();break;case 1:P(E[0]);break;case 2:P(E[0],E[1]);break;case 3:P(E[0],E[1],E[2]);break;default:P.apply(a,E)}})(w)}finally{b(_),h=!1}}}}})(typeof self>"u"?r===void 0?this:r:self)}).call(this,n(0),n(4))},function(e,t,n){e.exports=i;var r=n(12).EventEmitter;function i(){r.call(this)}n(2)(i,r),i.Readable=n(13),i.Writable=n(46),i.Duplex=n(47),i.Transform=n(48),i.PassThrough=n(49),i.Stream=i,i.prototype.pipe=function(o,a){var s=this;function c(_){o.writable&&o.write(_)===!1&&s.pause&&s.pause()}function u(){s.readable&&s.resume&&s.resume()}s.on("data",c),o.on("drain",u),o._isStdio||a&&a.end===!1||(s.on("end",p),s.on("close",v));var h=!1;function p(){h||(h=!0,o.end())}function v(){h||(h=!0,typeof o.destroy=="function"&&o.destroy())}function b(_){if(x(),r.listenerCount(this,"error")===0)throw _}function x(){s.removeListener("data",c),o.removeListener("drain",u),s.removeListener("end",p),s.removeListener("close",v),s.removeListener("error",b),o.removeListener("error",b),s.removeListener("end",x),s.removeListener("close",x),o.removeListener("close",x)}return s.on("error",b),o.on("error",b),s.on("end",x),s.on("close",x),o.on("close",x),o.emit("pipe",s),o}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(r){return n.call(r)=="[object Array]"}},function(e,t,n){t.byteLength=function(v){var b=u(v),x=b[0],_=b[1];return 3*(x+_)/4-_},t.toByteArray=function(v){for(var b,x=u(v),_=x[0],w=x[1],O=new o(3*(_+w)/4-w),P=0,E=w>0?_-4:_,T=0;T<E;T+=4)b=i[v.charCodeAt(T)]<<18|i[v.charCodeAt(T+1)]<<12|i[v.charCodeAt(T+2)]<<6|i[v.charCodeAt(T+3)],O[P++]=b>>16&255,O[P++]=b>>8&255,O[P++]=255&b;return w===2&&(b=i[v.charCodeAt(T)]<<2|i[v.charCodeAt(T+1)]>>4,O[P++]=255&b),w===1&&(b=i[v.charCodeAt(T)]<<10|i[v.charCodeAt(T+1)]<<4|i[v.charCodeAt(T+2)]>>2,O[P++]=b>>8&255,O[P++]=255&b),O},t.fromByteArray=function(v){for(var b,x=v.length,_=x%3,w=[],O=0,P=x-_;O<P;O+=16383)w.push(p(v,O,O+16383>P?P:O+16383));return _===1?(b=v[x-1],w.push(r[b>>2]+r[b<<4&63]+"==")):_===2&&(b=(v[x-2]<<8)+v[x-1],w.push(r[b>>10]+r[b>>4&63]+r[b<<2&63]+"=")),w.join("")};for(var r=[],i=[],o=typeof Uint8Array<"u"?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=a.length;s<c;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function u(v){var b=v.length;if(b%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var x=v.indexOf("=");return x===-1&&(x=b),[x,x===b?0:4-x%4]}function h(v){return r[v>>18&63]+r[v>>12&63]+r[v>>6&63]+r[63&v]}function p(v,b,x){for(var _,w=[],O=b;O<x;O+=3)_=(v[O]<<16&16711680)+(v[O+1]<<8&65280)+(255&v[O+2]),w.push(h(_));return w.join("")}i[45]=62,i[95]=63},function(e,t){t.read=function(n,r,i,o,a){var s,c,u=8*a-o-1,h=(1<<u)-1,p=h>>1,v=-7,b=i?a-1:0,x=i?-1:1,_=n[r+b];for(b+=x,s=_&(1<<-v)-1,_>>=-v,v+=u;v>0;s=256*s+n[r+b],b+=x,v-=8);for(c=s&(1<<-v)-1,s>>=-v,v+=o;v>0;c=256*c+n[r+b],b+=x,v-=8);if(s===0)s=1-p;else{if(s===h)return c?NaN:1/0*(_?-1:1);c+=Math.pow(2,o),s-=p}return(_?-1:1)*c*Math.pow(2,s-o)},t.write=function(n,r,i,o,a,s){var c,u,h,p=8*s-a-1,v=(1<<p)-1,b=v>>1,x=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,_=o?0:s-1,w=o?1:-1,O=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(u=isNaN(r)?1:0,c=v):(c=Math.floor(Math.log(r)/Math.LN2),r*(h=Math.pow(2,-c))<1&&(c--,h*=2),(r+=c+b>=1?x/h:x*Math.pow(2,1-b))*h>=2&&(c++,h/=2),c+b>=v?(u=0,c=v):c+b>=1?(u=(r*h-1)*Math.pow(2,a),c+=b):(u=r*Math.pow(2,b-1)*Math.pow(2,a),c=0));a>=8;n[i+_]=255&u,_+=w,u/=256,a-=8);for(c=c<<a|u,p+=a;p>0;n[i+_]=255&c,_+=w,c/=256,p-=8);n[i+_-w]|=128*O}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(r){return n.call(r)=="[object Array]"}},function(e,t){},function(e,t,n){var r=n(7).Buffer,i=n(43);function o(a,s,c){a.copy(s,c)}e.exports=function(){function a(){(function(s,c){if(!(s instanceof c))throw new TypeError("Cannot call a class as a function")})(this,a),this.head=null,this.tail=null,this.length=0}return a.prototype.push=function(s){var c={data:s,next:null};this.length>0?this.tail.next=c:this.head=c,this.tail=c,++this.length},a.prototype.unshift=function(s){var c={data:s,next:this.head};this.length===0&&(this.tail=c),this.head=c,++this.length},a.prototype.shift=function(){if(this.length!==0){var s=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,s}},a.prototype.clear=function(){this.head=this.tail=null,this.length=0},a.prototype.join=function(s){if(this.length===0)return"";for(var c=this.head,u=""+c.data;c=c.next;)u+=s+c.data;return u},a.prototype.concat=function(s){if(this.length===0)return r.alloc(0);if(this.length===1)return this.head.data;for(var c=r.allocUnsafe(s>>>0),u=this.head,h=0;u;)o(u.data,c,h),h+=u.data.length,u=u.next;return c},a}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var a=i.inspect({length:this.length});return this.constructor.name+" "+a})},function(e,t){},function(e,t,n){(function(r){function i(o){try{if(!r.localStorage)return!1}catch{return!1}var a=r.localStorage[o];return a!=null&&String(a).toLowerCase()==="true"}e.exports=function(o,a){if(i("noDeprecation"))return o;var s=!1;return function(){if(!s){if(i("throwDeprecation"))throw new Error(a);i("traceDeprecation")?console.trace(a):console.warn(a),s=!0}return o.apply(this,arguments)}}}).call(this,n(0))},function(e,t,n){e.exports=o;var r=n(27),i=n(5);function o(a){if(!(this instanceof o))return new o(a);r.call(this,a)}i.inherits=n(2),i.inherits(o,r),o.prototype._transform=function(a,s,c){c(null,a)}},function(e,t,n){e.exports=n(14)},function(e,t,n){e.exports=n(1)},function(e,t,n){e.exports=n(13).Transform},function(e,t,n){e.exports=n(13).PassThrough},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.mergeParams=function(r){var i={delimiter:",",ignoreColumns:void 0,includeColumns:void 0,quote:'"',trim:!0,checkType:!1,ignoreEmpty:!1,noheader:!1,headers:void 0,flatKeys:!1,maxRowLength:0,checkColumn:!1,escape:'"',colParser:{},eol:void 0,alwaysSplitAtEOL:!1,output:"json",nullObject:!1,downstreamFormat:"line",needEmitAll:!0};for(var o in r||(r={}),r)r.hasOwnProperty(o)&&(Array.isArray(r[o])?i[o]=[].concat(r[o]):i[o]=r[o]);return i}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.initParseRuntime=function(r){var i=r.parseParam,o={needProcessIgnoreColumn:!1,needProcessIncludeColumn:!1,selectedColumns:void 0,ended:!1,hasError:!1,error:void 0,delimiter:r.parseParam.delimiter,eol:r.parseParam.eol,columnConv:[],headerType:[],headerTitle:[],headerFlag:[],headers:void 0,started:!1,parsedLineNumber:0,columnValueSetter:[]};return i.ignoreColumns&&(o.needProcessIgnoreColumn=!0),i.includeColumns&&(o.needProcessIncludeColumn=!0),o}},function(e,t,n){(function(r){var i=this&&this.__extends||function(){var w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,P){O.__proto__=P}||function(O,P){for(var E in P)P.hasOwnProperty(E)&&(O[E]=P[E])};return function(O,P){function E(){this.constructor=O}w(O,P),O.prototype=P===null?Object.create(P):(E.prototype=P.prototype,new E)}}(),o=this&&this.__importDefault||function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(53),s=o(n(15)),c=n(54),u=o(n(16)),h=n(57),p=n(28),v=n(58),b=o(n(59)),x=o(n(29)),_=function(w){function O(){var P=w!==null&&w.apply(this,arguments)||this;return P.rowSplit=new v.RowSplit(P.converter),P.eolEmitted=!1,P._needEmitEol=void 0,P.headEmitted=!1,P._needEmitHead=void 0,P}return i(O,w),O.prototype.flush=function(){var P=this;if(this.runtime.csvLineBuffer&&this.runtime.csvLineBuffer.length>0){var E=this.runtime.csvLineBuffer;return this.runtime.csvLineBuffer=void 0,this.process(E,!0).then(function(T){return P.runtime.csvLineBuffer&&P.runtime.csvLineBuffer.length>0?s.default.reject(x.default.unclosed_quote(P.runtime.parsedLineNumber,P.runtime.csvLineBuffer.toString())):s.default.resolve(T)})}return s.default.resolve([])},O.prototype.destroy=function(){return s.default.resolve()},Object.defineProperty(O.prototype,"needEmitEol",{get:function(){return this._needEmitEol===void 0&&(this._needEmitEol=this.converter.listeners("eol").length>0),this._needEmitEol},enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"needEmitHead",{get:function(){return this._needEmitHead===void 0&&(this._needEmitHead=this.converter.listeners("header").length>0),this._needEmitHead},enumerable:!0,configurable:!0}),O.prototype.process=function(P,E){var T,A=this;return E===void 0&&(E=!1),T=E?P.toString():c.prepareData(P,this.converter.parseRuntime),s.default.resolve().then(function(){return A.runtime.preRawDataHook?A.runtime.preRawDataHook(T):T}).then(function(j){return j&&j.length>0?A.processCSV(j,E):s.default.resolve([])})},O.prototype.processCSV=function(P,E){var T=this,A=this.params,j=this.runtime;j.eol||u.default(P,j),this.needEmitEol&&!this.eolEmitted&&j.eol&&(this.converter.emit("eol",j.eol),this.eolEmitted=!0),A.ignoreEmpty&&!j.started&&(P=p.trimLeft(P));var N=h.stringToLines(P,j);return E?(N.lines.push(N.partial),N.partial=""):this.prependLeftBuf(p.bufFromString(N.partial)),N.lines.length>0?(j.preFileLineHook?this.runPreLineHook(N.lines):s.default.resolve(N.lines)).then(function($){return j.started||T.runtime.headers?T.processCSVBody($):T.processDataWithHead($)}):s.default.resolve([])},O.prototype.processDataWithHead=function(P){if(this.params.noheader)this.params.headers?this.runtime.headers=this.params.headers:this.runtime.headers=[];else{for(var E="",T=[];P.length;){var A=E+P.shift(),j=this.rowSplit.parse(A);if(j.closed){T=j.cells,E="";break}E=A+u.default(A,this.runtime)}if(this.prependLeftBuf(p.bufFromString(E)),T.length===0)return[];this.params.headers?this.runtime.headers=this.params.headers:this.runtime.headers=T}return(this.runtime.needProcessIgnoreColumn||this.runtime.needProcessIncludeColumn)&&this.filterHeader(),this.needEmitHead&&!this.headEmitted&&(this.converter.emit("header",this.runtime.headers),this.headEmitted=!0),this.processCSVBody(P)},O.prototype.filterHeader=function(){if(this.runtime.selectedColumns=[],this.runtime.headers){for(var P=this.runtime.headers,E=0;E<P.length;E++)if(this.params.ignoreColumns)if(this.params.ignoreColumns.test(P[E])){if(!this.params.includeColumns||!this.params.includeColumns.test(P[E]))continue;this.runtime.selectedColumns.push(E)}else this.runtime.selectedColumns.push(E);else this.params.includeColumns?this.params.includeColumns.test(P[E])&&this.runtime.selectedColumns.push(E):this.runtime.selectedColumns.push(E);this.runtime.headers=p.filterArray(this.runtime.headers,this.runtime.selectedColumns)}},O.prototype.processCSVBody=function(P){if(this.params.output==="line")return P;var E=this.rowSplit.parseMultiLines(P);return this.prependLeftBuf(p.bufFromString(E.partial)),this.params.output==="csv"?E.rowsCells:b.default(E.rowsCells,this.converter)},O.prototype.prependLeftBuf=function(P){P&&(this.runtime.csvLineBuffer?this.runtime.csvLineBuffer=r.concat([P,this.runtime.csvLineBuffer]):this.runtime.csvLineBuffer=P)},O.prototype.runPreLineHook=function(P){var E=this;return new s.default(function(T,A){(function j(N,$,W,B){if(W>=N.length)B();else if($.preFileLineHook){var V=N[W],H=$.preFileLineHook(V,$.parsedLineNumber+W);if(W++,H&&H.then)H.then(function(J){N[W-1]=J,j(N,$,W,B)});else{for(N[W-1]=H;W<N.length;)N[W]=$.preFileLineHook(N[W],$.parsedLineNumber+W),W++;B()}}else B()})(P,E.runtime,0,function(j){j?A(j):T(P)})})},O}(a.Processor);t.ProcessorLocal=_}).call(this,n(3).Buffer)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(i){this.converter=i,this.params=i.parseParam,this.runtime=i.parseRuntime};t.Processor=r},function(e,t,n){(function(r){var i=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0});var o=i(n(55));t.prepareData=function(a,s){var c=function(h,p){return p.csvLineBuffer&&p.csvLineBuffer.length>0?r.concat([p.csvLineBuffer,h]):h}(a,s);s.csvLineBuffer=void 0;var u=function(h,p){var v=h.length-1;if(128&h[v]){for(;(192&h[v])==128;)v--;v--}return v!=h.length-1?(p.csvLineBuffer=h.slice(v+1),h.slice(0,v+1)):h}(c,s).toString("utf8");return s.started===!1?o.default(u):u}}).call(this,n(3).Buffer)},function(e,t,n){(function(r){var i=n(56);e.exports=function(o){return typeof o=="string"&&o.charCodeAt(0)===65279?o.slice(1):r.isBuffer(o)&&i(o)&&o[0]===239&&o[1]===187&&o[2]===191?o.slice(3):o}}).call(this,n(3).Buffer)},function(e,t){e.exports=function(n){for(var r=0;r<n.length;)if(n[r]==9||n[r]==10||n[r]==13||32<=n[r]&&n[r]<=126)r+=1;else if(194<=n[r]&&n[r]<=223&&128<=n[r+1]&&n[r+1]<=191)r+=2;else if(n[r]==224&&160<=n[r+1]&&n[r+1]<=191&&128<=n[r+2]&&n[r+2]<=191||(225<=n[r]&&n[r]<=236||n[r]==238||n[r]==239)&&128<=n[r+1]&&n[r+1]<=191&&128<=n[r+2]&&n[r+2]<=191||n[r]==237&&128<=n[r+1]&&n[r+1]<=159&&128<=n[r+2]&&n[r+2]<=191)r+=3;else{if(!(n[r]==240&&144<=n[r+1]&&n[r+1]<=191&&128<=n[r+2]&&n[r+2]<=191&&128<=n[r+3]&&n[r+3]<=191||241<=n[r]&&n[r]<=243&&128<=n[r+1]&&n[r+1]<=191&&128<=n[r+2]&&n[r+2]<=191&&128<=n[r+3]&&n[r+3]<=191||n[r]==244&&128<=n[r+1]&&n[r+1]<=143&&128<=n[r+2]&&n[r+2]<=191&&128<=n[r+3]&&n[r+3]<=191))return!1;r+=4}return!0}},function(e,t,n){var r=this&&this.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(16));t.stringToLines=function(o,a){var s=i.default(o,a),c=o.split(s);return{lines:c,partial:c.pop()||""}}},function(e,t,n){var r=this&&this.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(16)),o=n(28),a=[",","|"," ",";",":"],s=function(){function c(u){this.conv=u,this.cachedRegExp={},this.delimiterEmitted=!1,this._needEmitDelimiter=void 0,this.quote=u.parseParam.quote,this.trim=u.parseParam.trim,this.escape=u.parseParam.escape}return Object.defineProperty(c.prototype,"needEmitDelimiter",{get:function(){return this._needEmitDelimiter===void 0&&(this._needEmitDelimiter=this.conv.listeners("delimiter").length>0),this._needEmitDelimiter},enumerable:!0,configurable:!0}),c.prototype.parse=function(u){if(u.length===0||this.conv.parseParam.ignoreEmpty&&u.trim().length===0)return{cells:[],closed:!0};var h=this.quote,p=this.trim;this.escape,(this.conv.parseRuntime.delimiter instanceof Array||this.conv.parseRuntime.delimiter.toLowerCase()==="auto")&&(this.conv.parseRuntime.delimiter=this.getDelimiter(u)),this.needEmitDelimiter&&!this.delimiterEmitted&&(this.conv.emit("delimiter",this.conv.parseRuntime.delimiter),this.delimiterEmitted=!0);var v=this.conv.parseRuntime.delimiter,b=u.split(v);if(h==="off"){if(p)for(var x=0;x<b.length;x++)b[x]=b[x].trim();return{cells:b,closed:!0}}return this.toCSVRow(b,p,h,v)},c.prototype.toCSVRow=function(u,h,p,v){for(var b=[],x=!1,_="",w=0,O=u.length;w<O;w++){var P=u[w];!x&&h&&(P=o.trimLeft(P));var E=P.length;if(x)this.isQuoteClose(P)?(x=!1,_+=v+(P=P.substr(0,E-1)),_=this.escapeQuote(_),h&&(_=o.trimRight(_)),b.push(_),_=""):_+=v+P;else{if(E===2&&P===this.quote+this.quote){b.push("");continue}if(this.isQuoteOpen(P)){if(P=P.substr(1),this.isQuoteClose(P)){P=P.substring(0,P.lastIndexOf(p)),P=this.escapeQuote(P),b.push(P);continue}if(P.indexOf(p)!==-1){for(var T=0,A="",j=0,N=P;j<N.length;j++){var $=N[j];$===p&&A!==this.escape?(T++,A=""):A=$}if(T%2==1){h&&(P=o.trimRight(P)),b.push(p+P);continue}x=!0,_+=P;continue}x=!0,_+=P;continue}h&&(P=o.trimRight(P)),b.push(P)}}return{cells:b,closed:!x}},c.prototype.getDelimiter=function(u){var h;if(this.conv.parseParam.delimiter==="auto")h=a;else{if(!(this.conv.parseParam.delimiter instanceof Array))return this.conv.parseParam.delimiter;h=this.conv.parseParam.delimiter}var p=0,v=",";return h.forEach(function(b){var x=u.split(b).length;x>p&&(v=b,p=x)}),v},c.prototype.isQuoteOpen=function(u){var h=this.quote,p=this.escape;return u[0]===h&&(u[1]!==h||u[1]===p&&(u[2]===h||u.length===2))},c.prototype.isQuoteClose=function(u){var h=this.quote,p=this.escape;this.conv.parseParam.trim&&(u=o.trimRight(u));for(var v=0,b=u.length-1;u[b]===h||u[b]===p;)b--,v++;return v%2!=0},c.prototype.escapeQuote=function(u){var h="es|"+this.quote+"|"+this.escape;this.cachedRegExp[h]===void 0&&(this.cachedRegExp[h]=new RegExp("\\"+this.escape+"\\"+this.quote,"g"));var p=this.cachedRegExp[h];return u.replace(p,this.quote)},c.prototype.parseMultiLines=function(u){for(var h=[],p="";u.length;){var v=p+u.shift(),b=this.parse(v);b.cells.length===0&&this.conv.parseParam.ignoreEmpty||(b.closed||this.conv.parseParam.alwaysSplitAtEOL?(this.conv.parseRuntime.selectedColumns?h.push(o.filterArray(b.cells,this.conv.parseRuntime.selectedColumns)):h.push(b.cells),p=""):p=v+(i.default(v,this.conv.parseRuntime)||`
`))}return{rowsCells:h,partial:p}},c}();t.RowSplit=s},function(e,t,n){var r=this&&this.__importDefault||function(O){return O&&O.__esModule?O:{default:O}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(29)),o=r(n(60)),a=/^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/;function s(O,P,E){if(P.parseParam.checkColumn&&P.parseRuntime.headers&&O.length!==P.parseRuntime.headers.length)throw i.default.column_mismatched(P.parseRuntime.parsedLineNumber+E);return function(T,A,j){for(var N=!1,$={},W=0,B=T.length;W<B;W++){var V=T[W];if(!j.parseParam.ignoreEmpty||V!==""){N=!0;var H=A[W];H&&H!==""||(H=A[W]="field"+(W+1));var J=u(H,W,j);if(J){var Q=J(V,H,$,T,W);Q!==void 0&&h($,H,Q,j,W)}else j.parseParam.checkType&&(V=b(V,H,W,j)(V)),V!==void 0&&h($,H,V,j,W)}}return N?$:null}(O,P.parseRuntime.headers||[],P)||null}t.default=function(O,P){for(var E=[],T=0,A=O.length;T<A;T++){var j=s(O[T],P,T);j&&E.push(j)}return E};var c={string:_,number:x,omit:function(){}};function u(O,P,E){if(E.parseRuntime.columnConv[P]!==void 0)return E.parseRuntime.columnConv[P];var T=E.parseParam.colParser[O];if(T===void 0)return E.parseRuntime.columnConv[P]=null;if(typeof T=="object"&&(T=T.cellParser||"string"),typeof T=="string"){T=T.trim().toLowerCase();var A=c[T];return E.parseRuntime.columnConv[P]=A||null}return E.parseRuntime.columnConv[P]=typeof T=="function"?T:null}function h(O,P,E,T,A){if(!T.parseRuntime.columnValueSetter[A])if(T.parseParam.flatKeys)T.parseRuntime.columnValueSetter[A]=p;else if(P.indexOf(".")>-1){for(var j=P.split("."),N=!0;j.length>0;)if(j.shift().length===0){N=!1;break}!N||T.parseParam.colParser[P]&&T.parseParam.colParser[P].flat?T.parseRuntime.columnValueSetter[A]=p:T.parseRuntime.columnValueSetter[A]=v}else T.parseRuntime.columnValueSetter[A]=p;T.parseParam.nullObject===!0&&E==="null"&&(E=null),T.parseRuntime.columnValueSetter[A](O,P,E)}function p(O,P,E){O[P]=E}function v(O,P,E){o.default(O,P,E)}function b(O,P,E,T){return T.parseRuntime.headerType[E]?T.parseRuntime.headerType[E]:P.indexOf("number#!")>-1?T.parseRuntime.headerType[E]=x:P.indexOf("string#!")>-1?T.parseRuntime.headerType[E]=_:T.parseParam.checkType?T.parseRuntime.headerType[E]=w:T.parseRuntime.headerType[E]=_}function x(O){var P=parseFloat(O);return isNaN(P)?O:P}function _(O){return O.toString()}function w(O){var P=O.trim();return P===""?_(O):a.test(P)?x(O):P.length===5&&P.toLowerCase()==="false"||P.length===4&&P.toLowerCase()==="true"?function(E){var T=E.trim();return T.length!==5||T.toLowerCase()!=="false"}(O):P[0]==="{"&&P[P.length-1]==="}"||P[0]==="["&&P[P.length-1]==="]"?function(E){try{return JSON.parse(E)}catch{return E}}(O):_(O)}},function(e,t,n){var r=n(61);e.exports=function(i,o,a){return i==null?i:r(i,o,a)}},function(e,t,n){var r=n(62),i=n(74),o=n(103),a=n(20),s=n(104);e.exports=function(c,u,h,p){if(!a(c))return c;for(var v=-1,b=(u=i(u,c)).length,x=b-1,_=c;_!=null&&++v<b;){var w=s(u[v]),O=h;if(v!=x){var P=_[w];(O=p?p(P,w,_):void 0)===void 0&&(O=a(P)?P:o(u[v+1])?[]:{})}r(_,w,O),_=_[w]}return c}},function(e,t,n){var r=n(63),i=n(31),o=Object.prototype.hasOwnProperty;e.exports=function(a,s,c){var u=a[s];o.call(a,s)&&i(u,c)&&(c!==void 0||s in a)||r(a,s,c)}},function(e,t,n){var r=n(64);e.exports=function(i,o,a){o=="__proto__"&&r?r(i,o,{configurable:!0,enumerable:!0,value:a,writable:!0}):i[o]=a}},function(e,t,n){var r=n(17),i=function(){try{var o=r(Object,"defineProperty");return o({},"",{}),o}catch{}}();e.exports=i},function(e,t,n){var r=n(66),i=n(70),o=n(20),a=n(72),s=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,h=c.toString,p=u.hasOwnProperty,v=RegExp("^"+h.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(b){return!(!o(b)||i(b))&&(r(b)?v:s).test(a(b))}},function(e,t,n){var r=n(30),i=n(20);e.exports=function(o){if(!i(o))return!1;var a=r(o);return a=="[object Function]"||a=="[object GeneratorFunction]"||a=="[object AsyncFunction]"||a=="[object Proxy]"}},function(e,t,n){(function(r){var i=typeof r=="object"&&r&&r.Object===Object&&r;e.exports=i}).call(this,n(0))},function(e,t,n){var r=n(18),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(c){var u=o.call(c,s),h=c[s];try{c[s]=void 0;var p=!0}catch{}var v=a.call(c);return p&&(u?c[s]=h:delete c[s]),v}},function(e,t){var n=Object.prototype.toString;e.exports=function(r){return n.call(r)}},function(e,t,n){var r=n(71),i=function(){var o=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}();e.exports=function(o){return!!i&&i in o}},function(e,t,n){var r=n(19)["__core-js_shared__"];e.exports=r},function(e,t){var n=Function.prototype.toString;e.exports=function(r){if(r!=null){try{return n.call(r)}catch{}try{return r+""}catch{}}return""}},function(e,t){e.exports=function(n,r){return n==null?void 0:n[r]}},function(e,t,n){var r=n(21),i=n(75),o=n(77),a=n(100);e.exports=function(s,c){return r(s)?s:i(s,c)?[s]:o(a(s))}},function(e,t,n){var r=n(21),i=n(22),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(s,c){if(r(s))return!1;var u=typeof s;return!(u!="number"&&u!="symbol"&&u!="boolean"&&s!=null&&!i(s))||a.test(s)||!o.test(s)||c!=null&&s in Object(c)}},function(e,t){e.exports=function(n){return n!=null&&typeof n=="object"}},function(e,t,n){var r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,o=n(78)(function(a){var s=[];return a.charCodeAt(0)===46&&s.push(""),a.replace(r,function(c,u,h,p){s.push(h?p.replace(i,"$1"):u||c)}),s});e.exports=o},function(e,t,n){var r=n(79);e.exports=function(i){var o=r(i,function(s){return a.size===500&&a.clear(),s}),a=o.cache;return o}},function(e,t,n){var r=n(80),i="Expected a function";function o(a,s){if(typeof a!="function"||s!=null&&typeof s!="function")throw new TypeError(i);var c=function(){var u=arguments,h=s?s.apply(this,u):u[0],p=c.cache;if(p.has(h))return p.get(h);var v=a.apply(this,u);return c.cache=p.set(h,v)||p,v};return c.cache=new(o.Cache||r),c}o.Cache=r,e.exports=o},function(e,t,n){var r=n(81),i=n(95),o=n(97),a=n(98),s=n(99);function c(u){var h=-1,p=u==null?0:u.length;for(this.clear();++h<p;){var v=u[h];this.set(v[0],v[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,e.exports=c},function(e,t,n){var r=n(82),i=n(88),o=n(94);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},function(e,t,n){var r=n(83),i=n(84),o=n(85),a=n(86),s=n(87);function c(u){var h=-1,p=u==null?0:u.length;for(this.clear();++h<p;){var v=u[h];this.set(v[0],v[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,e.exports=c},function(e,t,n){var r=n(8);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t){e.exports=function(n){var r=this.has(n)&&delete this.__data__[n];return this.size-=r?1:0,r}},function(e,t,n){var r=n(8),i=Object.prototype.hasOwnProperty;e.exports=function(o){var a=this.__data__;if(r){var s=a[o];return s==="__lodash_hash_undefined__"?void 0:s}return i.call(a,o)?a[o]:void 0}},function(e,t,n){var r=n(8),i=Object.prototype.hasOwnProperty;e.exports=function(o){var a=this.__data__;return r?a[o]!==void 0:i.call(a,o)}},function(e,t,n){var r=n(8);e.exports=function(i,o){var a=this.__data__;return this.size+=this.has(i)?0:1,a[i]=r&&o===void 0?"__lodash_hash_undefined__":o,this}},function(e,t,n){var r=n(89),i=n(90),o=n(91),a=n(92),s=n(93);function c(u){var h=-1,p=u==null?0:u.length;for(this.clear();++h<p;){var v=u[h];this.set(v[0],v[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,e.exports=c},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(9),i=Array.prototype.splice;e.exports=function(o){var a=this.__data__,s=r(a,o);return!(s<0||(s==a.length-1?a.pop():i.call(a,s,1),--this.size,0))}},function(e,t,n){var r=n(9);e.exports=function(i){var o=this.__data__,a=r(o,i);return a<0?void 0:o[a][1]}},function(e,t,n){var r=n(9);e.exports=function(i){return r(this.__data__,i)>-1}},function(e,t,n){var r=n(9);e.exports=function(i,o){var a=this.__data__,s=r(a,i);return s<0?(++this.size,a.push([i,o])):a[s][1]=o,this}},function(e,t,n){var r=n(17)(n(19),"Map");e.exports=r},function(e,t,n){var r=n(10);e.exports=function(i){var o=r(this,i).delete(i);return this.size-=o?1:0,o}},function(e,t){e.exports=function(n){var r=typeof n;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?n!=="__proto__":n===null}},function(e,t,n){var r=n(10);e.exports=function(i){return r(this,i).get(i)}},function(e,t,n){var r=n(10);e.exports=function(i){return r(this,i).has(i)}},function(e,t,n){var r=n(10);e.exports=function(i,o){var a=r(this,i),s=a.size;return a.set(i,o),this.size+=a.size==s?0:1,this}},function(e,t,n){var r=n(101);e.exports=function(i){return i==null?"":r(i)}},function(e,t,n){var r=n(18),i=n(102),o=n(21),a=n(22),s=r?r.prototype:void 0,c=s?s.toString:void 0;e.exports=function u(h){if(typeof h=="string")return h;if(o(h))return i(h,u)+"";if(a(h))return c?c.call(h):"";var p=h+"";return p=="0"&&1/h==-1/0?"-0":p}},function(e,t){e.exports=function(n,r){for(var i=-1,o=n==null?0:n.length,a=Array(o);++i<o;)a[i]=r(n[i],i,n);return a}},function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(r,i){var o=typeof r;return!!(i=i??9007199254740991)&&(o=="number"||o!="symbol"&&n.test(r))&&r>-1&&r%1==0&&r<i}},function(e,t,n){var r=n(22);e.exports=function(i){if(typeof i=="string"||r(i))return i;var o=i+"";return o=="0"&&1/i==-1/0?"-0":o}},function(e,t,n){var r=this&&this.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(15)),o=n(106),a=function(){function c(u){this.converter=u,this.finalResult=[]}return Object.defineProperty(c.prototype,"needEmitLine",{get:function(){return!!this.converter.parseRuntime.subscribe&&!!this.converter.parseRuntime.subscribe.onNext||this.needPushDownstream},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"needPushDownstream",{get:function(){return this._needPushDownstream===void 0&&(this._needPushDownstream=this.converter.listeners("data").length>0||this.converter.listeners("readable").length>0),this._needPushDownstream},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"needEmitAll",{get:function(){return!!this.converter.parseRuntime.then&&this.converter.parseParam.needEmitAll},enumerable:!0,configurable:!0}),c.prototype.processResult=function(u){var h=this,p=this.converter.parseRuntime.parsedLineNumber;return this.needPushDownstream&&this.converter.parseParam.downstreamFormat==="array"&&p===0&&s(this.converter,"["+o.EOL),new i.default(function(v,b){h.needEmitLine?function x(_,w,O,P,E){if(O>=_.length)E();else if(w.parseRuntime.subscribe&&w.parseRuntime.subscribe.onNext){var T=w.parseRuntime.subscribe.onNext,A=_[O],j=T(A,w.parseRuntime.parsedLineNumber+O);if(O++,j&&j.then)j.then(function(){(function($,W,B,V,H,J,Q){H&&s(B,Q),x($,B,V,H,J)})(_,0,w,O,P,E,A)},E);else{for(P&&s(w,A);O<_.length;){var N=_[O];T(N,w.parseRuntime.parsedLineNumber+O),O++,P&&s(w,N)}E()}}else{if(P)for(;O<_.length;)N=_[O++],s(w,N);E()}}(u,h.converter,0,h.needPushDownstream,function(x){x?b(x):(h.appendFinalResult(u),v())}):(h.appendFinalResult(u),v())})},c.prototype.appendFinalResult=function(u){this.needEmitAll&&(this.finalResult=this.finalResult.concat(u)),this.converter.parseRuntime.parsedLineNumber+=u.length},c.prototype.processError=function(u){this.converter.parseRuntime.subscribe&&this.converter.parseRuntime.subscribe.onError&&this.converter.parseRuntime.subscribe.onError(u),this.converter.parseRuntime.then&&this.converter.parseRuntime.then.onrejected&&this.converter.parseRuntime.then.onrejected(u)},c.prototype.endProcess=function(){this.converter.parseRuntime.then&&this.converter.parseRuntime.then.onfulfilled&&(this.needEmitAll?this.converter.parseRuntime.then.onfulfilled(this.finalResult):this.converter.parseRuntime.then.onfulfilled([])),this.converter.parseRuntime.subscribe&&this.converter.parseRuntime.subscribe.onCompleted&&this.converter.parseRuntime.subscribe.onCompleted(),this.needPushDownstream&&this.converter.parseParam.downstreamFormat==="array"&&s(this.converter,"]"+o.EOL)},c}();function s(c,u){if(typeof u!="object"||c.options.objectMode)c.push(u);else{var h=JSON.stringify(u);c.push(h+(c.parseParam.downstreamFormat==="array"?","+o.EOL:o.EOL),"utf8")}}t.Result=a},function(e,t){t.endianness=function(){return"LE"},t.hostname=function(){return typeof location<"u"?location.hostname:""},t.loadavg=function(){return[]},t.uptime=function(){return 0},t.freemem=function(){return Number.MAX_VALUE},t.totalmem=function(){return Number.MAX_VALUE},t.cpus=function(){return[]},t.type=function(){return"Browser"},t.release=function(){return typeof navigator<"u"?navigator.appVersion:""},t.networkInterfaces=t.getNetworkInterfaces=function(){return{}},t.arch=function(){return"javascript"},t.platform=function(){return"browser"},t.tmpdir=t.tmpDir=function(){return"/tmp"},t.EOL=`
`,t.homedir=function(){return"/"}}])),qO}var IAe=LAe();const DAe=Nt(IAe),$Ae=e=>new Promise(t=>{DAe().fromString(e).then(t)}),FAe=new g7,BAe=e=>FAe.parse(e),UAe="shlink",p8=e=>`${UAe}.${e}`;class zAe{constructor(t){Ec(this,"get",t=>{const n=this.localStorage.getItem(p8(t));return n?JSON.parse(n):void 0});Ec(this,"set",(t,n)=>this.localStorage.setItem(p8(t),JSON.stringify(n)));this.localStorage=t}}class VAe{constructor(t){this.storage=t}getTagColors(){return this.storage.get("colors")??{}}storeTagColors(t){this.storage.set("colors",t)}}const WAe=e=>{e.constant("localStorage",window.localStorage),e.service("Storage",zAe,"localStorage"),e.service("TagColorsStorage",VAe,"Storage"),e.constant("csvToJson",$Ae),e.constant("jsonToCsv",BAe),e.serviceFactory("useTimeoutToggle",()=>jF)},Bu=new K8,{container:dA}=Bu,qAe=(e,t)=>(...n)=>e[t](...n),HAe=(e,t)=>({...e,[t]:qAe(dA,t)}),GAe=e=>t=>Object.fromEntries(e.map(n=>[n,t[n]])),Lb=(e,t=[])=>S8(e?GAe(e):null,t.reduce(HAe,{}));voe(Bu,Lb);Bje(Bu,Lb);tK(Bu);EAe(Bu,Lb);WAe(Bu);MAe(Bu,Lb);var HO={},fg={exports:{}},m8;function KAe(){return m8||(m8=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isPlainObject=t.clone=t.recursive=t.merge=t.main=void 0,e.exports=t=n,t.default=n;function n(){for(var u=[],h=0;h<arguments.length;h++)u[h]=arguments[h];return r.apply(void 0,u)}t.main=n,n.clone=o,n.isPlainObject=a,n.recursive=i;function r(){for(var u=[],h=0;h<arguments.length;h++)u[h]=arguments[h];return c(u[0]===!0,!1,u)}t.merge=r;function i(){for(var u=[],h=0;h<arguments.length;h++)u[h]=arguments[h];return c(u[0]===!0,!0,u)}t.recursive=i;function o(u){if(Array.isArray(u)){for(var h=[],p=0;p<u.length;++p)h.push(o(u[p]));return h}else if(a(u)){var h={};for(var p in u)h[p]=o(u[p]);return h}else return u}t.clone=o;function a(u){return u&&typeof u=="object"&&!Array.isArray(u)}t.isPlainObject=a;function s(u,h){if(!a(u))return h;for(var p in h)p==="__proto__"||p==="constructor"||p==="prototype"||(u[p]=a(u[p])&&a(h[p])?s(u[p],h[p]):h[p]);return u}function c(u,h,p){var v;(u||!a(v=p.shift()))&&(v={});for(var b=0;b<p.length;++b){var x=p[b];if(a(x)){for(var _ in x)if(!(_==="__proto__"||_==="constructor"||_==="prototype")){var w=u?o(x[_]):x[_];v[_]=h?s(v[_],w):w}}}return v}}(fg,fg.exports)),fg.exports}var v8;function YAe(){return v8||(v8=1,function(e){var t=n(KAe());Object.defineProperty(e,"__esModule",{value:!0}),e.clear=J,e.combineLoads=H,e.load=V,e.save=B;function n(K){return K&&K.__esModule?K:{default:K}}function r(K,G){return c(K)||s(K,G)||o(K,G)||i()}function i(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o(K,G){if(K){if(typeof K=="string")return a(K,G);var z=Object.prototype.toString.call(K).slice(8,-1);return z==="Object"&&K.constructor&&(z=K.constructor.name),z==="Map"||z==="Set"?Array.from(K):z==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(z)?a(K,G):void 0}}function a(K,G){(G==null||G>K.length)&&(G=K.length);for(var z=0,ne=Array(G);z<G;z++)ne[z]=K[z];return ne}function s(K,G){var z=K==null?null:typeof Symbol<"u"&&K[Symbol.iterator]||K["@@iterator"];if(z!=null){var ne,X,le=[],ce=!0,de=!1;try{for(z=z.call(K);!(ce=(ne=z.next()).done)&&(le.push(ne.value),!(G&&le.length===G));ce=!0);}catch(be){de=!0,X=be}finally{try{ce||z.return==null||z.return()}finally{if(de)throw X}}return le}}function c(K){if(Array.isArray(K))return K}function u(K){"@babel/helpers - typeof";return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(G){return typeof G}:function(G){return G&&typeof Symbol=="function"&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},u(K)}function h(K,G,z){return G in K?Object.defineProperty(K,G,{value:z,enumerable:!0,configurable:!0,writable:!0}):K[G]=z,K}var p="[Redux-LocalStorage-Simple]",v="redux_localstorage_simple",b="_",x=[],_=[],w=0,O=!1,P=!1,E=new Map;function T(K){console.warn(p,K)}function A(){}var j=function(K){return K?A:T};function N(K,G){return G===void 0?null:K.length===1?G[K[0]]:N(K.slice(1),G[K[0]])}function $(K){function G(ne,X){return ne.length===0?X:G(ne.slice(1),h({},ne[0],X))}var z=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{};return G(K.split(".").reverse(),z)}function W(K){this.warnFn=K||T}Object.defineProperty(W.prototype,"length",{get:function(){try{return localStorage.length}catch(K){this.warnFn(K)}return 0},configurable:!0,enumerable:!0}),W.prototype.key=function(K){try{return localStorage.key(K)}catch(G){this.warnFn(G)}return null},W.prototype.setItem=function(K,G){try{localStorage.setItem(K,JSON.stringify(G))}catch(z){this.warnFn(z)}},W.prototype.getItem=function(K){try{return JSON.parse(localStorage.getItem(K))}catch(G){this.warnFn(G)}return null},W.prototype.removeItem=function(K){try{localStorage.removeItem(K)}catch(G){this.warnFn(G)}};function B(){var K=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},G=K.states,z=G===void 0?x:G,ne=K.ignoreStates,X=ne===void 0?_:ne,le=K.namespace,ce=le===void 0?v:le,de=K.namespaceSeparator,be=de===void 0?b:de,M=K.debounce,D=M===void 0?w:M,Y=K.disableWarnings,ue=Y===void 0?P:Y;return function(ie){return function(he){return function(Se){function Fe(Ue,qe){return 1<Ue.split(".").length?N(Ue.split("."),qe):N([Ue],qe)}function ge(){z.length===0?He.setItem(ce,Ee):z.forEach(function(Ue){var qe=ce+be+Ue,ye=Fe(Ue,Ee);ye?He.setItem(qe,ye):He.removeItem(qe)})}var Ee,je=j(ue),Me=he(Se);Q(z)||(console.error(p,"'states' parameter in 'save()' method was passed a non-array value. Setting default value instead. Check your 'save()' method."),z=x),Q(X)||(console.error(p,"'ignoreStates' parameter in 'save()' method was passed a non-array value. Setting default value instead. Check your 'save()' method."),X=_),0<X.length&&(X=X.filter(function(Ue){return re(Ue)?Ue:void console.error(p,"'ignoreStates' array contains a non-string value. Ignoring this value. Check your 'ignoreStates' array.")})),re(ce)||(console.error(p,"'namespace' parameter in 'save()' method was passed a non-string value. Setting default value instead. Check your 'save()' method."),ce=v),re(be)||(console.error(p,"'namespaceSeparator' parameter in 'save()' method was passed a non-string value. Setting default value instead. Check your 'save()' method."),be=b),ae(D)||(console.error(p,"'debounce' parameter in 'save()' method was passed a non-integer value. Setting default value instead. Check your 'save()' method."),D=w),Ee=0<X.length?oe(X,ie.getState()):ie.getState();var He=new W(je);return D?(E.get(z+ce)&&clearTimeout(E.get(z+ce)),E.set(z+ce,setTimeout(function(){ge()},D))):ge(),Me}}}}function V(){var K=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},G=K.states,z=G===void 0?x:G,ne=K.immutablejs,X=ne===void 0?O:ne,le=K.namespace,ce=le===void 0?v:le,de=K.namespaceSeparator,be=de===void 0?b:de,M=K.preloadedState,D=M===void 0?{}:M,Y=K.disableWarnings,ue=Y===void 0?P:Y,ie=j(ue);Q(z)||(console.error(p,"'states' parameter in 'load()' method was passed a non-array value. Setting default value instead. Check your 'load()' method."),z=x),re(ce)||(console.error(p,"'namespace' parameter in 'load()' method was passed a non-string value. Setting default value instead. Check your 'load()' method."),ce=v),re(be)||(console.error(p,"'namespaceSeparator' parameter in 'load()' method was passed a non-string value. Setting default value instead. Check your 'load()' method."),be=b),X===!0&&ie("Support for Immutable.js data structures has been deprecated as of version 2.0.0. Please use version 1.4.0 if you require this functionality.");var he=new W(ie),Se=D;if(z.length===0){var Fe=he.getItem(ce);Fe&&(Se=Fe)}else z.forEach(function(ge){var Ee=ce+be+ge,je=he.getItem(Ee);je?Se=t.default.recursive(Se,$(ge,je)):ie("Invalid load '"+Ee+"' provided. Check your 'states' in 'load()'. If this is your first time running this app you may see this message. To disable it in future use the 'disableWarnings' flag, see documentation.")});return Se}function H(){for(var K={},G=arguments.length,z=Array(G),ne=0;ne<G;ne++)z[ne]=arguments[ne];return z.forEach(function(X){for(var le in se(X)||(console.error(p,"One or more loads provided to 'combineLoads()' is not a valid object. Ignoring the invalid load/s. Check your 'combineLoads()' method."),X={}),X)K[le]=X[le]}),K}function J(){var K=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},G=K.namespace,z=G===void 0?v:G,ne=K.disableWarnings,X=ne===void 0?P:ne,le=j(X);re(z)||(console.error(p,"'namespace' parameter in 'clear()' method was passed a non-string value. Setting default value instead. Check your 'clear()' method."),z=v);for(var ce,de=new W(le),be=de.length,M=0;M<be;M++)ce=de.key(M),ce&&ce.slice(0,z.length)===z&&de.removeItem(ce)}function Q(K){return Object.prototype.toString.call(K)==="[object Array]"}function re(K){return typeof K=="string"}function ae(K){return typeof K=="number"&&isFinite(K)&&Math.floor(K)===K}function se(K){return K!==null&&u(K)==="object"}function oe(K,G){var z=Object.entries(G).reduce(function(ne,X){var le=r(X,2),ce=le[0];return le[1],K.indexOf(ce)===-1&&(ne[ce]=G[ce]),ne},{});return z}}(HO)),HO}var wW=YAe();const ZAe=e=>wT({appUpdated:moe,servers:uAe,selectedServer:e.selectedServerReducer,settings:RAe}),XAe=e=>(e.settings&&e.settings.visits&&e.settings.visits.defaultInterval==="last180days"&&(e.settings.visits.defaultInterval="last180Days"),e),QAe=!0,OW={states:["settings","servers"],namespace:"shlink",namespaceSeparator:".",debounce:300},JAe=XAe(wW.load(OW)),e3e=e=>WF({devTools:!QAe,reducer:ZAe(e),preloadedState:JAe,middleware:t=>t({immutableCheck:!1,serializableCheck:!1}).concat(wW.save(OW))}),t3e=!!(window.location.hostname==="localhost"||window.location.hostname==="[::1]"||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));function n3e(e){if("serviceWorker"in navigator){if(new URL(Eg.homepage,window.location.href).origin!==window.location.origin)return;window.addEventListener("load",()=>{const n=`${Eg.homepage}/service-worker.js`;t3e?(r3e(n,e),navigator.serviceWorker.ready.then(()=>{console.log("This web app is being served cache-first by a service worker. To learn more, visit https://cra.link/PWA")})):SW(n,e)})}}function SW(e,t){navigator.serviceWorker.register(e).then(n=>{n.onupdatefound=()=>{const r=n.installing;r!=null&&(r.onstatechange=()=>{r.state==="installed"&&(navigator.serviceWorker.controller?(console.log("New content is available and will be used when all tabs for this page are closed. See https://cra.link/PWA."),t&&t.onUpdate&&t.onUpdate(n)):(console.log("Content is cached for offline use."),t&&t.onSuccess&&t.onSuccess(n)))})}}).catch(n=>{console.error("Error during service worker registration:",n)})}function r3e(e,t){fetch(e,{headers:{"Service-Worker":"script"}}).then(n=>{const r=n.headers.get("content-type");n.status===404||r!=null&&r.indexOf("javascript")===-1?navigator.serviceWorker.ready.then(i=>{i.unregister().then(()=>{window.location.reload()})}):SW(e,t)}).catch(()=>{console.log("No internet connection found. App is running in offline mode.")})}const PW=e3e(dA),{App:i3e,ScrollToTop:o3e,ErrorHandler:a3e,appUpdateAvailable:s3e}=dA;gq.createRoot(document.getElementById("root")).render(g.jsx(P8,{store:PW,children:g.jsx(I8,{basename:Eg.homepage,children:g.jsx(a3e,{children:g.jsx(o3e,{children:g.jsx(i3e,{})})})})}));n3e({onUpdate(){PW.dispatch(s3e())}});