mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-03-01 13:16:42 +00:00
825 lines
1.5 MiB
825 lines
1.5 MiB
var dq=Object.defineProperty;var hq=(e,t,r)=>t in e?dq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Tc=(e,t,r)=>hq(e,typeof t!="symbol"?t+"":t,r);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=r(i);fetch(i.href,o)}})();var $v=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 a1={exports:{}},rh={},s1={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 e3;function pq(){if(e3)return Ct;e3=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=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(){}},_=Object.assign,x={};function w(z,re,X){this.props=z,this.context=re,this.refs=x,this.updater=X||b}w.prototype.isReactComponent={},w.prototype.setState=function(z,re){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,re,"setState")},w.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function O(){}O.prototype=w.prototype;function P(z,re,X){this.props=z,this.context=re,this.refs=x,this.updater=X||b}var C=P.prototype=new O;C.constructor=P,_(C,w.prototype),C.isPureReactComponent=!0;var T=Array.isArray,A=Object.prototype.hasOwnProperty,j={current:null},N={key:!0,ref:!0,__self:!0,__source:!0};function F(z,re,X){var le,ce={},de=null,be=null;if(re!=null)for(le in re.ref!==void 0&&(be=re.ref),re.key!==void 0&&(de=""+re.key),re)A.call(re,le)&&!N.hasOwnProperty(le)&&(ce[le]=re[le]);var M=arguments.length-2;if(M===1)ce.children=X;else if(1<M){for(var $=Array(M),Y=0;Y<M;Y++)$[Y]=arguments[Y+2];ce.children=$}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 V(z,re){return{$$typeof:e,type:z.type,key:re,ref:z.ref,props:z.props,_owner:z._owner}}function B(z){return typeof z=="object"&&z!==null&&z.$$typeof===e}function W(z){var re={"=":"=0",":":"=2"};return"$"+z.replace(/[=:]/g,function(X){return re[X]})}var q=/\/+/g;function J(z,re){return typeof z=="object"&&z!==null&&z.key!=null?W(""+z.key):re.toString(36)}function Q(z,re,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(q,"$&/")+"/"),Q(ce,re,X,"",function(Y){return Y})):ce!=null&&(B(ce)&&(ce=V(ce,X+(!ce.key||be&&be.key===ce.key?"":(""+ce.key).replace(q,"$&/")+"/")+z)),re.push(ce)),1;if(be=0,le=le===""?".":le+":",T(z))for(var M=0;M<z.length;M++){de=z[M];var $=le+J(de,M);be+=Q(de,re,X,$,ce)}else if($=v(z),typeof $=="function")for(z=$.call(z),M=0;!(de=z.next()).done;)de=de.value,$=le+J(de,M++),be+=Q(de,re,X,$,ce);else if(de==="object")throw re=String(z),Error("Objects are not valid as a React child (found: "+(re==="[object Object]"?"object with keys {"+Object.keys(z).join(", ")+"}":re)+"). If you meant to render a collection of children, use an array instead.");return be}function ne(z,re,X){if(z==null)return z;var le=[],ce=0;return Q(z,le,"","",function(de){return re.call(X,de,ce++)}),le}function ae(z){if(z._status===-1){var re=z._result;re=re(),re.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=re)}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:ne,forEach:function(z,re,X){ne(z,function(){re.apply(this,arguments)},X)},count:function(z){var re=0;return ne(z,function(){re++}),re},toArray:function(z){return ne(z,function(re){return re})||[]},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=r,Ct.Profiler=i,Ct.PureComponent=P,Ct.StrictMode=n,Ct.Suspense=c,Ct.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=K,Ct.act=G,Ct.cloneElement=function(z,re,X){if(z==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+z+".");var le=_({},z.props),ce=z.key,de=z.ref,be=z._owner;if(re!=null){if(re.ref!==void 0&&(de=re.ref,be=j.current),re.key!==void 0&&(ce=""+re.key),z.type&&z.type.defaultProps)var M=z.type.defaultProps;for($ in re)A.call(re,$)&&!N.hasOwnProperty($)&&(le[$]=re[$]===void 0&&M!==void 0?M[$]:re[$])}var $=arguments.length-2;if($===1)le.children=X;else if(1<$){M=Array($);for(var Y=0;Y<$;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=F,Ct.createFactory=function(z){var re=F.bind(null,z);return re.type=z,re},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,re){return{$$typeof:u,type:z,compare:re===void 0?null:re}},Ct.startTransition=function(z){var re=oe.transition;oe.transition={};try{z()}finally{oe.transition=re}},Ct.unstable_act=G,Ct.useCallback=function(z,re){return se.current.useCallback(z,re)},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,re){return se.current.useEffect(z,re)},Ct.useId=function(){return se.current.useId()},Ct.useImperativeHandle=function(z,re,X){return se.current.useImperativeHandle(z,re,X)},Ct.useInsertionEffect=function(z,re){return se.current.useInsertionEffect(z,re)},Ct.useLayoutEffect=function(z,re){return se.current.useLayoutEffect(z,re)},Ct.useMemo=function(z,re){return se.current.useMemo(z,re)},Ct.useReducer=function(z,re,X){return se.current.useReducer(z,re,X)},Ct.useRef=function(z){return se.current.useRef(z)},Ct.useState=function(z){return se.current.useState(z)},Ct.useSyncExternalStore=function(z,re,X){return se.current.useSyncExternalStore(z,re,X)},Ct.useTransition=function(){return se.current.useTransition()},Ct.version="18.3.1",Ct}var t3;function S0(){return t3||(t3=1,s1.exports=pq()),s1.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 r3;function mq(){if(r3)return rh;r3=1;var e=S0(),t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=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)n.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 rh.Fragment=r,rh.jsx=a,rh.jsxs=a,rh}var n3;function vq(){return n3||(n3=1,a1.exports=mq()),a1.exports}var g=vq(),Fv={},l1={exports:{}},zn={},u1={exports:{}},c1={};/**
|
||
* @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 i3;function gq(){return i3||(i3=1,function(e){function t(oe,K){var G=oe.length;oe.push(K);e:for(;0<G;){var z=G-1>>>1,re=oe[z];if(0<i(re,K))oe[z]=K,oe[G]=re,G=z;else break e}}function r(oe){return oe.length===0?null:oe[0]}function n(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,re=oe.length,X=re>>>1;z<X;){var le=2*(z+1)-1,ce=oe[le],de=le+1,be=oe[de];if(0>i(ce,G))de<re&&0>i(be,ce)?(oe[z]=be,oe[de]=G,z=de):(oe[z]=ce,oe[le]=G,z=le);else if(de<re&&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,_=!1,x=!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 C(oe){for(var K=r(u);K!==null;){if(K.callback===null)n(u);else if(K.startTime<=oe)n(u),K.sortIndex=K.expirationTime,t(c,K);else break;K=r(u)}}function T(oe){if(x=!1,C(oe),!_)if(r(c)!==null)_=!0,ae(A);else{var K=r(u);K!==null&&se(T,K.startTime-oe)}}function A(oe,K){_=!1,x&&(x=!1,O(F),F=-1),b=!0;var G=v;try{for(C(K),p=r(c);p!==null&&(!(p.expirationTime>K)||oe&&!W());){var z=p.callback;if(typeof z=="function"){p.callback=null,v=p.priorityLevel;var re=z(p.expirationTime<=K);K=e.unstable_now(),typeof re=="function"?p.callback=re:p===r(c)&&n(c),C(K)}else n(c);p=r(c)}if(p!==null)var X=!0;else{var le=r(u);le!==null&&se(T,le.startTime-K),X=!1}return X}finally{p=null,v=G,b=!1}}var j=!1,N=null,F=-1,V=5,B=-1;function W(){return!(e.unstable_now()-B<V)}function q(){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(q)};else if(typeof MessageChannel<"u"){var Q=new MessageChannel,ne=Q.port2;Q.port1.onmessage=q,J=function(){ne.postMessage(null)}}else J=function(){w(q,0)};function ae(oe){N=oe,j||(j=!0,J())}function se(oe,K){F=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(){_||b||(_=!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"):V=0<oe?Math.floor(1e3/oe):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_getFirstCallbackNode=function(){return r(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 re=-1;break;case 2:re=250;break;case 5:re=1073741823;break;case 4:re=1e4;break;default:re=5e3}return re=G+re,oe={id:h++,callback:K,priorityLevel:oe,startTime:G,expirationTime:re,sortIndex:-1},G>z?(oe.sortIndex=G,t(u,oe),r(c)===null&&oe===r(u)&&(x?(O(F),F=-1):x=!0,se(T,G-z))):(oe.sortIndex=re,t(c,oe),_||b||(_=!0,ae(A))),oe},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(oe){var K=v;return function(){var G=v;v=K;try{return oe.apply(this,arguments)}finally{v=G}}}}(c1)),c1}var o3;function yq(){return o3||(o3=1,u1.exports=gq()),u1.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 a3;function bq(){if(a3)return zn;a3=1;var e=S0(),t=yq();function r(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 n=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++)n.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,E){if(y!==null&&y.type===0)return!1;switch(typeof d){case"function":case"symbol":return!0;case"boolean":return E?!1:y!==null?!y.acceptsBooleans:(l=l.toLowerCase().slice(0,5),l!=="data-"&&l!=="aria-");default:return!1}}function _(l,d,y,E){if(d===null||typeof d>"u"||b(l,d,y,E))return!0;if(E)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 x(l,d,y,E,R,D,ee){this.acceptsBooleans=d===2||d===3||d===4,this.attributeName=E,this.attributeNamespace=R,this.mustUseProperty=y,this.propertyName=l,this.type=d,this.sanitizeURL=D,this.removeEmptyString=ee}var w={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(l){w[l]=new x(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 x(d,1,!1,l[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(l){w[l]=new x(l,2,!1,l.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(l){w[l]=new x(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 x(l,3,!1,l.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(l){w[l]=new x(l,3,!0,l,null,!1,!1)}),["capture","download"].forEach(function(l){w[l]=new x(l,4,!1,l,null,!1,!1)}),["cols","rows","size","span"].forEach(function(l){w[l]=new x(l,6,!1,l,null,!1,!1)}),["rowSpan","start"].forEach(function(l){w[l]=new x(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 x(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 x(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 x(d,1,!1,l,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(l){w[l]=new x(l,1,!1,l.toLowerCase(),null,!1,!1)}),w.xlinkHref=new x("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(l){w[l]=new x(l,1,!1,l.toLowerCase(),null,!0,!0)});function C(l,d,y,E){var R=w.hasOwnProperty(d)?w[d]:null;(R!==null?R.type!==0:E||!(2<d.length)||d[0]!=="o"&&d[0]!=="O"||d[1]!=="n"&&d[1]!=="N")&&(_(d,y,R,E)&&(y=null),E||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,E=R.attributeNamespace,y===null?l.removeAttribute(d):(R=R.type,y=R===3||R===4&&y===!0?"":""+y,E?l.setAttributeNS(E,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"),F=Symbol.for("react.strict_mode"),V=Symbol.for("react.profiler"),B=Symbol.for("react.provider"),W=Symbol.for("react.context"),q=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),Q=Symbol.for("react.suspense_list"),ne=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 re(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(Ee){var E=Ee}Reflect.construct(l,[],d)}else{try{d.call()}catch(Ee){E=Ee}l.call(d.prototype)}else{try{throw Error()}catch(Ee){E=Ee}l()}}catch(Ee){if(Ee&&E&&typeof Ee.stack=="string"){for(var R=Ee.stack.split(`
|
||
`),D=E.stack.split(`
|
||
`),ee=R.length-1,fe=D.length-1;1<=ee&&0<=fe&&R[ee]!==D[fe];)fe--;for(;1<=ee&&0<=fe;ee--,fe--)if(R[ee]!==D[fe]){if(ee!==1||fe!==1)do if(ee--,fe--,0>fe||R[ee]!==D[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:"")?re(l):""}function ce(l){switch(l.tag){case 5:return re(l.type);case 16:return re("Lazy");case 13:return re("Suspense");case 19:return re("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 V:return"Profiler";case F:return"StrictMode";case J:return"Suspense";case Q:return"SuspenseList"}if(typeof l=="object")switch(l.$$typeof){case W:return(l.displayName||"Context")+".Consumer";case B:return(l._context.displayName||"Context")+".Provider";case q:var d=l.render;return l=l.displayName,l||(l=d.displayName||d.name||"",l=l!==""?"ForwardRef("+l+")":"ForwardRef"),l;case ne: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===F?"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 $(l){var d=l.type;return(l=l.nodeName)&&l.toLowerCase()==="input"&&(d==="checkbox"||d==="radio")}function Y(l){var d=$(l)?"checked":"value",y=Object.getOwnPropertyDescriptor(l.constructor.prototype,d),E=""+l[d];if(!l.hasOwnProperty(d)&&typeof y<"u"&&typeof y.get=="function"&&typeof y.set=="function"){var R=y.get,D=y.set;return Object.defineProperty(l,d,{configurable:!0,get:function(){return R.call(this)},set:function(ee){E=""+ee,D.call(this,ee)}}),Object.defineProperty(l,d,{enumerable:y.enumerable}),{getValue:function(){return E},setValue:function(ee){E=""+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(),E="";return l&&(E=$(l)?l.checked?"true":"false":l.value),l=E,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,E=d.checked!=null?d.checked:d.defaultChecked;y=M(d.value!=null?d.value:y),l._wrapperState={initialChecked:E,initialValue:y,controlled:d.type==="checkbox"||d.type==="radio"?d.checked!=null:d.value!=null}}function ge(l,d){d=d.checked,d!=null&&C(l,"checked",d,!1)}function Ce(l,d){ge(l,d);var y=M(d.value),E=d.type;if(y!=null)E==="number"?(y===0&&l.value===""||l.value!=y)&&(l.value=""+y):l.value!==""+y&&(l.value=""+y);else if(E==="submit"||E==="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 E=d.type;if(!(E!=="submit"&&E!=="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 Be(l,d,y,E){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&&E&&(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,E&&(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(r(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(r(92));if(He(y)){if(1<y.length)throw Error(r(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),E=M(d.defaultValue);y!=null&&(y=""+y,y!==l.value&&(l.value=y),d.defaultValue==null&&l.defaultValue!==y&&(l.defaultValue=y)),E!=null&&(l.defaultValue=""+E)}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,E,R){MSApp.execUnsafeLocalFunction(function(){return l(d,y,E,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 Jt(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 E=y.indexOf("--")===0,R=Jt(y,d[y],E);y==="float"&&(y="cssFloat"),E?l.setProperty(y,R):l[y]=R}}var jr=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 Lr(l,d){if(d){if(jr[l]&&(d.children!=null||d.dangerouslySetInnerHTML!=null))throw Error(r(137,l));if(d.dangerouslySetInnerHTML!=null){if(d.children!=null)throw Error(r(60));if(typeof d.dangerouslySetInnerHTML!="object"||!("__html"in d.dangerouslySetInnerHTML))throw Error(r(61))}if(d.style!=null&&typeof d.style!="object")throw Error(r(62))}}function Nn(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 Pr=null;function fa(l){return l=l.target||l.srcElement||window,l.correspondingUseElement&&(l=l.correspondingUseElement),l.nodeType===3?l.parentNode:l}var Mn=null,Ji=null,eo=null;function xl(l){if(l=Oa(l)){if(typeof Mn!="function")throw Error(r(280));var d=l.stateNode;d&&(d=hc(d),Mn(l.stateNode,l.type,d))}}function is(l){Ji?eo?eo.push(l):eo=[l]:Ji=l}function Ro(){if(Ji){var l=Ji,d=eo;if(eo=Ji=null,xl(l),d)for(l=0;l<d.length;l++)xl(d[l])}}function dr(l,d){return l(d)}function or(){}var Ir=!1;function Ar(l,d,y){if(Ir)return l(d,y);Ir=!0;try{return dr(l,d,y)}finally{Ir=!1,(Ji!==null||eo!==null)&&(or(),Ro())}}function hr(l,d){var y=l.stateNode;if(y===null)return null;var E=hc(y);if(E===null)return null;y=E[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":(E=!E.disabled)||(l=l.type,E=!(l==="button"||l==="input"||l==="select"||l==="textarea")),l=!E;break e;default:l=!1}if(l)return null;if(y&&typeof y!="function")throw Error(r(231,d,typeof y));return y}var pr=!1;if(s)try{var en={};Object.defineProperty(en,"passive",{get:function(){pr=!0}}),window.addEventListener("test",en,en),window.removeEventListener("test",en,en)}catch{pr=!1}function Xn(l,d,y,E,R,D,ee,fe,me){var Ee=Array.prototype.slice.call(arguments,3);try{d.apply(y,Ee)}catch(Ie){this.onError(Ie)}}var mr=!1,nt=null,wl=!1,zu=null,Pm={onError:function(l){mr=!0,nt=l}};function Em(l,d,y,E,R,D,ee,fe,me){mr=!1,nt=null,Xn.apply(Pm,arguments)}function hd(l,d,y,E,R,D,ee,fe,me){if(Em.apply(this,arguments),mr){if(mr){var Ee=nt;mr=!1,nt=null}else throw Error(r(198));wl||(wl=!0,zu=Ee)}}function No(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 da(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(No(l)!==l)throw Error(r(188))}function $b(l){var d=l.alternate;if(!d){if(d=No(l),d===null)throw Error(r(188));return d!==l?null:l}for(var y=l,E=d;;){var R=y.return;if(R===null)break;var D=R.alternate;if(D===null){if(E=R.return,E!==null){y=E;continue}break}if(R.child===D.child){for(D=R.child;D;){if(D===y)return pd(R),l;if(D===E)return pd(R),d;D=D.sibling}throw Error(r(188))}if(y.return!==E.return)y=R,E=D;else{for(var ee=!1,fe=R.child;fe;){if(fe===y){ee=!0,y=R,E=D;break}if(fe===E){ee=!0,E=R,y=D;break}fe=fe.sibling}if(!ee){for(fe=D.child;fe;){if(fe===y){ee=!0,y=D,E=R;break}if(fe===E){ee=!0,E=D,y=R;break}fe=fe.sibling}if(!ee)throw Error(r(189))}}if(y.alternate!==E)throw Error(r(190))}if(y.tag!==3)throw Error(r(188));return y.stateNode.current===y?l:d}function Cm(l){return l=$b(l),l!==null?Tm(l):null}function Tm(l){if(l.tag===5||l.tag===6)return l;for(l=l.child;l!==null;){var d=Tm(l);if(d!==null)return d;l=l.sibling}return null}var jm=t.unstable_scheduleCallback,md=t.unstable_cancelCallback,Fb=t.unstable_shouldYield,Vu=t.unstable_requestPaint,vr=t.unstable_now,Bb=t.unstable_getCurrentPriorityLevel,vd=t.unstable_ImmediatePriority,Am=t.unstable_UserBlockingPriority,Wu=t.unstable_NormalPriority,gd=t.unstable_LowPriority,os=t.unstable_IdlePriority,Ol=null,Qn=null;function Sl(l){if(Qn&&typeof Qn.onCommitFiberRoot=="function")try{Qn.onCommitFiberRoot(Ol,l,void 0,(l.current.flags&128)===128)}catch{}}var wt=Math.clz32?Math.clz32:as,er=Math.log,qu=Math.LN2;function as(l){return l>>>=0,l===0?32:31-(er(l)/qu|0)|0}var to=64,ss=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 E=0,R=l.suspendedLanes,D=l.pingedLanes,ee=y&268435455;if(ee!==0){var fe=ee&~R;fe!==0?E=gt(fe):(D&=ee,D!==0&&(E=gt(D)))}else ee=y&~R,ee!==0?E=gt(ee):D!==0&&(E=gt(D));if(E===0)return 0;if(d!==0&&d!==E&&!(d&R)&&(R=E&-E,D=d&-d,R>=D||R===16&&(D&4194240)!==0))return d;if(E&4&&(E|=y&16),d=l.entangledLanes,d!==0)for(l=l.entanglements,d&=E;0<d;)y=31-wt(d),R=1<<y,E|=l[y],d&=~R;return E}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 Hu(l,d){for(var y=l.suspendedLanes,E=l.pingedLanes,R=l.expirationTimes,D=l.pendingLanes;0<D;){var ee=31-wt(D),fe=1<<ee,me=R[ee];me===-1?(!(fe&y)||fe&E)&&(R[ee]=yd(fe,d)):me<=d&&(l.expiredLanes|=fe),D&=~fe}}function sn(l){return l=l.pendingLanes&-1073741825,l!==0?l:l&1073741824?1073741824:0}function km(){var l=to;return to<<=1,!(to&4194240)&&(to=64),l}function ls(l){for(var d=[],y=0;31>y;y++)d.push(l);return d}function Jn(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 xr(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 E=l.eventTimes;for(l=l.expirationTimes;0<y;){var R=31-wt(y),D=1<<R;d[R]=0,E[R]=-1,l[R]=-1,y&=~D}}function ro(l,d){var y=l.entangledLanes|=d;for(l=l.entanglements;y;){var E=31-wt(y),R=1<<E;R&d|l[E]&d&&(l[E]|=d),y&=~R}}var Rt=0;function us(l){return l&=-l,1<l?4<l?l&268435455?16:536870912:4:1}var Gu,ha,Ku,Yu,Pl,El=!1,cs=[],ei=null,no=null,Si=null,Cl=new Map,pt=new Map,Dr=[],Bt="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":ei=null;break;case"dragenter":case"dragleave":no=null;break;case"mouseover":case"mouseout":Si=null;break;case"pointerover":case"pointerout":Cl.delete(d.pointerId);break;case"gotpointercapture":case"lostpointercapture":pt.delete(d.pointerId)}}function pa(l,d,y,E,R,D){return l===null||l.nativeEvent!==D?(l={blockedOn:d,domEventName:y,eventSystemFlags:E,nativeEvent:D,targetContainers:[R]},d!==null&&(d=Oa(d),d!==null&&ha(d)),l):(l.eventSystemFlags|=E,d=l.targetContainers,R!==null&&d.indexOf(R)===-1&&d.push(R),l)}function _d(l,d,y,E,R){switch(d){case"focusin":return ei=pa(ei,l,d,y,E,R),!0;case"dragenter":return no=pa(no,l,d,y,E,R),!0;case"mouseover":return Si=pa(Si,l,d,y,E,R),!0;case"pointerover":var D=R.pointerId;return Cl.set(D,pa(Cl.get(D)||null,l,d,y,E,R)),!0;case"gotpointercapture":return D=R.pointerId,pt.set(D,pa(pt.get(D)||null,l,d,y,E,R)),!0}return!1}function Zu(l){var d=wa(l.target);if(d!==null){var y=No(d);if(y!==null){if(d=y.tag,d===13){if(d=da(y),d!==null){l.blockedOn=d,Pl(l.priority,function(){Ku(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 Pi(l){if(l.blockedOn!==null)return!1;for(var d=l.targetContainers;0<d.length;){var y=Ju(l.domEventName,l.eventSystemFlags,d[0],l.nativeEvent);if(y===null){y=l.nativeEvent;var E=new y.constructor(y.type,y);Pr=E,y.target.dispatchEvent(E),Pr=null}else return d=Oa(y),d!==null&&ha(d),l.blockedOn=y,!1;d.shift()}return!0}function Xu(l,d,y){Pi(l)&&y.delete(d)}function Tl(){El=!1,ei!==null&&Pi(ei)&&(ei=null),no!==null&&Pi(no)&&(no=null),Si!==null&&Pi(Si)&&(Si=null),Cl.forEach(Xu),pt.forEach(Xu)}function gr(l,d){l.blockedOn===d&&(l.blockedOn=null,El||(El=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Tl)))}function ti(l){function d(R){return gr(R,l)}if(0<cs.length){gr(cs[0],l);for(var y=1;y<cs.length;y++){var E=cs[y];E.blockedOn===l&&(E.blockedOn=null)}}for(ei!==null&&gr(ei,l),no!==null&&gr(no,l),Si!==null&&gr(Si,l),Cl.forEach(d),pt.forEach(d),y=0;y<Dr.length;y++)E=Dr[y],E.blockedOn===l&&(E.blockedOn=null);for(;0<Dr.length&&(y=Dr[0],y.blockedOn===null);)Zu(y),y.blockedOn===null&&Dr.shift()}var ma=T.ReactCurrentBatchConfig,jl=!0;function Ub(l,d,y,E){var R=Rt,D=ma.transition;ma.transition=null;try{Rt=1,Al(l,d,y,E)}finally{Rt=R,ma.transition=D}}function Rm(l,d,y,E){var R=Rt,D=ma.transition;ma.transition=null;try{Rt=4,Al(l,d,y,E)}finally{Rt=R,ma.transition=D}}function Al(l,d,y,E){if(jl){var R=Ju(l,d,y,E);if(R===null)f(l,d,E,Qu,y),bd(l,E);else if(_d(R,l,d,y,E))E.stopPropagation();else if(bd(l,E),d&4&&-1<Bt.indexOf(l)){for(;R!==null;){var D=Oa(R);if(D!==null&&Gu(D),D=Ju(l,d,y,E),D===null&&f(l,d,E,Qu,y),D===R)break;R=D}R!==null&&E.stopPropagation()}else f(l,d,E,null,y)}}var Qu=null;function Ju(l,d,y,E){if(Qu=null,l=fa(E),l=wa(l),l!==null)if(d=No(l),d===null)l=null;else if(y=d.tag,y===13){if(l=da(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 Qu=l,null}function Tt(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(Bb()){case vd:return 1;case Am:return 4;case Wu:case gd:return 16;case os:return 536870912;default:return 16}default:return 16}}var Mo=null,yn=null,Lo=null;function xd(){if(Lo)return Lo;var l,d=yn,y=d.length,E,R="value"in Mo?Mo.value:Mo.textContent,D=R.length;for(l=0;l<y&&d[l]===R[l];l++);var ee=y-l;for(E=1;E<=ee&&d[y-E]===R[D-E];E++);return Lo=R.slice(l,1<E?1-E:void 0)}function ec(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 fs(){return!0}function Nm(){return!1}function ln(l){function d(y,E,R,D,ee){this._reactName=y,this._targetInst=R,this.type=E,this.nativeEvent=D,this.target=ee,this.currentTarget=null;for(var fe in l)l.hasOwnProperty(fe)&&(y=l[fe],this[fe]=y?y(D):D[fe]);return this.isDefaultPrevented=(D.defaultPrevented!=null?D.defaultPrevented:D.returnValue===!1)?fs:Nm,this.isPropagationStopped=Nm,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=fs)},stopPropagation:function(){var y=this.nativeEvent;y&&(y.stopPropagation?y.stopPropagation():typeof y.cancelBubble!="unknown"&&(y.cancelBubble=!0),this.isPropagationStopped=fs)},persist:function(){},isPersistent:fs}),d}var ds={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(l){return l.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wd=ln(ds),va=G({},ds,{view:0,detail:0}),zb=ln(va),Ln,Od,hs,ri=G({},va,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ya,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!==hs&&(hs&&l.type==="mousemove"?(Ln=l.screenX-hs.screenX,Od=l.screenY-hs.screenY):Od=Ln=0,hs=l),Ln)},movementY:function(l){return"movementY"in l?l.movementY:Od}}),Sd=ln(ri),Mm=G({},ri,{dataTransfer:0}),Pd=ln(Mm),Vb=G({},va,{relatedTarget:0}),tc=ln(Vb),Lm=G({},ds,{animationName:0,elapsedTime:0,pseudoElement:0}),Wb=ln(Lm),qb=G({},ds,{clipboardData:function(l){return"clipboardData"in l?l.clipboardData:window.clipboardData}}),Ed=ln(qb),Hb=G({},ds,{data:0}),Cd=ln(Hb),Im={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},rc={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"},ga={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Gb(l){var d=this.nativeEvent;return d.getModifierState?d.getModifierState(l):(l=ga[l])?!!d[l]:!1}function ya(){return Gb}var In=G({},va,{key:function(l){if(l.key){var d=Im[l.key]||l.key;if(d!=="Unidentified")return d}return l.type==="keypress"?(l=ec(l),l===13?"Enter":String.fromCharCode(l)):l.type==="keydown"||l.type==="keyup"?rc[l.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ya,charCode:function(l){return l.type==="keypress"?ec(l):0},keyCode:function(l){return l.type==="keydown"||l.type==="keyup"?l.keyCode:0},which:function(l){return l.type==="keypress"?ec(l):l.type==="keydown"||l.type==="keyup"?l.keyCode:0}}),Dm=ln(In),$m=G({},ri,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Fm=ln($m),Td=G({},va,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ya}),jd=ln(Td),Kb=G({},ds,{propertyName:0,elapsedTime:0,pseudoElement:0}),Yb=ln(Kb),Bm=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}),Zb=ln(Bm),ni=[9,13,27,32],Io=s&&"CompositionEvent"in window,kl=null;s&&"documentMode"in document&&(kl=document.documentMode);var io=s&&"TextEvent"in window&&!kl,Um=s&&(!Io||kl&&8<kl&&11>=kl),ba=" ",zm=!1;function ps(l,d){switch(l){case"keyup":return ni.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 oo=!1;function Xb(l,d){switch(l){case"compositionend":return Ad(d);case"keypress":return d.which!==32?null:(zm=!0,ba);case"textInput":return l=d.data,l===ba&&zm?null:l;default:return null}}function Do(l,d){if(oo)return l==="compositionend"||!Io&&ps(l,d)?(l=xd(),Lo=yn=Mo=null,oo=!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 Um&&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 Vm(l){var d=l&&l.nodeName&&l.nodeName.toLowerCase();return d==="input"?!!nc[l.type]:d==="textarea"}function ic(l,d,y,E){is(E),d=S(d,"onChange"),0<d.length&&(y=new wd("onChange","change",null,y,E),l.push({event:y,listeners:d}))}var Rl=null,bn=null;function Qb(l){Fd(l,0)}function ao(l){var d=Sa(l);if(ie(d))return l}function Jb(l,d){if(l==="change")return d}var Ei=!1;if(s){var ms;if(s){var oc="oninput"in document;if(!oc){var ac=document.createElement("div");ac.setAttribute("oninput","return;"),oc=typeof ac.oninput=="function"}ms=oc}else ms=!1;Ei=ms&&(!document.documentMode||9<document.documentMode)}function Nl(){Rl&&(Rl.detachEvent("onpropertychange",sc),bn=Rl=null)}function sc(l){if(l.propertyName==="value"&&ao(bn)){var d=[];ic(d,bn,l,fa(l)),Ar(Qb,d)}}function lc(l,d,y){l==="focusin"?(Nl(),Rl=d,bn=y,Rl.attachEvent("onpropertychange",sc)):l==="focusout"&&Nl()}function vs(l){if(l==="selectionchange"||l==="keyup"||l==="keydown")return ao(bn)}function uc(l,d){if(l==="click")return ao(d)}function kd(l,d){if(l==="input"||l==="change")return ao(d)}function Wm(l,d){return l===d&&(l!==0||1/l===1/d)||l!==l&&d!==d}var ii=typeof Object.is=="function"?Object.is:Wm;function $o(l,d){if(ii(l,d))return!0;if(typeof l!="object"||l===null||typeof d!="object"||d===null)return!1;var y=Object.keys(l),E=Object.keys(d);if(y.length!==E.length)return!1;for(E=0;E<y.length;E++){var R=y[E];if(!c.call(d,R)||!ii(l[R],d[R]))return!1}return!0}function qm(l){for(;l&&l.firstChild;)l=l.firstChild;return l}function Rd(l,d){var y=qm(l);l=0;for(var E;y;){if(y.nodeType===3){if(E=l+y.textContent.length,l<=d&&E>=d)return{node:y,offset:d-l};l=E}e:{for(;y;){if(y.nextSibling){y=y.nextSibling;break e}y=y.parentNode}y=void 0}y=qm(y)}}function Hm(l,d){return l&&d?l===d?!0:l&&l.nodeType===3?!1:d&&d.nodeType===3?Hm(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 Ci(l){var d=Nd(),y=l.focusedElem,E=l.selectionRange;if(d!==y&&y&&y.ownerDocument&&Hm(y.ownerDocument.documentElement,y)){if(E!==null&&Md(y)){if(d=E.start,l=E.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,D=Math.min(E.start,R);E=E.end===void 0?D:Math.min(E.end,R),!l.extend&&D>E&&(R=E,E=D,D=R),R=Rd(y,D);var ee=Rd(y,E);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(),D>E?(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 cc=s&&"documentMode"in document&&11>=document.documentMode,gs=null,ys=null,Ml=null,fc=!1;function Gm(l,d,y){var E=y.window===y?y.document:y.nodeType===9?y:y.ownerDocument;fc||gs==null||gs!==he(E)||(E=gs,"selectionStart"in E&&Md(E)?E={start:E.selectionStart,end:E.selectionEnd}:(E=(E.ownerDocument&&E.ownerDocument.defaultView||window).getSelection(),E={anchorNode:E.anchorNode,anchorOffset:E.anchorOffset,focusNode:E.focusNode,focusOffset:E.focusOffset}),Ml&&$o(Ml,E)||(Ml=E,E=S(ys,"onSelect"),0<E.length&&(d=new wd("onSelect","select",null,d,y),l.push({event:d,listeners:E}),d.target=gs)))}function Fo(l,d){var y={};return y[l.toLowerCase()]=d.toLowerCase(),y["Webkit"+l]="webkit"+d,y["Moz"+l]="moz"+d,y}var bs={animationend:Fo("Animation","AnimationEnd"),animationiteration:Fo("Animation","AnimationIteration"),animationstart:Fo("Animation","AnimationStart"),transitionend:Fo("Transition","TransitionEnd")},Bo={},Ld={};s&&(Ld=document.createElement("div").style,"AnimationEvent"in window||(delete bs.animationend.animation,delete bs.animationiteration.animation,delete bs.animationstart.animation),"TransitionEvent"in window||delete bs.transitionend.transition);function Ll(l){if(Bo[l])return Bo[l];if(!bs[l])return l;var d=bs[l],y;for(y in d)if(d.hasOwnProperty(y)&&y in Ld)return Bo[l]=d[y];return l}var Km=Ll("animationend"),Ti=Ll("animationiteration"),Id=Ll("animationstart"),Dd=Ll("transitionend"),_s=new Map,Ym="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 oi(l,d){_s.set(l,d),o(d,[l])}for(var _a=0;_a<Ym.length;_a++){var dc=Ym[_a],Zm=dc.toLowerCase(),e_=dc[0].toUpperCase()+dc.slice(1);oi(Zm,"on"+e_)}oi(Km,"onAnimationEnd"),oi(Ti,"onAnimationIteration"),oi(Id,"onAnimationStart"),oi("dblclick","onDoubleClick"),oi("focusin","onFocus"),oi("focusout","onBlur"),oi(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 xs="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(" "),Xm=new Set("cancel close invalid load scroll toggle".split(" ").concat(xs));function $d(l,d,y){var E=l.type||"unknown-event";l.currentTarget=y,hd(E,d,void 0,l),l.currentTarget=null}function Fd(l,d){d=(d&4)!==0;for(var y=0;y<l.length;y++){var E=l[y],R=E.event;E=E.listeners;e:{var D=void 0;if(d)for(var ee=E.length-1;0<=ee;ee--){var fe=E[ee],me=fe.instance,Ee=fe.currentTarget;if(fe=fe.listener,me!==D&&R.isPropagationStopped())break e;$d(R,fe,Ee),D=me}else for(ee=0;ee<E.length;ee++){if(fe=E[ee],me=fe.instance,Ee=fe.currentTarget,fe=fe.listener,me!==D&&R.isPropagationStopped())break e;$d(R,fe,Ee),D=me}}}if(wl)throw l=zu,wl=!1,zu=null,l}function Ut(l,d){var y=d[Ps];y===void 0&&(y=d[Ps]=new Set);var E=l+"__bubble";y.has(E)||(Qm(d,l,2,!1),y.add(E))}function Bd(l,d,y){var E=0;d&&(E|=4),Qm(y,l,E,d)}var Il="_reactListening"+Math.random().toString(36).slice(2);function ws(l){if(!l[Il]){l[Il]=!0,n.forEach(function(y){y!=="selectionchange"&&(Xm.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 Qm(l,d,y,E){switch(Tt(d)){case 1:var R=Ub;break;case 4:R=Rm;break;default:R=Al}y=R.bind(null,d,y,l),R=void 0,!pr||d!=="touchstart"&&d!=="touchmove"&&d!=="wheel"||(R=!0),E?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,E,R){var D=E;if(!(d&1)&&!(d&2)&&E!==null)e:for(;;){if(E===null)return;var ee=E.tag;if(ee===3||ee===4){var fe=E.stateNode.containerInfo;if(fe===R||fe.nodeType===8&&fe.parentNode===R)break;if(ee===4)for(ee=E.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=wa(fe),ee===null)return;if(me=ee.tag,me===5||me===6){E=D=ee;continue e}fe=fe.parentNode}}E=E.return}Ar(function(){var Ee=D,Ie=fa(y),$e=[];e:{var Le=_s.get(l);if(Le!==void 0){var Qe=wd,tt=l;switch(l){case"keypress":if(ec(y)===0)break e;case"keydown":case"keyup":Qe=Dm;break;case"focusin":tt="focus",Qe=tc;break;case"focusout":tt="blur",Qe=tc;break;case"beforeblur":case"afterblur":Qe=tc;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 Km:case Ti:case Id:Qe=Wb;break;case Dd:Qe=Yb;break;case"scroll":Qe=zb;break;case"wheel":Qe=Zb;break;case"copy":case"cut":case"paste":Qe=Ed;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Qe=Fm}var rt=(d&4)!==0,Er=!rt&&l==="scroll",xe=rt?Le!==null?Le+"Capture":null:Le;rt=[];for(var ve=Ee,Oe;ve!==null;){Oe=ve;var We=Oe.stateNode;if(Oe.tag===5&&We!==null&&(Oe=We,xe!==null&&(We=hr(ve,xe),We!=null&&rt.push(m(ve,We,Oe)))),Er)break;ve=ve.return}0<rt.length&&(Le=new Qe(Le,tt,null,y,Ie),$e.push({event:Le,listeners:rt}))}}if(!(d&7)){e:{if(Le=l==="mouseover"||l==="pointerover",Qe=l==="mouseout"||l==="pointerout",Le&&y!==Pr&&(tt=y.relatedTarget||y.fromElement)&&(wa(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=Ee,tt=tt?wa(tt):null,tt!==null&&(Er=No(tt),tt!==Er||tt.tag!==5&&tt.tag!==6)&&(tt=null)):(Qe=null,tt=Ee),Qe!==tt)){if(rt=Sd,We="onMouseLeave",xe="onMouseEnter",ve="mouse",(l==="pointerout"||l==="pointerover")&&(rt=Fm,We="onPointerLeave",xe="onPointerEnter",ve="pointer"),Er=Qe==null?Le:Sa(Qe),Oe=tt==null?Le:Sa(tt),Le=new rt(We,ve+"leave",Qe,y,Ie),Le.target=Er,Le.relatedTarget=Oe,We=null,wa(Ie)===Ee&&(rt=new rt(xe,ve+"enter",tt,y,Ie),rt.target=Oe,rt.relatedTarget=Er,We=rt),Er=We,Qe&&tt)t:{for(rt=Qe,xe=tt,ve=0,Oe=rt;Oe;Oe=k(Oe))ve++;for(Oe=0,We=xe;We;We=k(We))Oe++;for(;0<ve-Oe;)rt=k(rt),ve--;for(;0<Oe-ve;)xe=k(xe),Oe--;for(;ve--;){if(rt===xe||xe!==null&&rt===xe.alternate)break t;rt=k(rt),xe=k(xe)}rt=null}else rt=null;Qe!==null&&U($e,Le,Qe,rt,!1),tt!==null&&Er!==null&&U($e,Er,tt,rt,!0)}}e:{if(Le=Ee?Sa(Ee):window,Qe=Le.nodeName&&Le.nodeName.toLowerCase(),Qe==="select"||Qe==="input"&&Le.type==="file")var ot=Jb;else if(Vm(Le))if(Ei)ot=kd;else{ot=vs;var lt=lc}else(Qe=Le.nodeName)&&Qe.toLowerCase()==="input"&&(Le.type==="checkbox"||Le.type==="radio")&&(ot=uc);if(ot&&(ot=ot(l,Ee))){ic($e,ot,y,Ie);break e}lt&<(l,Le,Ee),l==="focusout"&&(lt=Le._wrapperState)&<.controlled&&Le.type==="number"&&Me(Le,"number",Le.value)}switch(lt=Ee?Sa(Ee):window,l){case"focusin":(Vm(lt)||lt.contentEditable==="true")&&(gs=lt,ys=Ee,Ml=null);break;case"focusout":Ml=ys=gs=null;break;case"mousedown":fc=!0;break;case"contextmenu":case"mouseup":case"dragend":fc=!1,Gm($e,y,Ie);break;case"selectionchange":if(cc)break;case"keydown":case"keyup":Gm($e,y,Ie)}var ut;if(Io)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 oo?ps(l,y)&&(vt="onCompositionEnd"):l==="keydown"&&y.keyCode===229&&(vt="onCompositionStart");vt&&(Um&&y.locale!=="ko"&&(oo||vt!=="onCompositionStart"?vt==="onCompositionEnd"&&oo&&(ut=xd()):(Mo=Ie,yn="value"in Mo?Mo.value:Mo.textContent,oo=!0)),lt=S(Ee,vt),0<lt.length&&(vt=new Cd(vt,l,null,y,Ie),$e.push({event:vt,listeners:lt}),ut?vt.data=ut:(ut=Ad(y),ut!==null&&(vt.data=ut)))),(ut=io?Xb(l,y):Do(l,y))&&(Ee=S(Ee,"onBeforeInput"),0<Ee.length&&(Ie=new Cd("onBeforeInput","beforeinput",null,y,Ie),$e.push({event:Ie,listeners:Ee}),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",E=[];l!==null;){var R=l,D=R.stateNode;R.tag===5&&D!==null&&(R=D,D=hr(l,y),D!=null&&E.unshift(m(l,D,R)),D=hr(l,d),D!=null&&E.push(m(l,D,R))),l=l.return}return E}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,E,R){for(var D=d._reactName,ee=[];y!==null&&y!==E;){var fe=y,me=fe.alternate,Ee=fe.stateNode;if(me!==null&&me===E)break;fe.tag===5&&Ee!==null&&(fe=Ee,R?(me=hr(y,D),me!=null&&ee.unshift(m(y,me,fe))):R||(me=hr(y,D),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(r(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 $r=typeof setTimeout=="function"?setTimeout:void 0,kr=typeof clearTimeout=="function"?clearTimeout:void 0,_n=typeof Promise=="function"?Promise:void 0,un=typeof queueMicrotask=="function"?queueMicrotask:typeof _n<"u"?function(l){return _n.resolve(null).then(l).catch(Os)}:$r;function Os(l){setTimeout(function(){throw l})}function Ud(l,d){var y=d,E=0;do{var R=y.nextSibling;if(l.removeChild(y),R&&R.nodeType===8)if(y=R.data,y==="/$"){if(E===0){l.removeChild(R),ti(d);return}E--}else y!=="$"&&y!=="$?"&&y!=="$!"||E++;y=R}while(y);ti(d)}function Uo(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 Jm(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 xa=Math.random().toString(36).slice(2),ji="__reactFiber$"+xa,Ss="__reactProps$"+xa,Dt="__reactContainer$"+xa,Ps="__reactEvents$"+xa,t_="__reactListeners$"+xa,r_="__reactHandles$"+xa;function wa(l){var d=l[ji];if(d)return d;for(var y=l.parentNode;y;){if(d=y[Dt]||y[ji]){if(y=d.alternate,d.child!==null||y!==null&&y.child!==null)for(l=Jm(l);l!==null;){if(y=l[ji])return y;l=Jm(l)}return d}l=y,y=l.parentNode}return null}function Oa(l){return l=l[ji]||l[Dt],!l||l.tag!==5&&l.tag!==6&&l.tag!==13&&l.tag!==3?null:l}function Sa(l){if(l.tag===5||l.tag===6)return l.stateNode;throw Error(r(33))}function hc(l){return l[Ss]||null}var n_=[],pc=-1;function Es(l){return{current:l}}function tr(l){0>pc||(l.current=n_[pc],n_[pc]=null,pc--)}function Yt(l,d){pc++,n_[pc]=l.current,l.current=d}var Cs={},cn=Es(Cs),Dn=Es(!1),Dl=Cs;function mc(l,d){var y=l.type.contextTypes;if(!y)return Cs;var E=l.stateNode;if(E&&E.__reactInternalMemoizedUnmaskedChildContext===d)return E.__reactInternalMemoizedMaskedChildContext;var R={},D;for(D in y)R[D]=d[D];return E&&(l=l.stateNode,l.__reactInternalMemoizedUnmaskedChildContext=d,l.__reactInternalMemoizedMaskedChildContext=R),R}function $n(l){return l=l.childContextTypes,l!=null}function ev(){tr(Dn),tr(cn)}function wA(l,d,y){if(cn.current!==Cs)throw Error(r(168));Yt(cn,d),Yt(Dn,y)}function OA(l,d,y){var E=l.stateNode;if(d=d.childContextTypes,typeof E.getChildContext!="function")return y;E=E.getChildContext();for(var R in E)if(!(R in d))throw Error(r(108,be(l)||"Unknown",R));return G({},y,E)}function tv(l){return l=(l=l.stateNode)&&l.__reactInternalMemoizedMergedChildContext||Cs,Dl=cn.current,Yt(cn,l),Yt(Dn,Dn.current),!0}function SA(l,d,y){var E=l.stateNode;if(!E)throw Error(r(169));y?(l=OA(l,d,Dl),E.__reactInternalMemoizedMergedChildContext=l,tr(Dn),tr(cn),Yt(cn,l)):tr(Dn),Yt(Dn,y)}var Pa=null,rv=!1,i_=!1;function PA(l){Pa===null?Pa=[l]:Pa.push(l)}function kW(l){rv=!0,PA(l)}function Ts(){if(!i_&&Pa!==null){i_=!0;var l=0,d=Rt;try{var y=Pa;for(Rt=1;l<y.length;l++){var E=y[l];do E=E(!0);while(E!==null)}Pa=null,rv=!1}catch(R){throw Pa!==null&&(Pa=Pa.slice(l+1)),jm(vd,Ts),R}finally{Rt=d,i_=!1}}return null}var vc=[],gc=0,nv=null,iv=0,Ai=[],ki=0,$l=null,Ea=1,Ca="";function Fl(l,d){vc[gc++]=iv,vc[gc++]=nv,nv=l,iv=d}function EA(l,d,y){Ai[ki++]=Ea,Ai[ki++]=Ca,Ai[ki++]=$l,$l=l;var E=Ea;l=Ca;var R=32-wt(E)-1;E&=~(1<<R),y+=1;var D=32-wt(d)+R;if(30<D){var ee=R-R%5;D=(E&(1<<ee)-1).toString(32),E>>=ee,R-=ee,Ea=1<<32-wt(d)+R|y<<R|E,Ca=D+l}else Ea=1<<D|y<<R|E,Ca=l}function o_(l){l.return!==null&&(Fl(l,1),EA(l,1,0))}function a_(l){for(;l===nv;)nv=vc[--gc],vc[gc]=null,iv=vc[--gc],vc[gc]=null;for(;l===$l;)$l=Ai[--ki],Ai[ki]=null,Ca=Ai[--ki],Ai[ki]=null,Ea=Ai[--ki],Ai[ki]=null}var ai=null,si=null,ar=!1,so=null;function CA(l,d){var y=Li(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 TA(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,ai=l,si=Uo(d.firstChild),!0):!1;case 6:return d=l.pendingProps===""||d.nodeType!==3?null:d,d!==null?(l.stateNode=d,ai=l,si=null,!0):!1;case 13:return d=d.nodeType!==8?null:d,d!==null?(y=$l!==null?{id:Ea,overflow:Ca}:null,l.memoizedState={dehydrated:d,treeContext:y,retryLane:1073741824},y=Li(18,null,null,0),y.stateNode=d,y.return=l,l.child=y,ai=l,si=null,!0):!1;default:return!1}}function s_(l){return(l.mode&1)!==0&&(l.flags&128)===0}function l_(l){if(ar){var d=si;if(d){var y=d;if(!TA(l,d)){if(s_(l))throw Error(r(418));d=Uo(y.nextSibling);var E=ai;d&&TA(l,d)?CA(E,y):(l.flags=l.flags&-4097|2,ar=!1,ai=l)}}else{if(s_(l))throw Error(r(418));l.flags=l.flags&-4097|2,ar=!1,ai=l}}}function jA(l){for(l=l.return;l!==null&&l.tag!==5&&l.tag!==3&&l.tag!==13;)l=l.return;ai=l}function ov(l){if(l!==ai)return!1;if(!ar)return jA(l),ar=!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=si)){if(s_(l))throw AA(),Error(r(418));for(;d;)CA(l,d),d=Uo(d.nextSibling)}if(jA(l),l.tag===13){if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(r(317));e:{for(l=l.nextSibling,d=0;l;){if(l.nodeType===8){var y=l.data;if(y==="/$"){if(d===0){si=Uo(l.nextSibling);break e}d--}else y!=="$"&&y!=="$!"&&y!=="$?"||d++}l=l.nextSibling}si=null}}else si=ai?Uo(l.stateNode.nextSibling):null;return!0}function AA(){for(var l=si;l;)l=Uo(l.nextSibling)}function yc(){si=ai=null,ar=!1}function u_(l){so===null?so=[l]:so.push(l)}var RW=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(r(309));var E=y.stateNode}if(!E)throw Error(r(147,l));var R=E,D=""+l;return d!==null&&d.ref!==null&&typeof d.ref=="function"&&d.ref._stringRef===D?d.ref:(d=function(ee){var fe=R.refs;ee===null?delete fe[D]:fe[D]=ee},d._stringRef=D,d)}if(typeof l!="string")throw Error(r(284));if(!y._owner)throw Error(r(290,l))}return l}function av(l,d){throw l=Object.prototype.toString.call(d),Error(r(31,l==="[object Object]"?"object with keys {"+Object.keys(d).join(", ")+"}":l))}function kA(l){var d=l._init;return d(l._payload)}function RA(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 E(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=Is(xe,ve),xe.index=0,xe.sibling=null,xe}function D(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=e1(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&&kA(ot)===ve.type)?(We=R(ve,Oe.props),We.ref=zd(xe,ve,Oe),We.return=xe,We):(We=Av(Oe.type,Oe.key,Oe.props,null,xe.mode,We),We.ref=zd(xe,ve,Oe),We.return=xe,We)}function Ee(xe,ve,Oe,We){return ve===null||ve.tag!==4||ve.stateNode.containerInfo!==Oe.containerInfo||ve.stateNode.implementation!==Oe.implementation?(ve=t1(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=e1(""+ve,xe.mode,Oe),ve.return=xe,ve;if(typeof ve=="object"&&ve!==null){switch(ve.$$typeof){case A:return Oe=Av(ve.type,ve.key,ve.props,null,xe.mode,Oe),Oe.ref=zd(xe,null,ve),Oe.return=xe,Oe;case j:return ve=t1(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;av(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?Ee(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);av(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,Ee(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);av(ve,We)}return null}function tt(xe,ve,Oe,We){for(var ot=null,lt=null,ut=ve,vt=ve=0,Gr=null;ut!==null&&vt<Oe.length;vt++){ut.index>vt?(Gr=ut,ut=null):Gr=ut.sibling;var Lt=Le(xe,ut,Oe[vt],We);if(Lt===null){ut===null&&(ut=Gr);break}l&&ut&&Lt.alternate===null&&d(xe,ut),ve=D(Lt,ve,vt),lt===null?ot=Lt:lt.sibling=Lt,lt=Lt,ut=Gr}if(vt===Oe.length)return y(xe,ut),ar&&Fl(xe,vt),ot;if(ut===null){for(;vt<Oe.length;vt++)ut=$e(xe,Oe[vt],We),ut!==null&&(ve=D(ut,ve,vt),lt===null?ot=ut:lt.sibling=ut,lt=ut);return ar&&Fl(xe,vt),ot}for(ut=E(xe,ut);vt<Oe.length;vt++)Gr=Qe(ut,xe,vt,Oe[vt],We),Gr!==null&&(l&&Gr.alternate!==null&&ut.delete(Gr.key===null?vt:Gr.key),ve=D(Gr,ve,vt),lt===null?ot=Gr:lt.sibling=Gr,lt=Gr);return l&&ut.forEach(function(Ds){return d(xe,Ds)}),ar&&Fl(xe,vt),ot}function rt(xe,ve,Oe,We){var ot=K(Oe);if(typeof ot!="function")throw Error(r(150));if(Oe=ot.call(Oe),Oe==null)throw Error(r(151));for(var lt=ot=null,ut=ve,vt=ve=0,Gr=null,Lt=Oe.next();ut!==null&&!Lt.done;vt++,Lt=Oe.next()){ut.index>vt?(Gr=ut,ut=null):Gr=ut.sibling;var Ds=Le(xe,ut,Lt.value,We);if(Ds===null){ut===null&&(ut=Gr);break}l&&ut&&Ds.alternate===null&&d(xe,ut),ve=D(Ds,ve,vt),lt===null?ot=Ds:lt.sibling=Ds,lt=Ds,ut=Gr}if(Lt.done)return y(xe,ut),ar&&Fl(xe,vt),ot;if(ut===null){for(;!Lt.done;vt++,Lt=Oe.next())Lt=$e(xe,Lt.value,We),Lt!==null&&(ve=D(Lt,ve,vt),lt===null?ot=Lt:lt.sibling=Lt,lt=Lt);return ar&&Fl(xe,vt),ot}for(ut=E(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=D(Lt,ve,vt),lt===null?ot=Lt:lt.sibling=Lt,lt=Lt);return l&&ut.forEach(function(fq){return d(xe,fq)}),ar&&Fl(xe,vt),ot}function Er(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&&kA(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=Av(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=t1(Oe,xe.mode,We),ve.return=xe,xe=ve}return ee(xe);case ae:return lt=Oe._init,Er(xe,ve,lt(Oe._payload),We)}if(He(Oe))return tt(xe,ve,Oe,We);if(K(Oe))return rt(xe,ve,Oe,We);av(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=e1(Oe,xe.mode,We),ve.return=xe,xe=ve),ee(xe)):y(xe,ve)}return Er}var bc=RA(!0),NA=RA(!1),sv=Es(null),lv=null,_c=null,c_=null;function f_(){c_=_c=lv=null}function d_(l){var d=sv.current;tr(sv),l._currentValue=d}function h_(l,d,y){for(;l!==null;){var E=l.alternate;if((l.childLanes&d)!==d?(l.childLanes|=d,E!==null&&(E.childLanes|=d)):E!==null&&(E.childLanes&d)!==d&&(E.childLanes|=d),l===y)break;l=l.return}}function xc(l,d){lv=l,c_=_c=null,l=l.dependencies,l!==null&&l.firstContext!==null&&(l.lanes&d&&(Fn=!0),l.firstContext=null)}function Ri(l){var d=l._currentValue;if(c_!==l)if(l={context:l,memoizedValue:d,next:null},_c===null){if(lv===null)throw Error(r(308));_c=l,lv.dependencies={lanes:0,firstContext:l}}else _c=_c.next=l;return d}var Bl=null;function p_(l){Bl===null?Bl=[l]:Bl.push(l)}function MA(l,d,y,E){var R=d.interleaved;return R===null?(y.next=y,p_(d)):(y.next=R.next,R.next=y),d.interleaved=y,Ta(l,E)}function Ta(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 js=!1;function m_(l){l.updateQueue={baseState:l.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function LA(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 ja(l,d){return{eventTime:l,lane:d,tag:0,payload:null,callback:null,next:null}}function As(l,d,y){var E=l.updateQueue;if(E===null)return null;if(E=E.shared,Mt&2){var R=E.pending;return R===null?d.next=d:(d.next=R.next,R.next=d),E.pending=d,Ta(l,y)}return R=E.interleaved,R===null?(d.next=d,p_(E)):(d.next=R.next,R.next=d),E.interleaved=d,Ta(l,y)}function uv(l,d,y){if(d=d.updateQueue,d!==null&&(d=d.shared,(y&4194240)!==0)){var E=d.lanes;E&=l.pendingLanes,y|=E,d.lanes=y,ro(l,y)}}function IA(l,d){var y=l.updateQueue,E=l.alternate;if(E!==null&&(E=E.updateQueue,y===E)){var R=null,D=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};D===null?R=D=ee:D=D.next=ee,y=y.next}while(y!==null);D===null?R=D=d:D=D.next=d}else R=D=d;y={baseState:E.baseState,firstBaseUpdate:R,lastBaseUpdate:D,shared:E.shared,effects:E.effects},l.updateQueue=y;return}l=y.lastBaseUpdate,l===null?y.firstBaseUpdate=d:l.next=d,y.lastBaseUpdate=d}function cv(l,d,y,E){var R=l.updateQueue;js=!1;var D=R.firstBaseUpdate,ee=R.lastBaseUpdate,fe=R.shared.pending;if(fe!==null){R.shared.pending=null;var me=fe,Ee=me.next;me.next=null,ee===null?D=Ee:ee.next=Ee,ee=me;var Ie=l.alternate;Ie!==null&&(Ie=Ie.updateQueue,fe=Ie.lastBaseUpdate,fe!==ee&&(fe===null?Ie.firstBaseUpdate=Ee:fe.next=Ee,Ie.lastBaseUpdate=me))}if(D!==null){var $e=R.baseState;ee=0,Ie=Ee=me=null,fe=D;do{var Le=fe.lane,Qe=fe.eventTime;if((E&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,rt=fe;switch(Le=d,Qe=y,rt.tag){case 1:if(tt=rt.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=rt.payload,Le=typeof tt=="function"?tt.call(Qe,$e,Le):tt,Le==null)break e;$e=G({},$e,Le);break e;case 2:js=!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?(Ee=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=Ee,R.lastBaseUpdate=Ie,d=R.shared.interleaved,d!==null){R=d;do ee|=R.lane,R=R.next;while(R!==d)}else D===null&&(R.shared.lanes=0);Vl|=ee,l.lanes=ee,l.memoizedState=$e}}function DA(l,d,y){if(l=d.effects,d.effects=null,l!==null)for(d=0;d<l.length;d++){var E=l[d],R=E.callback;if(R!==null){if(E.callback=null,E=y,typeof R!="function")throw Error(r(191,R));R.call(E)}}}var Vd={},zo=Es(Vd),Wd=Es(Vd),qd=Es(Vd);function Ul(l){if(l===Vd)throw Error(r(174));return l}function v_(l,d){switch(Yt(qd,d),Yt(Wd,l),Yt(zo,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)}tr(zo),Yt(zo,d)}function wc(){tr(zo),tr(Wd),tr(qd)}function $A(l){Ul(qd.current);var d=Ul(zo.current),y=De(d,l.type);d!==y&&(Yt(Wd,l),Yt(zo,y))}function g_(l){Wd.current===l&&(tr(zo),tr(Wd))}var yr=Es(0);function fv(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 y_=[];function b_(){for(var l=0;l<y_.length;l++)y_[l]._workInProgressVersionPrimary=null;y_.length=0}var dv=T.ReactCurrentDispatcher,__=T.ReactCurrentBatchConfig,zl=0,br=null,Fr=null,qr=null,hv=!1,Hd=!1,Gd=0,NW=0;function fn(){throw Error(r(321))}function x_(l,d){if(d===null)return!1;for(var y=0;y<d.length&&y<l.length;y++)if(!ii(l[y],d[y]))return!1;return!0}function w_(l,d,y,E,R,D){if(zl=D,br=d,d.memoizedState=null,d.updateQueue=null,d.lanes=0,dv.current=l===null||l.memoizedState===null?DW:$W,l=y(E,R),Hd){D=0;do{if(Hd=!1,Gd=0,25<=D)throw Error(r(301));D+=1,qr=Fr=null,d.updateQueue=null,dv.current=FW,l=y(E,R)}while(Hd)}if(dv.current=vv,d=Fr!==null&&Fr.next!==null,zl=0,qr=Fr=br=null,hv=!1,d)throw Error(r(300));return l}function O_(){var l=Gd!==0;return Gd=0,l}function Vo(){var l={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return qr===null?br.memoizedState=qr=l:qr=qr.next=l,qr}function Ni(){if(Fr===null){var l=br.alternate;l=l!==null?l.memoizedState:null}else l=Fr.next;var d=qr===null?br.memoizedState:qr.next;if(d!==null)qr=d,Fr=l;else{if(l===null)throw Error(r(310));Fr=l,l={memoizedState:Fr.memoizedState,baseState:Fr.baseState,baseQueue:Fr.baseQueue,queue:Fr.queue,next:null},qr===null?br.memoizedState=qr=l:qr=qr.next=l}return qr}function Kd(l,d){return typeof d=="function"?d(l):d}function S_(l){var d=Ni(),y=d.queue;if(y===null)throw Error(r(311));y.lastRenderedReducer=l;var E=Fr,R=E.baseQueue,D=y.pending;if(D!==null){if(R!==null){var ee=R.next;R.next=D.next,D.next=ee}E.baseQueue=R=D,y.pending=null}if(R!==null){D=R.next,E=E.baseState;var fe=ee=null,me=null,Ee=D;do{var Ie=Ee.lane;if((zl&Ie)===Ie)me!==null&&(me=me.next={lane:0,action:Ee.action,hasEagerState:Ee.hasEagerState,eagerState:Ee.eagerState,next:null}),E=Ee.hasEagerState?Ee.eagerState:l(E,Ee.action);else{var $e={lane:Ie,action:Ee.action,hasEagerState:Ee.hasEagerState,eagerState:Ee.eagerState,next:null};me===null?(fe=me=$e,ee=E):me=me.next=$e,br.lanes|=Ie,Vl|=Ie}Ee=Ee.next}while(Ee!==null&&Ee!==D);me===null?ee=E:me.next=fe,ii(E,d.memoizedState)||(Fn=!0),d.memoizedState=E,d.baseState=ee,d.baseQueue=me,y.lastRenderedState=E}if(l=y.interleaved,l!==null){R=l;do D=R.lane,br.lanes|=D,Vl|=D,R=R.next;while(R!==l)}else R===null&&(y.lanes=0);return[d.memoizedState,y.dispatch]}function P_(l){var d=Ni(),y=d.queue;if(y===null)throw Error(r(311));y.lastRenderedReducer=l;var E=y.dispatch,R=y.pending,D=d.memoizedState;if(R!==null){y.pending=null;var ee=R=R.next;do D=l(D,ee.action),ee=ee.next;while(ee!==R);ii(D,d.memoizedState)||(Fn=!0),d.memoizedState=D,d.baseQueue===null&&(d.baseState=D),y.lastRenderedState=D}return[D,E]}function FA(){}function BA(l,d){var y=br,E=Ni(),R=d(),D=!ii(E.memoizedState,R);if(D&&(E.memoizedState=R,Fn=!0),E=E.queue,E_(VA.bind(null,y,E,l),[l]),E.getSnapshot!==d||D||qr!==null&&qr.memoizedState.tag&1){if(y.flags|=2048,Yd(9,zA.bind(null,y,E,R,d),void 0,null),Hr===null)throw Error(r(349));zl&30||UA(y,d,R)}return R}function UA(l,d,y){l.flags|=16384,l={getSnapshot:d,value:y},d=br.updateQueue,d===null?(d={lastEffect:null,stores:null},br.updateQueue=d,d.stores=[l]):(y=d.stores,y===null?d.stores=[l]:y.push(l))}function zA(l,d,y,E){d.value=y,d.getSnapshot=E,WA(d)&&qA(l)}function VA(l,d,y){return y(function(){WA(d)&&qA(l)})}function WA(l){var d=l.getSnapshot;l=l.value;try{var y=d();return!ii(l,y)}catch{return!0}}function qA(l){var d=Ta(l,1);d!==null&&fo(d,l,1,-1)}function HA(l){var d=Vo();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=IW.bind(null,br,l),[d.memoizedState,l]}function Yd(l,d,y,E){return l={tag:l,create:d,destroy:y,deps:E,next:null},d=br.updateQueue,d===null?(d={lastEffect:null,stores:null},br.updateQueue=d,d.lastEffect=l.next=l):(y=d.lastEffect,y===null?d.lastEffect=l.next=l:(E=y.next,y.next=l,l.next=E,d.lastEffect=l)),l}function GA(){return Ni().memoizedState}function pv(l,d,y,E){var R=Vo();br.flags|=l,R.memoizedState=Yd(1|d,y,void 0,E===void 0?null:E)}function mv(l,d,y,E){var R=Ni();E=E===void 0?null:E;var D=void 0;if(Fr!==null){var ee=Fr.memoizedState;if(D=ee.destroy,E!==null&&x_(E,ee.deps)){R.memoizedState=Yd(d,y,D,E);return}}br.flags|=l,R.memoizedState=Yd(1|d,y,D,E)}function KA(l,d){return pv(8390656,8,l,d)}function E_(l,d){return mv(2048,8,l,d)}function YA(l,d){return mv(4,2,l,d)}function ZA(l,d){return mv(4,4,l,d)}function XA(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 QA(l,d,y){return y=y!=null?y.concat([l]):null,mv(4,4,XA.bind(null,d,l),y)}function C_(){}function JA(l,d){var y=Ni();d=d===void 0?null:d;var E=y.memoizedState;return E!==null&&d!==null&&x_(d,E[1])?E[0]:(y.memoizedState=[l,d],l)}function ek(l,d){var y=Ni();d=d===void 0?null:d;var E=y.memoizedState;return E!==null&&d!==null&&x_(d,E[1])?E[0]:(l=l(),y.memoizedState=[l,d],l)}function tk(l,d,y){return zl&21?(ii(y,d)||(y=km(),br.lanes|=y,Vl|=y,l.baseState=!0),d):(l.baseState&&(l.baseState=!1,Fn=!0),l.memoizedState=y)}function MW(l,d){var y=Rt;Rt=y!==0&&4>y?y:4,l(!0);var E=__.transition;__.transition={};try{l(!1),d()}finally{Rt=y,__.transition=E}}function rk(){return Ni().memoizedState}function LW(l,d,y){var E=Ms(l);if(y={lane:E,action:y,hasEagerState:!1,eagerState:null,next:null},nk(l))ik(d,y);else if(y=MA(l,d,y,E),y!==null){var R=wn();fo(y,l,E,R),ok(y,d,E)}}function IW(l,d,y){var E=Ms(l),R={lane:E,action:y,hasEagerState:!1,eagerState:null,next:null};if(nk(l))ik(d,R);else{var D=l.alternate;if(l.lanes===0&&(D===null||D.lanes===0)&&(D=d.lastRenderedReducer,D!==null))try{var ee=d.lastRenderedState,fe=D(ee,y);if(R.hasEagerState=!0,R.eagerState=fe,ii(fe,ee)){var me=d.interleaved;me===null?(R.next=R,p_(d)):(R.next=me.next,me.next=R),d.interleaved=R;return}}catch{}finally{}y=MA(l,d,R,E),y!==null&&(R=wn(),fo(y,l,E,R),ok(y,d,E))}}function nk(l){var d=l.alternate;return l===br||d!==null&&d===br}function ik(l,d){Hd=hv=!0;var y=l.pending;y===null?d.next=d:(d.next=y.next,y.next=d),l.pending=d}function ok(l,d,y){if(y&4194240){var E=d.lanes;E&=l.pendingLanes,y|=E,d.lanes=y,ro(l,y)}}var vv={readContext:Ri,useCallback:fn,useContext:fn,useEffect:fn,useImperativeHandle:fn,useInsertionEffect:fn,useLayoutEffect:fn,useMemo:fn,useReducer:fn,useRef:fn,useState:fn,useDebugValue:fn,useDeferredValue:fn,useTransition:fn,useMutableSource:fn,useSyncExternalStore:fn,useId:fn,unstable_isNewReconciler:!1},DW={readContext:Ri,useCallback:function(l,d){return Vo().memoizedState=[l,d===void 0?null:d],l},useContext:Ri,useEffect:KA,useImperativeHandle:function(l,d,y){return y=y!=null?y.concat([l]):null,pv(4194308,4,XA.bind(null,d,l),y)},useLayoutEffect:function(l,d){return pv(4194308,4,l,d)},useInsertionEffect:function(l,d){return pv(4,2,l,d)},useMemo:function(l,d){var y=Vo();return d=d===void 0?null:d,l=l(),y.memoizedState=[l,d],l},useReducer:function(l,d,y){var E=Vo();return d=y!==void 0?y(d):d,E.memoizedState=E.baseState=d,l={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:d},E.queue=l,l=l.dispatch=LW.bind(null,br,l),[E.memoizedState,l]},useRef:function(l){var d=Vo();return l={current:l},d.memoizedState=l},useState:HA,useDebugValue:C_,useDeferredValue:function(l){return Vo().memoizedState=l},useTransition:function(){var l=HA(!1),d=l[0];return l=MW.bind(null,l[1]),Vo().memoizedState=l,[d,l]},useMutableSource:function(){},useSyncExternalStore:function(l,d,y){var E=br,R=Vo();if(ar){if(y===void 0)throw Error(r(407));y=y()}else{if(y=d(),Hr===null)throw Error(r(349));zl&30||UA(E,d,y)}R.memoizedState=y;var D={value:y,getSnapshot:d};return R.queue=D,KA(VA.bind(null,E,D,l),[l]),E.flags|=2048,Yd(9,zA.bind(null,E,D,y,d),void 0,null),y},useId:function(){var l=Vo(),d=Hr.identifierPrefix;if(ar){var y=Ca,E=Ea;y=(E&~(1<<32-wt(E)-1)).toString(32)+y,d=":"+d+"R"+y,y=Gd++,0<y&&(d+="H"+y.toString(32)),d+=":"}else y=NW++,d=":"+d+"r"+y.toString(32)+":";return l.memoizedState=d},unstable_isNewReconciler:!1},$W={readContext:Ri,useCallback:JA,useContext:Ri,useEffect:E_,useImperativeHandle:QA,useInsertionEffect:YA,useLayoutEffect:ZA,useMemo:ek,useReducer:S_,useRef:GA,useState:function(){return S_(Kd)},useDebugValue:C_,useDeferredValue:function(l){var d=Ni();return tk(d,Fr.memoizedState,l)},useTransition:function(){var l=S_(Kd)[0],d=Ni().memoizedState;return[l,d]},useMutableSource:FA,useSyncExternalStore:BA,useId:rk,unstable_isNewReconciler:!1},FW={readContext:Ri,useCallback:JA,useContext:Ri,useEffect:E_,useImperativeHandle:QA,useInsertionEffect:YA,useLayoutEffect:ZA,useMemo:ek,useReducer:P_,useRef:GA,useState:function(){return P_(Kd)},useDebugValue:C_,useDeferredValue:function(l){var d=Ni();return Fr===null?d.memoizedState=l:tk(d,Fr.memoizedState,l)},useTransition:function(){var l=P_(Kd)[0],d=Ni().memoizedState;return[l,d]},useMutableSource:FA,useSyncExternalStore:BA,useId:rk,unstable_isNewReconciler:!1};function lo(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 T_(l,d,y,E){d=l.memoizedState,y=y(E,d),y=y==null?d:G({},d,y),l.memoizedState=y,l.lanes===0&&(l.updateQueue.baseState=y)}var gv={isMounted:function(l){return(l=l._reactInternals)?No(l)===l:!1},enqueueSetState:function(l,d,y){l=l._reactInternals;var E=wn(),R=Ms(l),D=ja(E,R);D.payload=d,y!=null&&(D.callback=y),d=As(l,D,R),d!==null&&(fo(d,l,R,E),uv(d,l,R))},enqueueReplaceState:function(l,d,y){l=l._reactInternals;var E=wn(),R=Ms(l),D=ja(E,R);D.tag=1,D.payload=d,y!=null&&(D.callback=y),d=As(l,D,R),d!==null&&(fo(d,l,R,E),uv(d,l,R))},enqueueForceUpdate:function(l,d){l=l._reactInternals;var y=wn(),E=Ms(l),R=ja(y,E);R.tag=2,d!=null&&(R.callback=d),d=As(l,R,E),d!==null&&(fo(d,l,E,y),uv(d,l,E))}};function ak(l,d,y,E,R,D,ee){return l=l.stateNode,typeof l.shouldComponentUpdate=="function"?l.shouldComponentUpdate(E,D,ee):d.prototype&&d.prototype.isPureReactComponent?!$o(y,E)||!$o(R,D):!0}function sk(l,d,y){var E=!1,R=Cs,D=d.contextType;return typeof D=="object"&&D!==null?D=Ri(D):(R=$n(d)?Dl:cn.current,E=d.contextTypes,D=(E=E!=null)?mc(l,R):Cs),d=new d(y,D),l.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=gv,l.stateNode=d,d._reactInternals=l,E&&(l=l.stateNode,l.__reactInternalMemoizedUnmaskedChildContext=R,l.__reactInternalMemoizedMaskedChildContext=D),d}function lk(l,d,y,E){l=d.state,typeof d.componentWillReceiveProps=="function"&&d.componentWillReceiveProps(y,E),typeof d.UNSAFE_componentWillReceiveProps=="function"&&d.UNSAFE_componentWillReceiveProps(y,E),d.state!==l&&gv.enqueueReplaceState(d,d.state,null)}function j_(l,d,y,E){var R=l.stateNode;R.props=y,R.state=l.memoizedState,R.refs={},m_(l);var D=d.contextType;typeof D=="object"&&D!==null?R.context=Ri(D):(D=$n(d)?Dl:cn.current,R.context=mc(l,D)),R.state=l.memoizedState,D=d.getDerivedStateFromProps,typeof D=="function"&&(T_(l,d,D,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&&gv.enqueueReplaceState(R,R.state,null),cv(l,y,R,E),R.state=l.memoizedState),typeof R.componentDidMount=="function"&&(l.flags|=4194308)}function Oc(l,d){try{var y="",E=d;do y+=ce(E),E=E.return;while(E);var R=y}catch(D){R=`
|
||
Error generating stack: `+D.message+`
|
||
`+D.stack}return{value:l,source:d,stack:R,digest:null}}function A_(l,d,y){return{value:l,source:null,stack:y??null,digest:d??null}}function k_(l,d){try{console.error(d.value)}catch(y){setTimeout(function(){throw y})}}var BW=typeof WeakMap=="function"?WeakMap:Map;function uk(l,d,y){y=ja(-1,y),y.tag=3,y.payload={element:null};var E=d.value;return y.callback=function(){Sv||(Sv=!0,H_=E),k_(l,d)},y}function ck(l,d,y){y=ja(-1,y),y.tag=3;var E=l.type.getDerivedStateFromError;if(typeof E=="function"){var R=d.value;y.payload=function(){return E(R)},y.callback=function(){k_(l,d)}}var D=l.stateNode;return D!==null&&typeof D.componentDidCatch=="function"&&(y.callback=function(){k_(l,d),typeof E!="function"&&(Rs===null?Rs=new Set([this]):Rs.add(this));var ee=d.stack;this.componentDidCatch(d.value,{componentStack:ee!==null?ee:""})}),y}function fk(l,d,y){var E=l.pingCache;if(E===null){E=l.pingCache=new BW;var R=new Set;E.set(d,R)}else R=E.get(d),R===void 0&&(R=new Set,E.set(d,R));R.has(y)||(R.add(y),l=eq.bind(null,l,d,y),d.then(l,l))}function dk(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 hk(l,d,y,E,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=ja(-1,1),d.tag=2,As(y,d,1))),y.lanes|=1),l)}var UW=T.ReactCurrentOwner,Fn=!1;function xn(l,d,y,E){d.child=l===null?NA(d,null,y,E):bc(d,l.child,y,E)}function pk(l,d,y,E,R){y=y.render;var D=d.ref;return xc(d,R),E=w_(l,d,y,E,D,R),y=O_(),l!==null&&!Fn?(d.updateQueue=l.updateQueue,d.flags&=-2053,l.lanes&=~R,Aa(l,d,R)):(ar&&y&&o_(d),d.flags|=1,xn(l,d,E,R),d.child)}function mk(l,d,y,E,R){if(l===null){var D=y.type;return typeof D=="function"&&!J_(D)&&D.defaultProps===void 0&&y.compare===null&&y.defaultProps===void 0?(d.tag=15,d.type=D,vk(l,d,D,E,R)):(l=Av(y.type,null,E,d,d.mode,R),l.ref=d.ref,l.return=d,d.child=l)}if(D=l.child,!(l.lanes&R)){var ee=D.memoizedProps;if(y=y.compare,y=y!==null?y:$o,y(ee,E)&&l.ref===d.ref)return Aa(l,d,R)}return d.flags|=1,l=Is(D,E),l.ref=d.ref,l.return=d,d.child=l}function vk(l,d,y,E,R){if(l!==null){var D=l.memoizedProps;if($o(D,E)&&l.ref===d.ref)if(Fn=!1,d.pendingProps=E=D,(l.lanes&R)!==0)l.flags&131072&&(Fn=!0);else return d.lanes=l.lanes,Aa(l,d,R)}return R_(l,d,y,E,R)}function gk(l,d,y){var E=d.pendingProps,R=E.children,D=l!==null?l.memoizedState:null;if(E.mode==="hidden")if(!(d.mode&1))d.memoizedState={baseLanes:0,cachePool:null,transitions:null},Yt(Pc,li),li|=y;else{if(!(y&1073741824))return l=D!==null?D.baseLanes|y:y,d.lanes=d.childLanes=1073741824,d.memoizedState={baseLanes:l,cachePool:null,transitions:null},d.updateQueue=null,Yt(Pc,li),li|=l,null;d.memoizedState={baseLanes:0,cachePool:null,transitions:null},E=D!==null?D.baseLanes:y,Yt(Pc,li),li|=E}else D!==null?(E=D.baseLanes|y,d.memoizedState=null):E=y,Yt(Pc,li),li|=E;return xn(l,d,R,y),d.child}function yk(l,d){var y=d.ref;(l===null&&y!==null||l!==null&&l.ref!==y)&&(d.flags|=512,d.flags|=2097152)}function R_(l,d,y,E,R){var D=$n(y)?Dl:cn.current;return D=mc(d,D),xc(d,R),y=w_(l,d,y,E,D,R),E=O_(),l!==null&&!Fn?(d.updateQueue=l.updateQueue,d.flags&=-2053,l.lanes&=~R,Aa(l,d,R)):(ar&&E&&o_(d),d.flags|=1,xn(l,d,y,R),d.child)}function bk(l,d,y,E,R){if($n(y)){var D=!0;tv(d)}else D=!1;if(xc(d,R),d.stateNode===null)bv(l,d),sk(d,y,E),j_(d,y,E,R),E=!0;else if(l===null){var ee=d.stateNode,fe=d.memoizedProps;ee.props=fe;var me=ee.context,Ee=y.contextType;typeof Ee=="object"&&Ee!==null?Ee=Ri(Ee):(Ee=$n(y)?Dl:cn.current,Ee=mc(d,Ee));var Ie=y.getDerivedStateFromProps,$e=typeof Ie=="function"||typeof ee.getSnapshotBeforeUpdate=="function";$e||typeof ee.UNSAFE_componentWillReceiveProps!="function"&&typeof ee.componentWillReceiveProps!="function"||(fe!==E||me!==Ee)&&lk(d,ee,E,Ee),js=!1;var Le=d.memoizedState;ee.state=Le,cv(d,E,ee,R),me=d.memoizedState,fe!==E||Le!==me||Dn.current||js?(typeof Ie=="function"&&(T_(d,y,Ie,E),me=d.memoizedState),(fe=js||ak(d,y,fe,E,Le,me,Ee))?($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=E,d.memoizedState=me),ee.props=E,ee.state=me,ee.context=Ee,E=fe):(typeof ee.componentDidMount=="function"&&(d.flags|=4194308),E=!1)}else{ee=d.stateNode,LA(l,d),fe=d.memoizedProps,Ee=d.type===d.elementType?fe:lo(d.type,fe),ee.props=Ee,$e=d.pendingProps,Le=ee.context,me=y.contextType,typeof me=="object"&&me!==null?me=Ri(me):(me=$n(y)?Dl:cn.current,me=mc(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)&&lk(d,ee,E,me),js=!1,Le=d.memoizedState,ee.state=Le,cv(d,E,ee,R);var tt=d.memoizedState;fe!==$e||Le!==tt||Dn.current||js?(typeof Qe=="function"&&(T_(d,y,Qe,E),tt=d.memoizedState),(Ee=js||ak(d,y,Ee,E,Le,tt,me)||!1)?(Ie||typeof ee.UNSAFE_componentWillUpdate!="function"&&typeof ee.componentWillUpdate!="function"||(typeof ee.componentWillUpdate=="function"&&ee.componentWillUpdate(E,tt,me),typeof ee.UNSAFE_componentWillUpdate=="function"&&ee.UNSAFE_componentWillUpdate(E,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=E,d.memoizedState=tt),ee.props=E,ee.state=tt,ee.context=me,E=Ee):(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),E=!1)}return N_(l,d,y,E,D,R)}function N_(l,d,y,E,R,D){yk(l,d);var ee=(d.flags&128)!==0;if(!E&&!ee)return R&&SA(d,y,!1),Aa(l,d,D);E=d.stateNode,UW.current=d;var fe=ee&&typeof y.getDerivedStateFromError!="function"?null:E.render();return d.flags|=1,l!==null&&ee?(d.child=bc(d,l.child,null,D),d.child=bc(d,null,fe,D)):xn(l,d,fe,D),d.memoizedState=E.state,R&&SA(d,y,!0),d.child}function _k(l){var d=l.stateNode;d.pendingContext?wA(l,d.pendingContext,d.pendingContext!==d.context):d.context&&wA(l,d.context,!1),v_(l,d.containerInfo)}function xk(l,d,y,E,R){return yc(),u_(R),d.flags|=256,xn(l,d,y,E),d.child}var M_={dehydrated:null,treeContext:null,retryLane:0};function L_(l){return{baseLanes:l,cachePool:null,transitions:null}}function wk(l,d,y){var E=d.pendingProps,R=yr.current,D=!1,ee=(d.flags&128)!==0,fe;if((fe=ee)||(fe=l!==null&&l.memoizedState===null?!1:(R&2)!==0),fe?(D=!0,d.flags&=-129):(l===null||l.memoizedState!==null)&&(R|=1),Yt(yr,R&1),l===null)return l_(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=E.children,l=E.fallback,D?(E=d.mode,D=d.child,ee={mode:"hidden",children:ee},!(E&1)&&D!==null?(D.childLanes=0,D.pendingProps=ee):D=kv(ee,E,0,null),l=Gl(l,E,y,null),D.return=d,l.return=d,D.sibling=l,d.child=D,d.child.memoizedState=L_(y),d.memoizedState=M_,l):I_(d,ee));if(R=l.memoizedState,R!==null&&(fe=R.dehydrated,fe!==null))return zW(l,d,ee,E,fe,R,y);if(D){D=E.fallback,ee=d.mode,R=l.child,fe=R.sibling;var me={mode:"hidden",children:E.children};return!(ee&1)&&d.child!==R?(E=d.child,E.childLanes=0,E.pendingProps=me,d.deletions=null):(E=Is(R,me),E.subtreeFlags=R.subtreeFlags&14680064),fe!==null?D=Is(fe,D):(D=Gl(D,ee,y,null),D.flags|=2),D.return=d,E.return=d,E.sibling=D,d.child=E,E=D,D=d.child,ee=l.child.memoizedState,ee=ee===null?L_(y):{baseLanes:ee.baseLanes|y,cachePool:null,transitions:ee.transitions},D.memoizedState=ee,D.childLanes=l.childLanes&~y,d.memoizedState=M_,E}return D=l.child,l=D.sibling,E=Is(D,{mode:"visible",children:E.children}),!(d.mode&1)&&(E.lanes=y),E.return=d,E.sibling=null,l!==null&&(y=d.deletions,y===null?(d.deletions=[l],d.flags|=16):y.push(l)),d.child=E,d.memoizedState=null,E}function I_(l,d){return d=kv({mode:"visible",children:d},l.mode,0,null),d.return=l,l.child=d}function yv(l,d,y,E){return E!==null&&u_(E),bc(d,l.child,null,y),l=I_(d,d.pendingProps.children),l.flags|=2,d.memoizedState=null,l}function zW(l,d,y,E,R,D,ee){if(y)return d.flags&256?(d.flags&=-257,E=A_(Error(r(422))),yv(l,d,ee,E)):d.memoizedState!==null?(d.child=l.child,d.flags|=128,null):(D=E.fallback,R=d.mode,E=kv({mode:"visible",children:E.children},R,0,null),D=Gl(D,R,ee,null),D.flags|=2,E.return=d,D.return=d,E.sibling=D,d.child=E,d.mode&1&&bc(d,l.child,null,ee),d.child.memoizedState=L_(ee),d.memoizedState=M_,D);if(!(d.mode&1))return yv(l,d,ee,null);if(R.data==="$!"){if(E=R.nextSibling&&R.nextSibling.dataset,E)var fe=E.dgst;return E=fe,D=Error(r(419)),E=A_(D,E,void 0),yv(l,d,ee,E)}if(fe=(ee&l.childLanes)!==0,Fn||fe){if(E=Hr,E!==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&(E.suspendedLanes|ee)?0:R,R!==0&&R!==D.retryLane&&(D.retryLane=R,Ta(l,R),fo(E,l,R,-1))}return Q_(),E=A_(Error(r(421))),yv(l,d,ee,E)}return R.data==="$?"?(d.flags|=128,d.child=l.child,d=tq.bind(null,l),R._reactRetry=d,null):(l=D.treeContext,si=Uo(R.nextSibling),ai=d,ar=!0,so=null,l!==null&&(Ai[ki++]=Ea,Ai[ki++]=Ca,Ai[ki++]=$l,Ea=l.id,Ca=l.overflow,$l=d),d=I_(d,E.children),d.flags|=4096,d)}function Ok(l,d,y){l.lanes|=d;var E=l.alternate;E!==null&&(E.lanes|=d),h_(l.return,d,y)}function D_(l,d,y,E,R){var D=l.memoizedState;D===null?l.memoizedState={isBackwards:d,rendering:null,renderingStartTime:0,last:E,tail:y,tailMode:R}:(D.isBackwards=d,D.rendering=null,D.renderingStartTime=0,D.last=E,D.tail=y,D.tailMode=R)}function Sk(l,d,y){var E=d.pendingProps,R=E.revealOrder,D=E.tail;if(xn(l,d,E.children,y),E=yr.current,E&2)E=E&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&&Ok(l,y,d);else if(l.tag===19)Ok(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}E&=1}if(Yt(yr,E),!(d.mode&1))d.memoizedState=null;else switch(R){case"forwards":for(y=d.child,R=null;y!==null;)l=y.alternate,l!==null&&fv(l)===null&&(R=y),y=y.sibling;y=R,y===null?(R=d.child,d.child=null):(R=y.sibling,y.sibling=null),D_(d,!1,R,y,D);break;case"backwards":for(y=null,R=d.child,d.child=null;R!==null;){if(l=R.alternate,l!==null&&fv(l)===null){d.child=R;break}l=R.sibling,R.sibling=y,y=R,R=l}D_(d,!0,y,null,D);break;case"together":D_(d,!1,null,null,void 0);break;default:d.memoizedState=null}return d.child}function bv(l,d){!(d.mode&1)&&l!==null&&(l.alternate=null,d.alternate=null,d.flags|=2)}function Aa(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(r(153));if(d.child!==null){for(l=d.child,y=Is(l,l.pendingProps),d.child=y,y.return=d;l.sibling!==null;)l=l.sibling,y=y.sibling=Is(l,l.pendingProps),y.return=d;y.sibling=null}return d.child}function VW(l,d,y){switch(d.tag){case 3:_k(d),yc();break;case 5:$A(d);break;case 1:$n(d.type)&&tv(d);break;case 4:v_(d,d.stateNode.containerInfo);break;case 10:var E=d.type._context,R=d.memoizedProps.value;Yt(sv,E._currentValue),E._currentValue=R;break;case 13:if(E=d.memoizedState,E!==null)return E.dehydrated!==null?(Yt(yr,yr.current&1),d.flags|=128,null):y&d.child.childLanes?wk(l,d,y):(Yt(yr,yr.current&1),l=Aa(l,d,y),l!==null?l.sibling:null);Yt(yr,yr.current&1);break;case 19:if(E=(y&d.childLanes)!==0,l.flags&128){if(E)return Sk(l,d,y);d.flags|=128}if(R=d.memoizedState,R!==null&&(R.rendering=null,R.tail=null,R.lastEffect=null),Yt(yr,yr.current),E)break;return null;case 22:case 23:return d.lanes=0,gk(l,d,y)}return Aa(l,d,y)}var Pk,$_,Ek,Ck;Pk=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}},$_=function(){},Ek=function(l,d,y,E){var R=l.memoizedProps;if(R!==E){l=d.stateNode,Ul(zo.current);var D=null;switch(y){case"input":R=Se(l,R),E=Se(l,E),D=[];break;case"select":R=G({},R,{value:void 0}),E=G({},E,{value:void 0}),D=[];break;case"textarea":R=qe(l,R),E=qe(l,E),D=[];break;default:typeof R.onClick!="function"&&typeof E.onClick=="function"&&(l.onclick=Re)}Lr(y,E);var ee;y=null;for(Ee in R)if(!E.hasOwnProperty(Ee)&&R.hasOwnProperty(Ee)&&R[Ee]!=null)if(Ee==="style"){var fe=R[Ee];for(ee in fe)fe.hasOwnProperty(ee)&&(y||(y={}),y[ee]="")}else Ee!=="dangerouslySetInnerHTML"&&Ee!=="children"&&Ee!=="suppressContentEditableWarning"&&Ee!=="suppressHydrationWarning"&&Ee!=="autoFocus"&&(i.hasOwnProperty(Ee)?D||(D=[]):(D=D||[]).push(Ee,null));for(Ee in E){var me=E[Ee];if(fe=R!=null?R[Ee]:void 0,E.hasOwnProperty(Ee)&&me!==fe&&(me!=null||fe!=null))if(Ee==="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||(D||(D=[]),D.push(Ee,y)),y=me;else Ee==="dangerouslySetInnerHTML"?(me=me?me.__html:void 0,fe=fe?fe.__html:void 0,me!=null&&fe!==me&&(D=D||[]).push(Ee,me)):Ee==="children"?typeof me!="string"&&typeof me!="number"||(D=D||[]).push(Ee,""+me):Ee!=="suppressContentEditableWarning"&&Ee!=="suppressHydrationWarning"&&(i.hasOwnProperty(Ee)?(me!=null&&Ee==="onScroll"&&Ut("scroll",l),D||fe===me||(D=[])):(D=D||[]).push(Ee,me))}y&&(D=D||[]).push("style",y);var Ee=D;(d.updateQueue=Ee)&&(d.flags|=4)}},Ck=function(l,d,y,E){y!==E&&(d.flags|=4)};function Zd(l,d){if(!ar)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 E=null;y!==null;)y.alternate!==null&&(E=y),y=y.sibling;E===null?d||l.tail===null?l.tail=null:l.tail.sibling=null:E.sibling=null}}function dn(l){var d=l.alternate!==null&&l.alternate.child===l.child,y=0,E=0;if(d)for(var R=l.child;R!==null;)y|=R.lanes|R.childLanes,E|=R.subtreeFlags&14680064,E|=R.flags&14680064,R.return=l,R=R.sibling;else for(R=l.child;R!==null;)y|=R.lanes|R.childLanes,E|=R.subtreeFlags,E|=R.flags,R.return=l,R=R.sibling;return l.subtreeFlags|=E,l.childLanes=y,d}function WW(l,d,y){var E=d.pendingProps;switch(a_(d),d.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return dn(d),null;case 1:return $n(d.type)&&ev(),dn(d),null;case 3:return E=d.stateNode,wc(),tr(Dn),tr(cn),b_(),E.pendingContext&&(E.context=E.pendingContext,E.pendingContext=null),(l===null||l.child===null)&&(ov(d)?d.flags|=4:l===null||l.memoizedState.isDehydrated&&!(d.flags&256)||(d.flags|=1024,so!==null&&(Y_(so),so=null))),$_(l,d),dn(d),null;case 5:g_(d);var R=Ul(qd.current);if(y=d.type,l!==null&&d.stateNode!=null)Ek(l,d,y,E,R),l.ref!==d.ref&&(d.flags|=512,d.flags|=2097152);else{if(!E){if(d.stateNode===null)throw Error(r(166));return dn(d),null}if(l=Ul(zo.current),ov(d)){E=d.stateNode,y=d.type;var D=d.memoizedProps;switch(E[ji]=d,E[Ss]=D,l=(d.mode&1)!==0,y){case"dialog":Ut("cancel",E),Ut("close",E);break;case"iframe":case"object":case"embed":Ut("load",E);break;case"video":case"audio":for(R=0;R<xs.length;R++)Ut(xs[R],E);break;case"source":Ut("error",E);break;case"img":case"image":case"link":Ut("error",E),Ut("load",E);break;case"details":Ut("toggle",E);break;case"input":Fe(E,D),Ut("invalid",E);break;case"select":E._wrapperState={wasMultiple:!!D.multiple},Ut("invalid",E);break;case"textarea":ye(E,D),Ut("invalid",E)}Lr(y,D),R=null;for(var ee in D)if(D.hasOwnProperty(ee)){var fe=D[ee];ee==="children"?typeof fe=="string"?E.textContent!==fe&&(D.suppressHydrationWarning!==!0&&Pe(E.textContent,fe,l),R=["children",fe]):typeof fe=="number"&&E.textContent!==""+fe&&(D.suppressHydrationWarning!==!0&&Pe(E.textContent,fe,l),R=["children",""+fe]):i.hasOwnProperty(ee)&&fe!=null&&ee==="onScroll"&&Ut("scroll",E)}switch(y){case"input":ue(E),je(E,D,!0);break;case"textarea":ue(E),Ae(E);break;case"select":case"option":break;default:typeof D.onClick=="function"&&(E.onclick=Re)}E=R,d.updateQueue=E,E!==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 E.is=="string"?l=ee.createElement(y,{is:E.is}):(l=ee.createElement(y),y==="select"&&(ee=l,E.multiple?ee.multiple=!0:E.size&&(ee.size=E.size))):l=ee.createElementNS(l,y),l[ji]=d,l[Ss]=E,Pk(l,d,!1,!1),d.stateNode=l;e:{switch(ee=Nn(y,E),y){case"dialog":Ut("cancel",l),Ut("close",l),R=E;break;case"iframe":case"object":case"embed":Ut("load",l),R=E;break;case"video":case"audio":for(R=0;R<xs.length;R++)Ut(xs[R],l);R=E;break;case"source":Ut("error",l),R=E;break;case"img":case"image":case"link":Ut("error",l),Ut("load",l),R=E;break;case"details":Ut("toggle",l),R=E;break;case"input":Fe(l,E),R=Se(l,E),Ut("invalid",l);break;case"option":R=E;break;case"select":l._wrapperState={wasMultiple:!!E.multiple},R=G({},E,{value:void 0}),Ut("invalid",l);break;case"textarea":ye(l,E),R=qe(l,E),Ut("invalid",l);break;default:R=E}Lr(y,R),fe=R;for(D in fe)if(fe.hasOwnProperty(D)){var me=fe[D];D==="style"?Gt(l,me):D==="dangerouslySetInnerHTML"?(me=me?me.__html:void 0,me!=null&&Xe(l,me)):D==="children"?typeof me=="string"?(y!=="textarea"||me!=="")&&bt(l,me):typeof me=="number"&&bt(l,""+me):D!=="suppressContentEditableWarning"&&D!=="suppressHydrationWarning"&&D!=="autoFocus"&&(i.hasOwnProperty(D)?me!=null&&D==="onScroll"&&Ut("scroll",l):me!=null&&C(l,D,me,ee))}switch(y){case"input":ue(l),je(l,E,!1);break;case"textarea":ue(l),Ae(l);break;case"option":E.value!=null&&l.setAttribute("value",""+M(E.value));break;case"select":l.multiple=!!E.multiple,D=E.value,D!=null?Be(l,!!E.multiple,D,!1):E.defaultValue!=null&&Be(l,!!E.multiple,E.defaultValue,!0);break;default:typeof R.onClick=="function"&&(l.onclick=Re)}switch(y){case"button":case"input":case"select":case"textarea":E=!!E.autoFocus;break e;case"img":E=!0;break e;default:E=!1}}E&&(d.flags|=4)}d.ref!==null&&(d.flags|=512,d.flags|=2097152)}return dn(d),null;case 6:if(l&&d.stateNode!=null)Ck(l,d,l.memoizedProps,E);else{if(typeof E!="string"&&d.stateNode===null)throw Error(r(166));if(y=Ul(qd.current),Ul(zo.current),ov(d)){if(E=d.stateNode,y=d.memoizedProps,E[ji]=d,(D=E.nodeValue!==y)&&(l=ai,l!==null))switch(l.tag){case 3:Pe(E.nodeValue,y,(l.mode&1)!==0);break;case 5:l.memoizedProps.suppressHydrationWarning!==!0&&Pe(E.nodeValue,y,(l.mode&1)!==0)}D&&(d.flags|=4)}else E=(y.nodeType===9?y:y.ownerDocument).createTextNode(E),E[ji]=d,d.stateNode=E}return dn(d),null;case 13:if(tr(yr),E=d.memoizedState,l===null||l.memoizedState!==null&&l.memoizedState.dehydrated!==null){if(ar&&si!==null&&d.mode&1&&!(d.flags&128))AA(),yc(),d.flags|=98560,D=!1;else if(D=ov(d),E!==null&&E.dehydrated!==null){if(l===null){if(!D)throw Error(r(318));if(D=d.memoizedState,D=D!==null?D.dehydrated:null,!D)throw Error(r(317));D[ji]=d}else yc(),!(d.flags&128)&&(d.memoizedState=null),d.flags|=4;dn(d),D=!1}else so!==null&&(Y_(so),so=null),D=!0;if(!D)return d.flags&65536?d:null}return d.flags&128?(d.lanes=y,d):(E=E!==null,E!==(l!==null&&l.memoizedState!==null)&&E&&(d.child.flags|=8192,d.mode&1&&(l===null||yr.current&1?Br===0&&(Br=3):Q_())),d.updateQueue!==null&&(d.flags|=4),dn(d),null);case 4:return wc(),$_(l,d),l===null&&ws(d.stateNode.containerInfo),dn(d),null;case 10:return d_(d.type._context),dn(d),null;case 17:return $n(d.type)&&ev(),dn(d),null;case 19:if(tr(yr),D=d.memoizedState,D===null)return dn(d),null;if(E=(d.flags&128)!==0,ee=D.rendering,ee===null)if(E)Zd(D,!1);else{if(Br!==0||l!==null&&l.flags&128)for(l=d.child;l!==null;){if(ee=fv(l),ee!==null){for(d.flags|=128,Zd(D,!1),E=ee.updateQueue,E!==null&&(d.updateQueue=E,d.flags|=4),d.subtreeFlags=0,E=y,y=d.child;y!==null;)D=y,l=E,D.flags&=14680066,ee=D.alternate,ee===null?(D.childLanes=0,D.lanes=l,D.child=null,D.subtreeFlags=0,D.memoizedProps=null,D.memoizedState=null,D.updateQueue=null,D.dependencies=null,D.stateNode=null):(D.childLanes=ee.childLanes,D.lanes=ee.lanes,D.child=ee.child,D.subtreeFlags=0,D.deletions=null,D.memoizedProps=ee.memoizedProps,D.memoizedState=ee.memoizedState,D.updateQueue=ee.updateQueue,D.type=ee.type,l=ee.dependencies,D.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),y=y.sibling;return Yt(yr,yr.current&1|2),d.child}l=l.sibling}D.tail!==null&&vr()>Ec&&(d.flags|=128,E=!0,Zd(D,!1),d.lanes=4194304)}else{if(!E)if(l=fv(ee),l!==null){if(d.flags|=128,E=!0,y=l.updateQueue,y!==null&&(d.updateQueue=y,d.flags|=4),Zd(D,!0),D.tail===null&&D.tailMode==="hidden"&&!ee.alternate&&!ar)return dn(d),null}else 2*vr()-D.renderingStartTime>Ec&&y!==1073741824&&(d.flags|=128,E=!0,Zd(D,!1),d.lanes=4194304);D.isBackwards?(ee.sibling=d.child,d.child=ee):(y=D.last,y!==null?y.sibling=ee:d.child=ee,D.last=ee)}return D.tail!==null?(d=D.tail,D.rendering=d,D.tail=d.sibling,D.renderingStartTime=vr(),d.sibling=null,y=yr.current,Yt(yr,E?y&1|2:y&1),d):(dn(d),null);case 22:case 23:return X_(),E=d.memoizedState!==null,l!==null&&l.memoizedState!==null!==E&&(d.flags|=8192),E&&d.mode&1?li&1073741824&&(dn(d),d.subtreeFlags&6&&(d.flags|=8192)):dn(d),null;case 24:return null;case 25:return null}throw Error(r(156,d.tag))}function qW(l,d){switch(a_(d),d.tag){case 1:return $n(d.type)&&ev(),l=d.flags,l&65536?(d.flags=l&-65537|128,d):null;case 3:return wc(),tr(Dn),tr(cn),b_(),l=d.flags,l&65536&&!(l&128)?(d.flags=l&-65537|128,d):null;case 5:return g_(d),null;case 13:if(tr(yr),l=d.memoizedState,l!==null&&l.dehydrated!==null){if(d.alternate===null)throw Error(r(340));yc()}return l=d.flags,l&65536?(d.flags=l&-65537|128,d):null;case 19:return tr(yr),null;case 4:return wc(),null;case 10:return d_(d.type._context),null;case 22:case 23:return X_(),null;case 24:return null;default:return null}}var _v=!1,hn=!1,HW=typeof WeakSet=="function"?WeakSet:Set,Je=null;function Sc(l,d){var y=l.ref;if(y!==null)if(typeof y=="function")try{y(null)}catch(E){wr(l,d,E)}else y.current=null}function F_(l,d,y){try{y()}catch(E){wr(l,d,E)}}var Tk=!1;function GW(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 E=y.getSelection&&y.getSelection();if(E&&E.rangeCount!==0){y=E.anchorNode;var R=E.anchorOffset,D=E.focusNode;E=E.focusOffset;try{y.nodeType,D.nodeType}catch{y=null;break e}var ee=0,fe=-1,me=-1,Ee=0,Ie=0,$e=l,Le=null;t:for(;;){for(var Qe;$e!==y||R!==0&&$e.nodeType!==3||(fe=ee+R),$e!==D||E!==0&&$e.nodeType!==3||(me=ee+E),$e.nodeType===3&&(ee+=$e.nodeValue.length),(Qe=$e.firstChild)!==null;)Le=$e,$e=Qe;for(;;){if($e===l)break t;if(Le===y&&++Ee===R&&(fe=ee),Le===D&&++Ie===E&&(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 rt=tt.memoizedProps,Er=tt.memoizedState,xe=d.stateNode,ve=xe.getSnapshotBeforeUpdate(d.elementType===d.type?rt:lo(d.type,rt),Er);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(r(163))}}catch(We){wr(d,d.return,We)}if(l=d.sibling,l!==null){l.return=d.return,Je=l;break}Je=d.return}return tt=Tk,Tk=!1,tt}function Xd(l,d,y){var E=d.updateQueue;if(E=E!==null?E.lastEffect:null,E!==null){var R=E=E.next;do{if((R.tag&l)===l){var D=R.destroy;R.destroy=void 0,D!==void 0&&F_(d,y,D)}R=R.next}while(R!==E)}}function xv(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 E=y.create;y.destroy=E()}y=y.next}while(y!==d)}}function B_(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 jk(l){var d=l.alternate;d!==null&&(l.alternate=null,jk(d)),l.child=null,l.deletions=null,l.sibling=null,l.tag===5&&(d=l.stateNode,d!==null&&(delete d[ji],delete d[Ss],delete d[Ps],delete d[t_],delete d[r_])),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 Ak(l){return l.tag===5||l.tag===3||l.tag===4}function kk(l){e:for(;;){for(;l.sibling===null;){if(l.return===null||Ak(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 U_(l,d,y){var E=l.tag;if(E===5||E===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(E!==4&&(l=l.child,l!==null))for(U_(l,d,y),l=l.sibling;l!==null;)U_(l,d,y),l=l.sibling}function z_(l,d,y){var E=l.tag;if(E===5||E===6)l=l.stateNode,d?y.insertBefore(l,d):y.appendChild(l);else if(E!==4&&(l=l.child,l!==null))for(z_(l,d,y),l=l.sibling;l!==null;)z_(l,d,y),l=l.sibling}var tn=null,uo=!1;function ks(l,d,y){for(y=y.child;y!==null;)Rk(l,d,y),y=y.sibling}function Rk(l,d,y){if(Qn&&typeof Qn.onCommitFiberUnmount=="function")try{Qn.onCommitFiberUnmount(Ol,y)}catch{}switch(y.tag){case 5:hn||Sc(y,d);case 6:var E=tn,R=uo;tn=null,ks(l,d,y),tn=E,uo=R,tn!==null&&(uo?(l=tn,y=y.stateNode,l.nodeType===8?l.parentNode.removeChild(y):l.removeChild(y)):tn.removeChild(y.stateNode));break;case 18:tn!==null&&(uo?(l=tn,y=y.stateNode,l.nodeType===8?Ud(l.parentNode,y):l.nodeType===1&&Ud(l,y),ti(l)):Ud(tn,y.stateNode));break;case 4:E=tn,R=uo,tn=y.stateNode.containerInfo,uo=!0,ks(l,d,y),tn=E,uo=R;break;case 0:case 11:case 14:case 15:if(!hn&&(E=y.updateQueue,E!==null&&(E=E.lastEffect,E!==null))){R=E=E.next;do{var D=R,ee=D.destroy;D=D.tag,ee!==void 0&&(D&2||D&4)&&F_(y,d,ee),R=R.next}while(R!==E)}ks(l,d,y);break;case 1:if(!hn&&(Sc(y,d),E=y.stateNode,typeof E.componentWillUnmount=="function"))try{E.props=y.memoizedProps,E.state=y.memoizedState,E.componentWillUnmount()}catch(fe){wr(y,d,fe)}ks(l,d,y);break;case 21:ks(l,d,y);break;case 22:y.mode&1?(hn=(E=hn)||y.memoizedState!==null,ks(l,d,y),hn=E):ks(l,d,y);break;default:ks(l,d,y)}}function Nk(l){var d=l.updateQueue;if(d!==null){l.updateQueue=null;var y=l.stateNode;y===null&&(y=l.stateNode=new HW),d.forEach(function(E){var R=rq.bind(null,l,E);y.has(E)||(y.add(E),E.then(R,R))})}}function co(l,d){var y=d.deletions;if(y!==null)for(var E=0;E<y.length;E++){var R=y[E];try{var D=l,ee=d,fe=ee;e:for(;fe!==null;){switch(fe.tag){case 5:tn=fe.stateNode,uo=!1;break e;case 3:tn=fe.stateNode.containerInfo,uo=!0;break e;case 4:tn=fe.stateNode.containerInfo,uo=!0;break e}fe=fe.return}if(tn===null)throw Error(r(160));Rk(D,ee,R),tn=null,uo=!1;var me=R.alternate;me!==null&&(me.return=null),R.return=null}catch(Ee){wr(R,d,Ee)}}if(d.subtreeFlags&12854)for(d=d.child;d!==null;)Mk(d,l),d=d.sibling}function Mk(l,d){var y=l.alternate,E=l.flags;switch(l.tag){case 0:case 11:case 14:case 15:if(co(d,l),Wo(l),E&4){try{Xd(3,l,l.return),xv(3,l)}catch(rt){wr(l,l.return,rt)}try{Xd(5,l,l.return)}catch(rt){wr(l,l.return,rt)}}break;case 1:co(d,l),Wo(l),E&512&&y!==null&&Sc(y,y.return);break;case 5:if(co(d,l),Wo(l),E&512&&y!==null&&Sc(y,y.return),l.flags&32){var R=l.stateNode;try{bt(R,"")}catch(rt){wr(l,l.return,rt)}}if(E&4&&(R=l.stateNode,R!=null)){var D=l.memoizedProps,ee=y!==null?y.memoizedProps:D,fe=l.type,me=l.updateQueue;if(l.updateQueue=null,me!==null)try{fe==="input"&&D.type==="radio"&&D.name!=null&&ge(R,D),Nn(fe,ee);var Ee=Nn(fe,D);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):C(R,Ie,$e,Ee)}switch(fe){case"input":Ce(R,D);break;case"textarea":we(R,D);break;case"select":var Le=R._wrapperState.wasMultiple;R._wrapperState.wasMultiple=!!D.multiple;var Qe=D.value;Qe!=null?Be(R,!!D.multiple,Qe,!1):Le!==!!D.multiple&&(D.defaultValue!=null?Be(R,!!D.multiple,D.defaultValue,!0):Be(R,!!D.multiple,D.multiple?[]:"",!1))}R[Ss]=D}catch(rt){wr(l,l.return,rt)}}break;case 6:if(co(d,l),Wo(l),E&4){if(l.stateNode===null)throw Error(r(162));R=l.stateNode,D=l.memoizedProps;try{R.nodeValue=D}catch(rt){wr(l,l.return,rt)}}break;case 3:if(co(d,l),Wo(l),E&4&&y!==null&&y.memoizedState.isDehydrated)try{ti(d.containerInfo)}catch(rt){wr(l,l.return,rt)}break;case 4:co(d,l),Wo(l);break;case 13:co(d,l),Wo(l),R=l.child,R.flags&8192&&(D=R.memoizedState!==null,R.stateNode.isHidden=D,!D||R.alternate!==null&&R.alternate.memoizedState!==null||(q_=vr())),E&4&&Nk(l);break;case 22:if(Ie=y!==null&&y.memoizedState!==null,l.mode&1?(hn=(Ee=hn)||Ie,co(d,l),hn=Ee):co(d,l),Wo(l),E&8192){if(Ee=l.memoizedState!==null,(l.stateNode.isHidden=Ee)&&!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:Sc(Le,Le.return);var tt=Le.stateNode;if(typeof tt.componentWillUnmount=="function"){E=Le,y=Le.return;try{d=E,tt.props=d.memoizedProps,tt.state=d.memoizedState,tt.componentWillUnmount()}catch(rt){wr(E,y,rt)}}break;case 5:Sc(Le,Le.return);break;case 22:if(Le.memoizedState!==null){Dk($e);continue}}Qe!==null?(Qe.return=Le,Je=Qe):Dk($e)}Ie=Ie.sibling}e:for(Ie=null,$e=l;;){if($e.tag===5){if(Ie===null){Ie=$e;try{R=$e.stateNode,Ee?(D=R.style,typeof D.setProperty=="function"?D.setProperty("display","none","important"):D.display="none"):(fe=$e.stateNode,me=$e.memoizedProps.style,ee=me!=null&&me.hasOwnProperty("display")?me.display:null,fe.style.display=Jt("display",ee))}catch(rt){wr(l,l.return,rt)}}}else if($e.tag===6){if(Ie===null)try{$e.stateNode.nodeValue=Ee?"":$e.memoizedProps}catch(rt){wr(l,l.return,rt)}}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:co(d,l),Wo(l),E&4&&Nk(l);break;case 21:break;default:co(d,l),Wo(l)}}function Wo(l){var d=l.flags;if(d&2){try{e:{for(var y=l.return;y!==null;){if(Ak(y)){var E=y;break e}y=y.return}throw Error(r(160))}switch(E.tag){case 5:var R=E.stateNode;E.flags&32&&(bt(R,""),E.flags&=-33);var D=kk(l);z_(l,D,R);break;case 3:case 4:var ee=E.stateNode.containerInfo,fe=kk(l);U_(l,fe,ee);break;default:throw Error(r(161))}}catch(me){wr(l,l.return,me)}l.flags&=-3}d&4096&&(l.flags&=-4097)}function KW(l,d,y){Je=l,Lk(l)}function Lk(l,d,y){for(var E=(l.mode&1)!==0;Je!==null;){var R=Je,D=R.child;if(R.tag===22&&E){var ee=R.memoizedState!==null||_v;if(!ee){var fe=R.alternate,me=fe!==null&&fe.memoizedState!==null||hn;fe=_v;var Ee=hn;if(_v=ee,(hn=me)&&!Ee)for(Je=R;Je!==null;)ee=Je,me=ee.child,ee.tag===22&&ee.memoizedState!==null?$k(R):me!==null?(me.return=ee,Je=me):$k(R);for(;D!==null;)Je=D,Lk(D),D=D.sibling;Je=R,_v=fe,hn=Ee}Ik(l)}else R.subtreeFlags&8772&&D!==null?(D.return=R,Je=D):Ik(l)}}function Ik(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:hn||xv(5,d);break;case 1:var E=d.stateNode;if(d.flags&4&&!hn)if(y===null)E.componentDidMount();else{var R=d.elementType===d.type?y.memoizedProps:lo(d.type,y.memoizedProps);E.componentDidUpdate(R,y.memoizedState,E.__reactInternalSnapshotBeforeUpdate)}var D=d.updateQueue;D!==null&&DA(d,D,E);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}DA(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 Ee=d.alternate;if(Ee!==null){var Ie=Ee.memoizedState;if(Ie!==null){var $e=Ie.dehydrated;$e!==null&&ti($e)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}hn||d.flags&512&&B_(d)}catch(Le){wr(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 Dk(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 $k(l){for(;Je!==null;){var d=Je;try{switch(d.tag){case 0:case 11:case 15:var y=d.return;try{xv(4,d)}catch(me){wr(d,y,me)}break;case 1:var E=d.stateNode;if(typeof E.componentDidMount=="function"){var R=d.return;try{E.componentDidMount()}catch(me){wr(d,R,me)}}var D=d.return;try{B_(d)}catch(me){wr(d,D,me)}break;case 5:var ee=d.return;try{B_(d)}catch(me){wr(d,ee,me)}}}catch(me){wr(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 YW=Math.ceil,wv=T.ReactCurrentDispatcher,V_=T.ReactCurrentOwner,Mi=T.ReactCurrentBatchConfig,Mt=0,Hr=null,Rr=null,rn=0,li=0,Pc=Es(0),Br=0,Qd=null,Vl=0,Ov=0,W_=0,Jd=null,Bn=null,q_=0,Ec=1/0,ka=null,Sv=!1,H_=null,Rs=null,Pv=!1,Ns=null,Ev=0,eh=0,G_=null,Cv=-1,Tv=0;function wn(){return Mt&6?vr():Cv!==-1?Cv:Cv=vr()}function Ms(l){return l.mode&1?Mt&2&&rn!==0?rn&-rn:RW.transition!==null?(Tv===0&&(Tv=km()),Tv):(l=Rt,l!==0||(l=window.event,l=l===void 0?16:Tt(l.type)),l):1}function fo(l,d,y,E){if(50<eh)throw eh=0,G_=null,Error(r(185));Jn(l,y,E),(!(Mt&2)||l!==Hr)&&(l===Hr&&(!(Mt&2)&&(Ov|=y),Br===4&&Ls(l,rn)),Un(l,E),y===1&&Mt===0&&!(d.mode&1)&&(Ec=vr()+500,rv&&Ts()))}function Un(l,d){var y=l.callbackNode;Hu(l,d);var E=Kt(l,l===Hr?rn:0);if(E===0)y!==null&&md(y),l.callbackNode=null,l.callbackPriority=0;else if(d=E&-E,l.callbackPriority!==d){if(y!=null&&md(y),d===1)l.tag===0?kW(Bk.bind(null,l)):PA(Bk.bind(null,l)),un(function(){!(Mt&6)&&Ts()}),y=null;else{switch(us(E)){case 1:y=vd;break;case 4:y=Am;break;case 16:y=Wu;break;case 536870912:y=os;break;default:y=Wu}y=Kk(y,Fk.bind(null,l))}l.callbackPriority=d,l.callbackNode=y}}function Fk(l,d){if(Cv=-1,Tv=0,Mt&6)throw Error(r(327));var y=l.callbackNode;if(Cc()&&l.callbackNode!==y)return null;var E=Kt(l,l===Hr?rn:0);if(E===0)return null;if(E&30||E&l.expiredLanes||d)d=jv(l,E);else{d=E;var R=Mt;Mt|=2;var D=zk();(Hr!==l||rn!==d)&&(ka=null,Ec=vr()+500,ql(l,d));do try{QW();break}catch(fe){Uk(l,fe)}while(!0);f_(),wv.current=D,Mt=R,Rr!==null?d=0:(Hr=null,rn=0,d=Br)}if(d!==0){if(d===2&&(R=sn(l),R!==0&&(E=R,d=K_(l,R))),d===1)throw y=Qd,ql(l,0),Ls(l,E),Un(l,vr()),y;if(d===6)Ls(l,E);else{if(R=l.current.alternate,!(E&30)&&!ZW(R)&&(d=jv(l,E),d===2&&(D=sn(l),D!==0&&(E=D,d=K_(l,D))),d===1))throw y=Qd,ql(l,0),Ls(l,E),Un(l,vr()),y;switch(l.finishedWork=R,l.finishedLanes=E,d){case 0:case 1:throw Error(r(345));case 2:Hl(l,Bn,ka);break;case 3:if(Ls(l,E),(E&130023424)===E&&(d=q_+500-vr(),10<d)){if(Kt(l,0)!==0)break;if(R=l.suspendedLanes,(R&E)!==E){wn(),l.pingedLanes|=l.suspendedLanes&R;break}l.timeoutHandle=$r(Hl.bind(null,l,Bn,ka),d);break}Hl(l,Bn,ka);break;case 4:if(Ls(l,E),(E&4194240)===E)break;for(d=l.eventTimes,R=-1;0<E;){var ee=31-wt(E);D=1<<ee,ee=d[ee],ee>R&&(R=ee),E&=~D}if(E=R,E=vr()-E,E=(120>E?120:480>E?480:1080>E?1080:1920>E?1920:3e3>E?3e3:4320>E?4320:1960*YW(E/1960))-E,10<E){l.timeoutHandle=$r(Hl.bind(null,l,Bn,ka),E);break}Hl(l,Bn,ka);break;case 5:Hl(l,Bn,ka);break;default:throw Error(r(329))}}}return Un(l,vr()),l.callbackNode===y?Fk.bind(null,l):null}function K_(l,d){var y=Jd;return l.current.memoizedState.isDehydrated&&(ql(l,d).flags|=256),l=jv(l,d),l!==2&&(d=Bn,Bn=y,d!==null&&Y_(d)),l}function Y_(l){Bn===null?Bn=l:Bn.push.apply(Bn,l)}function ZW(l){for(var d=l;;){if(d.flags&16384){var y=d.updateQueue;if(y!==null&&(y=y.stores,y!==null))for(var E=0;E<y.length;E++){var R=y[E],D=R.getSnapshot;R=R.value;try{if(!ii(D(),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 Ls(l,d){for(d&=~W_,d&=~Ov,l.suspendedLanes|=d,l.pingedLanes&=~d,l=l.expirationTimes;0<d;){var y=31-wt(d),E=1<<y;l[y]=-1,d&=~E}}function Bk(l){if(Mt&6)throw Error(r(327));Cc();var d=Kt(l,0);if(!(d&1))return Un(l,vr()),null;var y=jv(l,d);if(l.tag!==0&&y===2){var E=sn(l);E!==0&&(d=E,y=K_(l,E))}if(y===1)throw y=Qd,ql(l,0),Ls(l,d),Un(l,vr()),y;if(y===6)throw Error(r(345));return l.finishedWork=l.current.alternate,l.finishedLanes=d,Hl(l,Bn,ka),Un(l,vr()),null}function Z_(l,d){var y=Mt;Mt|=1;try{return l(d)}finally{Mt=y,Mt===0&&(Ec=vr()+500,rv&&Ts())}}function Wl(l){Ns!==null&&Ns.tag===0&&!(Mt&6)&&Cc();var d=Mt;Mt|=1;var y=Mi.transition,E=Rt;try{if(Mi.transition=null,Rt=1,l)return l()}finally{Rt=E,Mi.transition=y,Mt=d,!(Mt&6)&&Ts()}}function X_(){li=Pc.current,tr(Pc)}function ql(l,d){l.finishedWork=null,l.finishedLanes=0;var y=l.timeoutHandle;if(y!==-1&&(l.timeoutHandle=-1,kr(y)),Rr!==null)for(y=Rr.return;y!==null;){var E=y;switch(a_(E),E.tag){case 1:E=E.type.childContextTypes,E!=null&&ev();break;case 3:wc(),tr(Dn),tr(cn),b_();break;case 5:g_(E);break;case 4:wc();break;case 13:tr(yr);break;case 19:tr(yr);break;case 10:d_(E.type._context);break;case 22:case 23:X_()}y=y.return}if(Hr=l,Rr=l=Is(l.current,null),rn=li=d,Br=0,Qd=null,W_=Ov=Vl=0,Bn=Jd=null,Bl!==null){for(d=0;d<Bl.length;d++)if(y=Bl[d],E=y.interleaved,E!==null){y.interleaved=null;var R=E.next,D=y.pending;if(D!==null){var ee=D.next;D.next=R,E.next=ee}y.pending=E}Bl=null}return l}function Uk(l,d){do{var y=Rr;try{if(f_(),dv.current=vv,hv){for(var E=br.memoizedState;E!==null;){var R=E.queue;R!==null&&(R.pending=null),E=E.next}hv=!1}if(zl=0,qr=Fr=br=null,Hd=!1,Gd=0,V_.current=null,y===null||y.return===null){Br=1,Qd=d,Rr=null;break}e:{var D=l,ee=y.return,fe=y,me=d;if(d=rn,fe.flags|=32768,me!==null&&typeof me=="object"&&typeof me.then=="function"){var Ee=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=dk(ee);if(Qe!==null){Qe.flags&=-257,hk(Qe,ee,fe,D,d),Qe.mode&1&&fk(D,Ee,d),d=Qe,me=Ee;var tt=d.updateQueue;if(tt===null){var rt=new Set;rt.add(me),d.updateQueue=rt}else tt.add(me);break e}else{if(!(d&1)){fk(D,Ee,d),Q_();break e}me=Error(r(426))}}else if(ar&&fe.mode&1){var Er=dk(ee);if(Er!==null){!(Er.flags&65536)&&(Er.flags|=256),hk(Er,ee,fe,D,d),u_(Oc(me,fe));break e}}D=me=Oc(me,fe),Br!==4&&(Br=2),Jd===null?Jd=[D]:Jd.push(D),D=ee;do{switch(D.tag){case 3:D.flags|=65536,d&=-d,D.lanes|=d;var xe=uk(D,me,d);IA(D,xe);break e;case 1:fe=me;var ve=D.type,Oe=D.stateNode;if(!(D.flags&128)&&(typeof ve.getDerivedStateFromError=="function"||Oe!==null&&typeof Oe.componentDidCatch=="function"&&(Rs===null||!Rs.has(Oe)))){D.flags|=65536,d&=-d,D.lanes|=d;var We=ck(D,fe,d);IA(D,We);break e}}D=D.return}while(D!==null)}Wk(y)}catch(ot){d=ot,Rr===y&&y!==null&&(Rr=y=y.return);continue}break}while(!0)}function zk(){var l=wv.current;return wv.current=vv,l===null?vv:l}function Q_(){(Br===0||Br===3||Br===2)&&(Br=4),Hr===null||!(Vl&268435455)&&!(Ov&268435455)||Ls(Hr,rn)}function jv(l,d){var y=Mt;Mt|=2;var E=zk();(Hr!==l||rn!==d)&&(ka=null,ql(l,d));do try{XW();break}catch(R){Uk(l,R)}while(!0);if(f_(),Mt=y,wv.current=E,Rr!==null)throw Error(r(261));return Hr=null,rn=0,Br}function XW(){for(;Rr!==null;)Vk(Rr)}function QW(){for(;Rr!==null&&!Fb();)Vk(Rr)}function Vk(l){var d=Gk(l.alternate,l,li);l.memoizedProps=l.pendingProps,d===null?Wk(l):Rr=d,V_.current=null}function Wk(l){var d=l;do{var y=d.alternate;if(l=d.return,d.flags&32768){if(y=qW(y,d),y!==null){y.flags&=32767,Rr=y;return}if(l!==null)l.flags|=32768,l.subtreeFlags=0,l.deletions=null;else{Br=6,Rr=null;return}}else if(y=WW(y,d,li),y!==null){Rr=y;return}if(d=d.sibling,d!==null){Rr=d;return}Rr=d=l}while(d!==null);Br===0&&(Br=5)}function Hl(l,d,y){var E=Rt,R=Mi.transition;try{Mi.transition=null,Rt=1,JW(l,d,y,E)}finally{Mi.transition=R,Rt=E}return null}function JW(l,d,y,E){do Cc();while(Ns!==null);if(Mt&6)throw Error(r(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(r(177));l.callbackNode=null,l.callbackPriority=0;var D=y.lanes|y.childLanes;if(xr(l,D),l===Hr&&(Rr=Hr=null,rn=0),!(y.subtreeFlags&2064)&&!(y.flags&2064)||Pv||(Pv=!0,Kk(Wu,function(){return Cc(),null})),D=(y.flags&15990)!==0,y.subtreeFlags&15990||D){D=Mi.transition,Mi.transition=null;var ee=Rt;Rt=1;var fe=Mt;Mt|=4,V_.current=null,GW(l,y),Mk(y,l),Ci(st),jl=!!Ze,st=Ze=null,l.current=y,KW(y),Vu(),Mt=fe,Rt=ee,Mi.transition=D}else l.current=y;if(Pv&&(Pv=!1,Ns=l,Ev=R),D=l.pendingLanes,D===0&&(Rs=null),Sl(y.stateNode),Un(l,vr()),d!==null)for(E=l.onRecoverableError,y=0;y<d.length;y++)R=d[y],E(R.value,{componentStack:R.stack,digest:R.digest});if(Sv)throw Sv=!1,l=H_,H_=null,l;return Ev&1&&l.tag!==0&&Cc(),D=l.pendingLanes,D&1?l===G_?eh++:(eh=0,G_=l):eh=0,Ts(),null}function Cc(){if(Ns!==null){var l=us(Ev),d=Mi.transition,y=Rt;try{if(Mi.transition=null,Rt=16>l?16:l,Ns===null)var E=!1;else{if(l=Ns,Ns=null,Ev=0,Mt&6)throw Error(r(331));var R=Mt;for(Mt|=4,Je=l.current;Je!==null;){var D=Je,ee=D.child;if(Je.flags&16){var fe=D.deletions;if(fe!==null){for(var me=0;me<fe.length;me++){var Ee=fe[me];for(Je=Ee;Je!==null;){var Ie=Je;switch(Ie.tag){case 0:case 11:case 15:Xd(8,Ie,D)}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(jk(Ie),Ie===Ee){Je=null;break}if(Le!==null){Le.return=Qe,Je=Le;break}Je=Qe}}}var tt=D.alternate;if(tt!==null){var rt=tt.child;if(rt!==null){tt.child=null;do{var Er=rt.sibling;rt.sibling=null,rt=Er}while(rt!==null)}}Je=D}}if(D.subtreeFlags&2064&&ee!==null)ee.return=D,Je=ee;else e:for(;Je!==null;){if(D=Je,D.flags&2048)switch(D.tag){case 0:case 11:case 15:Xd(9,D,D.return)}var xe=D.sibling;if(xe!==null){xe.return=D.return,Je=xe;break e}Je=D.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:xv(9,fe)}}catch(ot){wr(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,Ts(),Qn&&typeof Qn.onPostCommitFiberRoot=="function")try{Qn.onPostCommitFiberRoot(Ol,l)}catch{}E=!0}return E}finally{Rt=y,Mi.transition=d}}return!1}function qk(l,d,y){d=Oc(y,d),d=uk(l,d,1),l=As(l,d,1),d=wn(),l!==null&&(Jn(l,1,d),Un(l,d))}function wr(l,d,y){if(l.tag===3)qk(l,l,y);else for(;d!==null;){if(d.tag===3){qk(d,l,y);break}else if(d.tag===1){var E=d.stateNode;if(typeof d.type.getDerivedStateFromError=="function"||typeof E.componentDidCatch=="function"&&(Rs===null||!Rs.has(E))){l=Oc(y,l),l=ck(d,l,1),d=As(d,l,1),l=wn(),d!==null&&(Jn(d,1,l),Un(d,l));break}}d=d.return}}function eq(l,d,y){var E=l.pingCache;E!==null&&E.delete(d),d=wn(),l.pingedLanes|=l.suspendedLanes&y,Hr===l&&(rn&y)===y&&(Br===4||Br===3&&(rn&130023424)===rn&&500>vr()-q_?ql(l,0):W_|=y),Un(l,d)}function Hk(l,d){d===0&&(l.mode&1?(d=ss,ss<<=1,!(ss&130023424)&&(ss=4194304)):d=1);var y=wn();l=Ta(l,d),l!==null&&(Jn(l,d,y),Un(l,y))}function tq(l){var d=l.memoizedState,y=0;d!==null&&(y=d.retryLane),Hk(l,y)}function rq(l,d){var y=0;switch(l.tag){case 13:var E=l.stateNode,R=l.memoizedState;R!==null&&(y=R.retryLane);break;case 19:E=l.stateNode;break;default:throw Error(r(314))}E!==null&&E.delete(d),Hk(l,y)}var Gk;Gk=function(l,d,y){if(l!==null)if(l.memoizedProps!==d.pendingProps||Dn.current)Fn=!0;else{if(!(l.lanes&y)&&!(d.flags&128))return Fn=!1,VW(l,d,y);Fn=!!(l.flags&131072)}else Fn=!1,ar&&d.flags&1048576&&EA(d,iv,d.index);switch(d.lanes=0,d.tag){case 2:var E=d.type;bv(l,d),l=d.pendingProps;var R=mc(d,cn.current);xc(d,y),R=w_(null,d,E,l,R,y);var D=O_();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,$n(E)?(D=!0,tv(d)):D=!1,d.memoizedState=R.state!==null&&R.state!==void 0?R.state:null,m_(d),R.updater=gv,d.stateNode=R,R._reactInternals=d,j_(d,E,l,y),d=N_(null,d,E,!0,D,y)):(d.tag=0,ar&&D&&o_(d),xn(null,d,R,y),d=d.child),d;case 16:E=d.elementType;e:{switch(bv(l,d),l=d.pendingProps,R=E._init,E=R(E._payload),d.type=E,R=d.tag=iq(E),l=lo(E,l),R){case 0:d=R_(null,d,E,l,y);break e;case 1:d=bk(null,d,E,l,y);break e;case 11:d=pk(null,d,E,l,y);break e;case 14:d=mk(null,d,E,lo(E.type,l),y);break e}throw Error(r(306,E,""))}return d;case 0:return E=d.type,R=d.pendingProps,R=d.elementType===E?R:lo(E,R),R_(l,d,E,R,y);case 1:return E=d.type,R=d.pendingProps,R=d.elementType===E?R:lo(E,R),bk(l,d,E,R,y);case 3:e:{if(_k(d),l===null)throw Error(r(387));E=d.pendingProps,D=d.memoizedState,R=D.element,LA(l,d),cv(d,E,null,y);var ee=d.memoizedState;if(E=ee.element,D.isDehydrated)if(D={element:E,isDehydrated:!1,cache:ee.cache,pendingSuspenseBoundaries:ee.pendingSuspenseBoundaries,transitions:ee.transitions},d.updateQueue.baseState=D,d.memoizedState=D,d.flags&256){R=Oc(Error(r(423)),d),d=xk(l,d,E,y,R);break e}else if(E!==R){R=Oc(Error(r(424)),d),d=xk(l,d,E,y,R);break e}else for(si=Uo(d.stateNode.containerInfo.firstChild),ai=d,ar=!0,so=null,y=NA(d,null,E,y),d.child=y;y;)y.flags=y.flags&-3|4096,y=y.sibling;else{if(yc(),E===R){d=Aa(l,d,y);break e}xn(l,d,E,y)}d=d.child}return d;case 5:return $A(d),l===null&&l_(d),E=d.type,R=d.pendingProps,D=l!==null?l.memoizedProps:null,ee=R.children,St(E,R)?ee=null:D!==null&&St(E,D)&&(d.flags|=32),yk(l,d),xn(l,d,ee,y),d.child;case 6:return l===null&&l_(d),null;case 13:return wk(l,d,y);case 4:return v_(d,d.stateNode.containerInfo),E=d.pendingProps,l===null?d.child=bc(d,null,E,y):xn(l,d,E,y),d.child;case 11:return E=d.type,R=d.pendingProps,R=d.elementType===E?R:lo(E,R),pk(l,d,E,R,y);case 7:return xn(l,d,d.pendingProps,y),d.child;case 8:return xn(l,d,d.pendingProps.children,y),d.child;case 12:return xn(l,d,d.pendingProps.children,y),d.child;case 10:e:{if(E=d.type._context,R=d.pendingProps,D=d.memoizedProps,ee=R.value,Yt(sv,E._currentValue),E._currentValue=ee,D!==null)if(ii(D.value,ee)){if(D.children===R.children&&!Dn.current){d=Aa(l,d,y);break e}}else for(D=d.child,D!==null&&(D.return=d);D!==null;){var fe=D.dependencies;if(fe!==null){ee=D.child;for(var me=fe.firstContext;me!==null;){if(me.context===E){if(D.tag===1){me=ja(-1,y&-y),me.tag=2;var Ee=D.updateQueue;if(Ee!==null){Ee=Ee.shared;var Ie=Ee.pending;Ie===null?me.next=me:(me.next=Ie.next,Ie.next=me),Ee.pending=me}}D.lanes|=y,me=D.alternate,me!==null&&(me.lanes|=y),h_(D.return,y,d),fe.lanes|=y;break}me=me.next}}else if(D.tag===10)ee=D.type===d.type?null:D.child;else if(D.tag===18){if(ee=D.return,ee===null)throw Error(r(341));ee.lanes|=y,fe=ee.alternate,fe!==null&&(fe.lanes|=y),h_(ee,y,d),ee=D.sibling}else ee=D.child;if(ee!==null)ee.return=D;else for(ee=D;ee!==null;){if(ee===d){ee=null;break}if(D=ee.sibling,D!==null){D.return=ee.return,ee=D;break}ee=ee.return}D=ee}xn(l,d,R.children,y),d=d.child}return d;case 9:return R=d.type,E=d.pendingProps.children,xc(d,y),R=Ri(R),E=E(R),d.flags|=1,xn(l,d,E,y),d.child;case 14:return E=d.type,R=lo(E,d.pendingProps),R=lo(E.type,R),mk(l,d,E,R,y);case 15:return vk(l,d,d.type,d.pendingProps,y);case 17:return E=d.type,R=d.pendingProps,R=d.elementType===E?R:lo(E,R),bv(l,d),d.tag=1,$n(E)?(l=!0,tv(d)):l=!1,xc(d,y),sk(d,E,R),j_(d,E,R,y),N_(null,d,E,!0,l,y);case 19:return Sk(l,d,y);case 22:return gk(l,d,y)}throw Error(r(156,d.tag))};function Kk(l,d){return jm(l,d)}function nq(l,d,y,E){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=E,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Li(l,d,y,E){return new nq(l,d,y,E)}function J_(l){return l=l.prototype,!(!l||!l.isReactComponent)}function iq(l){if(typeof l=="function")return J_(l)?1:0;if(l!=null){if(l=l.$$typeof,l===q)return 11;if(l===ne)return 14}return 2}function Is(l,d){var y=l.alternate;return y===null?(y=Li(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 Av(l,d,y,E,R,D){var ee=2;if(E=l,typeof l=="function")J_(l)&&(ee=1);else if(typeof l=="string")ee=5;else e:switch(l){case N:return Gl(y.children,R,D,d);case F:ee=8,R|=8;break;case V:return l=Li(12,y,d,R|2),l.elementType=V,l.lanes=D,l;case J:return l=Li(13,y,d,R),l.elementType=J,l.lanes=D,l;case Q:return l=Li(19,y,d,R),l.elementType=Q,l.lanes=D,l;case se:return kv(y,R,D,d);default:if(typeof l=="object"&&l!==null)switch(l.$$typeof){case B:ee=10;break e;case W:ee=9;break e;case q:ee=11;break e;case ne:ee=14;break e;case ae:ee=16,E=null;break e}throw Error(r(130,l==null?l:typeof l,""))}return d=Li(ee,y,d,R),d.elementType=l,d.type=E,d.lanes=D,d}function Gl(l,d,y,E){return l=Li(7,l,E,d),l.lanes=y,l}function kv(l,d,y,E){return l=Li(22,l,E,d),l.elementType=se,l.lanes=y,l.stateNode={isHidden:!1},l}function e1(l,d,y){return l=Li(6,l,null,d),l.lanes=y,l}function t1(l,d,y){return d=Li(4,l.children!==null?l.children:[],l.key,d),d.lanes=y,d.stateNode={containerInfo:l.containerInfo,pendingChildren:null,implementation:l.implementation},d}function oq(l,d,y,E,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=ls(0),this.expirationTimes=ls(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ls(0),this.identifierPrefix=E,this.onRecoverableError=R,this.mutableSourceEagerHydrationData=null}function r1(l,d,y,E,R,D,ee,fe,me){return l=new oq(l,d,y,fe,me),d===1?(d=1,D===!0&&(d|=8)):d=0,D=Li(3,null,null,d),l.current=D,D.stateNode=l,D.memoizedState={element:E,isDehydrated:y,cache:null,transitions:null,pendingSuspenseBoundaries:null},m_(D),l}function aq(l,d,y){var E=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:j,key:E==null?null:""+E,children:l,containerInfo:d,implementation:y}}function Yk(l){if(!l)return Cs;l=l._reactInternals;e:{if(No(l)!==l||l.tag!==1)throw Error(r(170));var d=l;do{switch(d.tag){case 3:d=d.stateNode.context;break e;case 1:if($n(d.type)){d=d.stateNode.__reactInternalMemoizedMergedChildContext;break e}}d=d.return}while(d!==null);throw Error(r(171))}if(l.tag===1){var y=l.type;if($n(y))return OA(l,y,d)}return d}function Zk(l,d,y,E,R,D,ee,fe,me){return l=r1(y,E,!0,l,R,D,ee,fe,me),l.context=Yk(null),y=l.current,E=wn(),R=Ms(y),D=ja(E,R),D.callback=d??null,As(y,D,R),l.current.lanes=R,Jn(l,R,E),Un(l,E),l}function Rv(l,d,y,E){var R=d.current,D=wn(),ee=Ms(R);return y=Yk(y),d.context===null?d.context=y:d.pendingContext=y,d=ja(D,ee),d.payload={element:l},E=E===void 0?null:E,E!==null&&(d.callback=E),l=As(R,d,ee),l!==null&&(fo(l,R,ee,D),uv(l,R,ee)),ee}function Nv(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 Xk(l,d){if(l=l.memoizedState,l!==null&&l.dehydrated!==null){var y=l.retryLane;l.retryLane=y!==0&&y<d?y:d}}function n1(l,d){Xk(l,d),(l=l.alternate)&&Xk(l,d)}function sq(){return null}var Qk=typeof reportError=="function"?reportError:function(l){console.error(l)};function i1(l){this._internalRoot=l}Mv.prototype.render=i1.prototype.render=function(l){var d=this._internalRoot;if(d===null)throw Error(r(409));Rv(l,d,null,null)},Mv.prototype.unmount=i1.prototype.unmount=function(){var l=this._internalRoot;if(l!==null){this._internalRoot=null;var d=l.containerInfo;Wl(function(){Rv(null,l,null,null)}),d[Dt]=null}};function Mv(l){this._internalRoot=l}Mv.prototype.unstable_scheduleHydration=function(l){if(l){var d=Yu();l={blockedOn:null,target:l,priority:d};for(var y=0;y<Dr.length&&d!==0&&d<Dr[y].priority;y++);Dr.splice(y,0,l),y===0&&Zu(l)}};function o1(l){return!(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11)}function Lv(l){return!(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11&&(l.nodeType!==8||l.nodeValue!==" react-mount-point-unstable "))}function Jk(){}function lq(l,d,y,E,R){if(R){if(typeof E=="function"){var D=E;E=function(){var Ee=Nv(ee);D.call(Ee)}}var ee=Zk(d,E,l,0,null,!1,!1,"",Jk);return l._reactRootContainer=ee,l[Dt]=ee.current,ws(l.nodeType===8?l.parentNode:l),Wl(),ee}for(;R=l.lastChild;)l.removeChild(R);if(typeof E=="function"){var fe=E;E=function(){var Ee=Nv(me);fe.call(Ee)}}var me=r1(l,0,!1,null,null,!1,!1,"",Jk);return l._reactRootContainer=me,l[Dt]=me.current,ws(l.nodeType===8?l.parentNode:l),Wl(function(){Rv(d,me,y,E)}),me}function Iv(l,d,y,E,R){var D=y._reactRootContainer;if(D){var ee=D;if(typeof R=="function"){var fe=R;R=function(){var me=Nv(ee);fe.call(me)}}Rv(d,ee,l,R)}else ee=lq(y,d,l,R,E);return Nv(ee)}Gu=function(l){switch(l.tag){case 3:var d=l.stateNode;if(d.current.memoizedState.isDehydrated){var y=gt(d.pendingLanes);y!==0&&(ro(d,y|1),Un(d,vr()),!(Mt&6)&&(Ec=vr()+500,Ts()))}break;case 13:Wl(function(){var E=Ta(l,1);if(E!==null){var R=wn();fo(E,l,1,R)}}),n1(l,1)}},ha=function(l){if(l.tag===13){var d=Ta(l,134217728);if(d!==null){var y=wn();fo(d,l,134217728,y)}n1(l,134217728)}},Ku=function(l){if(l.tag===13){var d=Ms(l),y=Ta(l,d);if(y!==null){var E=wn();fo(y,l,d,E)}n1(l,d)}},Yu=function(){return Rt},Pl=function(l,d){var y=Rt;try{return Rt=l,d()}finally{Rt=y}},Mn=function(l,d,y){switch(d){case"input":if(Ce(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 E=y[d];if(E!==l&&E.form===l.form){var R=hc(E);if(!R)throw Error(r(90));ie(E),Ce(E,R)}}}break;case"textarea":we(l,y);break;case"select":d=y.value,d!=null&&Be(l,!!y.multiple,d,!1)}},dr=Z_,or=Wl;var uq={usingClientEntryPoint:!1,Events:[Oa,Sa,hc,is,Ro,Z_]},th={findFiberByHostInstance:wa,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},cq={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=Cm(l),l===null?null:l.stateNode},findFiberByHostInstance:th.findFiberByHostInstance||sq,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 Dv=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Dv.isDisabled&&Dv.supportsFiber)try{Ol=Dv.inject(cq),Qn=Dv}catch{}}return zn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=uq,zn.createPortal=function(l,d){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!o1(d))throw Error(r(200));return aq(l,d,null,y)},zn.createRoot=function(l,d){if(!o1(l))throw Error(r(299));var y=!1,E="",R=Qk;return d!=null&&(d.unstable_strictMode===!0&&(y=!0),d.identifierPrefix!==void 0&&(E=d.identifierPrefix),d.onRecoverableError!==void 0&&(R=d.onRecoverableError)),d=r1(l,1,!1,null,null,y,!1,E,R),l[Dt]=d.current,ws(l.nodeType===8?l.parentNode:l),new i1(d)},zn.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(r(188)):(l=Object.keys(l).join(","),Error(r(268,l)));return l=Cm(d),l=l===null?null:l.stateNode,l},zn.flushSync=function(l){return Wl(l)},zn.hydrate=function(l,d,y){if(!Lv(d))throw Error(r(200));return Iv(null,l,d,!0,y)},zn.hydrateRoot=function(l,d,y){if(!o1(l))throw Error(r(405));var E=y!=null&&y.hydratedSources||null,R=!1,D="",ee=Qk;if(y!=null&&(y.unstable_strictMode===!0&&(R=!0),y.identifierPrefix!==void 0&&(D=y.identifierPrefix),y.onRecoverableError!==void 0&&(ee=y.onRecoverableError)),d=Zk(d,null,l,1,y??null,R,!1,D,ee),l[Dt]=d.current,ws(l),E)for(l=0;l<E.length;l++)y=E[l],R=y._getVersion,R=R(y._source),d.mutableSourceEagerHydrationData==null?d.mutableSourceEagerHydrationData=[y,R]:d.mutableSourceEagerHydrationData.push(y,R);return new Mv(d)},zn.render=function(l,d,y){if(!Lv(d))throw Error(r(200));return Iv(null,l,d,!1,y)},zn.unmountComponentAtNode=function(l){if(!Lv(l))throw Error(r(40));return l._reactRootContainer?(Wl(function(){Iv(null,null,l,!1,function(){l._reactRootContainer=null,l[Dt]=null})}),!0):!1},zn.unstable_batchedUpdates=Z_,zn.unstable_renderSubtreeIntoContainer=function(l,d,y,E){if(!Lv(y))throw Error(r(200));if(l==null||l._reactInternals===void 0)throw Error(r(38));return Iv(l,d,y,!1,E)},zn.version="18.3.1-next-f1338f8080-20240426",zn}var s3;function w8(){if(s3)return l1.exports;s3=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(),l1.exports=bq(),l1.exports}var l3;function _q(){if(l3)return Fv;l3=1;var e=w8();return Fv.createRoot=e.createRoot,Fv.hydrateRoot=e.hydrateRoot,Fv}var xq=_q(),I=S0();const Z=Nt(I);var f1={exports:{}},d1={};/**
|
||
* @license React
|
||
* use-sync-external-store-with-selector.production.js
|
||
*
|
||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var u3;function wq(){if(u3)return d1;u3=1;var e=S0();function t(c,u){return c===u&&(c!==0||1/c===1/u)||c!==c&&u!==u}var r=typeof Object.is=="function"?Object.is:t,n=e.useSyncExternalStore,i=e.useRef,o=e.useEffect,a=e.useMemo,s=e.useDebugValue;return d1.useSyncExternalStoreWithSelector=function(c,u,h,p,v){var b=i(null);if(b.current===null){var _={hasValue:!1,value:null};b.current=_}else _=b.current;b=a(function(){function w(A){if(!O){if(O=!0,P=A,A=p(A),v!==void 0&&_.hasValue){var j=_.value;if(v(j,A))return C=j}return C=A}if(j=C,r(P,A))return j;var N=p(A);return v!==void 0&&v(j,N)?(P=A,j):(P=A,C=N)}var O=!1,P,C,T=h===void 0?null:h;return[function(){return w(u())},T===null?void 0:function(){return w(T())}]},[u,h,p,v]);var x=n(c,b[0],b[1]);return o(function(){_.hasValue=!0,_.value=x},[x]),s(x),x},d1}var c3;function Oq(){return c3||(c3=1,f1.exports=wq()),f1.exports}Oq();var Sq=I.version.startsWith("19"),Pq=Symbol.for(Sq?"react.transitional.element":"react.element"),Eq=Symbol.for("react.portal"),Cq=Symbol.for("react.fragment"),Tq=Symbol.for("react.strict_mode"),jq=Symbol.for("react.profiler"),Aq=Symbol.for("react.consumer"),kq=Symbol.for("react.context"),O8=Symbol.for("react.forward_ref"),Rq=Symbol.for("react.suspense"),Nq=Symbol.for("react.suspense_list"),kC=Symbol.for("react.memo"),Mq=Symbol.for("react.lazy"),Lq=O8,Iq=kC;function Dq(e){if(typeof e=="object"&&e!==null){const{$$typeof:t}=e;switch(t){case Pq:switch(e=e.type,e){case Cq:case jq:case Tq:case Rq:case Nq:return e;default:switch(e=e&&e.$$typeof,e){case kq:case O8:case Mq:case kC:return e;case Aq:return e;default:return t}}case Eq:return t}}}function $q(e){return Dq(e)===kC}function Fq(e,t,r,n,{areStatesEqual:i,areOwnPropsEqual:o,areStatePropsEqual:a}){let s=!1,c,u,h,p,v;function b(P,C){return c=P,u=C,h=e(c,u),p=t(n,u),v=r(h,p,u),s=!0,v}function _(){return h=e(c,u),t.dependsOnOwnProps&&(p=t(n,u)),v=r(h,p,u),v}function x(){return e.dependsOnOwnProps&&(h=e(c,u)),t.dependsOnOwnProps&&(p=t(n,u)),v=r(h,p,u),v}function w(){const P=e(c,u),C=!a(P,h);return h=P,C&&(v=r(h,p,u)),v}function O(P,C){const T=!o(C,u),A=!i(P,c,C,u);return c=P,u=C,T&&A?_():T?x():A?w():v}return function(C,T){return s?O(C,T):b(C,T)}}function Bq(e,{initMapStateToProps:t,initMapDispatchToProps:r,initMergeProps:n,...i}){const o=t(e,i),a=r(e,i),s=n(e,i);return Fq(o,a,s,e,i)}function Uq(e,t){const r={};for(const n in e){const i=e[n];typeof i=="function"&&(r[n]=(...o)=>t(i(...o)))}return r}function QO(e){return function(r){const n=e(r);function i(){return n}return i.dependsOnOwnProps=!1,i}}function f3(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function S8(e,t){return function(n,{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=f3(e);let u=o(s,c);return typeof u=="function"&&(o.mapToProps=u,o.dependsOnOwnProps=f3(u),u=o(s,c)),u},o}}function RC(e,t){return(r,n)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${n.wrappedComponentName}.`)}}function zq(e){return e&&typeof e=="object"?QO(t=>Uq(e,t)):e?typeof e=="function"?S8(e):RC(e,"mapDispatchToProps"):QO(t=>({dispatch:t}))}function Vq(e){return e?typeof e=="function"?S8(e):RC(e,"mapStateToProps"):QO(()=>({}))}function Wq(e,t,r){return{...r,...e,...t}}function qq(e){return function(r,{displayName:n,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 Hq(e){return e?typeof e=="function"?qq(e):RC(e,"mergeProps"):()=>Wq}function Gq(e){e()}function Kq(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Gq(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let n=e;for(;n;)r.push(n),n=n.next;return r},subscribe(r){let n=!0;const i=t={callback:r,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!n||e===null||(n=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var d3={notify(){},get:()=>[]};function P8(e,t){let r,n=d3,i=0,o=!1;function a(x){h();const w=n.subscribe(x);let O=!1;return()=>{O||(O=!0,w(),p())}}function s(){n.notify()}function c(){_.onStateChange&&_.onStateChange()}function u(){return o}function h(){i++,r||(r=t?t.addNestedSub(c):e.subscribe(c),n=Kq())}function p(){i--,r&&i===0&&(r(),r=void 0,n.clear(),n=d3)}function v(){o||(o=!0,h())}function b(){o&&(o=!1,p())}const _={addNestedSub:a,notifyNestedSubs:s,handleChangeWrapper:c,isSubscribed:u,trySubscribe:v,tryUnsubscribe:b,getListeners:()=>n};return _}var Yq=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Zq=Yq(),Xq=()=>typeof navigator<"u"&&navigator.product==="ReactNative",Qq=Xq(),Jq=()=>Zq||Qq?I.useLayoutEffect:I.useEffect,Tg=Jq();function h3(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function h1(e,t){if(h3(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let i=0;i<r.length;i++)if(!Object.prototype.hasOwnProperty.call(t,r[i])||!h3(e[r[i]],t[r[i]]))return!1;return!0}var eH={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},tH={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},rH={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},E8={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},nH={[Lq]:rH,[Iq]:E8};function p3(e){return $q(e)?E8:nH[e.$$typeof]||eH}var iH=Object.defineProperty,oH=Object.getOwnPropertyNames,m3=Object.getOwnPropertySymbols,aH=Object.getOwnPropertyDescriptor,sH=Object.getPrototypeOf,v3=Object.prototype;function JO(e,t){if(typeof t!="string"){if(v3){const o=sH(t);o&&o!==v3&&JO(e,o)}let r=oH(t);m3&&(r=r.concat(m3(t)));const n=p3(e),i=p3(t);for(let o=0;o<r.length;++o){const a=r[o];if(!tH[a]&&!(i&&i[a])&&!(n&&n[a])){const s=aH(t,a);try{iH(e,a,s)}catch{}}}}return e}var p1=Symbol.for("react-redux-context"),m1=typeof globalThis<"u"?globalThis:{};function lH(){if(!I.createContext)return{};const e=m1[p1]??(m1[p1]=new Map);let t=e.get(I.createContext);return t||(t=I.createContext(null),e.set(I.createContext,t)),t}var C8=lH(),uH=[null,null];function cH(e,t,r){Tg(()=>e(...t),r)}function fH(e,t,r,n,i,o){e.current=n,r.current=!1,i.current&&(i.current=null,o())}function dH(e,t,r,n,i,o,a,s,c,u,h){if(!e)return()=>{};let p=!1,v=null;const b=()=>{if(p||!s.current)return;const x=t.getState();let w,O;try{w=n(x,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 r.onStateChange=b,r.trySubscribe(),b(),()=>{if(p=!0,r.tryUnsubscribe(),r.onStateChange=null,v)throw v}}function hH(e,t){return e===t}function pH(e,t,r,{pure:n,areStatesEqual:i=hH,areOwnPropsEqual:o=h1,areStatePropsEqual:a=h1,areMergedPropsEqual:s=h1,forwardRef:c=!1,context:u=C8}={}){const h=u,p=Vq(e),v=zq(t),b=Hq(r),_=!!e;return w=>{const O=w.displayName||w.name||"Component",P=`Connect(${O})`,C={shouldHandleStateChanges:_,displayName:P,wrappedComponentName:O,WrappedComponent:w,initMapStateToProps:p,initMapDispatchToProps:v,initMergeProps:b,areStatesEqual:i,areStatePropsEqual:a,areOwnPropsEqual:o,areMergedPropsEqual:s};function T(N){const[F,V,B]=I.useMemo(()=>{const{reactReduxForwardedRef:ie,...he}=N;return[N.context,ie,he]},[N]),W=I.useMemo(()=>{let ie=h;return F!=null&&F.Consumer,ie},[F,h]),q=I.useContext(W),J=!!N.store&&!!N.store.getState&&!!N.store.dispatch,Q=!!q&&!!q.store,ne=J?N.store:q.store,ae=Q?q.getServerState:ne.getState,se=I.useMemo(()=>Bq(ne.dispatch,C),[ne]),[oe,K]=I.useMemo(()=>{if(!_)return uH;const ie=P8(ne,J?void 0:q.subscription),he=ie.notifyNestedSubs.bind(ie);return[ie,he]},[ne,J,q]),G=I.useMemo(()=>J?q:{...q,subscription:oe},[J,q,oe]),z=I.useRef(void 0),re=I.useRef(B),X=I.useRef(void 0),le=I.useRef(!1),ce=I.useRef(!1),de=I.useRef(void 0);Tg(()=>(ce.current=!0,()=>{ce.current=!1}),[]);const be=I.useMemo(()=>()=>X.current&&B===re.current?X.current:se(ne.getState(),B),[ne,B]),M=I.useMemo(()=>he=>oe?dH(_,ne,oe,se,re,z,le,ce,X,K,he):()=>{},[oe]);cH(fH,[re,z,le,B,X,K]);let $;try{$=I.useSyncExternalStore(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}Tg(()=>{de.current=void 0,X.current=void 0,z.current=$});const Y=I.useMemo(()=>I.createElement(w,{...$,ref:V}),[V,w,$]);return I.useMemo(()=>_?I.createElement(W.Provider,{value:G},Y):Y,[W,Y,G])}const j=I.memo(T);if(j.WrappedComponent=w,j.displayName=T.displayName=P,c){const F=I.forwardRef(function(B,W){return I.createElement(j,{...B,reactReduxForwardedRef:W})});return F.displayName=P,F.WrappedComponent=w,JO(F,w)}return JO(j,w)}}var T8=pH;function mH(e){const{children:t,context:r,serverState:n,store:i}=e,o=I.useMemo(()=>{const c=P8(i);return{store:i,subscription:c,getServerState:n?()=>n:void 0}},[i,n]),a=I.useMemo(()=>i.getState(),[i]);Tg(()=>{const{subscription:c}=o;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),a!==i.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[o,a]);const s=r||C8;return I.createElement(s.Provider,{value:o},t)}var j8=mH,nh={},g3;function vH(){if(g3)return nh;g3=1,Object.defineProperty(nh,"__esModule",{value:!0}),nh.parse=a,nh.serialize=u;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,r=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,n=/^[\u0020-\u003A\u003D-\u007E]*$/,i=Object.prototype.toString,o=(()=>{const v=function(){};return v.prototype=Object.create(null),v})();function a(v,b){const _=new o,x=v.length;if(x<2)return _;const w=(b==null?void 0:b.decode)||h;let O=0;do{const P=v.indexOf("=",O);if(P===-1)break;const C=v.indexOf(";",O),T=C===-1?x:C;if(P>T){O=v.lastIndexOf(";",P-1)+1;continue}const A=s(v,O,P),j=c(v,P,A),N=v.slice(A,j);if(_[N]===void 0){let F=s(v,P+1,T),V=c(v,T,F);const B=w(v.slice(F,V));_[N]=B}O=T+1}while(O<x);return _}function s(v,b,_){do{const x=v.charCodeAt(b);if(x!==32&&x!==9)return b}while(++b<_);return _}function c(v,b,_){for(;b>_;){const x=v.charCodeAt(--b);if(x!==32&&x!==9)return b+1}return _}function u(v,b,_){const x=(_==null?void 0:_.encode)||encodeURIComponent;if(!e.test(v))throw new TypeError(`argument name is invalid: ${v}`);const w=x(b);if(!t.test(w))throw new TypeError(`argument val is invalid: ${b}`);let O=v+"="+w;if(!_)return O;if(_.maxAge!==void 0){if(!Number.isInteger(_.maxAge))throw new TypeError(`option maxAge is invalid: ${_.maxAge}`);O+="; Max-Age="+_.maxAge}if(_.domain){if(!r.test(_.domain))throw new TypeError(`option domain is invalid: ${_.domain}`);O+="; Domain="+_.domain}if(_.path){if(!n.test(_.path))throw new TypeError(`option path is invalid: ${_.path}`);O+="; Path="+_.path}if(_.expires){if(!p(_.expires)||!Number.isFinite(_.expires.valueOf()))throw new TypeError(`option expires is invalid: ${_.expires}`);O+="; Expires="+_.expires.toUTCString()}if(_.httpOnly&&(O+="; HttpOnly"),_.secure&&(O+="; Secure"),_.partitioned&&(O+="; Partitioned"),_.priority)switch(typeof _.priority=="string"?_.priority.toLowerCase():void 0){case"low":O+="; Priority=Low";break;case"medium":O+="; Priority=Medium";break;case"high":O+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${_.priority}`)}if(_.sameSite)switch(typeof _.sameSite=="string"?_.sameSite.toLowerCase():_.sameSite){case!0:case"strict":O+="; SameSite=Strict";break;case"lax":O+="; SameSite=Lax";break;case"none":O+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${_.sameSite}`)}return O}function h(v){if(v.indexOf("%")===-1)return v;try{return decodeURIComponent(v)}catch{return v}}function p(v){return i.call(v)==="[object Date]"}return nh}vH();/**
|
||
* react-router v7.1.5
|
||
*
|
||
* 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
|
||
*/var y3="popstate";function gH(e={}){function t(n,i){let{pathname:o,search:a,hash:s}=n.location;return eS("",{pathname:o,search:a,hash:s},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function r(n,i){return typeof i=="string"?i:Yh(i)}return bH(t,r,null,e)}function lr(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function wo(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function yH(){return Math.random().toString(36).substring(2,10)}function b3(e,t){return{usr:e.state,key:e.key,idx:t}}function eS(e,t,r=null,n){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Hf(t):t,state:r,key:t&&t.key||n||yH()}}function Yh({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function Hf(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substring(n),e=e.substring(0,n)),e&&(t.pathname=e)}return t}function bH(e,t,r,n={}){let{window:i=document.defaultView,v5Compat:o=!1}=n,a=i.history,s="POP",c=null,u=h();u==null&&(u=0,a.replaceState({...a.state,idx:u},""));function h(){return(a.state||{idx:null}).idx}function p(){s="POP";let w=h(),O=w==null?null:w-u;u=w,c&&c({action:s,location:x.location,delta:O})}function v(w,O){s="PUSH";let P=eS(x.location,w,O);u=h()+1;let C=b3(P,u),T=x.createHref(P);try{a.pushState(C,"",T)}catch(A){if(A instanceof DOMException&&A.name==="DataCloneError")throw A;i.location.assign(T)}o&&c&&c({action:s,location:x.location,delta:1})}function b(w,O){s="REPLACE";let P=eS(x.location,w,O);u=h();let C=b3(P,u),T=x.createHref(P);a.replaceState(C,"",T),o&&c&&c({action:s,location:x.location,delta:0})}function _(w){let O=i.location.origin!=="null"?i.location.origin:i.location.href,P=typeof w=="string"?w:Yh(w);return P=P.replace(/ $/,"%20"),lr(O,`No window.location.(origin|href) available to create URL for href: ${P}`),new URL(P,O)}let x={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(y3,p),c=w,()=>{i.removeEventListener(y3,p),c=null}},createHref(w){return t(i,w)},createURL:_,encodeLocation(w){let O=_(w);return{pathname:O.pathname,search:O.search,hash:O.hash}},push:v,replace:b,go(w){return a.go(w)}};return x}function A8(e,t,r="/"){return _H(e,t,r,!1)}function _H(e,t,r,n){let i=typeof t=="string"?Hf(t):t,o=rl(i.pathname||"/",r);if(o==null)return null;let a=k8(e);xH(a);let s=null;for(let c=0;s==null&&c<a.length;++c){let u=RH(o);s=AH(a[c],u,n)}return s}function k8(e,t=[],r=[],n=""){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("/")&&(lr(c.relativePath.startsWith(n),`Absolute route path "${c.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(n.length));let u=Da([n,c.relativePath]),h=r.concat(c);o.children&&o.children.length>0&&(lr(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${u}".`),k8(o.children,t,h,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:TH(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 R8(o.path))i(o,a,c)}),t}function R8(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,i=r.endsWith("?"),o=r.replace(/\?$/,"");if(n.length===0)return i?[o,""]:[o];let a=R8(n.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 xH(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:jH(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}var wH=/^:[\w-]+$/,OH=3,SH=2,PH=1,EH=10,CH=-2,_3=e=>e==="*";function TH(e,t){let r=e.split("/"),n=r.length;return r.some(_3)&&(n+=CH),t&&(n+=SH),r.filter(i=>!_3(i)).reduce((i,o)=>i+(wH.test(o)?OH:o===""?PH:EH),n)}function jH(e,t){return e.length===t.length&&e.slice(0,-1).every((n,i)=>n===t[i])?e[e.length-1]-t[t.length-1]:0}function AH(e,t,r=!1){let{routesMeta:n}=e,i={},o="/",a=[];for(let s=0;s<n.length;++s){let c=n[s],u=s===n.length-1,h=o==="/"?t:t.slice(o.length)||"/",p=jg({path:c.relativePath,caseSensitive:c.caseSensitive,end:u},h),v=c.route;if(!p&&u&&r&&!n[n.length-1].route.index&&(p=jg({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},h)),!p)return null;Object.assign(i,p.params),a.push({params:i,pathname:Da([o,p.pathname]),pathnameBase:IH(Da([o,p.pathnameBase])),route:v}),p.pathnameBase!=="/"&&(o=Da([o,p.pathnameBase]))}return a}function jg(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=kH(e.path,e.caseSensitive,e.end),i=t.match(r);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:n.reduce((u,{paramName:h,isOptional:p},v)=>{if(h==="*"){let _=s[v]||"";a=o.slice(0,o.length-_.length).replace(/(.)\/+$/,"$1")}const b=s[v];return p&&!b?u[h]=void 0:u[h]=(b||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:a,pattern:e}}function kH(e,t=!1,r=!0){wo(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 n=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,c)=>(n.push({paramName:s,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),n]}function RH(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return wo(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function rl(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function NH(e,t="/"){let{pathname:r,search:n="",hash:i=""}=typeof e=="string"?Hf(e):e;return{pathname:r?r.startsWith("/")?r:MH(r,t):t,search:DH(n),hash:$H(i)}}function MH(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function v1(e,t,r,n){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(n)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function LH(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function NC(e){let t=LH(e);return t.map((r,n)=>n===t.length-1?r.pathname:r.pathnameBase)}function MC(e,t,r,n=!1){let i;typeof e=="string"?i=Hf(e):(i={...e},lr(!i.pathname||!i.pathname.includes("?"),v1("?","pathname","search",i)),lr(!i.pathname||!i.pathname.includes("#"),v1("#","pathname","hash",i)),lr(!i.search||!i.search.includes("#"),v1("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,s;if(a==null)s=r;else{let p=t.length-1;if(!n&&a.startsWith("..")){let v=a.split("/");for(;v[0]==="..";)v.shift(),p-=1;i.pathname=v.join("/")}s=p>=0?t[p]:"/"}let c=NH(i,s),u=a&&a!=="/"&&a.endsWith("/"),h=(o||a===".")&&r.endsWith("/");return!c.pathname.endsWith("/")&&(u||h)&&(c.pathname+="/"),c}var Da=e=>e.join("/").replace(/\/\/+/g,"/"),IH=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),DH=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,$H=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function FH(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var N8=["POST","PUT","PATCH","DELETE"];new Set(N8);var BH=["GET",...N8];new Set(BH);var Gf=I.createContext(null);Gf.displayName="DataRouter";var P0=I.createContext(null);P0.displayName="DataRouterState";var M8=I.createContext({isTransitioning:!1});M8.displayName="ViewTransition";var UH=I.createContext(new Map);UH.displayName="Fetchers";var zH=I.createContext(null);zH.displayName="Await";var So=I.createContext(null);So.displayName="Navigation";var Gp=I.createContext(null);Gp.displayName="Location";var Po=I.createContext({outlet:null,matches:[],isDataRoute:!1});Po.displayName="Route";var LC=I.createContext(null);LC.displayName="RouteError";function VH(e,{relative:t}={}){lr(Nu(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:n}=I.useContext(So),{hash:i,pathname:o,search:a}=Kp(e,{relative:t}),s=o;return r!=="/"&&(s=o==="/"?r:Da([r,o])),n.createHref({pathname:s,search:a,hash:i})}function Nu(){return I.useContext(Gp)!=null}function gn(){return lr(Nu(),"useLocation() may be used only in the context of a <Router> component."),I.useContext(Gp).location}var L8="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function I8(e){I.useContext(So).static||I.useLayoutEffect(e)}function sa(){let{isDataRoute:e}=I.useContext(Po);return e?rG():WH()}function WH(){lr(Nu(),"useNavigate() may be used only in the context of a <Router> component.");let e=I.useContext(Gf),{basename:t,navigator:r}=I.useContext(So),{matches:n}=I.useContext(Po),{pathname:i}=gn(),o=JSON.stringify(NC(n)),a=I.useRef(!1);return I8(()=>{a.current=!0}),I.useCallback((c,u={})=>{if(wo(a.current,L8),!a.current)return;if(typeof c=="number"){r.go(c);return}let h=MC(c,JSON.parse(o),i,u.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:Da([t,h.pathname])),(u.replace?r.replace:r.push)(h,u.state,u)},[t,r,o,i,e])}I.createContext(null);function Kf(){let{matches:e}=I.useContext(Po),t=e[e.length-1];return t?t.params:{}}function Kp(e,{relative:t}={}){let{matches:r}=I.useContext(Po),{pathname:n}=gn(),i=JSON.stringify(NC(r));return I.useMemo(()=>MC(e,JSON.parse(i),n,t==="path"),[e,i,n,t])}function qH(e,t){return D8(e,t)}function D8(e,t,r,n){var P;lr(Nu(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i,static:o}=I.useContext(So),{matches:a}=I.useContext(Po),s=a[a.length-1],c=s?s.params:{},u=s?s.pathname:"/",h=s?s.pathnameBase:"/",p=s&&s.route;{let C=p&&p.path||"";$8(u,!p||C.endsWith("*")||C.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${C}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
||
|
||
Please change the parent <Route path="${C}"> to <Route path="${C==="/"?"*":`${C}/*`}">.`)}let v=gn(),b;if(t){let C=typeof t=="string"?Hf(t):t;lr(h==="/"||((P=C.pathname)==null?void 0:P.startsWith(h)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${h}" but pathname "${C.pathname}" was given in the \`location\` prop.`),b=C}else b=v;let _=b.pathname||"/",x=_;if(h!=="/"){let C=h.replace(/^\//,"").split("/");x="/"+_.replace(/^\//,"").split("/").slice(C.length).join("/")}let w=!o&&r&&r.matches&&r.matches.length>0?r.matches:A8(e,{pathname:x});wo(p||w!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),wo(w==null||w[w.length-1].route.element!==void 0||w[w.length-1].route.Component!==void 0||w[w.length-1].route.lazy!==void 0,`Matched leaf route at location "${b.pathname}${b.search}${b.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let O=ZH(w&&w.map(C=>Object.assign({},C,{params:Object.assign({},c,C.params),pathname:Da([h,i.encodeLocation?i.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?h:Da([h,i.encodeLocation?i.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),a,r,n);return t&&O?I.createElement(Gp.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...b},navigationType:"POP"}},O):O}function HH(){let e=tG(),t=FH(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:n},o={padding:"2px 4px",backgroundColor:n},a=null;return console.error("Error handled by React Router default ErrorBoundary:",e),a=I.createElement(I.Fragment,null,I.createElement("p",null,"💿 Hey developer 👋"),I.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",I.createElement("code",{style:o},"ErrorBoundary")," or"," ",I.createElement("code",{style:o},"errorElement")," prop on your route.")),I.createElement(I.Fragment,null,I.createElement("h2",null,"Unexpected Application Error!"),I.createElement("h3",{style:{fontStyle:"italic"}},t),r?I.createElement("pre",{style:i},r):null,a)}var GH=I.createElement(HH,null),KH=class extends I.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?I.createElement(Po.Provider,{value:this.props.routeContext},I.createElement(LC.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function YH({routeContext:e,match:t,children:r}){let n=I.useContext(Gf);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),I.createElement(Po.Provider,{value:e},r)}function ZH(e,t=[],r=null,n=null){if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,o=r==null?void 0:r.errors;if(o!=null){let c=i.findIndex(u=>u.route.id&&(o==null?void 0:o[u.route.id])!==void 0);lr(c>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),i=i.slice(0,Math.min(i.length,c+1))}let a=!1,s=-1;if(r)for(let c=0;c<i.length;c++){let u=i[c];if((u.route.HydrateFallback||u.route.hydrateFallbackElement)&&(s=c),u.route.id){let{loaderData:h,errors:p}=r,v=u.route.loader&&!h.hasOwnProperty(u.route.id)&&(!p||p[u.route.id]===void 0);if(u.route.lazy||v){a=!0,s>=0?i=i.slice(0,s+1):i=[i[0]];break}}}return i.reduceRight((c,u,h)=>{let p,v=!1,b=null,_=null;r&&(p=o&&u.route.id?o[u.route.id]:void 0,b=u.route.errorElement||GH,a&&(s<0&&h===0?($8("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),v=!0,_=null):s===h&&(v=!0,_=u.route.hydrateFallbackElement||null)));let x=t.concat(i.slice(0,h+1)),w=()=>{let O;return p?O=b:v?O=_:u.route.Component?O=I.createElement(u.route.Component,null):u.route.element?O=u.route.element:O=c,I.createElement(YH,{match:u,routeContext:{outlet:c,matches:x,isDataRoute:r!=null},children:O})};return r&&(u.route.ErrorBoundary||u.route.errorElement||h===0)?I.createElement(KH,{location:r.location,revalidation:r.revalidation,component:b,error:p,children:w(),routeContext:{outlet:null,matches:x,isDataRoute:!0}}):w()},null)}function IC(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function XH(e){let t=I.useContext(Gf);return lr(t,IC(e)),t}function QH(e){let t=I.useContext(P0);return lr(t,IC(e)),t}function JH(e){let t=I.useContext(Po);return lr(t,IC(e)),t}function DC(e){let t=JH(e),r=t.matches[t.matches.length-1];return lr(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function eG(){return DC("useRouteId")}function tG(){var n;let e=I.useContext(LC),t=QH("useRouteError"),r=DC("useRouteError");return e!==void 0?e:(n=t.errors)==null?void 0:n[r]}function rG(){let{router:e}=XH("useNavigate"),t=DC("useNavigate"),r=I.useRef(!1);return I8(()=>{r.current=!0}),I.useCallback(async(i,o={})=>{wo(r.current,L8),r.current&&(typeof i=="number"?e.navigate(i):await e.navigate(i,{fromRouteId:t,...o}))},[e,t])}var x3={};function $8(e,t,r){!t&&!x3[e]&&(x3[e]=!0,wo(!1,r))}I.memo(nG);function nG({routes:e,future:t,state:r}){return D8(e,void 0,r,t)}function $C({to:e,replace:t,state:r,relative:n}){lr(Nu(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=I.useContext(So);wo(!i,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:o}=I.useContext(Po),{pathname:a}=gn(),s=sa(),c=MC(e,NC(o),a,n==="path"),u=JSON.stringify(c);return I.useEffect(()=>{s(JSON.parse(u),{replace:t,state:r,relative:n})},[s,u,n,t,r]),null}function Pt(e){lr(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function iG({basename:e="/",children:t=null,location:r,navigationType:n="POP",navigator:i,static:o=!1}){lr(!Nu(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let a=e.replace(/^\/*/,"/"),s=I.useMemo(()=>({basename:a,navigator:i,static:o,future:{}}),[a,i,o]);typeof r=="string"&&(r=Hf(r));let{pathname:c="/",search:u="",hash:h="",state:p=null,key:v="default"}=r,b=I.useMemo(()=>{let _=rl(c,a);return _==null?null:{location:{pathname:_,search:u,hash:h,state:p,key:v},navigationType:n}},[a,c,u,h,p,v,n]);return wo(b!=null,`<Router basename="${a}"> is not able to match the URL "${c}${u}${h}" because it does not start with the basename, so the <Router> won't render anything.`),b==null?null:I.createElement(So.Provider,{value:s},I.createElement(Gp.Provider,{children:t,value:b}))}function E0({children:e,location:t}){return qH(tS(e),t)}function tS(e,t=[]){let r=[];return I.Children.forEach(e,(n,i)=>{if(!I.isValidElement(n))return;let o=[...t,i];if(n.type===I.Fragment){r.push.apply(r,tS(n.props.children,o));return}lr(n.type===Pt,`[${typeof n.type=="string"?n.type:n.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),lr(!n.props.index||!n.props.children,"An index route cannot have child routes.");let a={id:n.props.id||o.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,hydrateFallbackElement:n.props.hydrateFallbackElement,HydrateFallback:n.props.HydrateFallback,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.hasErrorBoundary===!0||n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(a.children=tS(n.props.children,o)),r.push(a)}),r}var vg="get",gg="application/x-www-form-urlencoded";function C0(e){return e!=null&&typeof e.tagName=="string"}function oG(e){return C0(e)&&e.tagName.toLowerCase()==="button"}function aG(e){return C0(e)&&e.tagName.toLowerCase()==="form"}function sG(e){return C0(e)&&e.tagName.toLowerCase()==="input"}function lG(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function uG(e,t){return e.button===0&&(!t||t==="_self")&&!lG(e)}var Bv=null;function cG(){if(Bv===null)try{new FormData(document.createElement("form"),0),Bv=!1}catch{Bv=!0}return Bv}var fG=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function g1(e){return e!=null&&!fG.has(e)?(wo(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${gg}"`),null):e}function dG(e,t){let r,n,i,o,a;if(aG(e)){let s=e.getAttribute("action");n=s?rl(s,t):null,r=e.getAttribute("method")||vg,i=g1(e.getAttribute("enctype"))||gg,o=new FormData(e)}else if(oG(e)||sG(e)&&(e.type==="submit"||e.type==="image")){let s=e.form;if(s==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let c=e.getAttribute("formaction")||s.getAttribute("action");if(n=c?rl(c,t):null,r=e.getAttribute("formmethod")||s.getAttribute("method")||vg,i=g1(e.getAttribute("formenctype"))||g1(s.getAttribute("enctype"))||gg,o=new FormData(s,e),!cG()){let{name:u,type:h,value:p}=e;if(h==="image"){let v=u?`${u}.`:"";o.append(`${v}x`,"0"),o.append(`${v}y`,"0")}else u&&o.append(u,p)}}else{if(C0(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=vg,n=null,i=gg,a=e}return o&&i==="text/plain"&&(a=o,o=void 0),{action:n,method:r.toLowerCase(),encType:i,formData:o,body:a}}function FC(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function hG(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function pG(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function mG(e,t,r){let n=await Promise.all(e.map(async i=>{let o=t.routes[i.route.id];if(o){let a=await hG(o,r);return a.links?a.links():[]}return[]}));return bG(n.flat(1).filter(pG).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function w3(e,t,r,n,i,o){let a=(c,u)=>r[u]?c.route.id!==r[u].route.id:!0,s=(c,u)=>{var h;return r[u].pathname!==c.pathname||((h=r[u].route.path)==null?void 0:h.endsWith("*"))&&r[u].params["*"]!==c.params["*"]};return o==="assets"?t.filter((c,u)=>a(c,u)||s(c,u)):o==="data"?t.filter((c,u)=>{var p;let h=n.routes[c.route.id];if(!h||!h.hasLoader)return!1;if(a(c,u)||s(c,u))return!0;if(c.route.shouldRevalidate){let v=c.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:((p=r[0])==null?void 0:p.params)||{},nextUrl:new URL(e,window.origin),nextParams:c.params,defaultShouldRevalidate:!0});if(typeof v=="boolean")return v}return!0}):[]}function vG(e,t){return gG(e.map(r=>{let n=t.routes[r.route.id];if(!n)return[];let i=[n.module];return n.imports&&(i=i.concat(n.imports)),i}).flat(1))}function gG(e){return[...new Set(e)]}function yG(e){let t={},r=Object.keys(e).sort();for(let n of r)t[n]=e[n];return t}function bG(e,t){let r=new Set;return new Set(t),e.reduce((n,i)=>{let o=JSON.stringify(yG(i));return r.has(o)||(r.add(o),n.push({key:o,link:i})),n},[])}function _G(e){let t=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return t.pathname==="/"?t.pathname="_root.data":t.pathname=`${t.pathname.replace(/\/$/,"")}.data`,t}function xG(){let e=I.useContext(Gf);return FC(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function wG(){let e=I.useContext(P0);return FC(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var BC=I.createContext(void 0);BC.displayName="FrameworkContext";function F8(){let e=I.useContext(BC);return FC(e,"You must render this element inside a <HydratedRouter> element"),e}function OG(e,t){let r=I.useContext(BC),[n,i]=I.useState(!1),[o,a]=I.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:u,onMouseLeave:h,onTouchStart:p}=t,v=I.useRef(null);I.useEffect(()=>{if(e==="render"&&a(!0),e==="viewport"){let x=O=>{O.forEach(P=>{a(P.isIntersecting)})},w=new IntersectionObserver(x,{threshold:.5});return v.current&&w.observe(v.current),()=>{w.disconnect()}}},[e]),I.useEffect(()=>{if(n){let x=setTimeout(()=>{a(!0)},100);return()=>{clearTimeout(x)}}},[n]);let b=()=>{i(!0)},_=()=>{i(!1),a(!1)};return r?e!=="intent"?[o,v,{}]:[o,v,{onFocus:ih(s,b),onBlur:ih(c,_),onMouseEnter:ih(u,b),onMouseLeave:ih(h,_),onTouchStart:ih(p,b)}]:[!1,v,{}]}function ih(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function SG({page:e,...t}){let{router:r}=xG(),n=I.useMemo(()=>A8(r.routes,e,r.basename),[r.routes,e,r.basename]);return n?I.createElement(EG,{page:e,matches:n,...t}):null}function PG(e){let{manifest:t,routeModules:r}=F8(),[n,i]=I.useState([]);return I.useEffect(()=>{let o=!1;return mG(e,t,r).then(a=>{o||i(a)}),()=>{o=!0}},[e,t,r]),n}function EG({page:e,matches:t,...r}){let n=gn(),{manifest:i,routeModules:o}=F8(),{loaderData:a,matches:s}=wG(),c=I.useMemo(()=>w3(e,t,s,i,n,"data"),[e,t,s,i,n]),u=I.useMemo(()=>w3(e,t,s,i,n,"assets"),[e,t,s,i,n]),h=I.useMemo(()=>{if(e===n.pathname+n.search+n.hash)return[];let b=new Set,_=!1;if(t.forEach(w=>{var P;let O=i.routes[w.route.id];!O||!O.hasLoader||(!c.some(C=>C.route.id===w.route.id)&&w.route.id in a&&((P=o[w.route.id])!=null&&P.shouldRevalidate)||O.hasClientLoader?_=!0:b.add(w.route.id))}),b.size===0)return[];let x=_G(e);return _&&b.size>0&&x.searchParams.set("_routes",t.filter(w=>b.has(w.route.id)).map(w=>w.route.id).join(",")),[x.pathname+x.search]},[a,n,i,c,t,e,o]),p=I.useMemo(()=>vG(u,i),[u,i]),v=PG(u);return I.createElement(I.Fragment,null,h.map(b=>I.createElement("link",{key:b,rel:"prefetch",as:"fetch",href:b,...r})),p.map(b=>I.createElement("link",{key:b,rel:"modulepreload",href:b,...r})),v.map(({key:b,link:_})=>I.createElement("link",{key:b,..._})))}function CG(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var B8=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{B8&&(window.__reactRouterVersion="7.1.5")}catch{}function U8({basename:e,children:t,window:r}){let n=I.useRef();n.current==null&&(n.current=gH({window:r,v5Compat:!0}));let i=n.current,[o,a]=I.useState({action:i.action,location:i.location}),s=I.useCallback(c=>{I.startTransition(()=>a(c))},[a]);return I.useLayoutEffect(()=>i.listen(s),[i,s]),I.createElement(iG,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:i})}var z8=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ht=I.forwardRef(function({onClick:t,discover:r="render",prefetch:n="none",relative:i,reloadDocument:o,replace:a,state:s,target:c,to:u,preventScrollReset:h,viewTransition:p,...v},b){let{basename:_}=I.useContext(So),x=typeof u=="string"&&z8.test(u),w,O=!1;if(typeof u=="string"&&x&&(w=u,B8))try{let V=new URL(window.location.href),B=u.startsWith("//")?new URL(V.protocol+u):new URL(u),W=rl(B.pathname,_);B.origin===V.origin&&W!=null?u=W+B.search+B.hash:O=!0}catch{wo(!1,`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let P=VH(u,{relative:i}),[C,T,A]=OG(n,v),j=AG(u,{replace:a,state:s,target:c,preventScrollReset:h,relative:i,viewTransition:p});function N(V){t&&t(V),V.defaultPrevented||j(V)}let F=I.createElement("a",{...v,...A,href:w||P,onClick:O||o?t:N,ref:CG(b,T),target:c,"data-discover":!x&&r==="render"?"true":void 0});return C&&!x?I.createElement(I.Fragment,null,F,I.createElement(SG,{page:P})):F});Ht.displayName="Link";var UC=I.forwardRef(function({"aria-current":t="page",caseSensitive:r=!1,className:n="",end:i=!1,style:o,to:a,viewTransition:s,children:c,...u},h){let p=Kp(a,{relative:u.relative}),v=gn(),b=I.useContext(P0),{navigator:_,basename:x}=I.useContext(So),w=b!=null&&LG(p)&&s===!0,O=_.encodeLocation?_.encodeLocation(p).pathname:p.pathname,P=v.pathname,C=b&&b.navigation&&b.navigation.location?b.navigation.location.pathname:null;r||(P=P.toLowerCase(),C=C?C.toLowerCase():null,O=O.toLowerCase()),C&&x&&(C=rl(C,x)||C);const T=O!=="/"&&O.endsWith("/")?O.length-1:O.length;let A=P===O||!i&&P.startsWith(O)&&P.charAt(T)==="/",j=C!=null&&(C===O||!i&&C.startsWith(O)&&C.charAt(O.length)==="/"),N={isActive:A,isPending:j,isTransitioning:w},F=A?t:void 0,V;typeof n=="function"?V=n(N):V=[n,A?"active":null,j?"pending":null,w?"transitioning":null].filter(Boolean).join(" ");let B=typeof o=="function"?o(N):o;return I.createElement(Ht,{...u,"aria-current":F,className:V,ref:h,style:B,to:a,viewTransition:s},typeof c=="function"?c(N):c)});UC.displayName="NavLink";var TG=I.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:n,replace:i,state:o,method:a=vg,action:s,onSubmit:c,relative:u,preventScrollReset:h,viewTransition:p,...v},b)=>{let _=NG(),x=MG(s,{relative:u}),w=a.toLowerCase()==="get"?"get":"post",O=typeof s=="string"&&z8.test(s),P=C=>{if(c&&c(C),C.defaultPrevented)return;C.preventDefault();let T=C.nativeEvent.submitter,A=(T==null?void 0:T.getAttribute("formmethod"))||a;_(T||C.currentTarget,{fetcherKey:t,method:A,navigate:r,replace:i,state:o,relative:u,preventScrollReset:h,viewTransition:p})};return I.createElement("form",{ref:b,method:w,action:x,onSubmit:n?c:P,...v,"data-discover":!O&&e==="render"?"true":void 0})});TG.displayName="Form";function jG(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function V8(e){let t=I.useContext(Gf);return lr(t,jG(e)),t}function AG(e,{target:t,replace:r,state:n,preventScrollReset:i,relative:o,viewTransition:a}={}){let s=sa(),c=gn(),u=Kp(e,{relative:o});return I.useCallback(h=>{if(uG(h,t)){h.preventDefault();let p=r!==void 0?r:Yh(c)===Yh(u);s(e,{replace:p,state:n,preventScrollReset:i,relative:o,viewTransition:a})}},[c,s,u,r,n,t,e,i,o,a])}var kG=0,RG=()=>`__${String(++kG)}__`;function NG(){let{router:e}=V8("useSubmit"),{basename:t}=I.useContext(So),r=eG();return I.useCallback(async(n,i={})=>{let{action:o,method:a,encType:s,formData:c,body:u}=dG(n,t);if(i.navigate===!1){let h=i.fetcherKey||RG();await e.fetch(h,r,i.action||o,{preventScrollReset:i.preventScrollReset,formData:c,body:u,formMethod:i.method||a,formEncType:i.encType||s,flushSync:i.flushSync})}else await e.navigate(i.action||o,{preventScrollReset:i.preventScrollReset,formData:c,body:u,formMethod:i.method||a,formEncType:i.encType||s,replace:i.replace,state:i.state,fromRouteId:r,flushSync:i.flushSync,viewTransition:i.viewTransition})},[e,t,r])}function MG(e,{relative:t}={}){let{basename:r}=I.useContext(So),n=I.useContext(Po);lr(n,"useFormAction must be used inside a RouteContext");let[i]=n.matches.slice(-1),o={...Kp(e||".",{relative:t})},a=gn();if(e==null){o.search=a.search;let s=new URLSearchParams(o.search),c=s.getAll("index");if(c.some(h=>h==="")){s.delete("index"),c.filter(p=>p).forEach(p=>s.append("index",p));let h=s.toString();o.search=h?`?${h}`:""}}return(!e||e===".")&&i.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(o.pathname=o.pathname==="/"?r:Da([r,o.pathname])),Yh(o)}function LG(e,t={}){let r=I.useContext(M8);lr(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=V8("useViewTransitionState"),i=Kp(e,{relative:t.relative});if(!r.isTransitioning)return!1;let o=rl(r.currentLocation.pathname,n)||r.currentLocation.pathname,a=rl(r.nextLocation.pathname,n)||r.nextLocation.pathname;return jg(i.pathname,a)!=null||jg(i.pathname,o)!=null}new TextEncoder;const IG="shlink-web-client",DG="A React-based progressive web application for shlink",$G="/shlink-web-client/feature/react-router-tests",FG="https://github.com/shlinkio/shlink-web-client",BG="MIT",UG="module",zG={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"},VG={"@fortawesome/fontawesome-free":"^6.7.2","@fortawesome/fontawesome-svg-core":"^6.7.2","@fortawesome/free-brands-svg-icons":"^6.7.2","@fortawesome/free-regular-svg-icons":"^6.7.2","@fortawesome/free-solid-svg-icons":"^6.7.2","@fortawesome/react-fontawesome":"^0.2.2","@json2csv/plainjs":"^7.0.6","@reduxjs/toolkit":"^2.5.1","@shlinkio/data-manipulation":"^1.0.3","@shlinkio/shlink-frontend-kit":"^0.7.2","@shlinkio/shlink-js-sdk":"^1.4.0","@shlinkio/shlink-web-component":"^0.12.1",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.4.0","react-redux":"^9.2.0","react-router":"^7.1.5",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"},WG={"@shlinkio/eslint-config-js-coding-standard":"~3.3.0","@shlinkio/stylelint-config-css-coding-standard":"~1.1.1","@stylistic/eslint-plugin":"^3.0.1","@testing-library/jest-dom":"^6.6.3","@testing-library/react":"^16.2.0","@testing-library/user-event":"^14.6.1","@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":"^3.0.4","adm-zip":"^0.5.16","axe-core":"^4.10.2",chalk:"^5.4.1",eslint:"^9.19.0","eslint-plugin-jsx-a11y":"^6.10.2","eslint-plugin-react":"^7.37.4","eslint-plugin-react-hooks":"^5.1.0","eslint-plugin-simple-import-sort":"^12.1.1",history:"^5.3.0",jsdom:"^26.0.0",sass:"^1.83.4",stylelint:"^15.11.0",typescript:"^5.7.3","typescript-eslint":"^8.22.0",vite:"^6.0.11","vite-plugin-pwa":"^0.21.1",vitest:"^3.0.2"},qG=[">0.2%","not dead","not ie <= 11","not op_mini all"],Ag={name:IG,description:DG,private:!1,homepage:$G,repository:FG,license:BG,type:UG,scripts:zG,dependencies:VG,devDependencies:WG,browserslist:qG};var Oo,ra=".",W8="function",q8="string",H8="__global__",zC="Provider",HG=0,VC=Array.prototype.slice,GG=function(t,r){var n=t[r];if(n===void 0&&Oo.config.strict)throw new Error("Bottle was unable to resolve a service. `"+r+"` is undefined.");return n},T0=function(t){var r;return this.nested[t]||(r=Oo.pop(),this.nested[t]=r,this.factory(t,function(){return r.container})),this.nested[t]},G8=function(t){return t.split(ra).reduce(GG,this)},KG=function(t,r,n,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++](n,c)};return c(),n}:(o.value=n,o.writable=!0),Object.defineProperty(i,r,o),i[r]},YG=function(t,r){var n,i;return typeof t===W8&&(r=t,t=H8),n=t.split(ra),i=n.shift(),n.length?T0.call(this,i).middleware(n.join(ra),r):(this.middlewares[i]||(this.middlewares[i]=[]),this.middlewares[i].push(r)),this},ZG=function(t,r){return r(t)},O3=function(t,r){return(t[r]||[]).concat(t.__global__||[])},XG=function(t,r){var n,i,o,a,s;return this.id,o=this.container,a=this.decorators,s=this.middlewares,n=t+zC,i=Object.create(null),i[n]={configurable:!0,enumerable:!0,get:function(){var u=new r;return delete o[n],o[n]=u,u}},i[t]={configurable:!0,enumerable:!0,get:function(){var u=o[n],h;return u&&(h=O3(a,t).reduce(ZG,u.$get(o)),delete o[n],delete o[t]),h===void 0?h:KG(O3(s,t),t,h,o)}},Object.defineProperties(o,i),this},K8=function(t,r){var n,i;return n=t.split(ra),this.providerMap[t]&&n.length===1&&!this.container[t+zC]?console.error(t+" provider already instantiated."):(this.originalProviders[t]=r,this.providerMap[t]=!0,i=n.shift(),n.length?(T0.call(this,i).provider(n.join(ra),r),this):XG.call(this,i,r))},WC=function(t,r){return K8.call(this,t,function(){this.$get=r})},Y8=function(t,r,n){var i=arguments.length>3?VC.call(arguments,3):[],o=this;return WC.call(this,t,function(){var s=r,c=i.map(G8,o.container);return n?new(r.bind.apply(r,[null].concat(c))):s.apply(null,c)})},QG=function(t,r){return Y8.apply(this,[t,r,!0].concat(VC.call(arguments,2)))},JG=function(t,r){return Y8.apply(this,[t,r,!1].concat(VC.call(arguments,2)))},Z8=function(t,r){Object.defineProperty(this,t,{configurable:!0,enumerable:!0,value:r,writable:!0})},X8=function(t,r){var n=t[r];return n||(n={},Z8.call(t,r,n)),n},eK=function(t,r){var n;return n=t.split(ra),t=n.pop(),Z8.call(n.reduce(X8,this.container),t,r),this},tK=function(t,r){Object.defineProperty(this,t,{configurable:!1,enumerable:!0,value:r,writable:!1})},rK=function(t,r){var n=t.split(ra);return t=n.pop(),tK.call(n.reduce(X8,this.container),t,r),this},Q8=function(t,r){var n,i;return typeof t===W8&&(r=t,t=H8),n=t.split(ra),i=n.shift(),n.length?T0.call(this,i).decorator(n.join(ra),r):(this.decorators[i]||(this.decorators[i]=[]),this.decorators[i].push(r)),this},nK=function(t){return this.deferred.push(t),this},iK=function(t){return(t||[]).map(G8,this.container)},oK=function(t,r){return WC.call(this,t,function(i){return{instance:r.bind(r,i)}})},aK=function(t){return!/^\$(?:decorator|register|list)$|Provider$/.test(t)},qC=function(t){return Object.keys(t||this.container||{}).filter(aK)},kg={},sK=function(t){var r;return typeof t===q8?(r=kg[t],r||(kg[t]=r=new Oo,r.constant("BOTTLE_NAME",t)),r):new Oo},lK=function(t){typeof t===q8?delete kg[t]:kg={}},J8=function(t){var r=t.$value===void 0?t:t.$value;return this[t.$type||"service"].apply(this,[t.$name,r].concat(t.$inject||[]))},S3=function(t){delete this.providerMap[t],delete this.container[t],delete this.container[t+zC]},uK=function(t){var r=this.originalProviders,n=Array.isArray(t);Object.keys(this.originalProviders).forEach(function(o){if(!(n&&t.indexOf(o)===-1)){var a=o.split(ra);a.length>1&&a.forEach(S3,T0.call(this,a[0])),S3.call(this,o),this.provider(o,r[o])}},this)},cK=function(t){return this.deferred.forEach(function(n){n(t)}),this};Oo=function e(t){if(!(this instanceof e))return e.pop(t);this.id=HG++,this.decorators={},this.middlewares={},this.nested={},this.providerMap={},this.originalProviders={},this.deferred=[],this.container={$decorator:Q8.bind(this),$register:J8.bind(this),$list:qC.bind(this)}};Oo.prototype={constant:rK,decorator:Q8,defer:nK,digest:iK,factory:WC,instanceFactory:oK,list:qC,middleware:YG,provider:K8,resetProviders:uK,register:J8,resolve:cK,service:QG,serviceFactory:JG,value:eK};Oo.pop=sK;Oo.clear=lK;Oo.list=qC;Oo.config={strict:!1};const e$=Oo;var fK=Object.defineProperty,dK=(e,t,r)=>t in e?fK(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,hK=(e,t,r)=>dK(e,t+"",r);const pK=(e,t)=>`${e}/rest/v${t}`,mK=e=>e.dir?`${e.field}-${e.dir}`:void 0,vK=({orderBy:e={},excludeMaxVisitsReached:t,excludePastValidUntil:r,...n})=>({...n,excludeMaxVisitsReached:t===!0?"true":void 0,excludePastValidUntil:r===!0?"true":void 0,orderBy:mK(e)}),gK=(e,t)=>{const[r,n]=e.split("://");if(!n)throw new Error(`It is not possible to determine authority on "${e}" for replacement`);const[,...i]=n.split("/"),o=i.length?`/${i.join("/")}`:"";return`${r}://${t}${o}`},yK=(e={})=>{const t=Object.entries(e).flatMap(([r,n])=>n==null?[]:Array.isArray(n)?n.map(i=>[`${r}[]`,i]):[[r,n]]);return new URLSearchParams(t).toString()};let bK=class{constructor(t,r){hK(this,"apiVersion"),this.httpClient=t,this.serverInfo=r,this.apiVersion=3}async listShortUrls(t={},r){return this.performRequest({url:"/short-urls",query:vK(t),signal:r}).then(({shortUrls:n})=>n)}async createShortUrl(t,r){const n=Object.entries(t).reduce((i,[o,a])=>(a&&(i[o]=a),i),{});return this.performRequest({url:"/short-urls",method:"POST",body:n,signal:r})}async getShortUrl(t,r,n){return this.performRequest({url:`/short-urls/${t}`,query:{domain:r},signal:n})}async deleteShortUrl(t,r,n){return this.performEmptyRequest({url:`/short-urls/${t}`,method:"DELETE",query:{domain:r},signal:n})}async updateShortUrl(t,r,n,i){return this.performRequest({url:`/short-urls/${t}`,method:"PATCH",query:{domain:r},body:n,signal:i})}async getShortUrlRedirectRules(t,r,n){return this.performRequest({url:`/short-urls/${t}/redirect-rules`,method:"GET",query:{domain:r},signal:n})}async setShortUrlRedirectRules(t,r,n,i){return this.performRequest({url:`/short-urls/${t}/redirect-rules`,method:"POST",query:{domain:r},body:n,signal:i})}async getVisitsOverview(t){return this.performRequest({url:"/visits",signal:t}).then(({visits:r})=>r)}async getShortUrlVisits(t,r,n){return this.performVisitsRequest({url:`/short-urls/${t}/visits`,query:r,signal:n})}async getTagVisits(t,r,n){return this.performVisitsRequest({url:`/tags/${t}/visits`,query:r,signal:n})}async getDomainVisits(t,r,n){return this.performVisitsRequest({url:`/domains/${t}/visits`,query:r,signal:n})}async getOrphanVisits(t,r){return this.performVisitsRequest({url:"/visits/orphan",query:t,signal:r})}async getNonOrphanVisits(t,r){return this.performVisitsRequest({url:"/visits/non-orphan",query:t,signal:r})}async performVisitsRequest(t){return this.performRequest(t).then(({visits:r})=>r)}async deleteShortUrlVisits(t,r,n){const i=r?{domain:r}:void 0;return this.performRequest({method:"DELETE",url:`/short-urls/${t}/visits`,query:i,signal:n})}async deleteOrphanVisits(t){return this.performRequest({method:"DELETE",url:"/visits/orphan",signal:t})}async listTags(t){return this.performRequest({url:"/tags",signal:t}).then(({tags:r})=>r)}async tagsStats(t){return this.performRequest({url:"/tags/stats",signal:t}).then(({tags:r})=>r)}async deleteTags(t,r){return this.performEmptyRequest({url:"/tags",method:"DELETE",query:{tags:t},signal:r}).then(()=>({tags:t}))}async editTag(t,r,n){return this.performEmptyRequest({url:"/tags",method:"PUT",body:{oldName:t,newName:r},signal:n}).then(()=>({oldName:t,newName:r}))}async listDomains(t){return this.performRequest({url:"/domains",signal:t}).then(({domains:r})=>r)}async editDomainRedirects(t,r){return this.performRequest({url:"/domains/redirects",method:"PATCH",body:t,signal:r})}async health(t,r){return this.performRequest({url:"/health",domain:t,signal:r})}async mercureInfo(t){return this.performRequest({url:"/mercure-info",signal:t})}async performRequest(t){return this.httpClient.jsonRequest(...this.toFetchParams(t))}async performEmptyRequest(t){return this.httpClient.emptyRequest(...this.toFetchParams(t))}toFetchParams({url:t,method:r="GET",query:n={},body:i,domain:o,signal:a}){const s=yK(n),c=s?`?${s}`:"",u=o?gK(this.serverInfo.baseUrl,o):this.serverInfo.baseUrl;return[`${pK(u,this.apiVersion)}${t}${c}`,{method:r,body:i&&JSON.stringify(i),headers:{"X-Api-Key":this.serverInfo.apiKey},signal:a}]}};const t$=e=>!!(e!=null&&e.url)&&!!(e!=null&&e.apiKey),Ah=e=>!!(e!=null&&e.id),HC=e=>!!(e!=null&&e.version),_K=e=>!!(e!=null&&e.serverNotFound),xK=e=>Ah(e)?e.id:"",wK=({name:e,url:t,apiKey:r})=>({name:e,url:t,apiKey:r}),P3={},OK=e=>typeof e=="function",SK=e=>{const{selectedServer:t}=e();if(!t$(t))throw new Error("There's no selected server or it is not found");return t},PK=e=>t=>{const{url:r,apiKey:n}=OK(t)?SK(t):t,i=`${n}_${r}`,o=P3[i]??new bK(e,{apiKey:n,baseUrl:r});return P3[i]=o,o},EK=e=>{e.serviceFactory("buildShlinkApiClient",PK,"HttpClient")};/*!
|
||
* Font Awesome Free 6.7.2 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 CK={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"]},TK={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"]},jK={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"]},AK=jK,kK={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"]},GC=kK,RK={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"]},NK={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"]},r$=NK,n$={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"]},MK={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"]},KC={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"]},LK={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"]},IK=LK,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"]},YC=DK,$K={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"]},FK={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"]},BK={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"]},E3={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"]},UK={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"]},zK=UK,VK={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"]},rS=VK,WK={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"]},qK={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"]},HK={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"]},GK=HK,ZC={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"]},j0={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"]},i$={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"]},C3={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"]},KK={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"]},YK={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"]},ZK={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"]},XK=ZK,QK={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"]},JK={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"]},XC=JK,QC={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"]},eY=QC,tY={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"]},rY={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"]},nY={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"]},iY=nY,oY={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"]},aY=oY,sY={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"]},lY=sY,uY={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"]},o$=uY,cY={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"]},fY={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"]},dY={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"]},hY={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"]},pY=hY,mY={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"]},vY={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"]},Yp={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"]},a$={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"]},nS=a$,gY={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"]},yY={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"]},bY=yY,T3={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"]},s$={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"]},_Y=s$,xY={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"]},wY={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"]},OY={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"]},SY={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"]},PY={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"]},Zh={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"]},l$={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"]},EY={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"]},CY=EY;/*!
|
||
* Font Awesome Free 6.7.2 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 TY(e,t,r){return(t=AY(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ue(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?j3(Object(r),!0).forEach(function(n){TY(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):j3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jY(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function AY(e){var t=jY(e,"string");return typeof t=="symbol"?t:t+""}const A3=()=>{};let JC={},u$={},c$=null,f$={mark:A3,measure:A3};try{typeof window<"u"&&(JC=window),typeof document<"u"&&(u$=document),typeof MutationObserver<"u"&&(c$=MutationObserver),typeof performance<"u"&&(f$=performance)}catch{}const{userAgent:k3=""}=JC.navigator||{},nl=JC,ir=u$,R3=c$,Uv=f$;nl.document;const Xa=!!ir.documentElement&&!!ir.head&&typeof ir.addEventListener=="function"&&typeof ir.createElement=="function",d$=~k3.indexOf("MSIE")||~k3.indexOf("Trident/");var kY=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,RY=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,h$={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"}},NY={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},p$=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],vn="classic",A0="duotone",MY="sharp",LY="sharp-duotone",m$=[vn,A0,MY,LY],IY={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"}},$Y=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}]]),FY={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"}},BY=["fak","fa-kit","fakd","fa-kit-duotone"],N3={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},UY=["kit"],zY={kit:{"fa-kit":"fak"},"kit-duotone":{"fa-kit-duotone":"fakd"}},VY=["fak","fakd"],WY={kit:{fak:"fa-kit"},"kit-duotone":{fakd:"fa-kit-duotone"}},M3={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},zv={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},qY=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],HY=["fak","fa-kit","fakd","fa-kit-duotone"],GY={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},KY={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"}},YY={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]},iS={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"}},ZY=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],oS=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt",...qY,...ZY],XY=["solid","regular","light","thin","duotone","brands"],v$=[1,2,3,4,5,6,7,8,9,10],QY=v$.concat([11,12,13,14,15,16,17,18,19,20]),JY=[...Object.keys(YY),...XY,"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",zv.GROUP,zv.SWAP_OPACITY,zv.PRIMARY,zv.SECONDARY].concat(v$.map(e=>"".concat(e,"x"))).concat(QY.map(e=>"w-".concat(e))),eZ={"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 za="___FONT_AWESOME___",aS=16,g$="fa",y$="svg-inline--fa",bu="data-fa-i2svg",sS="data-fa-pseudo-element",tZ="data-fa-pseudo-element-pending",eT="data-prefix",tT="data-icon",L3="fontawesome-i2svg",rZ="async",nZ=["HTML","HEAD","STYLE","SCRIPT"],b$=(()=>{try{return!0}catch{return!1}})();function Zp(e){return new Proxy(e,{get(t,r){return r in t?t[r]:t[vn]}})}const _$=Ue({},h$);_$[vn]=Ue(Ue(Ue(Ue({},{"fa-duotone":"duotone"}),h$[vn]),N3.kit),N3["kit-duotone"]);const iZ=Zp(_$),lS=Ue({},FY);lS[vn]=Ue(Ue(Ue(Ue({},{duotone:"fad"}),lS[vn]),M3.kit),M3["kit-duotone"]);const I3=Zp(lS),uS=Ue({},iS);uS[vn]=Ue(Ue({},uS[vn]),WY.kit);const rT=Zp(uS),cS=Ue({},KY);cS[vn]=Ue(Ue({},cS[vn]),zY.kit);Zp(cS);const oZ=kY,x$="fa-layers-text",aZ=RY,sZ=Ue({},IY);Zp(sZ);const lZ=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],y1=NY,uZ=[...UY,...JY],kh=nl.FontAwesomeConfig||{};function cZ(e){var t=ir.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function fZ(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}ir&&typeof ir.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[r,n]=t;const i=fZ(cZ(r));i!=null&&(kh[n]=i)});const w$={styleDefault:"solid",familyDefault:vn,cssPrefix:g$,replacementClass:y$,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};kh.familyPrefix&&(kh.cssPrefix=kh.familyPrefix);const af=Ue(Ue({},w$),kh);af.autoReplaceSvg||(af.observeMutations=!1);const at={};Object.keys(w$).forEach(e=>{Object.defineProperty(at,e,{enumerable:!0,set:function(t){af[e]=t,Rh.forEach(r=>r(at))},get:function(){return af[e]}})});Object.defineProperty(at,"familyPrefix",{enumerable:!0,set:function(e){af.cssPrefix=e,Rh.forEach(t=>t(at))},get:function(){return af.cssPrefix}});nl.FontAwesomeConfig=at;const Rh=[];function dZ(e){return Rh.push(e),()=>{Rh.splice(Rh.indexOf(e),1)}}const $s=aS,Go={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function hZ(e){if(!e||!Xa)return;const t=ir.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const r=ir.head.childNodes;let n=null;for(let i=r.length-1;i>-1;i--){const o=r[i],a=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(n=o)}return ir.head.insertBefore(t,n),e}const pZ="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Xh(){let e=12,t="";for(;e-- >0;)t+=pZ[Math.random()*62|0];return t}function Yf(e){const t=[];for(let r=(e||[]).length>>>0;r--;)t[r]=e[r];return t}function nT(e){return e.classList?Yf(e.classList):(e.getAttribute("class")||"").split(" ").filter(t=>t)}function O$(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function mZ(e){return Object.keys(e||{}).reduce((t,r)=>t+"".concat(r,'="').concat(O$(e[r]),'" '),"").trim()}function k0(e){return Object.keys(e||{}).reduce((t,r)=>t+"".concat(r,": ").concat(e[r].trim(),";"),"")}function iT(e){return e.size!==Go.size||e.x!==Go.x||e.y!==Go.y||e.rotate!==Go.rotate||e.flipX||e.flipY}function vZ(e){let{transform:t,containerWidth:r,iconWidth:n}=e;const i={transform:"translate(".concat(r/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(n/2*-1," -256)")};return{outer:i,inner:c,path:u}}function gZ(e){let{transform:t,width:r=aS,height:n=aS,startCentered:i=!1}=e,o="";return i&&d$?o+="translate(".concat(t.x/$s-r/2,"em, ").concat(t.y/$s-n/2,"em) "):i?o+="translate(calc(-50% + ".concat(t.x/$s,"em), calc(-50% + ").concat(t.y/$s,"em)) "):o+="translate(".concat(t.x/$s,"em, ").concat(t.y/$s,"em) "),o+="scale(".concat(t.size/$s*(t.flipX?-1:1),", ").concat(t.size/$s*(t.flipY?-1:1),") "),o+="rotate(".concat(t.rotate,"deg) "),o}var yZ=`: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 S$(){const e=g$,t=y$,r=at.cssPrefix,n=at.replacementClass;let i=yZ;if(r!==e||n!==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(r,"-")).replace(a,"--".concat(r,"-")).replace(s,".".concat(n))}return i}let D3=!1;function b1(){at.autoAddCss&&!D3&&(hZ(S$()),D3=!0)}var bZ={mixout(){return{dom:{css:S$,insertCss:b1}}},hooks(){return{beforeDOMElementCreation(){b1()},beforeI2svg(){b1()}}}};const Va=nl||{};Va[za]||(Va[za]={});Va[za].styles||(Va[za].styles={});Va[za].hooks||(Va[za].hooks={});Va[za].shims||(Va[za].shims=[]);var Ko=Va[za];const P$=[],E$=function(){ir.removeEventListener("DOMContentLoaded",E$),Rg=1,P$.map(e=>e())};let Rg=!1;Xa&&(Rg=(ir.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(ir.readyState),Rg||ir.addEventListener("DOMContentLoaded",E$));function _Z(e){Xa&&(Rg?setTimeout(e,0):P$.push(e))}function Xp(e){const{tag:t,attributes:r={},children:n=[]}=e;return typeof e=="string"?O$(e):"<".concat(t," ").concat(mZ(r),">").concat(n.map(Xp).join(""),"</").concat(t,">")}function $3(e,t,r){if(e&&e[t]&&e[t][r])return{prefix:t,iconName:r,icon:e[t][r]}}var _1=function(t,r,n,i){var o=Object.keys(t),a=o.length,s=r,c,u,h;for(n===void 0?(c=1,h=t[o[0]]):(c=0,h=n);c<a;c++)u=o[c],h=s(h,t[u],u,t);return h};function xZ(e){const t=[];let r=0;const n=e.length;for(;r<n;){const i=e.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){const o=e.charCodeAt(r++);(o&64512)==56320?t.push(((i&1023)<<10)+(o&1023)+65536):(t.push(i),r--)}else t.push(i)}return t}function fS(e){const t=xZ(e);return t.length===1?t[0].toString(16):null}function wZ(e,t){const r=e.length;let n=e.charCodeAt(t),i;return n>=55296&&n<=56319&&r>t+1&&(i=e.charCodeAt(t+1),i>=56320&&i<=57343)?(n-55296)*1024+i-56320+65536:n}function F3(e){return Object.keys(e).reduce((t,r)=>{const n=e[r];return!!n.icon?t[n.iconName]=n.icon:t[r]=n,t},{})}function dS(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:n=!1}=r,i=F3(t);typeof Ko.hooks.addPack=="function"&&!n?Ko.hooks.addPack(e,F3(t)):Ko.styles[e]=Ue(Ue({},Ko.styles[e]||{}),i),e==="fas"&&dS("fa",t)}const{styles:Qh,shims:OZ}=Ko,C$=Object.keys(rT),SZ=C$.reduce((e,t)=>(e[t]=Object.keys(rT[t]),e),{});let oT=null,T$={},j$={},A$={},k$={},R$={};function PZ(e){return~uZ.indexOf(e)}function EZ(e,t){const r=t.split("-"),n=r[0],i=r.slice(1).join("-");return n===e&&i!==""&&!PZ(i)?i:null}const N$=()=>{const e=n=>_1(Qh,(i,o,a)=>(i[a]=_1(o,n,{}),i),{});T$=e((n,i,o)=>(i[3]&&(n[i[3]]=o),i[2]&&i[2].filter(s=>typeof s=="number").forEach(s=>{n[s.toString(16)]=o}),n)),j$=e((n,i,o)=>(n[o]=o,i[2]&&i[2].filter(s=>typeof s=="string").forEach(s=>{n[s]=o}),n)),R$=e((n,i,o)=>{const a=i[2];return n[o]=o,a.forEach(s=>{n[s]=o}),n});const t="far"in Qh||at.autoFetchSvg,r=_1(OZ,(n,i)=>{const o=i[0];let a=i[1];const s=i[2];return a==="far"&&!t&&(a="fas"),typeof o=="string"&&(n.names[o]={prefix:a,iconName:s}),typeof o=="number"&&(n.unicodes[o.toString(16)]={prefix:a,iconName:s}),n},{names:{},unicodes:{}});A$=r.names,k$=r.unicodes,oT=R0(at.styleDefault,{family:at.familyDefault})};dZ(e=>{oT=R0(e.styleDefault,{family:at.familyDefault})});N$();function aT(e,t){return(T$[e]||{})[t]}function CZ(e,t){return(j$[e]||{})[t]}function su(e,t){return(R$[e]||{})[t]}function M$(e){return A$[e]||{prefix:null,iconName:null}}function TZ(e){const t=k$[e],r=aT("fas",e);return t||(r?{prefix:"fas",iconName:r}:null)||{prefix:null,iconName:null}}function il(){return oT}const L$=()=>({prefix:null,iconName:null,rest:[]});function jZ(e){let t=vn;const r=C$.reduce((n,i)=>(n[i]="".concat(at.cssPrefix,"-").concat(i),n),{});return m$.forEach(n=>{(e.includes(r[n])||e.some(i=>SZ[n].includes(i)))&&(t=n)}),t}function R0(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:r=vn}=t,n=iZ[r][e];if(r===A0&&!e)return"fad";const i=I3[r][e]||I3[r][n],o=e in Ko.styles?e:null;return i||o||null}function AZ(e){let t=[],r=null;return e.forEach(n=>{const i=EZ(at.cssPrefix,n);i?r=i:n&&t.push(n)}),{iconName:r,rest:t}}function B3(e){return e.sort().filter((t,r,n)=>n.indexOf(t)===r)}function N0(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:r=!1}=t;let n=null;const i=oS.concat(HY),o=B3(e.filter(p=>i.includes(p))),a=B3(e.filter(p=>!oS.includes(p))),s=o.filter(p=>(n=p,!p$.includes(p))),[c=null]=s,u=jZ(o),h=Ue(Ue({},AZ(a)),{},{prefix:R0(c,{family:u})});return Ue(Ue(Ue({},h),MZ({values:e,family:u,styles:Qh,config:at,canonical:h,givenPrefix:n})),kZ(r,n,h))}function kZ(e,t,r){let{prefix:n,iconName:i}=r;if(e||!n||!i)return{prefix:n,iconName:i};const o=t==="fa"?M$(i):{},a=su(n,i);return i=o.iconName||a||i,n=o.prefix||n,n==="far"&&!Qh.far&&Qh.fas&&!at.autoFetchSvg&&(n="fas"),{prefix:n,iconName:i}}const RZ=m$.filter(e=>e!==vn||e!==A0),NZ=Object.keys(iS).filter(e=>e!==vn).map(e=>Object.keys(iS[e])).flat();function MZ(e){const{values:t,family:r,canonical:n,givenPrefix:i="",styles:o={},config:a={}}=e,s=r===A0,c=t.includes("fa-duotone")||t.includes("fad"),u=a.familyDefault==="duotone",h=n.prefix==="fad"||n.prefix==="fa-duotone";if(!s&&(c||u||h)&&(n.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(n.prefix="fab"),!n.prefix&&RZ.includes(r)&&(Object.keys(o).find(v=>NZ.includes(v))||a.autoFetchSvg)){const v=$Y.get(r).defaultShortPrefixId;n.prefix=v,n.iconName=su(n.prefix,n.iconName)||n.iconName}return(n.prefix==="fa"||i==="fa")&&(n.prefix=il()||"fas"),n}class LZ{constructor(){this.definitions={}}add(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];const i=r.reduce(this._pullDefinitions,{});Object.keys(i).forEach(o=>{this.definitions[o]=Ue(Ue({},this.definitions[o]||{}),i[o]),dS(o,i[o]);const a=rT[vn][o];a&&dS(a,i[o]),N$()})}reset(){this.definitions={}}_pullDefinitions(t,r){const n=r.prefix&&r.iconName&&r.icon?{0:r}:r;return Object.keys(n).map(i=>{const{prefix:o,iconName:a,icon:s}=n[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 U3=[],Wc={};const Jc={},IZ=Object.keys(Jc);function DZ(e,t){let{mixoutsTo:r}=t;return U3=e,Wc={},Object.keys(Jc).forEach(n=>{IZ.indexOf(n)===-1&&delete Jc[n]}),U3.forEach(n=>{const i=n.mixout?n.mixout():{};if(Object.keys(i).forEach(o=>{typeof i[o]=="function"&&(r[o]=i[o]),typeof i[o]=="object"&&Object.keys(i[o]).forEach(a=>{r[o]||(r[o]={}),r[o][a]=i[o][a]})}),n.hooks){const o=n.hooks();Object.keys(o).forEach(a=>{Wc[a]||(Wc[a]=[]),Wc[a].push(o[a])})}n.provides&&n.provides(Jc)}),r}function hS(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];return(Wc[e]||[]).forEach(a=>{t=a.apply(null,[t,...n])}),t}function _u(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];(Wc[e]||[]).forEach(o=>{o.apply(null,r)})}function ol(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Jc[e]?Jc[e].apply(null,t):void 0}function pS(e){e.prefix==="fa"&&(e.prefix="fas");let{iconName:t}=e;const r=e.prefix||il();if(t)return t=su(r,t)||t,$3(I$.definitions,r,t)||$3(Ko.styles,r,t)}const I$=new LZ,$Z=()=>{at.autoReplaceSvg=!1,at.observeMutations=!1,_u("noAuto")},FZ={i2svg:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Xa?(_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,_Z(()=>{UZ({autoReplaceSvgRoot:t}),_u("watch",e)})}},BZ={icon:e=>{if(e===null)return null;if(typeof e=="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:su(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],r=R0(e[0]);return{prefix:r,iconName:su(r,t)||t}}if(typeof e=="string"&&(e.indexOf("".concat(at.cssPrefix,"-"))>-1||e.match(oZ))){const t=N0(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||il(),iconName:su(t.prefix,t.iconName)||t.iconName}}if(typeof e=="string"){const t=il();return{prefix:t,iconName:su(t,e)||e}}}},_i={noAuto:$Z,config:at,dom:FZ,parse:BZ,library:I$,findIconDefinition:pS,toHtml:Xp},UZ=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t=ir}=e;(Object.keys(Ko.styles).length>0||at.autoFetchSvg)&&Xa&&at.autoReplaceSvg&&_i.dom.i2svg({node:t})};function M0(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(r=>Xp(r))}}),Object.defineProperty(e,"node",{get:function(){if(!Xa)return;const r=ir.createElement("div");return r.innerHTML=e.html,r.children}}),e}function zZ(e){let{children:t,main:r,mask:n,attributes:i,styles:o,transform:a}=e;if(iT(a)&&r.found&&!n.found){const{width:s,height:c}=r,u={x:s/c/2,y:.5};i.style=k0(Ue(Ue({},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 VZ(e){let{prefix:t,iconName:r,children:n,attributes:i,symbol:o}=e;const a=o===!0?"".concat(t,"-").concat(at.cssPrefix,"-").concat(r):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Ue(Ue({},i),{},{id:a}),children:n}]}]}function sT(e){const{icons:{main:t,mask:r},prefix:n,iconName:i,transform:o,symbol:a,title:s,maskId:c,titleId:u,extra:h,watchable:p=!1}=e,{width:v,height:b}=r.found?r:t,_=VY.includes(n),x=[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:Ue(Ue({},h.attributes),{},{"data-prefix":n,"data-icon":i,class:x,role:h.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(v," ").concat(b)})};const O=_&&!~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||Xh())},children:[s]}),delete w.attributes.title);const P=Ue(Ue({},w),{},{prefix:n,iconName:i,main:t,mask:r,maskId:c,transform:o,symbol:a,styles:Ue(Ue({},O),h.styles)}),{children:C,attributes:T}=r.found&&t.found?ol("generateAbstractMask",P)||{children:[],attributes:{}}:ol("generateAbstractIcon",P)||{children:[],attributes:{}};return P.children=C,P.attributes=T,a?VZ(P):zZ(P)}function z3(e){const{content:t,width:r,height:n,transform:i,title:o,extra:a,watchable:s=!1}=e,c=Ue(Ue(Ue({},a.attributes),o?{title:o}:{}),{},{class:a.classes.join(" ")});s&&(c[bu]="");const u=Ue({},a.styles);iT(i)&&(u.transform=gZ({transform:i,startCentered:!0,width:r,height:n}),u["-webkit-transform"]=u.transform);const h=k0(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 WZ(e){const{content:t,title:r,extra:n}=e,i=Ue(Ue(Ue({},n.attributes),r?{title:r}:{}),{},{class:n.classes.join(" ")}),o=k0(n.styles);o.length>0&&(i.style=o);const a=[];return a.push({tag:"span",attributes:i,children:[t]}),r&&a.push({tag:"span",attributes:{class:"sr-only"},children:[r]}),a}const{styles:x1}=Ko;function mS(e){const t=e[0],r=e[1],[n]=e.slice(4);let i=null;return Array.isArray(n)?i={tag:"g",attributes:{class:"".concat(at.cssPrefix,"-").concat(y1.GROUP)},children:[{tag:"path",attributes:{class:"".concat(at.cssPrefix,"-").concat(y1.SECONDARY),fill:"currentColor",d:n[0]}},{tag:"path",attributes:{class:"".concat(at.cssPrefix,"-").concat(y1.PRIMARY),fill:"currentColor",d:n[1]}}]}:i={tag:"path",attributes:{fill:"currentColor",d:n}},{found:!0,width:t,height:r,icon:i}}const qZ={found:!1,width:512,height:512};function HZ(e,t){!b$&&!at.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function vS(e,t){let r=t;return t==="fa"&&at.styleDefault!==null&&(t=il()),new Promise((n,i)=>{if(r==="fa"){const o=M$(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&x1[t]&&x1[t][e]){const o=x1[t][e];return n(mS(o))}HZ(e,t),n(Ue(Ue({},qZ),{},{icon:at.showMissingIcons&&e?ol("missingIconAbstract")||{}:{}}))})}const V3=()=>{},gS=at.measurePerformance&&Uv&&Uv.mark&&Uv.measure?Uv:{mark:V3,measure:V3},_h='FA "6.7.2"',GZ=e=>(gS.mark("".concat(_h," ").concat(e," begins")),()=>D$(e)),D$=e=>{gS.mark("".concat(_h," ").concat(e," ends")),gS.measure("".concat(_h," ").concat(e),"".concat(_h," ").concat(e," begins"),"".concat(_h," ").concat(e," ends"))};var lT={begin:GZ,end:D$};const yg=()=>{};function W3(e){return typeof(e.getAttribute?e.getAttribute(bu):null)=="string"}function KZ(e){const t=e.getAttribute?e.getAttribute(eT):null,r=e.getAttribute?e.getAttribute(tT):null;return t&&r}function YZ(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(at.replacementClass)}function ZZ(){return at.autoReplaceSvg===!0?bg.replace:bg[at.autoReplaceSvg]||bg.replace}function XZ(e){return ir.createElementNS("http://www.w3.org/2000/svg",e)}function QZ(e){return ir.createElement(e)}function $$(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:r=e.tag==="svg"?XZ:QZ}=t;if(typeof e=="string")return ir.createTextNode(e);const n=r(e.tag);return Object.keys(e.attributes||[]).forEach(function(o){n.setAttribute(o,e.attributes[o])}),(e.children||[]).forEach(function(o){n.appendChild($$(o,{ceFn:r}))}),n}function JZ(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}const bg={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach(r=>{t.parentNode.insertBefore($$(r),t)}),t.getAttribute(bu)===null&&at.keepOriginalSource){let r=ir.createComment(JZ(t));t.parentNode.replaceChild(r,t)}else t.remove()},nest:function(e){const t=e[0],r=e[1];if(~nT(t).indexOf(at.replacementClass))return bg.replace(e);const n=new RegExp("".concat(at.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){const o=r[0].attributes.class.split(" ").reduce((a,s)=>(s===at.replacementClass||s.match(n)?a.toSvg.push(s):a.toNode.push(s),a),{toNode:[],toSvg:[]});r[0].attributes.class=o.toSvg.join(" "),o.toNode.length===0?t.removeAttribute("class"):t.setAttribute("class",o.toNode.join(" "))}const i=r.map(o=>Xp(o)).join(`
|
||
`);t.setAttribute(bu,""),t.innerHTML=i}};function q3(e){e()}function F$(e,t){const r=typeof t=="function"?t:yg;if(e.length===0)r();else{let n=q3;at.mutateApproach===rZ&&(n=nl.requestAnimationFrame||q3),n(()=>{const i=ZZ(),o=lT.begin("mutate");e.map(i),o(),r()})}}let uT=!1;function B$(){uT=!0}function yS(){uT=!1}let Ng=null;function H3(e){if(!R3||!at.observeMutations)return;const{treeCallback:t=yg,nodeCallback:r=yg,pseudoElementsCallback:n=yg,observeMutationsRoot:i=ir}=e;Ng=new R3(o=>{if(uT)return;const a=il();Yf(o).forEach(s=>{if(s.type==="childList"&&s.addedNodes.length>0&&!W3(s.addedNodes[0])&&(at.searchPseudoElements&&n(s.target),t(s.target)),s.type==="attributes"&&s.target.parentNode&&at.searchPseudoElements&&n(s.target.parentNode),s.type==="attributes"&&W3(s.target)&&~lZ.indexOf(s.attributeName))if(s.attributeName==="class"&&KZ(s.target)){const{prefix:c,iconName:u}=N0(nT(s.target));s.target.setAttribute(eT,c||a),u&&s.target.setAttribute(tT,u)}else YZ(s.target)&&r(s.target)})}),Xa&&Ng.observe(i,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function eX(){Ng&&Ng.disconnect()}function tX(e){const t=e.getAttribute("style");let r=[];return t&&(r=t.split(";").reduce((n,i)=>{const o=i.split(":"),a=o[0],s=o.slice(1);return a&&s.length>0&&(n[a]=s.join(":").trim()),n},{})),r}function rX(e){const t=e.getAttribute("data-prefix"),r=e.getAttribute("data-icon"),n=e.innerText!==void 0?e.innerText.trim():"";let i=N0(nT(e));return i.prefix||(i.prefix=il()),t&&r&&(i.prefix=t,i.iconName=r),i.iconName&&i.prefix||(i.prefix&&n.length>0&&(i.iconName=CZ(i.prefix,e.innerText)||aT(i.prefix,fS(e.innerText))),!i.iconName&&at.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function nX(e){const t=Yf(e.attributes).reduce((i,o)=>(i.name!=="class"&&i.name!=="style"&&(i[o.name]=o.value),i),{}),r=e.getAttribute("title"),n=e.getAttribute("data-fa-title-id");return at.autoA11y&&(r?t["aria-labelledby"]="".concat(at.replacementClass,"-title-").concat(n||Xh()):(t["aria-hidden"]="true",t.focusable="false")),t}function iX(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Go,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function G3(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0};const{iconName:r,prefix:n,rest:i}=rX(e),o=nX(e),a=hS("parseNodeAttributes",{},e);let s=t.styleParser?tX(e):[];return Ue({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:n,transform:Go,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:s,attributes:o}},a)}const{styles:oX}=Ko;function U$(e){const t=at.autoReplaceSvg==="nest"?G3(e,{styleParser:!1}):G3(e);return~t.extra.classes.indexOf(x$)?ol("generateLayersText",e,t):ol("generateSvgReplacementMutation",e,t)}function aX(){return[...BY,...oS]}function K3(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Xa)return Promise.resolve();const r=ir.documentElement.classList,n=h=>r.add("".concat(L3,"-").concat(h)),i=h=>r.remove("".concat(L3,"-").concat(h)),o=at.autoFetchSvg?aX():p$.concat(Object.keys(oX));o.includes("fa")||o.push("fa");const a=[".".concat(x$,":not([").concat(bu,"])")].concat(o.map(h=>".".concat(h,":not([").concat(bu,"])"))).join(", ");if(a.length===0)return Promise.resolve();let s=[];try{s=Yf(e.querySelectorAll(a))}catch{}if(s.length>0)n("pending"),i("complete");else return Promise.resolve();const c=lT.begin("onTree"),u=s.reduce((h,p)=>{try{const v=U$(p);v&&h.push(v)}catch(v){b$||v.name==="MissingIcon"&&console.error(v)}return h},[]);return new Promise((h,p)=>{Promise.all(u).then(v=>{F$(v,()=>{n("active"),n("complete"),i("pending"),typeof t=="function"&&t(),c(),h()})}).catch(v=>{c(),p(v)})})}function sX(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;U$(e).then(r=>{r&&F$([r],t)})}function lX(e){return function(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=(t||{}).icon?t:pS(t||{});let{mask:i}=r;return i&&(i=(i||{}).icon?i:pS(i||{})),e(n,Ue(Ue({},r),{},{mask:i}))}}const uX=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:r=Go,symbol:n=!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 M0(Ue({type:"icon"},e),()=>(_u("beforeDOMElementCreation",{iconDefinition:e,params:t}),at.autoA11y&&(a?u["aria-labelledby"]="".concat(at.replacementClass,"-title-").concat(s||Xh()):(u["aria-hidden"]="true",u.focusable="false")),sT({icons:{main:mS(b),mask:i?mS(i.icon):{found:!1,width:null,height:null,icon:{}}},prefix:p,iconName:v,transform:Ue(Ue({},Go),r),symbol:n,title:a,maskId:o,titleId:s,extra:{attributes:u,styles:h,classes:c}})))};var cX={mixout(){return{icon:lX(uX)}},hooks(){return{mutationObserverCallbacks(e){return e.treeCallback=K3,e.nodeCallback=sX,e}}},provides(e){e.i2svg=function(t){const{node:r=ir,callback:n=()=>{}}=t;return K3(r,n)},e.generateSvgReplacementMutation=function(t,r){const{iconName:n,title:i,titleId:o,prefix:a,transform:s,symbol:c,mask:u,maskId:h,extra:p}=r;return new Promise((v,b)=>{Promise.all([vS(n,a),u.iconName?vS(u.iconName,u.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(_=>{let[x,w]=_;v([t,sT({icons:{main:x,mask:w},prefix:a,iconName:n,transform:s,symbol:c,maskId:h,title:i,titleId:o,extra:p,watchable:!0})])}).catch(b)})},e.generateAbstractIcon=function(t){let{children:r,attributes:n,main:i,transform:o,styles:a}=t;const s=k0(a);s.length>0&&(n.style=s);let c;return iT(o)&&(c=ol("generateAbstractTransformGrouping",{main:i,transform:o,containerWidth:i.width,iconWidth:i.width})),r.push(c||i.icon),{children:r,attributes:n}}}},fX={mixout(){return{layer(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{classes:r=[]}=t;return M0({type:"layer"},()=>{_u("beforeDOMElementCreation",{assembler:e,params:t});let n=[];return e(i=>{Array.isArray(i)?i.map(o=>{n=n.concat(o.abstract)}):n=n.concat(i.abstract)}),[{tag:"span",attributes:{class:["".concat(at.cssPrefix,"-layers"),...r].join(" ")},children:n}]})}}}},dX={mixout(){return{counter(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{title:r=null,classes:n=[],attributes:i={},styles:o={}}=t;return M0({type:"counter",content:e},()=>(_u("beforeDOMElementCreation",{content:e,params:t}),WZ({content:e.toString(),title:r,extra:{attributes:i,styles:o,classes:["".concat(at.cssPrefix,"-layers-counter"),...n]}})))}}}},hX={mixout(){return{text(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:r=Go,title:n=null,classes:i=[],attributes:o={},styles:a={}}=t;return M0({type:"text",content:e},()=>(_u("beforeDOMElementCreation",{content:e,params:t}),z3({content:e,transform:Ue(Ue({},Go),r),title:n,extra:{attributes:o,styles:a,classes:["".concat(at.cssPrefix,"-layers-text"),...i]}})))}}},provides(e){e.generateLayersText=function(t,r){const{title:n,transform:i,extra:o}=r;let a=null,s=null;if(d$){const c=parseInt(getComputedStyle(t).fontSize,10),u=t.getBoundingClientRect();a=u.width/c,s=u.height/c}return at.autoA11y&&!n&&(o.attributes["aria-hidden"]="true"),Promise.resolve([t,z3({content:t.innerHTML,width:a,height:s,transform:i,title:n,extra:o,watchable:!0})])}}};const pX=new RegExp('"',"ug"),Y3=[1105920,1112319],Z3=Ue(Ue(Ue(Ue({},{FontAwesome:{normal:"fas",400:"fas"}}),DY),eZ),GY),bS=Object.keys(Z3).reduce((e,t)=>(e[t.toLowerCase()]=Z3[t],e),{}),mX=Object.keys(bS).reduce((e,t)=>{const r=bS[t];return e[t]=r[900]||[...Object.entries(r)][0][1],e},{});function vX(e){const t=e.replace(pX,""),r=wZ(t,0),n=r>=Y3[0]&&r<=Y3[1],i=t.length===2?t[0]===t[1]:!1;return{value:fS(i?t[0]:t),isSecondary:n||i}}function gX(e,t){const r=e.replace(/^['"]|['"]$/g,"").toLowerCase(),n=parseInt(t),i=isNaN(n)?"normal":n;return(bS[r]||{})[i]||mX[r]}function X3(e,t){const r="".concat(tZ).concat(t.replace(":","-"));return new Promise((n,i)=>{if(e.getAttribute(r)!==null)return n();const a=Yf(e.children).filter(v=>v.getAttribute(sS)===t)[0],s=nl.getComputedStyle(e,t),c=s.getPropertyValue("font-family"),u=c.match(aZ),h=s.getPropertyValue("font-weight"),p=s.getPropertyValue("content");if(a&&!u)return e.removeChild(a),n();if(u&&p!=="none"&&p!==""){const v=s.getPropertyValue("content");let b=gX(c,h);const{value:_,isSecondary:x}=vX(v),w=u[0].startsWith("FontAwesome");let O=aT(b,_),P=O;if(w){const C=TZ(_);C.iconName&&C.prefix&&(O=C.iconName,b=C.prefix)}if(O&&!x&&(!a||a.getAttribute(eT)!==b||a.getAttribute(tT)!==P)){e.setAttribute(r,P),a&&e.removeChild(a);const C=iX(),{extra:T}=C;T.attributes[sS]=t,vS(O,b).then(A=>{const j=sT(Ue(Ue({},C),{},{icons:{main:A,mask:L$()},prefix:b,iconName:P,extra:T,watchable:!0})),N=ir.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(N,e.firstChild):e.appendChild(N),N.outerHTML=j.map(F=>Xp(F)).join(`
|
||
`),e.removeAttribute(r),n()}).catch(i)}else n()}else n()})}function yX(e){return Promise.all([X3(e,"::before"),X3(e,"::after")])}function bX(e){return e.parentNode!==document.head&&!~nZ.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(sS)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function Q3(e){if(Xa)return new Promise((t,r)=>{const n=Yf(e.querySelectorAll("*")).filter(bX).map(yX),i=lT.begin("searchPseudoElements");B$(),Promise.all(n).then(()=>{i(),yS(),t()}).catch(()=>{i(),yS(),r()})})}var _X={hooks(){return{mutationObserverCallbacks(e){return e.pseudoElementsCallback=Q3,e}}},provides(e){e.pseudoElements2svg=function(t){const{node:r=ir}=t;at.searchPseudoElements&&Q3(r)}}};let J3=!1;var xX={mixout(){return{dom:{unwatch(){B$(),J3=!0}}}},hooks(){return{bootstrap(){H3(hS("mutationObserverCallbacks",{}))},noAuto(){eX()},watch(e){const{observeMutationsRoot:t}=e;J3?yS():H3(hS("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}};const eR=e=>{let t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e.toLowerCase().split(" ").reduce((r,n)=>{const i=n.toLowerCase().split("-"),o=i[0];let a=i.slice(1).join("-");if(o&&a==="h")return r.flipX=!0,r;if(o&&a==="v")return r.flipY=!0,r;if(a=parseFloat(a),isNaN(a))return r;switch(o){case"grow":r.size=r.size+a;break;case"shrink":r.size=r.size-a;break;case"left":r.x=r.x-a;break;case"right":r.x=r.x+a;break;case"up":r.y=r.y-a;break;case"down":r.y=r.y+a;break;case"rotate":r.rotate=r.rotate+a;break}return r},t)};var wX={mixout(){return{parse:{transform:e=>eR(e)}}},hooks(){return{parseNodeAttributes(e,t){const r=t.getAttribute("data-fa-transform");return r&&(e.transform=eR(r)),e}}},provides(e){e.generateAbstractTransformGrouping=function(t){let{main:r,transform:n,containerWidth:i,iconWidth:o}=t;const a={transform:"translate(".concat(i/2," 256)")},s="translate(".concat(n.x*32,", ").concat(n.y*32,") "),c="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),u="rotate(".concat(n.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:Ue({},v.outer),children:[{tag:"g",attributes:Ue({},v.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:Ue(Ue({},r.icon.attributes),v.path)}]}]}}}};const w1={x:0,y:0,width:"100%",height:"100%"};function tR(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 OX(e){return e.tag==="g"?e.children:[e]}var SX={hooks(){return{parseNodeAttributes(e,t){const r=t.getAttribute("data-fa-mask"),n=r?N0(r.split(" ").map(i=>i.trim())):L$();return n.prefix||(n.prefix=il()),e.mask=n,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides(e){e.generateAbstractMask=function(t){let{children:r,attributes:n,main:i,mask:o,maskId:a,transform:s}=t;const{width:c,icon:u}=i,{width:h,icon:p}=o,v=vZ({transform:s,containerWidth:h,iconWidth:c}),b={tag:"rect",attributes:Ue(Ue({},w1),{},{fill:"white"})},_=u.children?{children:u.children.map(tR)}:{},x={tag:"g",attributes:Ue({},v.inner),children:[tR(Ue({tag:u.tag,attributes:Ue(Ue({},u.attributes),v.path)},_))]},w={tag:"g",attributes:Ue({},v.outer),children:[x]},O="mask-".concat(a||Xh()),P="clip-".concat(a||Xh()),C={tag:"mask",attributes:Ue(Ue({},w1),{},{id:O,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[b,w]},T={tag:"defs",children:[{tag:"clipPath",attributes:{id:P},children:OX(p)},C]};return r.push(T,{tag:"rect",attributes:Ue({fill:"currentColor","clip-path":"url(#".concat(P,")"),mask:"url(#".concat(O,")")},w1)}),{children:r,attributes:n}}}},PX={provides(e){let t=!1;nl.matchMedia&&(t=nl.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){const r=[],n={fill:"currentColor"},i={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:Ue(Ue({},n),{},{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=Ue(Ue({},i),{},{attributeName:"opacity"}),a={tag:"circle",attributes:Ue(Ue({},n),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||a.children.push({tag:"animate",attributes:Ue(Ue({},i),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:Ue(Ue({},o),{},{values:"1;0;1;1;0;1;"})}),r.push(a),r.push({tag:"path",attributes:Ue(Ue({},n),{},{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:Ue(Ue({},o),{},{values:"1;0;0;0;0;1;"})}]}),t||r.push({tag:"path",attributes:Ue(Ue({},n),{},{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:Ue(Ue({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},EX={hooks(){return{parseNodeAttributes(e,t){const r=t.getAttribute("data-fa-symbol"),n=r===null?!1:r===""?!0:r;return e.symbol=n,e}}}},CX=[bZ,cX,fX,dX,hX,_X,xX,wX,SX,PX,EX];DZ(CX,{mixoutsTo:_i});_i.noAuto;_i.config;_i.library;_i.dom;const _S=_i.parse;_i.findIconDefinition;_i.toHtml;const TX=_i.icon;_i.layer;_i.text;_i.counter;var O1={exports:{}},S1,rR;function jX(){if(rR)return S1;rR=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return S1=e,S1}var P1,nR;function AX(){if(nR)return P1;nR=1;var e=jX();function t(){}function r(){}return r.resetWarningCache=t,P1=function(){function n(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}}n.isRequired=n;function i(){return n}var o={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return o.PropTypes=o,o},P1}var iR;function kX(){return iR||(iR=1,O1.exports=AX()()),O1.exports}var RX=kX();const H=Nt(RX);function oR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ho(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?oR(Object(r),!0).forEach(function(n){qc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Mg(e){"@babel/helpers - typeof";return Mg=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},Mg(e)}function qc(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function NX(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function MX(e,t){if(e==null)return{};var r=NX(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function xS(e){return LX(e)||IX(e)||DX(e)||$X()}function LX(e){if(Array.isArray(e))return wS(e)}function IX(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 wS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return wS(e,t)}}function wS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function $X(){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 FX(e){var t,r=e.beat,n=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,_=e.border,x=e.listItem,w=e.flip,O=e.size,P=e.rotation,C=e.pull,T=(t={"fa-beat":r,"fa-fade":n,"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":_,"fa-li":x,"fa-flip":w===!0,"fa-flip-horizontal":w==="horizontal"||w==="both","fa-flip-vertical":w==="vertical"||w==="both"},qc(t,"fa-".concat(O),typeof O<"u"&&O!==null),qc(t,"fa-rotate-".concat(P),typeof P<"u"&&P!==null&&P!==0),qc(t,"fa-pull-".concat(C),typeof C<"u"&&C!==null),qc(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 BX(e){return e=e-0,e===e}function z$(e){return BX(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,r){return r?r.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var UX=["style"];function zX(e){return e.charAt(0).toUpperCase()+e.slice(1)}function VX(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,r){var n=r.indexOf(":"),i=z$(r.slice(0,n)),o=r.slice(n+1).trim();return i.startsWith("webkit")?t[zX(i)]=o:t[i]=o,t},{})}function V$(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var n=(t.children||[]).map(function(c){return V$(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=VX(h);break;default:u.indexOf("aria-")===0||u.indexOf("data-")===0?c.attrs[u.toLowerCase()]=h:c.attrs[z$(u)]=h}return c},{attrs:{}}),o=r.style,a=o===void 0?{}:o,s=MX(r,UX);return i.attrs.style=Ho(Ho({},i.attrs.style),a),e.apply(void 0,[t.tag,Ho(Ho({},i.attrs),s)].concat(xS(n)))}var W$=!1;try{W$=!0}catch{}function WX(){if(!W$&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function aR(e){if(e&&Mg(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(_S.icon)return _S.icon(e);if(e===null)return null;if(e&&Mg(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 E1(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?qc({},e,t):{}}var sR={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 r=Ho(Ho({},sR),e),n=r.icon,i=r.mask,o=r.symbol,a=r.className,s=r.title,c=r.titleId,u=r.maskId,h=aR(n),p=E1("classes",[].concat(xS(FX(r)),xS((a||"").split(" ")))),v=E1("transform",typeof r.transform=="string"?_S.transform(r.transform):r.transform),b=E1("mask",aR(i)),_=TX(h,Ho(Ho(Ho(Ho({},p),v),b),{},{symbol:o,title:s,titleId:c,maskId:u}));if(!_)return WX("Could not find icon",h),null;var x=_.abstract,w={ref:t};return Object.keys(r).forEach(function(O){sR.hasOwnProperty(O)||(w[O]=r[O])}),qX(x[0],w)});Ge.displayName="FontAwesomeIcon";Ge.propTypes={beat:H.bool,border:H.bool,beatFade:H.bool,bounce:H.bool,className:H.string,fade:H.bool,flash:H.bool,mask:H.oneOfType([H.object,H.array,H.string]),maskId:H.string,fixedWidth:H.bool,inverse:H.bool,flip:H.oneOf([!0,!1,"horizontal","vertical","both"]),icon:H.oneOfType([H.object,H.array,H.string]),listItem:H.bool,pull:H.oneOf(["right","left"]),pulse:H.bool,rotation:H.oneOf([0,90,180,270]),shake:H.bool,size:H.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:H.bool,spinPulse:H.bool,spinReverse:H.bool,symbol:H.oneOfType([H.bool,H.string]),title:H.string,titleId:H.string,transform:H.oneOfType([H.string,H.object]),swapOpacity:H.bool};var qX=V$.bind(null,Z.createElement);function q$(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=q$(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ze(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=q$(e))&&(n&&(n+=" "),n+=t);return n}var C1={exports:{}};/*!
|
||
Copyright (c) 2018 Jed Watson.
|
||
Licensed under the MIT License (MIT), see
|
||
http://jedwatson.github.io/classnames
|
||
*/var lR;function HX(){return lR||(lR=1,function(e){(function(){var t={}.hasOwnProperty;function r(){for(var n=[],i=0;i<arguments.length;i++){var o=arguments[i];if(o){var a=typeof o;if(a==="string"||a==="number")n.push(o);else if(Array.isArray(o)){if(o.length){var s=r.apply(null,o);s&&n.push(s)}}else if(a==="object"){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){n.push(o.toString());continue}for(var c in o)t.call(o,c)&&o[c]&&n.push(c)}}}return n.join(" ")}e.exports?(r.default=r,e.exports=r):window.classNames=r})()}(C1)),C1.exports}var GX=HX();const mt=Nt(GX);function uR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function KX(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?uR(Object(r),!0).forEach(function(n){YX(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function YX(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,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 ZX(){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 H$(e){document.body.style.paddingRight=e>0?"".concat(e,"px"):null}function XX(){return document.body.clientWidth<window.innerWidth}function QX(){var e=window.getComputedStyle(document.body,null);return parseInt(e&&e.getPropertyValue("padding-right")||0,10)}function JX(){var e=ZX(),t=document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top")[0],r=t?parseInt(t.style.paddingRight||0,10):0;XX()&&H$(r+e)}var eQ;function ct(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:eQ;return t?e.split(" ").map(function(r){return t[r]||r}).join(" "):e}function fl(e,t){var r={};return Object.keys(e).forEach(function(n){t.indexOf(n)===-1&&(r[n]=e[n])}),r}function G$(e,t){for(var r=Array.isArray(t)?t:[t],n=r.length,i,o={};n>0;)n-=1,i=r[n],o[i]=e[i];return o}var cR={};function OS(e){cR[e]||(typeof console<"u"&&console.error(e),cR[e]=!0)}function K$(e,t){return function(n,i,o){n[i]!==null&&typeof n[i]<"u"&&OS('"'.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,[n,i,o].concat(s))}}var tQ=(typeof window>"u"?"undefined":xu(window))==="object"&&window.Element||function(){};function cT(e,t,r){if(!(e[t]instanceof tQ))return new Error("Invalid prop `"+t+"` supplied to `"+r+"`. Expected prop to be an instance of Element. Validation failed.")}var sf=H.oneOfType([H.string,H.func,cT,H.shape({current:H.any})]),kt=H.oneOfType([H.func,H.string,H.shape({$$typeof:H.symbol,render:H.func}),H.arrayOf(H.oneOfType([H.func,H.string,H.shape({$$typeof:H.symbol,render:H.func})]))]),Lg={Fade:150,Collapse:350,Modal:300,Carousel:600,Offcanvas:300},Ig=["in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],Vv={ENTERING:"entering",ENTERED:"entered",EXITING:"exiting",EXITED:"exited"},Ft={esc:27,space:32,enter:13,tab:9,up:38,down:40,home:36,end:35,n:78,p:80},rQ=["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"],fT=!!(typeof window<"u"&&window.document&&window.document.createElement);function nQ(e){return e&&xu(e)==="object"?"current"in e:!1}function Y$(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function SS(e){var t=xu(e);return e!=null&&(t==="object"||t==="function")}function fR(e){var t=xu(e),r=NaN;if(t==="number")return e;if(t==="symbol"||t==="object"&&Y$(e)==="[object Symbol]")return r;if(SS(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=SS(n)?"".concat(n):n}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)?r:+e}function iQ(e){if(!SS(e))return!1;var t=Y$(e);return t==="[object Function]"||t==="[object AsyncFunction]"||t==="[object GeneratorFunction]"||t==="[object Proxy]"}function oQ(e){if(nQ(e))return e.current;if(iQ(e))return e();if(typeof e=="string"&&fT){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 dR(e){return e===null?!1:Array.isArray(e)||fT&&typeof e.length=="number"}function Jh(e,t){var r=oQ(e);return t?dR(r)?r:r===null?[]:[r]:dR(r)?r[0]:r}var aQ=["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 dT(e,t){if(!e||!t)return t;var r=KX({},t);return Object.keys(e).forEach(function(n){r[n]===void 0&&(r[n]=e[n]),Object.keys(e[n]||{}).length>0&&xu(e[n])==="object"&&dT(e[n],r)}),r}var sQ=["className","cssModule","noGutters","tag","widths"];function PS(){return PS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},PS.apply(this,arguments)}function lQ(e,t){if(e==null)return{};var r=uQ(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function uQ(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var cQ=["xs","sm","md","lg","xl","xxl"],jc=H.oneOfType([H.number,H.string]),fQ={tag:kt,noGutters:K$(H.bool,"Please use Bootstrap 5 gutter utility classes. https://getbootstrap.com/docs/5.0/layout/gutters/"),className:H.string,cssModule:H.object,xs:jc,sm:jc,md:jc,lg:jc,xl:jc,xxl:jc,widths:H.array};function Yo(e){var t=e.className,r=e.cssModule,n=e.noGutters,i=e.tag,o=i===void 0?"div":i,a=e.widths,s=a===void 0?cQ:a,c=lQ(e,sQ),u=[];s.forEach(function(p,v){var b=e[p];if(delete c[p],!!b){var _=!v;u.push(_?"row-cols-".concat(b):"row-cols-".concat(p,"-").concat(b))}});var h=ct(mt(t,n?"gx-0":null,"row",u),r);return Z.createElement(o,PS({},c,{className:h}))}Yo.propTypes=fQ;var dQ=["expand","className","cssModule","light","dark","fixed","sticky","color","container","tag","children"];function ES(){return ES=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ES.apply(this,arguments)}function T1(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hQ(e,t){if(e==null)return{};var r=pQ(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function pQ(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var mQ={children:H.node,className:H.string,color:H.string,container:H.oneOfType([H.bool,H.string]),cssModule:H.object,dark:H.bool,expand:H.oneOfType([H.bool,H.string]),fixed:H.string,light:H.bool,role:H.string,sticky:H.string,tag:kt},vQ=function(t){return t===!1?!1:t===!0||t==="xs"?"navbar-expand":"navbar-expand-".concat(t)};function Z$(e){var t,r=e.expand,n=r===void 0?!1:r,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,_=b===void 0?"nav":b,x=e.children,w=hQ(e,dQ),O=ct(mt(i,"navbar",vQ(n),(t={"navbar-light":a,"navbar-dark":s},T1(t,"bg-".concat(h),h),T1(t,"fixed-".concat(c),c),T1(t,"sticky-".concat(u),u),t)),o),P=v&&v===!0?"container":"container-".concat(v);return Z.createElement(_,ES({},w,{className:O}),v?Z.createElement("div",{className:P},x):x)}Z$.propTypes=mQ;var gQ=["className","cssModule","tag"];function CS(){return CS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},CS.apply(this,arguments)}function yQ(e,t){if(e==null)return{};var r=bQ(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function bQ(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var _Q={className:H.string,cssModule:H.object,tag:kt};function X$(e){var t=e.className,r=e.cssModule,n=e.tag,i=n===void 0?"a":n,o=yQ(e,gQ),a=ct(mt(t,"navbar-brand"),r);return Z.createElement(i,CS({},o,{className:a}))}X$.propTypes=_Q;var xQ=["className","cssModule","children","tag"];function TS(){return TS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},TS.apply(this,arguments)}function hR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function wQ(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hR(Object(r),!0).forEach(function(n){OQ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function OQ(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function SQ(e,t){if(e==null)return{};var r=PQ(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function PQ(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var EQ={className:H.string,cssModule:H.object,tag:kt,type:H.string,children:H.node};function Q$(e){var t=e.className,r=e.cssModule,n=e.children,i=e.tag,o=i===void 0?"button":i,a=SQ(e,xQ),s=ct(mt(t,"navbar-toggler"),r);return Z.createElement(o,TS({"aria-label":"Toggle navigation"},wQ({type:"button"},a),{className:s}),n||Z.createElement("span",{className:ct("navbar-toggler-icon",r)}))}Q$.propTypes=EQ;var CQ=["className","cssModule","tabs","pills","vertical","horizontal","justified","fill","navbar","card","tag"];function jS(){return jS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jS.apply(this,arguments)}function TQ(e,t){if(e==null)return{};var r=jQ(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function jQ(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var AQ={card:H.bool,className:H.string,cssModule:H.object,fill:H.bool,horizontal:H.oneOf(["center","end"]),justified:H.bool,navbar:H.bool,pills:H.bool,tabs:H.bool,tag:kt,vertical:H.oneOfType([H.bool,H.string])},kQ=function(t){return t===!1?!1:t===!0||t==="xs"?"flex-column":"flex-".concat(t,"-column")};function hT(e){var t=e.className,r=e.cssModule,n=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,_=TQ(e,CQ),x=ct(mt(t,h?"navbar-nav":"nav",s?"justify-content-".concat(s):!1,kQ(a),{"nav-tabs":n,"card-header-tabs":p&&n,"nav-pills":i,"card-header-pills":p&&i,"nav-justified":c,"nav-fill":u}),r);return Z.createElement(b,jS({},_,{className:x}))}hT.propTypes=AQ;var RQ=["className","cssModule","active","tag"];function AS(){return AS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},AS.apply(this,arguments)}function NQ(e,t){if(e==null)return{};var r=MQ(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function MQ(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var LQ={active:H.bool,className:H.string,cssModule:H.object,tag:kt};function pT(e){var t=e.className,r=e.cssModule,n=e.active,i=e.tag,o=i===void 0?"li":i,a=NQ(e,RQ),s=ct(mt(t,"nav-item",n?"active":!1),r);return Z.createElement(o,AS({},a,{className:s}))}pT.propTypes=LQ;function kS(e){"@babel/helpers - typeof";return kS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kS(e)}var IQ=["className","cssModule","active","tag","innerRef"];function RS(){return RS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},RS.apply(this,arguments)}function DQ(e,t){if(e==null)return{};var r=$Q(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function $Q(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function FQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function BQ(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function UQ(e,t,r){return t&&BQ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function zQ(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&&NS(e,t)}function NS(e,t){return NS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},NS(e,t)}function VQ(e){var t=qQ();return function(){var n=Dg(e),i;if(t){var o=Dg(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return WQ(this,i)}}function WQ(e,t){if(t&&(kS(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return J$(e)}function J$(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qQ(){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(r){return r.__proto__||Object.getPrototypeOf(r)},Dg(e)}var HQ={active:H.bool,className:H.string,cssModule:H.object,disabled:H.bool,href:H.any,innerRef:H.oneOfType([H.object,H.func,H.string]),onClick:H.func,tag:kt},mT=function(e){zQ(r,e);var t=VQ(r);function r(n){var i;return FQ(this,r),i=t.call(this,n),i.onClick=i.onClick.bind(J$(i)),i}return UQ(r,[{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,IQ),v=ct(mt(o,"nav-link",{disabled:p.disabled,active:s}),a);return Z.createElement(u,RS({},p,{ref:h,onClick:this.onClick,className:v}))}}]),r}(Z.Component);mT.propTypes=HQ;var GQ=["className","cssModule","variant","innerRef"];function MS(){return MS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},MS.apply(this,arguments)}function pR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function KQ(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pR(Object(r),!0).forEach(function(n){YQ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function YQ(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZQ(e,t){if(e==null)return{};var r=XQ(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function XQ(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var QQ={active:H.bool,"aria-label":H.string,onClick:H.func,variant:H.oneOf(["white"]),className:H.string,cssModule:H.object,innerRef:H.oneOfType([H.object,H.string,H.func])};function eF(e){var t=e.className;e.cssModule;var r=e.variant,n=e.innerRef,i=ZQ(e,GQ),o=ct(mt(t,"btn-close",r&&"btn-close-".concat(r)));return Z.createElement("button",MS({ref:n,type:"button",className:o},KQ({"aria-label":"close"},i)))}eF.propTypes=QQ;var JQ=["active","aria-label","block","className","close","cssModule","color","outline","size","tag","innerRef"];function LS(){return LS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},LS.apply(this,arguments)}function eJ(e,t){if(e==null)return{};var r=tJ(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function tJ(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var rJ={active:H.bool,"aria-label":H.string,block:H.bool,children:H.node,className:H.string,cssModule:H.object,close:H.bool,color:H.string,disabled:H.bool,innerRef:H.oneOfType([H.object,H.func,H.string]),onClick:H.func,outline:H.bool,size:H.string,tag:kt};function _t(e){var t=I.useCallback(function(P){if(e.disabled){P.preventDefault();return}if(e.onClick)return e.onClick(P)},[e.onClick,e.disabled]),r=e.active,n=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,_=e.innerRef,x=eJ(e,JQ);if(a)return Z.createElement(eF,x);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:r,disabled:e.disabled}),s);return x.href&&b==="button"&&(b="a"),Z.createElement(b,LS({type:b==="button"&&x.onClick?"button":void 0},x,{className:O,ref:_,onClick:t,"aria-label":n}))}_t.propTypes=rJ;var tF=I.createContext(),rF=I.createContext();function mR(e){var t=e.children,r=I.useState(null),n=r[0],i=r[1],o=I.useRef(!1);I.useEffect(function(){return function(){o.current=!0}},[]);var a=I.useCallback(function(s){o.current||i(s)},[]);return I.createElement(tF.Provider,{value:n},I.createElement(rF.Provider,{value:a},t))}var nF=function(t){return Array.isArray(t)?t[0]:t},iF=function(t){if(typeof t=="function"){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return t.apply(void 0,n)}},IS=function(t,r){if(typeof t=="function")return iF(t,r);t!=null&&(t.current=r)},vR=function(t){return t.reduce(function(r,n){var i=n[0],o=n[1];return r[i]=o,r},{})},gR=typeof window<"u"&&window.document&&window.document.createElement?I.useLayoutEffect:I.useEffect,vT=w8();const lu=Nt(vT);var qn="top",Gi="bottom",Ki="right",Hn="left",gT="auto",Qp=[qn,Gi,Ki,Hn],lf="start",ep="end",nJ="clippingParents",oF="viewport",oh="popper",iJ="reference",yR=Qp.reduce(function(e,t){return e.concat([t+"-"+lf,t+"-"+ep])},[]),aF=[].concat(Qp,[gT]).reduce(function(e,t){return e.concat([t,t+"-"+lf,t+"-"+ep])},[]),oJ="beforeRead",aJ="read",sJ="afterRead",lJ="beforeMain",uJ="main",cJ="afterMain",fJ="beforeWrite",dJ="write",hJ="afterWrite",pJ=[oJ,aJ,sJ,lJ,uJ,cJ,fJ,dJ,hJ];function na(e){return e?(e.nodeName||"").toLowerCase():null}function vi(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=vi(e).Element;return e instanceof t||e instanceof Element}function qi(e){var t=vi(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function yT(e){if(typeof ShadowRoot>"u")return!1;var t=vi(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function mJ(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},i=t.attributes[r]||{},o=t.elements[r];!qi(o)||!na(o)||(Object.assign(o.style,n),Object.keys(i).forEach(function(a){var s=i[a];s===!1?o.removeAttribute(a):o.setAttribute(a,s===!0?"":s)}))})}function vJ(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var i=t.elements[n],o=t.attributes[n]||{},a=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=a.reduce(function(c,u){return c[u]="",c},{});!qi(i)||!na(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(c){i.removeAttribute(c)}))})}}const gJ={name:"applyStyles",enabled:!0,phase:"write",fn:mJ,effect:vJ,requires:["computeStyles"]};function Qo(e){return e.split("-")[0]}var pu=Math.max,$g=Math.min,uf=Math.round;function DS(){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 sF(){return!/^((?!chrome|android).)*safari/i.test(DS())}function cf(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),i=1,o=1;t&&qi(e)&&(i=e.offsetWidth>0&&uf(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&uf(n.height)/e.offsetHeight||1);var a=wu(e)?vi(e):window,s=a.visualViewport,c=!sF()&&r,u=(n.left+(c&&s?s.offsetLeft:0))/i,h=(n.top+(c&&s?s.offsetTop:0))/o,p=n.width/i,v=n.height/o;return{width:p,height:v,top:h,right:u+p,bottom:h+v,left:u,x:u,y:h}}function bT(e){var t=cf(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function lF(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&yT(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Wa(e){return vi(e).getComputedStyle(e)}function yJ(e){return["table","td","th"].indexOf(na(e))>=0}function dl(e){return((wu(e)?e.ownerDocument:e.document)||window.document).documentElement}function L0(e){return na(e)==="html"?e:e.assignedSlot||e.parentNode||(yT(e)?e.host:null)||dl(e)}function bR(e){return!qi(e)||Wa(e).position==="fixed"?null:e.offsetParent}function bJ(e){var t=/firefox/i.test(DS()),r=/Trident/i.test(DS());if(r&&qi(e)){var n=Wa(e);if(n.position==="fixed")return null}var i=L0(e);for(yT(i)&&(i=i.host);qi(i)&&["html","body"].indexOf(na(i))<0;){var o=Wa(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 Jp(e){for(var t=vi(e),r=bR(e);r&&yJ(r)&&Wa(r).position==="static";)r=bR(r);return r&&(na(r)==="html"||na(r)==="body"&&Wa(r).position==="static")?t:r||bJ(e)||t}function _T(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Nh(e,t,r){return pu(e,$g(t,r))}function _J(e,t,r){var n=Nh(e,t,r);return n>r?r:n}function uF(){return{top:0,right:0,bottom:0,left:0}}function cF(e){return Object.assign({},uF(),e)}function fF(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var xJ=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,cF(typeof t!="number"?t:fF(t,Qp))};function wJ(e){var t,r=e.state,n=e.name,i=e.options,o=r.elements.arrow,a=r.modifiersData.popperOffsets,s=Qo(r.placement),c=_T(s),u=[Hn,Ki].indexOf(s)>=0,h=u?"height":"width";if(!(!o||!a)){var p=xJ(i.padding,r),v=bT(o),b=c==="y"?qn:Hn,_=c==="y"?Gi:Ki,x=r.rects.reference[h]+r.rects.reference[c]-a[c]-r.rects.popper[h],w=a[c]-r.rects.reference[c],O=Jp(o),P=O?c==="y"?O.clientHeight||0:O.clientWidth||0:0,C=x/2-w/2,T=p[b],A=P-v[h]-p[_],j=P/2-v[h]/2+C,N=Nh(T,j,A),F=c;r.modifiersData[n]=(t={},t[F]=N,t.centerOffset=N-j,t)}}function OJ(e){var t=e.state,r=e.options,n=r.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||lF(t.elements.popper,i)&&(t.elements.arrow=i))}const SJ={name:"arrow",enabled:!0,phase:"main",fn:wJ,effect:OJ,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ff(e){return e.split("-")[1]}var PJ={top:"auto",right:"auto",bottom:"auto",left:"auto"};function EJ(e,t){var r=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:uf(r*i)/i||0,y:uf(n*i)/i||0}}function _R(e){var t,r=e.popper,n=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,_=a.y,x=_===void 0?0:_,w=typeof h=="function"?h({x:b,y:x}):{x:b,y:x};b=w.x,x=w.y;var O=a.hasOwnProperty("x"),P=a.hasOwnProperty("y"),C=Hn,T=qn,A=window;if(u){var j=Jp(r),N="clientHeight",F="clientWidth";if(j===vi(r)&&(j=dl(r),Wa(j).position!=="static"&&s==="absolute"&&(N="scrollHeight",F="scrollWidth")),j=j,i===qn||(i===Hn||i===Ki)&&o===ep){T=Gi;var V=p&&j===A&&A.visualViewport?A.visualViewport.height:j[N];x-=V-n.height,x*=c?1:-1}if(i===Hn||(i===qn||i===Gi)&&o===ep){C=Ki;var B=p&&j===A&&A.visualViewport?A.visualViewport.width:j[F];b-=B-n.width,b*=c?1:-1}}var W=Object.assign({position:s},u&&PJ),q=h===!0?EJ({x:b,y:x},vi(r)):{x:b,y:x};if(b=q.x,x=q.y,c){var J;return Object.assign({},W,(J={},J[T]=P?"0":"",J[C]=O?"0":"",J.transform=(A.devicePixelRatio||1)<=1?"translate("+b+"px, "+x+"px)":"translate3d("+b+"px, "+x+"px, 0)",J))}return Object.assign({},W,(t={},t[T]=P?x+"px":"",t[C]=O?b+"px":"",t.transform="",t))}function CJ(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=n===void 0?!0:n,o=r.adaptive,a=o===void 0?!0:o,s=r.roundOffsets,c=s===void 0?!0:s,u={placement:Qo(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,_R(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,_R(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 TJ={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:CJ,data:{}};var Wv={passive:!0};function jJ(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,o=i===void 0?!0:i,a=n.resize,s=a===void 0?!0:a,c=vi(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(h){h.addEventListener("scroll",r.update,Wv)}),s&&c.addEventListener("resize",r.update,Wv),function(){o&&u.forEach(function(h){h.removeEventListener("scroll",r.update,Wv)}),s&&c.removeEventListener("resize",r.update,Wv)}}const AJ={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:jJ,data:{}};var kJ={left:"right",right:"left",bottom:"top",top:"bottom"};function _g(e){return e.replace(/left|right|bottom|top/g,function(t){return kJ[t]})}var RJ={start:"end",end:"start"};function xR(e){return e.replace(/start|end/g,function(t){return RJ[t]})}function xT(e){var t=vi(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function wT(e){return cf(dl(e)).left+xT(e).scrollLeft}function NJ(e,t){var r=vi(e),n=dl(e),i=r.visualViewport,o=n.clientWidth,a=n.clientHeight,s=0,c=0;if(i){o=i.width,a=i.height;var u=sF();(u||!u&&t==="fixed")&&(s=i.offsetLeft,c=i.offsetTop)}return{width:o,height:a,x:s+wT(e),y:c}}function MJ(e){var t,r=dl(e),n=xT(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=pu(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=pu(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+wT(e),c=-n.scrollTop;return Wa(i||r).direction==="rtl"&&(s+=pu(r.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:c}}function OT(e){var t=Wa(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function dF(e){return["html","body","#document"].indexOf(na(e))>=0?e.ownerDocument.body:qi(e)&&OT(e)?e:dF(L0(e))}function Mh(e,t){var r;t===void 0&&(t=[]);var n=dF(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),o=vi(n),a=i?[o].concat(o.visualViewport||[],OT(n)?n:[]):n,s=t.concat(a);return i?s:s.concat(Mh(L0(a)))}function $S(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function LJ(e,t){var r=cf(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function wR(e,t,r){return t===oF?$S(NJ(e,r)):wu(t)?LJ(t,r):$S(MJ(dl(e)))}function IJ(e){var t=Mh(L0(e)),r=["absolute","fixed"].indexOf(Wa(e).position)>=0,n=r&&qi(e)?Jp(e):e;return wu(n)?t.filter(function(i){return wu(i)&&lF(i,n)&&na(i)!=="body"}):[]}function DJ(e,t,r,n){var i=t==="clippingParents"?IJ(e):[].concat(t),o=[].concat(i,[r]),a=o[0],s=o.reduce(function(c,u){var h=wR(e,u,n);return c.top=pu(h.top,c.top),c.right=$g(h.right,c.right),c.bottom=$g(h.bottom,c.bottom),c.left=pu(h.left,c.left),c},wR(e,a,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function hF(e){var t=e.reference,r=e.element,n=e.placement,i=n?Qo(n):null,o=n?ff(n):null,a=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,c;switch(i){case qn:c={x:a,y:t.y-r.height};break;case Gi:c={x:a,y:t.y+t.height};break;case Ki:c={x:t.x+t.width,y:s};break;case Hn:c={x:t.x-r.width,y:s};break;default:c={x:t.x,y:t.y}}var u=i?_T(i):null;if(u!=null){var h=u==="y"?"height":"width";switch(o){case lf:c[u]=c[u]-(t[h]/2-r[h]/2);break;case ep:c[u]=c[u]+(t[h]/2-r[h]/2);break}}return c}function tp(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=n===void 0?e.placement:n,o=r.strategy,a=o===void 0?e.strategy:o,s=r.boundary,c=s===void 0?nJ:s,u=r.rootBoundary,h=u===void 0?oF:u,p=r.elementContext,v=p===void 0?oh:p,b=r.altBoundary,_=b===void 0?!1:b,x=r.padding,w=x===void 0?0:x,O=cF(typeof w!="number"?w:fF(w,Qp)),P=v===oh?iJ:oh,C=e.rects.popper,T=e.elements[_?P:v],A=DJ(wu(T)?T:T.contextElement||dl(e.elements.popper),c,h,a),j=cf(e.elements.reference),N=hF({reference:j,element:C,strategy:"absolute",placement:i}),F=$S(Object.assign({},C,N)),V=v===oh?F:j,B={top:A.top-V.top+O.top,bottom:V.bottom-A.bottom+O.bottom,left:A.left-V.left+O.left,right:V.right-A.right+O.right},W=e.modifiersData.offset;if(v===oh&&W){var q=W[i];Object.keys(B).forEach(function(J){var Q=[Ki,Gi].indexOf(J)>=0?1:-1,ne=[qn,Gi].indexOf(J)>=0?"y":"x";B[J]+=q[ne]*Q})}return B}function $J(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=r.boundary,o=r.rootBoundary,a=r.padding,s=r.flipVariations,c=r.allowedAutoPlacements,u=c===void 0?aF:c,h=ff(n),p=h?s?yR:yR.filter(function(_){return ff(_)===h}):Qp,v=p.filter(function(_){return u.indexOf(_)>=0});v.length===0&&(v=p);var b=v.reduce(function(_,x){return _[x]=tp(e,{placement:x,boundary:i,rootBoundary:o,padding:a})[Qo(x)],_},{});return Object.keys(b).sort(function(_,x){return b[_]-b[x]})}function FJ(e){if(Qo(e)===gT)return[];var t=_g(e);return[xR(e),t,xR(t)]}function BJ(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,o=i===void 0?!0:i,a=r.altAxis,s=a===void 0?!0:a,c=r.fallbackPlacements,u=r.padding,h=r.boundary,p=r.rootBoundary,v=r.altBoundary,b=r.flipVariations,_=b===void 0?!0:b,x=r.allowedAutoPlacements,w=t.options.placement,O=Qo(w),P=O===w,C=c||(P||!_?[_g(w)]:FJ(w)),T=[w].concat(C).reduce(function(le,ce){return le.concat(Qo(ce)===gT?$J(t,{placement:ce,boundary:h,rootBoundary:p,padding:u,flipVariations:_,allowedAutoPlacements:x}):ce)},[]),A=t.rects.reference,j=t.rects.popper,N=new Map,F=!0,V=T[0],B=0;B<T.length;B++){var W=T[B],q=Qo(W),J=ff(W)===lf,Q=[qn,Gi].indexOf(q)>=0,ne=Q?"width":"height",ae=tp(t,{placement:W,boundary:h,rootBoundary:p,altBoundary:v,padding:u}),se=Q?J?Ki:Hn:J?Gi:qn;A[ne]>j[ne]&&(se=_g(se));var oe=_g(se),K=[];if(o&&K.push(ae[q]<=0),s&&K.push(ae[se]<=0,ae[oe]<=0),K.every(function(le){return le})){V=W,F=!1;break}N.set(W,K)}if(F)for(var G=_?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($){return $})});if(de)return V=de,"break"},re=G;re>0;re--){var X=z(re);if(X==="break")break}t.placement!==V&&(t.modifiersData[n]._skip=!0,t.placement=V,t.reset=!0)}}const UJ={name:"flip",enabled:!0,phase:"main",fn:BJ,requiresIfExists:["offset"],data:{_skip:!1}};function OR(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function SR(e){return[qn,Ki,Gi,Hn].some(function(t){return e[t]>=0})}function zJ(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=tp(t,{elementContext:"reference"}),s=tp(t,{altBoundary:!0}),c=OR(a,n),u=OR(s,i,o),h=SR(c),p=SR(u);t.modifiersData[r]={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 VJ={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:zJ};function WJ(e,t,r){var n=Qo(e),i=[Hn,qn].indexOf(n)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[Hn,Ki].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}function qJ(e){var t=e.state,r=e.options,n=e.name,i=r.offset,o=i===void 0?[0,0]:i,a=aF.reduce(function(h,p){return h[p]=WJ(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[n]=a}const HJ={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:qJ};function GJ(e){var t=e.state,r=e.name;t.modifiersData[r]=hF({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const KJ={name:"popperOffsets",enabled:!0,phase:"read",fn:GJ,data:{}};function YJ(e){return e==="x"?"y":"x"}function ZJ(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,o=i===void 0?!0:i,a=r.altAxis,s=a===void 0?!1:a,c=r.boundary,u=r.rootBoundary,h=r.altBoundary,p=r.padding,v=r.tether,b=v===void 0?!0:v,_=r.tetherOffset,x=_===void 0?0:_,w=tp(t,{boundary:c,rootBoundary:u,padding:p,altBoundary:h}),O=Qo(t.placement),P=ff(t.placement),C=!P,T=_T(O),A=YJ(T),j=t.modifiersData.popperOffsets,N=t.rects.reference,F=t.rects.popper,V=typeof x=="function"?x(Object.assign({},t.rects,{placement:t.placement})):x,B=typeof V=="number"?{mainAxis:V,altAxis:V}:Object.assign({mainAxis:0,altAxis:0},V),W=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,q={x:0,y:0};if(j){if(o){var J,Q=T==="y"?qn:Hn,ne=T==="y"?Gi:Ki,ae=T==="y"?"height":"width",se=j[T],oe=se+w[Q],K=se-w[ne],G=b?-F[ae]/2:0,z=P===lf?N[ae]:F[ae],re=P===lf?-F[ae]:-N[ae],X=t.elements.arrow,le=b&&X?bT(X):{width:0,height:0},ce=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:uF(),de=ce[Q],be=ce[ne],M=Nh(0,N[ae],le[ae]),$=C?N[ae]/2-G-M-de-B.mainAxis:z-M-de-B.mainAxis,Y=C?-N[ae]/2+G+M+be+B.mainAxis:re+M+be+B.mainAxis,ue=t.elements.arrow&&Jp(t.elements.arrow),ie=ue?T==="y"?ue.clientTop||0:ue.clientLeft||0:0,he=(J=W==null?void 0:W[T])!=null?J:0,Se=se+$-he-ie,Fe=se+Y-he,ge=Nh(b?$g(oe,Se):oe,se,b?pu(K,Fe):K);j[T]=ge,q[T]=ge-se}if(s){var Ce,je=T==="x"?qn:Hn,Me=T==="x"?Gi:Ki,He=j[A],Be=A==="y"?"height":"width",qe=He+w[je],ye=He-w[Me],we=[qn,Hn].indexOf(O)!==-1,Ae=(Ce=W==null?void 0:W[A])!=null?Ce:0,ke=we?qe:He-N[Be]-F[Be]-Ae+B.altAxis,De=we?He+N[Be]+F[Be]-Ae-B.altAxis:ye,Ke=b&&we?_J(ke,He,De):Nh(b?ke:qe,He,b?De:ye);j[A]=Ke,q[A]=Ke-He}t.modifiersData[n]=q}}const XJ={name:"preventOverflow",enabled:!0,phase:"main",fn:ZJ,requiresIfExists:["offset"]};function QJ(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function JJ(e){return e===vi(e)||!qi(e)?xT(e):QJ(e)}function eee(e){var t=e.getBoundingClientRect(),r=uf(t.width)/e.offsetWidth||1,n=uf(t.height)/e.offsetHeight||1;return r!==1||n!==1}function tee(e,t,r){r===void 0&&(r=!1);var n=qi(t),i=qi(t)&&eee(t),o=dl(t),a=cf(e,i,r),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!r)&&((na(t)!=="body"||OT(o))&&(s=JJ(t)),qi(t)?(c=cf(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=wT(o))),{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function ree(e){var t=new Map,r=new Set,n=[];e.forEach(function(o){t.set(o.name,o)});function i(o){r.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!r.has(s)){var c=t.get(s);c&&i(c)}}),n.push(o)}return e.forEach(function(o){r.has(o.name)||i(o)}),n}function nee(e){var t=ree(e);return pJ.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function iee(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function oee(e){var t=e.reduce(function(r,n){var i=r[n.name];return r[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var PR={placement:"bottom",modifiers:[],strategy:"absolute"};function ER(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function aee(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,i=t.defaultOptions,o=i===void 0?PR:i;return function(s,c,u){u===void 0&&(u=o);var h={placement:"bottom",orderedModifiers:[],options:Object.assign({},PR,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;x(),h.options=Object.assign({},o,h.options,P),h.scrollParents={reference:wu(s)?Mh(s):s.contextElement?Mh(s.contextElement):[],popper:Mh(c)};var C=nee(oee([].concat(n,h.options.modifiers)));return h.orderedModifiers=C.filter(function(T){return T.enabled}),_(),b.update()},forceUpdate:function(){if(!v){var O=h.elements,P=O.reference,C=O.popper;if(ER(P,C)){h.rects={reference:tee(P,Jp(C),h.options.strategy==="fixed"),popper:bT(C)},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,F=N===void 0?{}:N,V=A.name;typeof j=="function"&&(h=j({state:h,options:F,name:V,instance:b})||h)}}}},update:iee(function(){return new Promise(function(w){b.forceUpdate(),w(h)})}),destroy:function(){x(),v=!0}};if(!ER(s,c))return b;b.setOptions(u).then(function(w){!v&&u.onFirstUpdate&&u.onFirstUpdate(w)});function _(){h.orderedModifiers.forEach(function(w){var O=w.name,P=w.options,C=P===void 0?{}:P,T=w.effect;if(typeof T=="function"){var A=T({state:h,name:O,instance:b,options:C}),j=function(){};p.push(A||j)}})}function x(){p.forEach(function(w){return w()}),p=[]}return b}}var see=[AJ,KJ,TJ,gJ,HJ,UJ,XJ,SJ,VJ],lee=aee({defaultModifiers:see}),j1,CR;function uee(){if(CR)return j1;CR=1;var e=typeof Element<"u",t=typeof Map=="function",r=typeof Set=="function",n=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(r&&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(n&&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 j1=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}},j1}var cee=uee();const fee=Nt(cee);var dee=[],hee=function(t,r,n){n===void 0&&(n={});var i=I.useRef(null),o={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||dee},a=I.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=a[0],c=a[1],u=I.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(b){var _=b.state,x=Object.keys(_.elements);vT.flushSync(function(){c({styles:vR(x.map(function(w){return[w,_.styles[w]||{}]})),attributes:vR(x.map(function(w){return[w,_.attributes[w]]}))})})},requires:["computeStyles"]}},[]),h=I.useMemo(function(){var v={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[u,{name:"applyStyles",enabled:!1}])};return fee(i.current,v)?i.current||v:(i.current=v,v)},[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,u]),p=I.useRef();return gR(function(){p.current&&p.current.setOptions(h)},[h]),gR(function(){if(!(t==null||r==null)){var v=n.createPopper||lee,b=v(t,r,h);return p.current=b,function(){b.destroy(),p.current=null}}},[t,r,n.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}},pee=function(){},mee=function(){return Promise.resolve(null)},vee=[];function pF(e){var t=e.placement,r=t===void 0?"bottom":t,n=e.strategy,i=n===void 0?"absolute":n,o=e.modifiers,a=o===void 0?vee:o,s=e.referenceElement,c=e.onFirstUpdate,u=e.innerRef,h=e.children,p=I.useContext(tF),v=I.useState(null),b=v[0],_=v[1],x=I.useState(null),w=x[0],O=x[1];I.useEffect(function(){IS(u,b)},[u,b]);var P=I.useMemo(function(){return{placement:r,strategy:i,onFirstUpdate:c,modifiers:[].concat(a,[{name:"arrow",enabled:w!=null,options:{element:w}}])}},[r,i,c,a,w]),C=hee(s||p,b,P),T=C.state,A=C.styles,j=C.forceUpdate,N=C.update,F=I.useMemo(function(){return{ref:_,style:A.popper,placement:T?T.placement:r,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||pee,update:N||mee}},[_,O,r,T,A,N,j]);return nF(h)(F)}var A1,TR;function gee(){if(TR)return A1;TR=1;var e=function(){};return A1=e,A1}var yee=gee();const bee=Nt(yee);function _ee(e){var t=e.children,r=e.innerRef,n=I.useContext(rF),i=I.useCallback(function(o){IS(r,o),iF(n,o)},[r,n]);return I.useEffect(function(){return function(){return IS(r,null)}},[]),I.useEffect(function(){bee(!!n,"`Reference` should not be used outside of a `Manager` component.")},[n]),nF(t)({ref:i})}var rp=Z.createContext({}),mF=Z.createContext({});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 xee=["className","cssModule","direction","isOpen","group","size","nav","setActiveFromChild","active","tag","menuRole"];function BS(){return BS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},BS.apply(this,arguments)}function Fs(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wee(e,t){if(e==null)return{};var r=Oee(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Oee(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function See(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pee(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Eee(e,t,r){return t&&Pee(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Cee(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(n,i){return n.__proto__=i,n},US(e,t)}function Tee(e){var t=Aee();return function(){var n=Fg(e),i;if(t){var o=Fg(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return jee(this,i)}}function jee(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 Us(e)}function Us(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Aee(){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(r){return r.__proto__||Object.getPrototypeOf(r)},Fg(e)}var kee={a11y:H.bool,disabled:H.bool,direction:H.oneOf(["up","down","start","end","left","right"]),group:H.bool,isOpen:H.bool,nav:H.bool,active:H.bool,size:H.string,tag:kt,toggle:H.func,children:H.node,className:H.string,cssModule:H.object,dropup:H.bool,inNavbar:H.bool,setActiveFromChild:H.bool,menuRole:H.oneOf(["listbox","menu"])},Ree={a11y:!0,isOpen:!1,direction:"down",nav:!1,active:!1,inNavbar:!1,setActiveFromChild:!1},Nee=[Ft.space,Ft.enter,Ft.up,Ft.down,Ft.end,Ft.home],hl=function(e){Cee(r,e);var t=Tee(r);function r(n){var i;return See(this,r),i=t.call(this,n),i.addEvents=i.addEvents.bind(Us(i)),i.handleDocumentClick=i.handleDocumentClick.bind(Us(i)),i.handleKeyDown=i.handleKeyDown.bind(Us(i)),i.removeEvents=i.removeEvents.bind(Us(i)),i.toggle=i.toggle.bind(Us(i)),i.handleMenuRef=i.handleMenuRef.bind(Us(i)),i.handleToggleRef=i.handleToggleRef.bind(Us(i)),i.containerRef=Z.createRef(),i.menuRef=Z.createRef(),i.toggleRef=Z.createRef(),i}return Eee(r,[{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!==Ft.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===Ft.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=Ft.tab===i.which;if(!(/input|textarea/i.test(i.target.tagName)||c&&!this.props.a11y||c&&!(a||s))&&((Nee.indexOf(i.which)!==-1||i.which>=48&&i.which<=90)&&i.preventDefault(),!this.props.disabled)){if(s)if([Ft.space,Ft.enter,Ft.up,Ft.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===Ft.esc&&this.toggle(i);if(this.props.isOpen&&a){if([Ft.tab,Ft.esc].indexOf(i.which)>-1)this.toggle(i),this.getMenuCtrl().focus();else if([Ft.space,Ft.enter].indexOf(i.which)>-1)i.target.click(),this.getMenuCtrl().focus();else if([Ft.down,Ft.up].indexOf(i.which)>-1||[Ft.n,Ft.p].indexOf(i.which)>-1&&i.ctrlKey){var h=this.getMenuItems(),p=h.indexOf(i.target);Ft.up===i.which||Ft.p===i.which&&i.ctrlKey?p=p!==0?p-1:h.length-1:(Ft.down===i.which||Ft.n===i.which&&i.ctrlKey)&&(p=p===h.length-1?0:p+1),h[p].focus()}else if(Ft.end===i.which){var v=this.getMenuItems();v[v.length-1].focus()}else if(Ft.home===i.which){var b=this.getMenuItems();b[0].focus()}else if(i.which>=48&&i.which<=90)for(var _=this.getMenuItems(),x=String.fromCharCode(i.which).toLowerCase(),w=0;w<_.length;w+=1){var O=_[w].textContent&&_[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,_=a.setActiveFromChild,x=a.active,w=a.tag;a.menuRole;var O=wee(a,xee),P=w||(b?"li":"div"),C=!1;_&&Z.Children.map(this.props.children[1].props.children,function(A){A&&A.props.active&&(C=!0)});var T=ct(mt(s,b&&x?"active":!1,_&&C?"active":!1,(i={"btn-group":p},Fs(i,"btn-group-".concat(v),!!v),Fs(i,"dropdown",!p),Fs(i,"dropup",u==="up"),Fs(i,"dropstart",u==="start"||u==="left"),Fs(i,"dropend",u==="end"||u==="right"),Fs(i,"show",h),Fs(i,"nav-item",b),i)),c);return this.context.insideInputGroup?Z.createElement(rp.Provider,{value:this.getContextValue()},Z.createElement(mR,null,Z.Children.map(this.props.children,function(A){return Z.cloneElement(A,{onKeyDown:o.handleKeyDown})}))):Z.createElement(rp.Provider,{value:this.getContextValue()},Z.createElement(mR,null,Z.createElement(P,BS({},O,Fs({},typeof P=="string"?"ref":"innerRef",this.containerRef),{onKeyDown:this.handleKeyDown,className:T}))))}}]),r}(Z.Component);hl.propTypes=kee;hl.defaultProps=Ree;hl.contextType=mF;function zS(e){"@babel/helpers - typeof";return zS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zS(e)}var Mee=["className","cssModule","divider","tag","header","active","text"];function VS(){return VS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},VS.apply(this,arguments)}function Lee(e,t){if(e==null)return{};var r=Iee(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Iee(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function Dee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $ee(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Fee(e,t,r){return t&&$ee(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Bee(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&&WS(e,t)}function WS(e,t){return WS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},WS(e,t)}function Uee(e){var t=Vee();return function(){var n=Bg(e),i;if(t){var o=Bg(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return zee(this,i)}}function zee(e,t){if(t&&(zS(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qS(e)}function qS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vee(){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(r){return r.__proto__||Object.getPrototypeOf(r)},Bg(e)}var Wee={children:H.node,active:H.bool,disabled:H.bool,divider:H.bool,tag:kt,header:H.bool,onClick:H.func,className:H.string,cssModule:H.object,toggle:H.bool,text:H.bool},Ye=function(e){Bee(r,e);var t=Uee(r);function r(n){var i;return Dee(this,r),i=t.call(this,n),i.onClick=i.onClick.bind(qS(i)),i.getTabIndex=i.getTabIndex.bind(qS(i)),i}return Fee(r,[{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,_=a.text,x=Lee(a,Mee),w=ct(mt(s,{disabled:x.disabled,"dropdown-item":!u&&!v&&!_,active:b,"dropdown-header":v,"dropdown-divider":u,"dropdown-item-text":_}),c);return p==="button"&&(v?p="h6":u?p="div":x.href?p="a":_&&(p="span")),Z.createElement(p,VS({type:p==="button"&&(x.onClick||this.props.toggle)?"button":void 0},x,{tabIndex:i,role:o,className:w,onClick:this.onClick}))}}]),r}(Z.Component);Ye.propTypes=Wee;Ye.contextType=rp;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 qee=["className","cssModule","dark","end","right","tag","flip","modifiers","persist","strategy","container","updateOnSelect"];function Ug(){return Ug=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ug.apply(this,arguments)}function jR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function k1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jR(Object(r),!0).forEach(function(n){Hee(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Hee(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Gee(e){return Xee(e)||Zee(e)||Yee(e)||Kee()}function Kee(){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 Yee(e,t){if(e){if(typeof e=="string")return GS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return GS(e,t)}}function Zee(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Xee(e){if(Array.isArray(e))return GS(e)}function GS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Qee(e,t){if(e==null)return{};var r=Jee(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Jee(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function ete(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tte(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function rte(e,t,r){return t&&tte(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function nte(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(n,i){return n.__proto__=i,n},KS(e,t)}function ite(e){var t=ste();return function(){var n=zg(e),i;if(t){var o=zg(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return ote(this,i)}}function ote(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 ate(e)}function ate(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ste(){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 zg(e){return zg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},zg(e)}var lte={tag:kt,children:H.node.isRequired,dark:H.bool,end:H.bool,flip:H.bool,modifiers:H.array,className:H.string,cssModule:H.object,style:H.object,persist:H.bool,strategy:H.string,container:sf,updateOnSelect:H.bool,right:K$(H.bool,'Please use "end" instead.')},ute={up:"top",left:"left",right:"right",start:"left",end:"right",down:"bottom"},pl=function(e){nte(r,e);var t=ite(r);function r(){return ete(this,r),t.apply(this,arguments)}return rte(r,[{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,_=b===void 0?!0:b,x=o.modifiers,w=x===void 0?[]:x,O=o.persist,P=o.strategy,C=o.container,T=o.updateOnSelect,A=Qee(o,qee),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 F=ute[this.context.direction]||"bottom",V=u||h?"end":"start",B="".concat(F,"-").concat(V),W=[].concat(Gee(w),[{name:"flip",enabled:!!_}]),q={};O&&(q.display="block",q.visibility=this.context.isOpen?"visible":"hidden");var J=Z.createElement(pF,{placement:B,modifiers:W,strategy:P},function(ne){var ae=ne.ref,se=ne.style,oe=ne.placement,K=ne.update,G=k1(k1(k1({},i.props.style),q),se),z=function(X){ae(X);var le=i.context.onMenuRef;le&&le(X)};return Z.createElement(N,Ug({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 C?lu.createPortal(J,Jh(C)):J}var Q=this.context.onMenuRef;return Z.createElement(N,Ug({tabIndex:"-1",role:this.getRole()},A,{ref:Q,"aria-hidden":!this.context.isOpen,className:j,"data-popper-placement":A.placement,"data-bs-popper":"static"}))}}]),r}(Z.Component);pl.propTypes=lte;pl.contextType=rp;function YS(e){"@babel/helpers - typeof";return YS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},YS(e)}var cte=["className","color","cssModule","caret","split","nav","tag","innerRef"];function ZS(){return ZS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ZS.apply(this,arguments)}function fte(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dte(e,t){if(e==null)return{};var r=hte(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function hte(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function pte(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mte(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function vte(e,t,r){return t&&mte(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function gte(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&&XS(e,t)}function XS(e,t){return XS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},XS(e,t)}function yte(e){var t=_te();return function(){var n=Vg(e),i;if(t){var o=Vg(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return bte(this,i)}}function bte(e,t){if(t&&(YS(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vF(e)}function vF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _te(){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(r){return r.__proto__||Object.getPrototypeOf(r)},Vg(e)}var xte={caret:H.bool,color:H.string,children:H.node,className:H.string,cssModule:H.object,disabled:H.bool,onClick:H.func,"aria-haspopup":H.bool,split:H.bool,tag:kt,nav:H.bool,innerRef:H.oneOfType([H.object,H.string,H.func])},wte={color:"secondary","aria-haspopup":!0},Qa=function(e){gte(r,e);var t=yte(r);function r(n){var i;return pte(this,r),i=t.call(this,n),i.onClick=i.onClick.bind(vF(i)),i}return vte(r,[{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,_=dte(o,cte),x=_["aria-label"]||"Toggle Dropdown",w=ct(mt(a,{"dropdown-toggle":u||h,"dropdown-toggle-split":h,"nav-link":p}),c),O=typeof _.children<"u"?_.children:Z.createElement("span",{className:"visually-hidden"},x),P;p&&!v?(P="a",_.href="#"):v?P=v:(P=_t,_.color=s,_.cssModule=c);var C=function(A){var j=A.ref,N=function(V){j(V);var B=i.context.onToggleRef;B&&B(V)};return Z.createElement(P,ZS({},_,fte({},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,C({ref:this.context.onToggleRef})):Z.createElement(_ee,{innerRef:b},C)}}]),r}(Z.Component);Qa.propTypes=xte;Qa.defaultProps=wte;Qa.contextType=rp;function Ote(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function QS(e,t){return QS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},QS(e,t)}function Ste(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,QS(e,t)}const AR={disabled:!1},gF=Z.createContext(null);var Pte=function(t){return t.scrollTop},xh="unmounted",Ql="exited",Jl="entering",Uc="entered",JS="exiting",Kn=function(e){Ste(t,e);function t(n,i){var o;o=e.call(this,n,i)||this;var a=i,s=a&&!a.isMounting?n.enter:n.appear,c;return o.appearStatus=null,n.in?s?(c=Ql,o.appearStatus=Jl):c=Uc:n.unmountOnExit||n.mountOnEnter?c=xh:c=Ql,o.state={status:c},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===xh?{status:Ql}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(i){var o=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==Jl&&a!==Uc&&(o=Jl):(a===Jl||a===Uc)&&(o=JS)}this.updateStatus(!1,o)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.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}},r.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:lu.findDOMNode(this);a&&Pte(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ql&&this.setState({status:xh})},r.performEnter=function(i){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:i,c=this.props.nodeRef?[s]:[lu.findDOMNode(this),s],u=c[0],h=c[1],p=this.getTimeouts(),v=s?p.appear:p.enter;if(!i&&!a||AR.disabled){this.safeSetState({status:Uc},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:Uc},function(){o.props.onEntered(u,h)})})})},r.performExit=function(){var i=this,o=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:lu.findDOMNode(this);if(!o||AR.disabled){this.safeSetState({status:Ql},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:JS},function(){i.props.onExiting(s),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:Ql},function(){i.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},r.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},r.onTransitionEnd=function(i,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:lu.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)},r.render=function(){var i=this.state.status;if(i===xh)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=Ote(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Z.createElement(gF.Provider,{value:null},typeof a=="function"?a(i,s):Z.cloneElement(Z.Children.only(a),s))},t}(Z.Component);Kn.contextType=gF;Kn.propTypes={};function Ac(){}Kn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ac,onEntering:Ac,onEntered:Ac,onExit:Ac,onExiting:Ac,onExited:Ac};Kn.UNMOUNTED=xh;Kn.EXITED=Ql;Kn.ENTERING=Jl;Kn.ENTERED=Uc;Kn.EXITING=JS;var Ete=["tag","baseClass","baseClassActive","className","cssModule","children","innerRef"];function Wg(){return Wg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Wg.apply(this,arguments)}function Cte(e,t){if(e==null)return{};var r=Tte(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Tte(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function kR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function np(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kR(Object(r),!0).forEach(function(n){jte(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jte(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ate=np(np({},Kn.propTypes),{},{children:H.oneOfType([H.arrayOf(H.node),H.node]),tag:kt,baseClass:H.string,baseClassActive:H.string,className:H.string,cssModule:H.object,innerRef:H.oneOfType([H.object,H.string,H.func])}),RR=np(np({},Kn.defaultProps),{},{timeout:Lg.Fade,appear:!0,enter:!0,exit:!0,in:!0});function Vn(e){var t=I.useRef(null),r=dT(RR,e),n=r.tag,i=n===void 0?"div":n,o=r.baseClass,a=o===void 0?"fade":o,s=r.baseClassActive,c=s===void 0?"show":s,u=r.className,h=r.cssModule,p=r.children,v=r.innerRef,b=v===void 0?t:v,_=Cte(r,Ete),x=G$(np({defaultProps:RR},_),Ig),w=fl(_,Ig);return Z.createElement(Kn,Wg({nodeRef:b},x),function(O){var P=O==="entered",C=ct(mt(u,a,P&&c),h);return Z.createElement(i,Wg({className:C},w,{ref:b}),p)})}Vn.propTypes=Ate;function eP(e){"@babel/helpers - typeof";return eP=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},eP(e)}var kte=["tag","horizontal","isOpen","className","navbar","cssModule","children","innerRef"],kc;function qg(){return qg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qg.apply(this,arguments)}function Rte(e,t){if(e==null)return{};var r=Nte(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Nte(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function Mte(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lte(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ite(e,t,r){return t&&Lte(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&&tP(e,t)}function tP(e,t){return tP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},tP(e,t)}function $te(e){var t=Bte();return function(){var n=Hg(e),i;if(t){var o=Hg(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return Fte(this,i)}}function Fte(e,t){if(t&&(eP(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return yF(e)}function yF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Bte(){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 Hg(e){return Hg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Hg(e)}function NR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function df(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?NR(Object(r),!0).forEach(function(n){Hc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):NR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Hc(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ute=df(df({},Kn.propTypes),{},{horizontal:H.bool,isOpen:H.bool,children:H.oneOfType([H.arrayOf(H.node),H.node]),tag:kt,className:H.node,navbar:H.bool,cssModule:H.object,innerRef:H.shape({current:H.object})}),zte=df(df({},Kn.defaultProps),{},{horizontal:!1,isOpen:!1,appear:!1,enter:!0,exit:!0,tag:"div",timeout:Lg.Collapse}),Vte=(kc={},Hc(kc,Vv.ENTERING,"collapsing"),Hc(kc,Vv.ENTERED,"collapse show"),Hc(kc,Vv.EXITING,"collapsing"),Hc(kc,Vv.EXITED,"collapse"),kc);function Wte(e){return Vte[e]||"collapse"}var ST=function(e){Dte(r,e);var t=$te(r);function r(n){var i;return Mte(this,r),i=t.call(this,n),i.state={dimension:null},i.nodeRef=n.innerRef||Z.createRef(),["onEntering","onEntered","onExit","onExiting","onExited"].forEach(function(o){i[o]=i[o].bind(yF(i))}),i}return Ite(r,[{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=Rte(o,kte),_=this.state.dimension,x=G$(b,Ig),w=fl(b,Ig);return Z.createElement(Kn,qg({},x,{in:c,nodeRef:this.nodeRef,onEntering:this.onEntering,onEntered:this.onEntered,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),function(O){var P=Wte(O),C=ct(mt(u,s&&"collapse-horizontal",P,h&&"navbar-collapse"),p),T=_===null?null:Hc({},s?"width":"height",_);return Z.createElement(a,qg({},w,{style:df(df({},w.style),T),className:C,ref:i.nodeRef}),v)})}}]),r}(I.Component);ST.propTypes=Ute;ST.defaultProps=zte;var qte=["className","cssModule","color","body","inverse","outline","tag","innerRef"];function rP(){return rP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},rP.apply(this,arguments)}function Hte(e,t){if(e==null)return{};var r=Gte(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Gte(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var Kte={body:H.bool,className:H.string,color:H.string,cssModule:H.object,innerRef:H.oneOfType([H.object,H.string,H.func]),inverse:H.bool,outline:H.bool,tag:kt};function xi(e){var t=e.className,r=e.cssModule,n=e.color,i=e.body,o=e.inverse,a=e.outline,s=e.tag,c=s===void 0?"div":s,u=e.innerRef,h=Hte(e,qte),p=ct(mt(t,"card",o?"text-white":!1,i?"card-body":!1,n?"".concat(a?"border":"bg","-").concat(n):!1),r);return Z.createElement(c,rP({},h,{className:p,ref:u}))}xi.propTypes=Kte;var Yte=["className","cssModule","innerRef","tag"];function nP(){return nP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},nP.apply(this,arguments)}function Zte(e,t){if(e==null)return{};var r=Xte(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Xte(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var Qte={className:H.string,cssModule:H.object,innerRef:H.oneOfType([H.object,H.string,H.func]),tag:kt};function em(e){var t=e.className,r=e.cssModule,n=e.innerRef,i=e.tag,o=i===void 0?"div":i,a=Zte(e,Yte),s=ct(mt(t,"card-body"),r);return Z.createElement(o,nP({},a,{className:s,ref:n}))}em.propTypes=Qte;var Jte=["className","cssModule","tag"];function iP(){return iP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},iP.apply(this,arguments)}function ere(e,t){if(e==null)return{};var r=tre(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function tre(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var rre={className:H.string,cssModule:H.object,tag:kt};function bF(e){var t=e.className,r=e.cssModule,n=e.tag,i=n===void 0?"div":n,o=ere(e,Jte),a=ct(mt(t,"card-footer"),r);return Z.createElement(i,iP({},o,{className:a}))}bF.propTypes=rre;var nre=["className","cssModule","tag"];function oP(){return oP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},oP.apply(this,arguments)}function ire(e,t){if(e==null)return{};var r=ore(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ore(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var are={className:H.string,cssModule:H.object,tag:kt};function tm(e){var t=e.className,r=e.cssModule,n=e.tag,i=n===void 0?"div":n,o=ire(e,nre),a=ct(mt(t,"card-header"),r);return Z.createElement(i,oP({},o,{className:a}))}tm.propTypes=are;var sre=["className","cssModule","tag"];function aP(){return aP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},aP.apply(this,arguments)}function lre(e,t){if(e==null)return{};var r=ure(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ure(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var cre={className:H.string,cssModule:H.object,tag:kt};function _F(e){var t=e.className,r=e.cssModule,n=e.tag,i=n===void 0?"p":n,o=lre(e,sre),a=ct(mt(t,"card-text"),r);return Z.createElement(i,aP({},o,{className:a}))}_F.propTypes=cre;var fre=["className","cssModule","tag"];function sP(){return sP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},sP.apply(this,arguments)}function dre(e,t){if(e==null)return{};var r=hre(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function hre(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var pre={className:H.string,cssModule:H.object,tag:kt};function xF(e){var t=e.className,r=e.cssModule,n=e.tag,i=n===void 0?"div":n,o=dre(e,fre),a=ct(mt(t,"card-title"),r);return Z.createElement(i,sP({},o,{className:a}))}xF.propTypes=pre;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)}var mre=["cssModule","children","isOpen","flip","target","offset","fallbackPlacements","placementPrefix","arrowClassName","hideArrow","popperClassName","tag","container","modifiers","strategy","boundariesElement","onClosed","fade","transition","placement"];function uP(){return uP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},uP.apply(this,arguments)}function MR(e){return bre(e)||yre(e)||gre(e)||vre()}function vre(){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 gre(e,t){if(e){if(typeof e=="string")return cP(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return cP(e,t)}}function yre(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function bre(e){if(Array.isArray(e))return cP(e)}function cP(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _re(e,t){if(e==null)return{};var r=xre(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function xre(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function wre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function LR(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ore(e,t,r){return t&&LR(e.prototype,t),r&&LR(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Sre(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&&fP(e,t)}function fP(e,t){return fP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},fP(e,t)}function Pre(e){var t=Cre();return function(){var n=Gg(e),i;if(t){var o=Gg(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return Ere(this,i)}}function Ere(e,t){if(t&&(lP(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wh(e)}function wh(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Cre(){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(r){return r.__proto__||Object.getPrototypeOf(r)},Gg(e)}function IR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?IR(Object(r),!0).forEach(function(n){Tre(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):IR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Tre(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jre(){}var Are={children:H.oneOfType([H.node,H.func]).isRequired,popperClassName:H.string,placement:H.string,placementPrefix:H.string,arrowClassName:H.string,hideArrow:H.bool,tag:kt,isOpen:H.bool,cssModule:H.object,offset:H.arrayOf(H.number),fallbackPlacements:H.array,flip:H.bool,container:sf,target:sf.isRequired,modifiers:H.array,strategy:H.string,boundariesElement:H.oneOfType([H.string,cT]),onClosed:H.func,fade:H.bool,transition:H.shape(Vn.propTypes)},kre={boundariesElement:"scrollParent",placement:"auto",hideArrow:!1,isOpen:!1,offset:[0,0],flip:!0,container:"body",modifiers:[],onClosed:jre,fade:!0,transition:xg({},Vn.defaultProps)},PT=function(e){Sre(r,e);var t=Pre(r);function r(n){var i;return wre(this,r),i=t.call(this,n),i.setTargetNode=i.setTargetNode.bind(wh(i)),i.getTargetNode=i.getTargetNode.bind(wh(i)),i.getRef=i.getRef.bind(wh(i)),i.onClosed=i.onClosed.bind(wh(i)),i.state={isOpen:n.isOpen},i}return Ore(r,[{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 Jh(this.props.container)}},{key:"getRef",value:function(i){this._element=i}},{key:"setTargetNode",value:function(i){this.targetNode=typeof i=="string"?Jh(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,_=i.popperClassName,x=i.tag;i.container;var w=i.modifiers,O=i.strategy,P=i.boundariesElement;i.onClosed;var C=i.fade,T=i.transition,A=i.placement,j=_re(i,mre),N=ct(mt("arrow",v),o),F=ct(mt(_,p?"".concat(p,"-auto"):""),this.props.cssModule),V=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!V.includes(J.name)}),W=[].concat(MR(B),MR(w)),q=xg(xg(xg({},Vn.defaultProps),T),{},{baseClass:C?T.baseClass:"",timeout:C?T.timeout:0});return Z.createElement(Vn,uP({},q,j,{in:s,onExited:this.onClosed,tag:x}),Z.createElement(pF,{referenceElement:this.targetNode,modifiers:W,placement:A,strategy:O},function(J){var Q=J.ref,ne=J.style,ae=J.placement,se=J.isReferenceHidden,oe=J.arrowProps,K=J.update;return Z.createElement("div",{ref:Q,style:ne,className:F,"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():lu.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}}]),r}(Z.Component);PT.propTypes=Are;PT.defaultProps=kre;function dP(){return dP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},dP.apply(this,arguments)}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 Rre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function DR(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Nre(e,t,r){return t&&DR(e.prototype,t),r&&DR(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Mre(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&&hP(e,t)}function hP(e,t){return hP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},hP(e,t)}function Lre(e){var t=Dre();return function(){var n=Kg(e),i;if(t){var o=Kg(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return Ire(this,i)}}function Ire(e,t){if(t&&(ip(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ui(e)}function ui(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Dre(){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(r){return r.__proto__||Object.getPrototypeOf(r)},Kg(e)}var ET={children:H.oneOfType([H.node,H.func]),placement:H.oneOf(rQ),target:sf.isRequired,container:sf,isOpen:H.bool,disabled:H.bool,hideArrow:H.bool,boundariesElement:H.oneOfType([H.string,cT]),className:H.string,innerClassName:H.string,arrowClassName:H.string,popperClassName:H.string,cssModule:H.object,toggle:H.func,autohide:H.bool,placementPrefix:H.string,delay:H.oneOfType([H.shape({show:H.number,hide:H.number}),H.number]),modifiers:H.array,strategy:H.string,offset:H.arrayOf(H.number),innerRef:H.oneOfType([H.func,H.string,H.object]),trigger:H.string,fade:H.bool,flip:H.bool},wF={show:0,hide:50},$re={isOpen:!1,hideArrow:!1,autohide:!1,delay:wF,toggle:function(){},trigger:"click",fade:!0};function OF(e,t){return t&&(e===t||t.contains(e))}function $R(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return t&&t.length&&t.filter(function(r){return OF(e,r)})[0]}var CT=function(e){Mre(r,e);var t=Lre(r);function r(n){var i;return Rre(this,r),i=t.call(this,n),i._targets=[],i.currentTargetElement=null,i.addTargetEvents=i.addTargetEvents.bind(ui(i)),i.handleDocumentClick=i.handleDocumentClick.bind(ui(i)),i.removeTargetEvents=i.removeTargetEvents.bind(ui(i)),i.toggle=i.toggle.bind(ui(i)),i.showWithDelay=i.showWithDelay.bind(ui(i)),i.hideWithDelay=i.hideWithDelay.bind(ui(i)),i.onMouseOverTooltipContent=i.onMouseOverTooltipContent.bind(ui(i)),i.onMouseLeaveTooltipContent=i.onMouseLeaveTooltipContent.bind(ui(i)),i.show=i.show.bind(ui(i)),i.hide=i.hide.bind(ui(i)),i.onEscKeyDown=i.onEscKeyDown.bind(ui(i)),i.getRef=i.getRef.bind(ui(i)),i.state={isOpen:n.isOpen},i._isMounted=!1,i}return Nre(r,[{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||$R(i.target,this._targets))?(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen&&!OF(i.target,this._popover)?this.hideWithDelay(i):this.props.isOpen||this.showWithDelay(i)):o.indexOf("click")>-1&&$R(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):ip(o)==="object"&&(o.current=i)),this._popover=i}},{key:"getDelay",value:function(i){var o=this.props.delay;return ip(o)==="object"?isNaN(o[i])?wF[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=Jh(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,_=a.placementPrefix,x=a.arrowClassName,w=a.popperClassName,O=a.container,P=a.modifiers,C=a.strategy,T=a.offset,A=a.fade,j=a.flip,N=a.children,F=fl(this.props,Object.keys(ET)),V=ct(w,c),B=ct(u,c);return Z.createElement(PT,{className:s,target:o,isOpen:h,hideArrow:p,boundariesElement:v,placement:b,placementPrefix:_,arrowClassName:x,popperClassName:V,container:O,modifiers:P,strategy:C,offset:T,cssModule:c,fade:A,flip:j},function(W){var q=W.update;return Z.createElement("div",dP({},F,{ref:i.getRef,className:B,role:"tooltip",onMouseOver:i.onMouseOverTooltipContent,onMouseLeave:i.onMouseLeaveTooltipContent,onKeyDown:i.onEscKeyDown}),typeof N=="function"?N({update:q}):N)})}}],[{key:"getDerivedStateFromProps",value:function(i,o){return i.isOpen&&!o.isOpen?{isOpen:i.isOpen}:null}}]),r}(Z.Component);CT.propTypes=ET;CT.defaultProps=$re;var Fre=["children","className","barClassName","cssModule","value","min","max","animated","striped","color","bar","multi","tag","style","barStyle","barAriaValueText","barAriaLabelledBy"];function Yg(){return Yg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Yg.apply(this,arguments)}function FR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function R1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?FR(Object(r),!0).forEach(function(n){Bre(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):FR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Bre(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ure(e,t){if(e==null)return{};var r=zre(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function zre(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var Vre={animated:H.bool,bar:H.bool,barAriaLabelledBy:H.string,barAriaValueText:H.string,barClassName:H.string,barStyle:H.object,children:H.node,className:H.string,cssModule:H.object,color:H.string,max:H.oneOfType([H.string,H.number]),min:H.oneOfType([H.string,H.number]),multi:H.bool,striped:H.bool,style:H.object,tag:kt,value:H.oneOfType([H.string,H.number])};function SF(e){var t=e.children,r=e.className,n=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,_=e.bar,x=e.multi,w=e.tag,O=w===void 0?"div":w,P=e.style,C=P===void 0?{}:P,T=e.barStyle,A=T===void 0?{}:T,j=e.barAriaValueText,N=e.barAriaLabelledBy,F=Ure(e,Fre),V=fR(a)/fR(h)*100,B=ct(mt(r,"progress"),i),W=ct(mt("progress-bar",_&&r||n,p?"progress-bar-animated":null,b?"bg-".concat(b):null,v||p?"progress-bar-striped":null),i),q={className:W,style:R1(R1(R1({},_?C:{}),A),{},{width:"".concat(V,"%")}),role:"progressbar","aria-valuenow":a,"aria-valuemin":c,"aria-valuemax":h,"aria-valuetext":j,"aria-labelledby":N,children:t};return _?Z.createElement(O,Yg({},F,q)):Z.createElement(O,Yg({},F,{style:C,className:B}),x?t:Z.createElement("div",q))}SF.propTypes=Vre;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 Wre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qre(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Hre(e,t,r){return t&&qre(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Gre(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&&mP(e,t)}function mP(e,t){return mP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},mP(e,t)}function Kre(e){var t=Xre();return function(){var n=Zg(e),i;if(t){var o=Zg(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return Yre(this,i)}}function Yre(e,t){if(t&&(pP(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Zre(e)}function Zre(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 Zg(e){return Zg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Zg(e)}var Qre={children:H.node.isRequired,node:H.any},PF=function(e){Gre(r,e);var t=Kre(r);function r(){return Wre(this,r),t.apply(this,arguments)}return Hre(r,[{key:"componentWillUnmount",value:function(){this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null}},{key:"render",value:function(){return fT?(!this.props.node&&!this.defaultNode&&(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode)),lu.createPortal(this.props.children,this.props.node||this.defaultNode)):null}}]),r}(Z.Component);PF.propTypes=Qre;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 BR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Rc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?BR(Object(r),!0).forEach(function(n){zc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):BR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Lh(){return Lh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Lh.apply(this,arguments)}function zc(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Jre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ene(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function tne(e,t,r){return t&&ene(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function rne(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&&gP(e,t)}function gP(e,t){return gP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},gP(e,t)}function nne(e){var t=one();return function(){var n=Xg(e),i;if(t){var o=Xg(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return ine(this,i)}}function ine(e,t){if(t&&(vP(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Fi(e)}function Fi(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function one(){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(r){return r.__proto__||Object.getPrototypeOf(r)},Xg(e)}function Qg(){}var UR=H.shape(Vn.propTypes),EF={autoFocus:H.bool,backdrop:H.oneOfType([H.bool,H.oneOf(["static"])]),backdropClassName:H.string,backdropTransition:UR,centered:H.bool,children:H.node,contentClassName:H.string,className:H.string,container:sf,cssModule:H.object,external:H.node,fade:H.bool,fullscreen:H.oneOfType([H.bool,H.oneOf(["sm","md","lg","xl"])]),innerRef:H.oneOfType([H.object,H.string,H.func]),isOpen:H.bool,keyboard:H.bool,labelledBy:H.string,modalClassName:H.string,modalTransition:UR,onClosed:H.func,onEnter:H.func,onExit:H.func,onOpened:H.func,returnFocusAfterClose:H.bool,role:H.string,scrollable:H.bool,size:H.string,toggle:H.func,trapFocus:H.bool,unmountOnClose:H.bool,wrapClassName:H.string,zIndex:H.oneOfType([H.number,H.string])},ane=Object.keys(EF),sne={isOpen:!1,autoFocus:!0,centered:!1,scrollable:!1,role:"dialog",backdrop:!0,keyboard:!0,zIndex:1050,fade:!0,onOpened:Qg,onClosed:Qg,modalTransition:{timeout:Lg.Modal},backdropTransition:{mountOnEnter:!0,timeout:Lg.Fade},unmountOnClose:!0,returnFocusAfterClose:!0,container:"body",trapFocus:!1},Yn=function(e){rne(r,e);var t=nne(r);function r(n){var i;return Jre(this,r),i=t.call(this,n),i._element=null,i._originalBodyPadding=null,i.getFocusableChildren=i.getFocusableChildren.bind(Fi(i)),i.handleBackdropClick=i.handleBackdropClick.bind(Fi(i)),i.handleBackdropMouseDown=i.handleBackdropMouseDown.bind(Fi(i)),i.handleEscape=i.handleEscape.bind(Fi(i)),i.handleStaticBackdropAnimation=i.handleStaticBackdropAnimation.bind(Fi(i)),i.handleTab=i.handleTab.bind(Fi(i)),i.onOpened=i.onOpened.bind(Fi(i)),i.onClosed=i.onClosed.bind(Fi(i)),i.manageFocusAfterClose=i.manageFocusAfterClose.bind(Fi(i)),i.clearBackdropAnimationTimeout=i.clearBackdropAnimationTimeout.bind(Fi(i)),i.trapFocus=i.trapFocus.bind(Fi(i)),i.state={isOpen:!1,showStaticBackdropAnimation:!1},i}return tne(r,[{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<r.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===Ft.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||Qg)(i,o)}},{key:"onClosed",value:function(i){var o=this.props.unmountOnClose;this.props.onClosed(),(this.props.modalTransition.onExited||Qg)(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(aQ.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<r.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=Jh(this.props.container),this._mountContainer.appendChild(this._element)),this._originalBodyPadding=QX(),r.openCount<1&&(r.originalBodyOverflow=window.getComputedStyle(document.body).overflow),JX(),r.openCount===0&&(document.body.className=mt(document.body.className,ct("modal-open",this.props.cssModule)),document.body.style.overflow="hidden"),this.modalIndex=r.openCount,r.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(r.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=r.originalBodyOverflow}this.manageFocusAfterClose(),r.openCount=Math.max(0,r.openCount-1),H$(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,ane),s="modal-dialog";return Z.createElement("div",Lh({},a,{className:ct(mt(s,this.props.className,(i={},zc(i,"modal-".concat(this.props.size),this.props.size),zc(i,"".concat(s,"-centered"),this.props.centered),zc(i,"".concat(s,"-scrollable"),this.props.scrollable),zc(i,"modal-fullscreen",this.props.fullscreen===!0),zc(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,_=a.labelledBy,x=a.external,w=a.innerRef,O={onClick:this.handleBackdropClick,onMouseDown:this.handleBackdropMouseDown,onKeyUp:this.handleEscape,onKeyDown:this.handleTab,style:{display:"block"},"aria-labelledby":_,"aria-modal":!0,role:b,tabIndex:"-1"},P=this.props.fade,C=Rc(Rc(Rc({},Vn.defaultProps),this.props.modalTransition),{},{baseClass:P?this.props.modalTransition.baseClass:"",timeout:P?this.props.modalTransition.timeout:0}),T=Rc(Rc(Rc({},Vn.defaultProps),this.props.backdropTransition),{},{baseClass:P?this.props.backdropTransition.baseClass:"",timeout:P?this.props.backdropTransition.timeout:0}),A=v&&(P?Z.createElement(Vn,Lh({},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(PF,{node:this._element},Z.createElement("div",{className:ct(s)},Z.createElement(Vn,Lh({},O,C,{in:p,onEntered:this.onOpened,onExited:this.onClosed,cssModule:h,className:ct(mt("modal",c,this.state.showStaticBackdropAnimation&&"modal-static"),h),innerRef:w}),x,this.renderModalDialog()),A))}return null}}]),r}(Z.Component);Yn.propTypes=EF;Yn.defaultProps=sne;Yn.openCount=0;Yn.originalBodyOverflow=null;var lne=["className","cssModule","children","toggle","tag","wrapTag","closeAriaLabel","close"];function yP(){return yP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},yP.apply(this,arguments)}function une(e,t){if(e==null)return{};var r=cne(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function cne(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var fne={children:H.node,className:H.string,close:H.object,closeAriaLabel:H.string,cssModule:H.object,tag:kt,toggle:H.func,wrapTag:kt};function la(e){var t,r=e.className,n=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=une(e,lne),_=ct(mt(r,"modal-header"),n);return!v&&o&&(t=Z.createElement("button",{type:"button",onClick:o,className:ct("btn-close",n),"aria-label":p})),Z.createElement(u,yP({},b,{className:_}),Z.createElement(s,{className:ct("modal-title",n)},i),v||t)}la.propTypes=fne;var dne=["className","cssModule","tag"];function bP(){return bP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bP.apply(this,arguments)}function hne(e,t){if(e==null)return{};var r=pne(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function pne(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var mne={className:H.string,cssModule:H.object,tag:kt};function Eo(e){var t=e.className,r=e.cssModule,n=e.tag,i=n===void 0?"div":n,o=hne(e,dne),a=ct(mt(t,"modal-body"),r);return Z.createElement(i,bP({},o,{className:a}))}Eo.propTypes=mne;var vne=["className","cssModule","tag"];function _P(){return _P=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_P.apply(this,arguments)}function gne(e,t){if(e==null)return{};var r=yne(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function yne(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var bne={className:H.string,cssModule:H.object,tag:kt};function Ja(e){var t=e.className,r=e.cssModule,n=e.tag,i=n===void 0?"div":n,o=gne(e,vne),a=ct(mt(t,"modal-footer"),r);return Z.createElement(i,_P({},o,{className:a}))}Ja.propTypes=bne;function xP(){return xP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xP.apply(this,arguments)}var _ne={placement:"top",autohide:!0,placementPrefix:"bs-tooltip",trigger:"hover focus"};function I0(e){var t=mt("tooltip-arrow",e.arrowClassName),r=mt("tooltip","show",e.popperClassName),n=mt("tooltip-inner",e.innerClassName),i=dT(_ne,e);return Z.createElement(CT,xP({},i,{arrowClassName:t,popperClassName:r,innerClassName:n}))}I0.propTypes=ET;var xne=["className","cssModule","tag","flush","horizontal","numbered"];function wP(){return wP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wP.apply(this,arguments)}function wne(e,t){if(e==null)return{};var r=One(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function One(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var Sne={className:H.string,cssModule:H.object,flush:H.bool,horizontal:H.oneOfType([H.bool,H.string]),numbered:H.bool,tag:kt},Pne=function(t){return t===!1?!1:t===!0||t==="xs"?"list-group-horizontal":"list-group-horizontal-".concat(t)};function CF(e){var t=e.className,r=e.cssModule,n=e.tag,i=n===void 0?"ul":n,o=e.flush,a=e.horizontal,s=a===void 0?!1:a,c=e.numbered,u=c===void 0?!1:c,h=wne(e,xne),p=ct(mt(t,"list-group",o?"list-group-flush":Pne(s),{"list-group-numbered":u}),r);return Z.createElement(i,wP({},h,{className:p}))}CF.propTypes=Sne;var Ene=["className","cssModule","row","disabled","check","inline","floating","noMargin","tag","switch"];function OP(){return OP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},OP.apply(this,arguments)}function Cne(e,t){if(e==null)return{};var r=Tne(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Tne(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var jne={children:H.node,row:H.bool,check:H.bool,switch:H.bool,inline:H.bool,floating:H.bool,noMargin:H.bool,disabled:H.bool,tag:kt,className:H.string,cssModule:H.object};function Jg(e){var t=e.className,r=e.cssModule,n=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=Cne(e,Ene),b=o||p,_=ct(mt(t,n?"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"),r);return h==="fieldset"&&(v.disabled=i),Z.createElement(h,OP({},v,{className:_}))}Jg.propTypes=jne;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)}var Ane=["className","cssModule","type","bsSize","valid","invalid","tag","addon","plaintext","innerRef"];function PP(){return PP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},PP.apply(this,arguments)}function kne(e,t){if(e==null)return{};var r=Rne(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Rne(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function Nne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mne(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Lne(e,t,r){return t&&Mne(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ine(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&&EP(e,t)}function EP(e,t){return EP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},EP(e,t)}function Dne(e){var t=Fne();return function(){var n=ey(e),i;if(t){var o=ey(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return $ne(this,i)}}function $ne(e,t){if(t&&(SP(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return CP(e)}function CP(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fne(){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(r){return r.__proto__||Object.getPrototypeOf(r)},ey(e)}var Bne={children:H.node,type:H.string,size:H.oneOfType([H.number,H.string]),bsSize:H.string,valid:H.bool,invalid:H.bool,tag:kt,innerRef:H.oneOfType([H.object,H.func,H.string]),plaintext:H.bool,addon:H.bool,className:H.string,cssModule:H.object},Zr=function(e){Ine(r,e);var t=Dne(r);function r(n){var i;return Nne(this,r),i=t.call(this,n),i.getRef=i.getRef.bind(CP(i)),i.focus=i.focus.bind(CP(i)),i}return Lne(r,[{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,_=i.plaintext,x=i.innerRef,w=kne(i,Ane),O=["switch","radio","checkbox"].indexOf(c)>-1,P=/\D/g,C=c==="textarea",T=c==="select",A=c==="range",j=v||(T||C?c:"input"),N="form-control";_?(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)&&(OS(`Please use the prop "bsSize" instead of the "size" to bootstrap's input sizing.`),u=w.size,delete w.size);var F=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&&!(_||c==="select"||typeof j!="string"||j==="select")&&(OS('Input with a type of "'.concat(c,'" cannot have children. Please use "value"/"defaultValue" instead.')),delete w.children),Z.createElement(j,PP({},w,{ref:x,className:F,"aria-invalid":p}))}}]),r}(Z.Component);Zr.propTypes=Bne;var Une=["className","cssModule","tag","type","size"];function ty(){return ty=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ty.apply(this,arguments)}function zne(e,t){if(e==null)return{};var r=Vne(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Vne(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var Wne={className:H.string,cssModule:H.object,size:H.string,tag:kt,type:H.string};function rm(e){var t=e.className,r=e.cssModule,n=e.tag,i=n===void 0?"div":n;e.type;var o=e.size,a=zne(e,Une),s=ct(mt(t,"input-group",o?"input-group-".concat(o):null),r);return e.type==="dropdown"?Z.createElement(hl,ty({},a,{className:s})):Z.createElement(mF.Provider,{value:{insideInputGroup:!0}},Z.createElement(i,ty({},a,{className:s})))}rm.propTypes=Wne;var qne=["className","listClassName","cssModule","size","tag","listTag","aria-label"];function TP(){return TP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},TP.apply(this,arguments)}function Hne(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Gne(e,t){if(e==null)return{};var r=Kne(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Kne(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var Yne={children:H.node,className:H.string,listClassName:H.string,cssModule:H.object,size:H.string,tag:kt,listTag:kt,"aria-label":H.string};function TT(e){var t=e.className,r=e.listClassName,n=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=Gne(e,qne),v=ct(mt(t),n),b=ct(mt(r,"pagination",Hne({},"pagination-".concat(i),!!i)),n);return Z.createElement(a,{className:v,"aria-label":h},Z.createElement(c,TP({},p,{className:b})))}TT.propTypes=Yne;var Zne=["active","className","cssModule","disabled","tag"];function jP(){return jP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jP.apply(this,arguments)}function Xne(e,t){if(e==null)return{};var r=Qne(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Qne(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var Jne={active:H.bool,children:H.node,className:H.string,cssModule:H.object,disabled:H.bool,tag:kt};function mu(e){var t=e.active,r=e.className,n=e.cssModule,i=e.disabled,o=e.tag,a=o===void 0?"li":o,s=Xne(e,Zne),c=ct(mt(r,"page-item",{active:t,disabled:i}),n);return Z.createElement(a,jP({},s,{className:c}))}mu.propTypes=Jne;var eie=["className","cssModule","next","previous","first","last","tag"];function AP(){return AP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},AP.apply(this,arguments)}function tie(e,t){if(e==null)return{};var r=rie(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function rie(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var nie={"aria-label":H.string,children:H.node,className:H.string,cssModule:H.object,next:H.bool,previous:H.bool,first:H.bool,last:H.bool,tag:kt};function vu(e){var t=e.className,r=e.cssModule,n=e.next,i=e.previous,o=e.first,a=e.last,s=e.tag,c=s===void 0?"a":s,u=tie(e,eie),h=ct(mt(t,"page-link"),r),p;i?p="Previous":n?p="Next":o?p="First":a&&(p="Last");var v=e["aria-label"]||p,b;i?b="‹":n?b="›":o?b="«":a&&(b="»");var _=e.children;return _&&Array.isArray(_)&&_.length===0&&(_=null),!u.href&&c==="a"&&(c="button"),(i||n||o||a)&&(_=[Z.createElement("span",{"aria-hidden":"true",key:"caret"},_||b),Z.createElement("span",{className:"visually-hidden",key:"ariaLabel"},v)]),Z.createElement(c,AP({},u,{className:h,"aria-label":v}),_)}vu.propTypes=nie;var iie=["className","closeClassName","closeAriaLabel","cssModule","tag","color","isOpen","toggle","children","transition","fade","innerRef"];function kP(){return kP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},kP.apply(this,arguments)}function zR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ah(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zR(Object(r),!0).forEach(function(n){oie(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function oie(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aie(e,t){if(e==null)return{};var r=sie(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function sie(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var lie={children:H.node,className:H.string,closeClassName:H.string,closeAriaLabel:H.string,color:H.string,cssModule:H.object,fade:H.bool,innerRef:H.oneOfType([H.object,H.string,H.func]),isOpen:H.bool,tag:kt,toggle:H.func,transition:H.shape(Vn.propTypes)};function TF(e){var t=e.className,r=e.closeClassName,n=e.closeAriaLabel,i=n===void 0?"Close":n,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,_=e.transition,x=_===void 0?ah(ah({},Vn.defaultProps),{},{unmountOnExit:!0}):_,w=e.fade,O=w===void 0?!0:w,P=e.innerRef,C=aie(e,iie),T=ct(mt(t,"alert","alert-".concat(u),{"alert-dismissible":v}),o),A=ct(mt("btn-close",r),o),j=ah(ah(ah({},Vn.defaultProps),x),{},{baseClass:O?x.baseClass:"",timeout:O?x.timeout:0});return Z.createElement(Vn,kP({},C,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)}TF.propTypes=lie;var uie=["className","cssModule","tag","active","disabled","action","color"];function RP(){return RP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},RP.apply(this,arguments)}function cie(e,t){if(e==null)return{};var r=fie(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function fie(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var die={action:H.bool,active:H.bool,className:H.string,cssModule:H.object,color:H.string,disabled:H.bool,tag:kt},hie=function(t){t.preventDefault()};function jF(e){var t=e.className,r=e.cssModule,n=e.tag,i=n===void 0?"li":n,o=e.active,a=e.disabled,s=e.action,c=e.color,u=cie(e,uie),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"),r);return a&&(u.onClick=hie),Z.createElement(i,RP({},u,{className:h}))}jF.propTypes=die;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 VR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function pie(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?VR(Object(r),!0).forEach(function(n){mie(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):VR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mie(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MP(){return MP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},MP.apply(this,arguments)}function vie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gie(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function yie(e,t,r){return t&&gie(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function bie(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(n,i){return n.__proto__=i,n},LP(e,t)}function _ie(e){var t=wie();return function(){var n=ry(e),i;if(t){var o=ry(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return xie(this,i)}}function xie(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 AF(e)}function AF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wie(){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 ry(e){return ry=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ry(e)}var Oie=["defaultOpen"],nm=function(e){bie(r,e);var t=_ie(r);function r(n){var i;return vie(this,r),i=t.call(this,n),i.state={isOpen:n.defaultOpen||!1},i.toggle=i.toggle.bind(AF(i)),i}return yie(r,[{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,MP({isOpen:this.state.isOpen,toggle:this.toggle},fl(this.props,Oie)))}}]),r}(I.Component);nm.propTypes=pie({defaultOpen:H.bool,onToggle:H.func},hl.propTypes);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 WR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Sie(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?WR(Object(r),!0).forEach(function(n){Pie(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):WR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Pie(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DP(){return DP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},DP.apply(this,arguments)}function Eie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cie(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Tie(e,t,r){return t&&Cie(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function jie(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&&$P(e,t)}function $P(e,t){return $P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},$P(e,t)}function Aie(e){var t=Rie();return function(){var n=ny(e),i;if(t){var o=ny(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return kie(this,i)}}function kie(e,t){if(t&&(IP(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return kF(e)}function kF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rie(){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 ny(e){return ny=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ny(e)}var Nie=["defaultOpen"],wi=function(e){jie(r,e);var t=Aie(r);function r(n){var i;return Eie(this,r),i=t.call(this,n),i.state={isOpen:n.defaultOpen||!1},i.toggle=i.toggle.bind(kF(i)),i}return Tie(r,[{key:"toggle",value:function(){this.setState(function(i){return{isOpen:!i.isOpen}})}},{key:"render",value:function(){return Z.createElement(I0,DP({isOpen:this.state.isOpen,toggle:this.toggle},fl(this.props,Nie)))}}]),r}(I.Component);wi.propTypes=Sie({defaultOpen:H.bool},I0.propTypes);const qa=({className:e,children:t,loading:r=!1,type:n="default",fullWidth:i=!1})=>g.jsx(xi,{body:!0,className:ze(e,{"w-100":i,"w-75 mx-auto":!i,"border-danger":n==="error"}),children:g.jsxs("h3",{className:ze("text-center mb-0",{"text-muted":n==="default","text-danger":n==="error"}),children:[r&&g.jsx(Ge,{icon:n$,spin:!0}),r&&g.jsx("span",{className:"ms-2",children:t??"Loading..."}),!r&&t]})}),Wt=({title:e,children:t,bodyClassName:r,...n})=>g.jsxs(xi,{...n,children:[e&&g.jsx(tm,{role:"heading","aria-level":4,children:e}),g.jsx(em,{className:r,children:t})]}),Tn=({children:e,type:t,className:r,small:n=!1})=>g.jsx(Wt,{role:"document",className:ze("text-center",{"w-75 mx-auto":!n,"w-100":n,"bg-main":t==="success","bg-danger":t==="error","bg-warning":t==="warning","text-white":t!=="warning"},r),bodyClassName:ze({"p-2":n}),children:e}),RF=({checked:e=!1,onChange:t,className:r,children:n,type:i,inline:o=!1})=>{const a=I.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:ze("form-check",c,r),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:n})]})},NF=e=>g.jsx(RF,{type:"checkbox",...e}),Ha=e=>g.jsx(RF,{type:"switch",...e}),Zf=({children:e,label:t,className:r="",labelClassName:n="",noMargin:i=!1,id:o})=>g.jsxs("div",{className:`${r} ${i?"":"mb-3"}`,children:[g.jsx("label",{className:`form-label ${n}`,htmlFor:o,children:t}),e]}),wg=({children:e,value:t,onChange:r,type:n,required:i,placeholder:o,className:a,labelClassName:s})=>{const c=I.useId();return g.jsx(Zf,{label:g.jsxs(g.Fragment,{children:[e,":"]}),className:a,labelClassName:s,id:c,children:g.jsx("input",{id:c,className:"form-control",type:n??"text",value:t,required:i??!0,placeholder:o,onChange:u=>r(u.target.value)})})},Mie=500;let Og;const qR=()=>{Og!==null&&clearTimeout(Og),Og=null},im=({onChange:e,className:t,large:r=!0,noBorder:n=!1,initialValue:i="",setTimeout_:o=setTimeout})=>{const[a,s]=I.useState(i),c=(u,h=Mie)=>{s(u),qR(),Og=o(()=>{e(u),qR()},h)};return g.jsxs("div",{className:ze("search-field",t),children:[g.jsx("input",{type:"text",className:ze("form-control search-field__input",{"form-control-lg":r,"search-field__input--no-border":n}),placeholder:"Search...",value:a,onChange:u=>c(u.target.value)}),g.jsx(Ge,{icon:pY,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)})]})},MF=e=>{const t=new URLSearchParams(e),r={};return t.forEach((n,i)=>{if(i.endsWith("[]")){const o=i.slice(0,-2);r[o]??(r[o]=[]),r[o].push(n)}else r[i]=n}),r},D0=e=>{const t=new URLSearchParams;for(const[r,n]of Object.entries(e))n!==void 0&&(Array.isArray(n)?n.forEach(i=>t.append(`${r}[]`,`${i}`)):t.append(r,`${n}`));return t.toString()},ur=(e=!1)=>{const[t,r]=I.useState(e),n=I.useCallback(()=>r(a=>!a),[]),i=I.useCallback(()=>r(!0),[]),o=I.useCallback(()=>r(!1),[]);return[t,n,i,o]},LF=(e=!1,t=2e3,r=window.setTimeout,n=window.clearTimeout)=>{const[i,o]=I.useState(e),a=I.useRef(e),s=I.useRef(void 0),c=I.useCallback(()=>{o(!a.current),s.current&&n(s.current),s.current=r(()=>o(a.current),t)},[n,t,r]);return[i,c]},Yi=()=>I.useRef(null),Xf=()=>{const{search:e}=gn();return I.useMemo(()=>MF(e),[e])},es=({text:e,disabled:t=!1,className:r,children:n,dropdownClassName:i,noCaret:o,end:a=!1,minWidth:s,inline:c,size:u,...h})=>{const[p,v]=ur(),b=ze("dropdown-btn__toggle",r,{"btn-block":!c,"dropdown-btn__toggle--with-caret":!o}),_={minWidth:s&&`${s}px`};return g.jsxs(hl,{isOpen:p,toggle:v,disabled:t,className:i,children:[g.jsx(Qa,{size:u,caret:!o,className:b,color:"primary",...h,children:e}),g.jsx(pl,{className:"w-100",end:a,style:_,children:n})]})},$0=({children:e,minWidth:t,label:r="Options"})=>g.jsx(es,{text:g.jsx(Ge,{className:"px-1",icon:iY}),"aria-label":r,size:"sm",minWidth:t,end:!0,noCaret:!0,inline:!0,children:e}),Ih=({children:e,...t})=>g.jsx(pT,{children:g.jsx(mT,{className:"nav-pills__nav-link",tag:UC,...t,children:e})}),IF=({children:e,fill:t=!1,className:r=""})=>g.jsx(xi,{className:`nav-pills__nav p-0 overflow-hidden ${r}`,body:!0,children:g.jsx(hT,{pills:!0,fill:t,children:I.Children.map(e,n=>{if(!I.isValidElement(n)||n.type!==Ih)throw new Error("Only NavPillItem children are allowed inside NavPills.");return n})})}),F0=(e,t,r)=>e!==t?"ASC":r?{ASC:"DESC",DESC:void 0}[r]:"ASC",DF=(e,{field:t,dir:r})=>!t||!r?e:e.sort((n,i)=>{const o=r==="ASC"?1:-1,a=r==="ASC"?-1:1;return n[t]>i[t]?o:a}),Lie=e=>e.dir?`${e.field}-${e.dir}`:void 0,Iie=e=>{const[t,r]=e.split("-");return{field:t,dir:r}};function om({items:e,order:t,onChange:r,isButton:n=!0,right:i=!1,prefixed:o=!0}){const a=s=>()=>{const c=F0(s,t.field,t.dir);r(c?s:void 0,c)};return g.jsxs(nm,{children:[g.jsxs(Qa,{caret:!0,color:n?"primary":"link",className:ze({"dropdown-btn__toggle btn-block pe-4 overflow-hidden":n,"btn-sm p-0":!n}),children:[!n&&g.jsx(g.Fragment,{children:"Order by"}),n&&!t.field&&g.jsx("i",{children:"Order by..."}),n&&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:ze("w-100",{"ordering-dropdown__menu--link":!n}),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"?lY:GK,className:"ordering-dropdown__sort-icon"})]},s)),g.jsx(Ye,{divider:!0}),g.jsx(Ye,{disabled:!t.field,onClick:()=>r(),children:g.jsx("i",{children:"Clear selection"})})]})]})}const op="#4696e5",Die="rgba(70, 150, 229, 0.4)",FP="#f77f28",$ie="rgba(247, 127, 40, 0.4)",Fie="white",Bie="#161b22",Uie=e=>{var t;return(t=document.querySelector("html"))==null?void 0:t.setAttribute("data-theme",e)},am=()=>{var e;return((e=document.querySelector("html"))==null?void 0:e.getAttribute("data-theme"))==="dark"},jT=(e=window.matchMedia.bind(window))=>e("(prefers-color-scheme: dark)").matches?"dark":"light",zie=I.forwardRef(({isOpen:e,toggle:t,forceUpdate:r},n)=>{const[i,,o]=ur(),a=I.useCallback(()=>{o(),r()},[r,o]);return g.jsxs(TF,{className:"app-update-banner",isOpen:e,toggle:t,tag:Wt,color:"secondary",innerRef:n,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:bY,className:"ms-1"})]}),i&&g.jsx(g.Fragment,{children:"Restarting..."})]})]})]})}),$F=({to:e="/",children:t="Home"})=>g.jsx("div",{className:"home",children:g.jsxs(Wt,{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(Ht,{to:e,className:"btn btn-outline-primary btn-lg",children:t})]})});function Co(e){return I.useRef(e).current}function To(e,t){return(r,n=globalThis.console)=>(t.forEach(i=>{const o=r[i];e[i]=o}),e)}const Vie=async()=>{var t;(await((t=navigator.serviceWorker)==null?void 0:t.getRegistrations())??[]).forEach(({waiting:r})=>{r==null||r.addEventListener("statechange",n=>{var i;((i=n.target)==null?void 0:i.state)==="activated"&&window.location.reload()}),r==null||r.postMessage({type:"SKIP_WAITING"})})},FF=({fetchServers:e,servers:t,settings:r,appUpdated:n,resetAppUpdate:i})=>{var w;const{MainHeader:o,Home:a,ShlinkWebComponentContainer:s,CreateServer:c,EditServer:u,Settings:h,ManageServers:p,ShlinkVersionsContainer:v}=Co(FF),b=gn(),_=I.useRef(t),x=b.pathname==="/";return I.useEffect(()=>{Object.keys(_.current).length===0&&e()},[e]),I.useEffect(()=>{var O;Uie(((O=r.ui)==null?void 0:O.theme)??jT())},[(w=r.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:ze("shlink-wrapper",{"d-flex align-items-center pt-3":x}),children:g.jsxs(E0,{children:[g.jsx(Pt,{index:!0,element:g.jsx(a,{})}),g.jsx(Pt,{path:"/settings",children:["","*"].map(O=>g.jsx(Pt,{path:O,element:g.jsx(h,{})},O))}),g.jsx(Pt,{path:"/manage-servers",element:g.jsx(p,{})}),g.jsx(Pt,{path:"/server/create",element:g.jsx(c,{})}),g.jsx(Pt,{path:"/server/:serverId/edit",element:g.jsx(u,{})}),g.jsx(Pt,{path:"/server/:serverId",children:["","*"].map(O=>g.jsx(Pt,{path:O,element:g.jsx(s,{})},O))}),g.jsx(Pt,{path:"*",element:g.jsx($F,{})})]})}),g.jsx("div",{className:"shlink-footer",children:g.jsx(v,{})})]}),g.jsx(zie,{isOpen:n,toggle:i,forceUpdate:Vie})]})},Wie=To(FF,["MainHeader","Home","ShlinkWebComponentContainer","CreateServer","EditServer","Settings","ManageServers","ShlinkVersionsContainer"]);function nn(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 qie=typeof Symbol=="function"&&Symbol.observable||"@@observable",HR=qie,N1=()=>Math.random().toString(36).substring(7).split("").join("."),Hie={INIT:`@@redux/INIT${N1()}`,REPLACE:`@@redux/REPLACE${N1()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${N1()}`},iy=Hie;function AT(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 BF(e,t,r){if(typeof e!="function")throw new Error(nn(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(nn(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(nn(1));return r(BF)(e,t)}let n=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(nn(3));return i}function p(w){if(typeof w!="function")throw new Error(nn(4));if(c)throw new Error(nn(5));let O=!0;u();const P=s++;return a.set(P,w),function(){if(O){if(c)throw new Error(nn(6));O=!1,u(),a.delete(P),o=null}}}function v(w){if(!AT(w))throw new Error(nn(7));if(typeof w.type>"u")throw new Error(nn(8));if(typeof w.type!="string")throw new Error(nn(17));if(c)throw new Error(nn(9));try{c=!0,i=n(i,w)}finally{c=!1}return(o=a).forEach(P=>{P()}),w}function b(w){if(typeof w!="function")throw new Error(nn(10));n=w,v({type:iy.REPLACE})}function _(){const w=p;return{subscribe(O){if(typeof O!="object"||O===null)throw new Error(nn(11));function P(){const T=O;T.next&&T.next(h())}return P(),{unsubscribe:w(P)}},[HR](){return this}}}return v({type:iy.INIT}),{dispatch:v,subscribe:p,getState:h,replaceReducer:b,[HR]:_}}function Gie(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:iy.INIT})>"u")throw new Error(nn(12));if(typeof r(void 0,{type:iy.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(nn(13))})}function kT(e){const t=Object.keys(e),r={};for(let o=0;o<t.length;o++){const a=t[o];typeof e[a]=="function"&&(r[a]=e[a])}const n=Object.keys(r);let i;try{Gie(r)}catch(o){i=o}return function(a={},s){if(i)throw i;let c=!1;const u={};for(let h=0;h<n.length;h++){const p=n[h],v=r[p],b=a[p],_=v(b,s);if(typeof _>"u")throw s&&s.type,new Error(nn(14));u[p]=_,c=c||_!==b}return c=c||n.length!==Object.keys(a).length,c?u:a}}function oy(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function Kie(...e){return t=>(r,n)=>{const i=t(r,n);let o=()=>{throw new Error(nn(15))};const a={getState:i.getState,dispatch:(c,...u)=>o(c,...u)},s=e.map(c=>c(a));return o=oy(...s)(i.dispatch),{...i,dispatch:o}}}function Yie(e){return AT(e)&&"type"in e&&typeof e.type=="string"}var UF=Symbol.for("immer-nothing"),GR=Symbol.for("immer-draftable"),gi=Symbol.for("immer-state");function go(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[gi]}function Ga(e){var t;return e?zF(e)||Array.isArray(e)||!!e[GR]||!!((t=e.constructor)!=null&&t[GR])||U0(e)||z0(e):!1}var Zie=Object.prototype.constructor.toString();function zF(e){if(!e||typeof e!="object")return!1;const t=hf(e);if(t===null)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object?!0:typeof r=="function"&&Function.toString.call(r)===Zie}function ap(e,t){B0(e)===0?Object.entries(e).forEach(([r,n])=>{t(r,n,e)}):e.forEach((r,n)=>t(n,r,e))}function B0(e){const t=e[gi];return t?t.type_:Array.isArray(e)?1:U0(e)?2:z0(e)?3:0}function BP(e,t){return B0(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function VF(e,t,r){const n=B0(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function Xie(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function U0(e){return e instanceof Map}function z0(e){return e instanceof Set}function eu(e){return e.copy_||e.base_}function UP(e,t){if(U0(e))return new Map(e);if(z0(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&zF(e))return hf(e)?{...e}:Object.assign(Object.create(null),e);const r=Object.getOwnPropertyDescriptors(e);delete r[gi];let n=Reflect.ownKeys(r);for(let i=0;i<n.length;i++){const o=n[i],a=r[o];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(r[o]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[o]})}return Object.create(hf(e),r)}function RT(e,t=!1){return V0(e)||Ou(e)||!Ga(e)||(B0(e)>1&&(e.set=e.add=e.clear=e.delete=Qie),Object.freeze(e),t&&ap(e,(r,n)=>RT(n,!0))),e}function Qie(){go(2)}function V0(e){return Object.isFrozen(e)}var Jie={};function Su(e){const t=Jie[e];return t||go(0,e),t}var sp;function WF(){return sp}function eoe(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function KR(e,t){t&&(Su("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function zP(e){VP(e),e.drafts_.forEach(toe),e.drafts_=null}function VP(e){e===sp&&(sp=e.parent_)}function YR(e){return sp=eoe(sp,e)}function toe(e){const t=e[gi];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function ZR(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[gi].modified_&&(zP(t),go(4)),Ga(e)&&(e=ay(t,e),t.parent_||sy(t,e)),t.patches_&&Su("Patches").generateReplacementPatches_(r[gi].base_,e,t.patches_,t.inversePatches_)):e=ay(t,r,[]),zP(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==UF?e:void 0}function ay(e,t,r){if(V0(t))return t;const n=t[gi];if(!n)return ap(t,(i,o)=>XR(e,n,t,i,o,r)),t;if(n.scope_!==e)return t;if(!n.modified_)return sy(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;const i=n.copy_;let o=i,a=!1;n.type_===3&&(o=new Set(i),i.clear(),a=!0),ap(o,(s,c)=>XR(e,n,i,s,c,r,a)),sy(e,i,!1),r&&e.patches_&&Su("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function XR(e,t,r,n,i,o,a){if(Ou(i)){const s=o&&t&&t.type_!==3&&!BP(t.assigned_,n)?o.concat(n):void 0,c=ay(e,i,s);if(VF(r,n,c),Ou(c))e.canAutoFreeze_=!1;else return}else a&&r.add(i);if(Ga(i)&&!V0(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;ay(e,i),(!t||!t.scope_.parent_)&&sy(e,i)}}function sy(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&RT(t,r)}function roe(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:WF(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=n,o=NT;r&&(i=[n],o=lp);const{revoke:a,proxy:s}=Proxy.revocable(i,o);return n.draft_=s,n.revoke_=a,s}var NT={get(e,t){if(t===gi)return e;const r=eu(e);if(!BP(r,t))return noe(e,r,t);const n=r[t];return e.finalized_||!Ga(n)?n:n===M1(e.base_,t)?(L1(e),e.copy_[t]=qP(n,e)):n},has(e,t){return t in eu(e)},ownKeys(e){return Reflect.ownKeys(eu(e))},set(e,t,r){const n=qF(eu(e),t);if(n!=null&&n.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=M1(eu(e),t),o=i==null?void 0:i[gi];if(o&&o.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(Xie(r,i)&&(r!==void 0||BP(e.base_,t)))return!0;L1(e),WP(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return M1(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,L1(e),WP(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=eu(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){go(11)},getPrototypeOf(e){return hf(e.base_)},setPrototypeOf(){go(12)}},lp={};ap(NT,(e,t)=>{lp[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});lp.deleteProperty=function(e,t){return lp.set.call(this,e,t,void 0)};lp.set=function(e,t,r){return NT.set.call(this,e[0],t,r,e[0])};function M1(e,t){const r=e[gi];return(r?eu(r):e)[t]}function noe(e,t,r){var i;const n=qF(t,r);return n?"value"in n?n.value:(i=n.get)==null?void 0:i.call(e.draft_):void 0}function qF(e,t){if(!(t in e))return;let r=hf(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=hf(r)}}function WP(e){e.modified_||(e.modified_=!0,e.parent_&&WP(e.parent_))}function L1(e){e.copy_||(e.copy_=UP(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var ioe=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){const o=r;r=t;const a=this;return function(c=o,...u){return a.produce(c,h=>r.call(this,h,...u))}}typeof r!="function"&&go(6),n!==void 0&&typeof n!="function"&&go(7);let i;if(Ga(t)){const o=YR(this),a=qP(t,void 0);let s=!0;try{i=r(a),s=!1}finally{s?zP(o):VP(o)}return KR(o,n),ZR(i,o)}else if(!t||typeof t!="object"){if(i=r(t),i===void 0&&(i=t),i===UF&&(i=void 0),this.autoFreeze_&&RT(i,!0),n){const o=[],a=[];Su("Patches").generateReplacementPatches_(t,i,o,a),n(o,a)}return i}else go(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(a,...s)=>this.produceWithPatches(a,c=>t(c,...s));let n,i;return[this.produce(t,r,(a,s)=>{n=a,i=s}),n,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){Ga(e)||go(8),Ou(e)&&(e=ooe(e));const t=YR(this),r=qP(e,void 0);return r[gi].isManual_=!0,VP(t),r}finishDraft(e,t){const r=e&&e[gi];(!r||!r.isManual_)&&go(9);const{scope_:n}=r;return KR(n,t),ZR(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const i=t[r];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}r>-1&&(t=t.slice(r+1));const n=Su("Patches").applyPatches_;return Ou(e)?n(e,t):this.produce(e,i=>n(i,t))}};function qP(e,t){const r=U0(e)?Su("MapSet").proxyMap_(e,t):z0(e)?Su("MapSet").proxySet_(e,t):roe(e,t);return(t?t.scope_:WF()).drafts_.push(r),r}function ooe(e){return Ou(e)||go(10,e),HF(e)}function HF(e){if(!Ga(e)||V0(e))return e;const t=e[gi];let r;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=UP(e,t.scope_.immer_.useStrictShallowCopy_)}else r=UP(e,!0);return ap(r,(n,i)=>{VF(r,n,HF(i))}),t&&(t.finalized_=!1),r}var yi=new ioe,GF=yi.produce;yi.produceWithPatches.bind(yi);yi.setAutoFreeze.bind(yi);yi.setUseStrictShallowCopy.bind(yi);yi.applyPatches.bind(yi);yi.createDraft.bind(yi);yi.finishDraft.bind(yi);function KF(e){return({dispatch:r,getState:n})=>i=>o=>typeof o=="function"?o(r,n,e):i(o)}var aoe=KF(),soe=KF,loe=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?oy:oy.apply(null,arguments)},uoe=e=>e&&typeof e.match=="function";function jn(e,t){function r(...n){if(t){let i=t(...n);if(!i)throw new Error($a(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>Yie(n)&&n.type===e,r}var YF=class Oh extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Oh.prototype)}static get[Symbol.species](){return Oh}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Oh(...t[0].concat(this)):new Oh(...t.concat(this))}};function QR(e){return Ga(e)?GF(e,()=>{}):e}function JR(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function coe(e){return typeof e=="boolean"}var foe=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{};let a=new YF;return r&&(coe(r)?a.push(aoe):a.push(soe(r.extraArgument))),a},doe="RTK_autoBatch",eN=e=>t=>{setTimeout(t,e)},hoe=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);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:eN(10):e.type==="callback"?e.queueNotification:eN(e.timeout),u=()=>{a=!1,o&&(o=!1,s.forEach(h=>h()))};return Object.assign({},n,{subscribe(h){const p=()=>i&&h(),v=n.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[doe]),o=!i,o&&(a||(a=!0,c(u))),n.dispatch(h)}finally{i=!0}}})},poe=e=>function(r){const{autoBatch:n=!0}=r??{};let i=new YF(e);return n&&i.push(hoe(typeof n=="object"?n:void 0)),i};function ZF(e){const t=foe(),{reducer:r=void 0,middleware:n,devTools:i=!0,preloadedState:o=void 0,enhancers:a=void 0}=e||{};let s;if(typeof r=="function")s=r;else if(AT(r))s=kT(r);else throw new Error($a(1));let c;typeof n=="function"?c=n(t):c=t();let u=oy;i&&(u=loe({trace:!1,...typeof i=="object"&&i}));const h=Kie(...c),p=poe(h);let v=typeof a=="function"?a(p):p();const b=u(...v);return BF(s,o,b)}function XF(e){const t={},r=[];let n;const i={addCase(o,a){const s=typeof o=="string"?o:o.type;if(!s)throw new Error($a(28));if(s in t)throw new Error($a(29));return t[s]=a,i},addMatcher(o,a){return r.push({matcher:o,reducer:a}),i},addDefaultCase(o){return n=o,i}};return e(i),[t,r,n]}function moe(e){return typeof e=="function"}function voe(e,t){let[r,n,i]=XF(t),o;if(moe(e))o=()=>QR(e());else{const s=QR(e);o=()=>s}function a(s=o(),c){let u=[r[c.type],...n.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(Ga(h))return GF(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 goe=(e,t)=>uoe(e)?e.match(t):e(t);function yoe(...e){return t=>e.some(r=>goe(r,t))}var boe="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",_oe=(e=21)=>{let t="",r=e;for(;r--;)t+=boe[Math.random()*64|0];return t},xoe=["name","message","stack","code"],I1=class{constructor(e,t){Tc(this,"_type");this.payload=e,this.meta=t}},tN=class{constructor(e,t){Tc(this,"_type");this.payload=e,this.meta=t}},woe=e=>{if(typeof e=="object"&&e!==null){const t={};for(const r of xoe)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},QF=(()=>{function e(t,r,n){const i=jn(t+"/fulfilled",(c,u,h,p)=>({payload:c,meta:{...p||{},arg:h,requestId:u,requestStatus:"fulfilled"}})),o=jn(t+"/pending",(c,u,h)=>({payload:void 0,meta:{...h||{},arg:u,requestId:c,requestStatus:"pending"}})),a=jn(t+"/rejected",(c,u,h,p,v)=>({payload:p,error:(n&&n.serializeError||woe)(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=n!=null&&n.idGenerator?n.idGenerator(c):_oe(),b=new AbortController;let _,x;function w(P){x=P,b.abort()}const O=async function(){var T,A;let P;try{let j=(T=n==null?void 0:n.condition)==null?void 0:T.call(n,c,{getState:h,extra:p});if(Soe(j)&&(j=await j),j===!1||b.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const N=new Promise((F,V)=>{_=()=>{V({name:"AbortError",message:x||"Aborted"})},b.signal.addEventListener("abort",_)});u(o(v,c,(A=n==null?void 0:n.getPendingMeta)==null?void 0:A.call(n,{requestId:v,arg:c},{getState:h,extra:p}))),P=await Promise.race([N,Promise.resolve(r(c,{dispatch:u,getState:h,extra:p,requestId:v,signal:b.signal,abort:w,rejectWithValue:(F,V)=>new I1(F,V),fulfillWithValue:(F,V)=>new tN(F,V)})).then(F=>{if(F instanceof I1)throw F;return F instanceof tN?i(F.payload,v,c,F.meta):i(F,v,c)})])}catch(j){P=j instanceof I1?a(null,v,c,j.payload,j.meta):a(j,v,c)}finally{_&&b.signal.removeEventListener("abort",_)}return n&&!n.dispatchConditionRejection&&a.match(P)&&P.meta.condition||u(P),P}();return Object.assign(O,{abort:w,requestId:v,arg:c,unwrap(){return O.then(Ooe)}})}}return Object.assign(s,{pending:o,rejected:a,fulfilled:i,settled:yoe(a,i),typePrefix:t})}return e.withTypes=()=>e,e})();function Ooe(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Soe(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Poe=Symbol.for("rtk-slice-createasyncthunk");function Eoe(e,t){return`${e}/${t}`}function Coe({creators:e}={}){var r;const t=(r=e==null?void 0:e.asyncThunk)==null?void 0:r[Poe];return function(i){const{name:o,reducerPath:a=o}=i;if(!o)throw new Error($a(11));typeof process<"u";const s=(typeof i.reducers=="function"?i.reducers(joe()):i.reducers)||{},c=Object.keys(s),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},h={addCase(C,T){const A=typeof C=="string"?C:C.type;if(!A)throw new Error($a(12));if(A in u.sliceCaseReducersByType)throw new Error($a(13));return u.sliceCaseReducersByType[A]=T,h},addMatcher(C,T){return u.sliceMatchers.push({matcher:C,reducer:T}),h},exposeAction(C,T){return u.actionCreators[C]=T,h},exposeCaseReducer(C,T){return u.sliceCaseReducersByName[C]=T,h}};c.forEach(C=>{const T=s[C],A={reducerName:C,type:Eoe(o,C),createNotation:typeof i.reducers=="function"};koe(T)?Noe(A,T,h,t):Aoe(A,T,h)});function p(){const[C={},T=[],A=void 0]=typeof i.extraReducers=="function"?XF(i.extraReducers):[i.extraReducers],j={...C,...u.sliceCaseReducersByType};return voe(i.initialState,N=>{for(let F in j)N.addCase(F,j[F]);for(let F of u.sliceMatchers)N.addMatcher(F.matcher,F.reducer);for(let F of T)N.addMatcher(F.matcher,F.reducer);A&&N.addDefaultCase(A)})}const v=C=>C,b=new Map;let _;function x(C,T){return _||(_=p()),_(C,T)}function w(){return _||(_=p()),_.getInitialState()}function O(C,T=!1){function A(N){let F=N[C];return typeof F>"u"&&T&&(F=w()),F}function j(N=v){const F=JR(b,T,()=>new WeakMap);return JR(F,N,()=>{const V={};for(const[B,W]of Object.entries(i.selectors??{}))V[B]=Toe(W,N,w,T);return V})}return{reducerPath:C,getSelectors:j,get selectors(){return j(A)},selectSlice:A}}const P={name:o,reducer:x,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:w,...O(a),injectInto(C,{reducerPath:T,...A}={}){const j=T??a;return C.inject({reducerPath:j,reducer:x},A),{...P,...O(j,!0)}}};return P}}function Toe(e,t,r,n){function i(o,...a){let s=t(o);return typeof s>"u"&&n&&(s=r()),e(s,...a)}return i.unwrapped=e,i}var Tr=Coe();function joe(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function Aoe({type:e,reducerName:t,createNotation:r},n,i){let o,a;if("reducer"in n){if(r&&!Roe(n))throw new Error($a(17));o=n.reducer,a=n.prepare}else o=n;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,a?jn(e,a):jn(e))}function koe(e){return e._reducerDefinitionType==="asyncThunk"}function Roe(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Noe({type:e,reducerName:t},r,n,i){if(!i)throw new Error($a(18));const{payloadCreator:o,fulfilled:a,pending:s,rejected:c,settled:u,options:h}=r,p=i(e,o,h);n.exposeAction(t,p),a&&n.addCase(p.fulfilled,a),s&&n.addCase(p.pending,s),c&&n.addCase(p.rejected,c),u&&n.addMatcher(p.settled,u),n.exposeCaseReducer(t,{fulfilled:a||qv,pending:s||qv,rejected:c||qv,settled:u||qv})}function qv(){}function $a(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:Moe,reducer:Loe}=Tr({name:"shlink/appUpdates",initialState:!1,reducers:{appUpdateAvailable:()=>!0,resetAppUpdate:()=>!1}}),{appUpdateAvailable:Ioe,resetAppUpdate:Doe}=Moe,$oe=Loe,Foe=(e,t)=>{e.factory("App",Wie),e.decorator("App",t(["servers","settings","appUpdated"],["fetchServers","resetAppUpdate"])),e.serviceFactory("appUpdateAvailable",()=>Ioe),e.serviceFactory("resetAppUpdate",()=>Doe)},rN={"Content-Type":"application/json"},nN=e=>e!=null&&e.body?e?{...e,headers:{...e.headers??{},...rN}}:{headers:rN}:e;class Boe{constructor(t=window.fetch.bind(window)){this.fetch=t}async jsonRequest(t,r){const n=await this.fetch(t,nN(r)),i=await n.json();if(!n.ok)throw i;return i}async emptyRequest(t,r){const n=await this.fetch(t,nN(r));if(!n.ok)throw await n.json()}}var MT=(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))(MT||{});const Uoe=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,iN=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const t=e.match(Uoe);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},oN=e=>e==="*"||e==="x"||e==="X",aN=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},zoe=(e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t],Voe=(e,t)=>{if(oN(e)||oN(t))return 0;const[r,n]=zoe(aN(e),aN(t));return r>n?1:r<n?-1:0},sN=(e,t)=>{for(let r=0;r<Math.max(e.length,t.length);r++){const n=Voe(e[r]||"0",t[r]||"0");if(n!==0)return n}return 0},Woe=(e,t)=>{const r=iN(e),n=iN(t),i=r.pop(),o=n.pop(),a=sN(r,n);return a!==0?a:i&&o?sN(i.split("."),o.split(".")):i||o?i?-1:1:0},HP=(e,t,r)=>{qoe(r);const n=Woe(e,t);return JF[r].includes(n)},JF={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},lN=Object.keys(JF),qoe=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(lN.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${lN.join("|")}`)},e7=(e,t)=>e.reduce((r,n)=>{const i=t(n);return r[i]=(r[i]||0)+1,r},{}),t7=(e,t)=>e.reduce((r,n)=>{const i=t(n);return(r[i]=r[i]||[]).push(n),r},{}),D1=e=>Object.prototype.toString.call(e)==="[object Object]",r7=(e,t)=>{const r={};return(...n)=>{const i=e(...n);if(r[i])return r[i];const o=t(...n);return r[i]=o,o}},W0=(e,t)=>{const r={...e};return!D1(e)||!D1(t)||Object.keys(t).forEach(n=>{D1(t[n])?r[n]=n in e&&e[n]!==void 0?W0(e[n],t[n]):{...t[n]}:r[n]=t[n]}),r},LT=(e,t)=>Array.from({length:t-e},(r,n)=>e+n),Hoe=(e,t)=>[...e].sort((r,n)=>{const i=t(r),o=t(n);return i===o?0:i<o?-1:1}),ef=(e,t)=>{const r=[];for(let n=0;n<e.length;n+=t)r.push(e.slice(n,n+t));return r},uN=(e,t)=>Object.fromEntries(e.map((r,n)=>[r,t[n]])),Gn=({href:e,children:t,rel:r,...n})=>g.jsx("a",{target:"_blank",rel:`noopener noreferrer${r?` ${r}`:""}`,href:e,...n,children:t??e}),Goe="Left",Koe="Right",Yoe="Up",Zoe="Down",Gc={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},GP={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},cN="mousemove",fN="mouseup",Xoe="touchend",Qoe="touchmove",Joe="touchstart";function eae(e,t,r,n){return e>t?r>0?Koe:Goe:n>0?Zoe:Yoe}function dN(e,t){if(t===0)return e;const r=Math.PI/180*t,n=e[0]*Math.cos(r)+e[1]*Math.sin(r),i=e[1]*Math.cos(r)-e[0]*Math.sin(r);return[n,i]}function tae(e,t){const r=h=>{const p="touches"in h;p&&h.touches.length>1||e((v,b)=>{b.trackMouse&&!p&&(document.addEventListener(cN,n),document.addEventListener(fN,a));const{clientX:_,clientY:x}=p?h.touches[0]:h,w=dN([_,x],b.rotationAngle);return b.onTouchStartOrOnMouseDown&&b.onTouchStartOrOnMouseDown({event:h}),Object.assign(Object.assign(Object.assign({},v),GP),{initial:w.slice(),xy:w,start:h.timeStamp||0})})},n=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:_,clientY:x}=b?h.touches[0]:h,[w,O]=dN([_,x],v.rotationAngle),P=w-p.xy[0],C=O-p.xy[1],T=Math.abs(P),A=Math.abs(C),j=(h.timeStamp||0)-p.start,N=Math.sqrt(T*T+A*A)/(j||1),F=[P/(j||1),C/(j||1)],V=eae(T,A,P,C),B=typeof v.delta=="number"?v.delta:v.delta[V.toLowerCase()]||Gc.delta;if(T<B&&A<B&&!p.swiping)return p;const W={absX:T,absY:A,deltaX:P,deltaY:C,dir:V,event:h,first:p.first,initial:p.initial,velocity:N,vxvy:F};W.first&&v.onSwipeStart&&v.onSwipeStart(W),v.onSwiping&&v.onSwiping(W);let q=!1;return(v.onSwiping||v.onSwiped||v[`onSwiped${V}`])&&(q=!0),q&&v.preventScrollOnSwipe&&v.trackTouch&&h.cancelable&&h.preventDefault(),Object.assign(Object.assign({},p),{first:!1,eventData:W,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 _=v[`onSwiped${b.dir}`];_&&_(b)}}else v.onTap&&v.onTap({event:h});return v.onTouchEndOrOnMouseUp&&v.onTouchEndOrOnMouseUp({event:h}),Object.assign(Object.assign(Object.assign({},p),GP),{eventData:b})})},o=()=>{document.removeEventListener(cN,n),document.removeEventListener(fN,a)},a=h=>{o(),i(h)},s=(h,p)=>{let v=()=>{};if(h&&h.addEventListener){const b=Object.assign(Object.assign({},Gc.touchEventOptions),p.touchEventOptions),_=[[Joe,r,b],[Qoe,n,Object.assign(Object.assign({},b),p.preventScrollOnSwipe?{passive:!1}:{})],[Xoe,i,b]];_.forEach(([x,w,O])=>h.addEventListener(x,w,O)),v=()=>_.forEach(([x,w])=>h.removeEventListener(x,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=r),[u,s]}function rae(e,t,r,n){return!t.trackTouch||!e.el?(e.cleanUpTouch&&e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:void 0})):e.cleanUpTouch?t.preventScrollOnSwipe!==r.preventScrollOnSwipe||t.touchEventOptions.passive!==r.touchEventOptions.passive?(e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:n(e.el,t)})):e:Object.assign(Object.assign({},e),{cleanUpTouch:n(e.el,t)})}function nae(e){const{trackMouse:t}=e,r=I.useRef(Object.assign({},GP)),n=I.useRef(Object.assign({},Gc)),i=I.useRef(Object.assign({},n.current));i.current=Object.assign({},n.current),n.current=Object.assign(Object.assign({},Gc),e);let o;for(o in Gc)n.current[o]===void 0&&(n.current[o]=Gc[o]);const[a,s]=I.useMemo(()=>tae(c=>r.current=c(r.current,n.current),{trackMouse:t}),[t]);return r.current=rae(r.current,n.current,i.current,s),a}var Sh={exports:{}};/** @license
|
||
* eventsource.js
|
||
* Available under MIT License (MIT)
|
||
* https://github.com/Yaffle/EventSource/
|
||
*/var iae=Sh.exports,hN;function oae(){return hN||(hN=1,function(e,t){(function(r){var n=r.setTimeout,i=r.clearTimeout,o=r.XMLHttpRequest,a=r.XDomainRequest,s=r.ActiveXObject,c=r.EventSource,u=r.document,h=r.Promise,p=r.fetch,v=r.Response,b=r.TextDecoder,_=r.TextEncoder,x=r.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 Ce(){}return Ce.prototype=ge,new Ce}),Date.now||(Date.now=function(){return new Date().getTime()}),x==null){var w=p;p=function(ge,Ce){var je=Ce.signal;return w(ge,{headers:Ce.headers,credentials:Ce.credentials,cache:Ce.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}}}})},x=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 Ce(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="",Be=this.bitsNeeded,qe=this.codePoint,ye=0;ye<ge.length;ye+=1){var we=ge[ye];Be!==0&&(we<128||we>191||!Ce(qe<<6|we&63,Be-6,je(Be,qe)))&&(Be=0,qe=Me,He+=String.fromCharCode(qe)),Be===0?(we>=0&&we<=127?(Be=0,qe=we):we>=192&&we<=223?(Be=6*1,qe=we&31):we>=224&&we<=239?(Be=6*2,qe=we&15):we>=240&&we<=247?(Be=6*3,qe=we&7):(Be=0,qe=Me),Be!==0&&!Ce(qe,Be,je(Be,qe))&&(Be=0,qe=Me)):(Be-=6,qe=qe<<6|we&63),Be===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=Be,this.codePoint=qe,He};var P=function(){try{return new b().decode(new _().encode("test"),{stream:!0})==="test"}catch(ge){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+ge)}return!1};(b==null||_==null||!P())&&(b=O);var C=function(){};function T(ge){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=C,this.onload=C,this.onerror=C,this.onreadystatechange=C,this._contentType="",this._xhr=ge,this._sendTimeout=0,this._abort=C}T.prototype.open=function(ge,Ce){this._abort(!0);var je=this,Me=this._xhr,He=1,Be=0;this._abort=function(De){je._sendTimeout!==0&&(i(je._sendTimeout),je._sendTimeout=0),(He===1||He===2||He===3)&&(He=4,Me.onload=C,Me.onerror=C,Me.onabort=C,Me.onprogress=C,Me.onreadystatechange=C,Me.abort(),Be!==0&&(i(Be),Be=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:C}),ye(),He===1||He===2||He===3){if(He=4,Be!==0&&(i(Be),Be=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(){Be=n(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))&&(Ce+=(Ce.indexOf("?")===-1?"?":"&")+"padding=true"),Me.open(ge,Ce,!0),"readyState"in Me&&(Be=n(function(){ke()},0))},T.prototype.abort=function(){this._abort(!1)},T.prototype.getResponseHeader=function(ge){return this._contentType},T.prototype.setRequestHeader=function(ge,Ce){var je=this._xhr;"setRequestHeader"in je&&je.setRequestHeader(ge,Ce)},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=n(function(){ge._sendTimeout=0,ge.send()},4);return}var Ce=this._xhr;"withCredentials"in Ce&&(Ce.withCredentials=this.withCredentials);try{Ce.send(void 0)}catch(je){throw je}};function A(ge){return ge.replace(/[A-Z]/g,function(Ce){return String.fromCharCode(Ce.charCodeAt(0)+32)})}function j(ge){for(var Ce=Object.create(null),je=ge.split(`\r
|
||
`),Me=0;Me<je.length;Me+=1){var He=je[Me],Be=He.split(": "),qe=Be.shift(),ye=Be.join(": ");Ce[A(qe)]=ye}this._map=Ce}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,Ce,je,Me,He,Be,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();Ce(Ae,ke,De,new j(Ke))}},ge.withCredentials=Be;for(var we in qe)Object.prototype.hasOwnProperty.call(qe,we)&&ge.setRequestHeader(we,qe[we]);return ge.send(),ge};function F(ge){this._headers=ge}F.prototype.get=function(ge){return this._headers.get(ge)};function V(){}V.prototype.open=function(ge,Ce,je,Me,He,Be,qe){var ye=null,we=new x,Ae=we.signal,ke=new b;return p(He,{headers:qe,credentials:Be?"include":"same-origin",signal:Ae,cache:"no-store"}).then(function(De){return ye=De.body.getReader(),Ce(De.status,De.statusText,De.headers.get("Content-Type"),new F(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 W(ge){n(function(){throw ge},0)}B.prototype.dispatchEvent=function(ge){ge.target=this;var Ce=this._listeners[ge.type];if(Ce!=null)for(var je=Ce.length,Me=0;Me<je;Me+=1){var He=Ce[Me];try{typeof He.handleEvent=="function"?He.handleEvent(ge):He.call(this,ge)}catch(Be){W(Be)}}},B.prototype.addEventListener=function(ge,Ce){ge=String(ge);var je=this._listeners,Me=je[ge];Me==null&&(Me=[],je[ge]=Me);for(var He=!1,Be=0;Be<Me.length;Be+=1)Me[Be]===Ce&&(He=!0);He||Me.push(Ce)},B.prototype.removeEventListener=function(ge,Ce){ge=String(ge);var je=this._listeners,Me=je[ge];if(Me!=null){for(var He=[],Be=0;Be<Me.length;Be+=1)Me[Be]!==Ce&&He.push(Me[Be]);He.length===0?delete je[ge]:je[ge]=He}};function q(ge){this.type=ge,this.target=void 0}function J(ge,Ce){q.call(this,ge),this.data=Ce.data,this.lastEventId=Ce.lastEventId}J.prototype=Object.create(q.prototype);function Q(ge,Ce){q.call(this,ge),this.status=Ce.status,this.statusText=Ce.statusText,this.headers=Ce.headers}Q.prototype=Object.create(q.prototype);function ne(ge,Ce){q.call(this,ge),this.error=Ce.error}ne.prototype=Object.create(q.prototype);var ae=-1,se=0,oe=1,K=2,G=-1,z=0,re=1,X=2,le=3,ce=/^text\/event\-stream(;.*)?$/i,de=1e3,be=18e6,M=function(ge,Ce){var je=ge==null?Ce:parseInt(ge,10);return je!==je&&(je=Ce),$(je)},$=function(ge){return Math.min(Math.max(ge,de),be)},Y=function(ge,Ce,je){try{typeof Ce=="function"&&Ce.call(ge,je)}catch(Me){W(Me)}};function ue(ge,Ce){B.call(this),Ce=Ce||{},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,Ce)}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,Ce,je){Ce=String(Ce);var Me=!!je.withCredentials,He=je.lastEventIdQueryParameterName||"lastEventId",Be=$(1e3),qe=M(je.heartbeatTimeout,45e3),ye="",we=Be,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 V:new N,Ot=void 0,xt=0,Jt=ae,Gt="",jr="",Lr="",Nn="",Pr=z,fa=0,Mn=0,Ji=function(dr,or,Ir,Ar){if(Jt===se)if(dr===200&&Ir!=null&&ce.test(Ir)){Jt=oe,Ae=Date.now(),we=Be,ge.readyState=oe;var hr=new Q("open",{status:dr,statusText:or,headers:Ar});ge.dispatchEvent(hr),Y(ge,ge.onopen,hr)}else{var pr="";dr!==200?(or&&(or=or.replace(/\s+/g," ")),pr="EventSource's response has a status "+dr+" "+or+" that is not 200. Aborting the connection."):pr="EventSource's response has a Content-Type specifying an unsupported type: "+(Ir==null?"-":Ir.replace(/\s+/g," "))+". Aborting the connection.",is();var hr=new Q("error",{status:dr,statusText:or,headers:Ar});ge.dispatchEvent(hr),Y(ge,ge.onerror,hr),console.error(pr)}},eo=function(dr){if(Jt===oe){for(var or=-1,Ir=0;Ir<dr.length;Ir+=1){var Ar=dr.charCodeAt(Ir);(Ar===10||Ar===13)&&(or=Ir)}var hr=(or!==-1?Nn:"")+dr.slice(0,or+1);Nn=(or===-1?Nn:"")+dr.slice(or+1),dr!==""&&(Ae=Date.now(),ke+=dr.length);for(var pr=0;pr<hr.length;pr+=1){var Ar=hr.charCodeAt(pr);if(Pr===G&&Ar===10)Pr=z;else if(Pr===G&&(Pr=z),Ar===13||Ar===10){if(Pr!==z){Pr===re&&(Mn=pr+1);var en=hr.slice(fa,Mn-1),Xn=hr.slice(Mn+(Mn<pr&&hr.charCodeAt(Mn)===32?1:0),pr);en==="data"?(Gt+=`
|
||
`,Gt+=Xn):en==="id"?jr=Xn:en==="event"?Lr=Xn:en==="retry"?(Be=M(Xn,Be),we=Be):en==="heartbeatTimeout"&&(qe=M(Xn,qe),xt!==0&&(i(xt),xt=n(function(){Ro()},qe)))}if(Pr===z){if(Gt!==""){ye=jr,Lr===""&&(Lr="message");var mr=new J(Lr,{data:Gt.slice(1),lastEventId:jr});if(ge.dispatchEvent(mr),Lr==="open"?Y(ge,ge.onopen,mr):Lr==="message"?Y(ge,ge.onmessage,mr):Lr==="error"&&Y(ge,ge.onerror,mr),Jt===K)return}Gt="",Lr=""}Pr=Ar===13?G:z}else Pr===z&&(fa=pr,Pr=re),Pr===re?Ar===58&&(Mn=pr+1,Pr=X):Pr===X&&(Pr=le)}}},xl=function(dr){if(Jt===oe||Jt===se){Jt=ae,xt!==0&&(i(xt),xt=0),xt=n(function(){Ro()},we),we=$(Math.min(Be*16,we*2)),ge.readyState=se;var or=new ne("error",{error:dr});ge.dispatchEvent(or),Y(ge,ge.onerror,or),dr!=null&&console.error(dr)}},is=function(){Jt=K,Ot!=null&&(Ot.abort(),Ot=void 0),xt!==0&&(i(xt),xt=0),ge.readyState=K},Ro=function(){if(xt=0,Jt!==ae){if(!Ae&&Ot!=null)xl(new Error("No activity within "+qe+" milliseconds. "+(Jt===se?"No response received.":ke+" chars received.")+" Reconnecting.")),Ot!=null&&(Ot.abort(),Ot=void 0);else{var dr=Math.max((Ae||Date.now())+qe-Date.now(),1);Ae=!1,xt=n(function(){Ro()},dr)}return}Ae=!1,ke=0,xt=n(function(){Ro()},qe),Jt=se,Gt="",Lr="",jr=ye,Nn="",fa=0,Mn=0,Pr=z;var or=Ce;if(Ce.slice(0,5)!=="data:"&&Ce.slice(0,5)!=="blob:"&&ye!==""){var Ir=Ce.indexOf("?");or=Ir===-1?Ce:Ce.slice(0,Ir+1)+Ce.slice(Ir+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(Xn,mr){return mr===He?"":Xn}),or+=(Ce.indexOf("?")===-1?"?":"&")+He+"="+encodeURIComponent(ye)}var Ar=ge.withCredentials,hr={};hr.Accept="text/event-stream";var pr=ge.headers;if(pr!=null)for(var en in pr)Object.prototype.hasOwnProperty.call(pr,en)&&(hr[en]=pr[en]);try{Ot=bt.open(Xe,Ji,eo,xl,or,Ar,hr)}catch(Xn){throw is(),Xn}};ge.url=Ce,ge.readyState=se,ge.withCredentials=Me,ge.headers=De,ge._close=is,Ro()}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 Ce=ge(t);Ce!==void 0&&(e.exports=Ce)}}(function(ge){ge.EventSourcePolyfill=ue,ge.NativeEventSource=c,ge.EventSource=Fe})})(typeof globalThis>"u"?typeof window<"u"?window:typeof self<"u"?self:iae:globalThis)}(Sh,Sh.exports)),Sh.exports}var aae=oae();const Xs=({children:e})=>g.jsx("small",{className:"form-text text-muted d-block",children:e}),sae=({toggleRealTimeUpdates:e,setRealTimeUpdatesInterval:t})=>{const{enabled:r,interval:n}=Rn("realTimeUpdates",{enabled:!0}),i=I.useId();return g.jsxs(Wt,{title:"Real-time updates",className:"h-100",children:[g.jsx(Jg,{children:g.jsxs(Ha,{checked:r,onChange:e,children:["Enable or disable real-time updates.",g.jsxs(Xs,{children:["Real-time updates are currently being ",g.jsx("b",{children:r?"processed":"ignored"}),"."]})]})}),g.jsxs(Zf,{noMargin:!0,label:"Real-time updates frequency (in minutes):",labelClassName:ze("form-label",{"text-muted":!r}),id:i,children:[g.jsx(Zr,{type:"number",min:0,placeholder:"Immediate",disabled:!r,value:`${n??""}`,id:i,onChange:({target:o})=>t(Number(o.value))}),r&&g.jsx(Xs,{children:n?g.jsxs("span",{children:["Updates will be reflected in the UI every ",g.jsx("b",{children:n})," minute",n>1&&"s","."]}):"Updates will be reflected in the UI as soon as they happen."})]})]})},$1=e=>e==="includes"?"Suggest tags including input":"Suggest tags starting with input",lae=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."]}),uae=({updateShortUrlCreationSettings:e})=>{const t=Rn("shortUrlCreation",{validateUrls:!1}),r=n=>()=>e({...t??{validateUrls:!1},tagFilteringMode:n});return g.jsxs(Wt,{title:"Short URLs form",className:"h-100",bodyClassName:"d-flex flex-column gap-3",children:[g.jsxs(Ha,{checked:t.validateUrls??!1,onChange:n=>e({...t,validateUrls:n}),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(Xs,{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(Ha,{checked:t.forwardQuery??!0,onChange:n=>e({...t,forwardQuery:n}),children:["Make all new short URLs forward their query params to the long URL.",g.jsxs(Xs,{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(Zf,{noMargin:!0,label:"Tag suggestions search mode:",children:[g.jsxs(es,{text:$1(t.tagFilteringMode),children:[g.jsx(Ye,{active:!t.tagFilteringMode||t.tagFilteringMode==="startsWith",onClick:r("startsWith"),children:$1("startsWith")}),g.jsx(Ye,{active:t.tagFilteringMode==="includes",onClick:r("includes"),children:$1("includes")})]}),g.jsx(Xs,{children:lae(t.tagFilteringMode)})]})]})},cae={dateCreated:"Created at",shortCode:"Short URL",longUrl:"Long URL",title:"Title",visits:"Visits"},fae=({updateShortUrlsListSettings:e,defaultOrdering:t})=>{const r=Rn("shortUrlsList"),n=(r==null?void 0:r.confirmDeletions)??!0;return g.jsxs(Wt,{title:"Short URLs list",className:"h-100",bodyClassName:"d-flex flex-column gap-3",children:[g.jsxs(Ha,{checked:n,onChange:i=>e({...r,confirmDeletions:i}),children:["Request confirmation before deleting a short URL.",g.jsxs(Xs,{children:["When deleting a short URL, confirmation ",g.jsx("b",{children:n?"will":"won't"})," be required."]})]}),g.jsx(Zf,{noMargin:!0,label:"Default ordering for short URLs list:",children:g.jsx(om,{items:cae,order:(r==null?void 0:r.defaultOrdering)??t,onChange:(i,o)=>e({defaultOrdering:{field:i,dir:o}})})})]})},dae={tag:"Tag",shortUrls:"Short URLs",visits:"Visits"},hae=({updateTagsSettings:e})=>{const t=Rn("tags",{});return g.jsx(Wt,{title:"Tags",className:"h-100",children:g.jsx(Zf,{noMargin:!0,label:"Default ordering for tags list:",children:g.jsx(om,{items:dae,order:t.defaultOrdering??{},onChange:(r,n)=>e({...t,defaultOrdering:{field:r,dir:n}})})})})},pae=({updateUiSettings:e,_matchMedia:t})=>{const r=Rn("ui"),n=I.useMemo(()=>(r==null?void 0:r.theme)??jT(t),[r==null?void 0:r.theme,t]);return g.jsxs(Wt,{title:"User interface",className:"h-100",bodyClassName:"d-flex justify-content-between align-items-center",children:[g.jsx(Ha,{checked:n==="dark",onChange:i=>{e({...r,theme:i?"dark":"light"})},children:"Use dark theme."}),g.jsx(Ge,{icon:n==="dark"?wY:cY})]})},n7={today:"Today",yesterday:"Yesterday",last7Days:"Last 7 days",last30Days:"Last 30 days",last90Days:"Last 90 days",last180Days:"Last 180 days",last365Days:"Last 365 days"},mae=(e,t)=>!e||e==="all"?t:n7[e],vae=({onChange:e,active:t,allText:r})=>g.jsxs(es,{text:mae(t,r),children:[g.jsx(Ye,{active:t==="all",onClick:()=>e("all"),children:r}),g.jsx(Ye,{divider:!0}),Object.entries(n7).map(([n,i])=>g.jsx(Ye,{active:t===n,onClick:()=>e(n),children:i},n))]}),pN=e=>(e==null?void 0:e.defaultInterval)??"last30Days",gae=({updateVisitsSettings:e})=>{const t=Rn("visits"),r=I.useCallback(({defaultInterval:n,...i})=>e({defaultInterval:n??pN(t),...i}),[e,t]);return g.jsxs(Wt,{title:"Visits",className:"h-100",children:[g.jsx(Jg,{children:g.jsxs(Ha,{checked:!!(t!=null&&t.excludeBots),onChange:n=>r({excludeBots:n}),children:["Exclude bots wherever possible (this option‘s effect might depend on Shlink server‘s version).",g.jsxs(Xs,{children:["The visits coming from potential bots will be ",g.jsx("b",{children:t!=null&&t.excludeBots?"excluded":"included"}),"."]})]})}),g.jsx(Jg,{children:g.jsxs(Ha,{checked:!!(t!=null&&t.loadPrevInterval),onChange:n=>r({loadPrevInterval:n}),children:["Compare visits with previous period.",g.jsxs(Xs,{children:["When loading visits, previous period ",g.jsx("b",{children:t!=null&&t.loadPrevInterval?"will":"won't"})," be loaded by default."]})]})}),g.jsx(Zf,{noMargin:!0,label:"Default interval to load on visits sections:",children:g.jsx(vae,{allText:"All visits",active:pN(t),onChange:n=>r({defaultInterval:n})})})]})},F1=({children:e})=>I.Children.map(e,(t,r)=>g.jsx("div",{className:"mb-3",children:t},r)),yae=({settings:e,updateSettings:t,defaultShortUrlsListOrdering:r})=>{const n=I.useCallback(s=>t(W0(e,s)),[e,t]),i=I.useCallback(s=>n({realTimeUpdates:{enabled:s}}),[n]),o=I.useCallback(s=>n({realTimeUpdates:{interval:s}}),[n]),a=I.useCallback((s,c)=>n({[s]:c}),[n]);return g.jsxs(a7,{value:e,children:[g.jsxs(IF,{className:"mb-3",children:[g.jsx(Ih,{to:"../general",children:"General"}),g.jsx(Ih,{to:"../short-urls",children:"Short URLs"}),g.jsx(Ih,{to:"../other-items",children:"Other items"})]}),g.jsxs(E0,{children:[g.jsx(Pt,{path:"general",element:g.jsxs(F1,{children:[g.jsx(pae,{updateUiSettings:s=>a("ui",s)}),g.jsx(sae,{toggleRealTimeUpdates:i,setRealTimeUpdatesInterval:o})]})}),g.jsx(Pt,{path:"short-urls",element:g.jsxs(F1,{children:[g.jsx(uae,{updateShortUrlCreationSettings:s=>a("shortUrlCreation",s)}),g.jsx(fae,{defaultOrdering:r,updateShortUrlsListSettings:s=>a("shortUrlsList",s)})]})}),g.jsx(Pt,{path:"other-items",element:g.jsxs(F1,{children:[g.jsx(hae,{updateTagsSettings:s=>a("tags",s)}),g.jsx(gae,{updateVisitsSettings:s=>a("visits",s)})]})}),g.jsx(Pt,{path:"*",element:g.jsx($C,{replace:!0,to:"../general"})})]})]})},i7={realTimeUpdates:{enabled:!0},shortUrlCreation:{validateUrls:!1},visits:{defaultInterval:"last30Days"},shortUrlsList:{defaultOrdering:{field:"dateCreated",dir:"DESC"}}},o7=I.createContext(i7),{Provider:a7}=o7,IT=()=>I.useContext(o7)??i7;function Rn(e,t){return IT()[e]??t}/*!
|
||
* Font Awesome Free 6.7.2 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 bae={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"]},_ae=bae,xae={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"]},s7={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"]},DT=6048e5,wae=864e5,l7=6e4,$T=36e5,Hv=43200,mN=1440,vN=Symbol.for("constructDateFrom");function an(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&vN in e?e[vN](t):e instanceof Date?new e.constructor(t):new Date(t)}function At(e,t){return an(t||e,e)}function FT(e,t,r){const n=At(e,r==null?void 0:r.in);return isNaN(t)?an(e,NaN):(t&&n.setDate(n.getDate()+t),n)}function Oae(e,t,r){const n=At(e,r==null?void 0:r.in);if(isNaN(t))return an(e,NaN);if(!t)return n;const i=n.getDate(),o=an(e,n.getTime());o.setMonth(n.getMonth()+t+1,0);const a=o.getDate();return i>=a?o:(n.setFullYear(o.getFullYear(),o.getMonth(),i),n)}function Sae(e,t,r){const{years:n=0,months:i=0,weeks:o=0,days:a=0,hours:s=0,minutes:c=0,seconds:u=0}=t,h=At(e,r==null?void 0:r.in),p=i||n?Oae(h,i+n*12):h,v=a||o?FT(p,a+o*7):p,b=c+s*60,x=(u+b*60)*1e3;return an(e,+v+x)}let Pae={};function sm(){return Pae}function Pu(e,t){var s,c,u,h;const r=sm(),n=(t==null?void 0:t.weekStartsOn)??((c=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:c.weekStartsOn)??r.weekStartsOn??((h=(u=r.locale)==null?void 0:u.options)==null?void 0:h.weekStartsOn)??0,i=At(e,t==null?void 0:t.in),o=i.getDay(),a=(o<n?7:0)+o-n;return i.setDate(i.getDate()-a),i.setHours(0,0,0,0),i}function up(e,t){return Pu(e,{...t,weekStartsOn:1})}function u7(e,t){const r=At(e,t==null?void 0:t.in),n=r.getFullYear(),i=an(r,0);i.setFullYear(n+1,0,4),i.setHours(0,0,0,0);const o=up(i),a=an(r,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);const s=up(a);return r.getTime()>=o.getTime()?n+1:r.getTime()>=s.getTime()?n:n-1}function pf(e){const t=At(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function Mu(e,...t){const r=an.bind(null,e||t.find(n=>typeof n=="object"));return t.map(r)}function Eu(e,t){const r=At(e,t==null?void 0:t.in);return r.setHours(0,0,0,0),r}function q0(e,t,r){const[n,i]=Mu(r==null?void 0:r.in,e,t),o=Eu(n),a=Eu(i),s=+o-pf(o),c=+a-pf(a);return Math.round((s-c)/wae)}function Eae(e,t){const r=u7(e,t),n=an(e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),up(n)}function c7(e,t){let r,n=t==null?void 0:t.in;return e.forEach(i=>{!n&&typeof i=="object"&&(n=an.bind(null,i));const o=At(i,n);(!r||r<o||isNaN(+o))&&(r=o)}),an(n,r||NaN)}function Cae(e,t){let r,n=t==null?void 0:t.in;return e.forEach(i=>{!n&&typeof i=="object"&&(n=an.bind(null,i));const o=At(i,n);(!r||r>o||isNaN(+o))&&(r=o)}),an(n,r||NaN)}function Sg(e,t){const r=+At(e)-+At(t);return r<0?-1:r>0?1:r}function Tae(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function jae(e){return!(!Tae(e)&&typeof e!="number"||isNaN(+At(e)))}function ly(e,t,r){const[n,i]=Mu(r==null?void 0:r.in,e,t),o=n.getFullYear()-i.getFullYear(),a=n.getMonth()-i.getMonth();return o*12+a}function Aae(e,t,r){const[n,i]=Mu(r==null?void 0:r.in,e,t),o=Pu(n,r),a=Pu(i,r),s=+o-pf(o),c=+a-pf(a);return Math.round((s-c)/DT)}function f7(e,t,r){const[n,i]=Mu(r==null?void 0:r.in,e,t),o=gN(n,i),a=Math.abs(q0(n,i));n.setDate(n.getDate()-o*a);const s=+(gN(n,i)===-o),c=o*(a-s);return c===0?0:c}function gN(e,t){const r=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 r<0?-1:r>0?1:r}function d7(e){return t=>{const n=(e?Math[e]:Math.trunc)(t);return n===0?0:n}}function kae(e,t,r){const[n,i]=Mu(r==null?void 0:r.in,e,t),o=(+n-+i)/$T;return d7(r==null?void 0:r.roundingMethod)(o)}function Rae(e,t){return+At(e)-+At(t)}function mf(e,t){const r=At(e,t==null?void 0:t.in);return r.setHours(23,59,59,999),r}function Nae(e,t){const r=At(e,t==null?void 0:t.in),n=r.getMonth();return r.setFullYear(r.getFullYear(),n+1,0),r.setHours(23,59,59,999),r}function Mae(e,t){const r=At(e,t==null?void 0:t.in);return+mf(r,t)==+Nae(r,t)}function Lae(e,t,r){const[n,i,o]=Mu(r==null?void 0:r.in,e,e,t),a=Sg(i,o),s=Math.abs(ly(i,o));if(s<1)return 0;i.getMonth()===1&&i.getDate()>27&&i.setDate(30),i.setMonth(i.getMonth()-a*s);let c=Sg(i,o)===-a;Mae(n)&&s===1&&Sg(n,o)===1&&(c=!1);const u=a*(s-+c);return u===0?0:u}function Iae(e,t,r){const n=Rae(e,t)/1e3;return d7(r==null?void 0:r.roundingMethod)(n)}function Dae(e,t){const r=At(e,t==null?void 0:t.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}function $ae(e,t){const r=t==null?void 0:t.weekStartsOn,n=At(e,t==null?void 0:t.in),i=n.getDay(),o=(i<r?-7:0)+6-(i-r);return n.setDate(n.getDate()+o),n.setHours(23,59,59,999),n}function Fae(e,t){return $ae(e,{...t,weekStartsOn:1})}const Bae={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"}},Uae=(e,t,r)=>{let n;const i=Bae[e];return typeof i=="string"?n=i:t===1?n=i.one:n=i.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function B1(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const zae={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Vae={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Wae={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},qae={date:B1({formats:zae,defaultWidth:"full"}),time:B1({formats:Vae,defaultWidth:"full"}),dateTime:B1({formats:Wae,defaultWidth:"full"})},Hae={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Gae=(e,t,r,n)=>Hae[e];function sh(e){return(t,r)=>{const n=r!=null&&r.context?String(r.context):"standalone";let i;if(n==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,s=r!=null&&r.width?String(r.width):a;i=e.formattingValues[s]||e.formattingValues[a]}else{const a=e.defaultWidth,s=r!=null&&r.width?String(r.width):e.defaultWidth;i=e.values[s]||e.values[a]}const o=e.argumentCallback?e.argumentCallback(t):t;return i[o]}}const Kae={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Yae={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Zae={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"]},Xae={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"]},Qae={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"}},Jae={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"}},ese=(e,t)=>{const r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},tse={ordinalNumber:ese,era:sh({values:Kae,defaultWidth:"wide"}),quarter:sh({values:Yae,defaultWidth:"wide",argumentCallback:e=>e-1}),month:sh({values:Zae,defaultWidth:"wide"}),day:sh({values:Xae,defaultWidth:"wide"}),dayPeriod:sh({values:Qae,defaultWidth:"wide",formattingValues:Jae,defaultFormattingWidth:"wide"})};function lh(e){return(t,r={})=>{const n=r.width,i=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;const a=o[0],s=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?nse(s,p=>p.test(a)):rse(s,p=>p.test(a));let u;u=e.valueCallback?e.valueCallback(c):c,u=r.valueCallback?r.valueCallback(u):u;const h=t.slice(a.length);return{value:u,rest:h}}}function rse(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function nse(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function ise(e){return(t,r={})=>{const n=t.match(e.matchPattern);if(!n)return null;const i=n[0],o=t.match(e.parsePattern);if(!o)return null;let a=e.valueCallback?e.valueCallback(o[0]):o[0];a=r.valueCallback?r.valueCallback(a):a;const s=t.slice(i.length);return{value:a,rest:s}}}const ose=/^(\d+)(th|st|nd|rd)?/i,ase=/\d+/i,sse={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},lse={any:[/^b/i,/^(a|c)/i]},use={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},cse={any:[/1/i,/2/i,/3/i,/4/i]},fse={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},dse={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]},hse={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},pse={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]},mse={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},vse={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}},gse={ordinalNumber:ise({matchPattern:ose,parsePattern:ase,valueCallback:e=>parseInt(e,10)}),era:lh({matchPatterns:sse,defaultMatchWidth:"wide",parsePatterns:lse,defaultParseWidth:"any"}),quarter:lh({matchPatterns:use,defaultMatchWidth:"wide",parsePatterns:cse,defaultParseWidth:"any",valueCallback:e=>e+1}),month:lh({matchPatterns:fse,defaultMatchWidth:"wide",parsePatterns:dse,defaultParseWidth:"any"}),day:lh({matchPatterns:hse,defaultMatchWidth:"wide",parsePatterns:pse,defaultParseWidth:"any"}),dayPeriod:lh({matchPatterns:mse,defaultMatchWidth:"any",parsePatterns:vse,defaultParseWidth:"any"})},h7={code:"en-US",formatDistance:Uae,formatLong:qae,formatRelative:Gae,localize:tse,match:gse,options:{weekStartsOn:0,firstWeekContainsDate:1}};function yse(e,t){const r=At(e,t==null?void 0:t.in);return q0(r,Dae(r))+1}function bse(e,t){const r=At(e,t==null?void 0:t.in),n=+up(r)-+Eae(r);return Math.round(n/DT)+1}function p7(e,t){var h,p,v,b;const r=At(e,t==null?void 0:t.in),n=r.getFullYear(),i=sm(),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=an((t==null?void 0:t.in)||e,0);a.setFullYear(n+1,0,o),a.setHours(0,0,0,0);const s=Pu(a,t),c=an((t==null?void 0:t.in)||e,0);c.setFullYear(n,0,o),c.setHours(0,0,0,0);const u=Pu(c,t);return+r>=+s?n+1:+r>=+u?n:n-1}function _se(e,t){var s,c,u,h;const r=sm(),n=(t==null?void 0:t.firstWeekContainsDate)??((c=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:c.firstWeekContainsDate)??r.firstWeekContainsDate??((h=(u=r.locale)==null?void 0:u.options)==null?void 0:h.firstWeekContainsDate)??1,i=p7(e,t),o=an((t==null?void 0:t.in)||e,0);return o.setFullYear(i,0,n),o.setHours(0,0,0,0),Pu(o,t)}function xse(e,t){const r=At(e,t==null?void 0:t.in),n=+Pu(r,t)-+_se(r,t);return Math.round(n/DT)+1}function jt(e,t){const r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}const Bs={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return jt(t==="yy"?n%100:n,t.length)},M(e,t){const r=e.getMonth();return t==="M"?String(r+1):jt(r+1,2)},d(e,t){return jt(e.getDate(),t.length)},a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return jt(e.getHours()%12||12,t.length)},H(e,t){return jt(e.getHours(),t.length)},m(e,t){return jt(e.getMinutes(),t.length)},s(e,t){return jt(e.getSeconds(),t.length)},S(e,t){const r=t.length,n=e.getMilliseconds(),i=Math.trunc(n*Math.pow(10,r-3));return jt(i,t.length)}},Nc={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},yN={G:function(e,t,r){const n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){const n=e.getFullYear(),i=n>0?n:1-n;return r.ordinalNumber(i,{unit:"year"})}return Bs.y(e,t)},Y:function(e,t,r,n){const i=p7(e,n),o=i>0?i:1-i;if(t==="YY"){const a=o%100;return jt(a,2)}return t==="Yo"?r.ordinalNumber(o,{unit:"year"}):jt(o,t.length)},R:function(e,t){const r=u7(e);return jt(r,t.length)},u:function(e,t){const r=e.getFullYear();return jt(r,t.length)},Q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return jt(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return jt(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){const n=e.getMonth();switch(t){case"M":case"MM":return Bs.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){const n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return jt(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){const i=xse(e,n);return t==="wo"?r.ordinalNumber(i,{unit:"week"}):jt(i,t.length)},I:function(e,t,r){const n=bse(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):jt(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):Bs.d(e,t)},D:function(e,t,r){const n=yse(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):jt(n,t.length)},E:function(e,t,r){const n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){const i=e.getDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return jt(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){const i=e.getDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return jt(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,r){const n=e.getDay(),i=n===0?7:n;switch(t){case"i":return String(i);case"ii":return jt(i,t.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,r){const n=e.getHours();let i;switch(n===12?i=Nc.noon:n===0?i=Nc.midnight:i=n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,r){const n=e.getHours();let i;switch(n>=17?i=Nc.evening:n>=12?i=Nc.afternoon:n>=4?i=Nc.morning:i=Nc.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return Bs.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):Bs.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):jt(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):jt(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):Bs.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):Bs.s(e,t)},S:function(e,t){return Bs.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return _N(n);case"XXXX":case"XX":return tu(n);case"XXXXX":case"XXX":default:return tu(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return _N(n);case"xxxx":case"xx":return tu(n);case"xxxxx":case"xxx":default:return tu(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+bN(n,":");case"OOOO":default:return"GMT"+tu(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+bN(n,":");case"zzzz":default:return"GMT"+tu(n,":")}},t:function(e,t,r){const n=Math.trunc(+e/1e3);return jt(n,t.length)},T:function(e,t,r){return jt(+e,t.length)}};function bN(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),i=Math.trunc(n/60),o=n%60;return o===0?r+String(i):r+String(i)+t+jt(o,2)}function _N(e,t){return e%60===0?(e>0?"-":"+")+jt(Math.abs(e)/60,2):tu(e,t)}function tu(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),i=jt(Math.trunc(n/60),2),o=jt(n%60,2);return r+i+t+o}const xN=(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"})}},m7=(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"})}},wse=(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],i=r[2];if(!i)return xN(e,t);let o;switch(n){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}}",xN(n,t)).replace("{{time}}",m7(i,t))},Ose={p:m7,P:wse},Sse=/^D+$/,Pse=/^Y+$/,Ese=["D","DD","YY","YYYY"];function Cse(e){return Sse.test(e)}function Tse(e){return Pse.test(e)}function jse(e,t,r){const n=Ase(e,t,r);if(console.warn(n),Ese.includes(e))throw new RangeError(n)}function Ase(e,t,r){const n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const kse=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Rse=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Nse=/^'([^]*?)'?$/,Mse=/''/g,Lse=/[a-zA-Z]/;function uy(e,t,r){var h,p,v,b;const n=sm(),i=n.locale??h7,o=n.firstWeekContainsDate??((p=(h=n.locale)==null?void 0:h.options)==null?void 0:p.firstWeekContainsDate)??1,a=n.weekStartsOn??((b=(v=n.locale)==null?void 0:v.options)==null?void 0:b.weekStartsOn)??0,s=At(e,r==null?void 0:r.in);if(!jae(s))throw new RangeError("Invalid time value");let c=t.match(Rse).map(_=>{const x=_[0];if(x==="p"||x==="P"){const w=Ose[x];return w(_,i.formatLong)}return _}).join("").match(kse).map(_=>{if(_==="''")return{isToken:!1,value:"'"};const x=_[0];if(x==="'")return{isToken:!1,value:Ise(_)};if(yN[x])return{isToken:!0,value:_};if(x.match(Lse))throw new RangeError("Format string contains an unescaped latin alphabet character `"+x+"`");return{isToken:!1,value:_}});i.localize.preprocessor&&(c=i.localize.preprocessor(s,c));const u={firstWeekContainsDate:o,weekStartsOn:a,locale:i};return c.map(_=>{if(!_.isToken)return _.value;const x=_.value;(Tse(x)||Cse(x))&&jse(x,t,String(e));const w=yN[x[0]];return w(s,x,i.localize,u)}).join("")}function Ise(e){const t=e.match(Nse);return t?t[1].replace(Mse,"'"):e}function Dse(e,t,r){const n=sm(),i=(r==null?void 0:r.locale)??n.locale??h7,o=2520,a=Sg(e,t);if(isNaN(a))throw new RangeError("Invalid time value");const s=Object.assign({},r,{addSuffix:r==null?void 0:r.addSuffix,comparison:a}),[c,u]=Mu(r==null?void 0:r.in,...a>0?[t,e]:[e,t]),h=Iae(u,c),p=(pf(u)-pf(c))/1e3,v=Math.round((h-p)/60);let b;if(v<2)return r!=null&&r.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<mN){const _=Math.round(v/60);return i.formatDistance("aboutXHours",_,s)}else{if(v<o)return i.formatDistance("xDays",1,s);if(v<Hv){const _=Math.round(v/mN);return i.formatDistance("xDays",_,s)}else if(v<Hv*2)return b=Math.round(v/Hv),i.formatDistance("aboutXMonths",b,s)}if(b=Lae(u,c),b<12){const _=Math.round(v/Hv);return i.formatDistance("xMonths",_,s)}else{const _=b%12,x=Math.trunc(b/12);return _<3?i.formatDistance("aboutXYears",x,s):_<9?i.formatDistance("overXYears",x,s):i.formatDistance("almostXYears",x+1,s)}}function $se(e,t){const r=At(e,t==null?void 0:t.in);if(isNaN(+r))throw new RangeError("Invalid time value");let n="",i="";const o="-",a=":";{const s=jt(r.getDate(),2),c=jt(r.getMonth()+1,2);n=`${jt(r.getFullYear(),4)}${o}${c}${o}${s}`}{const s=r.getTimezoneOffset();if(s!==0){const b=Math.abs(s),_=jt(Math.trunc(b/60),2),x=jt(b%60,2);i=`${s<0?"+":"-"}${_}:${x}`}else i="Z";const c=jt(r.getHours(),2),u=jt(r.getMinutes(),2),h=jt(r.getSeconds(),2),p=n===""?"":"T",v=[c,u,h].join(a);n=`${n}${p}${v}${i}`}return n}function Fse(e){return Math.trunc(+At(e)/1e3)}function Bse(e,t){return+At(e)>+At(t)}function cy(e,t){return+At(e)<+At(t)}function KP(e,t){return+At(e)==+At(t)}function Use(e,t,r){const n=+At(e,r==null?void 0:r.in),[i,o]=[+At(t.start,r==null?void 0:r.in),+At(t.end,r==null?void 0:r.in)].sort((a,s)=>a-s);return n>=i&&n<=o}function fy(e,t,r){return FT(e,-t,r)}function al(e,t){const r=()=>an(t==null?void 0:t.in,NaN),i=qse(e);let o;if(i.date){const u=Hse(i.date,2);o=Gse(u.restDateString,u.year)}if(!o||isNaN(+o))return r();const a=+o;let s=0,c;if(i.time&&(s=Kse(i.time),isNaN(s)))return r();if(i.timezone){if(c=Yse(i.timezone),isNaN(c))return r()}else{const u=new Date(a+s),h=At(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 At(a+s+c,t==null?void 0:t.in)}const Gv={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},zse=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Vse=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Wse=/^([+-])(\d{2})(?::?(\d{2}))?$/;function qse(e){const t={},r=e.split(Gv.dateTimeDelimiter);let n;if(r.length>2)return t;if(/:/.test(r[0])?n=r[0]:(t.date=r[0],n=r[1],Gv.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Gv.timeZoneDelimiter)[0],n=e.substr(t.date.length,e.length))),n){const i=Gv.timezone.exec(n);i?(t.time=n.replace(i[1],""),t.timezone=i[1]):t.time=n}return t}function Hse(e,t){const r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.match(r);if(!n)return{year:NaN,restDateString:""};const i=n[1]?parseInt(n[1]):null,o=n[2]?parseInt(n[2]):null;return{year:o===null?i:o*100,restDateString:e.slice((n[1]||n[2]).length)}}function Gse(e,t){if(t===null)return new Date(NaN);const r=e.match(zse);if(!r)return new Date(NaN);const n=!!r[4],i=uh(r[1]),o=uh(r[2])-1,a=uh(r[3]),s=uh(r[4]),c=uh(r[5])-1;if(n)return ele(t,s,c)?Zse(t,s,c):new Date(NaN);{const u=new Date(0);return!Qse(t,o,a)||!Jse(t,i)?new Date(NaN):(u.setUTCFullYear(t,o,Math.max(i,a)),u)}}function uh(e){return e?parseInt(e):1}function Kse(e){const t=e.match(Vse);if(!t)return NaN;const r=U1(t[1]),n=U1(t[2]),i=U1(t[3]);return tle(r,n,i)?r*$T+n*l7+i*1e3:NaN}function U1(e){return e&&parseFloat(e.replace(",","."))||0}function Yse(e){if(e==="Z")return 0;const t=e.match(Wse);if(!t)return 0;const r=t[1]==="+"?-1:1,n=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return rle(n,i)?r*(n*$T+i*l7):NaN}function Zse(e,t,r){const n=new Date(0);n.setUTCFullYear(e,0,4);const i=n.getUTCDay()||7,o=(t-1)*7+r+1-i;return n.setUTCDate(n.getUTCDate()+o),n}const Xse=[31,null,31,30,31,30,31,31,30,31,30,31];function v7(e){return e%400===0||e%4===0&&e%100!==0}function Qse(e,t,r){return t>=0&&t<=11&&r>=1&&r<=(Xse[t]||(v7(e)?29:28))}function Jse(e,t){return t>=1&&t<=(v7(e)?366:365)}function ele(e,t,r){return t>=1&&t<=53&&r>=0&&r<=6}function tle(e,t,r){return e===24?t===0&&r===0:r>=0&&r<60&&t>=0&&t<60&&e>=0&&e<25}function rle(e,t){return t>=0&&t<=59}/*!
|
||
* Font Awesome Free 6.7.2 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 nle={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"]},ile={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"]},ru={Enter:"Enter",Escape:"Escape",Tab:"Tab",Backspace:"Backspace",UpArrow:"ArrowUp",UpArrowCompat:"Up",DownArrow:"ArrowDown",DownArrowCompat:"Down",PageDown:"PageDown",PageUp:"PageUp"},BT=Symbol("Create new tag"),g7=Symbol("No options"),Vc=()=>{},Qr=Z.createContext(void 0);function wN(e,t){return e===t?[]:e.filter(r=>!t.includes(r))}function ole(e){return e.selectionStart===0&&e.selectionEnd===0}function ale(e){const t=e.value.length;return e.selectionStart===t&&e.selectionEnd===t}function H0(e){return`${e}-label`}function sle(e){return`${e}-combobox`}function lle(e){return`${e}-input`}function y7(e){return`${e}-listbox`}function b7(e,t){return`${e}-option-${mle(t)}`}function ule(e,t){if((e==null?void 0:e.value)===BT&&e.disabled===!1)return{value:t,label:t}}function cle(e){const t=ule(e.activeOption,e.value)||e.activeOption||ble(e.value,e.options);return t&&!t.disabled?t:void 0}function fle(e,t,r){const n=t-1;return e>n?r:e<r?n:e}const dle=/%value%/;function dy(e,t){return e.replace(dle,t)}function hle(e,t){const r=x7(t),n=e.match(r);if(n){const i=n[0],o=n.index+i.length;return[e.slice(0,n.index),e.slice(n.index,o),e.slice(o)]}}const ple=/\s+/g;function YP(e){return`${String(e.value)}-${e.label}`}function mle(e){return YP(e).replace(ple,"_")}function ZP(e,t){return t.findIndex(({value:r})=>r===e.value)}const vle=/[-\\^$*+?.()|[\]{}]/g;function _7(e){return e.replace(vle,"\\$&")}function x7(e){return new RegExp(_7(e),"i")}function gle(e){return new RegExp(`^${_7(e)}$`,"i")}function yle(e,t){if(e){const r=x7(e);return t.filter(n=>r.test(n.label))}else return[].concat(t)}function ble(e,t){const r=gle(e);return t.find(n=>r.test(n.label))||null}const _le={autoComplete:"off",autoCorrect:"off","data-form-type":"other",spellCheck:!1};function xle({allowBackspace:e,ariaDescribedBy:t,ariaErrorMessage:r,delimiterKeys:n}){const{id:i,comboBoxRef:o,inputRef:a,isDisabled:s,isInvalid:c,managerRef:u}=I.useContext(Qr),h=I.useMemo(()=>{const _=B=>{const W=B.currentTarget.value;u.current.updateInputValue(W),document.activeElement===a.current&&u.current.listBoxExpand(W)},x=()=>{u.current.listBoxExpand()},w=B=>{var W;((W=o.current)==null?void 0:W.contains(B.relatedTarget))===!1&&u.current.listBoxCollapse()},O=()=>{u.current.listBoxExpand()},P=B=>{const{activeIndex:W,isExpanded:q}=u.current.state;q?(B.preventDefault(),u.current.updateActiveIndex(W+1)):(ale(B.currentTarget)||B.altKey)&&(B.preventDefault(),u.current.listBoxExpand())},C=B=>{const{activeIndex:W,isExpanded:q}=u.current.state;q?(B.preventDefault(),u.current.updateActiveIndex(W-1)):ole(B.currentTarget)&&(B.preventDefault(),u.current.listBoxExpand())},T=B=>{const{isExpanded:W,options:q}=u.current.state;W&&(B.preventDefault(),u.current.updateActiveIndex(q.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:W}=u.current.state,q=W[W.length-1];B===""&&q&&u.current.selectTag(q)}},F=B=>{u.current.state.isExpanded&&(B.preventDefault(),u.current.selectTag())};return{onBlur:w,onChange:_,onClick:O,onFocus:x,onKeyDown:B=>{if(B.key===ru.UpArrow)return C(B);if(B.key===ru.DownArrow)return P(B);if(B.key===ru.PageUp)return A(B);if(B.key===ru.PageDown)return T(B);if(B.key===ru.Escape)return j();if(B.key===ru.Backspace)return N();if(n.includes(B.key))return F(B)}}},[e,o,n,a,u]),{activeOption:p,isExpanded:v,value:b}=u.current.state;return{..._le,"aria-autocomplete":"list","aria-activedescendant":p?b7(i,p):void 0,"aria-controls":y7(i),"aria-describedby":t||void 0,"aria-disabled":s,"aria-errormessage":c&&r||void 0,"aria-invalid":c,"aria-labelledby":H0(i),"aria-expanded":v,id:lle(i),onBlur:s?Vc:h.onBlur,onChange:s?Vc:h.onChange,onClick:s?Vc:h.onClick,onFocus:s?Vc:h.onFocus,onKeyDown:s?Vc:h.onKeyDown,ref:a,role:"combobox",type:"text",value:b}}const wle={position:"absolute",width:0,height:0,visibility:"hidden",overflow:"scroll",whiteSpace:"pre"},Ole=["font-family","font-size","font-style","font-weight","letter-spacing","text-transform"];function Sle({allowResize:e=!0,text:t}){const r=I.useRef(null),{inputRef:n}=I.useContext(Qr),[i,o]=I.useState(null);return I.useLayoutEffect(()=>{if(e&&n.current&&r.current&&window.getComputedStyle){const a=window.getComputedStyle(n.current);Ole.forEach(s=>{const c=a.getPropertyValue(s);r.current.style.setProperty(s,c)})}},[e,n,r]),I.useLayoutEffect(()=>{var a;if(e){const s=Math.ceil(((a=r.current)==null?void 0:a.scrollWidth)??0)+2;i!==s&&o(s)}},[e,t,i]),{width:i,sizerProps:{ref:r,style:wle}}}function Ple(){const{id:e,inputRef:t,listBoxRef:r,managerRef:n}=I.useContext(Qr),i=n.current.state.activeIndex===-1,o=I.useCallback(a=>{var s;a.target!==t.current&&((s=t.current)==null||s.focus({preventScroll:!0}))},[t]);return I.useEffect(()=>{var a;i&&((a=r.current)==null||a.scrollTo({top:0}))},[r,i]),{"aria-labelledby":H0(e),id:y7(e),onFocus:o,ref:r,role:"listbox",tabIndex:-1}}function Ele({activateFirstOption:e,allowNew:t,collapseOnSelect:r,newOptionPosition:n,newOptionText:i,noOptionsText:o,onAdd:a,onDelete:s,onCollapse:c,onExpand:u,onInput:h,onShouldCollapse:p,onShouldExpand:v,onValidate:b,selected:_,suggestions:x,suggestionsTransform:w}){const O=I.useRef(),[P,C]=I.useState(null),[T,A]=I.useState(!1),[j,N]=I.useState(""),F=I.useMemo(()=>{const ne=w(j,x);return j&&(t&&ne[n==="first"?"unshift":"push"]({disabled:b?!b(j):!1,label:i,value:BT}),ne.length===0&&ne.push({disabled:!0,label:o,value:g7})),ne},[t,n,i,o,b,x,w,j]),V=P?ZP(P,F):-1,B=e?Math.max(V,0):V,W=F[B],q={activeIndex:B,activeOption:W,isExpanded:T,options:F,selected:_,value:j},J={tagsAdded:O.current?wN(_,O.current.state.selected):[],tagsDeleted:O.current?wN(O.current.state.selected,_):[]},Q={listBoxCollapse(ne){T&&(!p||p(ne??q.value))&&(A(!1),C(null),c==null||c())},listBoxExpand(ne){T||(!v||v(ne??q.value))&&(A(!0),C(F[B]),u==null||u())},updateActiveIndex(ne){const ae=fle(ne,F.length,e?0:-1);C(F[ae])},updateInputValue(ne){j!==ne&&(N(ne),h==null||h(ne))},selectTag(ne){if(ne??(ne=cle(q)),ne){const ae=ZP(ne,q.selected);ae>-1?s(ae):a(ne),r&&this.listBoxCollapse(),this.updateInputValue("")}}};return O.current={...Q,flags:J,state:q},O}function Cle(e){const{id:t,inputRef:r,listBoxRef:n,managerRef:i}=I.useContext(Qr),o=I.useRef(null),a=i.current.state.options[e],s=e===i.current.state.activeIndex,c=a.disabled??!1,u=ZP(a,i.current.state.selected)>-1,h=I.useCallback(()=>{var v;i.current.selectTag(),(v=r.current)==null||v.focus()},[r,i]),p=I.useCallback(()=>{e!==i.current.state.activeIndex&&i.current.updateActiveIndex(e)},[e,i]);return Ale(o,n,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:b7(t,a),onClick:h,onMouseDown:p,ref:o,role:"option",tabIndex:-1}}}function Tle({inputRef:e,managerRef:t}){return I.useRef({input:{blur(){var n;(n=e.current)==null||n.blur()},focus(){var n;(n=e.current)==null||n.focus()},get value(){return t.current.state.value},set value(n){typeof n!="string"&&(n=String(n)),t.current.updateInputValue(n)}},listBox:{collapse(){t.current.listBoxCollapse()},expand(){t.current.listBoxExpand()},get activeOption(){return t.current.state.activeOption},get isExpanded(){return t.current.state.isExpanded}},select(n){t.current.selectTag(n)}}).current}function jle({onBlur:e,onFocus:t}){const[r,n]=I.useState(!1),{id:i,inputRef:o,rootRef:a}=I.useContext(Qr),s=I.useMemo(()=>({"aria-describedby":H0(i),id:i,onFocus(){n(!0),t==null||t()},onBlur(){var c;(c=a.current)!=null&&c.contains(document.activeElement)||(n(!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:r,rootProps:s}}function Ale(e,t,r){I.useEffect(()=>{var n,i,o,a;if(r){const s=(n=e.current)==null?void 0:n.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)}},[r,t,e])}function kle(e,t){const{isDisabled:r,managerRef:n}=I.useContext(Qr),i=n.current.state.selected[e],o=I.useCallback(()=>n.current.selectTag(i),[n,i]);return{tag:i,tagProps:{"aria-disabled":r,title:dy(t,i.label),onClick:r?Vc:o}}}function Rle({label:e}){var t;const{rootRef:r,managerRef:n}=I.useContext(Qr),i=I.useRef(),o=n.current.flags.tagsDeleted[0],a=(t=i.current)==null?void 0:t.contains(document.activeElement);return I.useLayoutEffect(()=>{var s,c;if(o){const u=(s=i.current)==null?void 0:s.contains(document.activeElement);a&&!u&&((c=r.current)==null||c.focus({preventScroll:!0}))}},[a,i,r,o]),{ref:i,"aria-label":e}}const Nle={position:"absolute",width:1,height:1,left:-9999,overflow:"hidden",clip:"rect(0 0 0 0)"};function Mle({ariaAddedText:e,ariaDeletedText:t}){const{managerRef:r}=I.useContext(Qr),n=I.useRef([]);return r.current.flags.tagsAdded.forEach(i=>{n.current.push(dy(e,i.label))}),r.current.flags.tagsDeleted.forEach(i=>{n.current.push(dy(t,i.label))}),Z.createElement("div",{"aria-live":"polite","aria-relevant":"additions",role:"status",style:Nle},n.current.join(`
|
||
`))}function Lle({children:e}){const{classNames:t,comboBoxRef:r,id:n}=I.useContext(Qr);return Z.createElement("div",{className:t.comboBox,id:sle(n),ref:r},e)}const Ile=({classNames:e,text:t})=>Z.createElement("mark",{className:e.highlight},t);function Dle({option:e,query:t,render:r=Ile}){const{classNames:n}=I.useContext(Qr);if(e.value===BT||e.value===g7)return Z.createElement(Z.Fragment,null,dy(e.label,t));if(t){const i=hle(e.label,t);if(i){const o=r({text:i[1],classNames:n});return Z.createElement(Z.Fragment,null,i[0],o,i[2])}}return Z.createElement(Z.Fragment,null,e.label)}const $le=Z.memo(Dle),Fle=({classNames:e,inputWidth:t,...r})=>Z.createElement("input",{className:e.input,style:{width:t},...r});function Ble({allowBackspace:e=!0,allowResize:t=!0,ariaDescribedBy:r,ariaErrorMessage:n,delimiterKeys:i,placeholderText:o,render:a=Fle}){const{classNames:s}=I.useContext(Qr),{value:c,...u}=xle({allowBackspace:e,ariaDescribedBy:r,ariaErrorMessage:n,delimiterKeys:i}),h=c.length<o.length?o:c,{width:p,sizerProps:v}=Sle({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 Ule=({children:e,classNames:t,id:r})=>Z.createElement("div",{className:t.label,id:r},e);function zle({children:e,render:t=Ule}){const{classNames:r,id:n}=I.useContext(Qr);return t({children:e,classNames:r,id:H0(n)})}const Vle=({children:e,classNames:t,...r})=>Z.createElement("div",{className:t.listBox,...r},e);function Wle({children:e,render:t=Vle}){const{classNames:r,managerRef:n}=I.useContext(Qr),i=Ple();return!n.current.state.isExpanded||Z.Children.count(e)===0?null:t({children:e,classNames:r,...i})}const qle=({children:e,classNames:t,option:r,...n})=>{const i=[t.option];return r.active&&i.push(t.optionIsActive),Z.createElement("div",{className:i.join(" "),...n},e)};function Hle({children:e,index:t,render:r=qle}){const{classNames:n}=I.useContext(Qr),{option:i,optionProps:o}=Cle(t);return r({classNames:n,children:e,option:i,...o})}const Gle=({children:e,classNames:t,isActive:r,isDisabled:n,isInvalid:i,...o})=>{const a=[t.root];return r&&a.push(t.rootIsActive),n&&a.push(t.rootIsDisabled),i&&a.push(t.rootIsInvalid),Z.createElement("div",{className:a.join(" "),...o},e)};function Kle({children:e,onBlur:t,onFocus:r,render:n=Gle}){const{classNames:i,isDisabled:o,isInvalid:a}=I.useContext(Qr),{isActive:s,rootProps:c}=jle({onBlur:t,onFocus:r});return n({children:e,classNames:i,isActive:s,isDisabled:o,isInvalid:a,...c})}const Yle=({classNames:e,tag:t,...r})=>Z.createElement("button",{type:"button",className:e.tag,...r},Z.createElement("span",{className:e.tagName},t.label));function Zle({render:e=Yle,index:t,title:r}){const{classNames:n}=I.useContext(Qr),{tag:i,tagProps:o}=kle(t,r);return e({classNames:n,tag:i,...o})}const Xle=({children:e,classNames:t,...r})=>Z.createElement("ul",{className:t.tagList,...r,role:"list"},Z.Children.map(e,n=>{if(Z.isValidElement(n))return Z.createElement("li",{className:t.tagListItem,key:n.key,role:"listitem"},n)}));function Qle({children:e,label:t,render:r=Xle}){const{classNames:n}=I.useContext(Qr),i=Rle({label:t});return r({classNames:n,children:e,...i})}const Jle={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"},eue=[ru.Enter];function tue({activateFirstOption:e=!1,allowBackspace:t=!0,allowNew:r=!1,allowResize:n=!0,ariaAddedText:i="Added tag %value%",ariaDescribedBy:o,ariaErrorMessage:a,ariaDeletedText:s="Removed tag %value%",classNames:c=Jle,collapseOnSelect:u=!1,deleteButtonText:h="Remove %value% from the list",delimiterKeys:p=eue,id:v="react-tags",isDisabled:b=!1,isInvalid:_=!1,labelText:x="Select tags",newOptionPosition:w="last",newOptionText:O="Add %value%",noOptionsText:P="No options found for %value%",onAdd:C,onBlur:T,onCollapse:A,onDelete:j,onExpand:N,onFocus:F,onInput:V,onShouldCollapse:B,onShouldExpand:W,onValidate:q,placeholderText:J="Add a tag",renderHighlight:Q,renderInput:ne,renderLabel:ae,renderListBox:se,renderOption:oe,renderRoot:K,renderTag:G,renderTagList:z,selected:re=[],suggestions:X=[],suggestionsTransform:le=yle,tagListLabelText:ce="Selected tags"},de){const be=I.useRef(null),M=I.useRef(null),$=I.useRef(null),Y=I.useRef(null),ue=Ele({activateFirstOption:e,allowNew:r,collapseOnSelect:u,newOptionPosition:w,newOptionText:O,noOptionsText:P,onAdd:C,onDelete:j,onCollapse:A,onExpand:N,onInput:V,onShouldCollapse:B,onShouldExpand:W,onValidate:q,selected:re,suggestions:X,suggestionsTransform:le}),ie=Tle({inputRef:M,managerRef:ue});return de&&(typeof de=="function"?de(ie):de.current=ie),Z.createElement(Qr.Provider,{value:{classNames:c,comboBoxRef:be,id:v,inputRef:M,isDisabled:b,isInvalid:_,listBoxRef:$,managerRef:ue,rootRef:Y}},Z.createElement(Kle,{onBlur:T,onFocus:F,render:K},Z.createElement(zle,{render:ae},x),Z.createElement(Qle,{render:z,label:ce},ue.current.state.selected.map((he,Se)=>Z.createElement(Zle,{key:YP(he),index:Se,render:G,title:h}))),Z.createElement(Lle,null,Z.createElement(Ble,{allowBackspace:t,allowResize:n,ariaDescribedBy:o,ariaErrorMessage:a,delimiterKeys:p,placeholderText:J,render:ne}),Z.createElement(Wle,{render:se},ue.current.state.options.map((he,Se)=>Z.createElement(Hle,{key:YP(he),index:Se,render:oe},Z.createElement($le,{option:he,query:ue.current.state.value,render:Q}))))),Z.createElement(Mle,{ariaAddedText:i,ariaDeletedText:s})))}const rue=Z.forwardRef(tue);function z1(e){return e==null?"":`${e}`}function nue(e={}){const{separator:t,decimals:r}=e;return t?r?n=>n.toFixed(r).replace(".",t):n=>`${n}`.replace(".",t):r?n=>n.toFixed(r):n=>`${n}`}function UT(e={}){const t=typeof e.quote=="string"?e.quote:'"',r=typeof e.escapedQuote=="string"?e.escapedQuote:`${t}${t}`;if(!t||t===r)return i=>i;const n=new RegExp(t,"g");return i=>(i.includes(t)&&(i=i.replace(n,r)),`${t}${i}${t}`)}function iue(e={stringFormatter:UT()}){return t=>e.stringFormatter(t.toString().slice(7,-1))}function oue(e={stringFormatter:UT()}){return t=>{if(t===null)return"";let r=JSON.stringify(t);return r===void 0?"":(r[0]==='"'&&(r=r.replace(/^"(.+)"$/,"$1")),e.stringFormatter(r))}}const aue=RegExp(`[^.[\\]]+|\\[(?:([^"'][^[]*)|(["'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))`,"g");function sue(e){var t,r,n;const i=[];let o;for(;o=aue.exec(e);)i.push((n=(t=o[3])!==null&&t!==void 0?t:(r=o[1])===null||r===void 0?void 0:r.trim())!==null&&n!==void 0?n:o[0]);return i}function ON(e,t,r){if(t in e){const o=e[t];return o===void 0?r:o}const n=Array.isArray(t)?t:sue(t);let i=e;for(const o of n)if(i=i==null?void 0:i[o],i===void 0)return r;return i}function w7(e,t){try{return Array.isArray(t)?e.push(...t):e.push(t),e}catch{return e.concat(t)}}function XP(e,t){let r=!0;return e.reduce((n,i)=>(i==null&&(i=""),r?(r=!1,`${i}`):`${n}${t}${i}`),"")}var SN;(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"})(SN||(SN={}));class lue{constructor(t){this.opts=this.preprocessOpts(t)}preprocessOpts(t){const r=Object.assign({},t);r.fields&&(r.fields=this.preprocessFieldsInfo(r.fields,r.defaultValue)),r.transforms=r.transforms||[];const n=r.formatters&&r.formatters.string||UT(),i=oue({stringFormatter:n}),o={header:n,undefined:z1,boolean:z1,number:nue(),bigint:z1,string:n,symbol:iue({stringFormatter:n}),function:i,object:i};return r.formatters=Object.assign(Object.assign({},o),r.formatters),r.delimiter=r.delimiter||",",r.eol=r.eol||`
|
||
`,r.header=r.header!==!1,r.includeEmptyRows=r.includeEmptyRows||!1,r.withBOM=r.withBOM||!1,r}preprocessFieldsInfo(t,r){return t.map(n=>{if(typeof n=="string")return{label:n,value:i=>ON(i,n,r)};if(typeof n=="object"){const i="default"in n?n.default:r;if(typeof n.value=="string"){const o=n.value;return{label:n.label||n.value,value:a=>ON(a,o,i)}}if(typeof n.value=="function"){const o=n.label||n.value.name||"",a={label:o,default:i},s=n.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(n))})}getHeader(){return XP(this.opts.fields.map(t=>this.opts.formatters.header(t.label)),this.opts.delimiter)}preprocessRow(t){return this.opts.transforms.reduce((r,n)=>r.map(i=>n(i)).reduce(w7,[]),[t])}processRow(t){if(!t)return;const r=this.opts.fields.map(n=>this.processCell(t,n));if(!(!this.opts.includeEmptyRows&&r.every(n=>n==="")))return XP(r,this.opts.delimiter)}processCell(t,r){return this.processValue(r.value(t))}processValue(t){const r=this.opts.formatters[typeof t];return r(t)}}class O7 extends lue{constructor(t){super(t)}parse(t){const r=this.preprocessData(t);this.opts.fields=this.opts.fields||this.preprocessFieldsInfo(r.reduce((a,s)=>(Object.keys(s).forEach(c=>{a.includes(c)||a.push(c)}),a),[]),this.opts.defaultValue);const n=this.opts.header?this.getHeader():"",i=this.processData(r);return(this.opts.withBOM?"\uFEFF":"")+n+(n&&i?this.opts.eol:"")+i}preprocessData(t){const r=Array.isArray(t)?t:[t];if(!this.opts.fields){if(t==null||r.length===0)throw new Error('Data should not be empty or the "fields" option should be included');if(typeof r[0]!="object")throw new Error('Data items should be objects or the "fields" option should be included')}return this.opts.transforms.length===0?r:r.map(n=>this.preprocessRow(n)).reduce(w7,[])}processData(t){return XP(t.map(r=>this.processRow(r)).filter(r=>r),this.opts.eol)}}var Kr;(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"})(Kr||(Kr={}));Kr.QUOTATION_MARK+"",Kr.QUOTATION_MARK,Kr.REVERSE_SOLIDUS+"",Kr.REVERSE_SOLIDUS,Kr.SOLIDUS+"",Kr.SOLIDUS,Kr.LATIN_SMALL_LETTER_B+"",Kr.BACKSPACE,Kr.LATIN_SMALL_LETTER_F+"",Kr.FORM_FEED,Kr.LATIN_SMALL_LETTER_N+"",Kr.NEWLINE,Kr.LATIN_SMALL_LETTER_R+"",Kr.CARRIAGE_RETURN,Kr.LATIN_SMALL_LETTER_T+"",Kr.TAB;var PN;(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"})(PN||(PN={}));var EN;(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"})(EN||(EN={}));var CN;(function(e){e[e.OBJECT=0]="OBJECT",e[e.ARRAY=1]="ARRAY"})(CN||(CN={}));var TN;(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"})(TN||(TN={}));var V1,jN;function Zn(){if(jN)return V1;jN=1;var e=Array.isArray;return V1=e,V1}var W1,AN;function S7(){if(AN)return W1;AN=1;var e=typeof $v=="object"&&$v&&$v.Object===Object&&$v;return W1=e,W1}var q1,kN;function ua(){if(kN)return q1;kN=1;var e=S7(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return q1=r,q1}var H1,RN;function lm(){if(RN)return H1;RN=1;var e=ua(),t=e.Symbol;return H1=t,H1}var G1,NN;function uue(){if(NN)return G1;NN=1;var e=lm(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function o(a){var s=r.call(a,i),c=a[i];try{a[i]=void 0;var u=!0}catch{}var h=n.call(a);return u&&(s?a[i]=c:delete a[i]),h}return G1=o,G1}var K1,MN;function cue(){if(MN)return K1;MN=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return K1=r,K1}var Y1,LN;function ts(){if(LN)return Y1;LN=1;var e=lm(),t=uue(),r=cue(),n="[object Null]",i="[object Undefined]",o=e?e.toStringTag:void 0;function a(s){return s==null?s===void 0?i:n:o&&o in Object(s)?t(s):r(s)}return Y1=a,Y1}var Z1,IN;function rs(){if(IN)return Z1;IN=1;function e(t){return t!=null&&typeof t=="object"}return Z1=e,Z1}var X1,DN;function Qf(){if(DN)return X1;DN=1;var e=ts(),t=rs(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return X1=n,X1}var Q1,$N;function zT(){if($N)return Q1;$N=1;var e=Zn(),t=Qf(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\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:n.test(o)||!r.test(o)||a!=null&&o in Object(a)}return Q1=i,Q1}var J1,FN;function ml(){if(FN)return J1;FN=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return J1=e,J1}var ex,BN;function VT(){if(BN)return ex;BN=1;var e=ts(),t=ml(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",o="[object Proxy]";function a(s){if(!t(s))return!1;var c=e(s);return c==n||c==i||c==r||c==o}return ex=a,ex}var tx,UN;function fue(){if(UN)return tx;UN=1;var e=ua(),t=e["__core-js_shared__"];return tx=t,tx}var rx,zN;function due(){if(zN)return rx;zN=1;var e=fue(),t=function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function r(n){return!!t&&t in n}return rx=r,rx}var nx,VN;function P7(){if(VN)return nx;VN=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return nx=r,nx}var ix,WN;function hue(){if(WN)return ix;WN=1;var e=VT(),t=due(),r=ml(),n=P7(),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(!r(v)||t(v))return!1;var b=e(v)?h:o;return b.test(n(v))}return ix=p,ix}var ox,qN;function pue(){if(qN)return ox;qN=1;function e(t,r){return t==null?void 0:t[r]}return ox=e,ox}var ax,HN;function Lu(){if(HN)return ax;HN=1;var e=hue(),t=pue();function r(n,i){var o=t(n,i);return e(o)?o:void 0}return ax=r,ax}var sx,GN;function G0(){if(GN)return sx;GN=1;var e=Lu(),t=e(Object,"create");return sx=t,sx}var lx,KN;function mue(){if(KN)return lx;KN=1;var e=G0();function t(){this.__data__=e?e(null):{},this.size=0}return lx=t,lx}var ux,YN;function vue(){if(YN)return ux;YN=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return ux=e,ux}var cx,ZN;function gue(){if(ZN)return cx;ZN=1;var e=G0(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(o){var a=this.__data__;if(e){var s=a[o];return s===t?void 0:s}return n.call(a,o)?a[o]:void 0}return cx=i,cx}var fx,XN;function yue(){if(XN)return fx;XN=1;var e=G0(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var o=this.__data__;return e?o[i]!==void 0:r.call(o,i)}return fx=n,fx}var dx,QN;function bue(){if(QN)return dx;QN=1;var e=G0(),t="__lodash_hash_undefined__";function r(n,i){var o=this.__data__;return this.size+=this.has(n)?0:1,o[n]=e&&i===void 0?t:i,this}return dx=r,dx}var hx,JN;function _ue(){if(JN)return hx;JN=1;var e=mue(),t=vue(),r=gue(),n=yue(),i=bue();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=r,o.prototype.has=n,o.prototype.set=i,hx=o,hx}var px,eM;function xue(){if(eM)return px;eM=1;function e(){this.__data__=[],this.size=0}return px=e,px}var mx,tM;function WT(){if(tM)return mx;tM=1;function e(t,r){return t===r||t!==t&&r!==r}return mx=e,mx}var vx,rM;function K0(){if(rM)return vx;rM=1;var e=WT();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return vx=t,vx}var gx,nM;function wue(){if(nM)return gx;nM=1;var e=K0(),t=Array.prototype,r=t.splice;function n(i){var o=this.__data__,a=e(o,i);if(a<0)return!1;var s=o.length-1;return a==s?o.pop():r.call(o,a,1),--this.size,!0}return gx=n,gx}var yx,iM;function Oue(){if(iM)return yx;iM=1;var e=K0();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return yx=t,yx}var bx,oM;function Sue(){if(oM)return bx;oM=1;var e=K0();function t(r){return e(this.__data__,r)>-1}return bx=t,bx}var _x,aM;function Pue(){if(aM)return _x;aM=1;var e=K0();function t(r,n){var i=this.__data__,o=e(i,r);return o<0?(++this.size,i.push([r,n])):i[o][1]=n,this}return _x=t,_x}var xx,sM;function Y0(){if(sM)return xx;sM=1;var e=xue(),t=wue(),r=Oue(),n=Sue(),i=Pue();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=r,o.prototype.has=n,o.prototype.set=i,xx=o,xx}var wx,lM;function qT(){if(lM)return wx;lM=1;var e=Lu(),t=ua(),r=e(t,"Map");return wx=r,wx}var Ox,uM;function Eue(){if(uM)return Ox;uM=1;var e=_ue(),t=Y0(),r=qT();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return Ox=n,Ox}var Sx,cM;function Cue(){if(cM)return Sx;cM=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return Sx=e,Sx}var Px,fM;function Z0(){if(fM)return Px;fM=1;var e=Cue();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return Px=t,Px}var Ex,dM;function Tue(){if(dM)return Ex;dM=1;var e=Z0();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return Ex=t,Ex}var Cx,hM;function jue(){if(hM)return Cx;hM=1;var e=Z0();function t(r){return e(this,r).get(r)}return Cx=t,Cx}var Tx,pM;function Aue(){if(pM)return Tx;pM=1;var e=Z0();function t(r){return e(this,r).has(r)}return Tx=t,Tx}var jx,mM;function kue(){if(mM)return jx;mM=1;var e=Z0();function t(r,n){var i=e(this,r),o=i.size;return i.set(r,n),this.size+=i.size==o?0:1,this}return jx=t,jx}var Ax,vM;function HT(){if(vM)return Ax;vM=1;var e=Eue(),t=Tue(),r=jue(),n=Aue(),i=kue();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=r,o.prototype.has=n,o.prototype.set=i,Ax=o,Ax}var kx,gM;function E7(){if(gM)return kx;gM=1;var e=HT(),t="Expected a function";function r(n,i){if(typeof n!="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=n.apply(this,a);return o.cache=c.set(s,u)||c,u};return o.cache=new(r.Cache||e),o}return r.Cache=e,kx=r,kx}var Rx,yM;function Rue(){if(yM)return Rx;yM=1;var e=E7(),t=500;function r(n){var i=e(n,function(a){return o.size===t&&o.clear(),a}),o=i.cache;return i}return Rx=r,Rx}var Nx,bM;function Nue(){if(bM)return Nx;bM=1;var e=Rue(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=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(r,"$1"):s||a)}),o});return Nx=n,Nx}var Mx,_M;function GT(){if(_M)return Mx;_M=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,o=Array(i);++n<i;)o[n]=r(t[n],n,t);return o}return Mx=e,Mx}var Lx,xM;function Mue(){if(xM)return Lx;xM=1;var e=lm(),t=GT(),r=Zn(),n=Qf(),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(r(c))return t(c,s)+"";if(n(c))return a?a.call(c):"";var u=c+"";return u=="0"&&1/c==-i?"-0":u}return Lx=s,Lx}var Ix,wM;function C7(){if(wM)return Ix;wM=1;var e=Mue();function t(r){return r==null?"":e(r)}return Ix=t,Ix}var Dx,OM;function T7(){if(OM)return Dx;OM=1;var e=Zn(),t=zT(),r=Nue(),n=C7();function i(o,a){return e(o)?o:t(o,a)?[o]:r(n(o))}return Dx=i,Dx}var $x,SM;function X0(){if(SM)return $x;SM=1;var e=Qf(),t=1/0;function r(n){if(typeof n=="string"||e(n))return n;var i=n+"";return i=="0"&&1/n==-t?"-0":i}return $x=r,$x}var Fx,PM;function KT(){if(PM)return Fx;PM=1;var e=T7(),t=X0();function r(n,i){i=e(i,n);for(var o=0,a=i.length;n!=null&&o<a;)n=n[t(i[o++])];return o&&o==a?n:void 0}return Fx=r,Fx}var Bx,EM;function j7(){if(EM)return Bx;EM=1;var e=KT();function t(r,n,i){var o=r==null?void 0:e(r,n);return o===void 0?i:o}return Bx=t,Bx}var Lue=j7();const mi=Nt(Lue);var Ux,CM;function Iue(){if(CM)return Ux;CM=1;function e(t){return t==null}return Ux=e,Ux}var Due=Iue();const dt=Nt(Due);var zx,TM;function $ue(){if(TM)return zx;TM=1;var e=ts(),t=Zn(),r=rs(),n="[object String]";function i(o){return typeof o=="string"||!t(o)&&r(o)&&e(o)==n}return zx=i,zx}var Fue=$ue();const um=Nt(Fue);var Bue=VT();const ft=Nt(Bue);var Uue=ml();const Jf=Nt(Uue);var Vx={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 jM;function zue(){if(jM)return $t;jM=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=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"),_;_=Symbol.for("react.module.reference");function x(w){if(typeof w=="object"&&w!==null){var O=w.$$typeof;switch(O){case e:switch(w=w.type,w){case r:case i:case n: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=r,$t.Lazy=v,$t.Memo=p,$t.Portal=t,$t.Profiler=i,$t.StrictMode=n,$t.Suspense=u,$t.SuspenseList=h,$t.isAsyncMode=function(){return!1},$t.isConcurrentMode=function(){return!1},$t.isContextConsumer=function(w){return x(w)===a},$t.isContextProvider=function(w){return x(w)===o},$t.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===e},$t.isForwardRef=function(w){return x(w)===c},$t.isFragment=function(w){return x(w)===r},$t.isLazy=function(w){return x(w)===v},$t.isMemo=function(w){return x(w)===p},$t.isPortal=function(w){return x(w)===t},$t.isProfiler=function(w){return x(w)===i},$t.isStrictMode=function(w){return x(w)===n},$t.isSuspense=function(w){return x(w)===u},$t.isSuspenseList=function(w){return x(w)===h},$t.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===r||w===i||w===n||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===_||w.getModuleId!==void 0)},$t.typeOf=x,$t}var AM;function Vue(){return AM||(AM=1,Vx.exports=zue()),Vx.exports}var Wue=Vue(),Wx,kM;function A7(){if(kM)return Wx;kM=1;var e=ts(),t=rs(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return Wx=n,Wx}var qx,RM;function que(){if(RM)return qx;RM=1;var e=A7();function t(r){return e(r)&&r!=+r}return qx=t,qx}var Hue=que();const ed=Nt(Hue);var Gue=A7();const Kue=Nt(Gue);var Pn=function(t){return t===0?0:t>0?1:-1},uu=function(t){return um(t)&&t.indexOf("%")===t.length-1},Ve=function(t){return Kue(t)&&!ed(t)},zr=function(t){return Ve(t)||um(t)},Yue=0,vl=function(t){var r=++Yue;return"".concat(t||"").concat(r)},En=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!Ve(t)&&!um(t))return n;var o;if(uu(t)){var a=t.indexOf("%");o=r*parseFloat(t.slice(0,a))/100}else o=+t;return ed(o)&&(o=n),i&&o>r&&(o=r),o},Hs=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},Zue=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},i=0;i<r;i++)if(!n[t[i]])n[t[i]]=!0;else return!0;return!1},_r=function(t,r){return Ve(t)&&Ve(r)?function(n){return t+n*(r-t)}:function(){return r}};function hy(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):mi(n,t))===r})}var Xue=function(t){if(!t||!t.length)return null;for(var r=t.length,n=0,i=0,o=0,a=0,s=1/0,c=-1/0,u=0,h=0,p=0;p<r;p++)u=t[p].cx||0,h=t[p].cy||0,n+=u,i+=h,o+=u*h,a+=u*u,s=Math.min(s,u),c=Math.max(c,u);var v=r*a!==n*n?(r*o-n*i)/(r*a-n*n):0;return{xmin:s,xmax:c,a:v,b:(i-v*n)/r}};function tf(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}function QP(e){"@babel/helpers - typeof";return QP=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},QP(e)}var Que=["viewBox","children"],Jue=["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"],NM=["points","pathLength"],Hx={svg:Que,polygon:NM,polyline:NM},YT=["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"],py=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(I.isValidElement(t)&&(n=t.props),!Jf(n))return null;var i={};return Object.keys(n).forEach(function(o){YT.includes(o)&&(i[o]=r||function(a){return n[o](n,a)})}),i},ece=function(t,r,n){return function(i){return t(r,n,i),null}},sl=function(t,r,n){if(!Jf(t)||QP(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(o){var a=t[o];YT.includes(o)&&typeof a=="function"&&(i||(i={}),i[o]=ece(a,r,n))}),i},tce=["children"],rce=["children"];function MM(e,t){if(e==null)return{};var r=nce(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function nce(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function 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)}var LM={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},Fa=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},IM=null,Gx=null,ZT=function e(t){if(t===IM&&Array.isArray(Gx))return Gx;var r=[];return I.Children.forEach(t,function(n){dt(n)||(Wue.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),Gx=r,IM=t,r};function An(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return Fa(i)}):n=[Fa(t)],ZT(e).forEach(function(i){var o=mi(i,"type.displayName")||mi(i,"type.name");n.indexOf(o)!==-1&&r.push(i)}),r}function di(e,t){var r=An(e,t);return r&&r[0]}var DM=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!Ve(n)||n<=0||!Ve(i)||i<=0)},ice=["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"],oce=function(t){return t&&t.type&&um(t.type)&&ice.indexOf(t.type)>=0},k7=function(t){return t&&JP(t)==="object"&&"clipDot"in t},ace=function(t,r,n,i){var o,a=(o=Hx==null?void 0:Hx[i])!==null&&o!==void 0?o:[];return!ft(t)&&(i&&a.includes(r)||Jue.includes(r))||n&&YT.includes(r)},it=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(I.isValidElement(t)&&(i=t.props),!Jf(i))return null;var o={};return Object.keys(i).forEach(function(a){var s;ace((s=i)===null||s===void 0?void 0:s[a],a,r,n)&&(o[a]=i[a])}),o},eE=function e(t,r){if(t===r)return!0;var n=I.Children.count(t);if(n!==I.Children.count(r))return!1;if(n===0)return!0;if(n===1)return $M(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var i=0;i<n;i++){var o=t[i],a=r[i];if(Array.isArray(o)||Array.isArray(a)){if(!e(o,a))return!1}else if(!$M(o,a))return!1}return!0},$M=function(t,r){if(dt(t)&&dt(r))return!0;if(!dt(t)&&!dt(r)){var n=t.props||{},i=n.children,o=MM(n,tce),a=r.props||{},s=a.children,c=MM(a,rce);return i&&s?tf(o,c)&&eE(i,s):!i&&!s?tf(o,c):!1}return!1},FM=function(t,r){var n=[],i={};return ZT(t).forEach(function(o,a){if(oce(o))n.push(o);else if(o){var s=Fa(o.type),c=r[s]||{},u=c.handler,h=c.once;if(u&&(!h||!i[s])){var p=u(o,s,a);n.push(p),i[s]=!0}}}),n},sce=function(t){var r=t&&t.type;return r&&LM[r]?LM[r]:null},lce=function(t,r){return ZT(r).indexOf(t)},uce=["children","width","height","viewBox","className","style","title","desc"];function tE(){return tE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},tE.apply(this,arguments)}function cce(e,t){if(e==null)return{};var r=fce(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function fce(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function rE(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,o=e.className,a=e.style,s=e.title,c=e.desc,u=cce(e,uce),h=i||{width:r,height:n,x:0,y:0},p=ze("recharts-surface",o);return Z.createElement("svg",tE({},it(u,!0,"svg"),{className:p,width:r,height:n,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 dce=["children","className"];function nE(){return nE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},nE.apply(this,arguments)}function hce(e,t){if(e==null)return{};var r=pce(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function pce(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var Et=Z.forwardRef(function(e,t){var r=e.children,n=e.className,i=hce(e,dce),o=ze("recharts-layer",n);return Z.createElement("g",nE({className:o},it(i,!0),{ref:t}),r)}),_o=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o]},Kx,BM;function mce(){if(BM)return Kx;BM=1;function e(t,r,n){var i=-1,o=t.length;r<0&&(r=-r>o?0:o+r),n=n>o?o:n,n<0&&(n+=o),o=r>n?0:n-r>>>0,r>>>=0;for(var a=Array(o);++i<o;)a[i]=t[i+r];return a}return Kx=e,Kx}var Yx,UM;function vce(){if(UM)return Yx;UM=1;var e=mce();function t(r,n,i){var o=r.length;return i=i===void 0?o:i,!n&&i>=o?r:e(r,n,i)}return Yx=t,Yx}var Zx,zM;function R7(){if(zM)return Zx;zM=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,o="\\ufe0e\\ufe0f",a="\\u200d",s=RegExp("["+a+e+i+o+"]");function c(u){return s.test(u)}return Zx=c,Zx}var Xx,VM;function gce(){if(VM)return Xx;VM=1;function e(t){return t.split("")}return Xx=e,Xx}var Qx,WM;function yce(){if(WM)return Qx;WM=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,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",_=u+"?",x="["+o+"]?",w="(?:"+b+"(?:"+[h,p,v].join("|")+")"+x+_+")*",O=x+_+w,P="(?:"+[h+s+"?",s,p,v,a].join("|")+")",C=RegExp(c+"(?="+c+")|"+P+O,"g");function T(A){return A.match(C)||[]}return Qx=T,Qx}var Jx,qM;function bce(){if(qM)return Jx;qM=1;var e=gce(),t=R7(),r=yce();function n(i){return t(i)?r(i):e(i)}return Jx=n,Jx}var ew,HM;function _ce(){if(HM)return ew;HM=1;var e=vce(),t=R7(),r=bce(),n=C7();function i(o){return function(a){a=n(a);var s=t(a)?r(a):void 0,c=s?s[0]:a.charAt(0),u=s?e(s,1).join(""):a.slice(1);return c[o]()+u}}return ew=i,ew}var tw,GM;function xce(){if(GM)return tw;GM=1;var e=_ce(),t=e("toUpperCase");return tw=t,tw}var wce=xce();const Q0=Nt(wce);function Xt(e){return function(){return e}}const N7=Math.cos,my=Math.sin,jo=Math.sqrt,vy=Math.PI,J0=2*vy,iE=Math.PI,oE=2*iE,nu=1e-6,Oce=oE-nu;function M7(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function Sce(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return M7;const r=10**t;return function(n){this._+=n[0];for(let i=1,o=n.length;i<o;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class Pce{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?M7:Sce(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,o,a){this._append`C${+t},${+r},${+n},${+i},${this._x1=+o},${this._y1=+a}`}arcTo(t,r,n,i,o){if(t=+t,r=+r,n=+n,i=+i,o=+o,o<0)throw new Error(`negative radius: ${o}`);let a=this._x1,s=this._y1,c=n-t,u=i-r,h=a-t,p=s-r,v=h*h+p*p;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(v>nu)if(!(Math.abs(p*c-u*h)>nu)||!o)this._append`L${this._x1=t},${this._y1=r}`;else{let b=n-a,_=i-s,x=c*c+u*u,w=b*b+_*_,O=Math.sqrt(x),P=Math.sqrt(v),C=o*Math.tan((iE-Math.acos((x+v-w)/(2*O*P)))/2),T=C/P,A=C/O;Math.abs(T-1)>nu&&this._append`L${t+T*h},${r+T*p}`,this._append`A${o},${o},0,0,${+(p*b>h*_)},${this._x1=t+A*c},${this._y1=r+A*u}`}}arc(t,r,n,i,o,a){if(t=+t,r=+r,n=+n,a=!!a,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(i),c=n*Math.sin(i),u=t+s,h=r+c,p=1^a,v=a?i-o:o-i;this._x1===null?this._append`M${u},${h}`:(Math.abs(this._x1-u)>nu||Math.abs(this._y1-h)>nu)&&this._append`L${u},${h}`,n&&(v<0&&(v=v%oE+oE),v>Oce?this._append`A${n},${n},0,1,${p},${t-s},${r-c}A${n},${n},0,1,${p},${this._x1=u},${this._y1=h}`:v>nu&&this._append`A${n},${n},0,${+(v>=iE)},${p},${this._x1=t+n*Math.cos(o)},${this._y1=r+n*Math.sin(o)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function XT(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new Pce(t)}function QT(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function L7(e){this._context=e}L7.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 eb(e){return new L7(e)}function I7(e){return e[0]}function D7(e){return e[1]}function $7(e,t){var r=Xt(!0),n=null,i=eb,o=null,a=XT(s);e=typeof e=="function"?e:e===void 0?I7:Xt(e),t=typeof t=="function"?t:t===void 0?D7:Xt(t);function s(c){var u,h=(c=QT(c)).length,p,v=!1,b;for(n==null&&(o=i(b=a())),u=0;u<=h;++u)!(u<h&&r(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?(r=typeof c=="function"?c:Xt(!!c),s):r},s.curve=function(c){return arguments.length?(i=c,n!=null&&(o=i(n)),s):i},s.context=function(c){return arguments.length?(c==null?n=o=null:o=i(n=c),s):n},s}function Kv(e,t,r){var n=null,i=Xt(!0),o=null,a=eb,s=null,c=XT(u);e=typeof e=="function"?e:e===void 0?I7:Xt(+e),t=typeof t=="function"?t:Xt(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?D7:Xt(+r);function u(p){var v,b,_,x=(p=QT(p)).length,w,O=!1,P,C=new Array(x),T=new Array(x);for(o==null&&(s=a(P=c())),v=0;v<=x;++v){if(!(v<x&&i(w=p[v],v,p))===O)if(O=!O)b=v,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),_=v-1;_>=b;--_)s.point(C[_],T[_]);s.lineEnd(),s.areaEnd()}O&&(C[v]=+e(w,v,p),T[v]=+t(w,v,p),s.point(n?+n(w,v,p):C[v],r?+r(w,v,p):T[v]))}if(P)return s=null,P+""||null}function h(){return $7().defined(i).curve(a).context(o)}return u.x=function(p){return arguments.length?(e=typeof p=="function"?p:Xt(+p),n=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?(n=p==null?null:typeof p=="function"?p:Xt(+p),u):n},u.y=function(p){return arguments.length?(t=typeof p=="function"?p:Xt(+p),r=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?(r=p==null?null:typeof p=="function"?p:Xt(+p),u):r},u.lineX0=u.lineY0=function(){return h().x(e).y(t)},u.lineY1=function(){return h().x(e).y(r)},u.lineX1=function(){return h().x(n).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 F7{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function Ece(e){return new F7(e,!0)}function Cce(e){return new F7(e,!1)}const JT={draw(e,t){const r=jo(t/vy);e.moveTo(r,0),e.arc(0,0,r,0,J0)}},Tce={draw(e,t){const r=jo(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},B7=jo(1/3),jce=B7*2,Ace={draw(e,t){const r=jo(t/jce),n=r*B7;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},kce={draw(e,t){const r=jo(t),n=-r/2;e.rect(n,n,r,r)}},Rce=.8908130915292852,U7=my(vy/10)/my(7*vy/10),Nce=my(J0/10)*U7,Mce=-N7(J0/10)*U7,Lce={draw(e,t){const r=jo(t*Rce),n=Nce*r,i=Mce*r;e.moveTo(0,-r),e.lineTo(n,i);for(let o=1;o<5;++o){const a=J0*o/5,s=N7(a),c=my(a);e.lineTo(c*r,-s*r),e.lineTo(s*n-c*i,c*n+s*i)}e.closePath()}},rw=jo(3),Ice={draw(e,t){const r=-jo(t/(rw*3));e.moveTo(0,r*2),e.lineTo(-rw*r,-r),e.lineTo(rw*r,-r),e.closePath()}},Ii=-.5,Di=jo(3)/2,aE=1/jo(12),Dce=(aE/2+1)*3,$ce={draw(e,t){const r=jo(t/Dce),n=r/2,i=r*aE,o=n,a=r*aE+r,s=-o,c=a;e.moveTo(n,i),e.lineTo(o,a),e.lineTo(s,c),e.lineTo(Ii*n-Di*i,Di*n+Ii*i),e.lineTo(Ii*o-Di*a,Di*o+Ii*a),e.lineTo(Ii*s-Di*c,Di*s+Ii*c),e.lineTo(Ii*n+Di*i,Ii*i-Di*n),e.lineTo(Ii*o+Di*a,Ii*a-Di*o),e.lineTo(Ii*s+Di*c,Ii*c-Di*s),e.closePath()}};function Fce(e,t){let r=null,n=XT(i);e=typeof e=="function"?e:Xt(e||JT),t=typeof t=="function"?t:Xt(t===void 0?64:+t);function i(){let o;if(r||(r=o=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),o)return r=null,o+""||null}return i.type=function(o){return arguments.length?(e=typeof o=="function"?o: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?(r=o??null,i):r},i}function gy(){}function yy(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function z7(e){this._context=e}z7.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:yy(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:yy(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Bce(e){return new z7(e)}function V7(e){this._context=e}V7.prototype={areaStart:gy,areaEnd:gy,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:yy(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Uce(e){return new V7(e)}function W7(e){this._context=e}W7.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:yy(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function zce(e){return new W7(e)}function q7(e){this._context=e}q7.prototype={areaStart:gy,areaEnd:gy,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 Vce(e){return new q7(e)}function KM(e){return e<0?-1:1}function YM(e,t,r){var n=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(n||i<0&&-0),a=(r-e._y1)/(i||n<0&&-0),s=(o*i+a*n)/(n+i);return(KM(o)+KM(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function ZM(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function nw(e,t,r){var n=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-n)/3;e._context.bezierCurveTo(n+s,i+s*t,o-s,a-s*r,o,a)}function by(e){this._context=e}by.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:nw(this,this._t0,ZM(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,nw(this,ZM(this,r=YM(this,e,t)),r);break;default:nw(this,this._t0,r=YM(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function H7(e){this._context=new G7(e)}(H7.prototype=Object.create(by.prototype)).point=function(e,t){by.prototype.point.call(this,t,e)};function G7(e){this._context=e}G7.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,o){this._context.bezierCurveTo(t,e,n,r,o,i)}};function Wce(e){return new by(e)}function qce(e){return new H7(e)}function K7(e){this._context=e}K7.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=XM(e),i=XM(t),o=0,a=1;a<r;++o,++a)this._context.bezierCurveTo(n[0][o],i[0][o],n[1][o],i[1][o],e[a],t[a]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function XM(e){var t,r=e.length-1,n,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,o[r-1]=7,a[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/o[t-1],o[t]-=n,a[t]-=n*a[t-1];for(i[r-1]=a[r-1]/o[r-1],t=r-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function Hce(e){return new K7(e)}function tb(e,t){this._context=e,this._t=t}tb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function Gce(e){return new tb(e,.5)}function Kce(e){return new tb(e,0)}function Yce(e){return new tb(e,1)}function vf(e,t){if((a=e.length)>1)for(var r=1,n,i,o=e[t[0]],a,s=o.length;r<a;++r)for(i=o,o=e[t[r]],n=0;n<s;++n)o[n][1]+=o[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function sE(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function Zce(e,t){return e[t]}function Xce(e){const t=[];return t.key=e,t}function Qce(){var e=Xt([]),t=sE,r=vf,n=Zce;function i(o){var a=Array.from(e.apply(this,arguments),Xce),s,c=a.length,u=-1,h;for(const p of o)for(s=0,++u;s<c;++s)(a[s][u]=[0,+n(p,a[s].key,u,o)]).data=p;for(s=0,h=QT(t(a));s<c;++s)a[h[s]].index=s;return r(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?(n=typeof o=="function"?o:Xt(+o),i):n},i.order=function(o){return arguments.length?(t=o==null?sE:typeof o=="function"?o:Xt(Array.from(o)),i):t},i.offset=function(o){return arguments.length?(r=o??vf,i):r},i}function Jce(e,t){if((n=e.length)>0){for(var r,n,i=0,o=e[0].length,a;i<o;++i){for(a=r=0;r<n;++r)a+=e[r][i][1]||0;if(a)for(r=0;r<n;++r)e[r][i][1]/=a}vf(e,t)}}function efe(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,o=n.length;r<o;++r){for(var a=0,s=0;a<i;++a)s+=e[a][r][1]||0;n[r][1]+=n[r][0]=-s/2}vf(e,t)}}function tfe(e,t){if(!(!((a=e.length)>0)||!((o=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,o,a;n<o;++n){for(var s=0,c=0,u=0;s<a;++s){for(var h=e[t[s]],p=h[n][1]||0,v=h[n-1][1]||0,b=(p-v)/2,_=0;_<s;++_){var x=e[t[_]],w=x[n][1]||0,O=x[n-1][1]||0;b+=w-O}c+=p,u+=b*p}i[n-1][1]+=i[n-1][0]=r,c&&(r-=u/c)}i[n-1][1]+=i[n-1][0]=r,vf(e,t)}}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 rfe=["type","size","sizeType"];function lE(){return lE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},lE.apply(this,arguments)}function QM(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function JM(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?QM(Object(r),!0).forEach(function(n){nfe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):QM(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nfe(e,t,r){return t=ife(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ife(e){var t=ofe(e,"string");return cp(t)=="symbol"?t:t+""}function ofe(e,t){if(cp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(cp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function afe(e,t){if(e==null)return{};var r=sfe(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function sfe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var Y7={symbolCircle:JT,symbolCross:Tce,symbolDiamond:Ace,symbolSquare:kce,symbolStar:Lce,symbolTriangle:Ice,symbolWye:$ce},lfe=Math.PI/180,ufe=function(t){var r="symbol".concat(Q0(t));return Y7[r]||JT},cfe=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*lfe;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}},ffe=function(t,r){Y7["symbol".concat(Q0(t))]=r},rb=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,o=i===void 0?64:i,a=t.sizeType,s=a===void 0?"area":a,c=afe(t,rfe),u=JM(JM({},c),{},{type:n,size:o,sizeType:s}),h=function(){var w=ufe(n),O=Fce().type(w).size(cfe(o,s,n));return O()},p=u.className,v=u.cx,b=u.cy,_=it(u,!0);return v===+v&&b===+b&&o===+o?Z.createElement("path",lE({},_,{className:ze("recharts-symbols",p),transform:"translate(".concat(v,", ").concat(b,")"),d:h()})):null};rb.registerSymbol=ffe;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 uE(){return uE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},uE.apply(this,arguments)}function eL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function dfe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?eL(Object(r),!0).forEach(function(n){fp(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eL(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pfe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,X7(n.key),n)}}function mfe(e,t,r){return t&&pfe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function vfe(e,t,r){return t=_y(t),gfe(e,Z7()?Reflect.construct(t,r||[],_y(e).constructor):t.apply(e,r))}function gfe(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 yfe(e)}function yfe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Z7(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Z7=function(){return!!e})()}function _y(e){return _y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},_y(e)}function bfe(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(n,i){return n.__proto__=i,n},cE(e,t)}function fp(e,t,r){return t=X7(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function X7(e){var t=_fe(e,"string");return gf(t)=="symbol"?t:t+""}function _fe(e,t){if(gf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(gf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $i=32,ej=function(e){function t(){return hfe(this,t),vfe(this,t,arguments)}return bfe(t,e),mfe(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,o=$i/2,a=$i/6,s=$i/3,c=n.inactive?i:n.color;if(n.type==="plainline")return Z.createElement("line",{strokeWidth:4,fill:"none",stroke:c,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:o,x2:$i,y2:o,className:"recharts-legend-icon"});if(n.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($i,"M").concat(2*s,",").concat(o,`
|
||
A`).concat(a,",").concat(a,",0,1,1,").concat(s,",").concat(o),className:"recharts-legend-icon"});if(n.type==="rect")return Z.createElement("path",{stroke:"none",fill:c,d:"M0,".concat($i/8,"h").concat($i,"v").concat($i*3/4,"h").concat(-$i,"z"),className:"recharts-legend-icon"});if(Z.isValidElement(n.legendIcon)){var u=dfe({},n);return delete u.legendIcon,Z.cloneElement(n.legendIcon,u)}return Z.createElement(rb,{fill:c,cx:o,cy:o,size:$i,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=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:$i,height:$i},p={display:s==="horizontal"?"inline-block":"block",marginRight:10},v={display:"inline-block",verticalAlign:"middle",marginRight:4};return o.map(function(b,_){var x=b.formatter||c,w=ze(fp(fp({"recharts-legend-item":!0},"legend-item-".concat(_),!0),"inactive",b.inactive));if(b.type==="none")return null;var O=ft(b.value)?null:b.value;_o(!ft(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",uE({className:w,style:p,key:"legend-item-".concat(_)},sl(n.props,b,_)),Z.createElement(rE,{width:a,height:a,viewBox:h,style:v},n.renderIcon(b)),Z.createElement("span",{className:"recharts-legend-item-text",style:{color:P}},x?x(O,b,_):O))})}},{key:"render",value:function(){var n=this.props,i=n.payload,o=n.layout,a=n.align;if(!i||!i.length)return null;var s={padding:0,margin:0,textAlign:o==="horizontal"?a:"left"};return Z.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])}(I.PureComponent);fp(ej,"displayName","Legend");fp(ej,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var iw,tL;function xfe(){if(tL)return iw;tL=1;var e=Y0();function t(){this.__data__=new e,this.size=0}return iw=t,iw}var ow,rL;function wfe(){if(rL)return ow;rL=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return ow=e,ow}var aw,nL;function Ofe(){if(nL)return aw;nL=1;function e(t){return this.__data__.get(t)}return aw=e,aw}var sw,iL;function Sfe(){if(iL)return sw;iL=1;function e(t){return this.__data__.has(t)}return sw=e,sw}var lw,oL;function Pfe(){if(oL)return lw;oL=1;var e=Y0(),t=qT(),r=HT(),n=200;function i(o,a){var s=this.__data__;if(s instanceof e){var c=s.__data__;if(!t||c.length<n-1)return c.push([o,a]),this.size=++s.size,this;s=this.__data__=new r(c)}return s.set(o,a),this.size=s.size,this}return lw=i,lw}var uw,aL;function Q7(){if(aL)return uw;aL=1;var e=Y0(),t=xfe(),r=wfe(),n=Ofe(),i=Sfe(),o=Pfe();function a(s){var c=this.__data__=new e(s);this.size=c.size}return a.prototype.clear=t,a.prototype.delete=r,a.prototype.get=n,a.prototype.has=i,a.prototype.set=o,uw=a,uw}var cw,sL;function Efe(){if(sL)return cw;sL=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return cw=t,cw}var fw,lL;function Cfe(){if(lL)return fw;lL=1;function e(t){return this.__data__.has(t)}return fw=e,fw}var dw,uL;function J7(){if(uL)return dw;uL=1;var e=HT(),t=Efe(),r=Cfe();function n(i){var o=-1,a=i==null?0:i.length;for(this.__data__=new e;++o<a;)this.add(i[o])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,dw=n,dw}var hw,cL;function eB(){if(cL)return hw;cL=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(r(t[n],n,t))return!0;return!1}return hw=e,hw}var pw,fL;function tB(){if(fL)return pw;fL=1;function e(t,r){return t.has(r)}return pw=e,pw}var mw,dL;function rB(){if(dL)return mw;dL=1;var e=J7(),t=eB(),r=tB(),n=1,i=2;function o(a,s,c,u,h,p){var v=c&n,b=a.length,_=s.length;if(b!=_&&!(v&&_>b))return!1;var x=p.get(a),w=p.get(s);if(x&&w)return x==s&&w==a;var O=-1,P=!0,C=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(C){if(!t(s,function(N,F){if(!r(C,F)&&(T===N||h(T,N,c,u,p)))return C.push(F)})){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 mw=o,mw}var vw,hL;function Tfe(){if(hL)return vw;hL=1;var e=ua(),t=e.Uint8Array;return vw=t,vw}var gw,pL;function jfe(){if(pL)return gw;pL=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,o){n[++r]=[o,i]}),n}return gw=e,gw}var yw,mL;function tj(){if(mL)return yw;mL=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return yw=e,yw}var bw,vL;function Afe(){if(vL)return bw;vL=1;var e=lm(),t=Tfe(),r=WT(),n=rB(),i=jfe(),o=tj(),a=1,s=2,c="[object Boolean]",u="[object Date]",h="[object Error]",p="[object Map]",v="[object Number]",b="[object RegExp]",_="[object Set]",x="[object String]",w="[object Symbol]",O="[object ArrayBuffer]",P="[object DataView]",C=e?e.prototype:void 0,T=C?C.valueOf:void 0;function A(j,N,F,V,B,W,q){switch(F){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||!W(new t(j),new t(N)));case c:case u:case v:return r(+j,+N);case h:return j.name==N.name&&j.message==N.message;case b:case x:return j==N+"";case p:var J=i;case _:var Q=V&a;if(J||(J=o),j.size!=N.size&&!Q)return!1;var ne=q.get(j);if(ne)return ne==N;V|=s,q.set(j,N);var ae=n(J(j),J(N),V,B,W,q);return q.delete(j),ae;case w:if(T)return T.call(j)==T.call(N)}return!1}return bw=A,bw}var _w,gL;function nB(){if(gL)return _w;gL=1;function e(t,r){for(var n=-1,i=r.length,o=t.length;++n<i;)t[o+n]=r[n];return t}return _w=e,_w}var xw,yL;function kfe(){if(yL)return xw;yL=1;var e=nB(),t=Zn();function r(n,i,o){var a=i(n);return t(n)?a:e(a,o(n))}return xw=r,xw}var ww,bL;function Rfe(){if(bL)return ww;bL=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,o=0,a=[];++n<i;){var s=t[n];r(s,n,t)&&(a[o++]=s)}return a}return ww=e,ww}var Ow,_L;function Nfe(){if(_L)return Ow;_L=1;function e(){return[]}return Ow=e,Ow}var Sw,xL;function Mfe(){if(xL)return Sw;xL=1;var e=Rfe(),t=Nfe(),r=Object.prototype,n=r.propertyIsEnumerable,i=Object.getOwnPropertySymbols,o=i?function(a){return a==null?[]:(a=Object(a),e(i(a),function(s){return n.call(a,s)}))}:t;return Sw=o,Sw}var Pw,wL;function Lfe(){if(wL)return Pw;wL=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return Pw=e,Pw}var Ew,OL;function Ife(){if(OL)return Ew;OL=1;var e=ts(),t=rs(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return Ew=n,Ew}var Cw,SL;function rj(){if(SL)return Cw;SL=1;var e=Ife(),t=rs(),r=Object.prototype,n=r.hasOwnProperty,i=r.propertyIsEnumerable,o=e(function(){return arguments}())?e:function(a){return t(a)&&n.call(a,"callee")&&!i.call(a,"callee")};return Cw=o,Cw}var Ph={exports:{}},Tw,PL;function Dfe(){if(PL)return Tw;PL=1;function e(){return!1}return Tw=e,Tw}Ph.exports;var EL;function iB(){return EL||(EL=1,function(e,t){var r=ua(),n=Dfe(),i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a?r.Buffer:void 0,c=s?s.isBuffer:void 0,u=c||n;e.exports=u}(Ph,Ph.exports)),Ph.exports}var jw,CL;function nj(){if(CL)return jw;CL=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,i){var o=typeof n;return i=i??e,!!i&&(o=="number"||o!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<i}return jw=r,jw}var Aw,TL;function ij(){if(TL)return Aw;TL=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return Aw=t,Aw}var kw,jL;function $fe(){if(jL)return kw;jL=1;var e=ts(),t=ij(),r=rs(),n="[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]",_="[object String]",x="[object WeakMap]",w="[object ArrayBuffer]",O="[object DataView]",P="[object Float32Array]",C="[object Float64Array]",T="[object Int8Array]",A="[object Int16Array]",j="[object Int32Array]",N="[object Uint8Array]",F="[object Uint8ClampedArray]",V="[object Uint16Array]",B="[object Uint32Array]",W={};W[P]=W[C]=W[T]=W[A]=W[j]=W[N]=W[F]=W[V]=W[B]=!0,W[n]=W[i]=W[w]=W[o]=W[O]=W[a]=W[s]=W[c]=W[u]=W[h]=W[p]=W[v]=W[b]=W[_]=W[x]=!1;function q(J){return r(J)&&t(J.length)&&!!W[e(J)]}return kw=q,kw}var Rw,AL;function oB(){if(AL)return Rw;AL=1;function e(t){return function(r){return t(r)}}return Rw=e,Rw}var Eh={exports:{}};Eh.exports;var kL;function Ffe(){return kL||(kL=1,function(e,t){var r=S7(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,a=o&&r.process,s=function(){try{var c=i&&i.require&&i.require("util").types;return c||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s}(Eh,Eh.exports)),Eh.exports}var Nw,RL;function aB(){if(RL)return Nw;RL=1;var e=$fe(),t=oB(),r=Ffe(),n=r&&r.isTypedArray,i=n?t(n):e;return Nw=i,Nw}var Mw,NL;function Bfe(){if(NL)return Mw;NL=1;var e=Lfe(),t=rj(),r=Zn(),n=iB(),i=nj(),o=aB(),a=Object.prototype,s=a.hasOwnProperty;function c(u,h){var p=r(u),v=!p&&t(u),b=!p&&!v&&n(u),_=!p&&!v&&!b&&o(u),x=p||v||b||_,w=x?e(u.length,String):[],O=w.length;for(var P in u)(h||s.call(u,P))&&!(x&&(P=="length"||b&&(P=="offset"||P=="parent")||_&&(P=="buffer"||P=="byteLength"||P=="byteOffset")||i(P,O)))&&w.push(P);return w}return Mw=c,Mw}var Lw,ML;function Ufe(){if(ML)return Lw;ML=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return Lw=t,Lw}var Iw,LL;function sB(){if(LL)return Iw;LL=1;function e(t,r){return function(n){return t(r(n))}}return Iw=e,Iw}var Dw,IL;function zfe(){if(IL)return Dw;IL=1;var e=sB(),t=e(Object.keys,Object);return Dw=t,Dw}var $w,DL;function Vfe(){if(DL)return $w;DL=1;var e=Ufe(),t=zfe(),r=Object.prototype,n=r.hasOwnProperty;function i(o){if(!e(o))return t(o);var a=[];for(var s in Object(o))n.call(o,s)&&s!="constructor"&&a.push(s);return a}return $w=i,$w}var Fw,$L;function cm(){if($L)return Fw;$L=1;var e=VT(),t=ij();function r(n){return n!=null&&t(n.length)&&!e(n)}return Fw=r,Fw}var Bw,FL;function nb(){if(FL)return Bw;FL=1;var e=Bfe(),t=Vfe(),r=cm();function n(i){return r(i)?e(i):t(i)}return Bw=n,Bw}var Uw,BL;function Wfe(){if(BL)return Uw;BL=1;var e=kfe(),t=Mfe(),r=nb();function n(i){return e(i,r,t)}return Uw=n,Uw}var zw,UL;function qfe(){if(UL)return zw;UL=1;var e=Wfe(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(o,a,s,c,u,h){var p=s&t,v=e(o),b=v.length,_=e(a),x=_.length;if(b!=x&&!p)return!1;for(var w=b;w--;){var O=v[w];if(!(p?O in a:n.call(a,O)))return!1}var P=h.get(o),C=h.get(a);if(P&&C)return P==a&&C==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 F=p?c(N,j,O,a,o,h):c(j,N,O,o,a,h);if(!(F===void 0?j===N||u(j,N,s,c,h):F)){T=!1;break}A||(A=O=="constructor")}if(T&&!A){var V=o.constructor,B=a.constructor;V!=B&&"constructor"in o&&"constructor"in a&&!(typeof V=="function"&&V instanceof V&&typeof B=="function"&&B instanceof B)&&(T=!1)}return h.delete(o),h.delete(a),T}return zw=i,zw}var Vw,zL;function Hfe(){if(zL)return Vw;zL=1;var e=Lu(),t=ua(),r=e(t,"DataView");return Vw=r,Vw}var Ww,VL;function Gfe(){if(VL)return Ww;VL=1;var e=Lu(),t=ua(),r=e(t,"Promise");return Ww=r,Ww}var qw,WL;function lB(){if(WL)return qw;WL=1;var e=Lu(),t=ua(),r=e(t,"Set");return qw=r,qw}var Hw,qL;function Kfe(){if(qL)return Hw;qL=1;var e=Lu(),t=ua(),r=e(t,"WeakMap");return Hw=r,Hw}var Gw,HL;function Yfe(){if(HL)return Gw;HL=1;var e=Hfe(),t=qT(),r=Gfe(),n=lB(),i=Kfe(),o=ts(),a=P7(),s="[object Map]",c="[object Object]",u="[object Promise]",h="[object Set]",p="[object WeakMap]",v="[object DataView]",b=a(e),_=a(t),x=a(r),w=a(n),O=a(i),P=o;return(e&&P(new e(new ArrayBuffer(1)))!=v||t&&P(new t)!=s||r&&P(r.resolve())!=u||n&&P(new n)!=h||i&&P(new i)!=p)&&(P=function(C){var T=o(C),A=T==c?C.constructor:void 0,j=A?a(A):"";if(j)switch(j){case b:return v;case _:return s;case x:return u;case w:return h;case O:return p}return T}),Gw=P,Gw}var Kw,GL;function Zfe(){if(GL)return Kw;GL=1;var e=Q7(),t=rB(),r=Afe(),n=qfe(),i=Yfe(),o=Zn(),a=iB(),s=aB(),c=1,u="[object Arguments]",h="[object Array]",p="[object Object]",v=Object.prototype,b=v.hasOwnProperty;function _(x,w,O,P,C,T){var A=o(x),j=o(w),N=A?h:i(x),F=j?h:i(w);N=N==u?p:N,F=F==u?p:F;var V=N==p,B=F==p,W=N==F;if(W&&a(x)){if(!a(w))return!1;A=!0,V=!1}if(W&&!V)return T||(T=new e),A||s(x)?t(x,w,O,P,C,T):r(x,w,N,O,P,C,T);if(!(O&c)){var q=V&&b.call(x,"__wrapped__"),J=B&&b.call(w,"__wrapped__");if(q||J){var Q=q?x.value():x,ne=J?w.value():w;return T||(T=new e),C(Q,ne,O,P,T)}}return W?(T||(T=new e),n(x,w,O,P,C,T)):!1}return Kw=_,Kw}var Yw,KL;function oj(){if(KL)return Yw;KL=1;var e=Zfe(),t=rs();function r(n,i,o,a,s){return n===i?!0:n==null||i==null||!t(n)&&!t(i)?n!==n&&i!==i:e(n,i,o,a,r,s)}return Yw=r,Yw}var Zw,YL;function Xfe(){if(YL)return Zw;YL=1;var e=Q7(),t=oj(),r=1,n=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],_=o[b],x=v[1];if(p&&v[2]){if(_===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,_,r|n,c,w):O))return!1}}return!0}return Zw=i,Zw}var Xw,ZL;function uB(){if(ZL)return Xw;ZL=1;var e=ml();function t(r){return r===r&&!e(r)}return Xw=t,Xw}var Qw,XL;function Qfe(){if(XL)return Qw;XL=1;var e=uB(),t=nb();function r(n){for(var i=t(n),o=i.length;o--;){var a=i[o],s=n[a];i[o]=[a,s,e(s)]}return i}return Qw=r,Qw}var Jw,QL;function cB(){if(QL)return Jw;QL=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return Jw=e,Jw}var e2,JL;function Jfe(){if(JL)return e2;JL=1;var e=Xfe(),t=Qfe(),r=cB();function n(i){var o=t(i);return o.length==1&&o[0][2]?r(o[0][0],o[0][1]):function(a){return a===i||e(a,i,o)}}return e2=n,e2}var t2,e4;function ede(){if(e4)return t2;e4=1;function e(t,r){return t!=null&&r in Object(t)}return t2=e,t2}var r2,t4;function tde(){if(t4)return r2;t4=1;var e=T7(),t=rj(),r=Zn(),n=nj(),i=ij(),o=X0();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)&&n(b,p)&&(r(s)||t(s)))}return r2=a,r2}var n2,r4;function rde(){if(r4)return n2;r4=1;var e=ede(),t=tde();function r(n,i){return n!=null&&t(n,i,e)}return n2=r,n2}var i2,n4;function nde(){if(n4)return i2;n4=1;var e=oj(),t=j7(),r=rde(),n=zT(),i=uB(),o=cB(),a=X0(),s=1,c=2;function u(h,p){return n(h)&&i(p)?o(a(h),p):function(v){var b=t(v,h);return b===void 0&&b===p?r(v,h):e(p,b,s|c)}}return i2=u,i2}var o2,i4;function td(){if(i4)return o2;i4=1;function e(t){return t}return o2=e,o2}var a2,o4;function ide(){if(o4)return a2;o4=1;function e(t){return function(r){return r==null?void 0:r[t]}}return a2=e,a2}var s2,a4;function ode(){if(a4)return s2;a4=1;var e=KT();function t(r){return function(n){return e(n,r)}}return s2=t,s2}var l2,s4;function ade(){if(s4)return l2;s4=1;var e=ide(),t=ode(),r=zT(),n=X0();function i(o){return r(o)?e(n(o)):t(o)}return l2=i,l2}var u2,l4;function ca(){if(l4)return u2;l4=1;var e=Jfe(),t=nde(),r=td(),n=Zn(),i=ade();function o(a){return typeof a=="function"?a:a==null?r:typeof a=="object"?n(a)?t(a[0],a[1]):e(a):i(a)}return u2=o,u2}var c2,u4;function fB(){if(u4)return c2;u4=1;function e(t,r,n,i){for(var o=t.length,a=n+(i?1:-1);i?a--:++a<o;)if(r(t[a],a,t))return a;return-1}return c2=e,c2}var f2,c4;function sde(){if(c4)return f2;c4=1;function e(t){return t!==t}return f2=e,f2}var d2,f4;function lde(){if(f4)return d2;f4=1;function e(t,r,n){for(var i=n-1,o=t.length;++i<o;)if(t[i]===r)return i;return-1}return d2=e,d2}var h2,d4;function ude(){if(d4)return h2;d4=1;var e=fB(),t=sde(),r=lde();function n(i,o,a){return o===o?r(i,o,a):e(i,t,a)}return h2=n,h2}var p2,h4;function cde(){if(h4)return p2;h4=1;var e=ude();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return p2=t,p2}var m2,p4;function fde(){if(p4)return m2;p4=1;function e(t,r,n){for(var i=-1,o=t==null?0:t.length;++i<o;)if(n(r,t[i]))return!0;return!1}return m2=e,m2}var v2,m4;function dde(){if(m4)return v2;m4=1;function e(){}return v2=e,v2}var g2,v4;function hde(){if(v4)return g2;v4=1;var e=lB(),t=dde(),r=tj(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(o){return new e(o)}:t;return g2=i,g2}var y2,g4;function pde(){if(g4)return y2;g4=1;var e=J7(),t=cde(),r=fde(),n=tB(),i=hde(),o=tj(),a=200;function s(c,u,h){var p=-1,v=t,b=c.length,_=!0,x=[],w=x;if(h)_=!1,v=r;else if(b>=a){var O=u?null:i(c);if(O)return o(O);_=!1,v=n,w=new e}else w=u?[]:x;e:for(;++p<b;){var P=c[p],C=u?u(P):P;if(P=h||P!==0?P:0,_&&C===C){for(var T=w.length;T--;)if(w[T]===C)continue e;u&&w.push(C),x.push(P)}else v(w,C,h)||(w!==x&&w.push(C),x.push(P))}return x}return y2=s,y2}var b2,y4;function mde(){if(y4)return b2;y4=1;var e=ca(),t=pde();function r(n,i){return n&&n.length?t(n,e(i,2)):[]}return b2=r,b2}var vde=mde();const b4=Nt(vde);function dB(e,t,r){return t===!0?b4(e,r):ft(t)?b4(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 gde=["ref"];function _4(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ra(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_4(Object(r),!0).forEach(function(n){ib(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_4(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yde(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x4(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,pB(n.key),n)}}function bde(e,t,r){return t&&x4(e.prototype,t),r&&x4(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _de(e,t,r){return t=xy(t),xde(e,hB()?Reflect.construct(t,r||[],xy(e).constructor):t.apply(e,r))}function xde(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 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 xy(e){return xy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},xy(e)}function Ode(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&&fE(e,t)}function fE(e,t){return fE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},fE(e,t)}function ib(e,t,r){return t=pB(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pB(e){var t=Sde(e,"string");return yf(t)=="symbol"?t:t+""}function Sde(e,t){if(yf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(yf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Pde(e,t){if(e==null)return{};var r=Ede(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Ede(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Cde(e){return e.value}function Tde(e,t){if(Z.isValidElement(e))return Z.cloneElement(e,t);if(typeof e=="function")return Z.createElement(e,t);t.ref;var r=Pde(t,gde);return Z.createElement(ej,r)}var w4=1,rf=function(e){function t(){var r;yde(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return r=_de(this,t,[].concat(i)),ib(r,"lastBoundingBox",{width:-1,height:-1}),r}return Ode(t,e),bde(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();return n.height=this.wrapperNode.offsetHeight,n.width=this.wrapperNode.offsetWidth,n}return null}},{key:"updateBBox",value:function(){var n=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>w4||Math.abs(i.height-this.lastBoundingBox.height)>w4)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,n&&n(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Ra({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){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(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.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(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(s==="middle"){var _=this.getBBoxSnapshot();v={top:((h||0)-_.height)/2}}else v=s==="bottom"?{bottom:c&&c.bottom||0}:{top:c&&c.top||0};return Ra(Ra({},p),v)}},{key:"render",value:function(){var n=this,i=this.props,o=i.content,a=i.width,s=i.height,c=i.wrapperStyle,u=i.payloadUniqBy,h=i.payload,p=Ra(Ra({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){n.wrapperNode=b}},Tde(o,Ra(Ra({},this.props),{},{payload:dB(h,u,Cde)})))}}],[{key:"getWithHeight",value:function(n,i){var o=Ra(Ra({},this.defaultProps),n.props),a=o.layout;return a==="vertical"&&Ve(n.props.height)?{height:n.props.height}:a==="horizontal"?{width:n.props.width||i}:null}}])}(I.PureComponent);ib(rf,"displayName","Legend");ib(rf,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var _2,O4;function jde(){if(O4)return _2;O4=1;var e=lm(),t=rj(),r=Zn(),n=e?e.isConcatSpreadable:void 0;function i(o){return r(o)||t(o)||!!(n&&o&&o[n])}return _2=i,_2}var x2,S4;function mB(){if(S4)return x2;S4=1;var e=nB(),t=jde();function r(n,i,o,a,s){var c=-1,u=n.length;for(o||(o=t),s||(s=[]);++c<u;){var h=n[c];i>0&&o(h)?i>1?r(h,i-1,o,a,s):e(s,h):a||(s[s.length]=h)}return s}return x2=r,x2}var w2,P4;function Ade(){if(P4)return w2;P4=1;function e(t){return function(r,n,i){for(var o=-1,a=Object(r),s=i(r),c=s.length;c--;){var u=s[t?c:++o];if(n(a[u],u,a)===!1)break}return r}}return w2=e,w2}var O2,E4;function kde(){if(E4)return O2;E4=1;var e=Ade(),t=e();return O2=t,O2}var S2,C4;function vB(){if(C4)return S2;C4=1;var e=kde(),t=nb();function r(n,i){return n&&e(n,i,t)}return S2=r,S2}var P2,T4;function Rde(){if(T4)return P2;T4=1;var e=cm();function t(r,n){return function(i,o){if(i==null)return i;if(!e(i))return r(i,o);for(var a=i.length,s=n?a:-1,c=Object(i);(n?s--:++s<a)&&o(c[s],s,c)!==!1;);return i}}return P2=t,P2}var E2,j4;function aj(){if(j4)return E2;j4=1;var e=vB(),t=Rde(),r=t(e);return E2=r,E2}var C2,A4;function gB(){if(A4)return C2;A4=1;var e=aj(),t=cm();function r(n,i){var o=-1,a=t(n)?Array(n.length):[];return e(n,function(s,c,u){a[++o]=i(s,c,u)}),a}return C2=r,C2}var T2,k4;function Nde(){if(k4)return T2;k4=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return T2=e,T2}var j2,R4;function Mde(){if(R4)return j2;R4=1;var e=Qf();function t(r,n){if(r!==n){var i=r!==void 0,o=r===null,a=r===r,s=e(r),c=n!==void 0,u=n===null,h=n===n,p=e(n);if(!u&&!p&&!s&&r>n||s&&c&&h&&!u&&!p||o&&c&&h||!i&&h||!a)return 1;if(!o&&!s&&!p&&r<n||p&&i&&a&&!o&&!s||u&&i&&a||!c&&a||!h)return-1}return 0}return j2=t,j2}var A2,N4;function Lde(){if(N4)return A2;N4=1;var e=Mde();function t(r,n,i){for(var o=-1,a=r.criteria,s=n.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 r.index-n.index}return A2=t,A2}var k2,M4;function Ide(){if(M4)return k2;M4=1;var e=GT(),t=KT(),r=ca(),n=gB(),i=Nde(),o=oB(),a=Lde(),s=td(),c=Zn();function u(h,p,v){p.length?p=e(p,function(x){return c(x)?function(w){return t(w,x.length===1?x[0]:x)}:x}):p=[s];var b=-1;p=e(p,o(r));var _=n(h,function(x,w,O){var P=e(p,function(C){return C(x)});return{criteria:P,index:++b,value:x}});return i(_,function(x,w){return a(x,w,v)})}return k2=u,k2}var R2,L4;function Dde(){if(L4)return R2;L4=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return R2=e,R2}var N2,I4;function $de(){if(I4)return N2;I4=1;var e=Dde(),t=Math.max;function r(n,i,o){return i=t(i===void 0?n.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(n,this,h)}}return N2=r,N2}var M2,D4;function Fde(){if(D4)return M2;D4=1;function e(t){return function(){return t}}return M2=e,M2}var L2,$4;function yB(){if($4)return L2;$4=1;var e=Lu(),t=function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}}();return L2=t,L2}var I2,F4;function Bde(){if(F4)return I2;F4=1;var e=Fde(),t=yB(),r=td(),n=t?function(i,o){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(o),writable:!0})}:r;return I2=n,I2}var D2,B4;function Ude(){if(B4)return D2;B4=1;var e=800,t=16,r=Date.now;function n(i){var o=0,a=0;return function(){var s=r(),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 D2=n,D2}var $2,U4;function zde(){if(U4)return $2;U4=1;var e=Bde(),t=Ude(),r=t(e);return $2=r,$2}var F2,z4;function Vde(){if(z4)return F2;z4=1;var e=td(),t=$de(),r=zde();function n(i,o){return r(t(i,o,e),i+"")}return F2=n,F2}var B2,V4;function ob(){if(V4)return B2;V4=1;var e=WT(),t=cm(),r=nj(),n=ml();function i(o,a,s){if(!n(s))return!1;var c=typeof a;return(c=="number"?t(s)&&r(a,s.length):c=="string"&&a in s)?e(s[a],o):!1}return B2=i,B2}var U2,W4;function Wde(){if(W4)return U2;W4=1;var e=mB(),t=Ide(),r=Vde(),n=ob(),i=r(function(o,a){if(o==null)return[];var s=a.length;return s>1&&n(o,a[0],a[1])?a=[]:s>2&&n(a[0],a[1],a[2])&&(a=[a[0]]),t(o,e(a,1),[])});return U2=i,U2}var qde=Wde();const sj=Nt(qde);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 dE(){return dE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},dE.apply(this,arguments)}function Hde(e,t){return Zde(e)||Yde(e,t)||Kde(e,t)||Gde()}function Gde(){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 Kde(e,t){if(e){if(typeof e=="string")return q4(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return q4(e,t)}}function q4(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Yde(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],c=!0,u=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(h){u=!0,i=h}finally{try{if(!c&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function Zde(e){if(Array.isArray(e))return e}function H4(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function z2(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?H4(Object(r),!0).forEach(function(n){Xde(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):H4(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Xde(e,t,r){return t=Qde(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qde(e){var t=Jde(e,"string");return dp(t)=="symbol"?t:t+""}function Jde(e,t){if(dp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(dp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ehe(e){return Array.isArray(e)&&zr(e[0])&&zr(e[1])?e.join(" ~ "):e}var the=function(t){var r=t.separator,n=r===void 0?" : ":r,i=t.contentStyle,o=i===void 0?{}:i,a=t.itemStyle,s=a===void 0?{}:a,c=t.labelStyle,u=c===void 0?{}:c,h=t.payload,p=t.formatter,v=t.itemSorter,b=t.wrapperClassName,_=t.labelClassName,x=t.label,w=t.labelFormatter,O=t.accessibilityLayer,P=O===void 0?!1:O,C=function(){if(h&&h.length){var q={padding:0,margin:0},J=(v?sj(h,v):h).map(function(Q,ne){if(Q.type==="none")return null;var ae=z2({display:"block",paddingTop:4,paddingBottom:4,color:Q.color||"#000"},s),se=Q.formatter||p||ehe,oe=Q.value,K=Q.name,G=oe,z=K;if(se&&G!=null&&z!=null){var re=se(oe,K,Q,ne,h);if(Array.isArray(re)){var X=Hde(re,2);G=X[0],z=X[1]}else G=re}return Z.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(ne),style:ae},zr(z)?Z.createElement("span",{className:"recharts-tooltip-item-name"},z):null,zr(z)?Z.createElement("span",{className:"recharts-tooltip-item-separator"},n):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:q},J)}return null},T=z2({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},o),A=z2({margin:0},u),j=!dt(x),N=j?x:"",F=ze("recharts-default-tooltip",b),V=ze("recharts-tooltip-label",_);j&&w&&h!==void 0&&h!==null&&(N=w(x,h));var B=P?{role:"status","aria-live":"assertive"}:{};return Z.createElement("div",dE({className:F,style:T},B),Z.createElement("p",{className:V,style:A},Z.isValidElement(N)?N:"".concat(N)),C())};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 Yv(e,t,r){return t=rhe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rhe(e){var t=nhe(e,"string");return hp(t)=="symbol"?t:t+""}function nhe(e,t){if(hp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(hp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ch="recharts-tooltip-wrapper",ihe={visibility:"hidden"};function ohe(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return ze(ch,Yv(Yv(Yv(Yv({},"".concat(ch,"-right"),Ve(r)&&t&&Ve(t.x)&&r>=t.x),"".concat(ch,"-left"),Ve(r)&&t&&Ve(t.x)&&r<t.x),"".concat(ch,"-bottom"),Ve(n)&&t&&Ve(t.y)&&n>=t.y),"".concat(ch,"-top"),Ve(n)&&t&&Ve(t.y)&&n<t.y))}function G4(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,i=e.offsetTopLeft,o=e.position,a=e.reverseDirection,s=e.tooltipDimension,c=e.viewBox,u=e.viewBoxDimension;if(o&&Ve(o[n]))return o[n];var h=r[n]-s-i,p=r[n]+i;if(t[n])return a[n]?h:p;if(a[n]){var v=h,b=c[n];return v<b?Math.max(p,c[n]):Math.max(h,c[n])}var _=p+s,x=c[n]+u;return _>x?Math.max(h,c[n]):Math.max(p,c[n])}function ahe(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function she(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=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&&r?(h=G4({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:o,tooltipDimension:a.width,viewBox:c,viewBoxDimension:c.width}),p=G4({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:o,tooltipDimension:a.height,viewBox:c,viewBoxDimension:c.height}),u=ahe({translateX:h,translateY:p,useTranslate3d:s})):u=ihe,{cssProperties:u,cssClasses:ohe({translateX:h,translateY:p,coordinate: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 K4(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Y4(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?K4(Object(r),!0).forEach(function(n){pE(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):K4(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function lhe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uhe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_B(n.key),n)}}function che(e,t,r){return t&&uhe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function fhe(e,t,r){return t=wy(t),dhe(e,bB()?Reflect.construct(t,r||[],wy(e).constructor):t.apply(e,r))}function dhe(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 hhe(e)}function hhe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bB=function(){return!!e})()}function wy(e){return wy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},wy(e)}function phe(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&&hE(e,t)}function hE(e,t){return hE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},hE(e,t)}function pE(e,t,r){return t=_B(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _B(e){var t=mhe(e,"string");return bf(t)=="symbol"?t:t+""}function mhe(e,t){if(bf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(bf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Z4=1,vhe=function(e){function t(){var r;lhe(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return r=fhe(this,t,[].concat(i)),pE(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),pE(r,"handleKeyDown",function(a){if(a.key==="Escape"){var s,c,u,h;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(s=(c=r.props.coordinate)===null||c===void 0?void 0:c.x)!==null&&s!==void 0?s:0,y:(u=(h=r.props.coordinate)===null||h===void 0?void 0:h.y)!==null&&u!==void 0?u:0}})}}),r}return phe(t,e),che(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>Z4||Math.abs(n.height-this.state.lastBoundingBox.height)>Z4)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,i=this.props,o=i.active,a=i.allowEscapeViewBox,s=i.animationDuration,c=i.animationEasing,u=i.children,h=i.coordinate,p=i.hasPayload,v=i.isAnimationActive,b=i.offset,_=i.position,x=i.reverseDirection,w=i.useTranslate3d,O=i.viewBox,P=i.wrapperStyle,C=she({allowEscapeViewBox:a,coordinate:h,offsetTopLeft:b,position:_,reverseDirection:x,tooltipBox:this.state.lastBoundingBox,useTranslate3d:w,viewBox:O}),T=C.cssClasses,A=C.cssProperties,j=Y4(Y4({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(F){n.wrapperNode=F}},u)}}])}(I.PureComponent),ghe=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Hi={isSsr:ghe(),get:function(t){return Hi[t]},set:function(t,r){if(typeof t=="string")Hi[t]=r;else{var n=Object.keys(t);n&&n.length&&n.forEach(function(i){Hi[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 X4(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Q4(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?X4(Object(r),!0).forEach(function(n){lj(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):X4(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yhe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bhe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,wB(n.key),n)}}function _he(e,t,r){return t&&bhe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function xhe(e,t,r){return t=Oy(t),whe(e,xB()?Reflect.construct(t,r||[],Oy(e).constructor):t.apply(e,r))}function whe(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 Ohe(e)}function Ohe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(xB=function(){return!!e})()}function Oy(e){return Oy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Oy(e)}function She(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&&mE(e,t)}function mE(e,t){return mE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},mE(e,t)}function lj(e,t,r){return t=wB(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wB(e){var t=Phe(e,"string");return _f(t)=="symbol"?t:t+""}function Phe(e,t){if(_f(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(_f(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ehe(e){return e.dataKey}function Che(e,t){return Z.isValidElement(e)?Z.cloneElement(e,t):typeof e=="function"?Z.createElement(e,t):Z.createElement(the,t)}var Ui=function(e){function t(){return yhe(this,t),xhe(this,t,arguments)}return She(t,e),_he(t,[{key:"render",value:function(){var n=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,_=i.payload,x=i.payloadUniqBy,w=i.position,O=i.reverseDirection,P=i.useTranslate3d,C=i.viewBox,T=i.wrapperStyle,A=_??[];p&&A.length&&(A=dB(_.filter(function(N){return N.value!=null&&(N.hide!==!0||n.props.includeHidden)}),x,Ehe));var j=A.length>0;return Z.createElement(vhe,{allowEscapeViewBox:a,animationDuration:s,animationEasing:c,isAnimationActive:v,active:o,coordinate:h,hasPayload:j,offset:b,position:w,reverseDirection:O,useTranslate3d:P,viewBox:C,wrapperStyle:T},Che(u,Q4(Q4({},this.props),{},{payload:A})))}}])}(I.PureComponent);lj(Ui,"displayName","Tooltip");lj(Ui,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Hi.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 V2,J4;function The(){if(J4)return V2;J4=1;var e=ua(),t=function(){return e.Date.now()};return V2=t,V2}var W2,eI;function jhe(){if(eI)return W2;eI=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return W2=t,W2}var q2,tI;function Ahe(){if(tI)return q2;tI=1;var e=jhe(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return q2=r,q2}var H2,rI;function OB(){if(rI)return H2;rI=1;var e=Ahe(),t=ml(),r=Qf(),n=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(r(u))return n;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)?n:+u}return H2=c,H2}var G2,nI;function khe(){if(nI)return G2;nI=1;var e=ml(),t=The(),r=OB(),n="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,C=!0;if(typeof s!="function")throw new TypeError(n);c=r(c)||0,e(u)&&(O=!!u.leading,P="maxWait"in u,v=P?i(r(u.maxWait)||0,c):v,C="trailing"in u?!!u.trailing:C);function T(J){var Q=h,ne=p;return h=p=void 0,w=J,b=s.apply(ne,Q),b}function A(J){return w=J,_=setTimeout(F,c),O?T(J):b}function j(J){var Q=J-x,ne=J-w,ae=c-Q;return P?o(ae,v-ne):ae}function N(J){var Q=J-x,ne=J-w;return x===void 0||Q>=c||Q<0||P&&ne>=v}function F(){var J=t();if(N(J))return V(J);_=setTimeout(F,j(J))}function V(J){return _=void 0,C&&h?T(J):(h=p=void 0,b)}function B(){_!==void 0&&clearTimeout(_),w=0,h=x=p=_=void 0}function W(){return _===void 0?b:V(t())}function q(){var J=t(),Q=N(J);if(h=arguments,p=this,x=J,Q){if(_===void 0)return A(x);if(P)return clearTimeout(_),_=setTimeout(F,c),T(x)}return _===void 0&&(_=setTimeout(F,c)),b}return q.cancel=B,q.flush=W,q}return G2=a,G2}var K2,iI;function Rhe(){if(iI)return K2;iI=1;var e=khe(),t=ml(),r="Expected a function";function n(i,o,a){var s=!0,c=!0;if(typeof i!="function")throw new TypeError(r);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 K2=n,K2}var Nhe=Rhe();const SB=Nt(Nhe);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 oI(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Zv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?oI(Object(r),!0).forEach(function(n){Mhe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oI(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Mhe(e,t,r){return t=Lhe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Lhe(e){var t=Ihe(e,"string");return pp(t)=="symbol"?t:t+""}function Ihe(e,t){if(pp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(pp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Dhe(e,t){return Uhe(e)||Bhe(e,t)||Fhe(e,t)||$he()}function $he(){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 Fhe(e,t){if(e){if(typeof e=="string")return aI(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return aI(e,t)}}function aI(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Bhe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],c=!0,u=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(h){u=!0,i=h}finally{try{if(!c&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function Uhe(e){if(Array.isArray(e))return e}var uj=I.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,i=n===void 0?{width:-1,height:-1}:n,o=e.width,a=o===void 0?"100%":o,s=e.height,c=s===void 0?"100%":s,u=e.minWidth,h=u===void 0?0:u,p=e.minHeight,v=e.maxHeight,b=e.children,_=e.debounce,x=_===void 0?0:_,w=e.id,O=e.className,P=e.onResize,C=e.style,T=C===void 0?{}:C,A=I.useRef(null),j=I.useRef();j.current=P,I.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=I.useState({containerWidth:i.width,containerHeight:i.height}),F=Dhe(N,2),V=F[0],B=F[1],W=I.useCallback(function(J,Q){B(function(ne){var ae=Math.round(J),se=Math.round(Q);return ne.containerWidth===ae&&ne.containerHeight===se?ne:{containerWidth:ae,containerHeight:se}})},[]);I.useEffect(function(){var J=function(K){var G,z=K[0].contentRect,re=z.width,X=z.height;W(re,X),(G=j.current)===null||G===void 0||G.call(j,re,X)};x>0&&(J=SB(J,x,{trailing:!0,leading:!1}));var Q=new ResizeObserver(J),ne=A.current.getBoundingClientRect(),ae=ne.width,se=ne.height;return W(ae,se),Q.observe(A.current),function(){Q.disconnect()}},[W,x]);var q=I.useMemo(function(){var J=V.containerWidth,Q=V.containerHeight;if(J<0||Q<0)return null;_o(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),_o(!r||r>0,"The aspect(%s) must be greater than zero.",r);var ne=uu(a)?J:a,ae=uu(c)?Q:c;r&&r>0&&(ne?ae=ne/r:ae&&(ne=ae*r),v&&ae>v&&(ae=v)),_o(ne>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.`,ne,ae,a,c,h,p,r);var se=!Array.isArray(b)&&Fa(b.type).endsWith("Chart");return Z.Children.map(b,function(oe){return Z.isValidElement(oe)?I.cloneElement(oe,Zv({width:ne,height:ae},se?{style:Zv({height:"100%",width:"100%",maxHeight:ae,maxWidth:ne},oe.props.style)}:{})):oe})},[r,b,c,v,p,h,V,a]);return Z.createElement("div",{id:w?"".concat(w):void 0,className:ze("recharts-responsive-container",O),style:Zv(Zv({},T),{},{width:a,height:c,minWidth:h,minHeight:p,maxHeight:v}),ref:A},q)}),Qs=function(t){return null};Qs.displayName="Cell";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 sI(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function vE(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sI(Object(r),!0).forEach(function(n){zhe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sI(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zhe(e,t,r){return t=Vhe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Vhe(e){var t=Whe(e,"string");return mp(t)=="symbol"?t:t+""}function Whe(e,t){if(mp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(mp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Mc={widthCache:{},cacheCount:0},qhe=2e3,Hhe={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},lI="recharts_measurement_span";function Ghe(e){var t=vE({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var Dh=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Hi.isSsr)return{width:0,height:0};var n=Ghe(r),i=JSON.stringify({text:t,copyStyle:n});if(Mc.widthCache[i])return Mc.widthCache[i];try{var o=document.getElementById(lI);o||(o=document.createElement("span"),o.setAttribute("id",lI),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var a=vE(vE({},Hhe),n);Object.assign(o.style,a),o.textContent="".concat(t);var s=o.getBoundingClientRect(),c={width:s.width,height:s.height};return Mc.widthCache[i]=c,++Mc.cacheCount>qhe&&(Mc.cacheCount=0,Mc.widthCache={}),c}catch{return{width:0,height:0}}},Khe=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};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 Sy(e,t){return Qhe(e)||Xhe(e,t)||Zhe(e,t)||Yhe()}function Yhe(){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 Zhe(e,t){if(e){if(typeof e=="string")return uI(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return uI(e,t)}}function uI(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Xhe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],c=!0,u=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(h){u=!0,i=h}finally{try{if(!c&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function Qhe(e){if(Array.isArray(e))return e}function Jhe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cI(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,tpe(n.key),n)}}function epe(e,t,r){return t&&cI(e.prototype,t),r&&cI(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function tpe(e){var t=rpe(e,"string");return vp(t)=="symbol"?t:t+""}function rpe(e,t){if(vp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var fI=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,dI=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,npe=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,ipe=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,PB={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},ope=Object.keys(PB),Kc="NaN";function ape(e,t){return e*PB[t]}var Xv=function(){function e(t,r){Jhe(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!npe.test(r)&&(this.num=NaN,this.unit=""),ope.includes(r)&&(this.num=ape(t,r),this.unit="px")}return epe(e,[{key:"add",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num+r.num,this.unit)}},{key:"subtract",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num-r.num,this.unit)}},{key:"multiply",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num*r.num,this.unit||r.unit)}},{key:"divide",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num/r.num,this.unit||r.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(r){var n,i=(n=ipe.exec(r))!==null&&n!==void 0?n:[],o=Sy(i,3),a=o[1],s=o[2];return new e(parseFloat(a),s??"")}}])}();function EB(e){if(e.includes(Kc))return Kc;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=fI.exec(t))!==null&&r!==void 0?r:[],i=Sy(n,4),o=i[1],a=i[2],s=i[3],c=Xv.parse(o??""),u=Xv.parse(s??""),h=a==="*"?c.multiply(u):c.divide(u);if(h.isNaN())return Kc;t=t.replace(fI,h.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var p,v=(p=dI.exec(t))!==null&&p!==void 0?p:[],b=Sy(v,4),_=b[1],x=b[2],w=b[3],O=Xv.parse(_??""),P=Xv.parse(w??""),C=x==="+"?O.add(P):O.subtract(P);if(C.isNaN())return Kc;t=t.replace(dI,C.toString())}return t}var hI=/\(([^()]*)\)/;function spe(e){for(var t=e;t.includes("(");){var r=hI.exec(t),n=Sy(r,2),i=n[1];t=t.replace(hI,EB(i))}return t}function lpe(e){var t=e.replace(/\s+/g,"");return t=spe(t),t=EB(t),t}function upe(e){try{return lpe(e)}catch{return Kc}}function Y2(e){var t=upe(e.slice(5,-1));return t===Kc?"":t}var cpe=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],fpe=["dx","dy","angle","className","breakAll"];function gE(){return gE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},gE.apply(this,arguments)}function pI(e,t){if(e==null)return{};var r=dpe(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function dpe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function mI(e,t){return vpe(e)||mpe(e,t)||ppe(e,t)||hpe()}function hpe(){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 ppe(e,t){if(e){if(typeof e=="string")return vI(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vI(e,t)}}function vI(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function mpe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],c=!0,u=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(h){u=!0,i=h}finally{try{if(!c&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function vpe(e){if(Array.isArray(e))return e}var CB=/[ \f\n\r\t\v\u2028\u2029]+/,TB=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var o=[];dt(r)||(n?o=r.toString().split(""):o=r.toString().split(CB));var a=o.map(function(c){return{word:c,width:Dh(c,i).width}}),s=n?0:Dh(" ",i).width;return{wordsWithComputedWidth:a,spaceWidth:s}}catch{return null}},gpe=function(t,r,n,i,o){var a=t.maxLines,s=t.children,c=t.style,u=t.breakAll,h=Ve(a),p=s,v=function(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return ne.reduce(function(ae,se){var oe=se.word,K=se.width,G=ae[ae.length-1];if(G&&(i==null||o||G.width+K+n<Number(i)))G.words.push(oe),G.width+=K+n;else{var z={words:[oe],width:K};ae.push(z)}return ae},[])},b=v(r),_=function(ne){return ne.reduce(function(ae,se){return ae.width>se.width?ae:se})};if(!h)return b;for(var x="…",w=function(ne){var ae=p.slice(0,ne),se=TB({breakAll:u,style:c,children:ae+x}).wordsWithComputedWidth,oe=v(se),K=oe.length>a||_(oe).width>Number(i);return[K,oe]},O=0,P=p.length-1,C=0,T;O<=P&&C<=p.length-1;){var A=Math.floor((O+P)/2),j=A-1,N=w(j),F=mI(N,2),V=F[0],B=F[1],W=w(A),q=mI(W,1),J=q[0];if(!V&&!J&&(O=A+1),V&&J&&(P=A-1),!V&&J){T=B;break}C++}return T||b},gI=function(t){var r=dt(t)?[]:t.toString().split(CB);return[{words:r}]},ype=function(t){var r=t.width,n=t.scaleToFit,i=t.children,o=t.style,a=t.breakAll,s=t.maxLines;if((r||n)&&!Hi.isSsr){var c,u,h=TB({breakAll:a,children:i,style:o});if(h){var p=h.wordsWithComputedWidth,v=h.spaceWidth;c=p,u=v}else return gI(i);return gpe({breakAll:a,children:i,maxLines:s,style:o},c,u,r,n)}return gI(i)},yI="#808080",Cu=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,o=i===void 0?0:i,a=t.lineHeight,s=a===void 0?"1em":a,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,_=t.verticalAnchor,x=_===void 0?"end":_,w=t.fill,O=w===void 0?yI:w,P=pI(t,cpe),C=I.useMemo(function(){return ype({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,F=P.breakAll,V=pI(P,fpe);if(!zr(n)||!zr(o))return null;var B=n+(Ve(T)?T:0),W=o+(Ve(A)?A:0),q;switch(x){case"start":q=Y2("calc(".concat(u,")"));break;case"middle":q=Y2("calc(".concat((C.length-1)/2," * -").concat(s," + (").concat(u," / 2))"));break;default:q=Y2("calc(".concat(C.length-1," * -").concat(s,")"));break}var J=[];if(p){var Q=C[0].width,ne=P.width;J.push("scale(".concat((Ve(ne)?ne/Q:1)/Q,")"))}return j&&J.push("rotate(".concat(j,", ").concat(B,", ").concat(W,")")),J.length&&(V.transform=J.join(" ")),Z.createElement("text",gE({},it(V,!0),{x:B,y:W,className:ze("recharts-text",N),textAnchor:b,fill:O.includes("url")?yI:O}),C.map(function(ae,se){var oe=ae.words.join(F?"":" ");return Z.createElement("tspan",{x:B,dy:se===0?q:s,key:"".concat(oe,"-").concat(se)},oe)}))};function Js(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function bpe(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function cj(e){let t,r,n;e.length!==2?(t=Js,r=(s,c)=>Js(e(s),c),n=(s,c)=>e(s)-c):(t=e===Js||e===bpe?e:_pe,r=e,n=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;r(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;r(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&&n(s[p-1],c)>-n(s[p],c)?p-1:p}return{left:i,center:a,right:o}}function _pe(){return 0}function jB(e){return e===null?NaN:+e}function*xpe(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const wpe=cj(Js),fm=wpe.right;cj(jB).center;class bI extends Map{constructor(t,r=Ppe){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(_I(this,t))}has(t){return super.has(_I(this,t))}set(t,r){return super.set(Ope(this,t),r)}delete(t){return super.delete(Spe(this,t))}}function _I({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function Ope({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function Spe({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function Ppe(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Epe(e=Js){if(e===Js)return AB;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function AB(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const Cpe=Math.sqrt(50),Tpe=Math.sqrt(10),jpe=Math.sqrt(2);function Py(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),o=n/Math.pow(10,i),a=o>=Cpe?10:o>=Tpe?5:o>=jpe?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<=r&&r<2?Py(e,t,r*2):[s,c,u]}function yE(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,o,a]=n?Py(t,e,r):Py(e,t,r);if(!(o>=i))return[];const s=o-i+1,c=new Array(s);if(n)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 bE(e,t,r){return t=+t,e=+e,r=+r,Py(e,t,r)[2]}function _E(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?bE(t,e,r):bE(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function xI(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function wI(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function kB(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?AB:Epe(i);n>r;){if(n-r>600){const c=n-r+1,u=t-r+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(r,Math.floor(t-u*p/c+v)),_=Math.min(n,Math.floor(t+(c-u)*p/c+v));kB(e,t,b,_,i)}const o=e[t];let a=r,s=n;for(fh(e,r,t),i(e[n],o)>0&&fh(e,r,n);a<s;){for(fh(e,a,s),++a,--s;i(e[a],o)<0;)++a;for(;i(e[s],o)>0;)--s}i(e[r],o)===0?fh(e,r,s):(++s,fh(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function fh(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function Ape(e,t,r){if(e=Float64Array.from(xpe(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return wI(e);if(t>=1)return xI(e);var n,i=(n-1)*t,o=Math.floor(i),a=xI(kB(e,o).subarray(0,o+1)),s=wI(e.subarray(o+1));return a+(s-a)*(i-o)}}function kpe(e,t,r=jB){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,o=Math.floor(i),a=+r(e[o],o,e),s=+r(e[o+1],o+1,e);return a+(s-a)*(i-o)}}function Rpe(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,o=new Array(i);++n<i;)o[n]=e+n*r;return o}function Qi(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 xE=Symbol("implicit");function fj(){var e=new bI,t=[],r=[],n=xE;function i(o){let a=e.get(o);if(a===void 0){if(n!==xE)return n;e.set(o,a=t.push(o)-1)}return r[a%r.length]}return i.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new bI;for(const a of o)e.has(a)||e.set(a,t.push(a)-1);return i},i.range=function(o){return arguments.length?(r=Array.from(o),i):r.slice()},i.unknown=function(o){return arguments.length?(n=o,i):n},i.copy=function(){return fj(t,r).unknown(n)},Qi.apply(i,arguments),i}function gp(){var e=fj().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,o,a,s=!1,c=0,u=0,h=.5;delete e.unknown;function p(){var v=t().length,b=i<n,_=b?i:n,x=b?n:i;o=(x-_)/Math.max(1,v-c+u*2),s&&(o=Math.floor(o)),_+=(x-_-o*(v-c))*h,a=o*(1-c),s&&(_=Math.round(_),a=Math.round(a));var w=Rpe(v).map(function(O){return _+o*O});return r(b?w.reverse():w)}return e.domain=function(v){return arguments.length?(t(v),p()):t()},e.range=function(v){return arguments.length?([n,i]=v,n=+n,i=+i,p()):[n,i]},e.rangeRound=function(v){return[n,i]=v,n=+n,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 gp(t(),[n,i]).round(s).paddingInner(c).paddingOuter(u).align(h)},Qi.apply(p(),arguments)}function RB(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return RB(t())},e}function $h(){return RB(gp.apply(null,arguments).paddingInner(1))}function dj(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function NB(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function dm(){}var yp=.7,Ey=1/yp,nf="\\s*([+-]?\\d+)\\s*",bp="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Jo="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Npe=/^#([0-9a-f]{3,8})$/,Mpe=new RegExp(`^rgb\\(${nf},${nf},${nf}\\)$`),Lpe=new RegExp(`^rgb\\(${Jo},${Jo},${Jo}\\)$`),Ipe=new RegExp(`^rgba\\(${nf},${nf},${nf},${bp}\\)$`),Dpe=new RegExp(`^rgba\\(${Jo},${Jo},${Jo},${bp}\\)$`),$pe=new RegExp(`^hsl\\(${bp},${Jo},${Jo}\\)$`),Fpe=new RegExp(`^hsla\\(${bp},${Jo},${Jo},${bp}\\)$`),OI={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};dj(dm,_p,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:SI,formatHex:SI,formatHex8:Bpe,formatHsl:Upe,formatRgb:PI,toString:PI});function SI(){return this.rgb().formatHex()}function Bpe(){return this.rgb().formatHex8()}function Upe(){return MB(this).formatHsl()}function PI(){return this.rgb().formatRgb()}function _p(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Npe.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?EI(t):r===3?new Wn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Qv(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Qv(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=Mpe.exec(e))?new Wn(t[1],t[2],t[3],1):(t=Lpe.exec(e))?new Wn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Ipe.exec(e))?Qv(t[1],t[2],t[3],t[4]):(t=Dpe.exec(e))?Qv(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=$pe.exec(e))?jI(t[1],t[2]/100,t[3]/100,1):(t=Fpe.exec(e))?jI(t[1],t[2]/100,t[3]/100,t[4]):OI.hasOwnProperty(e)?EI(OI[e]):e==="transparent"?new Wn(NaN,NaN,NaN,0):null}function EI(e){return new Wn(e>>16&255,e>>8&255,e&255,1)}function Qv(e,t,r,n){return n<=0&&(e=t=r=NaN),new Wn(e,t,r,n)}function zpe(e){return e instanceof dm||(e=_p(e)),e?(e=e.rgb(),new Wn(e.r,e.g,e.b,e.opacity)):new Wn}function wE(e,t,r,n){return arguments.length===1?zpe(e):new Wn(e,t,r,n??1)}function Wn(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}dj(Wn,wE,NB(dm,{brighter(e){return e=e==null?Ey:Math.pow(Ey,e),new Wn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?yp:Math.pow(yp,e),new Wn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Wn(gu(this.r),gu(this.g),gu(this.b),Cy(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:CI,formatHex:CI,formatHex8:Vpe,formatRgb:TI,toString:TI}));function CI(){return`#${cu(this.r)}${cu(this.g)}${cu(this.b)}`}function Vpe(){return`#${cu(this.r)}${cu(this.g)}${cu(this.b)}${cu((isNaN(this.opacity)?1:this.opacity)*255)}`}function TI(){const e=Cy(this.opacity);return`${e===1?"rgb(":"rgba("}${gu(this.r)}, ${gu(this.g)}, ${gu(this.b)}${e===1?")":`, ${e})`}`}function Cy(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 jI(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new yo(e,t,r,n)}function MB(e){if(e instanceof yo)return new yo(e.h,e.s,e.l,e.opacity);if(e instanceof dm||(e=_p(e)),!e)return new yo;if(e instanceof yo)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),o=Math.max(t,r,n),a=NaN,s=o-i,c=(o+i)/2;return s?(t===o?a=(r-n)/s+(r<n)*6:r===o?a=(n-t)/s+2:a=(t-r)/s+4,s/=c<.5?o+i:2-o-i,a*=60):s=c>0&&c<1?0:a,new yo(a,s,c,e.opacity)}function Wpe(e,t,r,n){return arguments.length===1?MB(e):new yo(e,t,r,n??1)}function yo(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}dj(yo,Wpe,NB(dm,{brighter(e){return e=e==null?Ey:Math.pow(Ey,e),new yo(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?yp:Math.pow(yp,e),new yo(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new Wn(Z2(e>=240?e-240:e+120,i,n),Z2(e,i,n),Z2(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new yo(AI(this.h),Jv(this.s),Jv(this.l),Cy(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=Cy(this.opacity);return`${e===1?"hsl(":"hsla("}${AI(this.h)}, ${Jv(this.s)*100}%, ${Jv(this.l)*100}%${e===1?")":`, ${e})`}`}}));function AI(e){return e=(e||0)%360,e<0?e+360:e}function Jv(e){return Math.max(0,Math.min(1,e||0))}function Z2(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const hj=e=>()=>e;function qpe(e,t){return function(r){return e+r*t}}function Hpe(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function Gpe(e){return(e=+e)==1?LB:function(t,r){return r-t?Hpe(t,r,e):hj(isNaN(t)?r:t)}}function LB(e,t){var r=t-e;return r?qpe(e,r):hj(isNaN(e)?t:e)}const kI=function e(t){var r=Gpe(t);function n(i,o){var a=r((i=wE(i)).r,(o=wE(o)).r),s=r(i.g,o.g),c=r(i.b,o.b),u=LB(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 n.gamma=e,n}(1);function Kpe(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(o){for(i=0;i<r;++i)n[i]=e[i]*(1-o)+t[i]*o;return n}}function Ype(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Zpe(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),o=new Array(r),a;for(a=0;a<n;++a)i[a]=rd(e[a],t[a]);for(;a<r;++a)o[a]=t[a];return function(s){for(a=0;a<n;++a)o[a]=i[a](s);return o}}function Xpe(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function Ty(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function Qpe(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=rd(e[i],t[i]):n[i]=t[i];return function(o){for(i in r)n[i]=r[i](o);return n}}var OE=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,X2=new RegExp(OE.source,"g");function Jpe(e){return function(){return e}}function eme(e){return function(t){return e(t)+""}}function tme(e,t){var r=OE.lastIndex=X2.lastIndex=0,n,i,o,a=-1,s=[],c=[];for(e=e+"",t=t+"";(n=OE.exec(e))&&(i=X2.exec(t));)(o=i.index)>r&&(o=t.slice(r,o),s[a]?s[a]+=o:s[++a]=o),(n=n[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,c.push({i:a,x:Ty(n,i)})),r=X2.lastIndex;return r<t.length&&(o=t.slice(r),s[a]?s[a]+=o:s[++a]=o),s.length<2?c[0]?eme(c[0].x):Jpe(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 rd(e,t){var r=typeof t,n;return t==null||r==="boolean"?hj(t):(r==="number"?Ty:r==="string"?(n=_p(t))?(t=n,kI):tme:t instanceof _p?kI:t instanceof Date?Xpe:Ype(t)?Kpe:Array.isArray(t)?Zpe:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Qpe:Ty)(e,t)}function pj(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function rme(e,t){t===void 0&&(t=e,e=rd);for(var r=0,n=t.length-1,i=t[0],o=new Array(n<0?0:n);r<n;)o[r]=e(i,i=t[++r]);return function(a){var s=Math.max(0,Math.min(n-1,Math.floor(a*=n)));return o[s](a-s)}}function nme(e){return function(){return e}}function jy(e){return+e}var RI=[0,1];function Cn(e){return e}function SE(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:nme(isNaN(t)?NaN:.5)}function ime(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function ome(e,t,r){var n=e[0],i=e[1],o=t[0],a=t[1];return i<n?(n=SE(i,n),o=r(a,o)):(n=SE(n,i),o=r(o,a)),function(s){return o(n(s))}}function ame(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),o=new Array(n),a=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<n;)i[a]=SE(e[a],e[a+1]),o[a]=r(t[a],t[a+1]);return function(s){var c=fm(e,s,1,n)-1;return o[c](i[c](s))}}function hm(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function ab(){var e=RI,t=RI,r=rd,n,i,o,a=Cn,s,c,u;function h(){var v=Math.min(e.length,t.length);return a!==Cn&&(a=ime(e[0],e[v-1])),s=v>2?ame:ome,c=u=null,p}function p(v){return v==null||isNaN(v=+v)?o:(c||(c=s(e.map(n),t,r)))(n(a(v)))}return p.invert=function(v){return a(i((u||(u=s(t,e.map(n),Ty)))(v)))},p.domain=function(v){return arguments.length?(e=Array.from(v,jy),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),r=pj,h()},p.clamp=function(v){return arguments.length?(a=v?!0:Cn,h()):a!==Cn},p.interpolate=function(v){return arguments.length?(r=v,h()):r},p.unknown=function(v){return arguments.length?(o=v,p):o},function(v,b){return n=v,i=b,h()}}function mj(){return ab()(Cn,Cn)}function sme(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Ay(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function xf(e){return e=Ay(Math.abs(e)),e?e[1]:NaN}function lme(e,t){return function(r,n){for(var i=r.length,o=[],a=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>n&&(s=Math.max(1,n-c)),o.push(r.substring(i-=s,i+s)),!((c+=s+1)>n));)s=e[a=(a+1)%e.length];return o.reverse().join(t)}}function ume(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var cme=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function xp(e){if(!(t=cme.exec(e)))throw new Error("invalid format: "+e);var t;return new vj({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]})}xp.prototype=vj.prototype;function vj(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+""}vj.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 fme(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var IB;function dme(e,t){var r=Ay(e,t);if(!r)return e+"";var n=r[0],i=r[1],o=i-(IB=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=n.length;return o===a?n:o>a?n+new Array(o-a+1).join("0"):o>0?n.slice(0,o)+"."+n.slice(o):"0."+new Array(1-o).join("0")+Ay(e,Math.max(0,t+o-1))[0]}function NI(e,t){var r=Ay(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const MI={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:sme,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)=>NI(e*100,t),r:NI,s:dme,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function LI(e){return e}var II=Array.prototype.map,DI=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function hme(e){var t=e.grouping===void 0||e.thousands===void 0?LI:lme(II.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?LI:ume(II.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=xp(p);var v=p.fill,b=p.align,_=p.sign,x=p.symbol,w=p.zero,O=p.width,P=p.comma,C=p.precision,T=p.trim,A=p.type;A==="n"?(P=!0,A="g"):MI[A]||(C===void 0&&(C=12),T=!0,A="g"),(w||v==="0"&&b==="=")&&(w=!0,v="0",b="=");var j=x==="$"?r:x==="#"&&/[boxX]/.test(A)?"0"+A.toLowerCase():"",N=x==="$"?n:/[%p]/.test(A)?a:"",F=MI[A],V=/[defgprs%]/.test(A);C=C===void 0?6:/[gprs]/.test(A)?Math.max(1,Math.min(21,C)):Math.max(0,Math.min(20,C));function B(W){var q=j,J=N,Q,ne,ae;if(A==="c")J=F(W)+J,W="";else{W=+W;var se=W<0||1/W<0;if(W=isNaN(W)?c:F(Math.abs(W),C),T&&(W=fme(W)),se&&+W==0&&_!=="+"&&(se=!1),q=(se?_==="("?_:s:_==="-"||_==="("?"":_)+q,J=(A==="s"?DI[8+IB/3]:"")+J+(se&&_==="("?")":""),V){for(Q=-1,ne=W.length;++Q<ne;)if(ae=W.charCodeAt(Q),48>ae||ae>57){J=(ae===46?i+W.slice(Q+1):W.slice(Q))+J,W=W.slice(0,Q);break}}}P&&!w&&(W=t(W,1/0));var oe=q.length+W.length+J.length,K=oe<O?new Array(O-oe+1).join(v):"";switch(P&&w&&(W=t(K+W,K.length?O-J.length:1/0),K=""),b){case"<":W=q+W+J+K;break;case"=":W=q+K+W+J;break;case"^":W=K.slice(0,oe=K.length>>1)+q+W+J+K.slice(oe);break;default:W=K+q+W+J;break}return o(W)}return B.toString=function(){return p+""},B}function h(p,v){var b=u((p=xp(p),p.type="f",p)),_=Math.max(-8,Math.min(8,Math.floor(xf(v)/3)))*3,x=Math.pow(10,-_),w=DI[8+_/3];return function(O){return b(x*O)+w}}return{format:u,formatPrefix:h}}var eg,gj,DB;pme({thousands:",",grouping:[3],currency:["$",""]});function pme(e){return eg=hme(e),gj=eg.format,DB=eg.formatPrefix,eg}function mme(e){return Math.max(0,-xf(Math.abs(e)))}function vme(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(xf(t)/3)))*3-xf(Math.abs(e)))}function gme(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,xf(t)-xf(e))+1}function $B(e,t,r,n){var i=_E(e,t,r),o;switch(n=xp(n??",f"),n.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(o=vme(i,a))&&(n.precision=o),DB(n,a)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(o=gme(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=o-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(o=mme(i))&&(n.precision=o-(n.type==="%")*2);break}}return gj(n)}function gl(e){var t=e.domain;return e.ticks=function(r){var n=t();return yE(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return $B(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,o=n.length-1,a=n[i],s=n[o],c,u,h=10;for(s<a&&(u=a,a=s,s=u,u=i,i=o,o=u);h-- >0;){if(u=bE(a,s,r),u===c)return n[i]=a,n[o]=s,t(n);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 ky(){var e=mj();return e.copy=function(){return hm(e,ky())},Qi.apply(e,arguments),gl(e)}function FB(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,jy),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return FB(e).unknown(t)},e=arguments.length?Array.from(e,jy):[0,1],gl(r)}function BB(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],o=e[n],a;return o<i&&(a=r,r=n,n=a,a=i,i=o,o=a),e[r]=t.floor(i),e[n]=t.ceil(o),e}function $I(e){return Math.log(e)}function FI(e){return Math.exp(e)}function yme(e){return-Math.log(-e)}function bme(e){return-Math.exp(-e)}function _me(e){return isFinite(e)?+("1e"+e):e<0?0:e}function xme(e){return e===10?_me:e===Math.E?Math.exp:t=>Math.pow(e,t)}function wme(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 BI(e){return(t,r)=>-e(-t,r)}function yj(e){const t=e($I,FI),r=t.domain;let n=10,i,o;function a(){return i=wme(n),o=xme(n),r()[0]<0?(i=BI(i),o=BI(o),e(yme,bme)):e($I,FI),t}return t.base=function(s){return arguments.length?(n=+s,a()):n},t.domain=function(s){return arguments.length?(r(s),a()):r()},t.ticks=s=>{const c=r();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(!(n%1)&&b-v<w){if(v=Math.floor(v),b=Math.ceil(b),u>0){for(;v<=b;++v)for(_=1;_<n;++_)if(x=v<0?_/o(-v):_*o(v),!(x<u)){if(x>h)break;O.push(x)}}else for(;v<=b;++v)for(_=n-1;_>=1;--_)if(x=v>0?_/o(-v):_*o(v),!(x<u)){if(x>h)break;O.push(x)}O.length*2<w&&(O=yE(u,h,w))}else O=yE(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=n===10?"s":","),typeof c!="function"&&(!(n%1)&&(c=xp(c)).precision==null&&(c.trim=!0),c=gj(c)),s===1/0)return c;const u=Math.max(1,n*s/t.ticks().length);return h=>{let p=h/o(Math.round(i(h)));return p*n<n-.5&&(p*=n),p<=u?c(h):""}},t.nice=()=>r(BB(r(),{floor:s=>o(Math.floor(i(s))),ceil:s=>o(Math.ceil(i(s)))})),t}function UB(){const e=yj(ab()).domain([1,10]);return e.copy=()=>hm(e,UB()).base(e.base()),Qi.apply(e,arguments),e}function UI(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function zI(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function bj(e){var t=1,r=e(UI(t),zI(t));return r.constant=function(n){return arguments.length?e(UI(t=+n),zI(t)):t},gl(r)}function zB(){var e=bj(ab());return e.copy=function(){return hm(e,zB()).constant(e.constant())},Qi.apply(e,arguments)}function VI(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Ome(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Sme(e){return e<0?-e*e:e*e}function _j(e){var t=e(Cn,Cn),r=1;function n(){return r===1?e(Cn,Cn):r===.5?e(Ome,Sme):e(VI(r),VI(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},gl(t)}function xj(){var e=_j(ab());return e.copy=function(){return hm(e,xj()).exponent(e.exponent())},Qi.apply(e,arguments),e}function Pme(){return xj.apply(null,arguments).exponent(.5)}function WI(e){return Math.sign(e)*e*e}function Eme(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function VB(){var e=mj(),t=[0,1],r=!1,n;function i(o){var a=Eme(e(o));return isNaN(a)?n:r?Math.round(a):a}return i.invert=function(o){return e.invert(WI(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,jy)).map(WI)),i):t.slice()},i.rangeRound=function(o){return i.range(o).round(!0)},i.round=function(o){return arguments.length?(r=!!o,i):r},i.clamp=function(o){return arguments.length?(e.clamp(o),i):e.clamp()},i.unknown=function(o){return arguments.length?(n=o,i):n},i.copy=function(){return VB(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Qi.apply(i,arguments),gl(i)}function WB(){var e=[],t=[],r=[],n;function i(){var a=0,s=Math.max(1,t.length);for(r=new Array(s-1);++a<s;)r[a-1]=kpe(e,a/s);return o}function o(a){return a==null||isNaN(a=+a)?n:t[fm(r,a)]}return o.invertExtent=function(a){var s=t.indexOf(a);return s<0?[NaN,NaN]:[s>0?r[s-1]:e[0],s<r.length?r[s]:e[e.length-1]]},o.domain=function(a){if(!arguments.length)return e.slice();e=[];for(let s of a)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(Js),i()},o.range=function(a){return arguments.length?(t=Array.from(a),i()):t.slice()},o.unknown=function(a){return arguments.length?(n=a,o):n},o.quantiles=function(){return r.slice()},o.copy=function(){return WB().domain(e).range(t).unknown(n)},Qi.apply(o,arguments)}function qB(){var e=0,t=1,r=1,n=[.5],i=[0,1],o;function a(c){return c!=null&&c<=c?i[fm(n,c,0,r)]:o}function s(){var c=-1;for(n=new Array(r);++c<r;)n[c]=((c+1)*t-(c-r)*e)/(r+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?(r=(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,n[0]]:u>=r?[n[r-1],t]:[n[u-1],n[u]]},a.unknown=function(c){return arguments.length&&(o=c),a},a.thresholds=function(){return n.slice()},a.copy=function(){return qB().domain([e,t]).range(i).unknown(o)},Qi.apply(gl(a),arguments)}function HB(){var e=[.5],t=[0,1],r,n=1;function i(o){return o!=null&&o<=o?t[fm(e,o,0,n)]:r}return i.domain=function(o){return arguments.length?(e=Array.from(o),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(o){return arguments.length?(t=Array.from(o),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(o){var a=t.indexOf(o);return[e[a-1],e[a]]},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return HB().domain(e).range(t).unknown(r)},Qi.apply(i,arguments)}const Q2=new Date,J2=new Date;function Wr(e,t,r,n){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=o=>(e(o=new Date(+o)),o),i.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),i.round=o=>{const a=i(o),s=i.ceil(o);return o-a<s-o?a:s},i.offset=(o,a)=>(t(o=new Date(+o),a==null?1:Math.floor(a)),o),i.range=(o,a,s)=>{const 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=>Wr(a=>{if(a>=a)for(;e(a),!o(a);)a.setTime(a-1)},(a,s)=>{if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!o(a););else for(;--s>=0;)for(;t(a,1),!o(a););}),r&&(i.count=(o,a)=>(Q2.setTime(+o),J2.setTime(+a),e(Q2),e(J2),Math.floor(r(Q2,J2))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(n?a=>n(a)%o===0:a=>i.count(0,a)%o===0):i)),i}const Ry=Wr(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Ry.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Wr(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Ry);Ry.range;const Ma=1e3,Wi=Ma*60,La=Wi*60,Ka=La*24,wj=Ka*7,qI=Ka*30,eO=Ka*365,fu=Wr(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Ma)},(e,t)=>(t-e)/Ma,e=>e.getUTCSeconds());fu.range;const Oj=Wr(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ma)},(e,t)=>{e.setTime(+e+t*Wi)},(e,t)=>(t-e)/Wi,e=>e.getMinutes());Oj.range;const Sj=Wr(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Wi)},(e,t)=>(t-e)/Wi,e=>e.getUTCMinutes());Sj.range;const Pj=Wr(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ma-e.getMinutes()*Wi)},(e,t)=>{e.setTime(+e+t*La)},(e,t)=>(t-e)/La,e=>e.getHours());Pj.range;const Ej=Wr(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*La)},(e,t)=>(t-e)/La,e=>e.getUTCHours());Ej.range;const pm=Wr(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Wi)/Ka,e=>e.getDate()-1);pm.range;const sb=Wr(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ka,e=>e.getUTCDate()-1);sb.range;const GB=Wr(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ka,e=>Math.floor(e/Ka));GB.range;function Iu(e){return Wr(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Wi)/wj)}const lb=Iu(0),Ny=Iu(1),Cme=Iu(2),Tme=Iu(3),wf=Iu(4),jme=Iu(5),Ame=Iu(6);lb.range;Ny.range;Cme.range;Tme.range;wf.range;jme.range;Ame.range;function Du(e){return Wr(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/wj)}const ub=Du(0),My=Du(1),kme=Du(2),Rme=Du(3),Of=Du(4),Nme=Du(5),Mme=Du(6);ub.range;My.range;kme.range;Rme.range;Of.range;Nme.range;Mme.range;const Cj=Wr(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());Cj.range;const Tj=Wr(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());Tj.range;const Ya=Wr(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());Ya.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Wr(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});Ya.range;const Za=Wr(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());Za.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Wr(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});Za.range;function KB(e,t,r,n,i,o){const a=[[fu,1,Ma],[fu,5,5*Ma],[fu,15,15*Ma],[fu,30,30*Ma],[o,1,Wi],[o,5,5*Wi],[o,15,15*Wi],[o,30,30*Wi],[i,1,La],[i,3,3*La],[i,6,6*La],[i,12,12*La],[n,1,Ka],[n,2,2*Ka],[r,1,wj],[t,1,qI],[t,3,3*qI],[e,1,eO]];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),_=b?b.range(u,+h+1):[];return v?_.reverse():_}function c(u,h,p){const v=Math.abs(h-u)/p,b=cj(([,,w])=>w).right(a,v);if(b===a.length)return e.every(_E(u/eO,h/eO,p));if(b===0)return Ry.every(Math.max(_E(u,h,p),1));const[_,x]=a[v/a[b-1][2]<a[b][2]/v?b-1:b];return _.every(x)}return[s,c]}const[Lme,Ime]=KB(Za,Tj,ub,GB,Ej,Sj),[Dme,$me]=KB(Ya,Cj,lb,pm,Pj,Oj);function tO(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 rO(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 dh(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function Fme(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,c=e.shortMonths,u=hh(i),h=ph(i),p=hh(o),v=ph(o),b=hh(a),_=ph(a),x=hh(s),w=ph(s),O=hh(c),P=ph(c),C={a:se,A:oe,b:K,B:G,c:null,d:XI,e:XI,f:lve,g:yve,G:_ve,H:ove,I:ave,j:sve,L:YB,m:uve,M:cve,p:z,q:re,Q:eD,s:tD,S:fve,u:dve,U:hve,V:pve,w:mve,W:vve,x:null,X:null,y:gve,Y:bve,Z:xve,"%":JI},T={a:X,A:le,b:ce,B:de,c:null,d:QI,e:QI,f:Pve,g:Lve,G:Dve,H:wve,I:Ove,j:Sve,L:XB,m:Eve,M:Cve,p:be,q:M,Q:eD,s:tD,S:Tve,u:jve,U:Ave,V:kve,w:Rve,W:Nve,x:null,X:null,y:Mve,Y:Ive,Z:$ve,"%":JI},A={a:B,A:W,b:q,B:J,c:Q,d:YI,e:YI,f:tve,g:KI,G:GI,H:ZI,I:ZI,j:Xme,L:eve,m:Zme,M:Qme,p:V,q:Yme,Q:nve,s:ive,S:Jme,u:Wme,U:qme,V:Hme,w:Vme,W:Gme,x:ne,X:ae,y:KI,Y:GI,Z:Kme,"%":rve};C.x=j(r,C),C.X=j(n,C),C.c=j(t,C),T.x=j(r,T),T.X=j(n,T),T.c=j(t,T);function j($,Y){return function(ue){var ie=[],he=-1,Se=0,Fe=$.length,ge,Ce,je;for(ue instanceof Date||(ue=new Date(+ue));++he<Fe;)$.charCodeAt(he)===37&&(ie.push($.slice(Se,he)),(Ce=HI[ge=$.charAt(++he)])!=null?ge=$.charAt(++he):Ce=ge==="e"?" ":"0",(je=Y[ge])&&(ge=je(ue,Ce)),ie.push(ge),Se=he+1);return ie.push($.slice(Se,he)),ie.join("")}}function N($,Y){return function(ue){var ie=dh(1900,void 0,1),he=F(ie,$,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=rO(dh(ie.y,0,1)),Fe=Se.getUTCDay(),Se=Fe>4||Fe===0?My.ceil(Se):My(Se),Se=sb.offset(Se,(ie.V-1)*7),ie.y=Se.getUTCFullYear(),ie.m=Se.getUTCMonth(),ie.d=Se.getUTCDate()+(ie.w+6)%7):(Se=tO(dh(ie.y,0,1)),Fe=Se.getDay(),Se=Fe>4||Fe===0?Ny.ceil(Se):Ny(Se),Se=pm.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?rO(dh(ie.y,0,1)).getUTCDay():tO(dh(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,rO(ie)):tO(ie)}}function F($,Y,ue,ie){for(var he=0,Se=Y.length,Fe=ue.length,ge,Ce;he<Se;){if(ie>=Fe)return-1;if(ge=Y.charCodeAt(he++),ge===37){if(ge=Y.charAt(he++),Ce=A[ge in HI?Y.charAt(he++):ge],!Ce||(ie=Ce($,ue,ie))<0)return-1}else if(ge!=ue.charCodeAt(ie++))return-1}return ie}function V($,Y,ue){var ie=u.exec(Y.slice(ue));return ie?($.p=h.get(ie[0].toLowerCase()),ue+ie[0].length):-1}function B($,Y,ue){var ie=b.exec(Y.slice(ue));return ie?($.w=_.get(ie[0].toLowerCase()),ue+ie[0].length):-1}function W($,Y,ue){var ie=p.exec(Y.slice(ue));return ie?($.w=v.get(ie[0].toLowerCase()),ue+ie[0].length):-1}function q($,Y,ue){var ie=O.exec(Y.slice(ue));return ie?($.m=P.get(ie[0].toLowerCase()),ue+ie[0].length):-1}function J($,Y,ue){var ie=x.exec(Y.slice(ue));return ie?($.m=w.get(ie[0].toLowerCase()),ue+ie[0].length):-1}function Q($,Y,ue){return F($,t,Y,ue)}function ne($,Y,ue){return F($,r,Y,ue)}function ae($,Y,ue){return F($,n,Y,ue)}function se($){return a[$.getDay()]}function oe($){return o[$.getDay()]}function K($){return c[$.getMonth()]}function G($){return s[$.getMonth()]}function z($){return i[+($.getHours()>=12)]}function re($){return 1+~~($.getMonth()/3)}function X($){return a[$.getUTCDay()]}function le($){return o[$.getUTCDay()]}function ce($){return c[$.getUTCMonth()]}function de($){return s[$.getUTCMonth()]}function be($){return i[+($.getUTCHours()>=12)]}function M($){return 1+~~($.getUTCMonth()/3)}return{format:function($){var Y=j($+="",C);return Y.toString=function(){return $},Y},parse:function($){var Y=N($+="",!1);return Y.toString=function(){return $},Y},utcFormat:function($){var Y=j($+="",T);return Y.toString=function(){return $},Y},utcParse:function($){var Y=N($+="",!0);return Y.toString=function(){return $},Y}}}var HI={"-":"",_:" ",0:"0"},Jr=/^\s*\d+/,Bme=/^%/,Ume=/[\\^$*+?|[\]().{}]/g;function It(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",o=i.length;return n+(o<r?new Array(r-o+1).join(t)+i:i)}function zme(e){return e.replace(Ume,"\\$&")}function hh(e){return new RegExp("^(?:"+e.map(zme).join("|")+")","i")}function ph(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function Vme(e,t,r){var n=Jr.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function Wme(e,t,r){var n=Jr.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function qme(e,t,r){var n=Jr.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function Hme(e,t,r){var n=Jr.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function Gme(e,t,r){var n=Jr.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function GI(e,t,r){var n=Jr.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function KI(e,t,r){var n=Jr.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function Kme(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function Yme(e,t,r){var n=Jr.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function Zme(e,t,r){var n=Jr.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function YI(e,t,r){var n=Jr.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function Xme(e,t,r){var n=Jr.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function ZI(e,t,r){var n=Jr.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function Qme(e,t,r){var n=Jr.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function Jme(e,t,r){var n=Jr.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function eve(e,t,r){var n=Jr.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function tve(e,t,r){var n=Jr.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function rve(e,t,r){var n=Bme.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function nve(e,t,r){var n=Jr.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function ive(e,t,r){var n=Jr.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function XI(e,t){return It(e.getDate(),t,2)}function ove(e,t){return It(e.getHours(),t,2)}function ave(e,t){return It(e.getHours()%12||12,t,2)}function sve(e,t){return It(1+pm.count(Ya(e),e),t,3)}function YB(e,t){return It(e.getMilliseconds(),t,3)}function lve(e,t){return YB(e,t)+"000"}function uve(e,t){return It(e.getMonth()+1,t,2)}function cve(e,t){return It(e.getMinutes(),t,2)}function fve(e,t){return It(e.getSeconds(),t,2)}function dve(e){var t=e.getDay();return t===0?7:t}function hve(e,t){return It(lb.count(Ya(e)-1,e),t,2)}function ZB(e){var t=e.getDay();return t>=4||t===0?wf(e):wf.ceil(e)}function pve(e,t){return e=ZB(e),It(wf.count(Ya(e),e)+(Ya(e).getDay()===4),t,2)}function mve(e){return e.getDay()}function vve(e,t){return It(Ny.count(Ya(e)-1,e),t,2)}function gve(e,t){return It(e.getFullYear()%100,t,2)}function yve(e,t){return e=ZB(e),It(e.getFullYear()%100,t,2)}function bve(e,t){return It(e.getFullYear()%1e4,t,4)}function _ve(e,t){var r=e.getDay();return e=r>=4||r===0?wf(e):wf.ceil(e),It(e.getFullYear()%1e4,t,4)}function xve(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+It(t/60|0,"0",2)+It(t%60,"0",2)}function QI(e,t){return It(e.getUTCDate(),t,2)}function wve(e,t){return It(e.getUTCHours(),t,2)}function Ove(e,t){return It(e.getUTCHours()%12||12,t,2)}function Sve(e,t){return It(1+sb.count(Za(e),e),t,3)}function XB(e,t){return It(e.getUTCMilliseconds(),t,3)}function Pve(e,t){return XB(e,t)+"000"}function Eve(e,t){return It(e.getUTCMonth()+1,t,2)}function Cve(e,t){return It(e.getUTCMinutes(),t,2)}function Tve(e,t){return It(e.getUTCSeconds(),t,2)}function jve(e){var t=e.getUTCDay();return t===0?7:t}function Ave(e,t){return It(ub.count(Za(e)-1,e),t,2)}function QB(e){var t=e.getUTCDay();return t>=4||t===0?Of(e):Of.ceil(e)}function kve(e,t){return e=QB(e),It(Of.count(Za(e),e)+(Za(e).getUTCDay()===4),t,2)}function Rve(e){return e.getUTCDay()}function Nve(e,t){return It(My.count(Za(e)-1,e),t,2)}function Mve(e,t){return It(e.getUTCFullYear()%100,t,2)}function Lve(e,t){return e=QB(e),It(e.getUTCFullYear()%100,t,2)}function Ive(e,t){return It(e.getUTCFullYear()%1e4,t,4)}function Dve(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Of(e):Of.ceil(e),It(e.getUTCFullYear()%1e4,t,4)}function $ve(){return"+0000"}function JI(){return"%"}function eD(e){return+e}function tD(e){return Math.floor(+e/1e3)}var Lc,JB,eU;Fve({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 Fve(e){return Lc=Fme(e),JB=Lc.format,Lc.parse,eU=Lc.utcFormat,Lc.utcParse,Lc}function Bve(e){return new Date(e)}function Uve(e){return e instanceof Date?+e:+new Date(+e)}function jj(e,t,r,n,i,o,a,s,c,u){var h=mj(),p=h.invert,v=h.domain,b=u(".%L"),_=u(":%S"),x=u("%I:%M"),w=u("%I %p"),O=u("%a %d"),P=u("%b %d"),C=u("%B"),T=u("%Y");function A(j){return(c(j)<j?b:s(j)<j?_:a(j)<j?x:o(j)<j?w:n(j)<j?i(j)<j?O:P:r(j)<j?C:T)(j)}return h.invert=function(j){return new Date(p(j))},h.domain=function(j){return arguments.length?v(Array.from(j,Uve)):v().map(Bve)},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(BB(N,j)):h},h.copy=function(){return hm(h,jj(e,t,r,n,i,o,a,s,c,u))},h}function zve(){return Qi.apply(jj(Dme,$me,Ya,Cj,lb,pm,Pj,Oj,fu,JB).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Vve(){return Qi.apply(jj(Lme,Ime,Za,Tj,ub,sb,Ej,Sj,fu,eU).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function cb(){var e=0,t=1,r,n,i,o,a=Cn,s=!1,c;function u(p){return p==null||isNaN(p=+p)?c:a(i===0?.5:(p=(o(p)-r)*i,s?Math.max(0,Math.min(1,p)):p))}u.domain=function(p){return arguments.length?([e,t]=p,r=o(e=+e),n=o(t=+t),i=r===n?0:1/(n-r),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,_;return arguments.length?([b,_]=v,a=p(b,_),u):[a(0),a(1)]}}return u.range=h(rd),u.rangeRound=h(pj),u.unknown=function(p){return arguments.length?(c=p,u):c},function(p){return o=p,r=p(e),n=p(t),i=r===n?0:1/(n-r),u}}function yl(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function tU(){var e=gl(cb()(Cn));return e.copy=function(){return yl(e,tU())},ns.apply(e,arguments)}function rU(){var e=yj(cb()).domain([1,10]);return e.copy=function(){return yl(e,rU()).base(e.base())},ns.apply(e,arguments)}function nU(){var e=bj(cb());return e.copy=function(){return yl(e,nU()).constant(e.constant())},ns.apply(e,arguments)}function Aj(){var e=_j(cb());return e.copy=function(){return yl(e,Aj()).exponent(e.exponent())},ns.apply(e,arguments)}function Wve(){return Aj.apply(null,arguments).exponent(.5)}function iU(){var e=[],t=Cn;function r(n){if(n!=null&&!isNaN(n=+n))return t((fm(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(Js),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,o)=>Ape(e,o/n))},r.copy=function(){return iU(t).domain(e)},ns.apply(r,arguments)}function fb(){var e=0,t=.5,r=1,n=1,i,o,a,s,c,u=Cn,h,p=!1,v;function b(x){return isNaN(x=+x)?v:(x=.5+((x=+h(x))-o)*(n*x<n*o?s:c),u(p?Math.max(0,Math.min(1,x)):x))}b.domain=function(x){return arguments.length?([e,t,r]=x,i=h(e=+e),o=h(t=+t),a=h(r=+r),s=i===o?0:.5/(o-i),c=o===a?0:.5/(a-o),n=o<i?-1:1,b):[e,t,r]},b.clamp=function(x){return arguments.length?(p=!!x,b):p},b.interpolator=function(x){return arguments.length?(u=x,b):u};function _(x){return function(w){var O,P,C;return arguments.length?([O,P,C]=w,u=rme(x,[O,P,C]),b):[u(0),u(.5),u(1)]}}return b.range=_(rd),b.rangeRound=_(pj),b.unknown=function(x){return arguments.length?(v=x,b):v},function(x){return h=x,i=x(e),o=x(t),a=x(r),s=i===o?0:.5/(o-i),c=o===a?0:.5/(a-o),n=o<i?-1:1,b}}function oU(){var e=gl(fb()(Cn));return e.copy=function(){return yl(e,oU())},ns.apply(e,arguments)}function aU(){var e=yj(fb()).domain([.1,1,10]);return e.copy=function(){return yl(e,aU()).base(e.base())},ns.apply(e,arguments)}function sU(){var e=bj(fb());return e.copy=function(){return yl(e,sU()).constant(e.constant())},ns.apply(e,arguments)}function kj(){var e=_j(fb());return e.copy=function(){return yl(e,kj()).exponent(e.exponent())},ns.apply(e,arguments)}function qve(){return kj.apply(null,arguments).exponent(.5)}const rD=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:gp,scaleDiverging:oU,scaleDivergingLog:aU,scaleDivergingPow:kj,scaleDivergingSqrt:qve,scaleDivergingSymlog:sU,scaleIdentity:FB,scaleImplicit:xE,scaleLinear:ky,scaleLog:UB,scaleOrdinal:fj,scalePoint:$h,scalePow:xj,scaleQuantile:WB,scaleQuantize:qB,scaleRadial:VB,scaleSequential:tU,scaleSequentialLog:rU,scaleSequentialPow:Aj,scaleSequentialQuantile:iU,scaleSequentialSqrt:Wve,scaleSequentialSymlog:nU,scaleSqrt:Pme,scaleSymlog:zB,scaleThreshold:HB,scaleTime:zve,scaleUtc:Vve,tickFormat:$B},Symbol.toStringTag,{value:"Module"}));var nO,nD;function db(){if(nD)return nO;nD=1;var e=Qf();function t(r,n,i){for(var o=-1,a=r.length;++o<a;){var s=r[o],c=n(s);if(c!=null&&(u===void 0?c===c&&!e(c):i(c,u)))var u=c,h=s}return h}return nO=t,nO}var iO,iD;function lU(){if(iD)return iO;iD=1;function e(t,r){return t>r}return iO=e,iO}var oO,oD;function Hve(){if(oD)return oO;oD=1;var e=db(),t=lU(),r=td();function n(i){return i&&i.length?e(i,r,t):void 0}return oO=n,oO}var Gve=Hve();const Gs=Nt(Gve);var aO,aD;function uU(){if(aD)return aO;aD=1;function e(t,r){return t<r}return aO=e,aO}var sO,sD;function Kve(){if(sD)return sO;sD=1;var e=db(),t=uU(),r=td();function n(i){return i&&i.length?e(i,r,t):void 0}return sO=n,sO}var Yve=Kve();const hb=Nt(Yve);var lO,lD;function Zve(){if(lD)return lO;lD=1;var e=GT(),t=ca(),r=gB(),n=Zn();function i(o,a){var s=n(o)?e:r;return s(o,t(a,3))}return lO=i,lO}var uO,uD;function Xve(){if(uD)return uO;uD=1;var e=mB(),t=Zve();function r(n,i){return e(t(n,i),1)}return uO=r,uO}var Qve=Xve();const Jve=Nt(Qve);var cO,cD;function ege(){if(cD)return cO;cD=1;var e=oj();function t(r,n){return e(r,n)}return cO=t,cO}var tge=ege();const ll=Nt(tge);var nd=1e9,rge={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Nj,sr=!0,Zi="[DecimalError] ",yu=Zi+"Invalid argument: ",Rj=Zi+"Exponent out of range: ",id=Math.floor,iu=Math.pow,nge=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,hi,Yr=1e7,rr=7,cU=9007199254740991,Ly=id(cU/rr),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,r,n,i,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(n=o.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return n===i?0:n>i^o.s<0?1:-1};et.decimalPlaces=et.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*rr;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};et.dividedBy=et.div=function(e){return Ba(this,new this.constructor(e))};et.dividedToIntegerBy=et.idiv=function(e){var t=this,r=t.constructor;return qt(Ba(t,new r(e),0,1),r.precision)};et.equals=et.eq=function(e){return!this.cmp(e)};et.exponent=function(){return Mr(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,r=this,n=r.constructor,i=n.precision,o=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(hi))throw Error(Zi+"NaN");if(r.s<1)throw Error(Zi+(r.s?"NaN":"-Infinity"));return r.eq(hi)?new n(0):(sr=!1,t=Ba(wp(r,o),wp(e,o),o),sr=!0,qt(t,i))};et.minus=et.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?hU(t,e):fU(t,(e.s=-e.s,e))};et.modulo=et.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(Zi+"NaN");return r.s?(sr=!1,t=Ba(r,e,0,1).times(e),sr=!0,r.minus(t)):qt(new n(r),i)};et.naturalExponential=et.exp=function(){return dU(this)};et.naturalLogarithm=et.ln=function(){return wp(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?fU(t,e):hU(t,(e.s=-e.s,e))};et.precision=et.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(yu+e);if(t=Mr(i)+1,n=i.d.length-1,r=n*rr+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};et.squareRoot=et.sqrt=function(){var e,t,r,n,i,o,a,s=this,c=s.constructor;if(s.s<1){if(!s.s)return new c(0);throw Error(Zi+"NaN")}for(e=Mr(s),sr=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=Zo(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=id((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new c(t)):n=new c(i.toString()),r=c.precision,i=a=r+3;;)if(o=n,n=o.plus(Ba(s,o,a+2)).times(.5),Zo(o.d).slice(0,a)===(t=Zo(n.d)).slice(0,a)){if(t=t.slice(a-3,a+1),i==a&&t=="4999"){if(qt(o,r+1,0),o.times(o).eq(s)){n=o;break}}else if(t!="9999")break;a+=4}return sr=!0,qt(n,r)};et.times=et.mul=function(e){var t,r,n,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,r=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,n=a;n--;)o.push(0);for(n=u;--n>=0;){for(t=0,i=c+n;i>n;)s=o[i]+b[n]*v[i-n-1]+t,o[i--]=s%Yr|0,t=s/Yr|0;o[i]=(o[i]+t)%Yr|0}for(;!o[--a];)o.pop();return t?++r:o.shift(),e.d=o,e.e=r,sr?qt(e,p.precision):e};et.toDecimalPlaces=et.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(ia(e,0,nd),t===void 0?t=n.rounding:ia(t,0,8),qt(r,e+Mr(r)+1,t))};et.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=Tu(n,!0):(ia(e,0,nd),t===void 0?t=i.rounding:ia(t,0,8),n=qt(new i(n),e+1,t),r=Tu(n,!0,e+1)),r};et.toFixed=function(e,t){var r,n,i=this,o=i.constructor;return e===void 0?Tu(i):(ia(e,0,nd),t===void 0?t=o.rounding:ia(t,0,8),n=qt(new o(i),e+Mr(i)+1,t),r=Tu(n.abs(),!1,e+Mr(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};et.toInteger=et.toint=function(){var e=this,t=e.constructor;return qt(new t(e),Mr(e)+1,t.rounding)};et.toNumber=function(){return+this};et.toPower=et.pow=function(e){var t,r,n,i,o,a,s=this,c=s.constructor,u=12,h=+(e=new c(e));if(!e.s)return new c(hi);if(s=new c(s),!s.s){if(e.s<1)throw Error(Zi+"Infinity");return s}if(s.eq(hi))return s;if(n=c.precision,e.eq(hi))return qt(s,n);if(t=e.e,r=e.d.length-1,a=t>=r,o=s.s,a){if((r=h<0?-h:h)<=cU){for(i=new c(hi),t=Math.ceil(n/rr+4),sr=!1;r%2&&(i=i.times(s),dD(i.d,t)),r=id(r/2),r!==0;)s=s.times(s),dD(s.d,t);return sr=!0,e.s<0?new c(hi).div(i):qt(i,n)}}else if(o<0)throw Error(Zi+"NaN");return o=o<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,sr=!1,i=e.times(wp(s,n+u)),sr=!0,i=dU(i),i.s=o,i};et.toPrecision=function(e,t){var r,n,i=this,o=i.constructor;return e===void 0?(r=Mr(i),n=Tu(i,r<=o.toExpNeg||r>=o.toExpPos)):(ia(e,1,nd),t===void 0?t=o.rounding:ia(t,0,8),i=qt(new o(i),e,t),r=Mr(i),n=Tu(i,e<=r||r<=o.toExpNeg,e)),n};et.toSignificantDigits=et.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(ia(e,1,nd),t===void 0?t=n.rounding:ia(t,0,8)),qt(new n(r),e,t)};et.toString=et.valueOf=et.val=et.toJSON=et[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Mr(e),r=e.constructor;return Tu(e,t<=r.toExpNeg||t>=r.toExpPos)};function fU(e,t){var r,n,i,o,a,s,c,u,h=e.constructor,p=h.precision;if(!e.s||!t.s)return t.s||(t=new h(e)),sr?qt(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?(n=c,o=-o,s=u.length):(n=u,i=a,s=c.length),a=Math.ceil(p/rr),s=a>s?a+1:s+1,o>s&&(o=s,n.length=1),n.reverse();o--;)n.push(0);n.reverse()}for(s=c.length,o=u.length,s-o<0&&(o=s,n=u,u=c,c=n),r=0;o;)r=(c[--o]=c[o]+u[o]+r)/Yr|0,c[o]%=Yr;for(r&&(c.unshift(r),++i),s=c.length;c[--s]==0;)c.pop();return t.d=c,t.e=i,sr?qt(t,p):t}function ia(e,t,r){if(e!==~~e||e<t||e>r)throw Error(yu+e)}function Zo(e){var t,r,n,i=e.length-1,o="",a=e[0];if(i>0){for(o+=a,t=1;t<i;t++)n=e[t]+"",r=rr-n.length,r&&(o+=qs(r)),o+=n;a=e[t],n=a+"",r=rr-n.length,r&&(o+=qs(r))}else if(a===0)return"0";for(;a%10===0;)a/=10;return o+a}var Ba=function(){function e(n,i){var o,a=0,s=n.length;for(n=n.slice();s--;)o=n[s]*i+a,n[s]=o%Yr|0,a=o/Yr|0;return a&&n.unshift(a),n}function t(n,i,o,a){var s,c;if(o!=a)c=o>a?1:-1;else for(s=c=0;s<o;s++)if(n[s]!=i[s]){c=n[s]>i[s]?1:-1;break}return c}function r(n,i,o){for(var a=0;o--;)n[o]-=a,a=n[o]<i[o]?1:0,n[o]=a*Yr+n[o]-i[o];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,o,a){var s,c,u,h,p,v,b,_,x,w,O,P,C,T,A,j,N,F,V=n.constructor,B=n.s==i.s?1:-1,W=n.d,q=i.d;if(!n.s)return new V(n);if(!i.s)throw Error(Zi+"Division by zero");for(c=n.e-i.e,N=q.length,A=W.length,b=new V(B),_=b.d=[],u=0;q[u]==(W[u]||0);)++u;if(q[u]>(W[u]||0)&&--c,o==null?P=o=V.precision:a?P=o+(Mr(n)-Mr(i))+1:P=o,P<0)return new V(0);if(P=P/rr+2|0,u=0,N==1)for(h=0,q=q[0],P++;(u<A||h)&&P--;u++)C=h*Yr+(W[u]||0),_[u]=C/q|0,h=C%q|0;else{for(h=Yr/(q[0]+1)|0,h>1&&(q=e(q,h),W=e(W,h),N=q.length,A=W.length),T=N,x=W.slice(0,N),w=x.length;w<N;)x[w++]=0;F=q.slice(),F.unshift(0),j=q[0],q[1]>=Yr/2&&++j;do h=0,s=t(q,x,N,w),s<0?(O=x[0],N!=w&&(O=O*Yr+(x[1]||0)),h=O/j|0,h>1?(h>=Yr&&(h=Yr-1),p=e(q,h),v=p.length,w=x.length,s=t(p,x,v,w),s==1&&(h--,r(p,N<v?F:q,v))):(h==0&&(s=h=1),p=q.slice()),v=p.length,v<w&&p.unshift(0),r(x,p,w),s==-1&&(w=x.length,s=t(q,x,N,w),s<1&&(h++,r(x,N<w?F:q,w))),w=x.length):s===0&&(h++,x=[0]),_[u++]=h,s&&x[0]?x[w++]=W[T]||0:(x=[W[T]],w=1);while((T++<A||x[0]!==void 0)&&P--)}return _[0]||_.shift(),b.e=c,qt(b,a?o+Mr(b)+1:o)}}();function dU(e,t){var r,n,i,o,a,s,c=0,u=0,h=e.constructor,p=h.precision;if(Mr(e)>16)throw Error(Rj+Mr(e));if(!e.s)return new h(hi);for(t==null?(sr=!1,s=p):s=t,a=new h(.03125);e.abs().gte(.1);)e=e.times(a),u+=5;for(n=Math.log(iu(2,u))/Math.LN10*2+5|0,s+=n,r=i=o=new h(hi),h.precision=s;;){if(i=qt(i.times(e),s),r=r.times(++c),a=o.plus(Ba(i,r,s)),Zo(a.d).slice(0,s)===Zo(o.d).slice(0,s)){for(;u--;)o=qt(o.times(o),s);return h.precision=p,t==null?(sr=!0,qt(o,p)):o}o=a}}function Mr(e){for(var t=e.e*rr,r=e.d[0];r>=10;r/=10)t++;return t}function fO(e,t,r){if(t>e.LN10.sd())throw sr=!0,r&&(e.precision=r),Error(Zi+"LN10 precision limit exceeded");return qt(new e(e.LN10),t)}function qs(e){for(var t="";e--;)t+="0";return t}function wp(e,t){var r,n,i,o,a,s,c,u,h,p=1,v=10,b=e,_=b.d,x=b.constructor,w=x.precision;if(b.s<1)throw Error(Zi+(b.s?"NaN":"-Infinity"));if(b.eq(hi))return new x(0);if(t==null?(sr=!1,u=w):u=t,b.eq(10))return t==null&&(sr=!0),fO(x,u);if(u+=v,x.precision=u,r=Zo(_),n=r.charAt(0),o=Mr(b),Math.abs(o)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)b=b.times(e),r=Zo(b.d),n=r.charAt(0),p++;o=Mr(b),n>1?(b=new x("0."+r),o++):b=new x(n+"."+r.slice(1))}else return c=fO(x,u+2,w).times(o+""),b=wp(new x(n+"."+r.slice(1)),u-v).plus(c),x.precision=w,t==null?(sr=!0,qt(b,w)):b;for(s=a=b=Ba(b.minus(hi),b.plus(hi),u),h=qt(b.times(b),u),i=3;;){if(a=qt(a.times(h),u),c=s.plus(Ba(a,new x(i),u)),Zo(c.d).slice(0,u)===Zo(s.d).slice(0,u))return s=s.times(2),o!==0&&(s=s.plus(fO(x,u+2,w).times(o+""))),s=Ba(s,new x(p),u),x.precision=w,t==null?(sr=!0,qt(s,w)):s;s=c,i+=2}}function fD(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=id(r/rr),e.d=[],n=(r+1)%rr,r<0&&(n+=rr),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=rr;n<i;)e.d.push(+t.slice(n,n+=rr));t=t.slice(n),n=rr-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),sr&&(e.e>Ly||e.e<-Ly))throw Error(Rj+r)}else e.s=0,e.e=0,e.d=[0];return e}function qt(e,t,r){var n,i,o,a,s,c,u,h,p=e.d;for(a=1,o=p[0];o>=10;o/=10)a++;if(n=t-a,n<0)n+=rr,i=t,u=p[h=0];else{if(h=Math.ceil((n+1)/rr),o=p.length,h>=o)return e;for(u=o=p[h],a=1;o>=10;o/=10)a++;n%=rr,i=n-rr+a}if(r!==void 0&&(o=iu(10,a-i-1),s=u/o%10|0,c=t<0||p[h+1]!==void 0||u%o,c=r<4?(s||c)&&(r==0||r==(e.s<0?3:2)):s>5||s==5&&(r==4||c||r==6&&(n>0?i>0?u/iu(10,a-i):0:p[h-1])%10&1||r==(e.s<0?8:7))),t<1||!p[0])return c?(o=Mr(e),p.length=1,t=t-o-1,p[0]=iu(10,(rr-t%rr)%rr),e.e=id(-t/rr)||0):(p.length=1,p[0]=e.e=e.s=0),e;if(n==0?(p.length=h,o=1,h--):(p.length=h+1,o=iu(10,rr-n),p[h]=i>0?(u/iu(10,a-i)%iu(10,i)|0)*o:0),c)for(;;)if(h==0){(p[0]+=o)==Yr&&(p[0]=1,++e.e);break}else{if(p[h]+=o,p[h]!=Yr)break;p[h--]=0,o=1}for(n=p.length;p[--n]===0;)p.pop();if(sr&&(e.e>Ly||e.e<-Ly))throw Error(Rj+Mr(e));return e}function hU(e,t){var r,n,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),sr?qt(t,b):t;if(c=e.d,p=t.d,n=t.e,u=e.e,c=c.slice(),a=u-n,a){for(h=a<0,h?(r=c,a=-a,s=p.length):(r=p,n=u,s=c.length),i=Math.max(Math.ceil(b/rr),s)+2,a>i&&(a=i,r.length=1),r.reverse(),i=a;i--;)r.push(0);r.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&&(r=c,c=p,p=r,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]=Yr-1;--c[o],c[i]+=Yr}c[i]-=p[i]}for(;c[--s]===0;)c.pop();for(;c[0]===0;c.shift())--n;return c[0]?(t.d=c,t.e=n,sr?qt(t,b):t):new v(0)}function Tu(e,t,r){var n,i=Mr(e),o=Zo(e.d),a=o.length;return t?(r&&(n=r-a)>0?o=o.charAt(0)+"."+o.slice(1)+qs(n):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+qs(-i-1)+o,r&&(n=r-a)>0&&(o+=qs(n))):i>=a?(o+=qs(i+1-a),r&&(n=r-i-1)>0&&(o=o+"."+qs(n))):((n=i+1)<a&&(o=o.slice(0,n)+"."+o.slice(n)),r&&(n=r-a)>0&&(i+1===a&&(o+="."),o+=qs(n))),e.s<0?"-"+o:o}function dD(e,t){if(e.length>t)return e.length=t,!0}function pU(e){var t,r,n;function i(o){var a=this;if(!(a instanceof i))return new i(o);if(a.constructor=i,o instanceof i){a.s=o.s,a.e=o.e,a.d=(o=o.d)?o.slice():o;return}if(typeof o=="number"){if(o*0!==0)throw Error(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 fD(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,nge.test(o))fD(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=pU,i.config=i.set=ige,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function ige(e){if(!e||typeof e!="object")throw Error(Zi+"Object expected");var t,r,n,i=["precision",1,nd,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(id(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(yu+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(yu+r+": "+n);return this}var Nj=pU(rge);hi=new Nj(1);const zt=Nj;function oge(e){return uge(e)||lge(e)||sge(e)||age()}function age(){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 sge(e,t){if(e){if(typeof e=="string")return PE(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return PE(e,t)}}function lge(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function uge(e){if(Array.isArray(e))return PE(e)}function PE(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var cge=function(t){return t},mU={"@@functional/placeholder":!0},vU=function(t){return t===mU},hD=function(t){return function r(){return arguments.length===0||arguments.length===1&&vU(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},fge=function e(t,r){return t===1?r:hD(function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];var a=i.filter(function(s){return s!==mU}).length;return a>=t?r.apply(void 0,i):e(t-a,hD(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 vU(p)?c.shift():p});return r.apply(void 0,oge(h).concat(c))}))})},pb=function(t){return fge(t.length,t)},EE=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},dge=pb(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),hge=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return cge;var i=r.reverse(),o=i[0],a=i.slice(1);return function(){return a.reduce(function(s,c){return c(s)},o.apply(void 0,arguments))}},CE=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},gU=function(t){var r=null,n=null;return function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r&&o.every(function(s,c){return s===r[c]})||(r=o,n=t.apply(void 0,o)),n}};function pge(e){var t;return e===0?t=1:t=Math.floor(new zt(e).abs().log(10).toNumber())+1,t}function mge(e,t,r){for(var n=new zt(e),i=0,o=[];n.lt(t)&&i<1e5;)o.push(n.toNumber()),n=n.add(r),i++;return o}var vge=pb(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),gge=pb(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),yge=pb(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const mb={rangeStep:mge,getDigitCount:pge,interpolateNumber:vge,uninterpolateNumber:gge,uninterpolateTruncation:yge};function TE(e){return xge(e)||_ge(e)||yU(e)||bge()}function bge(){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 _ge(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function xge(e){if(Array.isArray(e))return jE(e)}function Op(e,t){return Sge(e)||Oge(e,t)||yU(e,t)||wge()}function wge(){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 yU(e,t){if(e){if(typeof e=="string")return jE(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return jE(e,t)}}function jE(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Oge(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,o=void 0;try{for(var a=e[Symbol.iterator](),s;!(n=(s=a.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(c){i=!0,o=c}finally{try{!n&&a.return!=null&&a.return()}finally{if(i)throw o}}return r}}function Sge(e){if(Array.isArray(e))return e}function bU(e){var t=Op(e,2),r=t[0],n=t[1],i=r,o=n;return r>n&&(i=n,o=r),[i,o]}function _U(e,t,r){if(e.lte(0))return new zt(0);var n=mb.getDigitCount(e.toNumber()),i=new zt(10).pow(n),o=e.div(i),a=n!==1?.05:.1,s=new zt(Math.ceil(o.div(a).toNumber())).add(r).mul(a),c=s.mul(i);return t?c:new zt(Math.ceil(c))}function Pge(e,t,r){var n=1,i=new zt(e);if(!i.isint()&&r){var o=Math.abs(e);o<1?(n=new zt(10).pow(mb.getDigitCount(e)-1),i=new zt(Math.floor(i.div(n).toNumber())).mul(n)):o>1&&(i=new zt(Math.floor(e)))}else e===0?i=new zt(Math.floor((t-1)/2)):r||(i=new zt(Math.floor(e)));var a=Math.floor((t-1)/2),s=hge(dge(function(c){return i.add(new zt(c-a).mul(n)).toNumber()}),EE);return s(0,t)}function xU(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new zt(0),tickMin:new zt(0),tickMax:new zt(0)};var o=_U(new zt(t).sub(e).div(r-1),n,i),a;e<=0&&t>=0?a=new zt(0):(a=new zt(e).add(t).div(2),a=a.sub(new zt(a).mod(o)));var s=Math.ceil(a.sub(e).div(o).toNumber()),c=Math.ceil(new zt(t).sub(a).div(o).toNumber()),u=s+c+1;return u>r?xU(e,t,r,n,i+1):(u<r&&(c=t>0?c+(r-u):c,s=t>0?s:s+(r-u)),{step:o,tickMin:a.sub(new zt(s).mul(o)),tickMax:a.add(new zt(c).mul(o))})}function Ege(e){var t=Op(e,2),r=t[0],n=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=Math.max(i,2),s=bU([r,n]),c=Op(s,2),u=c[0],h=c[1];if(u===-1/0||h===1/0){var p=h===1/0?[u].concat(TE(EE(0,i-1).map(function(){return 1/0}))):[].concat(TE(EE(0,i-1).map(function(){return-1/0})),[h]);return r>n?CE(p):p}if(u===h)return Pge(u,i,o);var v=xU(u,h,a,o),b=v.step,_=v.tickMin,x=v.tickMax,w=mb.rangeStep(_,x.add(new zt(.1).mul(b)),b);return r>n?CE(w):w}function Cge(e,t){var r=Op(e,2),n=r[0],i=r[1],o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=bU([n,i]),s=Op(a,2),c=s[0],u=s[1];if(c===-1/0||u===1/0)return[n,i];if(c===u)return[c];var h=Math.max(t,2),p=_U(new zt(u).sub(c).div(h-1),o,0),v=[].concat(TE(mb.rangeStep(new zt(c),new zt(u).sub(new zt(.99).mul(p)),p)),[u]);return n>i?CE(v):v}var Tge=gU(Ege),jge=gU(Cge),Age="Invariant failed";function ju(e,t){throw new Error(Age)}var kge=["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 Iy(){return Iy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Iy.apply(this,arguments)}function Rge(e,t){return Ige(e)||Lge(e,t)||Mge(e,t)||Nge()}function Nge(){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 Mge(e,t){if(e){if(typeof e=="string")return pD(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return pD(e,t)}}function pD(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Lge(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],c=!0,u=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(h){u=!0,i=h}finally{try{if(!c&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function Ige(e){if(Array.isArray(e))return e}function Dge(e,t){if(e==null)return{};var r=$ge(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function $ge(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Fge(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bge(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,SU(n.key),n)}}function Uge(e,t,r){return t&&Bge(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function zge(e,t,r){return t=Dy(t),Vge(e,wU()?Reflect.construct(t,r||[],Dy(e).constructor):t.apply(e,r))}function Vge(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 Wge(e)}function Wge(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(wU=function(){return!!e})()}function Dy(e){return Dy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Dy(e)}function qge(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(n,i){return n.__proto__=i,n},AE(e,t)}function OU(e,t,r){return t=SU(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function SU(e){var t=Hge(e,"string");return Sf(t)=="symbol"?t:t+""}function Hge(e,t){if(Sf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Sf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var od=function(e){function t(){return Fge(this,t),zge(this,t,arguments)}return qge(t,e),Uge(t,[{key:"render",value:function(){var n=this.props,i=n.offset,o=n.layout,a=n.width,s=n.dataKey,c=n.data,u=n.dataPointFormatter,h=n.xAxis,p=n.yAxis,v=Dge(n,kge),b=it(v,!1);this.props.direction==="x"&&h.type!=="number"&&ju();var _=c.map(function(x){var w=u(x,s),O=w.x,P=w.y,C=w.value,T=w.errorVal;if(!T)return null;var A=[],j,N;if(Array.isArray(T)){var F=Rge(T,2);j=F[0],N=F[1]}else j=N=T;if(o==="vertical"){var V=h.scale,B=P+i,W=B+a,q=B-a,J=V(C-j),Q=V(C+N);A.push({x1:Q,y1:W,x2:Q,y2:q}),A.push({x1:J,y1:B,x2:Q,y2:B}),A.push({x1:J,y1:W,x2:J,y2:q})}else if(o==="horizontal"){var ne=p.scale,ae=O+i,se=ae-a,oe=ae+a,K=ne(C-j),G=ne(C+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(Et,Iy({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",Iy({},z,{key:"line-".concat(z.x1,"-").concat(z.x2,"-").concat(z.y1,"-").concat(z.y2)}))}))});return Z.createElement(Et,{className:"recharts-errorBars"},_)}}])}(Z.Component);OU(od,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});OU(od,"displayName","ErrorBar");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 mD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Kl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mD(Object(r),!0).forEach(function(n){Gge(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Gge(e,t,r){return t=Kge(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Kge(e){var t=Yge(e,"string");return Sp(t)=="symbol"?t:t+""}function Yge(e,t){if(Sp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Sp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var PU=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,o=t.legendContent,a=di(r,rf);if(!a)return null;var s=rf.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=(n||[]).reduce(function(h,p){var v=p.item,b=p.props,_=b.sectors||b.data||[];return h.concat(_.map(function(x){return{type:a.props.iconType||v.props.legendType,value:x.name,color:x.fill,payload:x}}))},[]):u=(n||[]).map(function(h){var p=h.item,v=p.type.defaultProps,b=v!==void 0?Kl(Kl({},v),p.props):{},_=b.dataKey,x=b.name,w=b.legendType,O=b.hide;return{inactive:O,dataKey:_,type:c.iconType||w||"square",color:Mj(p),value:x||_,payload:b}}),Kl(Kl(Kl({},c),rf.getWithHeight(a,i)),{},{payload:u,item:a})};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 vD(e){return Jge(e)||Qge(e)||Xge(e)||Zge()}function Zge(){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 Xge(e,t){if(e){if(typeof e=="string")return kE(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return kE(e,t)}}function Qge(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Jge(e){if(Array.isArray(e))return kE(e)}function kE(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function gD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Or(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gD(Object(r),!0).forEach(function(n){of(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function of(e,t,r){return t=eye(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eye(e){var t=tye(e,"string");return Pp(t)=="symbol"?t:t+""}function tye(e,t){if(Pp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Pp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nr(e,t,r){return dt(e)||dt(t)?r:zr(t)?mi(e,t,r):ft(t)?t(e):r}function Fh(e,t,r,n){var i=Jve(e,function(s){return nr(s,t)});if(r==="number"){var o=i.filter(function(s){return Ve(s)||parseFloat(s)});return o.length?[hb(o),Gs(o)]:[1/0,-1/0]}var a=n?i.filter(function(s){return!dt(s)}):i;return a.map(function(s){return zr(s)||s instanceof Date?s:""})}var rye=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,a=-1,s=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(s<=1)return 0;if(o&&o.axisType==="angleAxis"&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var 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(Pn(p-h)!==Pn(v-p)){var _=[];if(Pn(v-p)===Pn(c[1]-c[0])){b=v;var x=p+c[1]-c[0];_[0]=Math.min(x,(x+h)/2),_[1]=Math.max(x,(x+h)/2)}else{b=h;var w=v+c[1]-c[0];_[0]=Math.min(p,(w+p)/2),_[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>=_[0]&&t<=_[1]){a=i[u].index;break}}else{var P=Math.min(h,v),C=Math.max(h,v);if(t>(P+p)/2&&t<=(C+p)/2){a=i[u].index;break}}}else for(var T=0;T<s;T++)if(T===0&&t<=(n[T].coordinate+n[T+1].coordinate)/2||T>0&&T<s-1&&t>(n[T].coordinate+n[T-1].coordinate)/2&&t<=(n[T].coordinate+n[T+1].coordinate)/2||T===s-1&&t>(n[T].coordinate+n[T-1].coordinate)/2){a=n[T].index;break}return a},Mj=function(t){var r,n=t,i=n.type.displayName,o=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Or(Or({},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},nye=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,o=i===void 0?{}:i;if(!o)return{};for(var a={},s=Object.keys(o),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 _=h[p[v]],x=_.items,w=_.cateAxisId,O=x.filter(function(N){return Fa(N.type).indexOf("Bar")>=0});if(O&&O.length){var P=O[0].type.defaultProps,C=P!==void 0?Or(Or({},P),O[0].props):O[0].props,T=C.barSize,A=C[w];a[A]||(a[A]=[]);var j=dt(T)?r:T;a[A].push({item:O[0],stackList:O.slice(1),barSize:dt(j)?void 0:En(j,n,0)})}}return a},iye=function(t){var r=t.barGap,n=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=En(r,i,0,!0),h,p=[];if(a[0].barSize===+a[0].barSize){var v=!1,b=i/c,_=a.reduce(function(T,A){return T+A.barSize||0},0);_+=(c-1)*u,_>=i&&(_-=(c-1)*u,u=0),_>=i&&b>0&&(v=!0,b*=.9,_=c*b);var x=(i-_)/2>>0,w={offset:x-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(vD(T),[j]);return w=N[N.length-1].position,A.stackList&&A.stackList.length&&A.stackList.forEach(function(F){N.push({item:F,position:w})}),N},p)}else{var O=En(n,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 C=s===+s?Math.min(P,s):P;h=a.reduce(function(T,A,j){var N=[].concat(vD(T),[{item:A.item,position:{offset:O+(P+u)*j+(P-C)/2,size:C}}]);return A.stackList&&A.stackList.length&&A.stackList.forEach(function(F){N.push({item:F,position:N[N.length-1].position})}),N},p)}return h},oye=function(t,r,n,i){var o=n.children,a=n.width,s=n.margin,c=a-(s.left||0)-(s.right||0),u=PU({children:o,legendWidth:c});if(u){var h=i||{},p=h.width,v=h.height,b=u.align,_=u.verticalAlign,x=u.layout;if((x==="vertical"||x==="horizontal"&&_==="middle")&&b!=="center"&&Ve(t[b]))return Or(Or({},t),{},of({},b,t[b]+(p||0)));if((x==="horizontal"||x==="vertical"&&b==="center")&&_!=="middle"&&Ve(t[_]))return Or(Or({},t),{},of({},_,t[_]+(v||0)))}return t},aye=function(t,r,n){return dt(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},EU=function(t,r,n,i,o){var a=r.props.children,s=An(a,od).filter(function(u){return aye(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=nr(h,n);if(dt(p))return u;var v=Array.isArray(p)?[hb(p),Gs(p)]:[p,p],b=c.reduce(function(_,x){var w=nr(h,x,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,_[0]),Math.max(P,_[1])]},[1/0,-1/0]);return[Math.min(b[0],u[0]),Math.max(b[1],u[1])]},[1/0,-1/0])}return null},sye=function(t,r,n,i,o){var a=r.map(function(s){return EU(t,s,n,o,i)}).filter(function(s){return!dt(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},CU=function(t,r,n,i,o){var a=r.map(function(c){var u=c.props.dataKey;return n==="number"&&u&&EU(t,c,u,i)||Fh(t,u,n,o)});if(n==="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},[])},TU=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},jU=function(t,r,n,i){if(i)return t.map(function(c){return c.coordinate});var o,a,s=t.map(function(c){return c.coordinate===r&&(o=!0),c.coordinate===n&&(a=!0),c.coordinate});return o||s.push(r),a||s.push(n),s},Ia=function(t,r,n){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=(r||n)&&a==="category"&&i.bandwidth?i.bandwidth()/c:0;if(u=t.axisType==="angleAxis"&&(s==null?void 0:s.length)>=2?Pn(s[0]-s[1])*2*u:u,r&&(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!ed(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&&!n?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}})},dO=new WeakMap,tg=function(t,r){if(typeof r!="function")return t;dO.has(t)||dO.set(t,new WeakMap);var n=dO.get(t);if(n.has(r))return n.get(r);var i=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,i),i},AU=function(t,r,n){var i=t.scale,o=t.type,a=t.layout,s=t.axisType;if(i==="auto")return a==="radial"&&s==="radiusAxis"?{scale:gp(),realScaleType:"band"}:a==="radial"&&s==="angleAxis"?{scale:ky(),realScaleType:"linear"}:o==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:$h(),realScaleType:"point"}:o==="category"?{scale:gp(),realScaleType:"band"}:{scale:ky(),realScaleType:"linear"};if(um(i)){var c="scale".concat(Q0(i));return{scale:(rD[c]||$h)(),realScaleType:rD[c]?c:"point"}}return ft(i)?{scale:i}:{scale:$h(),realScaleType:"point"}},yD=1e-4,kU=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,i=t.range(),o=Math.min(i[0],i[1])-yD,a=Math.max(i[0],i[1])+yD,s=t(r[0]),c=t(r[n-1]);(s<o||s>a||c<o||c>a)&&t.domain([r[0],r[n-1]])}},lye=function(t,r){if(!t)return null;for(var n=0,i=t.length;n<i;n++)if(t[n].item===r)return t[n].position;return null},uye=function(t,r){if(!r||r.length!==2||!Ve(r[0])||!Ve(r[1]))return t;var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]),o=[t[0],t[1]];return(!Ve(t[0])||t[0]<n)&&(o[0]=n),(!Ve(t[1])||t[1]>i)&&(o[1]=i),o[0]>i&&(o[0]=i),o[1]<n&&(o[1]=n),o},cye=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var o=0,a=0,s=0;s<r;++s){var c=ed(t[s][n][1])?t[s][n][0]:t[s][n][1];c>=0?(t[s][n][0]=o,t[s][n][1]=o+c,o=t[s][n][1]):(t[s][n][0]=a,t[s][n][1]=a+c,a=t[s][n][1])}},fye=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var o=0,a=0;a<r;++a){var s=ed(t[a][n][1])?t[a][n][0]:t[a][n][1];s>=0?(t[a][n][0]=o,t[a][n][1]=o+s,o=t[a][n][1]):(t[a][n][0]=0,t[a][n][1]=0)}},dye={sign:cye,expand:Jce,none:vf,silhouette:efe,wiggle:tfe,positive:fye},hye=function(t,r,n){var i=r.map(function(s){return s.props.dataKey}),o=dye[n],a=Qce().keys(i).value(function(s,c){return+nr(s,c,0)}).order(sE).offset(o);return a(t)},pye=function(t,r,n,i,o,a){if(!t)return null;var s=a?r.reverse():r,c={},u=s.reduce(function(p,v){var b,_=(b=v.type)!==null&&b!==void 0&&b.defaultProps?Or(Or({},v.type.defaultProps),v.props):v.props,x=_.stackId,w=_.hide;if(w)return p;var O=_[n],P=p[O]||{hasStack:!1,stackGroups:{}};if(zr(x)){var C=P.stackGroups[x]||{numericAxisId:n,cateAxisId:i,items:[]};C.items.push(v),P.hasStack=!0,P.stackGroups[x]=C}else P.stackGroups[vl("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[v]};return Or(Or({},p),{},of({},O,P))},c),h={};return Object.keys(u).reduce(function(p,v){var b=u[v];if(b.hasStack){var _={};b.stackGroups=Object.keys(b.stackGroups).reduce(function(x,w){var O=b.stackGroups[w];return Or(Or({},x),{},of({},w,{numericAxisId:n,cateAxisId:i,items:O.items,stackedData:hye(t,O.items,o)}))},_)}return Or(Or({},p),{},of({},v,b))},h)},RU=function(t,r){var n=r.realScaleType,i=r.type,o=r.tickCount,a=r.originalDomain,s=r.allowDecimals,c=n||r.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=Tge(u,o,s);return t.domain([hb(h),Gs(h)]),{niceTicks:h}}if(o&&i==="number"){var p=t.domain(),v=jge(p,o,s);return{niceTicks:v}}return null};function Pf(e){var t=e.axis,r=e.ticks,n=e.bandSize,i=e.entry,o=e.index,a=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!dt(i[t.dataKey])){var s=hy(r,"value",i[t.dataKey]);if(s)return s.coordinate+n/2}return r[o]?r[o].coordinate+n/2:null}var c=nr(i,dt(a)?t.dataKey:a);return dt(c)?null:t.scale(c)}var bD=function(t){var r=t.axis,n=t.ticks,i=t.offset,o=t.bandSize,a=t.entry,s=t.index;if(r.type==="category")return n[s]?n[s].coordinate+i:null;var c=nr(a,r.dataKey,r.domain[s]);return dt(c)?null:r.scale(c)-o/2+i},mye=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var i=Math.min(n[0],n[1]),o=Math.max(n[0],n[1]);return i<=0&&o>=0?0:o<0?o:i}return n[0]},vye=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Or(Or({},t.type.defaultProps),t.props):t.props,o=i.stackId;if(zr(o)){var a=r[o];if(a){var s=a.items.indexOf(t);return s>=0?a.stackedData[s]:null}}return null},gye=function(t){return t.reduce(function(r,n){return[hb(n.concat([r[0]]).filter(Ve)),Gs(n.concat([r[1]]).filter(Ve))]},[1/0,-1/0])},NU=function(t,r,n){return Object.keys(t).reduce(function(i,o){var a=t[o],s=a.stackedData,c=s.reduce(function(u,h){var p=gye(h.slice(r,n+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})},_D=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,xD=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,RE=function(t,r,n){if(ft(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(Ve(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(_D.test(t[0])){var o=+_D.exec(t[0])[1];i[0]=r[0]-o}else ft(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(Ve(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(xD.test(t[1])){var a=+xD.exec(t[1])[1];i[1]=r[1]+a}else ft(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},$y=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!n||i>0)return i}if(t&&r&&r.length>=2){for(var o=sj(r,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 n?void 0:0},wD=function(t,r,n){return!t||!t.length||ll(t,mi(n,"type.defaultProps.domain"))?r:t},MU=function(t,r){var n=t.type.defaultProps?Or(Or({},t.type.defaultProps),t.props):t.props,i=n.dataKey,o=n.name,a=n.unit,s=n.formatter,c=n.tooltipType,u=n.chartType,h=n.hide;return Or(Or({},it(t,!1)),{},{dataKey:i,unit:a,formatter:s,name:o||i,color:Mj(t),value:nr(r,i),type:c,payload:r,chartType:u,hide:h})};function Ep(e){"@babel/helpers - typeof";return Ep=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},Ep(e)}function OD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Na(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?OD(Object(r),!0).forEach(function(n){LU(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):OD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function LU(e,t,r){return t=yye(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yye(e){var t=bye(e,"string");return Ep(t)=="symbol"?t:t+""}function bye(e,t){if(Ep(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ep(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _ye(e,t){return Sye(e)||Oye(e,t)||wye(e,t)||xye()}function xye(){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 wye(e,t){if(e){if(typeof e=="string")return SD(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return SD(e,t)}}function SD(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Oye(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],c=!0,u=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(h){u=!0,i=h}finally{try{if(!c&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function Sye(e){if(Array.isArray(e))return e}var Fy=Math.PI/180,Pye=function(t){return t*180/Math.PI},Qt=function(t,r,n,i){return{x:t+Math.cos(-Fy*i)*n,y:r+Math.sin(-Fy*i)*n}},IU=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},Eye=function(t,r,n,i,o){var a=t.width,s=t.height,c=t.startAngle,u=t.endAngle,h=En(t.cx,a,a/2),p=En(t.cy,s,s/2),v=IU(a,s,n),b=En(t.innerRadius,v,0),_=En(t.outerRadius,v,v*.8),x=Object.keys(r);return x.reduce(function(w,O){var P=r[O],C=P.domain,T=P.reversed,A;if(dt(P.range))i==="angleAxis"?A=[c,u]:i==="radiusAxis"&&(A=[b,_]),T&&(A=[A[1],A[0]]);else{A=P.range;var j=A,N=_ye(j,2);c=N[0],u=N[1]}var F=AU(P,o),V=F.realScaleType,B=F.scale;B.domain(C).range(A),kU(B);var W=RU(B,Na(Na({},P),{},{realScaleType:V})),q=Na(Na(Na({},P),W),{},{range:A,radius:_,realScaleType:V,scale:B,cx:h,cy:p,innerRadius:b,outerRadius:_,startAngle:c,endAngle:u});return Na(Na({},w),{},LU({},O,q))},{})},Cye=function(t,r){var n=t.x,i=t.y,o=r.x,a=r.y;return Math.sqrt(Math.pow(n-o,2)+Math.pow(i-a,2))},Tye=function(t,r){var n=t.x,i=t.y,o=r.cx,a=r.cy,s=Cye({x:n,y:i},{x:o,y:a});if(s<=0)return{radius:s};var c=(n-o)/s,u=Math.acos(c);return i>a&&(u=2*Math.PI-u),{radius:s,angle:Pye(u),angleInRadian:u}},jye=function(t){var r=t.startAngle,n=t.endAngle,i=Math.floor(r/360),o=Math.floor(n/360),a=Math.min(i,o);return{startAngle:r-a*360,endAngle:n-a*360}},Aye=function(t,r){var n=r.startAngle,i=r.endAngle,o=Math.floor(n/360),a=Math.floor(i/360),s=Math.min(o,a);return t+s*360},PD=function(t,r){var n=t.x,i=t.y,o=Tye({x:n,y:i},r),a=o.radius,s=o.angle,c=r.innerRadius,u=r.outerRadius;if(a<c||a>u)return!1;if(a===0)return!0;var h=jye(r),p=h.startAngle,v=h.endAngle,b=s,_;if(p<=v){for(;b>v;)b-=360;for(;b<p;)b+=360;_=b>=p&&b<=v}else{for(;b>p;)b-=360;for(;b<v;)b+=360;_=b>=v&&b<=p}return _?Na(Na({},r),{},{radius:a,angle:Aye(b,r)}):null},DU=function(t){return!I.isValidElement(t)&&!ft(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 kye=["offset"];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 NE(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return NE(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 NE(e)}function NE(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Dye(e,t){if(e==null)return{};var r=$ye(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function $ye(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function ED(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ur(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ED(Object(r),!0).forEach(function(n){Fye(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ED(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Fye(e,t,r){return t=Bye(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Bye(e){var t=Uye(e,"string");return Cp(t)=="symbol"?t:t+""}function Uye(e,t){if(Cp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Cp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Tp(){return Tp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Tp.apply(this,arguments)}var zye=function(t){var r=t.value,n=t.formatter,i=dt(t.children)?r:t.children;return ft(n)?n(i):i},Vye=function(t,r){var n=Pn(r-t),i=Math.min(Math.abs(r-t),360);return n*i},Wye=function(t,r,n){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,_=c.endAngle,x=c.clockWise,w=(p+v)/2,O=Vye(b,_),P=O>=0?1:-1,C,T;i==="insideStart"?(C=b+P*a,T=x):i==="insideEnd"?(C=_-P*a,T=!x):i==="end"&&(C=_+P*a,T=x),T=O<=0?T:!T;var A=Qt(u,h,w,C),j=Qt(u,h,w,C+(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),F=dt(t.id)?vl("recharts-radial-line-"):t.id;return Z.createElement("text",Tp({},n,{dominantBaseline:"central",className:ze("recharts-radial-bar-label",s)}),Z.createElement("defs",null,Z.createElement("path",{id:F,d:N})),Z.createElement("textPath",{xlinkHref:"#".concat(F)},r))},qye=function(t){var r=t.viewBox,n=t.offset,i=t.position,o=r,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+n,v),_=b.x,x=b.y;return{x:_,y:x,textAnchor:_>=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,C=O.y;return{x:P,y:C,textAnchor:"middle",verticalAnchor:"middle"}},Hye=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,o=t.position,a=r,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",_=p>0?"start":"end",x=u>=0?1:-1,w=x*i,O=x>0?"end":"start",P=x>0?"start":"end";if(o==="top"){var C={x:s+u/2,y:c-p*i,textAnchor:"middle",verticalAnchor:b};return Ur(Ur({},C),n?{height:Math.max(c-n.y,0),width:u}:{})}if(o==="bottom"){var T={x:s+u/2,y:c+h+v,textAnchor:"middle",verticalAnchor:_};return Ur(Ur({},T),n?{height:Math.max(n.y+n.height-(c+h),0),width:u}:{})}if(o==="left"){var A={x:s-w,y:c+h/2,textAnchor:O,verticalAnchor:"middle"};return Ur(Ur({},A),n?{width:Math.max(A.x-n.x,0),height:h}:{})}if(o==="right"){var j={x:s+u+w,y:c+h/2,textAnchor:P,verticalAnchor:"middle"};return Ur(Ur({},j),n?{width:Math.max(n.x+n.width-j.x,0),height:h}:{})}var N=n?{width:u,height:h}:{};return o==="insideLeft"?Ur({x:s+w,y:c+h/2,textAnchor:P,verticalAnchor:"middle"},N):o==="insideRight"?Ur({x:s+u-w,y:c+h/2,textAnchor:O,verticalAnchor:"middle"},N):o==="insideTop"?Ur({x:s+u/2,y:c+v,textAnchor:"middle",verticalAnchor:_},N):o==="insideBottom"?Ur({x:s+u/2,y:c+h-v,textAnchor:"middle",verticalAnchor:b},N):o==="insideTopLeft"?Ur({x:s+w,y:c+v,textAnchor:P,verticalAnchor:_},N):o==="insideTopRight"?Ur({x:s+u-w,y:c+v,textAnchor:O,verticalAnchor:_},N):o==="insideBottomLeft"?Ur({x:s+w,y:c+h-v,textAnchor:P,verticalAnchor:b},N):o==="insideBottomRight"?Ur({x:s+u-w,y:c+h-v,textAnchor:O,verticalAnchor:b},N):Jf(o)&&(Ve(o.x)||uu(o.x))&&(Ve(o.y)||uu(o.y))?Ur({x:s+En(o.x,u),y:c+En(o.y,h),textAnchor:"end",verticalAnchor:"end"},N):Ur({x:s+u/2,y:c+h/2,textAnchor:"middle",verticalAnchor:"middle"},N)},Gye=function(t){return"cx"in t&&Ve(t.cx)};function Xr(e){var t=e.offset,r=t===void 0?5:t,n=Dye(e,kye),i=Ur({offset:r},n),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||dt(s)&&dt(c)&&!I.isValidElement(u)&&!ft(u))return null;if(I.isValidElement(u))return I.cloneElement(u,i);var b;if(ft(u)){if(b=I.createElement(u,i),I.isValidElement(b))return b}else b=zye(i);var _=Gye(o),x=it(i,!0);if(_&&(a==="insideStart"||a==="insideEnd"||a==="end"))return Wye(i,b,x);var w=_?qye(i):Hye(i);return Z.createElement(Cu,Tp({className:ze("recharts-label",p)},x,w,{breakAll:v}),b)}Xr.displayName="Label";var $U=function(t){var r=t.cx,n=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,_=t.left,x=t.width,w=t.height,O=t.clockWise,P=t.labelViewBox;if(P)return P;if(Ve(x)&&Ve(w)){if(Ve(p)&&Ve(v))return{x:p,y:v,width:x,height:w};if(Ve(b)&&Ve(_))return{x:b,y:_,width:x,height:w}}return Ve(p)&&Ve(v)?{x:p,y:v,width:0,height:0}:Ve(r)&&Ve(n)?{cx:r,cy:n,startAngle:o||i||0,endAngle:a||i||0,innerRadius:u||0,outerRadius:h||c||s||0,clockWise:O}:t.viewBox?t.viewBox:{}},Kye=function(t,r){return t?t===!0?Z.createElement(Xr,{key:"label-implicit",viewBox:r}):zr(t)?Z.createElement(Xr,{key:"label-implicit",viewBox:r,value:t}):I.isValidElement(t)?t.type===Xr?I.cloneElement(t,{key:"label-implicit",viewBox:r}):Z.createElement(Xr,{key:"label-implicit",content:t,viewBox:r}):ft(t)?Z.createElement(Xr,{key:"label-implicit",content:t,viewBox:r}):Jf(t)?Z.createElement(Xr,Tp({viewBox:r},t,{key:"label-implicit"})):null:null},Yye=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var i=t.children,o=$U(t),a=An(i,Xr).map(function(c,u){return I.cloneElement(c,{viewBox:r||o,key:"label-".concat(u)})});if(!n)return a;var s=Kye(t.label,r||o);return[s].concat(Rye(a))};Xr.parseViewBox=$U;Xr.renderCallByParent=Yye;var hO,CD;function Zye(){if(CD)return hO;CD=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return hO=e,hO}var Xye=Zye();const Qye=Nt(Xye);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)}var Jye=["valueAccessor"],e0e=["data","dataKey","clockWise","id","textBreakAll"];function t0e(e){return o0e(e)||i0e(e)||n0e(e)||r0e()}function r0e(){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 n0e(e,t){if(e){if(typeof e=="string")return ME(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ME(e,t)}}function i0e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function o0e(e){if(Array.isArray(e))return ME(e)}function ME(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function By(){return By=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},By.apply(this,arguments)}function TD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function jD(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?TD(Object(r),!0).forEach(function(n){a0e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):TD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function a0e(e,t,r){return t=s0e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s0e(e){var t=l0e(e,"string");return jp(t)=="symbol"?t:t+""}function l0e(e,t){if(jp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(jp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function AD(e,t){if(e==null)return{};var r=u0e(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function u0e(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var c0e=function(t){return Array.isArray(t.value)?Qye(t.value):t.value};function xo(e){var t=e.valueAccessor,r=t===void 0?c0e:t,n=AD(e,Jye),i=n.data,o=n.dataKey,a=n.clockWise,s=n.id,c=n.textBreakAll,u=AD(n,e0e);return!i||!i.length?null:Z.createElement(Et,{className:"recharts-label-list"},i.map(function(h,p){var v=dt(o)?r(h,p):nr(h&&h.payload,o),b=dt(s)?{}:{id:"".concat(s,"-").concat(p)};return Z.createElement(Xr,By({},it(h,!0),u,b,{parentViewBox:h.parentViewBox,value:v,textBreakAll:c,viewBox:Xr.parseViewBox(dt(a)?h:jD(jD({},h),{},{clockWise:a})),key:"label-".concat(p),index:p}))}))}xo.displayName="LabelList";function f0e(e,t){return e?e===!0?Z.createElement(xo,{key:"labelList-implicit",data:t}):Z.isValidElement(e)||ft(e)?Z.createElement(xo,{key:"labelList-implicit",data:t,content:e}):Jf(e)?Z.createElement(xo,By({data:t},e,{key:"labelList-implicit"})):null:null}function d0e(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=An(n,xo).map(function(a,s){return I.cloneElement(a,{data:t,key:"labelList-".concat(s)})});if(!r)return i;var o=f0e(e.label,t);return[o].concat(t0e(i))}xo.renderCallByParent=d0e;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 LE(){return LE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},LE.apply(this,arguments)}function kD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function RD(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kD(Object(r),!0).forEach(function(n){h0e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function h0e(e,t,r){return t=p0e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p0e(e){var t=m0e(e,"string");return Ap(t)=="symbol"?t:t+""}function m0e(e,t){if(Ap(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ap(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var v0e=function(t,r){var n=Pn(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},rg=function(t){var r=t.cx,n=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)/Fy,v=u?o:o+a*p,b=Qt(r,n,h,v),_=Qt(r,n,i,v),x=u?o-a*p:o,w=Qt(r,n,h*Math.cos(p*Fy),x);return{center:b,circleTangency:_,lineTangency:w,theta:p}},FU=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,o=t.outerRadius,a=t.startAngle,s=t.endAngle,c=v0e(a,s),u=a+c,h=Qt(r,n,o,a),p=Qt(r,n,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(r,n,i,a),_=Qt(r,n,i,u);v+="L ".concat(_.x,",").concat(_.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(r,",").concat(n," Z");return v},g0e=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,o=t.outerRadius,a=t.cornerRadius,s=t.forceCornerRadius,c=t.cornerIsExternal,u=t.startAngle,h=t.endAngle,p=Pn(h-u),v=rg({cx:r,cy:n,radius:o,angle:u,sign:p,cornerRadius:a,cornerIsExternal:c}),b=v.circleTangency,_=v.lineTangency,x=v.theta,w=rg({cx:r,cy:n,radius:o,angle:h,sign:-p,cornerRadius:a,cornerIsExternal:c}),O=w.circleTangency,P=w.lineTangency,C=w.theta,T=c?Math.abs(u-h):Math.abs(u-h)-x-C;if(T<0)return s?"M ".concat(_.x,",").concat(_.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
|
||
`):FU({cx:r,cy:n,innerRadius:i,outerRadius:o,startAngle:u,endAngle:h});var A="M ".concat(_.x,",").concat(_.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=rg({cx:r,cy:n,radius:i,angle:u,sign:p,isExternal:!0,cornerRadius:a,cornerIsExternal:c}),N=j.circleTangency,F=j.lineTangency,V=j.theta,B=rg({cx:r,cy:n,radius:i,angle:h,sign:-p,isExternal:!0,cornerRadius:a,cornerIsExternal:c}),W=B.circleTangency,q=B.lineTangency,J=B.theta,Q=c?Math.abs(u-h):Math.abs(u-h)-V-J;if(Q<0&&a===0)return"".concat(A,"L").concat(r,",").concat(n,"Z");A+="L".concat(q.x,",").concat(q.y,`
|
||
A`).concat(a,",").concat(a,",0,0,").concat(+(p<0),",").concat(W.x,",").concat(W.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(F.x,",").concat(F.y,"Z")}else A+="L".concat(r,",").concat(n,"Z");return A},y0e={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},BU=function(t){var r=RD(RD({},y0e),t),n=r.cx,i=r.cy,o=r.innerRadius,a=r.outerRadius,s=r.cornerRadius,c=r.forceCornerRadius,u=r.cornerIsExternal,h=r.startAngle,p=r.endAngle,v=r.className;if(a<o||h===p)return null;var b=ze("recharts-sector",v),_=a-o,x=En(s,_,0,!0),w;return x>0&&Math.abs(h-p)<360?w=g0e({cx:n,cy:i,innerRadius:o,outerRadius:a,cornerRadius:Math.min(x,_/2),forceCornerRadius:c,cornerIsExternal:u,startAngle:h,endAngle:p}):w=FU({cx:n,cy:i,innerRadius:o,outerRadius:a,startAngle:h,endAngle:p}),Z.createElement("path",LE({},it(r,!0),{className:b,d:w,role:"img"}))};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 IE(){return IE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},IE.apply(this,arguments)}function ND(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function MD(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ND(Object(r),!0).forEach(function(n){b0e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ND(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function b0e(e,t,r){return t=_0e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _0e(e){var t=x0e(e,"string");return kp(t)=="symbol"?t:t+""}function x0e(e,t){if(kp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(kp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var LD={curveBasisClosed:Uce,curveBasisOpen:zce,curveBasis:Bce,curveBumpX:Ece,curveBumpY:Cce,curveLinearClosed:Vce,curveLinear:eb,curveMonotoneX:Wce,curveMonotoneY:qce,curveNatural:Hce,curveStep:Gce,curveStepAfter:Yce,curveStepBefore:Kce},ng=function(t){return t.x===+t.x&&t.y===+t.y},mh=function(t){return t.x},vh=function(t){return t.y},w0e=function(t,r){if(ft(t))return t;var n="curve".concat(Q0(t));return(n==="curveMonotone"||n==="curveBump")&&r?LD["".concat(n).concat(r==="vertical"?"Y":"X")]:LD[n]||eb},O0e=function(t){var r=t.type,n=r===void 0?"linear":r,i=t.points,o=i===void 0?[]:i,a=t.baseLine,s=t.layout,c=t.connectNulls,u=c===void 0?!1:c,h=w0e(n,s),p=u?o.filter(function(x){return ng(x)}):o,v;if(Array.isArray(a)){var b=u?a.filter(function(x){return ng(x)}):a,_=p.map(function(x,w){return MD(MD({},x),{},{base:b[w]})});return s==="vertical"?v=Kv().y(vh).x1(mh).x0(function(x){return x.base.x}):v=Kv().x(mh).y1(vh).y0(function(x){return x.base.y}),v.defined(ng).curve(h),v(_)}return s==="vertical"&&Ve(a)?v=Kv().y(vh).x1(mh).x0(a):Ve(a)?v=Kv().x(mh).y1(vh).y0(a):v=$7().x(mh).y(vh),v.defined(ng).curve(h),v(p)},el=function(t){var r=t.className,n=t.points,i=t.path,o=t.pathRef;if((!n||!n.length)&&!i)return null;var a=n&&n.length?O0e(t):i;return Z.createElement("path",IE({},it(t,!1),py(t),{className:ze("recharts-curve",r),d:a,ref:o}))},S0e=Object.getOwnPropertyNames,P0e=Object.getOwnPropertySymbols,E0e=Object.prototype.hasOwnProperty;function ID(e,t){return function(n,i,o){return e(n,i,o)&&t(n,i,o)}}function ig(e){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,i);var o=i.cache,a=o.get(r),s=o.get(n);if(a&&s)return a===n&&s===r;o.set(r,n),o.set(n,r);var c=e(r,n,i);return o.delete(r),o.delete(n),c}}function DD(e){return S0e(e).concat(P0e(e))}var C0e=Object.hasOwn||function(e,t){return E0e.call(e,t)};function $u(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var T0e="__v",j0e="__o",A0e="_owner",$D=Object.getOwnPropertyDescriptor,FD=Object.keys;function k0e(e,t,r){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function R0e(e,t){return $u(e.getTime(),t.getTime())}function N0e(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function M0e(e,t){return e===t}function BD(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var i=new Array(n),o=e.entries(),a,s,c=0;(a=o.next())&&!a.done;){for(var u=t.entries(),h=!1,p=0;(s=u.next())&&!s.done;){if(i[p]){p++;continue}var v=a.value,b=s.value;if(r.equals(v[0],b[0],c,p,e,t,r)&&r.equals(v[1],b[1],v[0],b[0],e,t,r)){h=i[p]=!0;break}p++}if(!h)return!1;c++}return!0}var L0e=$u;function I0e(e,t,r){var n=FD(e),i=n.length;if(FD(t).length!==i)return!1;for(;i-- >0;)if(!UU(e,t,r,n[i]))return!1;return!0}function gh(e,t,r){var n=DD(e),i=n.length;if(DD(t).length!==i)return!1;for(var o,a,s;i-- >0;)if(o=n[i],!UU(e,t,r,o)||(a=$D(e,o),s=$D(t,o),(a||s)&&(!a||!s||a.configurable!==s.configurable||a.enumerable!==s.enumerable||a.writable!==s.writable)))return!1;return!0}function D0e(e,t){return $u(e.valueOf(),t.valueOf())}function $0e(e,t){return e.source===t.source&&e.flags===t.flags}function UD(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var i=new Array(n),o=e.values(),a,s;(a=o.next())&&!a.done;){for(var c=t.values(),u=!1,h=0;(s=c.next())&&!s.done;){if(!i[h]&&r.equals(a.value,s.value,a.value,s.value,e,t,r)){u=i[h]=!0;break}h++}if(!u)return!1}return!0}function F0e(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function B0e(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function UU(e,t,r,n){return(n===A0e||n===j0e||n===T0e)&&(e.$$typeof||t.$$typeof)?!0:C0e(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}var U0e="[object Arguments]",z0e="[object Boolean]",V0e="[object Date]",W0e="[object Error]",q0e="[object Map]",H0e="[object Number]",G0e="[object Object]",K0e="[object RegExp]",Y0e="[object Set]",Z0e="[object String]",X0e="[object URL]",Q0e=Array.isArray,zD=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,VD=Object.assign,J0e=Object.prototype.toString.call.bind(Object.prototype.toString);function ebe(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areErrorsEqual,i=e.areFunctionsEqual,o=e.areMapsEqual,a=e.areNumbersEqual,s=e.areObjectsEqual,c=e.arePrimitiveWrappersEqual,u=e.areRegExpsEqual,h=e.areSetsEqual,p=e.areTypedArraysEqual,v=e.areUrlsEqual;return function(_,x,w){if(_===x)return!0;if(_==null||x==null)return!1;var O=typeof _;if(O!==typeof x)return!1;if(O!=="object")return O==="number"?a(_,x,w):O==="function"?i(_,x,w):!1;var P=_.constructor;if(P!==x.constructor)return!1;if(P===Object)return s(_,x,w);if(Q0e(_))return t(_,x,w);if(zD!=null&&zD(_))return p(_,x,w);if(P===Date)return r(_,x,w);if(P===RegExp)return u(_,x,w);if(P===Map)return o(_,x,w);if(P===Set)return h(_,x,w);var C=J0e(_);return C===V0e?r(_,x,w):C===K0e?u(_,x,w):C===q0e?o(_,x,w):C===Y0e?h(_,x,w):C===G0e?typeof _.then!="function"&&typeof x.then!="function"&&s(_,x,w):C===X0e?v(_,x,w):C===W0e?n(_,x,w):C===U0e?s(_,x,w):C===z0e||C===H0e||C===Z0e?c(_,x,w):!1}}function tbe(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,i={areArraysEqual:n?gh:k0e,areDatesEqual:R0e,areErrorsEqual:N0e,areFunctionsEqual:M0e,areMapsEqual:n?ID(BD,gh):BD,areNumbersEqual:L0e,areObjectsEqual:n?gh:I0e,arePrimitiveWrappersEqual:D0e,areRegExpsEqual:$0e,areSetsEqual:n?ID(UD,gh):UD,areTypedArraysEqual:n?gh:F0e,areUrlsEqual:B0e};if(r&&(i=VD({},i,r(i))),t){var o=ig(i.areArraysEqual),a=ig(i.areMapsEqual),s=ig(i.areObjectsEqual),c=ig(i.areSetsEqual);i=VD({},i,{areArraysEqual:o,areMapsEqual:a,areObjectsEqual:s,areSetsEqual:c})}return i}function rbe(e){return function(t,r,n,i,o,a,s){return e(t,r,s)}}function nbe(e){var t=e.circular,r=e.comparator,n=e.createState,i=e.equals,o=e.strict;if(n)return function(c,u){var h=n(),p=h.cache,v=p===void 0?t?new WeakMap:void 0:p,b=h.meta;return r(c,u,{cache:v,equals:i,meta:b,strict:o})};if(t)return function(c,u){return r(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 r(c,u,a)}}var ibe=bl();bl({strict:!0});bl({circular:!0});bl({circular:!0,strict:!0});bl({createInternalComparator:function(){return $u}});bl({strict:!0,createInternalComparator:function(){return $u}});bl({circular:!0,createInternalComparator:function(){return $u}});bl({circular:!0,createInternalComparator:function(){return $u},strict:!0});function bl(e){e===void 0&&(e={});var t=e.circular,r=t===void 0?!1:t,n=e.createInternalComparator,i=e.createState,o=e.strict,a=o===void 0?!1:o,s=tbe(e),c=ebe(s),u=n?n(c):rbe(c);return nbe({circular:r,comparator:c,createState:i,equals:u,strict:a})}function obe(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function WD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(o){r<0&&(r=o),o-r>t?(e(o),r=-1):obe(i)};requestAnimationFrame(n)}function DE(e){"@babel/helpers - typeof";return DE=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},DE(e)}function abe(e){return cbe(e)||ube(e)||lbe(e)||sbe()}function sbe(){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 lbe(e,t){if(e){if(typeof e=="string")return qD(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return qD(e,t)}}function qD(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ube(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function cbe(e){if(Array.isArray(e))return e}function fbe(){var e={},t=function(){return null},r=!1,n=function i(o){if(!r){if(Array.isArray(o)){if(!o.length)return;var a=o,s=abe(a),c=s[0],u=s.slice(1);if(typeof c=="number"){WD(i.bind(null,u),c);return}i(c),WD(i.bind(null,u));return}DE(o)==="object"&&(e=o,t(e)),typeof o=="function"&&o()}};return{stop:function(){r=!0},start:function(o){r=!1,n(o)},subscribe:function(o){return t=o,function(){t=function(){return null}}}}}function 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 HD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function GD(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?HD(Object(r),!0).forEach(function(n){zU(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):HD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zU(e,t,r){return t=dbe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dbe(e){var t=hbe(e,"string");return Rp(t)==="symbol"?t:String(t)}function hbe(e,t){if(Rp(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Rp(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var pbe=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(o){return i.includes(o)})})},mbe=function(t){return t},vbe=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},Bh=function(t,r){return Object.keys(r).reduce(function(n,i){return GD(GD({},n),{},zU({},i,t(i,r[i])))},{})},KD=function(t,r,n){return t.map(function(i){return"".concat(vbe(i)," ").concat(r,"ms ").concat(n)}).join(",")};function gbe(e,t){return _be(e)||bbe(e,t)||VU(e,t)||ybe()}function ybe(){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 bbe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],c=!0,u=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(h){u=!0,i=h}finally{try{if(!c&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function _be(e){if(Array.isArray(e))return e}function xbe(e){return Sbe(e)||Obe(e)||VU(e)||wbe()}function wbe(){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 VU(e,t){if(e){if(typeof e=="string")return $E(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return $E(e,t)}}function Obe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Sbe(e){if(Array.isArray(e))return $E(e)}function $E(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Uy=1e-4,WU=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},qU=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},YD=function(t,r){return function(n){var i=WU(t,r);return qU(i,n)}},Pbe=function(t,r){return function(n){var i=WU(t,r),o=[].concat(xbe(i.map(function(a,s){return a*s}).slice(1)),[0]);return qU(o,n)}},ZD=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0],o=r[1],a=r[2],s=r[3];if(r.length===1)switch(r[0]){case"linear":i=0,o=0,a=1,s=1;break;case"ease":i=.25,o=.1,a=.25,s=1;break;case"ease-in":i=.42,o=0,a=1,s=1;break;case"ease-out":i=.42,o=0,a=.58,s=1;break;case"ease-in-out":i=0,o=0,a=.58,s=1;break;default:{var c=r[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=gbe(u,4);i=h[0],o=h[1],a=h[2],s=h[3]}}}var p=YD(i,a),v=YD(o,s),b=Pbe(i,a),_=function(O){return O>1?1:O<0?0:O},x=function(O){for(var P=O>1?1:O,C=P,T=0;T<8;++T){var A=p(C)-P,j=b(C);if(Math.abs(A-P)<Uy||j<Uy)return v(C);C=_(C-A/j)}return v(C)};return x.isStepper=!1,x},Ebe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,o=i===void 0?8:i,a=t.dt,s=a===void 0?17:a,c=function(h,p,v){var b=-(h-p)*n,_=v*o,x=v+(b-_)*s/1e3,w=v*s/1e3+h;return Math.abs(w-p)<Uy&&Math.abs(x)<Uy?[p,0]:[w,x]};return c.isStepper=!0,c.dt=s,c},Cbe=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return ZD(i);case"spring":return Ebe();default:if(i.split("(")[0]==="cubic-bezier")return ZD(i)}return typeof i=="function"?i:null};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 XD(e){return Abe(e)||jbe(e)||HU(e)||Tbe()}function Tbe(){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 jbe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Abe(e){if(Array.isArray(e))return BE(e)}function QD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function on(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?QD(Object(r),!0).forEach(function(n){FE(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):QD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function FE(e,t,r){return t=kbe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kbe(e){var t=Rbe(e,"string");return Np(t)==="symbol"?t:String(t)}function Rbe(e,t){if(Np(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Np(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Nbe(e,t){return Ibe(e)||Lbe(e,t)||HU(e,t)||Mbe()}function Mbe(){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 HU(e,t){if(e){if(typeof e=="string")return BE(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return BE(e,t)}}function BE(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Lbe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],c=!0,u=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(h){u=!0,i=h}finally{try{if(!c&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function Ibe(e){if(Array.isArray(e))return e}var zy=function(t,r,n){return t+(r-t)*n},UE=function(t){var r=t.from,n=t.to;return r!==n},Dbe=function e(t,r,n){var i=Bh(function(o,a){if(UE(a)){var s=t(a.from,a.to,a.velocity),c=Nbe(s,2),u=c[0],h=c[1];return on(on({},a),{},{from:u,velocity:h})}return a},r);return n<1?Bh(function(o,a){return UE(a)?on(on({},a),{},{velocity:zy(a.velocity,i[o].velocity,n),from:zy(a.from,i[o].from,n)}):a},r):e(t,i,n-1)};const $be=function(e,t,r,n,i){var o=pbe(e,t),a=o.reduce(function(w,O){return on(on({},w),{},FE({},O,[e[O],t[O]]))},{}),s=o.reduce(function(w,O){return on(on({},w),{},FE({},O,{from:e[O],velocity:0,to:t[O]}))},{}),c=-1,u,h,p=function(){return null},v=function(){return Bh(function(O,P){return P.from},s)},b=function(){return!Object.values(s).filter(UE).length},_=function(O){u||(u=O);var P=O-u,C=P/r.dt;s=Dbe(r,s,C),i(on(on(on({},e),t),v())),u=O,b()||(c=requestAnimationFrame(p))},x=function(O){h||(h=O);var P=(O-h)/n,C=Bh(function(A,j){return zy.apply(void 0,XD(j).concat([r(P)]))},a);if(i(on(on(on({},e),t),C)),P<1)c=requestAnimationFrame(p);else{var T=Bh(function(A,j){return zy.apply(void 0,XD(j).concat([r(1)]))},a);i(on(on(on({},e),t),T))}};return p=r.isStepper?_:x,function(){return requestAnimationFrame(p),function(){cancelAnimationFrame(c)}}};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)}var Fbe=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function Bbe(e,t){if(e==null)return{};var r=Ube(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Ube(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function pO(e){return qbe(e)||Wbe(e)||Vbe(e)||zbe()}function zbe(){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 Vbe(e,t){if(e){if(typeof e=="string")return zE(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zE(e,t)}}function Wbe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function qbe(e){if(Array.isArray(e))return zE(e)}function zE(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function JD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ho(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?JD(Object(r),!0).forEach(function(n){Ch(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):JD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ch(e,t,r){return t=GU(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hbe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gbe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,GU(n.key),n)}}function Kbe(e,t,r){return t&&Gbe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function GU(e){var t=Ybe(e,"string");return Ef(t)==="symbol"?t:String(t)}function Ybe(e,t){if(Ef(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ef(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Zbe(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(n,i){return n.__proto__=i,n},VE(e,t)}function Xbe(e){var t=Qbe();return function(){var n=Vy(e),i;if(t){var o=Vy(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return WE(this,i)}}function WE(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 qE(e)}function qE(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qbe(){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 Vy(e){return Vy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Vy(e)}var Xi=function(e){Zbe(r,e);var t=Xbe(r);function r(n,i){var o;Hbe(this,r),o=t.call(this,n,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(qE(o)),o.changeStyle=o.changeStyle.bind(qE(o)),!s||b<=0)return o.state={style:{}},typeof v=="function"&&(o.state={style:h}),WE(o);if(p&&p.length)o.state={style:p[0].style};else if(u){if(typeof v=="function")return o.state={style:u},WE(o);o.state={style:c?Ch({},c,u):u}}else o.state={style:{}};return o}return Kbe(r,[{key:"componentDidMount",value:function(){var i=this.props,o=i.isActive,a=i.canBegin;this.mounted=!0,!(!o||!a)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var o=this.props,a=o.isActive,s=o.canBegin,c=o.attributeName,u=o.shouldReAnimate,h=o.to,p=o.from,v=this.state.style;if(s){if(!a){var b={style:c?Ch({},c,h):h};this.state&&v&&(c&&v[c]!==h||!c&&v!==h)&&this.setState(b);return}if(!(ibe(i.to,h)&&i.canBegin&&i.isActive)){var _=!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?Ch({},c,x):x};(c&&v[c]!==x||!c&&v!==x)&&this.setState(w)}this.runAnimation(ho(ho({},this.props),{},{from:x,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var o=this,a=i.from,s=i.to,c=i.duration,u=i.easing,h=i.begin,p=i.onAnimationEnd,v=i.onAnimationStart,b=$be(a,s,Cbe(u),c,this.changeStyle),_=function(){o.stopJSAnimation=b()};this.manager.start([v,h,_,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(x,w,O){if(O===0)return x;var P=w.duration,C=w.easing,T=C===void 0?"ease":C,A=w.style,j=w.properties,N=w.onAnimationEnd,F=O>0?a[O-1]:w,V=j||Object.keys(A);if(typeof T=="function"||T==="spring")return[].concat(pO(x),[o.runJSAnimation.bind(o,{from:F.style,to:A,duration:P,easing:T}),P]);var B=KD(V,P,T),W=ho(ho(ho({},F.style),A),{},{transition:B});return[].concat(pO(x),[W,P,N]).filter(mbe)};return this.manager.start([c].concat(pO(a.reduce(b,[h,Math.max(v,s)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=fbe());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,_=this.manager;if(this.unSubscribe=_.subscribe(this.handleStyleChange),typeof u=="function"||typeof b=="function"||u==="spring"){this.runJSAnimation(i);return}if(v.length>1){this.runStepAnimation(i);return}var x=s?Ch({},s,c):c,w=KD(Object.keys(x),a,u);_.start([h,o,ho(ho({},x),{},{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=Bbe(i,Fbe),u=I.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 _=b.props,x=_.style,w=x===void 0?{}:x,O=_.className,P=I.cloneElement(b,ho(ho({},c),{},{style:ho(ho({},w),h),className:O}));return P};return u===1?p(I.Children.only(o)):Z.createElement("div",null,I.Children.map(o,function(v){return p(v)}))}}]),r}(I.PureComponent);Xi.displayName="Animate";Xi.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Xi.propTypes={from:H.oneOfType([H.object,H.string]),to:H.oneOfType([H.object,H.string]),attributeName:H.string,duration:H.number,begin:H.number,easing:H.oneOfType([H.string,H.func]),steps:H.arrayOf(H.shape({duration:H.number.isRequired,style:H.object.isRequired,easing:H.oneOfType([H.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),H.func]),properties:H.arrayOf("string"),onAnimationEnd:H.func})),children:H.oneOfType([H.node,H.func]),isActive:H.bool,canBegin:H.bool,onAnimationEnd:H.func,shouldReAnimate:H.bool,onAnimationStart:H.func,onAnimationReStart:H.func};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 Wy(){return Wy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Wy.apply(this,arguments)}function Jbe(e,t){return n_e(e)||r_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 e6(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return e6(e,t)}}function e6(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function r_e(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],c=!0,u=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(h){u=!0,i=h}finally{try{if(!c&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function n_e(e){if(Array.isArray(e))return e}function t6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function r6(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?t6(Object(r),!0).forEach(function(n){i_e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):t6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function i_e(e,t,r){return t=o_e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o_e(e){var t=a_e(e,"string");return Mp(t)=="symbol"?t:t+""}function a_e(e,t){if(Mp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Mp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var n6=function(t,r,n,i,o){var a=Math.min(Math.abs(n)/2,Math.abs(i)/2),s=i>=0?1:-1,c=n>=0?1:-1,u=i>=0&&n>=0||i<0&&n<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(r+s*p[0]),p[0]>0&&(h+="A ".concat(p[0],",").concat(p[0],",0,0,").concat(u,",").concat(t+c*p[0],",").concat(r)),h+="L ".concat(t+n-c*p[1],",").concat(r),p[1]>0&&(h+="A ".concat(p[1],",").concat(p[1],",0,0,").concat(u,`,
|
||
`).concat(t+n,",").concat(r+s*p[1])),h+="L ".concat(t+n,",").concat(r+i-s*p[2]),p[2]>0&&(h+="A ".concat(p[2],",").concat(p[2],",0,0,").concat(u,`,
|
||
`).concat(t+n-c*p[2],",").concat(r+i)),h+="L ".concat(t+c*p[3],",").concat(r+i),p[3]>0&&(h+="A ".concat(p[3],",").concat(p[3],",0,0,").concat(u,`,
|
||
`).concat(t,",").concat(r+i-s*p[3])),h+="Z"}else if(a>0&&o===+o&&o>0){var _=Math.min(a,o);h="M ".concat(t,",").concat(r+s*_,`
|
||
A `).concat(_,",").concat(_,",0,0,").concat(u,",").concat(t+c*_,",").concat(r,`
|
||
L `).concat(t+n-c*_,",").concat(r,`
|
||
A `).concat(_,",").concat(_,",0,0,").concat(u,",").concat(t+n,",").concat(r+s*_,`
|
||
L `).concat(t+n,",").concat(r+i-s*_,`
|
||
A `).concat(_,",").concat(_,",0,0,").concat(u,",").concat(t+n-c*_,",").concat(r+i,`
|
||
L `).concat(t+c*_,",").concat(r+i,`
|
||
A `).concat(_,",").concat(_,",0,0,").concat(u,",").concat(t,",").concat(r+i-s*_," Z")}else h="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return h},s_e=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,o=r.x,a=r.y,s=r.width,c=r.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 n>=u&&n<=h&&i>=p&&i<=v}return!1},l_e={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Lj=function(t){var r=r6(r6({},l_e),t),n=I.useRef(),i=I.useState(-1),o=Jbe(i,2),a=o[0],s=o[1];I.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var T=n.current.getTotalLength();T&&s(T)}catch{}},[]);var c=r.x,u=r.y,h=r.width,p=r.height,v=r.radius,b=r.className,_=r.animationEasing,x=r.animationDuration,w=r.animationBegin,O=r.isAnimationActive,P=r.isUpdateAnimationActive;if(c!==+c||u!==+u||h!==+h||p!==+p||h===0||p===0)return null;var C=ze("recharts-rectangle",b);return P?Z.createElement(Xi,{canBegin:a>0,from:{width:h,height:p,x:c,y:u},to:{width:h,height:p,x:c,y:u},duration:x,animationEasing:_,isActive:P},function(T){var A=T.width,j=T.height,N=T.x,F=T.y;return Z.createElement(Xi,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:w,duration:x,isActive:O,easing:_},Z.createElement("path",Wy({},it(r,!0),{className:C,d:n6(N,F,A,j,v),ref:n})))}):Z.createElement("path",Wy({},it(r,!0),{className:C,d:n6(c,u,h,p,v)}))},u_e=["points","className","baseLinePoints","connectNulls"];function Yc(){return Yc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Yc.apply(this,arguments)}function c_e(e,t){if(e==null)return{};var r=f_e(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function f_e(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function i6(e){return m_e(e)||p_e(e)||h_e(e)||d_e()}function d_e(){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 h_e(e,t){if(e){if(typeof e=="string")return HE(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return HE(e,t)}}function p_e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function m_e(e){if(Array.isArray(e))return HE(e)}function HE(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var o6=function(t){return t&&t.x===+t.x&&t.y===+t.y},v_e=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(n){o6(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),o6(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},Uh=function(t,r){var n=v_e(t);r&&(n=[n.reduce(function(o,a){return[].concat(i6(o),i6(a))},[])]);var i=n.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 n.length===1?"".concat(i,"Z"):i},g_e=function(t,r,n){var i=Uh(t,n);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(Uh(r.reverse(),n).slice(1))},y_e=function(t){var r=t.points,n=t.className,i=t.baseLinePoints,o=t.connectNulls,a=c_e(t,u_e);if(!r||!r.length)return null;var s=ze("recharts-polygon",n);if(i&&i.length){var c=a.stroke&&a.stroke!=="none",u=g_e(r,i,o);return Z.createElement("g",{className:s},Z.createElement("path",Yc({},it(a,!0),{fill:u.slice(-1)==="Z"?a.fill:"none",stroke:"none",d:u})),c?Z.createElement("path",Yc({},it(a,!0),{fill:"none",d:Uh(r,o)})):null,c?Z.createElement("path",Yc({},it(a,!0),{fill:"none",d:Uh(i,o)})):null)}var h=Uh(r,o);return Z.createElement("path",Yc({},it(a,!0),{fill:h.slice(-1)==="Z"?a.fill:"none",className:s,d:h}))};function GE(){return GE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},GE.apply(this,arguments)}var mm=function(t){var r=t.cx,n=t.cy,i=t.r,o=t.className,a=ze("recharts-dot",o);return r===+r&&n===+n&&i===+i?Z.createElement("circle",GE({},it(t,!1),py(t),{className:a,cx:r,cy:n,r:i})):null};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)}var b_e=["x","y","top","left","width","height","className"];function KE(){return KE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},KE.apply(this,arguments)}function a6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function __e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?a6(Object(r),!0).forEach(function(n){x_e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function x_e(e,t,r){return t=w_e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function w_e(e){var t=O_e(e,"string");return Lp(t)=="symbol"?t:t+""}function O_e(e,t){if(Lp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Lp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function S_e(e,t){if(e==null)return{};var r=P_e(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function P_e(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var E_e=function(t,r,n,i,o,a){return"M".concat(t,",").concat(o,"v").concat(i,"M").concat(a,",").concat(r,"h").concat(n)},C_e=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,o=i===void 0?0:i,a=t.top,s=a===void 0?0:a,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,_=t.className,x=S_e(t,b_e),w=__e({x:n,y:o,top:s,left:u,width:p,height:b},x);return!Ve(n)||!Ve(o)||!Ve(p)||!Ve(b)||!Ve(s)||!Ve(u)?null:Z.createElement("path",KE({},it(w,!0),{className:ze("recharts-cross",_),d:E_e(n,o,p,b,s,u)}))},mO,s6;function T_e(){if(s6)return mO;s6=1;var e=db(),t=lU(),r=ca();function n(i,o){return i&&i.length?e(i,r(o,2),t):void 0}return mO=n,mO}var j_e=T_e();const A_e=Nt(j_e);var vO,l6;function k_e(){if(l6)return vO;l6=1;var e=db(),t=ca(),r=uU();function n(i,o){return i&&i.length?e(i,t(o,2),r):void 0}return vO=n,vO}var R_e=k_e();const N_e=Nt(R_e);var M_e=["cx","cy","angle","ticks","axisLine"],L_e=["ticks","tick","angle","tickFormatter","stroke"];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)}function zh(){return zh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zh.apply(this,arguments)}function u6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Yl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?u6(Object(r),!0).forEach(function(n){vb(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function c6(e,t){if(e==null)return{};var r=I_e(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function I_e(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function D_e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f6(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,YU(n.key),n)}}function $_e(e,t,r){return t&&f6(e.prototype,t),r&&f6(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function F_e(e,t,r){return t=qy(t),B_e(e,KU()?Reflect.construct(t,r||[],qy(e).constructor):t.apply(e,r))}function B_e(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 U_e(e)}function U_e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function KU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(KU=function(){return!!e})()}function qy(e){return qy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},qy(e)}function z_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&&YE(e,t)}function YE(e,t){return YE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},YE(e,t)}function vb(e,t,r){return t=YU(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function YU(e){var t=V_e(e,"string");return Cf(t)=="symbol"?t:t+""}function V_e(e,t){if(Cf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Cf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var gb=function(e){function t(){return D_e(this,t),F_e(this,t,arguments)}return z_e(t,e),$_e(t,[{key:"getTickValueCoord",value:function(n){var i=n.coordinate,o=this.props,a=o.angle,s=o.cx,c=o.cy;return Qt(s,c,i,a)}},{key:"getTickTextAnchor",value:function(){var n=this.props.orientation,i;switch(n){case"left":i="end";break;case"right":i="start";break;default:i="middle";break}return i}},{key:"getViewBox",value:function(){var n=this.props,i=n.cx,o=n.cy,a=n.angle,s=n.ticks,c=A_e(s,function(h){return h.coordinate||0}),u=N_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 n=this.props,i=n.cx,o=n.cy,a=n.angle,s=n.ticks,c=n.axisLine,u=c6(n,M_e),h=s.reduce(function(_,x){return[Math.min(_[0],x.coordinate),Math.max(_[1],x.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",zh({className:"recharts-polar-radius-axis-line"},b))}},{key:"renderTicks",value:function(){var n=this,i=this.props,o=i.ticks,a=i.tick,s=i.angle,c=i.tickFormatter,u=i.stroke,h=c6(i,L_e),p=this.getTickTextAnchor(),v=it(h,!1),b=it(a,!1),_=o.map(function(x,w){var O=n.getTickValueCoord(x),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:x});return Z.createElement(Et,zh({className:ze("recharts-polar-radius-axis-tick",DU(a)),key:"tick-".concat(x.coordinate)},sl(n.props,x,w)),t.renderTickItem(a,P,c?c(x.value,w):x.value))});return Z.createElement(Et,{className:"recharts-polar-radius-axis-ticks"},_)}},{key:"render",value:function(){var n=this.props,i=n.ticks,o=n.axisLine,a=n.tick;return!i||!i.length?null:Z.createElement(Et,{className:ze("recharts-polar-radius-axis",this.props.className)},o&&this.renderAxisLine(),a&&this.renderTicks(),Xr.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(n,i,o){var a;return Z.isValidElement(n)?a=Z.cloneElement(n,i):ft(n)?a=n(i):a=Z.createElement(Cu,zh({},i,{className:"recharts-polar-radius-axis-tick-value"}),o),a}}])}(I.PureComponent);vb(gb,"displayName","PolarRadiusAxis");vb(gb,"axisType","radiusAxis");vb(gb,"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 r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ou.apply(this,arguments)}function d6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Zl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?d6(Object(r),!0).forEach(function(n){yb(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function W_e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h6(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,XU(n.key),n)}}function q_e(e,t,r){return t&&h6(e.prototype,t),r&&h6(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function H_e(e,t,r){return t=Hy(t),G_e(e,ZU()?Reflect.construct(t,r||[],Hy(e).constructor):t.apply(e,r))}function G_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 K_e(e)}function K_e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ZU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ZU=function(){return!!e})()}function Hy(e){return Hy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Hy(e)}function Y_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&&ZE(e,t)}function ZE(e,t){return ZE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ZE(e,t)}function yb(e,t,r){return t=XU(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XU(e){var t=Z_e(e,"string");return Tf(t)=="symbol"?t:t+""}function Z_e(e,t){if(Tf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Tf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var X_e=Math.PI/180,p6=1e-5,bb=function(e){function t(){return W_e(this,t),H_e(this,t,arguments)}return Y_e(t,e),q_e(t,[{key:"getTickLineCoord",value:function(n){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,n.coordinate),v=Qt(o,a,s+(c==="inner"?-1:1)*h,n.coordinate);return{x1:p.x,y1:p.y,x2:v.x,y2:v.y}}},{key:"getTickTextAnchor",value:function(n){var i=this.props.orientation,o=Math.cos(-n.coordinate*X_e),a;return o>p6?a=i==="outer"?"start":"end":o<-p6?a=i==="outer"?"end":"start":a="middle",a}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,o=n.cy,a=n.radius,s=n.axisLine,c=n.axisLineType,u=Zl(Zl({},it(this.props,!1)),{},{fill:"none"},it(s,!1));if(c==="circle")return Z.createElement(mm,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(y_e,ou({className:"recharts-polar-angle-axis-line"},u,{points:p}))}},{key:"renderTicks",value:function(){var n=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=n.getTickLineCoord(_),O=n.getTickTextAnchor(_),P=Zl(Zl(Zl({textAnchor:O},h),{},{stroke:"none",fill:u},p),{},{index:x,payload:_,x:w.x2,y:w.y2});return Z.createElement(Et,ou({className:ze("recharts-polar-angle-axis-tick",DU(a)),key:"tick-".concat(_.coordinate)},sl(n.props,_,x)),s&&Z.createElement("line",ou({className:"recharts-polar-angle-axis-tick-line"},v,w)),a&&t.renderTickItem(a,P,c?c(_.value,x):_.value))});return Z.createElement(Et,{className:"recharts-polar-angle-axis-ticks"},b)}},{key:"render",value:function(){var n=this.props,i=n.ticks,o=n.radius,a=n.axisLine;return o<=0||!i||!i.length?null:Z.createElement(Et,{className:ze("recharts-polar-angle-axis",this.props.className)},a&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,i,o){var a;return Z.isValidElement(n)?a=Z.cloneElement(n,i):ft(n)?a=n(i):a=Z.createElement(Cu,ou({},i,{className:"recharts-polar-angle-axis-tick-value"}),o),a}}])}(I.PureComponent);yb(bb,"displayName","PolarAngleAxis");yb(bb,"axisType","angleAxis");yb(bb,"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 gO,m6;function Q_e(){if(m6)return gO;m6=1;var e=sB(),t=e(Object.getPrototypeOf,Object);return gO=t,gO}var yO,v6;function J_e(){if(v6)return yO;v6=1;var e=ts(),t=Q_e(),r=rs(),n="[object Object]",i=Function.prototype,o=Object.prototype,a=i.toString,s=o.hasOwnProperty,c=a.call(Object);function u(h){if(!r(h)||e(h)!=n)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 yO=u,yO}var e1e=J_e();const t1e=Nt(e1e);var bO,g6;function r1e(){if(g6)return bO;g6=1;var e=ts(),t=rs(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return bO=n,bO}var n1e=r1e();const i1e=Nt(n1e);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 Gy(){return Gy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gy.apply(this,arguments)}function o1e(e,t){return u1e(e)||l1e(e,t)||s1e(e,t)||a1e()}function a1e(){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 s1e(e,t){if(e){if(typeof e=="string")return y6(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return y6(e,t)}}function y6(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function l1e(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],c=!0,u=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(h){u=!0,i=h}finally{try{if(!c&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function u1e(e){if(Array.isArray(e))return e}function b6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _6(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?b6(Object(r),!0).forEach(function(n){c1e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function c1e(e,t,r){return t=f1e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f1e(e){var t=d1e(e,"string");return Ip(t)=="symbol"?t:t+""}function d1e(e,t){if(Ip(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ip(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var x6=function(t,r,n,i,o){var a=n-i,s;return s="M ".concat(t,",").concat(r),s+="L ".concat(t+n,",").concat(r),s+="L ".concat(t+n-a/2,",").concat(r+o),s+="L ".concat(t+n-a/2-i,",").concat(r+o),s+="L ".concat(t,",").concat(r," Z"),s},h1e={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},p1e=function(t){var r=_6(_6({},h1e),t),n=I.useRef(),i=I.useState(-1),o=o1e(i,2),a=o[0],s=o[1];I.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var C=n.current.getTotalLength();C&&s(C)}catch{}},[]);var c=r.x,u=r.y,h=r.upperWidth,p=r.lowerWidth,v=r.height,b=r.className,_=r.animationEasing,x=r.animationDuration,w=r.animationBegin,O=r.isUpdateAnimationActive;if(c!==+c||u!==+u||h!==+h||p!==+p||v!==+v||h===0&&p===0||v===0)return null;var P=ze("recharts-trapezoid",b);return O?Z.createElement(Xi,{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:x,animationEasing:_,isActive:O},function(C){var T=C.upperWidth,A=C.lowerWidth,j=C.height,N=C.x,F=C.y;return Z.createElement(Xi,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:w,duration:x,easing:_},Z.createElement("path",Gy({},it(r,!0),{className:P,d:x6(N,F,T,A,j),ref:n})))}):Z.createElement("g",null,Z.createElement("path",Gy({},it(r,!0),{className:P,d:x6(c,u,h,p,v)})))},m1e=["option","shapeType","propTransformer","activeClassName","isActive"];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 v1e(e,t){if(e==null)return{};var r=g1e(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function g1e(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function w6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ky(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?w6(Object(r),!0).forEach(function(n){y1e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function y1e(e,t,r){return t=b1e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b1e(e){var t=_1e(e,"string");return Dp(t)=="symbol"?t:t+""}function _1e(e,t){if(Dp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Dp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function x1e(e,t){return Ky(Ky({},t),e)}function w1e(e,t){return e==="symbols"}function O6(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return Z.createElement(Lj,r);case"trapezoid":return Z.createElement(p1e,r);case"sector":return Z.createElement(BU,r);case"symbols":if(w1e(t))return Z.createElement(rb,r);break;default:return null}}function O1e(e){return I.isValidElement(e)?e.props:e}function Yy(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?x1e:n,o=e.activeClassName,a=o===void 0?"recharts-active-shape":o,s=e.isActive,c=v1e(e,m1e),u;if(I.isValidElement(t))u=I.cloneElement(t,Ky(Ky({},c),O1e(t)));else if(ft(t))u=t(c);else if(t1e(t)&&!i1e(t)){var h=i(t,c);u=Z.createElement(O6,{shapeType:r,elementProps:h})}else{var p=c;u=Z.createElement(O6,{shapeType:r,elementProps:p})}return s?Z.createElement(Et,{className:a},u):u}function _b(e,t){return t!=null&&"trapezoids"in e.props}function xb(e,t){return t!=null&&"sectors"in e.props}function $p(e,t){return t!=null&&"points"in e.props}function S1e(e,t){var r,n,i=e.x===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.x)||e.x===t.x,o=e.y===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.y)||e.y===t.y;return i&&o}function P1e(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function E1e(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function C1e(e,t){var r;return _b(e,t)?r=S1e:xb(e,t)?r=P1e:$p(e,t)&&(r=E1e),r}function T1e(e,t){var r;return _b(e,t)?r="trapezoids":xb(e,t)?r="sectors":$p(e,t)&&(r="points"),r}function j1e(e,t){if(_b(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}if(xb(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}return $p(e,t)?t.payload:{}}function A1e(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=T1e(r,t),o=j1e(r,t),a=n.filter(function(c,u){var h=ll(o,c),p=r.props[i].filter(function(_){var x=C1e(r,t);return x(_,t)}),v=r.props[i].indexOf(p[p.length-1]),b=u===v;return h&&b}),s=n.indexOf(a[a.length-1]);return s}var Pg;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 Zc(){return Zc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zc.apply(this,arguments)}function S6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Zt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?S6(Object(r),!0).forEach(function(n){Vi(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):S6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function k1e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function P6(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,JU(n.key),n)}}function R1e(e,t,r){return t&&P6(e.prototype,t),r&&P6(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function N1e(e,t,r){return t=Zy(t),M1e(e,QU()?Reflect.construct(t,r||[],Zy(e).constructor):t.apply(e,r))}function M1e(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 L1e(e)}function L1e(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 Zy(e){return Zy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Zy(e)}function I1e(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&&XE(e,t)}function XE(e,t){return XE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},XE(e,t)}function Vi(e,t,r){return t=JU(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function JU(e){var t=D1e(e,"string");return jf(t)=="symbol"?t:t+""}function D1e(e,t){if(jf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(jf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var oa=function(e){function t(r){var n;return k1e(this,t),n=N1e(this,t,[r]),Vi(n,"pieRef",null),Vi(n,"sectorRefs",[]),Vi(n,"id",vl("recharts-pie-")),Vi(n,"handleAnimationEnd",function(){var i=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),ft(i)&&i()}),Vi(n,"handleAnimationStart",function(){var i=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),ft(i)&&i()}),n.state={isAnimationFinished:!r.isAnimationActive,prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,sectorToFocus:0},n}return I1e(t,e),R1e(t,[{key:"isActiveIndex",value:function(n){var i=this.props.activeIndex;return Array.isArray(i)?i.indexOf(n)!==-1:n===i}},{key:"hasActiveIndex",value:function(){var n=this.props.activeIndex;return Array.isArray(n)?n.length!==0:n||n===0}},{key:"renderLabels",value:function(n){var i=this.props.isAnimationActive;if(i&&!this.state.isAnimationFinished)return null;var o=this.props,a=o.label,s=o.labelLine,c=o.dataKey,u=o.valueKey,h=it(this.props,!1),p=it(a,!1),v=it(s,!1),b=a&&a.offsetRadius||20,_=n.map(function(x,w){var O=(x.startAngle+x.endAngle)/2,P=Qt(x.cx,x.cy,x.outerRadius+b,O),C=Zt(Zt(Zt(Zt({},h),x),{},{stroke:"none"},p),{},{index:w,textAnchor:t.getTextAnchor(P.x,x.cx)},P),T=Zt(Zt(Zt(Zt({},h),x),{},{fill:"none",stroke:x.fill},v),{},{index:w,points:[Qt(x.cx,x.cy,x.outerRadius,O),P]}),A=c;return dt(c)&&dt(u)?A="value":dt(c)&&(A=u),Z.createElement(Et,{key:"label-".concat(x.startAngle,"-").concat(x.endAngle,"-").concat(x.midAngle,"-").concat(w)},s&&t.renderLabelLineItem(s,T,"line"),t.renderLabelItem(a,C,nr(x,A)))});return Z.createElement(Et,{className:"recharts-pie-labels"},_)}},{key:"renderSectorsStatically",value:function(n){var i=this,o=this.props,a=o.activeShape,s=o.blendStroke,c=o.inactiveShape;return n.map(function(u,h){if((u==null?void 0:u.startAngle)===0&&(u==null?void 0:u.endAngle)===0&&n.length!==1)return null;var p=i.isActiveIndex(h),v=c&&i.hasActiveIndex()?c:null,b=p?a:v,_=Zt(Zt({},u),{},{stroke:s?u.fill:u.stroke,tabIndex:-1});return Z.createElement(Et,Zc({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(Yy,Zc({option:b,isActive:p,shapeType:"sector"},_)))})}},{key:"renderSectorsWithAnimation",value:function(){var n=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(Xi,{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(_){var x=_.t,w=[],O=o&&o[0],P=O.startAngle;return o.forEach(function(C,T){var A=v&&v[T],j=T>0?mi(C,"paddingAngle",0):0;if(A){var N=_r(A.endAngle-A.startAngle,C.endAngle-C.startAngle),F=Zt(Zt({},C),{},{startAngle:P+j,endAngle:P+N(x)+j});w.push(F),P=F.endAngle}else{var V=C.endAngle,B=C.startAngle,W=_r(0,V-B),q=W(x),J=Zt(Zt({},C),{},{startAngle:P+j,endAngle:P+q+j});w.push(J),P=J.endAngle}}),Z.createElement(Et,null,n.renderSectorsStatically(w))})}},{key:"attachKeyboardHandlers",value:function(n){var i=this;n.onkeydown=function(o){if(!o.altKey)switch(o.key){case"ArrowLeft":{var a=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[a].focus(),i.setState({sectorToFocus:a});break}case"ArrowRight":{var s=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[s].focus(),i.setState({sectorToFocus:s});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var n=this.props,i=n.sectors,o=n.isAnimationActive,a=this.state.prevSectors;return o&&i&&i.length&&(!a||!ll(a,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var n=this,i=this.props,o=i.hide,a=i.sectors,s=i.className,c=i.label,u=i.cx,h=i.cy,p=i.innerRadius,v=i.outerRadius,b=i.isAnimationActive,_=this.state.isAnimationFinished;if(o||!a||!a.length||!Ve(u)||!Ve(h)||!Ve(p)||!Ve(v))return null;var x=ze("recharts-pie",s);return Z.createElement(Et,{tabIndex:this.props.rootTabIndex,className:x,ref:function(O){n.pieRef=O}},this.renderSectors(),c&&this.renderLabels(a),Xr.renderCallByParent(this.props,null,!1),(!b||_)&&xo.renderCallByParent(this.props,a,!1))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return i.prevIsAnimationActive!==n.isAnimationActive?{prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:[],isAnimationFinished:!0}:n.isAnimationActive&&n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:n.sectors!==i.curSectors?{curSectors:n.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(n,i){return n>i?"start":n<i?"end":"middle"}},{key:"renderLabelLineItem",value:function(n,i,o){if(Z.isValidElement(n))return Z.cloneElement(n,i);if(ft(n))return n(i);var a=ze("recharts-pie-label-line",typeof n!="boolean"?n.className:"");return Z.createElement(el,Zc({},i,{key:o,type:"linear",className:a}))}},{key:"renderLabelItem",value:function(n,i,o){if(Z.isValidElement(n))return Z.cloneElement(n,i);var a=o;if(ft(n)&&(a=n(i),Z.isValidElement(a)))return a;var s=ze("recharts-pie-label-text",typeof n!="boolean"&&!ft(n)?n.className:"");return Z.createElement(Cu,Zc({},i,{alignmentBaseline:"middle",className:s}),a)}}])}(I.PureComponent);Pg=oa;Vi(oa,"displayName","Pie");Vi(oa,"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:!Hi.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});Vi(oa,"parseDeltaAngle",function(e,t){var r=Pn(t-e),n=Math.min(Math.abs(t-e),360);return r*n});Vi(oa,"getRealPieData",function(e){var t=e.data,r=e.children,n=it(e,!1),i=An(r,Qs);return t&&t.length?t.map(function(o,a){return Zt(Zt(Zt({payload:o},n),o),i&&i[a]&&i[a].props)}):i&&i.length?i.map(function(o){return Zt(Zt({},n),o.props)}):[]});Vi(oa,"parseCoordinateOfPie",function(e,t){var r=t.top,n=t.left,i=t.width,o=t.height,a=IU(i,o),s=n+En(e.cx,i,i/2),c=r+En(e.cy,o,o/2),u=En(e.innerRadius,a,0),h=En(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}});Vi(oa,"getComposedData",function(e){var t=e.item,r=e.offset,n=t.type.defaultProps!==void 0?Zt(Zt({},t.type.defaultProps),t.props):t.props,i=Pg.getRealPieData(n);if(!i||!i.length)return null;var o=n.cornerRadius,a=n.startAngle,s=n.endAngle,c=n.paddingAngle,u=n.dataKey,h=n.nameKey,p=n.valueKey,v=n.tooltipType,b=Math.abs(n.minAngle),_=Pg.parseCoordinateOfPie(n,r),x=Pg.parseDeltaAngle(a,s),w=Math.abs(x),O=u;dt(u)&&dt(p)?(_o(!1,`Use "dataKey" to specify the value of pie,
|
||
the props "valueKey" will be deprecated in 1.1.0`),O="value"):dt(u)&&(_o(!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(F){return nr(F,O,0)!==0}).length,C=(w>=360?P:P-1)*c,T=w-P*b-C,A=i.reduce(function(F,V){var B=nr(V,O,0);return F+(Ve(B)?B:0)},0),j;if(A>0){var N;j=i.map(function(F,V){var B=nr(F,O,0),W=nr(F,h,V),q=(Ve(B)?B:0)/A,J;V?J=N.endAngle+Pn(x)*c*(B!==0?1:0):J=a;var Q=J+Pn(x)*((B!==0?b:0)+q*T),ne=(J+Q)/2,ae=(_.innerRadius+_.outerRadius)/2,se=[{name:W,value:B,payload:F,dataKey:O,type:v}],oe=Qt(_.cx,_.cy,ae,ne);return N=Zt(Zt(Zt({percent:q,cornerRadius:o,name:W,tooltipPayload:se,midAngle:ne,middleRadius:ae,tooltipPosition:oe},F),_),{},{value:nr(F,O),startAngle:J,endAngle:Q,payload:F,paddingAngle:Pn(x)*c}),N})}return Zt(Zt({},_),{},{sectors:j,data:i})});var _O,E6;function $1e(){if(E6)return _O;E6=1;var e=Math.ceil,t=Math.max;function r(n,i,o,a){for(var s=-1,c=t(e((i-n)/(o||1)),0),u=Array(c);c--;)u[a?c:++s]=n,n+=o;return u}return _O=r,_O}var xO,C6;function e9(){if(C6)return xO;C6=1;var e=OB(),t=1/0,r=17976931348623157e292;function n(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var o=i<0?-1:1;return o*r}return i===i?i:0}return xO=n,xO}var wO,T6;function F1e(){if(T6)return wO;T6=1;var e=$1e(),t=ob(),r=e9();function n(i){return function(o,a,s){return s&&typeof s!="number"&&t(o,a,s)&&(a=s=void 0),o=r(o),a===void 0?(a=o,o=0):a=r(a),s=s===void 0?o<a?1:-1:r(s),e(o,a,s,i)}}return wO=n,wO}var OO,j6;function B1e(){if(j6)return OO;j6=1;var e=F1e(),t=e();return OO=t,OO}var U1e=B1e();const Xy=Nt(U1e);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 A6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function k6(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?A6(Object(r),!0).forEach(function(n){t9(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function t9(e,t,r){return t=z1e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function z1e(e){var t=V1e(e,"string");return Fp(t)=="symbol"?t:t+""}function V1e(e,t){if(Fp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Fp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var W1e=["Webkit","Moz","O","ms"],q1e=function(t,r){var n=t.replace(/(\w)/,function(o){return o.toUpperCase()}),i=W1e.reduce(function(o,a){return k6(k6({},o),{},t9({},a+n,r))},{});return i[t]=r,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 Qy(){return Qy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Qy.apply(this,arguments)}function R6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function SO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?R6(Object(r),!0).forEach(function(n){fi(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):R6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function H1e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function N6(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n9(n.key),n)}}function G1e(e,t,r){return t&&N6(e.prototype,t),r&&N6(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function K1e(e,t,r){return t=Jy(t),Y1e(e,r9()?Reflect.construct(t,r||[],Jy(e).constructor):t.apply(e,r))}function Y1e(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 Z1e(e)}function Z1e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function r9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(r9=function(){return!!e})()}function Jy(e){return Jy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Jy(e)}function X1e(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&&QE(e,t)}function QE(e,t){return QE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},QE(e,t)}function fi(e,t,r){return t=n9(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n9(e){var t=Q1e(e,"string");return Af(t)=="symbol"?t:t+""}function Q1e(e,t){if(Af(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Af(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var J1e=function(t){var r=t.data,n=t.startIndex,i=t.endIndex,o=t.x,a=t.width,s=t.travellerWidth;if(!r||!r.length)return{};var c=r.length,u=$h().domain(Xy(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(n),endX:u(i),scale:u,scaleValues:h}},M6=function(t){return t.changedTouches&&!!t.changedTouches.length},kf=function(e){function t(r){var n;return H1e(this,t),n=K1e(this,t,[r]),fi(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),fi(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),fi(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,o=i.endIndex,a=i.onDragEnd,s=i.startIndex;a==null||a({endIndex:o,startIndex:s})}),n.detachDragEndListener()}),fi(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),fi(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),fi(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),fi(n,"handleSlideDragStart",function(i){var o=M6(i)?i.changedTouches[0]:i;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:o.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return X1e(t,e),G1e(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,o=n.endX,a=this.state.scaleValues,s=this.props,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),_=t.getIndexInRange(a,v);return{startIndex:b-b%c,endIndex:_===h?h:_-_%c}}},{key:"getTextOfTick",value:function(n){var i=this.props,o=i.data,a=i.tickFormatter,s=i.dataKey,c=nr(o[n],s,n);return ft(a)?a(c,n):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(n){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,_=c.onChange,x=n.pageX-o;x>0?x=Math.min(x,u+h-p-s,u+h-p-a):x<0&&(x=Math.max(x,u-a,u-s));var w=this.getIndex({startX:a+x,endX:s+x});(w.startIndex!==v||w.endIndex!==b)&&_&&_(w),this.setState({startX:a+x,endX:s+x,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var o=M6(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:o.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,o=i.brushMoveStartX,a=i.movingTravellerId,s=i.endX,c=i.startX,u=this.state[a],h=this.props,p=h.x,v=h.width,b=h.travellerWidth,_=h.onChange,x=h.gap,w=h.data,O={startX:this.state.startX,endX:this.state.endX},P=n.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 C=this.getIndex(O),T=C.startIndex,A=C.endIndex,j=function(){var F=w.length-1;return a==="startX"&&(s>c?T%x===0:A%x===0)||s<c&&A===F||a==="endX"&&(s>c?A%x===0:T%x===0)||s>c&&A===F};this.setState(fi(fi({},a,u+P),"brushMoveStartX",n.pageX),function(){_&&j()&&_(C)})}},{key:"handleTravellerMoveKeyboard",value:function(n,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+n;if(!(v===-1||v>=s.length)){var b=s[v];i==="startX"&&b>=u||i==="endX"&&b<=c||this.setState(fi({},i,b),function(){o.props.onChange(o.getIndex({startX:o.state.startX,endX:o.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,o=n.y,a=n.width,s=n.height,c=n.fill,u=n.stroke;return Z.createElement("rect",{stroke:u,fill:c,x:i,y:o,width:a,height:s})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,o=n.y,a=n.width,s=n.height,c=n.data,u=n.children,h=n.padding,p=I.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(n,i){var o,a,s=this,c=this.props,u=c.y,h=c.travellerWidth,p=c.height,v=c.traveller,b=c.ariaLabel,_=c.data,x=c.startIndex,w=c.endIndex,O=Math.max(n,this.props.x),P=SO(SO({},it(this.props,!1)),{},{x:O,y:u,width:h,height:p}),C=b||"Min value: ".concat((o=_[x])===null||o===void 0?void 0:o.name,", Max value: ").concat((a=_[w])===null||a===void 0?void 0:a.name);return Z.createElement(Et,{tabIndex:0,role:"slider","aria-label":C,"aria-valuenow":n,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(n,i){var o=this.props,a=o.y,s=o.height,c=o.stroke,u=o.travellerWidth,h=Math.min(n,i)+u,p=Math.max(Math.abs(i-n)-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 n=this.props,i=n.startIndex,o=n.endIndex,a=n.y,s=n.height,c=n.travellerWidth,u=n.stroke,h=this.state,p=h.startX,v=h.endX,b=5,_={pointerEvents:"none",fill:u};return Z.createElement(Et,{className:"recharts-brush-texts"},Z.createElement(Cu,Qy({textAnchor:"end",verticalAnchor:"middle",x:Math.min(p,v)-b,y:a+s/2},_),this.getTextOfTick(i)),Z.createElement(Cu,Qy({textAnchor:"start",verticalAnchor:"middle",x:Math.max(p,v)+c+b,y:a+s/2},_),this.getTextOfTick(o)))}},{key:"render",value:function(){var n=this.props,i=n.data,o=n.className,a=n.children,s=n.x,c=n.y,u=n.width,h=n.height,p=n.alwaysShowText,v=this.state,b=v.startX,_=v.endX,x=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 C=ze("recharts-brush",o),T=Z.Children.count(a)===1,A=q1e("userSelect","none");return Z.createElement(Et,{className:C,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:A},this.renderBackground(),T&&this.renderPanorama(),this.renderSlide(b,_),this.renderTravellerLayer(b,"startX"),this.renderTravellerLayer(_,"endX"),(x||w||O||P||p)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,o=n.y,a=n.width,s=n.height,c=n.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(n,i){var o;return Z.isValidElement(n)?o=Z.cloneElement(n,i):ft(n)?o=n(i):o=t.renderDefaultTraveller(i),o}},{key:"getDerivedStateFromProps",value:function(n,i){var o=n.data,a=n.width,s=n.x,c=n.travellerWidth,u=n.updateId,h=n.startIndex,p=n.endIndex;if(o!==i.prevData||u!==i.prevUpdateId)return SO({prevData:o,prevTravellerWidth:c,prevUpdateId:u,prevX:s,prevWidth:a},o&&o.length?J1e({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(n.startIndex),endX:i.scale(n.endIndex),scaleValues:v}}return null}},{key:"getIndexInRange",value:function(n,i){for(var o=n.length,a=0,s=o-1;s-a>1;){var c=Math.floor((a+s)/2);n[c]>i?s=c:a=c}return i>=n[s]?s:a}}])}(I.PureComponent);fi(kf,"displayName","Brush");fi(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 PO,L6;function exe(){if(L6)return PO;L6=1;var e=aj();function t(r,n){var i;return e(r,function(o,a,s){return i=n(o,a,s),!i}),!!i}return PO=t,PO}var EO,I6;function txe(){if(I6)return EO;I6=1;var e=eB(),t=ca(),r=exe(),n=Zn(),i=ob();function o(a,s,c){var u=n(a)?e:r;return c&&i(a,s,c)&&(s=void 0),u(a,t(s,3))}return EO=o,EO}var rxe=txe();const nxe=Nt(rxe);var ea=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},CO,D6;function ixe(){if(D6)return CO;D6=1;var e=yB();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return CO=t,CO}var TO,$6;function oxe(){if($6)return TO;$6=1;var e=ixe(),t=vB(),r=ca();function n(i,o){var a={};return o=r(o,3),t(i,function(s,c,u){e(a,c,o(s,c,u))}),a}return TO=n,TO}var axe=oxe();const sxe=Nt(axe);var jO,F6;function lxe(){if(F6)return jO;F6=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(!r(t[n],n,t))return!1;return!0}return jO=e,jO}var AO,B6;function uxe(){if(B6)return AO;B6=1;var e=aj();function t(r,n){var i=!0;return e(r,function(o,a,s){return i=!!n(o,a,s),i}),i}return AO=t,AO}var kO,U6;function cxe(){if(U6)return kO;U6=1;var e=lxe(),t=uxe(),r=ca(),n=Zn(),i=ob();function o(a,s,c){var u=n(a)?e:t;return c&&i(a,s,c)&&(s=void 0),u(a,r(s,3))}return kO=o,kO}var fxe=cxe();const i9=Nt(fxe);var dxe=["x","y"];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 JE(){return JE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},JE.apply(this,arguments)}function z6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function yh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?z6(Object(r),!0).forEach(function(n){hxe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):z6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hxe(e,t,r){return t=pxe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pxe(e){var t=mxe(e,"string");return Bp(t)=="symbol"?t:t+""}function mxe(e,t){if(Bp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Bp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vxe(e,t){if(e==null)return{};var r=gxe(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function gxe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function yxe(e,t){var r=e.x,n=e.y,i=vxe(e,dxe),o="".concat(r),a=parseInt(o,10),s="".concat(n),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 yh(yh(yh(yh(yh({},t),i),a?{x:a}:{}),c?{y:c}:{}),{},{height:h,width:v,name:t.name,radius:t.radius})}function V6(e){return Z.createElement(Yy,JE({shapeType:"rectangle",propTransformer:yxe,activeClassName:"recharts-active-bar"},e))}var bxe=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof t=="number")return t;var o=typeof n=="number";return o?t(n,i):(o||ju(),r)}},_xe=["value","background"],o9;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 xxe(e,t){if(e==null)return{};var r=wxe(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function wxe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function e0(){return e0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e0.apply(this,arguments)}function W6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Nr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?W6(Object(r),!0).forEach(function(n){Ks(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):W6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Oxe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function q6(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s9(n.key),n)}}function Sxe(e,t,r){return t&&q6(e.prototype,t),r&&q6(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Pxe(e,t,r){return t=t0(t),Exe(e,a9()?Reflect.construct(t,r||[],t0(e).constructor):t.apply(e,r))}function Exe(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 Cxe(e)}function Cxe(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 t0(e){return t0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},t0(e)}function Txe(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(n,i){return n.__proto__=i,n},eC(e,t)}function Ks(e,t,r){return t=s9(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s9(e){var t=jxe(e,"string");return Rf(t)=="symbol"?t:t+""}function jxe(e,t){if(Rf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Rf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ua=function(e){function t(){var r;Oxe(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return r=Pxe(this,t,[].concat(i)),Ks(r,"state",{isAnimationFinished:!1}),Ks(r,"id",vl("recharts-bar-")),Ks(r,"handleAnimationEnd",function(){var a=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),a&&a()}),Ks(r,"handleAnimationStart",function(){var a=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),a&&a()}),r}return Txe(t,e),Sxe(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,o=this.props,a=o.shape,s=o.dataKey,c=o.activeIndex,u=o.activeBar,h=it(this.props,!1);return n&&n.map(function(p,v){var b=v===c,_=b?u:a,x=Nr(Nr(Nr({},h),p),{},{isActive:b,option:_,index:v,dataKey:s,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return Z.createElement(Et,e0({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(V6,x))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=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(Xi,{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 _=b.t,x=o.map(function(w,O){var P=v&&v[O];if(P){var C=_r(P.x,w.x),T=_r(P.y,w.y),A=_r(P.width,w.width),j=_r(P.height,w.height);return Nr(Nr({},w),{},{x:C(_),y:T(_),width:A(_),height:j(_)})}if(a==="horizontal"){var N=_r(0,w.height),F=N(_);return Nr(Nr({},w),{},{y:w.y+w.height-F,height:F})}var V=_r(0,w.width),B=V(_);return Nr(Nr({},w),{},{width:B})});return Z.createElement(Et,null,n.renderRectanglesStatically(x))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,o=n.isAnimationActive,a=this.state.prevData;return o&&i&&i.length&&(!a||!ll(a,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var n=this,i=this.props,o=i.data,a=i.dataKey,s=i.activeIndex,c=it(this.props.background,!1);return o.map(function(u,h){u.value;var p=u.background,v=xxe(u,_xe);if(!p)return null;var b=Nr(Nr(Nr(Nr(Nr({},v),{},{fill:"#eee"},p),c),sl(n.props,u,h)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:a,index:h,className:"recharts-bar-background-rectangle"});return Z.createElement(V6,e0({key:"background-bar-".concat(h),option:n.props.background,isActive:h===s},b))})}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var o=this.props,a=o.data,s=o.xAxis,c=o.yAxis,u=o.layout,h=o.children,p=An(h,od);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:nr(w,O)}},_={clipPath:n?"url(#clipPath-".concat(i,")"):null};return Z.createElement(Et,_,p.map(function(x){return Z.cloneElement(x,{key:"error-bar-".concat(i,"-").concat(x.props.dataKey),data:a,xAxis:s,yAxis:c,layout:u,offset:v,dataPointFormatter:b})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,o=n.data,a=n.className,s=n.xAxis,c=n.yAxis,u=n.left,h=n.top,p=n.width,v=n.height,b=n.isAnimationActive,_=n.background,x=n.id;if(i||!o||!o.length)return null;var w=this.state.isAnimationFinished,O=ze("recharts-bar",a),P=s&&s.allowDataOverflow,C=c&&c.allowDataOverflow,T=P||C,A=dt(x)?this.id:x;return Z.createElement(Et,{className:O},P||C?Z.createElement("defs",null,Z.createElement("clipPath",{id:"clipPath-".concat(A)},Z.createElement("rect",{x:P?u:u-p/2,y:C?h:h-v/2,width:P?p:p*2,height:C?v:v*2}))):null,Z.createElement(Et,{className:"recharts-bar-rectangles",clipPath:T?"url(#clipPath-".concat(A,")"):null},_?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(T,A),(!b||w)&&xo.renderCallByParent(this.props,o))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:i.curData}:n.data!==i.curData?{curData:n.data}:null}}])}(I.PureComponent);o9=Ua;Ks(Ua,"displayName","Bar");Ks(Ua,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Hi.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Ks(Ua,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,i=e.bandSize,o=e.xAxis,a=e.yAxis,s=e.xAxisTicks,c=e.yAxisTicks,u=e.stackedData,h=e.dataStartIndex,p=e.displayedData,v=e.offset,b=lye(n,r);if(!b)return null;var _=t.layout,x=r.type.defaultProps,w=x!==void 0?Nr(Nr({},x),r.props):r.props,O=w.dataKey,P=w.children,C=w.minPointSize,T=_==="horizontal"?a:o,A=u?T.scale.domain():null,j=mye({numericAxis:T}),N=An(P,Qs),F=p.map(function(V,B){var W,q,J,Q,ne,ae;u?W=uye(u[h+B],A):(W=nr(V,O),Array.isArray(W)||(W=[j,W]));var se=bxe(C,o9.defaultProps.minPointSize)(W[1],B);if(_==="horizontal"){var oe,K=[a.scale(W[0]),a.scale(W[1])],G=K[0],z=K[1];q=bD({axis:o,ticks:s,bandSize:i,offset:b.offset,entry:V,index:B}),J=(oe=z??G)!==null&&oe!==void 0?oe:void 0,Q=b.size;var re=G-z;if(ne=Number.isNaN(re)?0:re,ae={x:q,y:a.y,width:Q,height:a.height},Math.abs(se)>0&&Math.abs(ne)<Math.abs(se)){var X=Pn(ne||se)*(Math.abs(se)-Math.abs(ne));J-=X,ne+=X}}else{var le=[o.scale(W[0]),o.scale(W[1])],ce=le[0],de=le[1];if(q=ce,J=bD({axis:a,ticks:c,bandSize:i,offset:b.offset,entry:V,index:B}),Q=de-ce,ne=b.size,ae={x:o.x,y:J,width:o.width,height:ne},Math.abs(se)>0&&Math.abs(Q)<Math.abs(se)){var be=Pn(Q||se)*(Math.abs(se)-Math.abs(Q));Q+=be}}return Nr(Nr(Nr({},V),{},{x:q,y:J,width:Q,height:ne,value:u?W:W[1],payload:V,background:ae},N&&N[B]&&N[B].props),{},{tooltipPayload:[MU(r,V)],tooltipPosition:{x:q+Q/2,y:J+ne/2}})});return Nr({data:F,layout:_},v)});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 Axe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function H6(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l9(n.key),n)}}function kxe(e,t,r){return t&&H6(e.prototype,t),r&&H6(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function G6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function mo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?G6(Object(r),!0).forEach(function(n){wb(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):G6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wb(e,t,r){return t=l9(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l9(e){var t=Rxe(e,"string");return Up(t)=="symbol"?t:t+""}function Rxe(e,t){if(Up(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Up(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var u9=function(t,r,n,i,o){var a=t.width,s=t.height,c=t.layout,u=t.children,h=Object.keys(r),p={left:n.left,leftMirror:n.left,right:a-n.right,rightMirror:a-n.right,top:n.top,topMirror:n.top,bottom:s-n.bottom,bottomMirror:s-n.bottom},v=!!di(u,Ua);return h.reduce(function(b,_){var x=r[_],w=x.orientation,O=x.domain,P=x.padding,C=P===void 0?{}:P,T=x.mirror,A=x.reversed,j="".concat(w).concat(T?"Mirror":""),N,F,V,B,W;if(x.type==="number"&&(x.padding==="gap"||x.padding==="no-gap")){var q=O[1]-O[0],J=1/0,Q=x.categoricalDomain.sort();if(Q.forEach(function(le,ce){ce>0&&(J=Math.min((le||0)-(Q[ce-1]||0),J))}),Number.isFinite(J)){var ne=J/q,ae=x.layout==="vertical"?n.height:n.width;if(x.padding==="gap"&&(N=ne*ae/2),x.padding==="no-gap"){var se=En(t.barCategoryGap,ne*ae),oe=ne*ae/2;N=oe-se-(oe-se)/ae*se}}}i==="xAxis"?F=[n.left+(C.left||0)+(N||0),n.left+n.width-(C.right||0)-(N||0)]:i==="yAxis"?F=c==="horizontal"?[n.top+n.height-(C.bottom||0),n.top+(C.top||0)]:[n.top+(C.top||0)+(N||0),n.top+n.height-(C.bottom||0)-(N||0)]:F=x.range,A&&(F=[F[1],F[0]]);var K=AU(x,o,v),G=K.scale,z=K.realScaleType;G.domain(O).range(F),kU(G);var re=RU(G,mo(mo({},x),{},{realScaleType:z}));i==="xAxis"?(W=w==="top"&&!T||w==="bottom"&&T,V=n.left,B=p[j]-W*x.height):i==="yAxis"&&(W=w==="left"&&!T||w==="right"&&T,V=p[j]-W*x.width,B=n.top);var X=mo(mo(mo({},x),re),{},{realScaleType:z,x:V,y:B,scale:G,width:i==="xAxis"?n.width:x.width,height:i==="yAxis"?n.height:x.height});return X.bandSize=$y(X,re),!x.hide&&i==="xAxis"?p[j]+=(W?-1:1)*X.height:x.hide||(p[j]+=(W?-1:1)*X.width),mo(mo({},b),{},wb({},_,X))},{})},c9=function(t,r){var n=t.x,i=t.y,o=r.x,a=r.y;return{x:Math.min(n,o),y:Math.min(i,a),width:Math.abs(o-n),height:Math.abs(a-i)}},Nxe=function(t){var r=t.x1,n=t.y1,i=t.x2,o=t.y2;return c9({x:r,y:n},{x:i,y:o})},f9=function(){function e(t){Axe(this,e),this.scale=t}return kxe(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,o=n.position;if(r!==void 0){if(o)switch(o){case"start":return this.scale(r);case"middle":{var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+a}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(r)+s}default:return this.scale(r)}if(i){var c=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+c}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],o=n[n.length-1];return i<=o?r>=i&&r<=o:r>=o&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}])}();wb(f9,"EPS",1e-4);var Ij=function(t){var r=Object.keys(t).reduce(function(n,i){return mo(mo({},n),{},wb({},i,f9.create(t[i])))},{});return mo(mo({},r),{},{apply:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=o.bandAware,s=o.position;return sxe(i,function(c,u){return r[u].apply(c,{bandAware:a,position:s})})},isInRange:function(i){return i9(i,function(o,a){return r[a].isInRange(o)})}})};function Mxe(e){return(e%180+180)%180}var Lxe=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=Mxe(i),a=o*Math.PI/180,s=Math.atan(n/r),c=a>s&&a<Math.PI-s?n/Math.sin(a):r/Math.cos(a);return Math.abs(c)},RO,K6;function Ixe(){if(K6)return RO;K6=1;var e=ca(),t=cm(),r=nb();function n(i){return function(o,a,s){var c=Object(o);if(!t(o)){var u=e(a,3);o=r(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 RO=n,RO}var NO,Y6;function Dxe(){if(Y6)return NO;Y6=1;var e=e9();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return NO=t,NO}var MO,Z6;function $xe(){if(Z6)return MO;Z6=1;var e=fB(),t=ca(),r=Dxe(),n=Math.max;function i(o,a,s){var c=o==null?0:o.length;if(!c)return-1;var u=s==null?0:r(s);return u<0&&(u=n(c+u,0)),e(o,t(a,3),u)}return MO=i,MO}var LO,X6;function Fxe(){if(X6)return LO;X6=1;var e=Ixe(),t=$xe(),r=e(t);return LO=r,LO}var Bxe=Fxe();const Uxe=Nt(Bxe);var zxe=E7();const Vxe=Nt(zxe);var Wxe=Vxe(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("")}),Dj=I.createContext(void 0),$j=I.createContext(void 0),d9=I.createContext(void 0),h9=I.createContext({}),p9=I.createContext(void 0),m9=I.createContext(0),v9=I.createContext(0),Q6=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,o=r.offset,a=t.clipPathId,s=t.children,c=t.width,u=t.height,h=Wxe(o);return Z.createElement(Dj.Provider,{value:n},Z.createElement($j.Provider,{value:i},Z.createElement(h9.Provider,{value:o},Z.createElement(d9.Provider,{value:h},Z.createElement(p9.Provider,{value:a},Z.createElement(m9.Provider,{value:u},Z.createElement(v9.Provider,{value:c},s)))))))},qxe=function(){return I.useContext(p9)},g9=function(t){var r=I.useContext(Dj);r==null&&ju();var n=r[t];return n==null&&ju(),n},Hxe=function(){var t=I.useContext(Dj);return Hs(t)},Gxe=function(){var t=I.useContext($j),r=Uxe(t,function(n){return i9(n.domain,Number.isFinite)});return r||Hs(t)},y9=function(t){var r=I.useContext($j);r==null&&ju();var n=r[t];return n==null&&ju(),n},Kxe=function(){var t=I.useContext(d9);return t},Yxe=function(){return I.useContext(h9)},Fj=function(){return I.useContext(v9)},Bj=function(){return I.useContext(m9)};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 Zxe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xxe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_9(n.key),n)}}function Qxe(e,t,r){return t&&Xxe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Jxe(e,t,r){return t=r0(t),ewe(e,b9()?Reflect.construct(t,r||[],r0(e).constructor):t.apply(e,r))}function ewe(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 twe(e)}function twe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(b9=function(){return!!e})()}function r0(e){return r0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},r0(e)}function rwe(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&&tC(e,t)}function tC(e,t){return tC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},tC(e,t)}function J6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function e5(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?J6(Object(r),!0).forEach(function(n){Uj(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):J6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Uj(e,t,r){return t=_9(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _9(e){var t=nwe(e,"string");return Nf(t)=="symbol"?t:t+""}function nwe(e,t){if(Nf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Nf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function iwe(e,t){return lwe(e)||swe(e,t)||awe(e,t)||owe()}function owe(){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 awe(e,t){if(e){if(typeof e=="string")return t5(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return t5(e,t)}}function t5(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function swe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],c=!0,u=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(h){u=!0,i=h}finally{try{if(!c&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function lwe(e){if(Array.isArray(e))return e}function rC(){return rC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},rC.apply(this,arguments)}var uwe=function(t,r){var n;return Z.isValidElement(t)?n=Z.cloneElement(t,r):ft(t)?n=t(r):n=Z.createElement("line",rC({},r,{className:"recharts-reference-line-line"})),n},cwe=function(t,r,n,i,o,a,s,c,u){var h=o.x,p=o.y,v=o.width,b=o.height;if(n){var _=u.y,x=t.y.apply(_,{position:a});if(ea(u,"discard")&&!t.y.isInRange(x))return null;var w=[{x:h+v,y:x},{x:h,y:x}];return c==="left"?w.reverse():w}if(r){var O=u.x,P=t.x.apply(O,{position:a});if(ea(u,"discard")&&!t.x.isInRange(P))return null;var C=[{x:P,y:p+b},{x:P,y:p}];return s==="top"?C.reverse():C}if(i){var T=u.segment,A=T.map(function(j){return t.apply(j,{position:a})});return ea(u,"discard")&&nxe(A,function(j){return!t.isInRange(j)})?null:A}return null};function fwe(e){var t=e.x,r=e.y,n=e.segment,i=e.xAxisId,o=e.yAxisId,a=e.shape,s=e.className,c=e.alwaysShow,u=qxe(),h=g9(i),p=y9(o),v=Kxe();if(!u||!v)return null;_o(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var b=Ij({x:h.scale,y:p.scale}),_=zr(t),x=zr(r),w=n&&n.length===2,O=cwe(b,_,x,w,v,e.position,h.orientation,p.orientation,e);if(!O)return null;var P=iwe(O,2),C=P[0],T=C.x,A=C.y,j=P[1],N=j.x,F=j.y,V=ea(e,"hidden")?"url(#".concat(u,")"):void 0,B=e5(e5({clipPath:V},it(e,!0)),{},{x1:T,y1:A,x2:N,y2:F});return Z.createElement(Et,{className:ze("recharts-reference-line",s)},uwe(a,B),Xr.renderCallByParent(e,Nxe({x1:T,y1:A,x2:N,y2:F})))}var zj=function(e){function t(){return Zxe(this,t),Jxe(this,t,arguments)}return rwe(t,e),Qxe(t,[{key:"render",value:function(){return Z.createElement(fwe,this.props)}}])}(Z.Component);Uj(zj,"displayName","ReferenceLine");Uj(zj,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function nC(){return nC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},nC.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 r5(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function n5(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?r5(Object(r),!0).forEach(function(n){Ob(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):r5(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dwe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hwe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,w9(n.key),n)}}function pwe(e,t,r){return t&&hwe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function mwe(e,t,r){return t=n0(t),vwe(e,x9()?Reflect.construct(t,r||[],n0(e).constructor):t.apply(e,r))}function vwe(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 gwe(e)}function gwe(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 n0(e){return n0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},n0(e)}function ywe(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&&iC(e,t)}function iC(e,t){return iC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},iC(e,t)}function Ob(e,t,r){return t=w9(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function w9(e){var t=bwe(e,"string");return Mf(t)=="symbol"?t:t+""}function bwe(e,t){if(Mf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Mf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _we=function(t){var r=t.x,n=t.y,i=t.xAxis,o=t.yAxis,a=Ij({x:i.scale,y:o.scale}),s=a.apply({x:r,y:n},{bandAware:!0});return ea(t,"discard")&&!a.isInRange(s)?null:s},Sb=function(e){function t(){return dwe(this,t),mwe(this,t,arguments)}return ywe(t,e),pwe(t,[{key:"render",value:function(){var n=this.props,i=n.x,o=n.y,a=n.r,s=n.alwaysShow,c=n.clipPathId,u=zr(i),h=zr(o);if(_o(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!h)return null;var p=_we(this.props);if(!p)return null;var v=p.x,b=p.y,_=this.props,x=_.shape,w=_.className,O=ea(this.props,"hidden")?"url(#".concat(c,")"):void 0,P=n5(n5({clipPath:O},it(this.props,!0)),{},{cx:v,cy:b});return Z.createElement(Et,{className:ze("recharts-reference-dot",w)},t.renderDot(x,P),Xr.renderCallByParent(this.props,{x:v-a,y:b-a,width:2*a,height:2*a}))}}])}(Z.Component);Ob(Sb,"displayName","ReferenceDot");Ob(Sb,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Ob(Sb,"renderDot",function(e,t){var r;return Z.isValidElement(e)?r=Z.cloneElement(e,t):ft(e)?r=e(t):r=Z.createElement(mm,nC({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function oC(){return oC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},oC.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 i5(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function o5(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?i5(Object(r),!0).forEach(function(n){Pb(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i5(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xwe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wwe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,S9(n.key),n)}}function Owe(e,t,r){return t&&wwe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Swe(e,t,r){return t=i0(t),Pwe(e,O9()?Reflect.construct(t,r||[],i0(e).constructor):t.apply(e,r))}function Pwe(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 Ewe(e)}function Ewe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(O9=function(){return!!e})()}function i0(e){return i0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},i0(e)}function Cwe(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&&aC(e,t)}function aC(e,t){return aC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},aC(e,t)}function Pb(e,t,r){return t=S9(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function S9(e){var t=Twe(e,"string");return Lf(t)=="symbol"?t:t+""}function Twe(e,t){if(Lf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Lf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var jwe=function(t,r,n,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=Ij({x:h.scale,y:p.scale}),b={x:t?v.x.apply(a,{position:"start"}):v.x.rangeMin,y:n?v.y.apply(c,{position:"start"}):v.y.rangeMin},_={x:r?v.x.apply(s,{position:"end"}):v.x.rangeMax,y:i?v.y.apply(u,{position:"end"}):v.y.rangeMax};return ea(o,"discard")&&(!v.isInRange(b)||!v.isInRange(_))?null:c9(b,_)},vm=function(e){function t(){return xwe(this,t),Swe(this,t,arguments)}return Cwe(t,e),Owe(t,[{key:"render",value:function(){var n=this.props,i=n.x1,o=n.x2,a=n.y1,s=n.y2,c=n.className,u=n.alwaysShow,h=n.clipPathId;_o(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=zr(i),v=zr(o),b=zr(a),_=zr(s),x=this.props.shape;if(!p&&!v&&!b&&!_&&!x)return null;var w=jwe(p,v,b,_,this.props);if(!w&&!x)return null;var O=ea(this.props,"hidden")?"url(#".concat(h,")"):void 0;return Z.createElement(Et,{className:ze("recharts-reference-area",c)},t.renderRect(x,o5(o5({clipPath:O},it(this.props,!0)),w)),Xr.renderCallByParent(this.props,w))}}])}(Z.Component);Pb(vm,"displayName","ReferenceArea");Pb(vm,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});Pb(vm,"renderRect",function(e,t){var r;return Z.isValidElement(e)?r=Z.cloneElement(e,t):ft(e)?r=e(t):r=Z.createElement(Lj,oC({},t,{className:"recharts-reference-area-rect"})),r});function P9(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var n=[],i=0;i<e.length;i+=t)n.push(e[i]);return n}function Awe(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return Lxe(n,r)}function kwe(e,t,r){var n=r==="width",i=e.x,o=e.y,a=e.width,s=e.height;return t===1?{start:n?i:o,end:n?i+a:o+s}:{start:n?i+a:o+s,end:n?i:o}}function o0(e,t,r,n,i){if(e*t<e*n||e*t>e*i)return!1;var o=r();return e*(t-e*o/2-n)>=0&&e*(t+e*o/2-i)<=0}function Rwe(e,t){return P9(e,t+1)}function Nwe(e,t,r,n,i){for(var o=(n||[]).slice(),a=t.start,s=t.end,c=0,u=1,h=a,p=function(){var _=n==null?void 0:n[c];if(_===void 0)return{v:P9(n,u)};var x=c,w,O=function(){return w===void 0&&(w=r(_,x)),w},P=_.coordinate,C=c===0||o0(e,P,O,h,s);C||(c=0,h=a,u+=1),C&&(h=P+e*(O()/2+i),c+=u)},v;u<=o.length;)if(v=p(),v)return v.v;return[]}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 a5(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function pn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?a5(Object(r),!0).forEach(function(n){Mwe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a5(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Mwe(e,t,r){return t=Lwe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Lwe(e){var t=Iwe(e,"string");return zp(t)=="symbol"?t:t+""}function Iwe(e,t){if(zp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(zp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Dwe(e,t,r,n,i){for(var o=(n||[]).slice(),a=o.length,s=t.start,c=t.end,u=function(v){var b=o[v],_,x=function(){return _===void 0&&(_=r(b,v)),_};if(v===a-1){var w=e*(b.coordinate+e*x()/2-c);o[v]=b=pn(pn({},b),{},{tickCoord:w>0?b.coordinate-w*e:b.coordinate})}else o[v]=b=pn(pn({},b),{},{tickCoord:b.coordinate});var O=o0(e,b.tickCoord,x,s,c);O&&(c=b.tickCoord-e*(x()/2+i),o[v]=pn(pn({},b),{},{isShow:!0}))},h=a-1;h>=0;h--)u(h);return o}function $we(e,t,r,n,i,o){var a=(n||[]).slice(),s=a.length,c=t.start,u=t.end;if(o){var h=n[s-1],p=r(h,s-1),v=e*(h.coordinate+e*p/2-u);a[s-1]=h=pn(pn({},h),{},{tickCoord:v>0?h.coordinate-v*e:h.coordinate});var b=o0(e,h.tickCoord,function(){return p},c,u);b&&(u=h.tickCoord-e*(p/2+i),a[s-1]=pn(pn({},h),{},{isShow:!0}))}for(var _=o?s-1:s,x=function(P){var C=a[P],T,A=function(){return T===void 0&&(T=r(C,P)),T};if(P===0){var j=e*(C.coordinate-e*A()/2-c);a[P]=C=pn(pn({},C),{},{tickCoord:j<0?C.coordinate-j*e:C.coordinate})}else a[P]=C=pn(pn({},C),{},{tickCoord:C.coordinate});var N=o0(e,C.tickCoord,A,c,u);N&&(c=C.tickCoord+e*(A()/2+i),a[P]=pn(pn({},C),{},{isShow:!0}))},w=0;w<_;w++)x(w);return a}function Vj(e,t,r){var n=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||!n)return[];if(Ve(c)||Hi.isSsr)return Rwe(i,typeof c=="number"&&Ve(c)?c:0);var v=[],b=s==="top"||s==="bottom"?"width":"height",_=h&&b==="width"?Dh(h,{fontSize:t,letterSpacing:r}):{width:0,height:0},x=function(C,T){var A=ft(u)?u(C.value,T):C.value;return b==="width"?Awe(Dh(A,{fontSize:t,letterSpacing:r}),_,p):Dh(A,{fontSize:t,letterSpacing:r})[b]},w=i.length>=2?Pn(i[1].coordinate-i[0].coordinate):1,O=kwe(o,w,b);return c==="equidistantPreserveStart"?Nwe(w,O,x,i,a):(c==="preserveStart"||c==="preserveStartEnd"?v=$we(w,O,x,i,a,c==="preserveStartEnd"):v=Dwe(w,O,x,i,a),v.filter(function(P){return P.isShow}))}var Fwe=["viewBox"],Bwe=["viewBox"],Uwe=["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 Xc(){return Xc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xc.apply(this,arguments)}function s5(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function On(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?s5(Object(r),!0).forEach(function(n){Wj(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s5(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function IO(e,t){if(e==null)return{};var r=zwe(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function zwe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Vwe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l5(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,C9(n.key),n)}}function Wwe(e,t,r){return t&&l5(e.prototype,t),r&&l5(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function qwe(e,t,r){return t=a0(t),Hwe(e,E9()?Reflect.construct(t,r||[],a0(e).constructor):t.apply(e,r))}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 Gwe(e)}function Gwe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(E9=function(){return!!e})()}function a0(e){return a0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},a0(e)}function Kwe(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(n,i){return n.__proto__=i,n},sC(e,t)}function Wj(e,t,r){return t=C9(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function C9(e){var t=Ywe(e,"string");return If(t)=="symbol"?t:t+""}function Ywe(e,t){if(If(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(If(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ad=function(e){function t(r){var n;return Vwe(this,t),n=qwe(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return Kwe(t,e),Wwe(t,[{key:"shouldComponentUpdate",value:function(n,i){var o=n.viewBox,a=IO(n,Fwe),s=this.props,c=s.viewBox,u=IO(s,Bwe);return!tf(o,c)||!tf(a,u)||!tf(i,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var i=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var i=this.props,o=i.x,a=i.y,s=i.width,c=i.height,u=i.orientation,h=i.tickSize,p=i.mirror,v=i.tickMargin,b,_,x,w,O,P,C=p?-1:1,T=n.tickSize||h,A=Ve(n.tickCoord)?n.tickCoord:n.coordinate;switch(u){case"top":b=_=n.coordinate,w=a+ +!p*c,x=w-C*T,P=x-C*v,O=A;break;case"left":x=w=n.coordinate,_=o+ +!p*s,b=_-C*T,O=b-C*v,P=A;break;case"right":x=w=n.coordinate,_=o+ +p*s,b=_+C*T,O=b+C*v,P=A;break;default:b=_=n.coordinate,w=a+ +p*c,x=w+C*T,P=x+C*v,O=A;break}return{line:{x1:b,y1:x,x2:_,y2:w},tick:{x:O,y:P}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,i=n.orientation,o=n.mirror,a;switch(i){case"left":a=o?"start":"end";break;case"right":a=o?"end":"start";break;default:a="middle";break}return a}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,i=n.orientation,o=n.mirror,a="end";switch(i){case"left":case"right":a="middle";break;case"top":a=o?"start":"end";break;default:a=o?"end":"start";break}return a}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.x,o=n.y,a=n.width,s=n.height,c=n.orientation,u=n.mirror,h=n.axisLine,p=On(On(On({},it(this.props,!1)),it(h,!1)),{},{fill:"none"});if(c==="top"||c==="bottom"){var v=+(c==="top"&&!u||c==="bottom"&&u);p=On(On({},p),{},{x1:i,y1:o+v*s,x2:i+a,y2:o+v*s})}else{var b=+(c==="left"&&!u||c==="right"&&u);p=On(On({},p),{},{x1:i+b*a,y1:o,x2:i+b*a,y2:o+s})}return Z.createElement("line",Xc({},p,{className:ze("recharts-cartesian-axis-line",mi(h,"className"))}))}},{key:"renderTicks",value:function(n,i,o){var a=this,s=this.props,c=s.tickLine,u=s.stroke,h=s.tick,p=s.tickFormatter,v=s.unit,b=Vj(On(On({},this.props),{},{ticks:n}),i,o),_=this.getTickTextAnchor(),x=this.getTickVerticalAnchor(),w=it(this.props,!1),O=it(h,!1),P=On(On({},w),{},{fill:"none"},it(c,!1)),C=b.map(function(T,A){var j=a.getTickLineCoord(T),N=j.line,F=j.tick,V=On(On(On(On({textAnchor:_,verticalAnchor:x},w),{},{stroke:"none",fill:u},O),F),{},{index:A,payload:T,visibleTicksCount:b.length,tickFormatter:p});return Z.createElement(Et,Xc({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",Xc({},P,N,{className:ze("recharts-cartesian-axis-tick-line",mi(c,"className"))})),h&&t.renderTickItem(h,V,"".concat(ft(p)?p(T.value,A):T.value).concat(v||"")))});return Z.createElement("g",{className:"recharts-cartesian-axis-ticks"},C)}},{key:"render",value:function(){var n=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=IO(p,Uwe),_=v;return ft(c)&&(_=v&&v.length>0?c(this.props):c(b)),a<=0||s<=0||!_||!_.length?null:Z.createElement(Et,{className:ze("recharts-cartesian-axis",u),ref:function(w){n.layerReference=w}},o&&this.renderAxisLine(),this.renderTicks(_,this.state.fontSize,this.state.letterSpacing),Xr.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,o){var a;return Z.isValidElement(n)?a=Z.cloneElement(n,i):ft(n)?a=n(i):a=Z.createElement(Cu,Xc({},i,{className:"recharts-cartesian-axis-tick-value"}),o),a}}])}(I.Component);Wj(ad,"displayName","CartesianAxis");Wj(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 Zwe=["x1","y1","x2","y2","key"],Xwe=["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 u5(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function mn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?u5(Object(r),!0).forEach(function(n){Qwe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u5(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Qwe(e,t,r){return t=Jwe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Jwe(e){var t=e2e(e,"string");return Au(t)=="symbol"?t:t+""}function e2e(e,t){if(Au(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Au(n)!="object")return n;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 r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},du.apply(this,arguments)}function c5(e,t){if(e==null)return{};var r=t2e(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function t2e(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var r2e=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,i=t.x,o=t.y,a=t.width,s=t.height,c=t.ry;return Z.createElement("rect",{x:i,y:o,ry:c,width:a,height:s,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function T9(e,t){var r;if(Z.isValidElement(e))r=Z.cloneElement(e,t);else if(ft(e))r=e(t);else{var n=t.x1,i=t.y1,o=t.x2,a=t.y2,s=t.key,c=c5(t,Zwe),u=it(c,!1);u.offset;var h=c5(u,Xwe);r=Z.createElement("line",du({},h,{x1:n,y1:i,x2:o,y2:a,fill:"none",key:s}))}return r}function n2e(e){var t=e.x,r=e.width,n=e.horizontal,i=n===void 0?!0:n,o=e.horizontalPoints;if(!i||!o||!o.length)return null;var a=o.map(function(s,c){var u=mn(mn({},e),{},{x1:t,y1:s,x2:t+r,y2:s,key:"line-".concat(c),index:c});return T9(i,u)});return Z.createElement("g",{className:"recharts-cartesian-grid-horizontal"},a)}function i2e(e){var t=e.y,r=e.height,n=e.vertical,i=n===void 0?!0:n,o=e.verticalPoints;if(!i||!o||!o.length)return null;var a=o.map(function(s,c){var u=mn(mn({},e),{},{x1:s,y1:t,x2:s,y2:t+r,key:"line-".concat(c),index:c});return T9(i,u)});return Z.createElement("g",{className:"recharts-cartesian-grid-vertical"},a)}function o2e(e){var t=e.horizontalFill,r=e.fillOpacity,n=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 _=!h[b+1],x=_?i+a-v:h[b+1]-v;if(x<=0)return null;var w=b%t.length;return Z.createElement("rect",{key:"react-".concat(b),y:v,x:n,height:x,width:o,stroke:"none",fill:t[w],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return Z.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},p)}function a2e(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,o=e.x,a=e.y,s=e.width,c=e.height,u=e.verticalPoints;if(!r||!n||!n.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 _=!h[b+1],x=_?o+s-v:h[b+1]-v;if(x<=0)return null;var w=b%n.length;return Z.createElement("rect",{key:"react-".concat(b),x:v,y:a,width:x,height:c,stroke:"none",fill:n[w],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return Z.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},p)}var s2e=function(t,r){var n=t.xAxis,i=t.width,o=t.height,a=t.offset;return jU(Vj(mn(mn(mn({},ad.defaultProps),n),{},{ticks:Ia(n,!0),viewBox:{x:0,y:0,width:i,height:o}})),a.left,a.left+a.width,r)},l2e=function(t,r){var n=t.yAxis,i=t.width,o=t.height,a=t.offset;return jU(Vj(mn(mn(mn({},ad.defaultProps),n),{},{ticks:Ia(n,!0),viewBox:{x:0,y:0,width:i,height:o}})),a.top,a.top+a.height,r)},Ic={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function qj(e){var t,r,n,i,o,a,s=Fj(),c=Bj(),u=Yxe(),h=mn(mn({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Ic.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:Ic.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:Ic.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:Ic.horizontalFill,vertical:(o=e.vertical)!==null&&o!==void 0?o:Ic.vertical,verticalFill:(a=e.verticalFill)!==null&&a!==void 0?a:Ic.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,_=h.height,x=h.syncWithTicks,w=h.horizontalValues,O=h.verticalValues,P=Hxe(),C=Gxe();if(!Ve(b)||b<=0||!Ve(_)||_<=0||!Ve(p)||p!==+p||!Ve(v)||v!==+v)return null;var T=h.verticalCoordinatesGenerator||s2e,A=h.horizontalCoordinatesGenerator||l2e,j=h.horizontalPoints,N=h.verticalPoints;if((!j||!j.length)&&ft(A)){var F=w&&w.length,V=A({yAxis:C?mn(mn({},C),{},{ticks:F?w:C.ticks}):void 0,width:s,height:c,offset:u},F?!0:x);_o(Array.isArray(V),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Au(V),"]")),Array.isArray(V)&&(j=V)}if((!N||!N.length)&&ft(T)){var B=O&&O.length,W=T({xAxis:P?mn(mn({},P),{},{ticks:B?O:P.ticks}):void 0,width:s,height:c,offset:u},B?!0:x);_o(Array.isArray(W),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Au(W),"]")),Array.isArray(W)&&(N=W)}return Z.createElement("g",{className:"recharts-cartesian-grid"},Z.createElement(r2e,{fill:h.fill,fillOpacity:h.fillOpacity,x:h.x,y:h.y,width:h.width,height:h.height,ry:h.ry}),Z.createElement(n2e,du({},h,{offset:u,horizontalPoints:j,xAxis:P,yAxis:C})),Z.createElement(i2e,du({},h,{offset:u,verticalPoints:N,xAxis:P,yAxis:C})),Z.createElement(o2e,du({},h,{horizontalPoints:j})),Z.createElement(a2e,du({},h,{verticalPoints:N})))}qj.displayName="CartesianGrid";var u2e=["type","layout","connectNulls","ref"],c2e=["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 f5(e,t){if(e==null)return{};var r=f2e(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function f2e(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Vh(){return Vh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Vh.apply(this,arguments)}function d5(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ci(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?d5(Object(r),!0).forEach(function(n){vo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d5(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Dc(e){return m2e(e)||p2e(e)||h2e(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 h2e(e,t){if(e){if(typeof e=="string")return lC(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return lC(e,t)}}function p2e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function m2e(e){if(Array.isArray(e))return lC(e)}function lC(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function v2e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h5(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,A9(n.key),n)}}function g2e(e,t,r){return t&&h5(e.prototype,t),r&&h5(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function y2e(e,t,r){return t=s0(t),b2e(e,j9()?Reflect.construct(t,r||[],s0(e).constructor):t.apply(e,r))}function b2e(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 _2e(e)}function _2e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function j9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(j9=function(){return!!e})()}function s0(e){return s0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},s0(e)}function x2e(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&&uC(e,t)}function uC(e,t){return uC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},uC(e,t)}function vo(e,t,r){return t=A9(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function A9(e){var t=w2e(e,"string");return Df(t)=="symbol"?t:t+""}function w2e(e,t){if(Df(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Df(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var sd=function(e){function t(){var r;v2e(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return r=y2e(this,t,[].concat(i)),vo(r,"state",{isAnimationFinished:!0,totalLength:0}),vo(r,"generateSimpleStrokeDasharray",function(a,s){return"".concat(s,"px ").concat(a-s,"px")}),vo(r,"getStrokeDasharray",function(a,s,c){var u=c.reduce(function(O,P){return O+P});if(!u)return r.generateSimpleStrokeDasharray(s,a);for(var h=Math.floor(a/u),p=a%u,v=s-a,b=[],_=0,x=0;_<c.length;x+=c[_],++_)if(x+c[_]>p){b=[].concat(Dc(c.slice(0,_)),[p-x]);break}var w=b.length%2===0?[0,v]:[v];return[].concat(Dc(t.repeat(c,h)),Dc(b),w).map(function(O){return"".concat(O,"px")}).join(", ")}),vo(r,"id",vl("recharts-line-")),vo(r,"pathRef",function(a){r.mainCurve=a}),vo(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),vo(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return x2e(t,e),g2e(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();this.setState({totalLength:n})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();n!==this.state.totalLength&&this.setState({totalLength:n})}}},{key:"getTotalLength",value:function(){var n=this.mainCurve;try{return n&&n.getTotalLength&&n.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var o=this.props,a=o.points,s=o.xAxis,c=o.yAxis,u=o.layout,h=o.children,p=An(h,od);if(!p)return null;var v=function(x,w){return{x:x.x,y:x.y,value:x.value,errorVal:nr(x.payload,w)}},b={clipPath:n?"url(#clipPath-".concat(i,")"):null};return Z.createElement(Et,b,p.map(function(_){return Z.cloneElement(_,{key:"bar-".concat(_.props.dataKey),data:a,xAxis:s,yAxis:c,layout:u,dataPointFormatter:v})}))}},{key:"renderDots",value:function(n,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(x,w){var O=ci(ci(ci({key:"dot-".concat(w),r:3},p),v),{},{value:x.value,dataKey:h,cx:x.x,cy:x.y,index:w,payload:x.payload});return t.renderDotItem(c,O)}),_={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(o,")"):null};return Z.createElement(Et,Vh({className:"recharts-line-dots",key:"dots"},_),b)}},{key:"renderCurveStatically",value:function(n,i,o,a){var s=this.props,c=s.type,u=s.layout,h=s.connectNulls;s.ref;var p=f5(s,u2e),v=ci(ci(ci({},it(p,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(o,")"):null,points:n},a),{},{type:c,layout:u,connectNulls:h});return Z.createElement(el,Vh({},v,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,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,_=a.animateNewValues,x=a.width,w=a.height,O=this.state,P=O.prevPoints,C=O.totalLength;return Z.createElement(Xi,{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(q,J){var Q=Math.floor(J*j);if(P[Q]){var ne=P[Q],ae=_r(ne.x,q.x),se=_r(ne.y,q.y);return ci(ci({},q),{},{x:ae(A),y:se(A)})}if(_){var oe=_r(x*2,q.x),K=_r(w/2,q.y);return ci(ci({},q),{},{x:oe(A),y:K(A)})}return ci(ci({},q),{},{x:q.x,y:q.y})});return o.renderCurveStatically(N,n,i)}var F=_r(0,C),V=F(A),B;if(c){var W="".concat(c).split(/[,\s]+/gim).map(function(q){return parseFloat(q)});B=o.getStrokeDasharray(V,C,W)}else B=o.generateSimpleStrokeDasharray(C,V);return o.renderCurveStatically(s,n,i,{strokeDasharray:B})})}},{key:"renderCurve",value:function(n,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(n,i):this.renderCurveStatically(a,n,i)}},{key:"render",value:function(){var n,i=this.props,o=i.hide,a=i.dot,s=i.points,c=i.className,u=i.xAxis,h=i.yAxis,p=i.top,v=i.left,b=i.width,_=i.height,x=i.isAnimationActive,w=i.id;if(o||!s||!s.length)return null;var O=this.state.isAnimationFinished,P=s.length===1,C=ze("recharts-line",c),T=u&&u.allowDataOverflow,A=h&&h.allowDataOverflow,j=T||A,N=dt(w)?this.id:w,F=(n=it(a,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},V=F.r,B=V===void 0?3:V,W=F.strokeWidth,q=W===void 0?2:W,J=k7(a)?a:{},Q=J.clipDot,ne=Q===void 0?!0:Q,ae=B*2+q;return Z.createElement(Et,{className:C},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-_/2,width:T?b:b*2,height:A?_:_*2})),!ne&&Z.createElement("clipPath",{id:"clipPath-dots-".concat(N)},Z.createElement("rect",{x:v-ae/2,y:p-ae/2,width:b+ae,height:_+ae}))):null,!P&&this.renderCurve(j,N),this.renderErrorBar(j,N),(P||a)&&this.renderDots(j,ne,N),(!x||O)&&xo.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}},{key:"repeat",value:function(n,i){for(var o=n.length%2!==0?[].concat(Dc(n),[0]):n,a=[],s=0;s<i;++s)a=[].concat(Dc(a),Dc(o));return a}},{key:"renderDotItem",value:function(n,i){var o;if(Z.isValidElement(n))o=Z.cloneElement(n,i);else if(ft(n))o=n(i);else{var a=i.key,s=f5(i,c2e),c=ze("recharts-line-dot",typeof n!="boolean"?n.className:"");o=Z.createElement(mm,Vh({key:a},s,{className:c}))}return o}}])}(I.PureComponent);vo(sd,"displayName","Line");vo(sd,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Hi.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});vo(sd,"getComposedData",function(e){var t=e.props,r=e.xAxis,n=e.yAxis,i=e.xAxisTicks,o=e.yAxisTicks,a=e.dataKey,s=e.bandSize,c=e.displayedData,u=e.offset,h=t.layout,p=c.map(function(v,b){var _=nr(v,a);return h==="horizontal"?{x:Pf({axis:r,ticks:i,bandSize:s,entry:v,index:b}),y:dt(_)?null:n.scale(_),value:_,payload:v}:{x:dt(_)?null:r.scale(_),y:Pf({axis:n,ticks:o,bandSize:s,entry:v,index:b}),value:_,payload:v}});return ci({points:p,layout:h},u)});var O2e=["layout","type","stroke","connectNulls","isRange","ref"],S2e=["key"],k9;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 R9(e,t){if(e==null)return{};var r=P2e(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function P2e(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function hu(){return hu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hu.apply(this,arguments)}function p5(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function zs(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?p5(Object(r),!0).forEach(function(n){Xo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p5(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function E2e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m5(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,M9(n.key),n)}}function C2e(e,t,r){return t&&m5(e.prototype,t),r&&m5(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function T2e(e,t,r){return t=l0(t),j2e(e,N9()?Reflect.construct(t,r||[],l0(e).constructor):t.apply(e,r))}function j2e(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 A2e(e)}function A2e(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 l0(e){return l0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},l0(e)}function k2e(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(n,i){return n.__proto__=i,n},cC(e,t)}function Xo(e,t,r){return t=M9(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function M9(e){var t=R2e(e,"string");return $f(t)=="symbol"?t:t+""}function R2e(e,t){if($f(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if($f(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Fu=function(e){function t(){var r;E2e(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return r=T2e(this,t,[].concat(i)),Xo(r,"state",{isAnimationFinished:!0}),Xo(r,"id",vl("recharts-area-")),Xo(r,"handleAnimationEnd",function(){var a=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),ft(a)&&a()}),Xo(r,"handleAnimationStart",function(){var a=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),ft(a)&&a()}),r}return k2e(t,e),C2e(t,[{key:"renderDots",value:function(n,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),_=h.map(function(w,O){var P=zs(zs(zs({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)}),x={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(o,")"):null};return Z.createElement(Et,hu({className:"recharts-area-dots"},x),_)}},{key:"renderHorizontalRect",value:function(n){var i=this.props,o=i.baseLine,a=i.points,s=i.strokeWidth,c=a[0].x,u=a[a.length-1].x,h=n*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(n){var i=this.props,o=i.baseLine,a=i.points,s=i.strokeWidth,c=a[0].y,u=a[a.length-1].y,h=n*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(n){var i=this.props.layout;return i==="vertical"?this.renderVerticalRect(n):this.renderHorizontalRect(n)}},{key:"renderAreaStatically",value:function(n,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=R9(s,O2e);return Z.createElement(Et,{clipPath:o?"url(#clipPath-".concat(a,")"):null},Z.createElement(el,hu({},it(b,!0),{points:n,connectNulls:p,type:u,baseLine:i,layout:c,stroke:"none",className:"recharts-area-area"})),h!=="none"&&Z.createElement(el,hu({},it(this.props,!1),{className:"recharts-area-curve",layout:c,type:u,connectNulls:p,fill:"none",points:n})),h!=="none"&&v&&Z.createElement(el,hu({},it(this.props,!1),{className:"recharts-area-curve",layout:c,type:u,connectNulls:p,fill:"none",points:i})))}},{key:"renderAreaWithAnimation",value:function(n,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,_=this.state,x=_.prevPoints,w=_.prevBaseLine;return Z.createElement(Xi,{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(x){var C=x.length/s.length,T=s.map(function(F,V){var B=Math.floor(V*C);if(x[B]){var W=x[B],q=_r(W.x,F.x),J=_r(W.y,F.y);return zs(zs({},F),{},{x:q(P),y:J(P)})}return F}),A;if(Ve(c)&&typeof c=="number"){var j=_r(w,c);A=j(P)}else if(dt(c)||ed(c)){var N=_r(w,0);A=N(P)}else A=c.map(function(F,V){var B=Math.floor(V*C);if(w[B]){var W=w[B],q=_r(W.x,F.x),J=_r(W.y,F.y);return zs(zs({},F),{},{x:q(P),y:J(P)})}return F});return o.renderAreaStatically(T,A,n,i)}return Z.createElement(Et,null,Z.createElement("defs",null,Z.createElement("clipPath",{id:"animationClipPath-".concat(i)},o.renderClipRect(P))),Z.createElement(Et,{clipPath:"url(#animationClipPath-".concat(i,")")},o.renderAreaStatically(s,c,n,i)))})}},{key:"renderArea",value:function(n,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(n,i):this.renderAreaStatically(a,s,n,i)}},{key:"render",value:function(){var n,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,_=i.height,x=i.isAnimationActive,w=i.id;if(o||!s||!s.length)return null;var O=this.state.isAnimationFinished,P=s.length===1,C=ze("recharts-area",c),T=p&&p.allowDataOverflow,A=v&&v.allowDataOverflow,j=T||A,N=dt(w)?this.id:w,F=(n=it(a,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},V=F.r,B=V===void 0?3:V,W=F.strokeWidth,q=W===void 0?2:W,J=k7(a)?a:{},Q=J.clipDot,ne=Q===void 0?!0:Q,ae=B*2+q;return Z.createElement(Et,{className:C},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-_/2,width:T?b:b*2,height:A?_:_*2})),!ne&&Z.createElement("clipPath",{id:"clipPath-dots-".concat(N)},Z.createElement("rect",{x:h-ae/2,y:u-ae/2,width:b+ae,height:_+ae}))):null,P?null:this.renderArea(j,N),(a||P)&&this.renderDots(j,ne,N),(!x||O)&&xo.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,curBaseLine:n.baseLine,prevPoints:i.curPoints,prevBaseLine:i.curBaseLine}:n.points!==i.curPoints||n.baseLine!==i.curBaseLine?{curPoints:n.points,curBaseLine:n.baseLine}:null}}])}(I.PureComponent);k9=Fu;Xo(Fu,"displayName","Area");Xo(Fu,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Hi.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});Xo(Fu,"getBaseValue",function(e,t,r,n){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"?n:r,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]});Xo(Fu,"getComposedData",function(e){var t=e.props,r=e.item,n=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,_=u&&u.length,x=k9.getBaseValue(t,r,n,i),w=b==="horizontal",O=!1,P=p.map(function(T,A){var j;_?j=u[h+A]:(j=nr(T,c),Array.isArray(j)?O=!0:j=[x,j]);var N=j[1]==null||_&&nr(T,c)==null;return w?{x:Pf({axis:n,ticks:o,bandSize:s,entry:T,index:A}),y:N?null:i.scale(j[1]),value:j,payload:T}:{x:N?null:n.scale(j[1]),y:Pf({axis:i,ticks:a,bandSize:s,entry:T,index:A}),value:j,payload:T}}),C;return _||O?C=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?n.scale(A):null,y:T.y}}):C=w?i.scale(x):n.scale(x),zs({points:P,baseLine:C,layout:b,isRange:O},v)});Xo(Fu,"renderDotItem",function(e,t){var r;if(Z.isValidElement(e))r=Z.cloneElement(e,t);else if(ft(e))r=e(t);else{var n=ze("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,o=R9(t,S2e);r=Z.createElement(mm,hu({},o,{key:i,className:n}))}return r});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 N2e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function M2e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,D9(n.key),n)}}function L2e(e,t,r){return t&&M2e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function I2e(e,t,r){return t=u0(t),D2e(e,L9()?Reflect.construct(t,r||[],u0(e).constructor):t.apply(e,r))}function D2e(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 $2e(e)}function $2e(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 u0(e){return u0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},u0(e)}function F2e(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&&fC(e,t)}function fC(e,t){return fC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},fC(e,t)}function I9(e,t,r){return t=D9(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function D9(e){var t=B2e(e,"string");return Ff(t)=="symbol"?t:t+""}function B2e(e,t){if(Ff(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ff(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Eb=function(e){function t(){return N2e(this,t),I2e(this,t,arguments)}return F2e(t,e),L2e(t,[{key:"render",value:function(){return null}}])}(Z.Component);I9(Eb,"displayName","ZAxis");I9(Eb,"defaultProps",{zAxisId:0,range:[64,64],scale:"auto",type:"number"});var U2e=["option","isActive"];function Wh(){return Wh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Wh.apply(this,arguments)}function z2e(e,t){if(e==null)return{};var r=V2e(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function V2e(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function W2e(e){var t=e.option,r=e.isActive,n=z2e(e,U2e);return typeof t=="string"?Z.createElement(Yy,Wh({option:Z.createElement(rb,Wh({type:t},n)),isActive:r,shapeType:"symbols"},n)):Z.createElement(Yy,Wh({option:t,isActive:r,shapeType:"symbols"},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 qh(){return qh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qh.apply(this,arguments)}function v5(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Bi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?v5(Object(r),!0).forEach(function(n){Ys(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v5(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function q2e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g5(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,F9(n.key),n)}}function H2e(e,t,r){return t&&g5(e.prototype,t),r&&g5(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function G2e(e,t,r){return t=c0(t),K2e(e,$9()?Reflect.construct(t,r||[],c0(e).constructor):t.apply(e,r))}function K2e(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 Y2e(e)}function Y2e(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 c0(e){return c0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},c0(e)}function Z2e(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(n,i){return n.__proto__=i,n},dC(e,t)}function Ys(e,t,r){return t=F9(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function F9(e){var t=X2e(e,"string");return Bf(t)=="symbol"?t:t+""}function X2e(e,t){if(Bf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Bf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Cb=function(e){function t(){var r;q2e(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return r=G2e(this,t,[].concat(i)),Ys(r,"state",{isAnimationFinished:!1}),Ys(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0})}),Ys(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1})}),Ys(r,"id",vl("recharts-scatter-")),r}return Z2e(t,e),H2e(t,[{key:"renderSymbolsStatically",value:function(n){var i=this,o=this.props,a=o.shape,s=o.activeShape,c=o.activeIndex,u=it(this.props,!1);return n.map(function(h,p){var v=c===p,b=v?s:a,_=Bi(Bi({},u),h);return Z.createElement(Et,qh({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(W2e,qh({option:b,isActive:v,key:"symbol-".concat(p)},_)))})}},{key:"renderSymbolsWithAnimation",value:function(){var n=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(Xi,{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,_=o.map(function(x,w){var O=p&&p[w];if(O){var P=_r(O.cx,x.cx),C=_r(O.cy,x.cy),T=_r(O.size,x.size);return Bi(Bi({},x),{},{cx:P(b),cy:C(b),size:T(b)})}var A=_r(0,x.size);return Bi(Bi({},x),{},{size:A(b)})});return Z.createElement(Et,null,n.renderSymbolsStatically(_))})}},{key:"renderSymbols",value:function(){var n=this.props,i=n.points,o=n.isAnimationActive,a=this.state.prevPoints;return o&&i&&i.length&&(!a||!ll(a,i))?this.renderSymbolsWithAnimation():this.renderSymbolsStatically(i)}},{key:"renderErrorBar",value:function(){var n=this.props.isAnimationActive;if(n&&!this.state.isAnimationFinished)return null;var i=this.props,o=i.points,a=i.xAxis,s=i.yAxis,c=i.children,u=An(c,od);return u?u.map(function(h,p){var v=h.props,b=v.direction,_=v.dataKey;return Z.cloneElement(h,{key:"".concat(b,"-").concat(_,"-").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:nr(w,O)}}})}):null}},{key:"renderLine",value:function(){var n=this.props,i=n.points,o=n.line,a=n.lineType,s=n.lineJointType,c=it(this.props,!1),u=it(o,!1),h,p;if(a==="joint")h=i.map(function(C){return{x:C.cx,y:C.cy}});else if(a==="fitting"){var v=Xue(i),b=v.xmin,_=v.xmax,x=v.a,w=v.b,O=function(T){return x*T+w};h=[{x:b,y:O(b)},{x:_,y:O(_)}]}var P=Bi(Bi(Bi({},c),{},{fill:"none",stroke:c&&c.fill},u),{},{points:h});return Z.isValidElement(o)?p=Z.cloneElement(o,P):ft(o)?p=o(P):p=Z.createElement(el,qh({},P,{type:s})),Z.createElement(Et,{className:"recharts-scatter-line",key:"recharts-scatter-line"},p)}},{key:"render",value:function(){var n=this.props,i=n.hide,o=n.points,a=n.line,s=n.className,c=n.xAxis,u=n.yAxis,h=n.left,p=n.top,v=n.width,b=n.height,_=n.id,x=n.isAnimationActive;if(i||!o||!o.length)return null;var w=this.state.isAnimationFinished,O=ze("recharts-scatter",s),P=c&&c.allowDataOverflow,C=u&&u.allowDataOverflow,T=P||C,A=dt(_)?this.id:_;return Z.createElement(Et,{className:O,clipPath:T?"url(#clipPath-".concat(A,")"):null},P||C?Z.createElement("defs",null,Z.createElement("clipPath",{id:"clipPath-".concat(A)},Z.createElement("rect",{x:P?h:h-v/2,y:C?p:p-b/2,width:P?v:v*2,height:C?b:b*2}))):null,a&&this.renderLine(),this.renderErrorBar(),Z.createElement(Et,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!x||w)&&xo.renderCallByParent(this.props,o))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}}])}(I.PureComponent);Ys(Cb,"displayName","Scatter");Ys(Cb,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!Hi.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"});Ys(Cb,"getComposedData",function(e){var t=e.xAxis,r=e.yAxis,n=e.zAxis,i=e.item,o=e.displayedData,a=e.xAxisTicks,s=e.yAxisTicks,c=e.offset,u=i.props.tooltipType,h=An(i.props.children,Qs),p=dt(t.dataKey)?i.props.dataKey:t.dataKey,v=dt(r.dataKey)?i.props.dataKey:r.dataKey,b=n&&n.dataKey,_=n?n.range:Eb.defaultProps.range,x=_&&_[0],w=t.scale.bandwidth?t.scale.bandwidth():0,O=r.scale.bandwidth?r.scale.bandwidth():0,P=o.map(function(C,T){var A=nr(C,p),j=nr(C,v),N=!dt(b)&&nr(C,b)||"-",F=[{name:dt(t.dataKey)?i.props.name:t.name||t.dataKey,unit:t.unit||"",value:A,payload:C,dataKey:p,type:u},{name:dt(r.dataKey)?i.props.name:r.name||r.dataKey,unit:r.unit||"",value:j,payload:C,dataKey:v,type:u}];N!=="-"&&F.push({name:n.name||n.dataKey,unit:n.unit||"",value:N,payload:C,dataKey:b,type:u});var V=Pf({axis:t,ticks:a,bandSize:w,entry:C,index:T,dataKey:p}),B=Pf({axis:r,ticks:s,bandSize:O,entry:C,index:T,dataKey:v}),W=N!=="-"?n.scale(N):x,q=Math.sqrt(Math.max(W,0)/Math.PI);return Bi(Bi({},C),{},{cx:V,cy:B,x:V-q,y:B-q,xAxis:t,yAxis:r,zAxis:n,width:2*q,height:2*q,size:W,node:{x:A,y:j,z:N},tooltipPayload:F,tooltipPosition:{x:V,y:B},payload:C},h&&h[T]&&h[T].props)});return Bi({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 Q2e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function J2e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,z9(n.key),n)}}function eOe(e,t,r){return t&&J2e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function tOe(e,t,r){return t=f0(t),rOe(e,B9()?Reflect.construct(t,r||[],f0(e).constructor):t.apply(e,r))}function rOe(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 nOe(e)}function nOe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function B9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(B9=function(){return!!e})()}function f0(e){return f0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},f0(e)}function iOe(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(n,i){return n.__proto__=i,n},hC(e,t)}function U9(e,t,r){return t=z9(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function z9(e){var t=oOe(e,"string");return Uf(t)=="symbol"?t:t+""}function oOe(e,t){if(Uf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Uf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pC(){return pC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pC.apply(this,arguments)}function aOe(e){var t=e.xAxisId,r=Fj(),n=Bj(),i=g9(t);return i==null?null:Z.createElement(ad,pC({},i,{className:ze("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(a){return Ia(a,!0)}}))}var ld=function(e){function t(){return Q2e(this,t),tOe(this,t,arguments)}return iOe(t,e),eOe(t,[{key:"render",value:function(){return Z.createElement(aOe,this.props)}}])}(Z.Component);U9(ld,"displayName","XAxis");U9(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 sOe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lOe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,q9(n.key),n)}}function uOe(e,t,r){return t&&lOe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function cOe(e,t,r){return t=d0(t),fOe(e,V9()?Reflect.construct(t,r||[],d0(e).constructor):t.apply(e,r))}function fOe(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 dOe(e)}function dOe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function V9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(V9=function(){return!!e})()}function d0(e){return d0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},d0(e)}function hOe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&mC(e,t)}function mC(e,t){return mC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},mC(e,t)}function W9(e,t,r){return t=q9(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function q9(e){var t=pOe(e,"string");return zf(t)=="symbol"?t:t+""}function pOe(e,t){if(zf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(zf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vC(){return vC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},vC.apply(this,arguments)}var mOe=function(t){var r=t.yAxisId,n=Fj(),i=Bj(),o=y9(r);return o==null?null:Z.createElement(ad,vC({},o,{className:ze("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(s){return Ia(s,!0)}}))},ud=function(e){function t(){return sOe(this,t),cOe(this,t,arguments)}return hOe(t,e),uOe(t,[{key:"render",value:function(){return Z.createElement(mOe,this.props)}}])}(Z.Component);W9(ud,"displayName","YAxis");W9(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 y5(e){return bOe(e)||yOe(e)||gOe(e)||vOe()}function vOe(){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 gOe(e,t){if(e){if(typeof e=="string")return gC(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gC(e,t)}}function yOe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function bOe(e){if(Array.isArray(e))return gC(e)}function gC(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var yC=function(t,r,n,i,o){var a=An(t,zj),s=An(t,Sb),c=[].concat(y5(a),y5(s)),u=An(t,vm),h="".concat(i,"Id"),p=i[0],v=r;if(c.length&&(v=c.reduce(function(x,w){if(w.props[h]===n&&ea(w.props,"extendDomain")&&Ve(w.props[p])){var O=w.props[p];return[Math.min(x[0],O),Math.max(x[1],O)]}return x},v)),u.length){var b="".concat(p,"1"),_="".concat(p,"2");v=u.reduce(function(x,w){if(w.props[h]===n&&ea(w.props,"extendDomain")&&Ve(w.props[b])&&Ve(w.props[_])){var O=w.props[b],P=w.props[_];return[Math.min(x[0],O,P),Math.max(x[1],O,P)]}return x},v)}return o&&o.length&&(v=o.reduce(function(x,w){return Ve(w)?[Math.min(x[0],w),Math.max(x[1],w)]:x},v)),v},DO={exports:{}},b5;function _Oe(){return b5||(b5=1,function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!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),_=r?r+u:u;return c._events[_]?c._events[_].fn?c._events[_]=[c._events[_],b]:c._events[_].push(b):(c._events[_]=b,c._eventsCount++),c}function a(c,u){--c._eventsCount===0?c._events=new n:delete c._events[u]}function s(){this._events=new n,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(r?p.slice(1):p);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(h)):u},s.prototype.listeners=function(u){var h=r?r+u:u,p=this._events[h];if(!p)return[];if(p.fn)return[p.fn];for(var v=0,b=p.length,_=new Array(b);v<b;v++)_[v]=p[v].fn;return _},s.prototype.listenerCount=function(u){var h=r?r+u:u,p=this._events[h];return p?p.fn?1:p.length:0},s.prototype.emit=function(u,h,p,v,b,_){var x=r?r+u:u;if(!this._events[x])return!1;var w=this._events[x],O=arguments.length,P,C;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,_),!0}for(C=1,P=new Array(O-1);C<O;C++)P[C-1]=arguments[C];w.fn.apply(w.context,P)}else{var T=w.length,A;for(C=0;C<T;C++)switch(w[C].once&&this.removeListener(u,w[C].fn,void 0,!0),O){case 1:w[C].fn.call(w[C].context);break;case 2:w[C].fn.call(w[C].context,h);break;case 3:w[C].fn.call(w[C].context,h,p);break;case 4:w[C].fn.call(w[C].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[C].fn.apply(w[C].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=r?r+u:u;if(!this._events[b])return this;if(!h)return a(this,b),this;var _=this._events[b];if(_.fn)_.fn===h&&(!v||_.once)&&(!p||_.context===p)&&a(this,b);else{for(var x=0,w=[],O=_.length;x<O;x++)(_[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=r?r+u:u,this._events[h]&&a(this,h)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s}(DO)),DO.exports}var xOe=_Oe();const wOe=Nt(xOe);var $O=new wOe,FO="recharts.syncMouseEvents";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 OOe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function SOe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,H9(n.key),n)}}function POe(e,t,r){return t&&SOe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function BO(e,t,r){return t=H9(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function H9(e){var t=EOe(e,"string");return Vp(t)=="symbol"?t:t+""}function EOe(e,t){if(Vp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Vp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var COe=function(){function e(){OOe(this,e),BO(this,"activeIndex",0),BO(this,"coordinateList",[]),BO(this,"layout","horizontal")}return POe(e,[{key:"setDetails",value:function(r){var n,i=r.coordinateList,o=i===void 0?null:i,a=r.container,s=a===void 0?null:a,c=r.layout,u=c===void 0?null:c,h=r.offset,p=h===void 0?null:h,v=r.mouseHandlerCallback,b=v===void 0?null:v;this.coordinateList=(n=o??this.coordinateList)!==null&&n!==void 0?n:[],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(r){if(this.coordinateList.length!==0)switch(r.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),o=i.x,a=i.y,s=i.height,c=this.coordinateList[this.activeIndex].coordinate,u=((r=window)===null||r===void 0?void 0:r.scrollX)||0,h=((n=window)===null||n===void 0?void 0:n.scrollY)||0,p=o+c+u,v=a+this.offset.top+s/2+h;this.mouseHandlerCallback({pageX:p,pageY:v})}}}])}();function TOe(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e==null?void 0:e[0],i=e==null?void 0:e[1];if(n&&i&&Ve(n)&&Ve(i))return!0}return!1}function jOe(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-i,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function G9(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,o=e.endAngle,a=Qt(t,r,n,i),s=Qt(t,r,n,o);return{points:[a,s],cx:t,cy:r,radius:n,startAngle:i,endAngle:o}}function AOe(e,t,r){var n,i,o,a;if(e==="horizontal")n=t.x,o=n,i=r.top,a=r.top+r.height;else if(e==="vertical")i=t.y,a=i,n=r.left,o=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var s=t.cx,c=t.cy,u=t.innerRadius,h=t.outerRadius,p=t.angle,v=Qt(s,c,u,p),b=Qt(s,c,h,p);n=v.x,i=v.y,o=b.x,a=b.y}else return G9(t);return[{x:n,y:i},{x:o,y:a}]}function Wp(e){"@babel/helpers - typeof";return Wp=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},Wp(e)}function _5(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function og(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_5(Object(r),!0).forEach(function(n){kOe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_5(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kOe(e,t,r){return t=ROe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ROe(e){var t=NOe(e,"string");return Wp(t)=="symbol"?t:t+""}function NOe(e,t){if(Wp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Wp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function MOe(e){var t,r,n=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=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!b||!o||!a||v!=="ScatterChart"&&i!=="axis")return null;var _,x=el;if(v==="ScatterChart")_=a,x=C_e;else if(v==="BarChart")_=jOe(p,a,c,h),x=Lj;else if(p==="radial"){var w=G9(a),O=w.cx,P=w.cy,C=w.radius,T=w.startAngle,A=w.endAngle;_={cx:O,cy:P,startAngle:T,endAngle:A,innerRadius:C,outerRadius:C},x=BU}else _={points:AOe(p,a,c)},x=el;var j=og(og(og(og({stroke:"#ccc",pointerEvents:"none"},c),_),it(b,!1)),{},{payload:s,payloadIndex:u,className:ze("recharts-tooltip-cursor",b.className)});return I.isValidElement(b)?I.cloneElement(b,j):I.createElement(x,j)}var LOe=["item"],IOe=["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 Qc(){return Qc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Qc.apply(this,arguments)}function x5(e,t){return FOe(e)||$Oe(e,t)||Y9(e,t)||DOe()}function DOe(){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 $Oe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],c=!0,u=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(h){u=!0,i=h}finally{try{if(!c&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function FOe(e){if(Array.isArray(e))return e}function w5(e,t){if(e==null)return{};var r=BOe(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function BOe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function UOe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zOe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Z9(n.key),n)}}function VOe(e,t,r){return t&&zOe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function WOe(e,t,r){return t=h0(t),qOe(e,K9()?Reflect.construct(t,r||[],h0(e).constructor):t.apply(e,r))}function qOe(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 K9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(K9=function(){return!!e})()}function h0(e){return h0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},h0(e)}function GOe(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(n,i){return n.__proto__=i,n},bC(e,t)}function Wf(e){return ZOe(e)||YOe(e)||Y9(e)||KOe()}function KOe(){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 Y9(e,t){if(e){if(typeof e=="string")return _C(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _C(e,t)}}function YOe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ZOe(e){if(Array.isArray(e))return _C(e)}function _C(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function O5(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Te(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?O5(Object(r),!0).forEach(function(n){ht(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O5(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ht(e,t,r){return t=Z9(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Z9(e){var t=XOe(e,"string");return Vf(t)=="symbol"?t:t+""}function XOe(e,t){if(Vf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Vf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var QOe={xAxis:["bottom","top"],yAxis:["left","right"]},JOe={width:"100%",height:"100%"},X9={x:0,y:0};function ag(e){return e}var eSe=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},tSe=function(t,r,n,i){var o=r.find(function(h){return h&&h.index===n});if(o){if(t==="horizontal")return{x:o.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:o.coordinate};if(t==="centric"){var a=o.coordinate,s=i.radius;return 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 X9},Tb=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,o=r.dataEndIndex,a=(n??[]).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 Q9(e){return e==="number"?[0,"auto"]:void 0}var xC=function(t,r,n,i){var o=t.graphicalItems,a=t.tooltipAxis,s=Tb(r,t);return n<0||!o||!o.length||n>=s.length?null:o.reduce(function(c,u){var h,p=(h=u.props.data)!==null&&h!==void 0?h:r;p&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(p=p.slice(t.dataStartIndex,t.dataEndIndex+1));var v;if(a.dataKey&&!a.allowDuplicatedCategory){var b=p===void 0?s:p;v=hy(b,a.dataKey,i)}else v=p&&p[n]||s[n];return v?[].concat(Wf(c),[MU(u,v)]):c},[])},S5=function(t,r,n,i){var o=i||{x:t.chartX,y:t.chartY},a=eSe(o,n),s=t.orderedTooltipTicks,c=t.tooltipAxis,u=t.tooltipTicks,h=rye(a,s,u,c);if(h>=0&&u){var p=u[h]&&u[h].value,v=xC(t,r,h,p),b=tSe(n,s,h,o);return{activeTooltipIndex:h,activeLabel:p,activePayload:v,activeCoordinate:b}}return null},rSe=function(t,r){var n=r.axes,i=r.graphicalItems,o=r.axisType,a=r.axisIdKey,s=r.stackGroups,c=r.dataStartIndex,u=r.dataEndIndex,h=t.layout,p=t.children,v=t.stackOffset,b=TU(h,o);return n.reduce(function(_,x){var w,O=x.type.defaultProps!==void 0?Te(Te({},x.type.defaultProps),x.props):x.props,P=O.type,C=O.dataKey,T=O.allowDataOverflow,A=O.allowDuplicatedCategory,j=O.scale,N=O.ticks,F=O.includeHidden,V=O[a];if(_[V])return _;var B=Tb(t.data,{graphicalItems:i.filter(function(re){var X,le=a in re.props?re.props[a]:(X=re.type.defaultProps)===null||X===void 0?void 0:X[a];return le===V}),dataStartIndex:c,dataEndIndex:u}),W=B.length,q,J,Q;TOe(O.domain,T,P)&&(q=RE(O.domain,null,T),b&&(P==="number"||j!=="auto")&&(Q=Fh(B,C,"category")));var ne=Q9(P);if(!q||q.length===0){var ae,se=(ae=O.domain)!==null&&ae!==void 0?ae:ne;if(C){if(q=Fh(B,C,P),P==="category"&&b){var oe=Zue(q);A&&oe?(J=q,q=Xy(0,W)):A||(q=wD(se,q,x).reduce(function(re,X){return re.indexOf(X)>=0?re:[].concat(Wf(re),[X])},[]))}else if(P==="category")A?q=q.filter(function(re){return re!==""&&!dt(re)}):q=wD(se,q,x).reduce(function(re,X){return re.indexOf(X)>=0||X===""||dt(X)?re:[].concat(Wf(re),[X])},[]);else if(P==="number"){var K=sye(B,i.filter(function(re){var X,le,ce=a in re.props?re.props[a]:(X=re.type.defaultProps)===null||X===void 0?void 0:X[a],de="hide"in re.props?re.props.hide:(le=re.type.defaultProps)===null||le===void 0?void 0:le.hide;return ce===V&&(F||!de)}),C,o,h);K&&(q=K)}b&&(P==="number"||j!=="auto")&&(Q=Fh(B,C,"category"))}else b?q=Xy(0,W):s&&s[V]&&s[V].hasStack&&P==="number"?q=v==="expand"?[0,1]:NU(s[V].stackGroups,c,u):q=CU(B,i.filter(function(re){var X=a in re.props?re.props[a]:re.type.defaultProps[a],le="hide"in re.props?re.props.hide:re.type.defaultProps.hide;return X===V&&(F||!le)}),P,h,!0);if(P==="number")q=yC(p,q,V,o,N),se&&(q=RE(se,q,T));else if(P==="category"&&se){var G=se,z=q.every(function(re){return G.indexOf(re)>=0});z&&(q=G)}}return Te(Te({},_),{},ht({},V,Te(Te({},O),{},{axisType:o,domain:q,categoricalDomain:Q,duplicateDomain:J,originalDomain:(w=O.domain)!==null&&w!==void 0?w:ne,isCategorical:b,layout:h})))},{})},nSe=function(t,r){var n=r.graphicalItems,i=r.Axis,o=r.axisType,a=r.axisIdKey,s=r.stackGroups,c=r.dataStartIndex,u=r.dataEndIndex,h=t.layout,p=t.children,v=Tb(t.data,{graphicalItems:n,dataStartIndex:c,dataEndIndex:u}),b=v.length,_=TU(h,o),x=-1;return n.reduce(function(w,O){var P=O.type.defaultProps!==void 0?Te(Te({},O.type.defaultProps),O.props):O.props,C=P[a],T=Q9("number");if(!w[C]){x++;var A;return _?A=Xy(0,b):s&&s[C]&&s[C].hasStack?(A=NU(s[C].stackGroups,c,u),A=yC(p,A,C,o)):(A=RE(T,CU(v,n.filter(function(j){var N,F,V=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:(F=j.type.defaultProps)===null||F===void 0?void 0:F.hide;return V===C&&!B}),"number",h),i.defaultProps.allowDataOverflow),A=yC(p,A,C,o)),Te(Te({},w),{},ht({},C,Te(Te({axisType:o},i.defaultProps),{},{hide:!0,orientation:mi(QOe,"".concat(o,".").concat(x%2),null),domain:A,originalDomain:T,isCategorical:_,layout:h})))}return w},{})},iSe=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,o=r.AxisComp,a=r.graphicalItems,s=r.stackGroups,c=r.dataStartIndex,u=r.dataEndIndex,h=t.children,p="".concat(i,"Id"),v=An(h,o),b={};return v&&v.length?b=rSe(t,{axes:v,graphicalItems:a,axisType:i,axisIdKey:p,stackGroups:s,dataStartIndex:c,dataEndIndex:u}):a&&a.length&&(b=nSe(t,{Axis:o,graphicalItems:a,axisType:i,axisIdKey:p,stackGroups:s,dataStartIndex:c,dataEndIndex:u})),b},oSe=function(t){var r=Hs(t),n=Ia(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:sj(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:$y(r,n)}},P5=function(t){var r=t.children,n=t.defaultShowTooltip,i=di(r,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:!!n}},aSe=function(t){return!t||!t.length?!1:t.some(function(r){var n=Fa(r&&r.type);return n&&n.indexOf("Bar")>=0})},E5=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"}},sSe=function(t,r){var n=t.props,i=t.graphicalItems,o=t.xAxisMap,a=o===void 0?{}:o,s=t.yAxisMap,c=s===void 0?{}:s,u=n.width,h=n.height,p=n.children,v=n.margin||{},b=di(p,kf),_=di(p,rf),x=Object.keys(c).reduce(function(A,j){var N=c[j],F=N.orientation;return!N.mirror&&!N.hide?Te(Te({},A),{},ht({},F,A[F]+N.width)):A},{left:v.left||0,right:v.right||0}),w=Object.keys(a).reduce(function(A,j){var N=a[j],F=N.orientation;return!N.mirror&&!N.hide?Te(Te({},A),{},ht({},F,mi(A,"".concat(F))+N.height)):A},{top:v.top||0,bottom:v.bottom||0}),O=Te(Te({},w),x),P=O.bottom;b&&(O.bottom+=b.props.height||kf.defaultProps.height),_&&r&&(O=oye(O,i,n,r));var C=u-O.left-O.right,T=h-O.top-O.bottom;return Te(Te({brushBottom:P},O),{},{width:Math.max(C,0),height:Math.max(T,0)})},lSe=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},Hj=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,o=i===void 0?"axis":i,a=t.validateTooltipEventTypes,s=a===void 0?["axis"]:a,c=t.axisComponents,u=t.legendContent,h=t.formatAxisMap,p=t.defaultProps,v=function(O,P){var C=P.graphicalItems,T=P.stackGroups,A=P.offset,j=P.updateId,N=P.dataStartIndex,F=P.dataEndIndex,V=O.barSize,B=O.layout,W=O.barGap,q=O.barCategoryGap,J=O.maxBarSize,Q=E5(B),ne=Q.numericAxisName,ae=Q.cateAxisName,se=aSe(C),oe=[];return C.forEach(function(K,G){var z=Tb(O.data,{graphicalItems:[K],dataStartIndex:N,dataEndIndex:F}),re=K.type.defaultProps!==void 0?Te(Te({},K.type.defaultProps),K.props):K.props,X=re.dataKey,le=re.maxBarSize,ce=re["".concat(ne,"Id")],de=re["".concat(ae,"Id")],be={},M=c.reduce(function(Be,qe){var ye=P["".concat(qe.axisType,"Map")],we=re["".concat(qe.axisType,"Id")];ye&&ye[we]||qe.axisType==="zAxis"||ju();var Ae=ye[we];return Te(Te({},Be),{},ht(ht({},qe.axisType,Ae),"".concat(qe.axisType,"Ticks"),Ia(Ae)))},be),$=M[ae],Y=M["".concat(ae,"Ticks")],ue=T&&T[ce]&&T[ce].hasStack&&vye(K,T[ce].stackGroups),ie=Fa(K.type).indexOf("Bar")>=0,he=$y($,Y),Se=[],Fe=se&&nye({barSize:V,stackGroups:T,totalSize:lSe(M,ae)});if(ie){var ge,Ce,je=dt(le)?J:le,Me=(ge=(Ce=$y($,Y,!0))!==null&&Ce!==void 0?Ce:je)!==null&&ge!==void 0?ge:0;Se=iye({barGap:W,barCategoryGap:q,bandSize:Me!==he?Me:he,sizeList:Fe[de],maxBarSize:je}),Me!==he&&(Se=Se.map(function(Be){return Te(Te({},Be),{},{position:Te(Te({},Be.position),{},{offset:Be.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:F}))),{},ht(ht(ht({key:K.key||"item-".concat(G)},ne,M[ne]),ae,M[ae]),"animationId",j)),childIndex:lce(K,O.children),item:K})}),oe},b=function(O,P){var C=O.props,T=O.dataStartIndex,A=O.dataEndIndex,j=O.updateId;if(!DM({props:C}))return null;var N=C.children,F=C.layout,V=C.stackOffset,B=C.data,W=C.reverseStackOrder,q=E5(F),J=q.numericAxisName,Q=q.cateAxisName,ne=An(N,n),ae=pye(B,ne,"".concat(J,"Id"),"".concat(Q,"Id"),V,W),se=c.reduce(function(re,X){var le="".concat(X.axisType,"Map");return Te(Te({},re),{},ht({},le,iSe(C,Te(Te({},X),{},{graphicalItems:ne,stackGroups:X.axisType===J&&ae,dataStartIndex:T,dataEndIndex:A}))))},{}),oe=sSe(Te(Te({},se),{},{props:C,graphicalItems:ne}),P==null?void 0:P.legendBBox);Object.keys(se).forEach(function(re){se[re]=h(C,se[re],oe,re.replace("Map",""),r)});var K=se["".concat(Q,"Map")],G=oSe(K),z=v(C,Te(Te({},se),{},{dataStartIndex:T,dataEndIndex:A,updateId:j,graphicalItems:ne,stackGroups:ae,offset:oe}));return Te(Te({formattedGraphicalItems:z,graphicalItems:ne,offset:oe,stackGroups:ae},G),se)},_=function(w){function O(P){var C,T,A;return UOe(this,O),A=WOe(this,O,[P]),ht(A,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),ht(A,"accessibilityManager",new COe),ht(A,"handleLegendBBoxUpdate",function(j){if(j){var N=A.state,F=N.dataStartIndex,V=N.dataEndIndex,B=N.updateId;A.setState(Te({legendBBox:j},b({props:A.props,dataStartIndex:F,dataEndIndex:V,updateId:B},Te(Te({},A.state),{},{legendBBox:j}))))}}),ht(A,"handleReceiveSyncEvent",function(j,N,F){if(A.props.syncId===j){if(F===A.eventEmitterSymbol&&typeof A.props.syncMethod!="function")return;A.applySyncEvent(N)}}),ht(A,"handleBrushChange",function(j){var N=j.startIndex,F=j.endIndex;if(N!==A.state.dataStartIndex||F!==A.state.dataEndIndex){var V=A.state.updateId;A.setState(function(){return Te({dataStartIndex:N,dataEndIndex:F},b({props:A.props,dataStartIndex:N,dataEndIndex:F,updateId:V},A.state))}),A.triggerSyncEvent({dataStartIndex:N,dataEndIndex:F})}}),ht(A,"handleMouseEnter",function(j){var N=A.getMouseInfo(j);if(N){var F=Te(Te({},N),{},{isTooltipActive:!0});A.setState(F),A.triggerSyncEvent(F);var V=A.props.onMouseEnter;ft(V)&&V(F,j)}}),ht(A,"triggeredAfterMouseMove",function(j){var N=A.getMouseInfo(j),F=N?Te(Te({},N),{},{isTooltipActive:!0}):{isTooltipActive:!1};A.setState(F),A.triggerSyncEvent(F);var V=A.props.onMouseMove;ft(V)&&V(F,j)}),ht(A,"handleItemMouseEnter",function(j){A.setState(function(){return{isTooltipActive:!0,activeItem:j,activePayload:j.tooltipPayload,activeCoordinate:j.tooltipPosition||{x:j.cx,y:j.cy}}})}),ht(A,"handleItemMouseLeave",function(){A.setState(function(){return{isTooltipActive:!1}})}),ht(A,"handleMouseMove",function(j){j.persist(),A.throttleTriggeredAfterMouseMove(j)}),ht(A,"handleMouseLeave",function(j){A.throttleTriggeredAfterMouseMove.cancel();var N={isTooltipActive:!1};A.setState(N),A.triggerSyncEvent(N);var F=A.props.onMouseLeave;ft(F)&&F(N,j)}),ht(A,"handleOuterEvent",function(j){var N=sce(j),F=mi(A.props,"".concat(N));if(N&&ft(F)){var V,B;/.*touch.*/i.test(N)?B=A.getMouseInfo(j.changedTouches[0]):B=A.getMouseInfo(j),F((V=B)!==null&&V!==void 0?V:{},j)}}),ht(A,"handleClick",function(j){var N=A.getMouseInfo(j);if(N){var F=Te(Te({},N),{},{isTooltipActive:!0});A.setState(F),A.triggerSyncEvent(F);var V=A.props.onClick;ft(V)&&V(F,j)}}),ht(A,"handleMouseDown",function(j){var N=A.props.onMouseDown;if(ft(N)){var F=A.getMouseInfo(j);N(F,j)}}),ht(A,"handleMouseUp",function(j){var N=A.props.onMouseUp;if(ft(N)){var F=A.getMouseInfo(j);N(F,j)}}),ht(A,"handleTouchMove",function(j){j.changedTouches!=null&&j.changedTouches.length>0&&A.throttleTriggeredAfterMouseMove(j.changedTouches[0])}),ht(A,"handleTouchStart",function(j){j.changedTouches!=null&&j.changedTouches.length>0&&A.handleMouseDown(j.changedTouches[0])}),ht(A,"handleTouchEnd",function(j){j.changedTouches!=null&&j.changedTouches.length>0&&A.handleMouseUp(j.changedTouches[0])}),ht(A,"handleDoubleClick",function(j){var N=A.props.onDoubleClick;if(ft(N)){var F=A.getMouseInfo(j);N(F,j)}}),ht(A,"handleContextMenu",function(j){var N=A.props.onContextMenu;if(ft(N)){var F=A.getMouseInfo(j);N(F,j)}}),ht(A,"triggerSyncEvent",function(j){A.props.syncId!==void 0&&$O.emit(FO,A.props.syncId,j,A.eventEmitterSymbol)}),ht(A,"applySyncEvent",function(j){var N=A.props,F=N.layout,V=N.syncMethod,B=A.state.updateId,W=j.dataStartIndex,q=j.dataEndIndex;if(j.dataStartIndex!==void 0||j.dataEndIndex!==void 0)A.setState(Te({dataStartIndex:W,dataEndIndex:q},b({props:A.props,dataStartIndex:W,dataEndIndex:q,updateId:B},A.state)));else if(j.activeTooltipIndex!==void 0){var J=j.chartX,Q=j.chartY,ne=j.activeTooltipIndex,ae=A.state,se=ae.offset,oe=ae.tooltipTicks;if(!se)return;if(typeof V=="function")ne=V(oe,j);else if(V==="value"){ne=-1;for(var K=0;K<oe.length;K++)if(oe[K].value===j.activeLabel){ne=K;break}}var G=Te(Te({},se),{},{x:se.left,y:se.top}),z=Math.min(J,G.x+G.width),re=Math.min(Q,G.y+G.height),X=oe[ne]&&oe[ne].value,le=xC(A.state,A.props.data,ne),ce=oe[ne]?{x:F==="horizontal"?oe[ne].coordinate:z,y:F==="horizontal"?re:oe[ne].coordinate}:X9;A.setState(Te(Te({},j),{},{activeLabel:X,activeCoordinate:ce,activePayload:le,activeTooltipIndex:ne}))}else A.setState(j)}),ht(A,"renderCursor",function(j){var N,F=A.state,V=F.isTooltipActive,B=F.activeCoordinate,W=F.activePayload,q=F.offset,J=F.activeTooltipIndex,Q=F.tooltipAxisBandSize,ne=A.getTooltipEventType(),ae=(N=j.props.active)!==null&&N!==void 0?N:V,se=A.props.layout,oe=j.key||"_recharts-cursor";return Z.createElement(MOe,{key:oe,activeCoordinate:B,activePayload:W,activeTooltipIndex:J,chartName:r,element:j,isActive:ae,layout:se,offset:q,tooltipAxisBandSize:Q,tooltipEventType:ne})}),ht(A,"renderPolarAxis",function(j,N,F){var V=mi(j,"type.axisType"),B=mi(A.state,"".concat(V,"Map")),W=j.type.defaultProps,q=W!==void 0?Te(Te({},W),j.props):j.props,J=B&&B[q["".concat(V,"Id")]];return I.cloneElement(j,Te(Te({},J),{},{className:ze(V,J.className),key:j.key||"".concat(N,"-").concat(F),ticks:Ia(J,!0)}))}),ht(A,"renderPolarGrid",function(j){var N=j.props,F=N.radialLines,V=N.polarAngles,B=N.polarRadius,W=A.state,q=W.radiusAxisMap,J=W.angleAxisMap,Q=Hs(q),ne=Hs(J),ae=ne.cx,se=ne.cy,oe=ne.innerRadius,K=ne.outerRadius;return I.cloneElement(j,{polarAngles:Array.isArray(V)?V:Ia(ne,!0).map(function(G){return G.coordinate}),polarRadius:Array.isArray(B)?B:Ia(Q,!0).map(function(G){return G.coordinate}),cx:ae,cy:se,innerRadius:oe,outerRadius:K,key:j.key||"polar-grid",radialLines:F})}),ht(A,"renderLegend",function(){var j=A.state.formattedGraphicalItems,N=A.props,F=N.children,V=N.width,B=N.height,W=A.props.margin||{},q=V-(W.left||0)-(W.right||0),J=PU({children:F,formattedGraphicalItems:j,legendWidth:q,legendContent:u});if(!J)return null;var Q=J.item,ne=w5(J,LOe);return I.cloneElement(Q,Te(Te({},ne),{},{chartWidth:V,chartHeight:B,margin:W,onBBoxUpdate:A.handleLegendBBoxUpdate}))}),ht(A,"renderTooltip",function(){var j,N=A.props,F=N.children,V=N.accessibilityLayer,B=di(F,Ui);if(!B)return null;var W=A.state,q=W.isTooltipActive,J=W.activeCoordinate,Q=W.activePayload,ne=W.activeLabel,ae=W.offset,se=(j=B.props.active)!==null&&j!==void 0?j:q;return I.cloneElement(B,{viewBox:Te(Te({},ae),{},{x:ae.left,y:ae.top}),active:se,label:ne,payload:se?Q:[],coordinate:J,accessibilityLayer:V})}),ht(A,"renderBrush",function(j){var N=A.props,F=N.margin,V=N.data,B=A.state,W=B.offset,q=B.dataStartIndex,J=B.dataEndIndex,Q=B.updateId;return I.cloneElement(j,{key:j.key||"_recharts-brush",onChange:tg(A.handleBrushChange,j.props.onChange),data:V,x:Ve(j.props.x)?j.props.x:W.left,y:Ve(j.props.y)?j.props.y:W.top+W.height+W.brushBottom-(F.bottom||0),width:Ve(j.props.width)?j.props.width:W.width,startIndex:q,endIndex:J,updateId:"brush-".concat(Q)})}),ht(A,"renderReferenceElement",function(j,N,F){if(!j)return null;var V=A,B=V.clipPathId,W=A.state,q=W.xAxisMap,J=W.yAxisMap,Q=W.offset,ne=j.type.defaultProps||{},ae=j.props,se=ae.xAxisId,oe=se===void 0?ne.xAxisId:se,K=ae.yAxisId,G=K===void 0?ne.yAxisId:K;return I.cloneElement(j,{key:j.key||"".concat(N,"-").concat(F),xAxis:q[oe],yAxis:J[G],viewBox:{x:Q.left,y:Q.top,width:Q.width,height:Q.height},clipPathId:B})}),ht(A,"renderActivePoints",function(j){var N=j.item,F=j.activePoint,V=j.basePoint,B=j.childIndex,W=j.isRange,q=[],J=N.props.key,Q=N.item.type.defaultProps!==void 0?Te(Te({},N.item.type.defaultProps),N.item.props):N.item.props,ne=Q.activeDot,ae=Q.dataKey,se=Te(Te({index:B,dataKey:ae,cx:F.x,cy:F.y,r:4,fill:Mj(N.item),strokeWidth:2,stroke:"#fff",payload:F.payload,value:F.value},it(ne,!1)),py(ne));return q.push(O.renderActiveDot(ne,se,"".concat(J,"-activePoint-").concat(B))),V?q.push(O.renderActiveDot(ne,Te(Te({},se),{},{cx:V.x,cy:V.y}),"".concat(J,"-basePoint-").concat(B))):W&&q.push(null),q}),ht(A,"renderGraphicChild",function(j,N,F){var V=A.filterFormatItem(j,N,F);if(!V)return null;var B=A.getTooltipEventType(),W=A.state,q=W.isTooltipActive,J=W.tooltipAxis,Q=W.activeTooltipIndex,ne=W.activeLabel,ae=A.props.children,se=di(ae,Ui),oe=V.props,K=oe.points,G=oe.isRange,z=oe.baseLine,re=V.item.type.defaultProps!==void 0?Te(Te({},V.item.type.defaultProps),V.item.props):V.item.props,X=re.activeDot,le=re.hide,ce=re.activeBar,de=re.activeShape,be=!!(!le&&q&&se&&(X||ce||de)),M={};B!=="axis"&&se&&se.props.trigger==="click"?M={onClick:tg(A.handleItemMouseEnter,j.props.onClick)}:B!=="axis"&&(M={onMouseLeave:tg(A.handleItemMouseLeave,j.props.onMouseLeave),onMouseEnter:tg(A.handleItemMouseEnter,j.props.onMouseEnter)});var $=I.cloneElement(j,Te(Te({},V.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=hy(K,he,ne),ie=G&&z&&hy(z,he,ne)}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[I.cloneElement(j,Te(Te(Te({},V.props),M),{},{activeIndex:Se})),null,null]}if(!dt(ue))return[$].concat(Wf(A.renderActivePoints({item:V,activePoint:ue,basePoint:ie,childIndex:Q,isRange:G})))}else{var Fe,ge=(Fe=A.getItemByXY(A.state.activeCoordinate))!==null&&Fe!==void 0?Fe:{graphicalItem:$},Ce=ge.graphicalItem,je=Ce.item,Me=je===void 0?j:je,He=Ce.childIndex,Be=Te(Te(Te({},V.props),M),{},{activeIndex:He});return[I.cloneElement(Me,Be),null,null]}return G?[$,null,null]:[$,null]}),ht(A,"renderCustomized",function(j,N,F){return I.cloneElement(j,Te(Te({key:"recharts-customized-".concat(F)},A.props),A.state))}),ht(A,"renderMap",{CartesianGrid:{handler:ag,once:!0},ReferenceArea:{handler:A.renderReferenceElement},ReferenceLine:{handler:ag},ReferenceDot:{handler:A.renderReferenceElement},XAxis:{handler:ag},YAxis:{handler:ag},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((C=P.id)!==null&&C!==void 0?C:vl("recharts"),"-clip"),A.throttleTriggeredAfterMouseMove=SB(A.triggeredAfterMouseMove,(T=P.throttleDelay)!==null&&T!==void 0?T:1e3/60),A.state={},A}return GOe(O,w),VOe(O,[{key:"componentDidMount",value:function(){var C,T;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(C=this.props.margin.left)!==null&&C!==void 0?C: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 C=this.props,T=C.children,A=C.data,j=C.height,N=C.layout,F=di(T,Ui);if(F){var V=F.props.defaultIndex;if(!(typeof V!="number"||V<0||V>this.state.tooltipTicks.length-1)){var B=this.state.tooltipTicks[V]&&this.state.tooltipTicks[V].value,W=xC(this.state,A,V,B),q=this.state.tooltipTicks[V].coordinate,J=(this.state.offset.top+j)/2,Q=N==="horizontal",ne=Q?{x:q,y:J}:{y:q,x:J},ae=this.state.formattedGraphicalItems.find(function(oe){var K=oe.item;return K.type.name==="Scatter"});ae&&(ne=Te(Te({},ne),ae.props.points[V].tooltipPosition),W=ae.props.points[V].tooltipPayload);var se={activeTooltipIndex:V,isTooltipActive:!0,activeLabel:B,activePayload:W,activeCoordinate:ne};this.setState(se),this.renderCursor(F),this.accessibilityManager.setIndex(V)}}}},{key:"getSnapshotBeforeUpdate",value:function(C,T){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==T.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==C.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==C.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(C){eE([di(C.children,Ui)],[di(this.props.children,Ui)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var C=di(this.props.children,Ui);if(C&&typeof C.props.shared=="boolean"){var T=C.props.shared?"axis":"item";return s.indexOf(T)>=0?T:o}return o}},{key:"getMouseInfo",value:function(C){if(!this.container)return null;var T=this.container,A=T.getBoundingClientRect(),j=Khe(A),N={chartX:Math.round(C.pageX-j.left),chartY:Math.round(C.pageY-j.top)},F=A.width/T.offsetWidth||1,V=this.inRange(N.chartX,N.chartY,F);if(!V)return null;var B=this.state,W=B.xAxisMap,q=B.yAxisMap,J=this.getTooltipEventType();if(J!=="axis"&&W&&q){var Q=Hs(W).scale,ne=Hs(q).scale,ae=Q&&Q.invert?Q.invert(N.chartX):null,se=ne&&ne.invert?ne.invert(N.chartY):null;return Te(Te({},N),{},{xValue:ae,yValue:se})}var oe=S5(this.state,this.props.data,this.props.layout,V);return oe?Te(Te({},N),oe):null}},{key:"inRange",value:function(C,T){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,j=this.props.layout,N=C/A,F=T/A;if(j==="horizontal"||j==="vertical"){var V=this.state.offset,B=N>=V.left&&N<=V.left+V.width&&F>=V.top&&F<=V.top+V.height;return B?{x:N,y:F}:null}var W=this.state,q=W.angleAxisMap,J=W.radiusAxisMap;if(q&&J){var Q=Hs(q);return PD({x:N,y:F},Q)}return null}},{key:"parseEventsOfWrapper",value:function(){var C=this.props.children,T=this.getTooltipEventType(),A=di(C,Ui),j={};A&&T==="axis"&&(A.props.trigger==="click"?j={onClick:this.handleClick}:j={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var N=py(this.props,this.handleOuterEvent);return Te(Te({},N),j)}},{key:"addListener",value:function(){$O.on(FO,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){$O.removeListener(FO,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(C,T,A){for(var j=this.state.formattedGraphicalItems,N=0,F=j.length;N<F;N++){var V=j[N];if(V.item===C||V.props.key===C.key||T===Fa(V.item.type)&&A===V.childIndex)return V}return null}},{key:"renderClipPath",value:function(){var C=this.clipPathId,T=this.state.offset,A=T.left,j=T.top,N=T.height,F=T.width;return Z.createElement("defs",null,Z.createElement("clipPath",{id:C},Z.createElement("rect",{x:A,y:j,height:N,width:F})))}},{key:"getXScales",value:function(){var C=this.state.xAxisMap;return C?Object.entries(C).reduce(function(T,A){var j=x5(A,2),N=j[0],F=j[1];return Te(Te({},T),{},ht({},N,F.scale))},{}):null}},{key:"getYScales",value:function(){var C=this.state.yAxisMap;return C?Object.entries(C).reduce(function(T,A){var j=x5(A,2),N=j[0],F=j[1];return Te(Te({},T),{},ht({},N,F.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(C){var T;return(T=this.state.xAxisMap)===null||T===void 0||(T=T[C])===null||T===void 0?void 0:T.scale}},{key:"getYScaleByAxisId",value:function(C){var T;return(T=this.state.yAxisMap)===null||T===void 0||(T=T[C])===null||T===void 0?void 0:T.scale}},{key:"getItemByXY",value:function(C){var T=this.state,A=T.formattedGraphicalItems,j=T.activeItem;if(A&&A.length)for(var N=0,F=A.length;N<F;N++){var V=A[N],B=V.props,W=V.item,q=W.type.defaultProps!==void 0?Te(Te({},W.type.defaultProps),W.props):W.props,J=Fa(W.type);if(J==="Bar"){var Q=(B.data||[]).find(function(oe){return s_e(C,oe)});if(Q)return{graphicalItem:V,payload:Q}}else if(J==="RadialBar"){var ne=(B.data||[]).find(function(oe){return PD(C,oe)});if(ne)return{graphicalItem:V,payload:ne}}else if(_b(V,j)||xb(V,j)||$p(V,j)){var ae=A1e({graphicalItem:V,activeTooltipItem:j,itemData:q.data}),se=q.activeIndex===void 0?ae:q.activeIndex;return{graphicalItem:Te(Te({},V),{},{childIndex:se}),payload:$p(V,j)?q.data[ae]:V.props.data[ae]}}}return null}},{key:"render",value:function(){var C=this;if(!DM(this))return null;var T=this.props,A=T.children,j=T.className,N=T.width,F=T.height,V=T.style,B=T.compact,W=T.title,q=T.desc,J=w5(T,IOe),Q=it(J,!1);if(B)return Z.createElement(Q6,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},Z.createElement(rE,Qc({},Q,{width:N,height:F,title:W,desc:q}),this.renderClipPath(),FM(A,this.renderMap)));if(this.props.accessibilityLayer){var ne,ae;Q.tabIndex=(ne=this.props.tabIndex)!==null&&ne!==void 0?ne:0,Q.role=(ae=this.props.role)!==null&&ae!==void 0?ae:"application",Q.onKeyDown=function(oe){C.accessibilityManager.keyboardEvent(oe)},Q.onFocus=function(){C.accessibilityManager.focus()}}var se=this.parseEventsOfWrapper();return Z.createElement(Q6,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},Z.createElement("div",Qc({className:ze("recharts-wrapper",j),style:Te({position:"relative",cursor:"default",width:N,height:F},V)},se,{ref:function(K){C.container=K}}),Z.createElement(rE,Qc({},Q,{width:N,height:F,title:W,desc:q,style:JOe}),this.renderClipPath(),FM(A,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(I.Component);ht(_,"displayName",r),ht(_,"defaultProps",Te({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},p)),ht(_,"getDerivedStateFromProps",function(w,O){var P=w.dataKey,C=w.data,T=w.children,A=w.width,j=w.height,N=w.layout,F=w.stackOffset,V=w.margin,B=O.dataStartIndex,W=O.dataEndIndex;if(O.updateId===void 0){var q=P5(w);return Te(Te(Te({},q),{},{updateId:0},b(Te(Te({props:w},q),{},{updateId:0}),O)),{},{prevDataKey:P,prevData:C,prevWidth:A,prevHeight:j,prevLayout:N,prevStackOffset:F,prevMargin:V,prevChildren:T})}if(P!==O.prevDataKey||C!==O.prevData||A!==O.prevWidth||j!==O.prevHeight||N!==O.prevLayout||F!==O.prevStackOffset||!tf(V,O.prevMargin)){var J=P5(w),Q={chartX:O.chartX,chartY:O.chartY,isTooltipActive:O.isTooltipActive},ne=Te(Te({},S5(O,C,N)),{},{updateId:O.updateId+1}),ae=Te(Te(Te({},J),Q),ne);return Te(Te(Te({},ae),b(Te({props:w},ae),O)),{},{prevDataKey:P,prevData:C,prevWidth:A,prevHeight:j,prevLayout:N,prevStackOffset:F,prevMargin:V,prevChildren:T})}if(!eE(T,O.prevChildren)){var se,oe,K,G,z=di(T,kf),re=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:W,le=re!==B||X!==W,ce=!dt(C),de=ce&&!le?O.updateId:O.updateId+1;return Te(Te({updateId:de},b(Te(Te({props:w},O),{},{updateId:de,dataStartIndex:re,dataEndIndex:X}),O)),{},{prevChildren:T,dataStartIndex:re,dataEndIndex:X})}return null}),ht(_,"renderActiveDot",function(w,O,P){var C;return I.isValidElement(w)?C=I.cloneElement(w,O):ft(w)?C=w(O):C=Z.createElement(mm,O),Z.createElement(Et,{className:"recharts-active-dot",key:P},C)});var x=I.forwardRef(function(O,P){return Z.createElement(_,Qc({},O,{ref:P}))});return x.displayName=_.displayName,x},uSe=Hj({chartName:"LineChart",GraphicalChild:sd,axisComponents:[{axisType:"xAxis",AxisComp:ld},{axisType:"yAxis",AxisComp:ud}],formatAxisMap:u9}),cSe=Hj({chartName:"PieChart",GraphicalChild:oa,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:bb},{axisType:"radiusAxis",AxisComp:gb}],formatAxisMap:Eye,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),fSe=Hj({chartName:"ComposedChart",GraphicalChild:[sd,Fu,Ua,Cb],axisComponents:[{axisType:"xAxis",AxisComp:ld},{axisType:"yAxis",AxisComp:ud},{axisType:"zAxis",AxisComp:Eb}],formatAxisMap:u9});function J9(e,t){const r=I.useRef(t);I.useEffect(function(){t!==r.current&&e.attributionControl!=null&&(r.current!=null&&e.attributionControl.removeAttribution(r.current),t!=null&&e.attributionControl.addAttribution(t)),r.current=t},[e,t])}const dSe=1;function hSe(e){return Object.freeze({__version:dSe,map:e})}function pSe(e,t){return Object.freeze({...e,...t})}const ez=I.createContext(null),tz=ez.Provider;function rz(){const e=I.useContext(ez);if(e==null)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return e}function mSe(e){function t(r,n){const{instance:i,context:o}=e(r).current;return I.useImperativeHandle(n,()=>i),r.children==null?null:Z.createElement(tz,{value:o},r.children)}return I.forwardRef(t)}function vSe(e){function t(r,n){const[i,o]=I.useState(!1),{instance:a}=e(r,o).current;I.useImperativeHandle(n,()=>a),I.useEffect(function(){i&&a.update()},[a,i,r.children]);const s=a._contentNode;return s?vT.createPortal(r.children,s):null}return I.forwardRef(t)}function gSe(e){function t(r,n){const{instance:i}=e(r).current;return I.useImperativeHandle(n,()=>i),null}return I.forwardRef(t)}function nz(e,t){const r=I.useRef();I.useEffect(function(){return t!=null&&e.instance.on(t),r.current=t,function(){r.current!=null&&e.instance.off(r.current),r.current=null}},[e,t])}function Gj(e,t){const r=e.pane??t.pane;return r?{...e,pane:r}:e}function ySe(e,t){return function(n,i){const o=rz(),a=e(Gj(n,o),o);return J9(o.map,n.attribution),nz(a.current,n.eventHandlers),t(a.current,o,n,i),a}}var Th={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 bSe=Th.exports,C5;function _Se(){return C5||(C5=1,function(e,t){(function(r,n){n(t)})(bSe,function(r){var n="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 _(f){return b(f).split(/\s+/)}function x(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 C=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(f){var m=+new Date,S=Math.max(0,16-(m-N));return N=m+S,window.setTimeout(f,S)}var V=window.requestAnimationFrame||j("RequestAnimationFrame")||F,B=window.cancelAnimationFrame||j("CancelAnimationFrame")||j("CancelRequestAnimationFrame")||function(f){window.clearTimeout(f)};function W(f,m,S){if(S&&V===F)f.call(m);else return V.call(window,a(f,m))}function q(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:_,setOptions:x,getParamString:w,template:P,isArray:C,indexOf:T,emptyImageUrl:A,requestFn:V,cancelFn:B,requestAnimFrame:W,cancelAnimFrame:q};function Q(){}Q.extend=function(f){var m=function(){x(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&&(ne(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 ne(f){if(!(typeof L>"u"||!L||!L.Mixin)){f=C(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=_(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=_(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=_(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:C(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=re(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=re(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=re(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=re(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 re(G(m.x-k,m.y-U),G(S.x+k,S.y+U))},equals:function(f){return f?(f=re(f),this.min.equals(f.getTopLeft())&&this.max.equals(f.getBottomRight())):!1}};function re(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:C(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}}),$=6378137,Y={R:$,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=$*Math.PI;return new z([-f,-f],[f,f])}()};function ue(f,m,S,k){if(C(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?nt.svg?"z":"x":""}return S||"M0 0"}var Ce=document.documentElement.style,je="ActiveXObject"in window,Me=je&&!document.addEventListener,He="msLaunchUri"in navigator&&!("documentMode"in document),Be=mr("webkit"),qe=mr("android"),ye=mr("android 2")||mr("android 3"),we=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),Ae=qe&&mr("Google")&&we<537&&!("AudioNode"in window),ke=!!window.opera,De=!He&&mr("chrome"),Ke=mr("gecko")&&!Be&&!ke&&!je,Xe=!De&&mr("safari"),bt=mr("phantom"),Ot="OTransition"in Ce,xt=navigator.platform.indexOf("Win")===0,Jt=je&&"transition"in Ce,Gt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!ye,jr="MozPerspective"in Ce,Lr=!window.L_DISABLE_3D&&(Jt||Gt||jr)&&!Ot&&!bt,Nn=typeof orientation<"u"||mr("mobile"),Pr=Nn&&Be,fa=Nn&&Gt,Mn=!window.PointerEvent&&window.MSPointerEvent,Ji=!!(window.PointerEvent||Mn),eo="ontouchstart"in window||!!window.TouchEvent,xl=!window.L_NO_TOUCH&&(eo||Ji),is=Nn&&ke,Ro=Nn&&Ke,dr=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,or=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}(),Ir=function(){return!!document.createElement("canvas").getContext}(),Ar=!!(document.createElementNS&&Fe("svg").createSVGRect),hr=!!Ar&&function(){var f=document.createElement("div");return f.innerHTML="<svg/>",(f.firstChild&&f.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),pr=!Ar&&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}}(),en=navigator.platform.indexOf("Mac")===0,Xn=navigator.platform.indexOf("Linux")===0;function mr(f){return navigator.userAgent.toLowerCase().indexOf(f)>=0}var nt={ie:je,ielt9:Me,edge:He,webkit:Be,android:qe,android23:ye,androidStock:Ae,opera:ke,chrome:De,gecko:Ke,safari:Xe,phantom:bt,opera12:Ot,win:xt,ie3d:Jt,webkit3d:Gt,gecko3d:jr,any3d:Lr,mobile:Nn,mobileWebkit:Pr,mobileWebkit3d:fa,msPointer:Mn,pointer:Ji,touch:xl,touchNative:eo,mobileOpera:is,mobileGecko:Ro,retina:dr,passiveEvents:or,canvas:Ir,svg:Ar,vml:pr,inlineSvg:hr,mac:en,linux:Xn},wl=nt.msPointer?"MSPointerDown":"pointerdown",zu=nt.msPointer?"MSPointerMove":"pointermove",Pm=nt.msPointer?"MSPointerUp":"pointerup",Em=nt.msPointer?"MSPointerCancel":"pointercancel",hd={touchstart:wl,touchmove:zu,touchend:Pm,touchcancel:Em},No={touchstart:vr,touchmove:Vu,touchend:Vu,touchcancel:Vu},da={},pd=!1;function $b(f,m,S){return m==="touchstart"&&Fb(),No[m]?(S=No[m].bind(this,S),f.addEventListener(hd[m],S,!1),S):(console.warn("wrong event specified:",m),p)}function Cm(f,m,S){if(!hd[m]){console.warn("wrong event specified:",m);return}f.removeEventListener(hd[m],S,!1)}function Tm(f){da[f.pointerId]=f}function jm(f){da[f.pointerId]&&(da[f.pointerId]=f)}function md(f){delete da[f.pointerId]}function Fb(){pd||(document.addEventListener(wl,Tm,!0),document.addEventListener(zu,jm,!0),document.addEventListener(Pm,md,!0),document.addEventListener(Em,md,!0),pd=!0)}function Vu(f,m){if(m.pointerType!==(m.MSPOINTER_TYPE_MOUSE||"mouse")){m.touches=[];for(var S in da)m.touches.push(da[S]);m.changedTouches=[m],f(m)}}function vr(f,m){m.MSPOINTER_TYPE_TOUCH&&m.pointerType===m.MSPOINTER_TYPE_TOUCH&&gr(m),Vu(f,m)}function Bb(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 Am(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=ma(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(Bb(te))):k=1,S=_e}}}return f.addEventListener("click",U),{dblclick:m,simDblclick:U}}function Wu(f,m){f.removeEventListener("dblclick",m.dblclick),f.removeEventListener("click",m.simDblclick)}var gd=ls(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),os=ls(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Ol=os==="webkitTransition"||os==="OTransition"?os+"End":"transitionend";function Qn(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 er(f){var m=f.parentNode;m&&m.removeChild(f)}function qu(f){for(;f.firstChild;)f.removeChild(f.firstChild)}function as(f){var m=f.parentNode;m&&m.lastChild!==f&&m.appendChild(f)}function to(f){var m=f.parentNode;m&&m.firstChild!==f&&m.insertBefore(f,m.firstChild)}function ss(f,m){if(f.classList!==void 0)return f.classList.contains(m);var S=Hu(f);return S.length>0&&new RegExp("(^|\\s)"+m+"(\\s|$)").test(S)}function gt(f,m){if(f.classList!==void 0)for(var S=_(m),k=0,U=S.length;k<U;k++)f.classList.add(S[k]);else if(!ss(f,m)){var te=Hu(f);yd(f,(te?te+" ":"")+m)}}function Kt(f,m){f.classList!==void 0?f.classList.remove(m):yd(f,b((" "+Hu(f)+" ").replace(" "+m+" "," ")))}function yd(f,m){f.className.baseVal===void 0?f.className=m:f.className.baseVal=m}function Hu(f){return f.correspondingElement&&(f=f.correspondingElement),f.className.baseVal===void 0?f.className:f.className.baseVal}function sn(f,m){"opacity"in f.style?f.style.opacity=m:"filter"in f.style&&km(f,m)}function km(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 ls(f){for(var m=document.documentElement.style,S=0;S<f.length;S++)if(f[S]in m)return f[S];return!1}function Jn(f,m,S){var k=m||new oe(0,0);f.style[gd]=(nt.ie3d?"translate("+k.x+"px,"+k.y+"px)":"translate3d("+k.x+"px,"+k.y+"px,0)")+(S?" scale("+S+")":"")}function xr(f,m){f._leaflet_pos=m,nt.any3d?Jn(f,m):(f.style.left=m.x+"px",f.style.top=m.y+"px")}function ro(f){return f._leaflet_pos||new oe(0,0)}var Rt,us,Gu;if("onselectstart"in document)Rt=function(){pt(window,"selectstart",gr)},us=function(){Bt(window,"selectstart",gr)};else{var ha=ls(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Rt=function(){if(ha){var f=document.documentElement.style;Gu=f[ha],f[ha]="none"}},us=function(){ha&&(document.documentElement.style[ha]=Gu,Gu=void 0)}}function Ku(){pt(window,"dragstart",gr)}function Yu(){Bt(window,"dragstart",gr)}var Pl,El;function cs(f){for(;f.tabIndex===-1;)f=f.parentNode;f.style&&(ei(),Pl=f,El=f.style.outlineStyle,f.style.outlineStyle="none",pt(window,"keydown",ei))}function ei(){Pl&&(Pl.style.outlineStyle=El,Pl=void 0,El=void 0,Bt(window,"keydown",ei))}function no(f){do f=f.parentNode;while((!f.offsetWidth||!f.offsetHeight)&&f!==document.body);return f}function Si(f){var m=f.getBoundingClientRect();return{x:m.width/f.offsetWidth||1,y:m.height/f.offsetHeight||1,boundingClientRect:m}}var Cl={__proto__:null,TRANSFORM:gd,TRANSITION:os,TRANSITION_END:Ol,get:Qn,getStyle:Sl,create:wt,remove:er,empty:qu,toFront:as,toBack:to,hasClass:ss,addClass:gt,removeClass:Kt,setClass:yd,getClass:Hu,setOpacity:sn,testProp:ls,setTransform:Jn,setPosition:xr,getPosition:ro,get disableTextSelection(){return Rt},get enableTextSelection(){return us},disableImageDrag:Ku,enableImageDrag:Yu,preventOutline:cs,restoreOutline:ei,getSizedParentNode:no,getScale:Si};function pt(f,m,S,k){if(m&&typeof m=="object")for(var U in m)_d(f,U,m[U],S);else{m=_(m);for(var te=0,pe=m.length;te<pe;te++)_d(f,m[te],S,k)}return this}var Dr="_leaflet_events";function Bt(f,m,S,k){if(arguments.length===1)bd(f),delete f[Dr];else if(m&&typeof m=="object")for(var U in m)Zu(f,U,m[U],S);else if(m=_(m),arguments.length===2)bd(f,function(_e){return T(m,_e)!==-1});else for(var te=0,pe=m.length;te<pe;te++)Zu(f,m[te],S,k);return this}function bd(f,m){for(var S in f[Dr]){var k=S.split(/\d/)[0];(!m||m(k))&&Zu(f,k,null,null,S)}}var pa={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[Dr]&&f[Dr][U])return this;var te=function(_e){return S.call(k||f,_e||window.event)},pe=te;!nt.touchNative&&nt.pointer&&m.indexOf("touch")===0?te=$b(f,m,te):nt.touch&&m==="dblclick"?te=Am(f,te):"addEventListener"in f?m==="touchstart"||m==="touchmove"||m==="wheel"||m==="mousewheel"?f.addEventListener(pa[m]||m,te,nt.passiveEvents?{passive:!1}:!1):m==="mouseenter"||m==="mouseleave"?(te=function(_e){_e=_e||window.event,Al(f,_e)&&pe(_e)},f.addEventListener(pa[m],te,!1)):f.addEventListener(m,pe,!1):f.attachEvent("on"+m,te),f[Dr]=f[Dr]||{},f[Dr][U]=te}function Zu(f,m,S,k,U){U=U||m+c(S)+(k?"_"+c(k):"");var te=f[Dr]&&f[Dr][U];if(!te)return this;!nt.touchNative&&nt.pointer&&m.indexOf("touch")===0?Cm(f,m,te):nt.touch&&m==="dblclick"?Wu(f,te):"removeEventListener"in f?f.removeEventListener(pa[m]||m,te,!1):f.detachEvent("on"+m,te),f[Dr][U]=null}function Pi(f){return f.stopPropagation?f.stopPropagation():f.originalEvent?f.originalEvent._stopped=!0:f.cancelBubble=!0,this}function Xu(f){return _d(f,"wheel",Pi),this}function Tl(f){return pt(f,"mousedown touchstart dblclick contextmenu",Pi),f._leaflet_disable_click=!0,this}function gr(f){return f.preventDefault?f.preventDefault():f.returnValue=!1,this}function ti(f){return gr(f),Pi(f),this}function ma(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=Si(m),k=S.boundingClientRect;return new oe((f.clientX-k.left)/S.x-m.clientLeft,(f.clientY-k.top)/S.y-m.clientTop)}var Ub=nt.linux&&nt.chrome?window.devicePixelRatio:nt.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function Rm(f){return nt.edge?f.wheelDeltaY/2:f.deltaY&&f.deltaMode===0?-f.deltaY/Ub: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 Qu={__proto__:null,on:pt,off:Bt,stopPropagation:Pi,disableScrollPropagation:Xu,disableClickPropagation:Tl,preventDefault:gr,stop:ti,getPropagationPath:ma,getMousePosition:jl,getWheelDelta:Rm,isExternalTarget:Al,addListener:pt,removeListener:Bt},Ju=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=ro(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=W(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(),xr(this._el,S),this.fire("step")},_complete:function(){q(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(f){return 1-Math.pow(1-f,this._easeOutPower)}}),Tt=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=x(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=os&&nt.any3d&&!nt.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),pt(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||(nt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+f,m)},zoomOut:function(f,m){return f=f||(nt.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 Ju,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||!nt.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 Ps=Dt?-1:1,t_=Dt?Pe:_e,r_=Pe*Pe-_e*_e+Ps*st*st*Re*Re,wa=2*t_*st*Re,Oa=r_/wa,Sa=Math.sqrt(Oa*Oa+1)-Oa,hc=Sa<1e-9?-18:Math.log(Sa);return hc}function $r(Dt){return(Math.exp(Dt)-Math.exp(-Dt))/2}function kr(Dt){return(Math.exp(Dt)+Math.exp(-Dt))/2}function _n(Dt){return $r(Dt)/kr(Dt)}var un=St(0);function Os(Dt){return _e*(kr(un)/kr(un+Ze*Dt))}function Ud(Dt){return _e*(kr(un)*_n(un+Ze*Dt)-$r(un))/st}function Uo(Dt){return 1-Math.pow(1-Dt,1.5)}var Jm=Date.now(),xa=(St(1)-un)/Ze,ji=S.duration?1e3*S.duration:1e3*xa*.8;function Ss(){var Dt=(Date.now()-Jm)/ji,Ps=Uo(Dt)*xa;Dt<=1?(this._flyToFrame=W(Ss,this),this._move(this.unproject(k.add(U.subtract(k).multiplyBy(Ud(Ps)/Re)),pe),this.getScaleZoom(_e/Os(Ps),pe),{flyTo:!0})):this._move(f,m)._moveEnd(!0)}return this._moveStart(!0,S.noMoveStart),Ss.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=re([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(),er(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(q(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)er(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=re(this.project(_e,k),this.project(pe,k)).getSize(),Ze=nt.any3d?this.options.zoomSnap:1,st=Pe.x/Re.x,St=Pe.y/Re.y,$r=m?Math.max(st,St):Math.min(st,St);return k=this.getScaleZoom($r,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=Qn(f);if(m){if(m._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");pt(m,"scroll",this._onScroll,this),this._containerId=c(m)},_initLayout:function(){var f=this._container;this._fadeAnimated=this.options.fadeAnimation&&nt.any3d,gt(f,"leaflet-container"+(nt.touch?" leaflet-touch":"")+(nt.retina?" leaflet-retina":"")+(nt.ielt9?" leaflet-oldie":"")+(nt.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),xr(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){xr(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 q(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(f){xr(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?Bt:pt;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),nt.any3d&&this.options.transform3DLimit&&(f?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){q(this._resizeRequest),this._resizeRequest=W(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"&&cs(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"&&gr(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 ro(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 re([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=re(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=nt.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];Jn(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(){er(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var f=this.getCenter(),m=this.getZoom();Jn(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:(W(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 Mo(f,m){return new Tt(f,m)}var yn=Q.extend({options:{position:"topright"},initialize:function(f){x(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?(er(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()}}),Lo=function(f){return new yn(f)};Tt.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)er(this._controlCorners[f]);er(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var xd=yn.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){x(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 yn.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),Xu(m);var k=this._section=wt("section",f+"-list");S&&(this._map.on("click",this.collapse,this),pt(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"),pt(U,{keydown:function(te){te.keyCode===13&&this._expandSafely()},click:function(te){gr(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;qu(this._baseLayersList),qu(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),pt(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,pt(f,"click",gr),this.expand();var m=this;setTimeout(function(){Bt(f,"click",gr),m._preventClick=!1})}}),ec=function(f,m,S){return new xd(f,m,S)},fs=yn.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</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),pt(te,"click",ti),pt(te,"click",U,this),pt(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"))}});Tt.mergeOptions({zoomControl:!0}),Tt.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new fs,this.addControl(this.zoomControl))});var Nm=function(f){return new fs(f)},ln=yn.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}}),ds=function(f){return new ln(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>',va=yn.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(nt.inlineSvg?wd+" ":"")+"Leaflet</a>"},initialize:function(f){x(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> ')}}});Tt.mergeOptions({attributionControl:!0}),Tt.addInitHook(function(){this.options.attributionControl&&new va().addTo(this)});var zb=function(f){return new va(f)};yn.Layers=xd,yn.Zoom=fs,yn.Scale=ln,yn.Attribution=va,Lo.layers=ec,Lo.zoom=Nm,Lo.scale=ds,Lo.attribution=zb;var Ln=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}});Ln.addTo=function(f,m){return f.addHandler(m,this),this};var Od={Events:ae},hs=nt.touch?"touchstart mousedown":"mousedown",ri=se.extend({options:{clickTolerance:3},initialize:function(f,m,S,k){x(this,k),this._element=f,this._dragStartTarget=m||f,this._preventOutline=S},enable:function(){this._enabled||(pt(this._dragStartTarget,hs,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(ri._dragging===this&&this.finishDrag(!0),Bt(this._dragStartTarget,hs,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(f){if(this._enabled&&(this._moved=!1,!ss(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&&cs(this._element),Ku(),Rt(),!this._moving)){this.fire("down");var m=f.touches?f.touches[0]:f,S=no(this._element);this._startPoint=new oe(m.clientX,m.clientY),this._startPos=ro(this._element),this._parentScale=Si(S);var k=f.type==="mousedown";pt(document,k?"mousemove":"touchmove",this._onMove,this),pt(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,gr(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),xr(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),Bt(document,"mousemove touchmove",this._onMove,this),Bt(document,"mouseup touchend touchcancel",this._onUp,this),Yu(),us();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=ga(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=rc(Re,Pe,st,m,S),St._code=ga(St,m),k.push(St)):(Re._code&st&&(St=rc(Re,Pe,st,m,S),St._code=ga(St,m),k.push(St)),k.push(Pe));f=k}return f}function Mm(f,m){var S,k,U,te,pe,_e,Pe,Re,Ze;if(!f||f.length===0)throw new Error("latlngs not passed");In(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),$r=St.getNorthWest().distanceTo(St.getSouthWest())*St.getNorthEast().distanceTo(St.getNorthWest());$r<1700&&(st=Pd(f));var kr=f.length,_n=[];for(S=0;S<kr;S++){var un=de(f[S]);_n.push(m.project(de([un.lat-st.lat,un.lng-st.lng])))}for(_e=Pe=Re=0,S=0,k=kr-1;S<kr;k=S++)U=_n[S],te=_n[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=_n[0]:Ze=[Pe/_e,Re/_e];var Os=m.unproject(G(Ze));return de([Os.lat+st.lat,Os.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 Vb={__proto__:null,clipPolygon:Sd,polygonCenter:Mm,centroid:Pd};function tc(f,m){if(!m||!f.length)return f.slice();var S=m*m;return f=Hb(f,S),f=qb(f,S),f}function Lm(f,m,S){return Math.sqrt(ya(f,m,S,!0))}function Wb(f,m,S){return ya(f,m,S)}function qb(f,m){var S=f.length,k=typeof Uint8Array<"u"?Uint8Array:Array,U=new k(S);U[0]=U[S-1]=1,Ed(f,U,m,0,S-1);var te,pe=[];for(te=0;te<S;te++)U[te]&&pe.push(f[te]);return pe}function Ed(f,m,S,k,U){var te=0,pe,_e,Pe;for(_e=k+1;_e<=U-1;_e++)Pe=ya(f[_e],f[k],f[U],!0),Pe>te&&(pe=_e,te=Pe);te>S&&(m[pe]=1,Ed(f,m,S,k,pe),Ed(f,m,S,pe,U))}function Hb(f,m){for(var S=[f[0]],k=1,U=0,te=f.length;k<te;k++)Gb(f[k],f[U])>m&&(S.push(f[k]),U=k);return U<te-1&&S.push(f[te-1]),S}var Cd;function Im(f,m,S,k,U){var te=k?Cd:ga(f,S),pe=ga(m,S),_e,Pe,Re;for(Cd=pe;;){if(!(te|pe))return[f,m];if(te&pe)return!1;_e=te||pe,Pe=rc(f,m,_e,S,U),Re=ga(Pe,S),_e===te?(f=Pe,te=Re):(m=Pe,pe=Re)}}function rc(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 ga(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 Gb(f,m){var S=m.x-f.x,k=m.y-f.y;return S*S+k*k}function ya(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 In(f){return!C(f[0])||typeof f[0][0]!="object"&&typeof f[0][0]<"u"}function Dm(f){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),In(f)}function $m(f,m){var S,k,U,te,pe,_e,Pe,Re;if(!f||f.length===0)throw new Error("latlngs not passed");In(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 $r=f.length,kr=[];for(S=0;S<$r;S++){var _n=de(f[S]);kr.push(m.project(de([_n.lat-Ze.lat,_n.lng-Ze.lng])))}for(S=0,k=0;S<$r-1;S++)k+=kr[S].distanceTo(kr[S+1])/2;if(k===0)Re=kr[0];else for(S=0,te=0;S<$r-1;S++)if(pe=kr[S],_e=kr[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 un=m.unproject(G(Re));return de([un.lat+Ze.lat,un.lng+Ze.lng])}var Fm={__proto__:null,simplify:tc,pointToSegmentDistance:Lm,closestPointOnSegment:Wb,clipSegment:Im,_getEdgeIntersection:rc,_getBitCode:ga,_sqClosestPointOnSegment:ya,isFlat:In,_flat:Dm,polylineCenter:$m},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)}},Kb={__proto__:null,LonLat:Td,Mercator:jd,SphericalMercator:Y},Yb=i({},M,{code:"EPSG:3395",projection:jd,transformation:function(){var f=.5/(Math.PI*jd.R);return ie(f,.5,-f,.5)}()}),Bm=i({},M,{code:"EPSG:4326",projection:Td,transformation:ie(1/180,1,-1/180,.5)}),Zb=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=Yb,be.EPSG3857=he,be.EPSG900913=Se,be.EPSG4326=Bm,be.Simple=Zb;var ni=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})}}});Tt.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?C(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 Io=ni.extend({initialize:function(f,m){x(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 Io(f,m)},io=Io.extend({addLayer:function(f){return this.hasLayer(f)?this:(f.addEventParent(this),Io.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),Io.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}}),Um=function(f,m){return new io(f,m)},ba=Q.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(f){x(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 nt.retina&&this.options[f+"RetinaUrl"]||this.options[f+"Url"]}});function zm(f){return new ba(f)}var ps=ba.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(f){return typeof ps.imagePath!="string"&&(ps.imagePath=this._detectIconPath()),(this.options.imagePath||ps.imagePath)+ba.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=Ln.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=ro(m._icon),pe=S.getPixelBounds(),_e=S.getPixelOrigin(),Pe=re(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),xr(m._icon,this._draggable._newPos),this._onDrag(f),this._panRequest=W(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&&(q(this._panRequest),this._panRequest=W(this._adjustPan.bind(this,f)))},_onDrag:function(f){var m=this._marker,S=m._shadow,k=ro(m._icon),U=m._map.layerPointToLatLng(k);S&&xr(S,k),m._latlng=U,f.latlng=U,f.oldLatLng=this._oldLatLng,m.fire("move",f).fire("drag",f)},_onDragEnd:function(f){q(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",f)}}),oo=ni.extend({options:{icon:new ps,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){x(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&&pt(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&&Bt(this._icon,"focus",this._panOnFocus,this),er(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&er(this._shadow),this._shadow=null},_setPos:function(f){this._icon&&xr(this._icon,f),this._shadow&&xr(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&&sn(this._icon,f),this._shadow&&sn(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 Xb(f,m){return new oo(f,m)}var Do=ni.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 x(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=Do.extend({options:{fill:!0,radius:10},initialize:function(f,m){x(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 Do.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 Vm(f,m){return new nc(f,m)}var ic=nc.extend({initialize:function(f,m,S){if(typeof m=="number"&&(m=i({},S,{radius:m})),x(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:Do.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 ic(f,m,S)}var bn=Do.extend({options:{smoothFactor:1,noClip:!1},initialize:function(f,m){x(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=ya,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 $m(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 In(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(f){for(var m=[],S=In(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=Im(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]=tc(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)&&Lm(f,_e[U],_e[k])<=Pe)return!0;return!1}});function Qb(f,m){return new bn(f,m)}bn._flat=Dm;var ao=bn.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 Mm(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(f){var m=bn.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){bn.prototype._setLatLngs.call(this,f),In(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return In(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||bn.prototype._containsPoint.call(this,f,!0)}});function Jb(f,m){return new ao(f,m)}var Ei=io.extend({initialize:function(f,m){x(this,m),this._layers={},f&&this.addData(f)},addData:function(f){var m=C(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=ms(f,te);return pe?(pe.feature=uc(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 ms(f,m){var S=f.type==="Feature"?f.geometry:f,k=S?S.coordinates:null,U=[],te=m&&m.pointToLayer,pe=m&&m.coordsToLatLng||ac,_e,Pe,Re,Ze;if(!k&&!S)return null;switch(S.type){case"Point":return _e=pe(k),oc(te,f,_e,m);case"MultiPoint":for(Re=0,Ze=k.length;Re<Ze;Re++)_e=pe(k[Re]),U.push(oc(te,f,_e,m));return new io(U);case"LineString":case"MultiLineString":return Pe=Nl(k,S.type==="LineString"?0:1,pe),new bn(Pe,m);case"Polygon":case"MultiPolygon":return Pe=Nl(k,S.type==="Polygon"?1:2,pe),new ao(Pe,m);case"GeometryCollection":for(Re=0,Ze=S.geometries.length;Re<Ze;Re++){var st=ms({geometry:S.geometries[Re],type:"Feature",properties:f.properties},m);st&&U.push(st)}return new io(U);case"FeatureCollection":for(Re=0,Ze=S.features.length;Re<Ze;Re++){var St=ms(S.features[Re],m);St&&U.push(St)}return new io(U);default:throw new Error("Invalid GeoJSON object.")}}function oc(f,m,S,k){return f?f(m,S):new oo(S,k&&k.markersInheritOptions&&k)}function ac(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||ac)(f[U]),k.push(pe);return k}function sc(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 lc(f,m,S,k){for(var U=[],te=0,pe=f.length;te<pe;te++)U.push(m?lc(f[te],In(f[te])?0:m-1,S,k):sc(f[te],k));return!m&&S&&U.length>0&&U.push(U[0].slice()),U}function vs(f,m){return f.feature?i({},f.feature,{geometry:m}):uc(m)}function uc(f){return f.type==="Feature"||f.type==="FeatureCollection"?f:{type:"Feature",properties:{},geometry:f}}var kd={toGeoJSON:function(f){return vs(this,{type:"Point",coordinates:sc(this.getLatLng(),f)})}};oo.include(kd),ic.include(kd),nc.include(kd),bn.include({toGeoJSON:function(f){var m=!In(this._latlngs),S=lc(this._latlngs,m?1:0,!1,f);return vs(this,{type:(m?"Multi":"")+"LineString",coordinates:S})}}),ao.include({toGeoJSON:function(f){var m=!In(this._latlngs),S=m&&!In(this._latlngs[0]),k=lc(this._latlngs,S?2:m?1:0,!0,f);return m||(k=[k]),vs(this,{type:(S?"Multi":"")+"Polygon",coordinates:k})}}),Io.include({toMultiPoint:function(f){var m=[];return this.eachLayer(function(S){m.push(S.toGeoJSON(f).geometry.coordinates)}),vs(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=uc(te);pe.type==="FeatureCollection"?k.push.apply(k,pe.features):k.push(pe)}}}),S?vs(this,{geometries:k,type:"GeometryCollection"}):{type:"FeatureCollection",features:k}}});function Wm(f,m){return new Ei(f,m)}var ii=Wm,$o=ni.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),x(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(){er(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&&as(this._image),this},bringToBack:function(){return this._map&&to(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&>(m,"leaflet-zoom-animated"),this.options.className&>(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;Jn(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();xr(f,m.min),f.style.width=S.x+"px",f.style.height=S.y+"px"},_updateOpacity:function(){sn(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()}}),qm=function(f,m,S){return new $o(f,m,S)},Rd=$o.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&>(m,"leaflet-zoom-animated"),this.options.className&>(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}C(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 Hm(f,m,S){return new Rd(f,m,S)}var Nd=$o.extend({_initImage:function(){var f=this._image=this._url;gt(f,"leaflet-image-layer"),this._zoomAnimated&>(f,"leaflet-zoom-animated"),this.options.className&>(f,this.options.className),f.onselectstart=p,f.onmousemove=p}});function Md(f,m,S){return new Nd(f,m,S)}var Ci=ni.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(f,m){f&&(f instanceof ce||C(f))?(this._latlng=de(f),x(this,m)):(x(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&&sn(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),f._fadeAnimated&&sn(this._container,1),this.bringToFront(),this.options.interactive&&(gt(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(f){f._fadeAnimated?(sn(this._container,0),this._removeTimeout=setTimeout(a(er,void 0,this._container),200)):er(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&&as(this._container),this},bringToBack:function(){return this._map&&to(this._container),this},_prepareOpen:function(f){var m=this._source;if(!m._map)return!1;if(m instanceof io){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?xr(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]}});Tt.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}}),ni.include({_initOverlay:function(f,m,S,k){var U=S;return U instanceof f?(x(U,k),U._source=this):(U=m&&!k?m:new f(k,this),U.setContent(S)),U}});var cc=Ci.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,Ci.prototype.openOn.call(this,f)},onAdd:function(f){Ci.prototype.onAdd.call(this,f),f.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Do||this._source.on("preclick",Pi))},onRemove:function(f){Ci.prototype.onRemove.call(this,f),f.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Do||this._source.off("preclick",Pi))},getEvents:function(){var f=Ci.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),Xu(this._contentNode),pt(m,"contextmenu",Pi),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">×</span>',pt(k,"click",function(U){gr(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();xr(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(ro(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])}}),gs=function(f,m){return new cc(f,m)};Tt.mergeOptions({closePopupOnClick:!0}),Tt.include({openPopup:function(f,m,S){return this._initOverlay(cc,f,m,S).openOn(this),this},closePopup:function(f){return f=arguments.length?f:this._popup,f&&f.close(),this}}),ni.include({bindPopup:function(f,m){return this._popup=this._initOverlay(cc,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 io||(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)){ti(f);var m=f.layer||f.target;if(this._popup._source===m&&!(m instanceof Do)){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 ys=Ci.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(f){Ci.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){Ci.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=Ci.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),xr(U,f)},_updatePosition:function(){var f=this._map.latLngToLayerPoint(this._latlng);this._setPosition(f)},setOpacity:function(f){this.options.opacity=f,this._container&&sn(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 ys(f,m)};Tt.include({openTooltip:function(f,m,S){return this._initOverlay(ys,f,m,S).openOn(this),this},closeTooltip:function(f){return f.close(),this}}),ni.include({bindTooltip:function(f,m){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(ys,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 io||(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&&(pt(m,"focus",function(){this._tooltip._source=f,this.openTooltip()},this),pt(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 fc=ba.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?(qu(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 Gm(f){return new fc(f)}ba.Default=ps;var Fo=ni.extend({options:{tileSize:256,opacity:1,updateWhenIdle:nt.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){x(this,f)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(f){f._addZoomLimit(this)},onRemove:function(f){this._removeAllTiles(),er(this._container),f._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(as(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(to(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&&!nt.ielt9){sn(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);sn(U.el,te),te<1?m=!0:(U.active?S=!0:this._onOpaqueTile(U),U.active=!0)}}S&&!this._noPrune&&this._pruneTiles(),m&&(q(this._fadeFrame),this._fadeFrame=W(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)):(er(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)er(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();nt.any3d?Jn(f.el,U,k):xr(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 $r=new oe(St,st);if($r.z=this._tileZoom,!!this._isValidTile($r)){var kr=this._tiles[this._tileCoordsToKey($r)];kr?kr.current=!0:pe.push($r)}}if(pe.sort(function(un,Os){return un.distanceTo(te)-Os.distanceTo(te)}),pe.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var _n=document.createDocumentFragment();for(St=0;St<pe.length;St++)this._addTile(pe[St],_n);this._level.el.appendChild(_n)}}}},_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&&(er(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,nt.ielt9&&this.options.opacity<1&&sn(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&&W(a(this._tileReady,this,f,null,U)),xr(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?(sn(S.el,0),q(this._fadeFrame),this._fadeFrame=W(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"),nt.ielt9||!this._map._fadeAnimated?W(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 bs(f){return new Fo(f)}var Bo=Fo.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=x(this,m),m.detectRetina&&nt.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 pt(S,"load",a(this._tileOnLoad,this,m,S)),pt(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:nt.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){nt.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;er(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),Fo.prototype._removeTile.call(this,f)},_tileReady:function(f,m,S){if(!(!this._map||S&&S.getAttribute("src")===A))return Fo.prototype._tileReady.call(this,f,m,S)}});function Ld(f,m){return new Bo(f,m)}var Ll=Bo.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=x(this,m);var U=m.detectRetina&&nt.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,Bo.prototype.onAdd.call(this,f)},getTileUrl:function(f){var m=this._tileCoordsToNwSe(f),S=this._crs,k=re(S.project(m[0]),S.project(m[1])),U=k.min,te=k.max,pe=(this._wmsVersion>=1.3&&this._crs===Bm?[U.y,U.x,te.y,te.x]:[U.x,U.y,te.x,te.y]).join(","),_e=Bo.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 Km(f,m){return new Ll(f,m)}Bo.WMS=Ll,Ld.wms=Km;var Ti=ni.extend({options:{padding:.1},initialize:function(f){x(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));nt.any3d?Jn(this._container,te,S):xr(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=Ti.extend({options:{tolerance:0},getEvents:function(){var f=Ti.prototype.getEvents.call(this);return f.viewprereset=this._onViewPreReset,f},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Ti.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var f=this._container=document.createElement("canvas");pt(f,"mousemove",this._onMouseMove,this),pt(f,"click dblclick mousedown mouseup contextmenu",this._onClick,this),pt(f,"mouseout",this._handleMouseOut,this),f._leaflet_disable_events=!0,this._ctx=f.getContext("2d")},_destroyContainer:function(){q(this._redrawRequest),delete this._ctx,er(this._container),Bt(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)){Ti.prototype._update.call(this);var f=this._bounds,m=this._container,S=f.getSize(),k=nt.retina?2:1;xr(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",nt.retina&&this._ctx.scale(2,2),this._ctx.translate(-f.min.x,-f.min.y),this.fire("update")}},_reset:function(){Ti.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||W(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 nt.canvas?new Id(f):null}var _s=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">')}}(),Ym={_initContainer:function(){this._container=wt("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Ti.prototype._update.call(this),this.fire("update"))},_initPath:function(f){var m=f._container=_s("shape");gt(m,"leaflet-vml-shape "+(this.options.className||"")),m.coordsize="1 1",f._path=_s("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;er(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=_s("stroke")),U.appendChild(m),m.weight=k.weight+"px",m.color=k.color,m.opacity=k.opacity,k.dashArray?m.dashStyle=C(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=_s("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){as(f._container)},_bringToBack:function(f){to(f._container)}},oi=nt.vml?_s:Fe,_a=Ti.extend({_initContainer:function(){this._container=oi("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=oi("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){er(this._container),Bt(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Ti.prototype._update.call(this);var 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)),xr(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=oi("path");f.options.className&>(m,f.options.className),f.options.interactive&>(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){er(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){as(f._path)},_bringToBack:function(f){to(f._path)}});nt.vml&&_a.include(Ym);function dc(f){return nt.svg||nt.vml?new _a(f):null}Tt.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)||dc(f)}});var Zm=ao.extend({initialize:function(f,m){ao.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 e_(f,m){return new Zm(f,m)}_a.create=oi,_a.pointsToPath=ge,Ei.geometryToLayer=ms,Ei.coordsToLatLng=ac,Ei.coordsToLatLngs=Nl,Ei.latLngToCoords=sc,Ei.latLngsToCoords=lc,Ei.getFeature=vs,Ei.asFeature=uc,Tt.mergeOptions({boxZoom:!0});var xs=Ln.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(){pt(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Bt(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){er(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(),Rt(),Ku(),this._startPoint=this._map.mouseEventToContainerPoint(f),pt(document,{contextmenu:ti,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();xr(this._box,m.min),this._box.style.width=S.x+"px",this._box.style.height=S.y+"px"},_finish:function(){this._moved&&(er(this._box),Kt(this._container,"leaflet-crosshair")),us(),Yu(),Bt(document,{contextmenu:ti,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())}});Tt.addInitHook("addHandler","boxZoom",xs),Tt.mergeOptions({doubleClickZoom:!0});var Xm=Ln.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)}});Tt.addInitHook("addHandler","doubleClickZoom",Xm),Tt.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var $d=Ln.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=re(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),W(function(){m.panBy(St,{duration:st,easeLinearity:pe,noMoveStart:!0,animate:!0})}))}}});Tt.addInitHook("addHandler","dragging",$d),Tt.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Fd=Ln.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"),pt(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(),Bt(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(){pt(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Bt(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;ti(f)}}});Tt.addInitHook("addHandler","keyboard",Fd),Tt.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Ut=Ln.extend({addHooks:function(){pt(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Bt(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(f){var m=Rm(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),ti(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))}});Tt.addInitHook("addHandler","scrollWheelZoom",Ut);var Bd=600;Tt.mergeOptions({tapHold:nt.touchNative&&nt.safari&&nt.mobile,tapTolerance:15});var Il=Ln.extend({addHooks:function(){pt(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Bt(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()&&(pt(document,"touchend",gr),pt(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",m))},this),Bd),pt(document,"touchend touchcancel contextmenu",this._cancel,this),pt(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function f(){Bt(document,"touchend",gr),Bt(document,"touchend touchcancel",f)},_cancel:function(){clearTimeout(this._holdTimeout),Bt(document,"touchend touchcancel contextmenu",this._cancel,this),Bt(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)}});Tt.addInitHook("addHandler","tapHold",Il),Tt.mergeOptions({touchZoom:nt.touch,bounceAtZoomLimits:!0});var ws=Ln.extend({addHooks:function(){gt(this._map._container,"leaflet-touch-zoom"),pt(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Kt(this._map._container,"leaflet-touch-zoom"),Bt(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(),pt(document,"touchmove",this._onTouchMove,this),pt(document,"touchend touchcancel",this._onTouchEnd,this),gr(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),q(this._animRequest);var pe=a(m._move,m,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=W(pe,this,!0),gr(f)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,q(this._animRequest),Bt(document,"touchmove",this._onTouchMove,this),Bt(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))}});Tt.addInitHook("addHandler","touchZoom",ws),Tt.BoxZoom=xs,Tt.DoubleClickZoom=Xm,Tt.Drag=$d,Tt.Keyboard=Fd,Tt.ScrollWheelZoom=Ut,Tt.TapHold=Il,Tt.TouchZoom=ws,r.Bounds=z,r.Browser=nt,r.CRS=be,r.Canvas=Id,r.Circle=ic,r.CircleMarker=nc,r.Class=Q,r.Control=yn,r.DivIcon=fc,r.DivOverlay=Ci,r.DomEvent=Qu,r.DomUtil=Cl,r.Draggable=ri,r.Evented=se,r.FeatureGroup=io,r.GeoJSON=Ei,r.GridLayer=Fo,r.Handler=Ln,r.Icon=ba,r.ImageOverlay=$o,r.LatLng=ce,r.LatLngBounds=X,r.Layer=ni,r.LayerGroup=Io,r.LineUtil=Fm,r.Map=Tt,r.Marker=oo,r.Mixin=Od,r.Path=Do,r.Point=oe,r.PolyUtil=Vb,r.Polygon=ao,r.Polyline=bn,r.Popup=cc,r.PosAnimation=Ju,r.Projection=Kb,r.Rectangle=Zm,r.Renderer=Ti,r.SVG=_a,r.SVGOverlay=Nd,r.TileLayer=Bo,r.Tooltip=ys,r.Transformation=ue,r.Util=J,r.VideoOverlay=Rd,r.bind=a,r.bounds=re,r.canvas=Dd,r.circle=Rl,r.circleMarker=Vm,r.control=Lo,r.divIcon=Gm,r.extend=i,r.featureGroup=Um,r.geoJSON=Wm,r.geoJson=ii,r.gridLayer=bs,r.icon=zm,r.imageOverlay=qm,r.latLng=de,r.latLngBounds=le,r.layerGroup=kl,r.map=Mo,r.marker=Xb,r.point=G,r.polygon=Jb,r.polyline=Qb,r.popup=gs,r.rectangle=e_,r.setOptions=x,r.stamp=c,r.svg=dc,r.svgOverlay=Md,r.tileLayer=Ld,r.tooltip=Ml,r.transformation=ie,r.version=n,r.videoOverlay=Hm;var Qm=window.L;r.noConflict=function(){return window.L=Qm,this},window.L=r})}(Th,Th.exports)),Th.exports}var gm=_Se();const T5=Nt(gm);function Kj(e,t,r){return Object.freeze({instance:e,context:t,container:r})}function Yj(e,t){return t==null?function(n,i){const o=I.useRef();return o.current||(o.current=e(n,i)),o}:function(n,i){const o=I.useRef();o.current||(o.current=e(n,i));const a=I.useRef(n),{instance:s}=o.current;return I.useEffect(function(){a.current!==n&&(t(s,n,a.current),a.current=n)},[s,n,i]),o}}function xSe(e,t){I.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 iz(e){return function(r){const n=rz(),i=e(Gj(r,n),n);return J9(n.map,r.attribution),nz(i.current,r.eventHandlers),xSe(i.current,n),i}}function wSe(e,t){const r=Yj(e,t),n=iz(r);return mSe(n)}function OSe(e,t){const r=Yj(e),n=ySe(r,t);return vSe(n)}function SSe(e,t){const r=Yj(e,t),n=iz(r);return gSe(n)}function PSe(e,t,r){const{opacity:n,zIndex:i}=t;n!=null&&n!==r.opacity&&e.setOpacity(n),i!=null&&i!==r.zIndex&&e.setZIndex(i)}function wC(){return wC=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wC.apply(this,arguments)}function ESe({bounds:e,boundsOptions:t,center:r,children:n,className:i,id:o,placeholder:a,style:s,whenReady:c,zoom:u,...h},p){const[v]=I.useState({className:i,id:o,style:s}),[b,_]=I.useState(null);I.useImperativeHandle(p,()=>(b==null?void 0:b.map)??null,[b]);const x=I.useCallback(O=>{if(O!==null&&b===null){const P=new gm.Map(O,h);r!=null&&u!=null?P.setView(r,u):e!=null&&P.fitBounds(e,t),c!=null&&P.whenReady(c),_(hSe(P))}},[]);I.useEffect(()=>()=>{b==null||b.map.remove()},[b]);const w=b?Z.createElement(tz,{value:b},n):a??null;return Z.createElement("div",wC({},v,{ref:x}),w)}const CSe=I.forwardRef(ESe),TSe=wSe(function({position:t,...r},n){const i=new gm.Marker(t,r);return Kj(i,pSe(n,{overlayContainer:i}))},function(t,r,n){r.position!==n.position&&t.setLatLng(r.position),r.icon!=null&&r.icon!==n.icon&&t.setIcon(r.icon),r.zIndexOffset!=null&&r.zIndexOffset!==n.zIndexOffset&&t.setZIndexOffset(r.zIndexOffset),r.opacity!=null&&r.opacity!==n.opacity&&t.setOpacity(r.opacity),t.dragging!=null&&r.draggable!==n.draggable&&(r.draggable===!0?t.dragging.enable():t.dragging.disable())}),jSe=OSe(function(t,r){const n=new gm.Popup(t,r.overlayContainer);return Kj(n,r)},function(t,r,{position:n},i){I.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 r.map.on({popupopen:s,popupclose:c}),r.overlayContainer==null?(n!=null&&a.setLatLng(n),a.openOn(r.map)):r.overlayContainer.bindPopup(a),function(){var h;r.map.off({popupopen:s,popupclose:c}),(h=r.overlayContainer)==null||h.unbindPopup(),r.map.removeLayer(a)}},[t,r,i,n])}),ASe=SSe(function({url:t,...r},n){const i=new gm.TileLayer(t,Gj(r,n));return Kj(i,n)},function(t,r,n){PSe(t,r,n);const{url:i}=r;i!=null&&i!==n.url&&t.setUrl(i)}),kSe={"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"},oz={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"},Cr={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},Sn={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"},Vs={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"};class Ne{static getFirstMatch(t,r){const n=r.match(t);return n&&n.length>0&&n[1]||""}static getSecondMatch(t,r){const n=r.match(t);return n&&n.length>1&&n[2]||""}static matchAndReturnConst(t,r,n){if(t.test(r))return n}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 r=t.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(r.push(0),r[0]===10)switch(r[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 r=t.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(r.push(0),!(r[0]===1&&r[1]<5)){if(r[0]===1&&r[1]<6)return"Cupcake";if(r[0]===1&&r[1]>=6)return"Donut";if(r[0]===2&&r[1]<2)return"Eclair";if(r[0]===2&&r[1]===2)return"Froyo";if(r[0]===2&&r[1]>2)return"Gingerbread";if(r[0]===3)return"Honeycomb";if(r[0]===4&&r[1]<1)return"Ice Cream Sandwich";if(r[0]===4&&r[1]<4)return"Jelly Bean";if(r[0]===4&&r[1]>=4)return"KitKat";if(r[0]===5)return"Lollipop";if(r[0]===6)return"Marshmallow";if(r[0]===7)return"Nougat";if(r[0]===8)return"Oreo";if(r[0]===9)return"Pie"}}static getVersionPrecision(t){return t.split(".").length}static compareVersions(t,r,n=!1){const i=Ne.getVersionPrecision(t),o=Ne.getVersionPrecision(r);let a=Math.max(i,o),s=0;const c=Ne.map([t,r],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(n&&(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,r){const n=[];let i;if(Array.prototype.map)return Array.prototype.map.call(t,r);for(i=0;i<t.length;i+=1)n.push(r(t[i]));return n}static find(t,r){let n,i;if(Array.prototype.find)return Array.prototype.find.call(t,r);for(n=0,i=t.length;n<i;n+=1){const o=t[n];if(r(o,n))return o}}static assign(t,...r){const n=t;let i,o;if(Object.assign)return Object.assign(t,...r);for(i=0,o=r.length;i<o;i+=1){const a=r[i];typeof a=="object"&&a!==null&&Object.keys(a).forEach(c=>{n[c]=a[c]})}return t}static getBrowserAlias(t){return kSe[t]}static getBrowserTypeByAlias(t){return oz[t]||""}}const Vt=/version\/(\d+(\.?_?\d+)+)/i,RSe=[{test:[/googlebot/i],describe(e){const t={name:"Googlebot"},r=Ne.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||Ne.getFirstMatch(Vt,e);return r&&(t.version=r),t}},{test:[/opera/i],describe(e){const t={name:"Opera"},r=Ne.getFirstMatch(Vt,e)||Ne.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opr\/|opios/i],describe(e){const t={name:"Opera"},r=Ne.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||Ne.getFirstMatch(Vt,e);return r&&(t.version=r),t}},{test:[/SamsungBrowser/i],describe(e){const t={name:"Samsung Internet for Android"},r=Ne.getFirstMatch(Vt,e)||Ne.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Whale/i],describe(e){const t={name:"NAVER Whale Browser"},r=Ne.getFirstMatch(Vt,e)||Ne.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MZBrowser/i],describe(e){const t={name:"MZ Browser"},r=Ne.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||Ne.getFirstMatch(Vt,e);return r&&(t.version=r),t}},{test:[/focus/i],describe(e){const t={name:"Focus"},r=Ne.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||Ne.getFirstMatch(Vt,e);return r&&(t.version=r),t}},{test:[/swing/i],describe(e){const t={name:"Swing"},r=Ne.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||Ne.getFirstMatch(Vt,e);return r&&(t.version=r),t}},{test:[/coast/i],describe(e){const t={name:"Opera Coast"},r=Ne.getFirstMatch(Vt,e)||Ne.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){const t={name:"Opera Touch"},r=Ne.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||Ne.getFirstMatch(Vt,e);return r&&(t.version=r),t}},{test:[/yabrowser/i],describe(e){const t={name:"Yandex Browser"},r=Ne.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||Ne.getFirstMatch(Vt,e);return r&&(t.version=r),t}},{test:[/ucbrowser/i],describe(e){const t={name:"UC Browser"},r=Ne.getFirstMatch(Vt,e)||Ne.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Maxthon|mxios/i],describe(e){const t={name:"Maxthon"},r=Ne.getFirstMatch(Vt,e)||Ne.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/epiphany/i],describe(e){const t={name:"Epiphany"},r=Ne.getFirstMatch(Vt,e)||Ne.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/puffin/i],describe(e){const t={name:"Puffin"},r=Ne.getFirstMatch(Vt,e)||Ne.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sleipnir/i],describe(e){const t={name:"Sleipnir"},r=Ne.getFirstMatch(Vt,e)||Ne.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/k-meleon/i],describe(e){const t={name:"K-Meleon"},r=Ne.getFirstMatch(Vt,e)||Ne.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/micromessenger/i],describe(e){const t={name:"WeChat"},r=Ne.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||Ne.getFirstMatch(Vt,e);return r&&(t.version=r),t}},{test:[/qqbrowser/i],describe(e){const t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},r=Ne.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||Ne.getFirstMatch(Vt,e);return r&&(t.version=r),t}},{test:[/msie|trident/i],describe(e){const t={name:"Internet Explorer"},r=Ne.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/\sedg\//i],describe(e){const t={name:"Microsoft Edge"},r=Ne.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/edg([ea]|ios)/i],describe(e){const t={name:"Microsoft Edge"},r=Ne.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/vivaldi/i],describe(e){const t={name:"Vivaldi"},r=Ne.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/seamonkey/i],describe(e){const t={name:"SeaMonkey"},r=Ne.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sailfish/i],describe(e){const t={name:"Sailfish"},r=Ne.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return r&&(t.version=r),t}},{test:[/silk/i],describe(e){const t={name:"Amazon Silk"},r=Ne.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/phantom/i],describe(e){const t={name:"PhantomJS"},r=Ne.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/slimerjs/i],describe(e){const t={name:"SlimerJS"},r=Ne.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t={name:"BlackBerry"},r=Ne.getFirstMatch(Vt,e)||Ne.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(web|hpw)[o0]s/i],describe(e){const t={name:"WebOS Browser"},r=Ne.getFirstMatch(Vt,e)||Ne.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/bada/i],describe(e){const t={name:"Bada"},r=Ne.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/tizen/i],describe(e){const t={name:"Tizen"},r=Ne.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||Ne.getFirstMatch(Vt,e);return r&&(t.version=r),t}},{test:[/qupzilla/i],describe(e){const t={name:"QupZilla"},r=Ne.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||Ne.getFirstMatch(Vt,e);return r&&(t.version=r),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){const t={name:"Firefox"},r=Ne.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/electron/i],describe(e){const t={name:"Electron"},r=Ne.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MiuiBrowser/i],describe(e){const t={name:"Miui"},r=Ne.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/chromium/i],describe(e){const t={name:"Chromium"},r=Ne.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||Ne.getFirstMatch(Vt,e);return r&&(t.version=r),t}},{test:[/chrome|crios|crmo/i],describe(e){const t={name:"Chrome"},r=Ne.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/GSA/i],describe(e){const t={name:"Google Search"},r=Ne.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test(e){const t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe(e){const t={name:"Android Browser"},r=Ne.getFirstMatch(Vt,e);return r&&(t.version=r),t}},{test:[/playstation 4/i],describe(e){const t={name:"PlayStation 4"},r=Ne.getFirstMatch(Vt,e);return r&&(t.version=r),t}},{test:[/safari|applewebkit/i],describe(e){const t={name:"Safari"},r=Ne.getFirstMatch(Vt,e);return r&&(t.version=r),t}},{test:[/.*/i],describe(e){const t=/^(.*)\/(.*) /,r=/^(.*)\/(.*)[ \t]\((.*)/,i=e.search("\\(")!==-1?r:t;return{name:Ne.getFirstMatch(i,e),version:Ne.getSecondMatch(i,e)}}}],NSe=[{test:[/Roku\/DVP/],describe(e){const t=Ne.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:Sn.Roku,version:t}}},{test:[/windows phone/i],describe(e){const t=Ne.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:Sn.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){const t=Ne.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),r=Ne.getWindowsVersionName(t);return{name:Sn.Windows,version:t,versionName:r}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){const t={name:Sn.iOS},r=Ne.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return r&&(t.version=r),t}},{test:[/macintosh/i],describe(e){const t=Ne.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),r=Ne.getMacOSVersionName(t),n={name:Sn.MacOS,version:t};return r&&(n.versionName=r),n}},{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:Sn.iOS,version:t}}},{test(e){const t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe(e){const t=Ne.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),r=Ne.getAndroidVersionName(t),n={name:Sn.Android,version:t};return r&&(n.versionName=r),n}},{test:[/(web|hpw)[o0]s/i],describe(e){const t=Ne.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),r={name:Sn.WebOS};return t&&t.length&&(r.version=t),r}},{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:Sn.BlackBerry,version:t}}},{test:[/bada/i],describe(e){const t=Ne.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:Sn.Bada,version:t}}},{test:[/tizen/i],describe(e){const t=Ne.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:Sn.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:Sn.Linux}}},{test:[/CrOS/],describe(){return{name:Sn.ChromeOS}}},{test:[/PlayStation 4/],describe(e){const t=Ne.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:Sn.PlayStation4,version:t}}}],MSe=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){const t=Ne.getFirstMatch(/(can-l01)/i,e)&&"Nova",r={type:Cr.mobile,vendor:"Huawei"};return t&&(r.model=t),r}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:Cr.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:Cr.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:Cr.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:Cr.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:Cr.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:Cr.tablet}}},{test(e){const t=e.test(/ipod|iphone/i),r=e.test(/like (ipod|iphone)/i);return t&&!r},describe(e){const t=Ne.getFirstMatch(/(ipod|iphone)/i,e);return{type:Cr.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:Cr.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:Cr.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:Cr.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:Cr.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:Cr.mobile,vendor:"Microsoft"}}},{test(e){const t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:Cr.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:Cr.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:Cr.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:Cr.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:Cr.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:Cr.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:Cr.tv}}}],LSe=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:Vs.Blink};const r=Ne.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:Vs.EdgeHTML,version:r}}},{test:[/trident/i],describe(e){const t={name:Vs.Trident},r=Ne.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test(e){return e.test(/presto/i)},describe(e){const t={name:Vs.Presto},r=Ne.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test(e){const t=e.test(/gecko/i),r=e.test(/like gecko/i);return t&&!r},describe(e){const t={name:Vs.Gecko},r=Ne.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:Vs.Blink}}},{test:[/(apple)?webkit/i],describe(e){const t={name:Vs.WebKit},r=Ne.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}}];class j5{constructor(t,r=!1){if(t==null||t==="")throw new Error("UserAgent parameter can't be empty");this._ua=t,this.parsedResult={},r!==!0&&this.parse()}getUA(){return this._ua}test(t){return t.test(this._ua)}parseBrowser(){this.parsedResult.browser={};const t=Ne.find(RSe,r=>{if(typeof r.test=="function")return r.test(this);if(r.test instanceof Array)return r.test.some(n=>this.test(n));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(NSe,r=>{if(typeof r.test=="function")return r.test(this);if(r.test instanceof Array)return r.test.some(n=>this.test(n));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:r}=this.getOS();return t?String(r).toLowerCase()||"":r||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(t=!1){const{type:r}=this.getPlatform();return t?String(r).toLowerCase()||"":r||""}parsePlatform(){this.parsedResult.platform={};const t=Ne.find(MSe,r=>{if(typeof r.test=="function")return r.test(this);if(r.test instanceof Array)return r.test.some(n=>this.test(n));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(LSe,r=>{if(typeof r.test=="function")return r.test(this);if(r.test instanceof Array)return r.test.some(n=>this.test(n));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 r={};let n=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"&&(r[s]=c,n+=1)}),n>0){const s=Object.keys(r),c=Ne.find(s,h=>this.isOS(h));if(c){const h=this.satisfies(r[c]);if(h!==void 0)return h}const u=Ne.find(s,h=>this.isPlatform(h));if(u){const h=this.satisfies(r[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,r=!1){const n=this.getBrowserName().toLowerCase();let i=t.toLowerCase();const o=Ne.getBrowserTypeByAlias(i);return r&&o&&(i=o.toLowerCase()),i===n}compareVersion(t){let r=[0],n=t,i=!1;const o=this.getBrowserVersion();if(typeof o=="string")return t[0]===">"||t[0]==="<"?(n=t.substr(1),t[1]==="="?(i=!0,n=t.substr(2)):r=[],t[0]===">"?r.push(1):r.push(-1)):t[0]==="="?n=t.substr(1):t[0]==="~"&&(i=!0,n=t.substr(1)),r.indexOf(Ne.compareVersions(o,n,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,r=!1){return this.isBrowser(t,r)||this.isOS(t)||this.isPlatform(t)}some(t=[]){return t.some(r=>this.is(r))}}/*!
|
||
* Bowser - a browser detector
|
||
* https://github.com/lancedikson/bowser
|
||
* MIT License | (c) Dustin Diaz 2012-2015
|
||
* MIT License | (c) Denis Demchenko 2015-2019
|
||
*/class ISe{static getParser(t,r=!1){if(typeof t!="string")throw new Error("UserAgent should be a string");return new j5(t,r)}static parse(t){return new j5(t).getResult()}static get BROWSER_MAP(){return oz}static get ENGINE_MAP(){return Vs}static get OS_MAP(){return Sn}static get PLATFORMS_MAP(){return Cr}}var DSe=Object.defineProperty,$Se=(e,t,r)=>t in e?DSe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,tl=(e,t,r)=>$Se(e,typeof t!="symbol"?t+"":t,r);const FSe=e=>(e==null?void 0:e.type)===MT.INVALID_ARGUMENT,BSe=e=>(e==null?void 0:e.type)===MT.INVALID_SHORT_URL_DELETION,USe=e=>!!e&&typeof e=="object"&&["type","detail","title","status"].every(t=>t in e),Oi=e=>USe(e)?e:void 0,Zj=e=>"error"in e,aa=({errorData:e,fallbackMessage:t})=>g.jsxs(g.Fragment,{children:[(e==null?void 0:e.detail)??t,FSe(e)&&g.jsxs("p",{className:"mb-0",children:["Invalid elements: [",e.invalidElements.join(", "),"]"]})]}),ku=({style:e,className:t,...r})=>g.jsx("button",{type:"button",className:ze("border-0",t),style:{backgroundColor:"inherit",fontWeight:"inherit",color:"inherit",...e},...r}),az=I.createContext(""),zSe=az.Provider,_l=()=>I.useContext(az),sz=I.createContext(void 0),{Provider:Xj}=sz,jb=()=>I.useContext(sz),VSe=5,Qj=()=>{const[e,t]=I.useState([]),r=I.useMemo(()=>e.length>=VSe,[e.length]),n=I.useCallback(s=>!r&&t(c=>[...c,s]),[r]),i=I.useCallback(s=>!r&&e.every(c=>c.name!==s),[e,r]),o=I.useCallback(s=>t(c=>c.filter(u=>u!==s)),[]),a=I.useCallback(()=>t([]),[]);return{itemsToCompare:e,addItemToCompare:n,removeItemToCompare:o,clearItemsToCompare:a,canAddItemWithName:i}},Jj=({className:e,type:t})=>{const r=_l(),n=jb(),i=I.useMemo(()=>n?encodeURIComponent(n.itemsToCompare.map(c=>c.query).join(",")):"",[n]);if(!n||n.itemsToCompare.length===0)return null;const{itemsToCompare:o,clearItemsToCompare:a,removeItemToCompare:s}=n;return g.jsx("div",{className:ze("top-sticky",e),children:g.jsxs(Wt,{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:ze("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:Ht,to:`${r}/${t}/compare-visits?${t}=${i}`,children:[g.jsx(Ge,{icon:j0,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:"×"})]})]})})},WSe=(e,{maxVersion:t,minVersion:r})=>{const n=!r||HP(e,r,">=");return(!t||HP(e,t,"<="))&&n},lz={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(lz);const po=(e,t)=>WSe(t==="latest"?"999.99.99":t,lz[e]),uz=e=>({excludeBotsOnShortUrls:po("excludeBotsOnShortUrls",e),filterDisabledUrls:po("filterDisabledUrls",e),deviceLongUrls:po("deviceLongUrls",e),shortUrlVisitsDeletion:po("shortUrlVisitsDeletion",e),orphanVisitsDeletion:po("orphanVisitsDeletion",e),shortUrlRedirectRules:po("shortUrlRedirectRules",e),qrCodeColors:po("qrCodeColors",e),urlValidation:po("urlValidation",e),ipRedirectCondition:po("ipRedirectCondition",e),geolocationRedirectCondition:po("geolocationRedirectCondition",e),filterShortUrlsByDomain:po("filterShortUrlsByDomain",e)}),cz=I.createContext(uz("0.0.0")),qSe=cz.Provider,HSe=e=>I.useMemo(()=>uz(e),[e]),bi=e=>I.useContext(cz)[e],qf="DEFAULT",Eg=({className:e="",placement:t,children:r})=>{const n=Yi();return g.jsxs(g.Fragment,{children:[g.jsx("span",{className:e,ref:n,children:g.jsx(Ge,{icon:XC})}),g.jsx(wi,{target:n,placement:t,children:r})]})},fz=e=>t=>{t.preventDefault(),e()},eA=(e,t,r=1)=>LT(r,e+1).map(t),GSe=e=>Array.isArray(e)&&e.length===0||typeof e=="string"&&e===""||typeof e=="object"&&Object.keys(e).length===0,au=e=>e!=null&&!GSe(e),UO=e=>e||null,OC=e=>e?"true":"false",zO=e=>e===void 0?void 0:OC(e),VO=({isLast:e,...t})=>g.jsx(wg,{...t,required:!1,type:"url",placeholder:"No redirect",className:e?"mb-0":""}),KSe=({isOpen:e,toggle:t,domain:r,editDomainRedirects:n})=>{var i,o,a;const[s,c]=I.useState(((i=r.redirects)==null?void 0:i.baseUrlRedirect)??""),[u,h]=I.useState(((o=r.redirects)==null?void 0:o.regular404Redirect)??""),[p,v]=I.useState(((a=r.redirects)==null?void 0:a.invalidShortUrlRedirect)??""),b=fz(async()=>n({domain:r.domain,redirects:{baseUrlRedirect:UO(s),regular404Redirect:UO(u),invalidShortUrlRedirect:UO(p)}}).then(t));return g.jsx(Yn,{isOpen:e,toggle:t,centered:!0,children:g.jsxs("form",{name:"domainRedirectsModal",onSubmit:b,children:[g.jsxs(la,{toggle:t,children:["Edit redirects for ",g.jsx("b",{children:r.domain})]}),g.jsxs(Eo,{children:[g.jsxs(VO,{value:s,onChange:c,children:[g.jsxs(Eg,{className:"me-2",placement:"bottom",children:["Visitors accessing the base url, as in ",g.jsxs("b",{children:["https://",r.domain,"/"]}),", will be redirected to this URL."]}),"Base URL"]}),g.jsxs(VO,{value:u,onChange:h,children:[g.jsxs(Eg,{className:"me-2",placement:"bottom",children:["Visitors accessing a url not matching a short URL pattern, as in ",g.jsxs("b",{children:["https://",r.domain,"/???/[...]"]}),", will be redirected to this URL."]}),"Regular 404"]}),g.jsxs(VO,{value:p,isLast:!0,onChange:v,children:[g.jsx(Eg,{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(Ja,{children:[g.jsx(_t,{color:"link",type:"button",onClick:t,children:"Cancel"}),g.jsx(_t,{color:"primary",children:"Save"})]})]})})},YSe=({domain:e,editDomainRedirects:t})=>{const[r,n]=ur(),i=_l(),o=jb(),a=bi("filterShortUrlsByDomain");return g.jsxs($0,{children:[g.jsxs(Ye,{tag:Ht,to:`${i}/domain/${e.domain}${e.isDefault?`_${qf}`:""}/visits`,children:[g.jsx(Ge,{icon:ZC,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:j0,fixedWidth:!0})," Compare visits"]}),a&&g.jsxs(Ye,{tag:Ht,to:`${i}/list-short-urls/1?domain=${e.isDefault?qf:e.domain}`,children:[g.jsx(Ge,{icon:KC,fixedWidth:!0})," Short URLs"]}),g.jsx(Ye,{divider:!0,tag:"hr"}),g.jsxs(Ye,{onClick:n,children:[g.jsx(Ge,{icon:YC,fixedWidth:!0})," Edit redirects"]}),g.jsx(KSe,{domain:e,isOpen:r,toggle:n,editDomainRedirects:t})]})},ZSe=(e,t)=>{const r=n=>i=>{i.event.composedPath().some(({classList:o})=>o==null?void 0:o.contains("visits-table"))||document.querySelector(".modal")||n()};return nae({delta:40,onSwipedLeft:r(t),onSwipedRight:r(e)})},XSe=(e,t)=>{const[r,n]=I.useState(t),i=I.useCallback(o=>{const{location:a,history:s}=window,c=MF(a.search);c[e]=o,s.pushState(null,"",`${a.pathname}?${D0(c)}`),n(o)},[e]);return[r,i]},tA=e=>{const t=Xf();return I.useMemo(()=>{var r;return((r=t[e])==null?void 0:r.split(",").filter(Boolean))??[]},[e,t])},QSe=()=>{const e=sa();return I.useCallback(()=>e(-1),[e])},rA=(e,t)=>{const r=I.useCallback(()=>t(`(max-width: ${e}px)`).matches,[t,e]),[n,i]=I.useState(r());return I.useEffect(()=>{const o=()=>i(r());return window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[r]),n},JSe=(e,t,r)=>{I.useEffect(()=>{if(!r)return()=>{};const n=i=>i.key===e&&t();return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[r,t,e])},ePe=({status:e,matchMedia:t=window.matchMedia})=>{const r=Yi(),n=rA(991,t);return e==="validating"?g.jsx(Ge,{fixedWidth:!0,icon:n$,spin:!0}):g.jsxs(g.Fragment,{children:[g.jsx("span",{ref:r,children:e==="valid"?g.jsx(Ge,{fixedWidth:!0,icon:Zh,className:"text-muted"}):g.jsx(Ge,{fixedWidth:!0,icon:nS,className:"text-danger"})}),g.jsx(wi,{target:r,placement:n?"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(Gn,{href:"https://slnk.to/multi-domain-docs",children:"documentation"})," in order to find out what is missing."]})})]})},WO=({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)"})]})]}),tPe=()=>g.jsxs(g.Fragment,{children:[g.jsx(Ge,{fixedWidth:!0,icon:IK,className:"text-primary",id:"defaultDomainIcon"}),g.jsx(wi,{target:"defaultDomainIcon",placement:"right",children:"Default domain"})]}),rPe=({domain:e,editDomainRedirects:t,checkDomainHealth:r,defaultRedirects:n})=>{const{domain:i,isDefault:o,redirects:a,status:s}=e;return I.useEffect(()=>{r(e.domain)},[r,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(tPe,{})}),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(WO,{fallback:n==null?void 0:n.baseUrlRedirect})}),g.jsx("td",{className:"responsive-table__cell","data-th":"Regular 404 redirect",children:(a==null?void 0:a.regular404Redirect)??g.jsx(WO,{fallback:n==null?void 0:n.regular404Redirect})}),g.jsx("td",{className:"responsive-table__cell","data-th":"Invalid short URL redirect",children:(a==null?void 0:a.invalidShortUrlRedirect)??g.jsx(WO,{fallback:n==null?void 0:n.invalidShortUrlRedirect})}),g.jsx("td",{className:"responsive-table__cell text-lg-center","data-th":"Status",children:g.jsx(ePe,{status:s})}),g.jsx("td",{className:"responsive-table__cell text-end",children:g.jsx(YSe,{domain:e,editDomainRedirects:t})})]})},A5=[{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}],nPe=({domainsList:e,filterDomains:t,editDomainRedirects:r,checkDomainHealth:n})=>{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=Qj();return s?g.jsx(qa,{loading:!0}):g.jsxs(Xj,{value:p,children:[g.jsx(im,{className:"mb-3",onChange:t}),g.jsx(Jj,{type:"domains",className:"mb-3"}),c?g.jsx(Tn,{type:"error",children:g.jsx(aa,{errorData:u,fallbackMessage:"Error loading domains :("})}):g.jsx(Wt,{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:A5.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:A5.length,className:"text-center",children:"No results found"})}),o.map(v=>g.jsx(rPe,{domain:v,editDomainRedirects:r,checkDomainHealth:n,defaultRedirects:h},v.domain))]})]})})]})},Vr=(e,t)=>QF(e,t,{serializeError:r=>r}),iPe="shlink/domainRedirects/EDIT_DOMAIN_REDIRECTS",oPe=e=>Vr(iPe,async({domain:t,redirects:r})=>{const n=await e().editDomainRedirects({domain:t,...r});return{domain:t,redirects:n}}),sg="shlink/domainsList",lg={domains:[],filteredDomains:[],loading:!1,error:!1},k5=({domain:e,redirects:t})=>r=>r.domain!==e?r:{...r,redirects:t},R5=(e,t)=>r=>r.domain!==e?r:{...r,status:t},aPe=(e,t,r)=>{const n=Vr(`${sg}/listDomains`,async()=>{const{data:s,defaultRedirects:c}=await e().listDomains();return{domains:s.map(u=>({...u,status:"validating"})),defaultRedirects:c}}),i=Vr(`${sg}/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=jn(`${sg}/filterDomains`),{reducer:a}=Tr({name:sg,initialState:lg,reducers:{},extraReducers:s=>{s.addCase(n.pending,()=>({...lg,loading:!0})),s.addCase(n.rejected,(c,{error:u})=>({...lg,error:!0,errorData:Oi(u)})),s.addCase(n.fulfilled,(c,{payload:u})=>({...lg,...u,filteredDomains:u.domains})),s.addCase(i.fulfilled,({domains:c,filteredDomains:u,...h},{payload:p})=>({...h,domains:c.map(R5(p.domain,p.status)),filteredDomains:u.map(R5(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(k5(u)),filteredDomains:c.filteredDomains.map(k5(u))})),s.addCase(r.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:n,checkDomainHealth:i,filterDomains:o}},sPe=(e,t)=>{e.serviceFactory("ManageDomains",()=>nPe),e.decorator("ManageDomains",t(["domainsList"],["filterDomains","editDomainRedirects","checkDomainHealth"])),e.serviceFactory("domainsListReducerCreator",aPe,"apiClientFactory","editDomainRedirects","createShortUrl"),e.serviceFactory("domainsListReducer",r=>r.reducer,"domainsListReducerCreator"),e.serviceFactory("listDomains",r=>r.listDomains,"domainsListReducerCreator"),e.serviceFactory("filterDomains",r=>r.filterDomains,"domainsListReducerCreator"),e.serviceFactory("editDomainRedirects",oPe,"apiClientFactory"),e.serviceFactory("checkDomainHealth",r=>r.checkDomainHealth,"domainsListReducerCreator")},N5="shlink/mercure",lPe={loading:!0,error:!1},uPe=e=>{const t=Vr(`${N5}/loadMercureInfo`,n=>{if(n&&n.realTimeUpdates&&!n.realTimeUpdates.enabled)throw new Error("Real time updates not enabled");return e().mercureInfo()}),{reducer:r}=Tr({name:N5,initialState:lPe,reducers:{},extraReducers:n=>{n.addCase(t.pending,i=>({...i,loading:!0,error:!1})),n.addCase(t.rejected,i=>({...i,loading:!1,error:!0})),n.addCase(t.fulfilled,(i,{payload:o})=>({...o,loading:!1,error:!1}))}});return{loadMercureInfo:t,reducer:r}},cPe=e=>{e.serviceFactory("mercureInfoReducerCreator",uPe,"apiClientFactory"),e.serviceFactory("mercureInfoReducer",t=>t.reducer,"mercureInfoReducerCreator"),e.serviceFactory("loadMercureInfo",t=>t.loadMercureInfo,"mercureInfoReducerCreator")};function cr(e){return I.useRef(e).current}function fr(e,t){return(r,n=globalThis.console)=>(t.forEach(i=>{const o=r[i];e[i]=o}),e)}const fPe=(e,t,r,n)=>{const{mercureHubUrl:i,token:o,loading:a,error:s}=e;if(a||s||!i)return;const c=({data:p})=>r(JSON.parse(p)),u=({status:p})=>p===401&&n(),h=t.map(p=>{const v=new URL(i);v.searchParams.append("topic",p);const b=new aae.EventSourcePolyfill(v,{headers:{Authorization:`Bearer ${o}`}});return b.onmessage=c,b.onerror=u,b});return()=>h.forEach(p=>p.close())};function Ao(e,t){const r=new Set;return n=>{const{createNewVisits:i,loadMercureInfo:o,mercureInfo:a}=n,s=Kf();return I.useEffect(()=>{const{interval:c}=a,u=b=>c?r.add(b):i([b]),h=t(s),p=fPe(a,h,u,o);if(!c)return p;const v=setInterval(()=>{i([...r]),r.clear()},c*1e3*60);return()=>{clearInterval(v),p==null||p()}},[i,o,a,s]),g.jsx(e,{...n})}}class kn{}tl(kn,"visits","https://shlink.io/new-visit"),tl(kn,"orphanVisits","https://shlink.io/new-orphan-visit"),tl(kn,"shortUrlVisits",e=>`https://shlink.io/new-visit/${e}`);const cd=jn("shlink/visitCreation/createNewVisits",e=>({payload:{createdVisits:e}})),Hh=(e,t,r)=>r==null?e.shortCode===t&&!e.domain:e.shortCode===t&&e.domain===r,dPe=(e,t)=>!e.domain&&t===qf?!0:e.domain===t,hPe=(e,t)=>{const r=(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:r}:{longUrl:"",validateUrl:r}},dz=e=>e.replaceAll("/","__"),nA=e=>e.replaceAll("__","/"),iA=({domain:e,shortCode:t})=>`${e??qf}__${dz(t)}`,hz=e=>{const[t,r]=e.split(/__(.+)/);if(!r)throw new Error(`It was not possible to parse domain and short code from "${e}"`);return{domain:t===qf?null:t,shortCode:nA(r)}},oA="shlink/shortUrlDeletion",M5={shortCode:"",loading:!1,deleted:!1,error:!1},pPe=e=>Vr(`${oA}/deleteShortUrl`,async({shortCode:t,domain:r})=>(await e().deleteShortUrl(t,r),{shortCode:t,domain:r})),pz=jn(`${oA}/shortUrlDeleted`),mPe=e=>{const{actions:t,reducer:r}=Tr({name:oA,initialState:M5,reducers:{resetDeleteShortUrl:()=>M5},extraReducers:i=>{i.addCase(e.pending,o=>({...o,loading:!0,error:!1,deleted:!1})),i.addCase(e.rejected,(o,{error:a})=>({...o,errorData:Oi(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:n}=t;return{reducer:r,resetDeleteShortUrl:n}},mz="shlink/shortUrlsList",vz=5,vPe={loading:!0,error:!1},gPe=e=>Vr(`${mz}/listShortUrls`,t=>e().listShortUrls(t??{})),yPe=(e,t,r)=>Tr({name:mz,initialState:vPe,reducers:{},extraReducers:n=>{n.addCase(e.pending,i=>({...i,loading:!0,error:!1})),n.addCase(e.rejected,()=>({loading:!1,error:!0})),n.addCase(e.fulfilled,(i,{payload:o})=>({loading:!1,error:!1,shortUrls:o})),n.addCase(r.fulfilled,(i,{payload:o})=>{i.shortUrls&&(i.shortUrls.data=[o,...i.shortUrls.data.slice(0,vz-1)],i.shortUrls.pagination.totalItems+=1)}),n.addCase(t.fulfilled,(i,{payload:o})=>{i.shortUrls&&(i.shortUrls.data=i.shortUrls.data.map(a=>{const{shortCode:s,domain:c}=o;return Hh(a,s,c)?o:a}))}),n.addCase(pz,(i,{payload:o})=>{i.shortUrls&&(i.shortUrls.data=i.shortUrls.data.filter(a=>!Hh(a,o.shortCode,o.domain)),i.shortUrls.pagination.totalItems-=1)}),n.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&&Hh(a,c.shortCode,c.domain)))==null?void 0:s.shortUrl)??a}))})}}),L5=10,{ceil:bPe}=Math,_Pe=new Intl.NumberFormat("en-US"),Sr=e=>_Pe.format(Number(e)),xPe=e=>bPe(e/L5)*L5,SC=({children:e,title:t,link:r,tooltip:n})=>{const i=Yi();return g.jsxs(g.Fragment,{children:[g.jsxs(xi,{innerRef:i,className:"highlight-card",body:!0,tag:Ht,to:r,children:[g.jsx(Ge,{size:"3x",className:"highlight-card__link-icon",icon:_ae}),g.jsx(xF,{className:"lh-sm fw-semibold text-uppercase fs-5 highlight-card__title",children:t}),g.jsx(_F,{className:"fs-2 fw-semibold lh-sm",children:e})]}),n&&g.jsx(wi,{target:i,placement:"bottom",children:n})]})},I5=({loading:e,excludeBots:t,visitsSummary:r,...n})=>g.jsx(SC,{tooltip:r.bots!==void 0?g.jsxs(g.Fragment,{children:[t?"Plus":"Including"," ",g.jsx("strong",{children:Sr(r.bots)})," potential bot visits"]}):void 0,...n,children:e?"Loading...":Sr(t&&r.nonBots!==void 0?r.nonBots:r.total)}),D5=({children:e,titleLinkText:t,titleLink:r,title:n})=>g.jsxs(xi,{children:[g.jsxs(tm,{className:"d-flex justify-content-between align-items-center",children:[g.jsx("span",{className:"d-sm-none",children:n}),g.jsx("h5",{className:"d-none d-sm-inline m-0",children:n}),g.jsxs(Ht,{to:r,children:[t," »"]})]}),g.jsx(em,{children:e})]}),gz=Ao(({shortUrlsList:e,listShortUrls:t,tagsList:r,loadVisitsOverview:n,visitsOverview:i})=>{const{ShortUrlsTable:o,CreateShortUrl:a}=cr(gz),{loading:s,shortUrls:c}=e,{loading:u}=r,{loading:h,nonOrphanVisits:p,orphanVisits:v}=i,b=_l(),_=sa(),x=Rn("visits");return I.useEffect(()=>{t({itemsPerPage:vz,orderBy:{field:"dateCreated",dir:"DESC"}}),n()},[t,n]),g.jsxs(g.Fragment,{children:[g.jsxs(Yo,{children:[g.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:g.jsx(I5,{title:"Visits",link:`${b}/non-orphan-visits`,excludeBots:(x==null?void 0:x.excludeBots)??!1,loading:h,visitsSummary:p})}),g.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:g.jsx(I5,{title:"Orphan visits",link:`${b}/orphan-visits`,excludeBots:(x==null?void 0:x.excludeBots)??!1,loading:h,visitsSummary:v})}),g.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:g.jsx(SC,{title:"Short URLs",link:`${b}/list-short-urls/1`,children:s?"Loading...":Sr((c==null?void 0:c.pagination.totalItems)??0)})}),g.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:g.jsx(SC,{title:"Tags",link:`${b}/manage-tags`,children:u?"Loading...":Sr(r.tags.length)})})]}),g.jsxs("div",{className:"d-flex flex-column gap-3",children:[g.jsx(D5,{title:"Create a short URL",titleLinkText:"Advanced options",titleLink:`${b}/create-short-url`,children:g.jsx(a,{basicMode:!0})}),g.jsx(D5,{title:"Recently created URLs",titleLinkText:"See all",titleLink:`${b}/list-short-urls/1`,children:g.jsx(o,{shortUrlsList:e,className:"mb-0",onTagClick:w=>_(`${b}/list-short-urls/1?tags=${encodeURIComponent(w)}`)})})]})]})},()=>[kn.visits,kn.orphanVisits]),wPe=fr(gz,["ShortUrlsTable","CreateShortUrl"]);function OPe(e,t){e.factory("Overview",wPe),e.decorator("Overview",t(["shortUrlsList","tagsList","mercureInfo","visitsOverview"],["listShortUrls","createNewVisits","loadMercureInfo","loadVisitsOverview"]))}const yz="shlink/setShortUrlRedirectRules",$5={saving:!1,saved:!1,error:!1},SPe=e=>Vr(`${yz}/setShortUrlRedirectRules`,({shortUrl:t,data:r})=>{const{shortCode:n,domain:i}=t;return e().setShortUrlRedirectRules(n,i,r)}),PPe=e=>{const{reducer:t,actions:r}=Tr({name:yz,initialState:$5,reducers:{resetSetRules:()=>$5},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:Oi(a)})),i.addCase(e.fulfilled,()=>({saving:!1,error:!1,saved:!0}))}}),{resetSetRules:n}=r;return{reducer:t,resetSetRules:n}},bz="shlink/getShortUrlRedirectRules",EPe={loading:!0,error:!1},CPe=e=>Vr(`${bz}/getShortUrlRedirectRules`,({shortCode:t,domain:r})=>e().getShortUrlRedirectRules(t,r)),TPe=e=>Tr({name:bz,initialState:EPe,reducers:{},extraReducers:t=>{t.addCase(e.pending,()=>({loading:!0,error:!1})),t.addCase(e.rejected,()=>({loading:!1,error:!0})),t.addCase(e.fulfilled,(r,{payload:n})=>({loading:!1,error:!1,...n}))}});function jPe(e,t){var r=!1;return function(...n){r||(e.call(null,...n),r=!0,setTimeout(function(){r=!1},t))}}function _z(e){return e.split(" ").filter(t=>t)}var xz=typeof window<"u";function Ru(e,t,r=!1){if(!t)return;const n=_z(t);if(n.length&&!n.includes("longTouch"))for(const i of e){if(!ym(i)||!ta.has(i)){i.classList.add(...n);continue}const o=[],a=ta.get(i);if(a){for(const s of n)i.classList.contains(s)?i.classList.contains(s)&&r===!1&&o.push(s):i.classList.add(s);a.privateClasses=o,ta.set(i,a)}}}function p0(e,t){if(!t)return;const r=_z(t);if(r.length)for(const n of e){if(!ym(n)){n.classList.remove(...r);continue}const i=ta.get(n);if(i)for(const o of r)i.privateClasses.includes(o)||n.classList.remove(o)}}function wz(e){let t=e.parentNode;for(;t!==null&&t.nodeType===1&&t instanceof HTMLElement;){const r=window.getComputedStyle(t).getPropertyValue("overflow");if(r==="scroll"||r==="auto")return t;t=t.parentNode}return document.documentElement}function APe(e){if(!(e.e instanceof TouchEvent))return;const t=e.e.touches[0].clientX,r=e.e.touches[0].clientY;let n=document.elementFromPoint(t,r);if(!ym(n))return;let i,o=!0;for(;n&&o;){if(ta.has(n)||bo.has(n)){o=!1,i=bo.has(n);break}n=n.parentNode}if(i){const a=bo.get(n);return a?{parent:{el:n,data:a}}:void 0}else{const a=ta.get(n);if(!a)return;const s=bo.get(n.parentNode);return s?{node:{el:n,data:a},parent:{el:n.parentNode,data:s}}:void 0}}function ym(e){return e instanceof HTMLElement&&e.parentNode instanceof HTMLElement}function Oz(e,t){const r=new AbortController;for(const n in t){const i=t[n];e.addEventListener(n,i,{signal:r.signal,passive:!1})}return r}function Sz(e,t,r=!1){const n=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(n))r===!1&&o&&i.includes(o)||t.style.setProperty(o,n.getPropertyValue(o),n.getPropertyPriority(o));for(const o of Array.from(e.children)){if(!ym(o))continue;const a=t.children[Array.from(e.children).indexOf(o)];Sz(o,a,r)}}function Bu(e){return e instanceof DragEvent?{x:e.clientX,y:e.clientY}:{x:e.touches[0].clientX,y:e.touches[0].clientY}}Array();var F5={up:[0,-1],down:[0,1],left:[-1,0],right:[1,0]},ta=new WeakMap,bo=new WeakMap,yt=void 0;function kPe(){yt=void 0}function Pz(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 RPe(e,t){return yt={...e,...t},yt}function Ez(e){const{x:t,y:r}=Bu(e.e);return{coordinates:{x:t,y:r},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:wz(e.targetData.node.el)}}function NPe(e,t){const r=Cz(e),n=[...PC(t.targetData.parent.el,t.targetData.parent.data).filter(i=>!r.includes(i))];n.splice(t.targetData.node.data.index,0,...r),e.lastTargetValue=t.targetData.node.data.value,EC(t.targetData.parent.el,t.targetData.parent.data,[...n])}function PC(e,t){return[...t.getValues(e)]}function EC(e,t,r){t.setValues(r,e)}function Cz(e){return[...e.draggedNodes.map(t=>t.data.value)]}function MPe({parent:e,getValues:t,setValues:r,config:n={}}){var i,o;if(!xz)return;document.addEventListener("dragover",s=>{if(s.preventDefault(),yt){yt.remapJustFinished=!1,yt.lastTargetValue=void 0;const{x:c,y:u}=Bu(s);yt.coordinates.y=u,yt.coordinates.x=c,Ab()}}),Tz(e);const a={getValues:t,setValues:r,config:{handleDragstart:$Pe,handleDragoverNode:cEe,handleDragoverParent:fEe,handleEnd:KPe,handleTouchstart:ZPe,handleTouchmove:eEe,handleTouchOverNode:VPe,handleTouchOverParent:dEe,performSort:NPe,performTransfer:vEe,root:document,setupNode:WPe,setupNodeRemap:kz,reapplyDragClasses:qPe,tearDownNode:GPe,tearDownNodeRemap:HPe,remapFinished:DPe,scrollBehavior:{x:.8,y:.8},threshold:{horizontal:0,vertical:0},...n},enabledNodes:[],abortControllers:{}};LPe(e,a),(i=n.plugins)==null||i.forEach(s=>{var c,u;(u=(c=s(e))==null?void 0:c.tearDown)==null||u.call(c)}),(o=n.plugins)==null||o.forEach(s=>{var c,u;(u=(c=s(e))==null?void 0:c.setup)==null||u.call(c)}),jz(e,!0)}function Tz(e){const t=bo.get(e);t&&t.abortControllers.mainParent&&t.abortControllers.mainParent.abort()}function LPe(e,t){new MutationObserver(IPe).observe(e,{childList:!0}),bo.set(e,t),t.abortControllers.mainParent=Oz(e,{dragover:gEe(jPe(t.config.handleDragoverParent,10)),touchOverParent:t.config.handleTouchOverParent})}function IPe(e){const t=e[0].target;t instanceof HTMLElement&&jz(t)}function jz(e,t){const r=bo.get(e);if(!r)return;const n=[],i=r.config;for(let s=0;s<e.children.length;s++){const c=e.children[s];if(!ym(c))continue;const u=ta.get(c);(t||!u)&&i.tearDownNode({node:c,parent:e,nodeData:u,parentData:r}),!i.disabled&&(!i.draggable||i.draggable&&i.draggable(c))&&n.push(c)}if(n.length!==r.getValues(e).length&&!i.disabled){console.warn("The number of enabled nodes does not match the number of values.");return}const o=r.getValues(e),a=[];for(let s=0;s<n.length;s++){const c=n[s],u=ta.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:r,nodeData:h};(t||!u)&&i.setupNode(p),kz(p)}bo.set(e,{...r,enabledNodes:a}),i.remapFinished(r)}function DPe(){yt&&(yt.preventEnter=!1,yt.swappedNodeValue=void 0,yt.remapJustFinished=!0)}function $Pe(e){e.e instanceof DragEvent&&zPe({e:e.e,targetData:e.targetData})}function FPe(e,t,r){Ru([e],t),setTimeout(()=>{p0([e],t),Ru([e],r)})}function BPe(e){const t=Pz(Ez(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 Az(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 r=e.targetData.node.el.querySelectorAll(t.dragHandle);if(!r)return!1;const n=Bu(e.e),i=t.root.elementFromPoint(n.x,n.y);if(!i)return!1;for(const o of Array.from(r))if(i===o||o.contains(i))return!0;return!1}function UPe(e){if(!Az(e))return;const t=XPe(e);QPe(e,t),JPe(e,t)}function zPe(e){if(!Az(e)){e.e.preventDefault();return}const t=e.targetData.parent.data.config,r=BPe(e),n=e.targetData.node.el.style.zIndex;r.originalZIndex=n,e.targetData.node.el.style.zIndex="9999",FPe(r.draggedNode.el,t.draggingClass,t.dropZoneClass)}function VPe(e){yt&&(e.detail.targetData.parent.el===yt.lastParent.el?Mz(e.detail,yt):kb(e.detail,yt))}function WPe(e){var t;const r=e.parentData.config;e.node.draggable=!0,e.nodeData.abortControllers.mainNode=Oz(e.node,{dragstart:$c(r.handleDragstart),dragover:$c(r.handleDragoverNode),dragend:$c(r.handleEnd),touchstart:$c(r.handleTouchstart),touchmove:$c(r.handleTouchmove),touchend:$c(r.handleEnd),touchOverNode:r.handleTouchOverNode}),r.reapplyDragClasses(e.node,e.parentData),(t=e.parentData.config.plugins)==null||t.forEach(n=>{var i,o;(o=(i=n(e.parent))==null?void 0:i.setupNode)==null||o.call(i,e)})}function kz(e){var t;ta.set(e.node,e.nodeData),(t=e.parentData.config.plugins)==null||t.forEach(r=>{var n,i;(i=(n=r(e.parent))==null?void 0:n.setupNodeRemap)==null||i.call(n,e)})}function qPe(e,t){if(!yt)return;const r="touchedNode"in yt?t.config.touchDropZoneClass:t.config.dropZoneClass;yt.draggedNode.el===e&&Ru([e],r,!0)}function HPe(e){var t;(t=e.parentData.config.plugins)==null||t.forEach(r=>{var n,i;(i=(n=r(e.parent))==null?void 0:n.tearDownNodeRemap)==null||i.call(n,e)})}function GPe(e){var t,r,n,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,(n=(r=e.nodeData)==null?void 0:r.abortControllers)!=null&&n.mainNode&&((o=(i=e.nodeData)==null?void 0:i.abortControllers)==null||o.mainNode.abort())}function KPe(e){yt&&(YPe(e,yt),kPe())}function YPe(e,t){var r,n,i,o;document.removeEventListener("contextmenu",Rz),"longTouchTimeout"in t&&t.longTouchTimeout&&clearTimeout(t.longTouchTimeout);const a=(r=bo.get(t.initialParent.el))==null?void 0:r.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),p0(t.draggedNodes.map(c=>c.el),s),a!=null&&a.longTouchClass&&p0(t.draggedNodes.map(c=>c.el),(i=(n=t.initialParent.data)==null?void 0:n.config)==null?void 0:i.longTouchClass),"touchedNode"in t&&((o=t.touchedNode)==null||o.remove())}function ZPe(e){e.e instanceof TouchEvent&&UPe({e:e.e,targetData:e.targetData})}function XPe(e){e.e.stopPropagation();const t=e.targetData.node.el.cloneNode(!0),r=e.targetData.node.el.getBoundingClientRect();return RPe(Pz(Ez(e)),{coordinates:{x:e.e.touches[0].clientX,y:e.e.touches[0].clientY},scrollParent:wz(e.targetData.node.el),touchStartLeft:e.e.touches[0].clientX-r.left,touchStartTop:e.e.touches[0].clientY-r.top,touchedNode:t,touchMoving:!1})}function Rz(e){e.preventDefault()}function QPe(e,t){t.touchedNodeDisplay=t.touchedNode.style.display;const r=e.targetData.node.el.getBoundingClientRect();t.touchedNode.style.cssText=`
|
||
width: ${r.width}px;
|
||
position: fixed;
|
||
pointer-events: none;
|
||
top: -9999px;
|
||
z-index: 999999;
|
||
display: none;
|
||
`,document.body.append(t.touchedNode),Sz(e.targetData.node.el,t.touchedNode),t.touchedNode.style.display="none",document.addEventListener("contextmenu",Rz)}function JPe(e,t){const r=e.targetData.parent.data.config;r.longTouch&&(t.longTouchTimeout=setTimeout(()=>{t&&(t.longTouch=!0,r.longTouchClass&&e.e.cancelable&&Ru(t.draggedNodes.map(n=>n.el),r.longTouchClass),e.e.preventDefault())},r.longTouchTimeout||200))}function eEe(e){!yt||!("touchedNode"in yt)||uEe(e,yt)}function tEe(e,t){t.longTouchClass&&p0(e.draggedNodes.map(r=>r.el),t==null?void 0:t.longTouchClass),t.touchDraggingClass&&Ru([e.touchedNode],t.touchDraggingClass),t.touchDropZoneClass&&Ru(e.draggedNodes.map(r=>r.el),t.touchDropZoneClass)}function rEe(e){if(!e||!e.scrollParent)return;const{x:t,y:r,width:n,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:r,width:n,height:i}}function nEe(e){const t=rEe(yt);if(t)switch(e){case"down":return sEe(t.state,t);case"up":return aEe(t.state,t);case"right":return iEe(t.state,t);case"left":return oEe(t.state,t)}}function iEe(e,t){const r=t.scrollParent.clientWidth+t.x-e.coordinates.x;if(!(!t.scrollOutside&&r<0)&&r<(1-t.xThresh)*t.scrollParent.clientWidth&&!(t.scrollParent.scrollLeft+t.scrollParent.clientWidth>=t.scrollParent.scrollWidth))return e}function oEe(e,t){const r=t.scrollParent.clientWidth+t.x-e.coordinates.x;if(!(!t.scrollOutside&&r>t.scrollParent.clientWidth)&&r>t.xThresh*t.scrollParent.clientWidth&&t.scrollParent.scrollLeft!==0)return e}function aEe(e,t){const r=t.scrollParent.clientHeight+t.y-e.coordinates.y;if(!(!t.scrollOutside&&r>t.scrollParent.clientHeight)&&r>t.yThresh*t.scrollParent.clientHeight&&t.scrollParent.scrollTop!==0)return e}function sEe(e,t){const r=t.scrollParent.clientHeight+t.y-e.coordinates.y;if(!(!t.scrollOutside&&r<0)&&r<(1-t.yThresh)*t.scrollParent.clientHeight&&!(t.scrollParent.scrollTop+t.scrollParent.clientHeight>=t.scrollParent.scrollHeight))return e}function lEe(e,t){t.touchMoving=!0,t.touchedNode.style.display=t.touchedNodeDisplay||"";const{x:r,y:n}=Bu(e.e);t.coordinates.y=n,t.coordinates.x=r;const i=t.touchStartLeft??0,o=t.touchStartTop??0;t.touchedNode.style.left=`${r-i}px`,t.touchedNode.style.top=`${n-o}px`,tEe(t,e.targetData.parent.data.config)}function uEe(e,t){if(e.targetData.parent.data.config.longTouch&&!t.longTouch){clearTimeout(t.longTouchTimeout);return}e.e.cancelable&&e.e.preventDefault(),lEe(e,t),Ab();const r=APe(e);if(!r)return;const n={e:e.e,targetData:r};"node"in r?r.node.el.dispatchEvent(new CustomEvent("touchOverNode",{detail:n})):r.parent.el.dispatchEvent(new CustomEvent("touchOverParent",{detail:n}))}function Ab(){for(const e of Object.keys(F5)){const[t,r]=F5[e];Nz(e,t,r)}}function Nz(e,t,r){const n=nEe(e);n&&(n.scrollParent.scrollBy(t,r),setTimeout(()=>{Nz(e,t,r)},"touchedNode"in n?10:100))}function cEe(e){if(!yt)return;const{x:t,y:r}=Bu(e.e);yt.coordinates.y=r,yt.coordinates.x=t,Ab(),pEe(e,yt)}function fEe(e){if(!yt)return;const{x:t,y:r}=Bu(e.e);yt.coordinates.y=r,yt.coordinates.x=t,Ab(),kb(e,yt)}function dEe(e){yt&&kb(e.detail,yt)}function hEe(e,t){if(e.targetData.parent.el===t.lastParent.el)return!1;const r=e.targetData.parent.data.config;if(r.dropZone===!1)return!1;const n=t.initialParent.data.config;return r.accepts?r.accepts(e.targetData.parent,t.initialParent,t.lastParent,t):!(!r.group||r.group!==n.group)}function pEe(e,t){var r;e.e.preventDefault(),e.e.stopPropagation(),e.targetData.parent.el===((r=t.lastParent)==null?void 0:r.el)?Mz(e,t):kb(e,t)}function mEe(e,t,r,n){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(r>o.x+o.width*p.horizontal)return t.incomingDirection="left",!0;break;case"right":if(r<o.x+o.width*(1-p.horizontal))return t.incomingDirection="right",!0;break;case"above":if(n>o.y+o.height*p.vertical)return t.incomingDirection="above",!0;break;case"below":if(n<o.y+o.height*(1-p.vertical))return t.incomingDirection="below",!0;break}return!1}function Mz(e,t){const{x:r,y:n}=Bu(e.e);mEe(e,t,r,n)&&(t.swappedNodeValue=e.targetData.node.data.value,t.preventEnter=!0,e.targetData.parent.data.config.performSort(t,e))}function $c(e){function t(r){var n;const i=ta.get(r),o=r.parentNode||((n=yt==null?void 0:yt.lastParent)==null?void 0:n.el);if(!i)return;const a=bo.get(o);if(a)return{node:{el:r,data:i},parent:{el:o,data:a}}}return r=>{const n=t(r.currentTarget);if(n)return e({e:r,targetData:n})}}function vEe(e,t){const r=Cz(e),n=PC(e.lastParent.el,e.lastParent.data).filter(s=>!r.includes(s)),i=PC(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,...r)):(a=o?e.initialIndex:t.targetData.parent.data.enabledNodes.length,i.splice(a,0,...r)),EC(e.lastParent.el,e.lastParent.data,n),EC(t.targetData.parent.el,t.targetData.parent.data,i)}function kb(e,t){hEe(e,t)&&(e.targetData.parent.data.config.performTransfer(t,e),t.lastParent=e.targetData.parent)}function gEe(e){function t(r){const n=bo.get(r);if(n)return{parent:{el:r,data:n}}}return r=>{const n=t(r.currentTarget);if(n)return e({e:r,targetData:n})}}function yEe(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 bEe(e,t){const r=yEe(e);r&&t(r)}var m0=new WeakMap;function _Ee(e){const t=m0.get(e);return t?t[0]:(console.warn("No values found for parent element"),[])}function xEe(e,t){const r=m0.get(t);r&&r[1](e),m0.set(t,[e,r[1]])}function wEe(e,t){return r=>{m0.set(r,t),MPe({parent:r,getValues:_Ee,setValues:xEe,config:e})}}function B5(e){xz&&(Array.isArray(e)||(e=[e]),e.forEach(t=>{const{parent:r,state:n,...i}=t;bEe(r,wEe(i,n))}))}function OEe(e,t={}){const r=I.useRef(null),[n,i]=I.useState(e);function o(a={}){B5({parent:r,state:[n,i],...a})}return I.useEffect(()=>{B5({parent:r,state:[n,i],...t})},[n]),I.useEffect(()=>()=>{r.current&&Tz(r.current)},[]),[r,n,i,o]}const Rb=()=>{const e=sa(),t=_l(),r=Xf(),n=I.useMemo(()=>{const{orderBy:o,tags:a,excludeBots:s,excludeMaxVisitsReached:c,excludePastValidUntil:u,...h}=r,p=o?Iie(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}},[r]),i=I.useCallback(o=>{const a={...n,...o},{orderBy:s,tags:c,excludeBots:u,excludeMaxVisitsReached:h,excludePastValidUntil:p,...v}=a,b={...v,orderBy:s&&Lie(s),tags:c.length>0?c.join(","):void 0,excludeBots:zO(u),excludeMaxVisitsReached:zO(h),excludePastValidUntil:zO(p)},_=D0(b),x=_?`?${_}`:"";e(`${t}/list-short-urls/1${x}`)},[n,e,t]);return[n,i]},aA=()=>{const{domain:e}=Xf(),{shortCode:t=""}=Kf();return I.useMemo(()=>({shortCode:nA(t),domain:e}),[e,t])},Nb=()=>{const e=QSe();return g.jsx(_t,{color:"link",size:"lg",className:"p-0 me-3",onClick:e,"aria-label":"Go back",children:g.jsx(Ge,{icon:YK})})},SEe={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"},PEe={android:"Android",ios:"iOS",desktop:"Desktop"},EEe=({deviceType:e,onDeviceTypeChange:t})=>{const r=I.useId();return g.jsxs("div",{children:[g.jsx("label",{htmlFor:r,children:"Device type:"}),g.jsxs("select",{id:r,className:"form-select",value:e,onChange:n=>t(n.target.value),required:!0,children:[!e&&g.jsx("option",{value:"",children:"- Select type -"}),Object.entries(PEe).map(([n,i])=>g.jsx("option",{value:n,children:i},n))]})]})},sA=({value:e,onValueChange:t,label:r,placeholder:n})=>{const i=I.useId();return g.jsxs("div",{children:[g.jsxs("label",{htmlFor:i,children:[r,":"]}),g.jsx(Zr,{id:i,value:e??"",onChange:o=>t(o.target.value),placeholder:n,required:!0})]})},CEe=({language:e,onLanguageChange:t})=>g.jsx(sA,{value:e,onValueChange:t,label:"Language",placeholder:"en-US / en"}),TEe=({name:e,value:t,onNameChange:r,onValueChange:n})=>{const i=I.useId(),o=I.useId();return g.jsxs(g.Fragment,{children:[g.jsxs("div",{children:[g.jsx("label",{htmlFor:i,children:"Param name:"}),g.jsx(Zr,{id:i,value:e??"",onChange:a=>r(a.target.value),placeholder:"hello",required:!0})]}),g.jsxs("div",{children:[g.jsx("label",{htmlFor:o,children:"Param value:"}),g.jsx(Zr,{id:o,value:t??"",onChange:a=>n(a.target.value),placeholder:"world",required:!0})]})]})},jEe=({ipAddress:e,onIpAddressChange:t})=>g.jsx(sA,{value:e,onValueChange:t,label:"IP address",placeholder:"192.168.1.10"}),AEe=({countryCode:e,onCountryCodeChange:t})=>{const r=I.useId();return g.jsxs("div",{children:[g.jsx("label",{htmlFor:r,children:"Country:"}),g.jsxs("select",{id:r,className:"form-select",value:e,onChange:n=>t(n.target.value),required:!0,children:[!e&&g.jsx("option",{value:"",children:"- Select country -"}),Object.entries(SEe).map(([n,i])=>g.jsx("option",{value:n,children:i},n))]})]})},kEe=({cityName:e,onCityNameChange:t})=>g.jsx(sA,{value:e,onValueChange:t,label:"City name",placeholder:"New York"}),REe=({condition:e,onConditionChange:t,onDelete:r})=>{const n=I.useId(),i=I.useCallback(h=>t({type:h,matchValue:"",matchKey:null}),[t]),o=I.useCallback(h=>t({...e,matchValue:h}),[e,t]),a=I.useCallback(h=>t({...e,matchKey:h}),[e,t]),s=bi("ipRedirectCondition"),c=bi("geolocationRedirectCondition"),u=I.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:r,className:"position-absolute rounded-circle redirect-rule-modal__remove-condition-button",children:g.jsx(Ge,{icon:a$,className:"redirect-rule-modal__remove-condition-button-icon"})}),g.jsx("label",{htmlFor:n,children:"Type:"}),g.jsx("select",{id:n,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(EEe,{deviceType:e.matchValue,onDeviceTypeChange:o}),e.type==="language"&&g.jsx(CEe,{language:e.matchValue,onLanguageChange:o}),e.type==="query-param"&&g.jsx(TEe,{value:e.matchValue,name:e.matchKey??"",onNameChange:a,onValueChange:o}),e.type==="ip-address"&&g.jsx(jEe,{ipAddress:e.matchValue,onIpAddressChange:o}),e.type==="geolocation-country-code"&&g.jsx(AEe,{countryCode:e.matchValue,onCountryCodeChange:o}),e.type==="geolocation-city-name"&&g.jsx(kEe,{cityName:e.matchValue,onCityNameChange:o})]})},Lz=({isOpen:e,toggle:t,onSave:r,initialData:n})=>{const[i,o]=I.useState(n??{longUrl:"",conditions:[]}),a=I.useCallback(b=>{b.preventDefault(),b.stopPropagation(),i&&r(i),t()},[r,i,t]),s=I.useCallback(()=>o(({longUrl:b,conditions:_})=>({longUrl:b,conditions:[..._,{type:"device",matchValue:"",matchKey:null}]})),[]),c=I.useCallback((b,_)=>o(({longUrl:x,conditions:w})=>{const O=[...w];return O[b]=_,{longUrl:x,conditions:O}}),[]),u=I.useCallback(b=>o(({longUrl:_,conditions:x})=>{const w=[...x];return w.splice(b,1),{longUrl:_,conditions:w}}),[]),h=Yi(),p=I.useCallback(()=>{var b;return(b=h==null?void 0:h.current)==null?void 0:b.focus()},[h]),v=I.useCallback(()=>o(n??{longUrl:"",conditions:[]}),[n]);return g.jsx(Yn,{size:"xl",isOpen:e,toggle:t,centered:!0,onOpened:p,onClosed:v,children:g.jsxs("form",{onSubmit:a,children:[g.jsx(la,{toggle:t,className:"sticky-top redirect-rule-modal__header",children:"Redirect rule"}),g.jsxs(Eo,{children:[g.jsx("label",{htmlFor:"longUrl",className:"fw-bold",children:"Long URL:"}),g.jsx(Zr,{id:"longUrl",type:"url",placeholder:"https://www.example.com",value:i.longUrl,onChange:b=>o(_=>({..._,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:Yp})})]}),i.conditions.length===0&&g.jsx("div",{className:"text-center",children:g.jsx("i",{children:"Add conditions..."})}),i.conditions.length>0&&g.jsx(Yo,{className:"redirect-rule-modal__conditions-row",children:i.conditions.map((b,_)=>g.jsx("div",{className:"col-lg-6 col-xl-4 mt-4",children:g.jsx(REe,{condition:b,onConditionChange:x=>c(_,x),onDelete:()=>u(_)})},`${_}_${b.type}`))})]}),g.jsxs(Ja,{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"})]})]})})},NEe=({priority:e,isLast:t,redirectRule:r,onDelete:n,onMoveUp:i,onMoveDown:o,onUpdate:a})=>{const[s,c]=ur();return g.jsxs(Wt,{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:tY})}),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:vY})}),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:fY})})]}),g.jsxs("div",{className:"flex-grow-1",children:[g.jsxs("div",{className:"mb-2",children:[g.jsx("b",{children:"Long URL:"})," ",g.jsx(Gn,{href:r.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:"}),r.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:r$})}),g.jsx(_t,{outline:!0,color:"danger",size:"sm","aria-label":`Delete rule with priority ${e}`,onClick:n,children:g.jsx(Ge,{icon:CK})})]})]}),g.jsx(Lz,{onSave:a,isOpen:s,toggle:c,initialData:r})]})},MEe=({shortUrlRedirectRules:e,getShortUrlRedirectRules:t,getShortUrlsDetails:r,shortUrlsDetails:n,setShortUrlRedirectRules:i,shortUrlRedirectRulesSaving:o,resetSetRules:a})=>{const s=aA(),{shortUrls:c}=n,u=s&&(c==null?void 0:c.get(s)),[h,p,v]=OEe([],{dragHandle:".drag-n-drop-handler",dropZoneClass:"opacity-25"}),{saving:b,saved:_,errorData:x}=o,[w,O]=ur(),P=I.useCallback(V=>v((B=[])=>[...B,V]),[v]),C=I.useCallback(V=>v((B=[])=>{const W=[...B];return W.splice(V,1),W}),[v]),T=I.useCallback((V,B)=>v((W=[])=>{const q=[...W];return q[V]=B,q}),[v]),A=I.useCallback((V,B)=>v((W=[])=>{if(!W[B])return W;const q=[...W],J=q[B];return q[B]=q[V],q[V]=J,q}),[v]),j=I.useCallback(V=>A(V,V-1),[A]),N=I.useCallback(V=>A(V,V+1),[A]),F=I.useCallback(V=>{V.preventDefault(),p&&i({shortUrl:s,data:{redirectRules:p}})},[s,p,i]);return I.useEffect(()=>(t(s),r([s]),a),[t,r,s,a]),I.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(xi,{body:!0,children:[g.jsxs("h2",{className:"d-sm-flex justify-content-between align-items-center mb-0",children:[g.jsx(Nb,{}),g.jsxs("div",{className:"text-center flex-grow-1",children:[n.loading&&g.jsx(g.Fragment,{children:"Loading..."}),!n.loading&&g.jsxs("small",{children:["Redirect rules for ",g.jsx(Gn,{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(Gn,{href:e.defaultLongUrl??""})]})]})}),g.jsx("div",{children:g.jsxs(_t,{outline:!0,color:"primary",onClick:O,children:[g.jsx(Ge,{icon:Yp,className:"me-1"})," Add rule"]})}),g.jsxs("form",{onSubmit:F,children:[e.loading&&g.jsx(qa,{loading:!0}),p.length===0&&!e.loading&&g.jsx(Wt,{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((V,B)=>g.jsx(NEe,{redirectRule:V,priority:B+1,isLast:B===p.length-1,onDelete:()=>C(B),onMoveUp:()=>j(B),onMoveDown:()=>N(B),onUpdate:W=>T(B,W)},`${V.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"})})]}),x&&g.jsx(Tn,{type:"error",children:g.jsx(aa,{errorData:x,fallbackMessage:"An error occurred while saving short URL redirect rules :("})}),_&&g.jsx(Tn,{type:"success",children:"Redirect rules properly saved."}),g.jsx(Lz,{isOpen:w,toggle:O,onSave:P})]})},LEe=(e,t)=>{e.serviceFactory("ShortUrlRedirectRules",()=>MEe),e.decorator("ShortUrlRedirectRules",t(["shortUrlRedirectRules","shortUrlsDetails","shortUrlRedirectRulesSaving"],["getShortUrlRedirectRules","getShortUrlsDetails","setShortUrlRedirectRules","resetSetRules"])),e.serviceFactory("getShortUrlRedirectRules",CPe,"apiClientFactory"),e.serviceFactory("setShortUrlRedirectRules",SPe,"apiClientFactory"),e.serviceFactory("resetSetRules",r=>r.resetSetRules,"setShortUrlRedirectRulesReducerCreator"),e.serviceFactory("shortUrlRedirectRulesReducerCreator",TPe,"getShortUrlRedirectRules"),e.serviceFactory("shortUrlRedirectRulesReducer",r=>r.reducer,"shortUrlRedirectRulesReducerCreator"),e.serviceFactory("setShortUrlRedirectRulesReducerCreator",PPe,"setShortUrlRedirectRules"),e.serviceFactory("setShortUrlRedirectRulesReducer",r=>r.reducer,"setShortUrlRedirectRulesReducerCreator")},IEe=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}),Iz=({createShortUrl:e,shortUrlCreation:t,resetCreateShortUrl:r,basicMode:n=!1})=>{const{ShortUrlForm:i,CreateShortUrlResult:o}=cr(Iz),a=Rn("shortUrlCreation"),s=I.useMemo(()=>IEe(a),[a]);return g.jsxs(g.Fragment,{children:[g.jsx(i,{initialState:s,saving:t.saving,basicMode:n,onSave:async c=>(r(),e(c))}),g.jsx(o,{creation:t,resetCreateShortUrl:r,canBeClosed:n})]})},DEe=fr(Iz,["ShortUrlForm","CreateShortUrlResult"]),Dz=({shortUrlsDetails:e,getShortUrlsDetails:t,shortUrlEdition:r,editShortUrl:n})=>{const{ShortUrlForm:i}=cr(Dz),o=aA(),{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:_}=r,x=Rn("shortUrlCreation"),w=I.useMemo(()=>hPe(h,x),[h,x]);return I.useEffect(()=>{o&&t([o])},[t,o]),a?g.jsx(qa,{loading:!0}):s?g.jsx(Tn,{type:"error",children:g.jsx(aa,{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(xi,{body:!0,children:g.jsxs("h2",{className:"d-sm-flex justify-content-between align-items-center mb-0",children:[g.jsx(Nb,{}),g.jsx("div",{className:"text-center flex-grow-1",children:g.jsxs("small",{children:["Edit ",g.jsx(Gn,{href:(h==null?void 0:h.shortUrl)??""})]})})]})})}),g.jsx(i,{initialState:w,saving:p,onSave:async O=>{h&&n({...h,data:O})}}),v&&b&&g.jsx(Tn,{type:"error",className:"mt-3",children:g.jsx(aa,{errorData:_,fallbackMessage:"An error occurred while updating short URL :("})}),v&&!b&&g.jsx(Tn,{type:"success",className:"mt-3",children:"Short URL properly edited."})]})},$Ee=fr(Dz,["ShortUrlForm"]),$z=({text:e,onCopy:t},r=navigator)=>{var n;return(n=r.clipboard)==null?void 0:n.writeText(e).then(()=>t==null?void 0:t(e,!0)).catch(()=>t==null?void 0:t(e,!1))},Fz=({creation:e,resetCreateShortUrl:t,canBeClosed:r=!1})=>{const{useTimeoutToggle:n}=cr(Fz),[i,o]=n(),{error:a,saved:s}=e;if(I.useEffect(()=>{t()},[t]),a)return g.jsxs(Tn,{type:"error",className:"mt-3",children:[r&&g.jsx(Ge,{"data-testid":"error-close-button",icon:nS,className:"float-end pointer",onClick:t}),g.jsx(aa,{errorData:e.errorData,fallbackMessage:"An error occurred while creating the URL :("})]});if(!s)return null;const{shortUrl:c}=e.result;return g.jsxs(Tn,{type:"success",className:"mt-3",children:[r&&g.jsx(Ge,{"data-testid":"success-close-button",icon:nS,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:()=>$z({text:c,onCopy:o}),children:[g.jsx(Ge,{icon:s7})," Copy ",g.jsxs("span",{className:"sr-only",children:[c," to clipboard"]})]}),g.jsx(I0,{placement:"left",isOpen:i,target:"copyBtn",children:"Copied!"})]})},FEe=fr(Fz,["useTimeoutToggle"]),qO="delete",BEe=({shortUrl:e,toggle:t,isOpen:r,shortUrlDeletion:n,resetDeleteShortUrl:i,deleteShortUrl:o,shortUrlDeleted:a})=>{const[s,c]=I.useState("");I.useEffect(()=>i,[i]);const{loading:u,error:h,deleted:p,errorData:v}=n,b=I.useCallback(()=>{i(),t()},[i,t]),_=I.useCallback(x=>(x.preventDefault(),o(e).then(w=>!Zj(w)&&t())),[o,e,t]);return g.jsx(Yn,{isOpen:r,toggle:b,centered:!0,onClosed:()=>p&&a(e),children:g.jsxs("form",{onSubmit:_,children:[g.jsx(la,{toggle:b,children:g.jsx("span",{className:"text-danger",children:"Delete short URL"})}),g.jsxs(Eo,{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:qO})," to confirm deletion."]}),g.jsx("input",{type:"text",className:"form-control",placeholder:`Insert ${qO}`,value:s,onChange:x=>c(x.target.value)}),h&&g.jsx(Tn,{type:BSe(v)?"warning":"error",small:!0,className:"mt-2",children:g.jsx(aa,{errorData:v,fallbackMessage:"Something went wrong while deleting the URL :("})})]}),g.jsxs(Ja,{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!==qO||u,children:u?"Deleting...":"Delete"})]})]})})},Bz=({amount:e=0,loading:t=!1,...r})=>g.jsxs(_t,{...r,outline:!0,color:"primary",disabled:t,children:[g.jsx(Ge,{icon:RK})," ",t?"Exporting...":g.jsxs(g.Fragment,{children:["Export (",Sr(e),")"]})]}),U5=20,Uz=({amount:e=0})=>{const{apiClientFactory:t,ReportExporter:r}=cr(Uz),[{tags:n,search:i,startDate:o,endDate:a,orderBy:s,tagsMode:c}]=Rb(),[u,,h,p]=ur(),v=I.useCallback(async()=>{const b=e/U5,_=async(w=1)=>{const{data:O}=await t().listShortUrls({page:`${w}`,tags:n,searchTerm:i,startDate:o,endDate:a,orderBy:s,tagsMode:c,itemsPerPage:U5});return w>=b?O:O.concat(await _(w+1))};h();const x=await _();r.exportShortUrls(x.map(w=>{var O;const{hostname:P,pathname:C}=new URL(w.shortUrl),T=C.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,r,i,o,h,p,n,c]);return g.jsx(Bz,{loading:u,className:"btn-md-block",amount:e,onClick:v})},UEe=fr(Uz,["apiClientFactory","ReportExporter"]),zz=({text:e,onCopy:t,copyToClipboard:r=$z})=>g.jsx(ku,{className:"ms-2 p-0","aria-label":`Copy ${e} to clipboard`,onClick:()=>r({text:e,onCopy:t}),children:g.jsx(Ge,{icon:s7,className:"fs-5"})}),z5=e=>e&&e.startsWith("#")?e.substring(1):e,zEe=(e,{color:t,bgColor:r,...n})=>{const i=`${e}/qr-code`,o=D0({...n,color:z5(t),bgColor:z5(r)});return`${i}${o?`?${o}`:""}`},VEe=6,V5="0123456789ABCDEF",WEe=128;function qEe(){return`#${eA(VEe,()=>V5[Math.floor(Math.random()*V5.length)]).join("")}`}function HEe(e,t,r){return Math.round(Math.sqrt(.299*e**2+.587*t**2+.114*r**2))}function Vz(e){const[t,r,n]=(e.match(/../g)??[]).map(i=>parseInt(i,16)||0);return HEe(t,r,n)>=WEe}const Wz=I.forwardRef(({name:e,color:t,onChange:r,className:n},i)=>g.jsxs("div",{className:ze("p-0 position-relative",n),style:{backgroundColor:t,borderColor:t},children:[g.jsx(Ge,{icon:qK,className:"position-absolute top-50 start-50 translate-middle",style:{color:Vz(t.substring(1))?"#000":"fff"}}),g.jsx(Zr,{className:"form-control-color opacity-0",type:"color",value:t,onChange:o=>r(o.target.value),innerRef:i,name:e,"aria-label":e})]})),GEe=({color:e,onChange:t,name:r})=>{const n=Yi();return g.jsxs(rm,{children:[g.jsx(Wz,{name:r,color:e,onChange:t,className:"input-group-text",ref:n}),g.jsx(Zr,{readOnly:!0,value:e,onClick:()=>{var i;return(i=n.current)==null?void 0:i.click()},"aria-label":r,"data-testid":"text-input"})]})},v0=({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}),W5=({name:e,color:t,initialColor:r,onChange:n})=>g.jsx(g.Fragment,{children:t===void 0?g.jsx(v0,{className:"text-start fst-italic w-100",onClick:()=>n(r),children:g.jsxs("span",{className:"indivisible",children:["Customize ",e]})}):g.jsxs("div",{className:"d-flex gap-1 w-100",children:[g.jsx(GEe,{color:t,onChange:n,name:e}),g.jsx(v0,{label:`Default ${e}`,onClick:()=>n(void 0),children:g.jsx(Ge,{icon:QC})})]})}),q5=({name:e,value:t,step:r,min:n,max:i,onChange:o,initial:a=n})=>{const s=I.useId();return g.jsx(g.Fragment,{children:t===void 0?g.jsxs(v0,{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:r,min:n,max:i,onChange:c=>o(Number(c.target.value))})]}),g.jsx(v0,{label:`Default ${e}`,onClick:()=>o(void 0),children:g.jsx(Ge,{icon:QC})})]})})},KEe=({errorCorrection:e,onChange:t})=>g.jsxs(es,{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"]})]}),YEe=({format:e,onChange:t})=>g.jsxs(es,{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"})]}),qz=({shortUrl:{shortUrl:e,shortCode:t},toggle:r,isOpen:n})=>{const{ImageDownloader:i}=cr(qz),[o,a]=I.useState(),[s,c]=I.useState(),[u,h]=I.useState(),[p,v]=I.useState(),[b,_]=I.useState(),[x,w]=I.useState(),O=bi("qrCodeColors"),P=I.useMemo(()=>zEe(e,{size:o,format:u,margin:s,errorCorrection:p,color:b,bgColor:x}),[e,o,u,s,p,b,x]);return g.jsxs(Yn,{isOpen:n,toggle:r,centered:!0,size:"lg",children:[g.jsxs(la,{toggle:r,children:["QR code for ",g.jsx(Gn,{href:e,children:e})]}),g.jsxs(Eo,{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(q5,{name:"size",value:o,onChange:a,step:10,min:50,max:1e3,initial:300}),g.jsx(q5,{name:"margin",value:s,onChange:c,step:1,min:0,max:100}),g.jsx(YEe,{format:u,onChange:h}),g.jsx(KEe,{errorCorrection:p,onChange:v}),O&&g.jsxs(g.Fragment,{children:[g.jsx(W5,{name:"color",initialColor:"#000000",color:b,onChange:_}),g.jsx(W5,{name:"background",initialColor:"#ffffff",color:x,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:o$,className:"ms-1"})]})})]})]}),g.jsx(Ja,{className:"sticky-bottom justify-content-around",style:{backgroundColor:"var(--primary-color)",zIndex:"1"},children:g.jsxs("div",{className:"text-center",children:[g.jsx(Gn,{href:P}),g.jsx(zz,{text:P})]})})]})},ZEe=fr(qz,["ImageDownloader"]),XEe="yyyy-MM-dd",Hz="yyyy-MM-dd HH:mm",ul=()=>new Date,lA=e=>typeof e!="string",uA=(e,t)=>!e||!lA(e)?e:t?uy(e,t):$se(e),cl=e=>uA(e,void 0),Zs=e=>uA(e,XEe),qp=e=>uA(e,Hz),pi=e=>lA(e)?e:al(e),bm=(e,t,r)=>{const n=pi(e),i=t&&pi(t),o=r&&pi(r);if(i&&o)try{return Use(n,{start:i,end:o})}catch{return!1}return i?KP(n,i)||Bse(n,i):o?KP(n,o)||cy(n,o):!0},Xl=(e,t)=>KP(e,t)||cy(e,t),g0=({date:e,format:t=Hz,relative:r=!1})=>{const n=lA(e)?e:al(e);return g.jsx("time",{dateTime:`${Fse(n)}000`,children:r?`${Dse(ul(),n)} ago`:uy(n,t)})},QEe=(e,{shortCode:t,domain:r},n)=>{const i=r?`?domain=${r}`:"";return`${e}/short-code/${dz(t)}/${n}${i}`},Gh=({shortUrl:e,suffix:t,asLink:r,children:n,...i})=>{const o=_l();return!r||!e?g.jsx("span",{...i,children:n}):g.jsx(Ht,{to:QEe(o,e,t),...i,children:n})},JEe=e=>{const{meta:t,visitsCount:r,visitsSummary:n}=e,{maxVisits:i,validSince:o,validUntil:a}=t,s=(n==null?void 0:n.total)??r??0;return i&&s>=i?{icon:SY,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&&cy(pi(a),ul())?{icon:C3,className:"text-danger",description:g.jsxs(g.Fragment,{children:["This short URL cannot be visited since ",g.jsx("b",{className:"indivisible",children:qp(pi(a))}),"."]})}:o&&cy(ul(),pi(o))?{icon:C3,className:"text-warning",description:g.jsxs(g.Fragment,{children:["This short URL will start working on ",g.jsx("b",{className:"indivisible",children:qp(pi(o))}),"."]})}:{icon:Zh,className:"text-primary",description:"This short URL can be visited normally."}},eCe=({shortUrl:e})=>{const t=Yi(),{icon:r,className:n,description:i}=JEe(e);return g.jsxs(g.Fragment,{children:[g.jsx("span",{style:{cursor:i?"help":void 0},ref:t,children:g.jsx(Ge,{icon:r,className:n})}),g.jsx(wi,{target:t,placement:"bottom",children:i})]})},Gz=({visitsCount:e,shortUrl:t,active:r=!1,asLink:n=!1})=>{const i=Yi(),{maxVisits:o,validSince:a,validUntil:s}=(t==null?void 0:t.meta)??{},c=!!o||!!a||!!s,u=g.jsx(Gh,{shortUrl:t,suffix:"visits",asLink:n,children:g.jsx("strong",{className:ze("short-url-visits-count__amount",{"short-url-visits-count__amount--big":r}),children:Sr(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:[" / ",Sr(o)]}),g.jsx("sup",{className:"ms-1",children:g.jsx(Ge,{icon:XC})})]})]}),g.jsx(wi,{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:Sr(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:qp(pi(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:qp(pi(s))}),"."]})]})})]}):u},tCe=e=>!!e.onClose,rCe=e=>!!e.onClick,Mb=e=>{const{text:t,children:r,className:n,colorGenerator:i}=e,o=rCe(e),a=o?ku:"span",s=I.useMemo(()=>i.stylesForKey(t),[t,i]);return g.jsxs(a,{className:ze("badge tag fw-bold",n,{pointer:o}),style:s,onClick:o?e.onClick:void 0,children:[r??t,tCe(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:"×"})]})},nCe=({tags:e,onTagClick:t,colorGenerator:r})=>e.length===0?g.jsx("i",{className:"indivisible",children:g.jsx("small",{children:"No tags"})}):g.jsx(g.Fragment,{children:e.map(n=>g.jsx(Mb,{text:n,colorGenerator:r,onClick:()=>t==null?void 0:t(n)},n))}),Kz=({shortUrl:e,onTagClick:t})=>{var r,n,i,o;const{ShortUrlsRowMenu:a,ColorGenerator:s,useTimeoutToggle:c}=cr(Kz),[u,h]=c(),[p,v]=c(!1,500),b=I.useRef(!0),[{excludeBots:_}]=Rb(),x=Rn("visits"),w=_??(x==null?void 0:x.excludeBots);return I.useEffect(()=>{b.current||v(),b.current=!1},[(r=e.visitsSummary)==null?void 0:r.total,(n=e.visitsSummary)==null?void 0:n.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(g0,{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(Gn,{href:e.shortUrl})}),g.jsx(zz,{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(Gn,{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(Gn,{href:e.longUrl})}),g.jsx("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Tags",children:g.jsx(nCe,{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(Gz,{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(eCe,{shortUrl:e}),e.hasRedirectRules&&g.jsx(Gh,{asLink:!0,shortUrl:e,suffix:"redirect-rules",title:"This short URL has dynamic redirect rules",children:g.jsx(Ge,{icon:l$})})]})}),g.jsx("td",{className:"responsive-table__cell short-urls-row__cell text-end",children:g.jsx(a,{shortUrl:e})})]})},iCe=fr(Kz,["ShortUrlsRowMenu","ColorGenerator","useTimeoutToggle"]),Yz=({shortUrl:e,deleteShortUrl:t,shortUrlDeleted:r})=>{const{DeleteShortUrlModal:n,QrCodeModal:i}=cr(Yz),[o,,a,s]=ur(),[c,,u,h]=ur(),p=jb(),v=bi("shortUrlRedirectRules"),{confirmDeletions:b=!0}=Rn("shortUrlsList",{}),_=I.useCallback(async()=>{const x=await t(e);Zj(x)||r(e)},[t,e,r]);return g.jsxs($0,{minWidth:v?220:190,children:[g.jsxs(Ye,{tag:Gh,shortUrl:e,suffix:"visits",asLink:!0,children:[g.jsx(Ge,{icon:ZC,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:iA(e)}),children:[g.jsx(Ge,{icon:j0,fixedWidth:!0})," Compare visits"]}),g.jsx(Ye,{divider:!0,tag:"hr"})]}),g.jsxs(Ye,{tag:Gh,shortUrl:e,suffix:"edit",asLink:!0,children:[g.jsx(Ge,{icon:YC,fixedWidth:!0})," Edit short URL"]}),v&&g.jsxs(Ye,{tag:Gh,shortUrl:e,suffix:"redirect-rules",asLink:!0,children:[g.jsx(Ge,{icon:l$,fixedWidth:!0})," Manage redirect rules"]}),g.jsxs(Ye,{onClick:a,children:[g.jsx(Ge,{icon:xY,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:_,children:[g.jsx(Ge,{icon:GC,fixedWidth:!0})," Delete short URL"]}),g.jsx(n,{shortUrl:e,deleteShortUrl:t,shortUrlDeleted:r,isOpen:c,toggle:h})]})},oCe=fr(Yz,["DeleteShortUrlModal","QrCodeModal"]),Zz="shlink/shortUrlCreation",H5={saving:!1,saved:!1,error:!1},aCe=e=>Vr(`${Zz}/createShortUrl`,t=>e().createShortUrl(t)),sCe=e=>{const{reducer:t,actions:r}=Tr({name:Zz,initialState:H5,reducers:{resetCreateShortUrl:()=>H5},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:Oi(a)})),i.addCase(e.fulfilled,(o,{payload:a})=>({result:a,saving:!1,saved:!0,error:!1}))}}),{resetCreateShortUrl:n}=r;return{reducer:t,resetCreateShortUrl:n}},Xz="shlink/shortUrlEdition",lCe={saving:!1,saved:!1,error:!1},uCe=e=>Vr(`${Xz}/editShortUrl`,({shortCode:t,domain:r,data:n})=>e().updateShortUrl(t,r,n)),cCe=e=>Tr({name:Xz,initialState:lCe,reducers:{},extraReducers:t=>{t.addCase(e.pending,r=>({...r,saving:!0,error:!1,saved:!1})),t.addCase(e.rejected,(r,{error:n})=>({...r,saving:!1,error:!0,saved:!1,errorData:Oi(n)})),t.addCase(e.fulfilled,(r,{payload:n})=>({shortUrl:n,saving:!1,error:!1,saved:!0}))}}),G5="shlink/shortUrlsDetails",K5={loading:!1,error:!1},fCe=e=>{const t=Vr(`${G5}/getShortUrlsDetails`,async(n,{getState:i})=>{const{shortUrlsList:o}=i(),a=await Promise.all(n.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=>Hh(v,u,h));return[s,p??await e().getShortUrl(u,h)]}));return new Map(a)}),{reducer:r}=Tr({name:G5,initialState:K5,reducers:{},extraReducers:n=>{n.addCase(t.pending,()=>({loading:!0,error:!1})),n.addCase(t.rejected,(i,{error:o})=>({loading:!1,error:!0,errorData:Oi(o)})),n.addCase(t.fulfilled,(i,{payload:o})=>({...K5,shortUrls:o}))}});return{reducer:r,getShortUrlsDetails:t}},dCe=({domains:e,value:t,onChange:r})=>{const[n,,i,o]=ur(),a=!t,s=I.useCallback(()=>{r(""),o()},[r,o]),c=I.useCallback(()=>{r(""),i()},[r,i]);return n?g.jsxs(rm,{children:[g.jsx(Zr,{value:t??"",placeholder:"Domain",onChange:u=>r(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:eY})}),g.jsx(wi,{target:"backToDropdown",placement:"left",trigger:"hover",children:"Existing domains"})]}):g.jsxs(es,{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:()=>r(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"})})]})},HO=({icon:e,className:t,...r})=>{const n=Yi();return g.jsxs("div",{className:"icon-input-container",children:[g.jsx(Zr,{className:ze("icon-input-container__input",t),innerRef:n,...r}),g.jsx(Ge,{icon:e,fixedWidth:!0,className:"icon-input-container__icon",onClick:()=>{var i;return(i=n.current)==null?void 0:i.focus()}})]})},hCe=({minDate:e,maxDate:t,value:r,onChange:n,withTime:i=!1,...o})=>{const a=I.useCallback(({target:c})=>{if(!c.value){n==null||n(null);return}n==null||n(pi(c.value))},[n]),s=I.useMemo(()=>i?qp:Zs,[i]);return g.jsx(Zr,{...o,type:i?"datetime-local":"date",value:s(r)??"",max:s(t)??void 0,min:s(e)??void 0,onChange:a})},y0=({label:e,id:t,...r})=>{const n=I.useId();return g.jsxs(g.Fragment,{children:[g.jsxs("label",{htmlFor:t??n,className:"mb-1",children:[e,":"]}),g.jsx(hCe,{id:t??n,...r})]})},GO=({children:e,infoTooltip:t,checked:r,onChange:n})=>g.jsxs("p",{children:[g.jsx(NF,{inline:!0,checked:r,className:t?"me-2":"",onChange:n,children:e}),t&&g.jsx(Eg,{placement:"right",children:t})]}),pCe=({isOpen:e,toggle:t})=>g.jsxs(Yn,{isOpen:e,toggle:t,centered:!0,size:"lg",children:[g.jsx(la,{toggle:t,children:"Info"}),g.jsxs(Eo,{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"})]})]})]}),mCe=()=>{const[e,t]=ur();return g.jsxs(g.Fragment,{children:[g.jsx(ku,{className:"p-0",title:"What does this mean?",onClick:t,children:g.jsx(Ge,{icon:XC})}),g.jsx(pCe,{isOpen:e,toggle:t})]})},ug=e=>typeof e=="string"?al(e):e,vCe=e=>"shortCodeLength"in e&&"customSlug"in e&&"domain"in e,Qz=({basicMode:e=!1,saving:t,onSave:r,initialState:n,tagsList:i,domainsList:o})=>{var a,s,c;const{TagsSelector:u}=cr(Qz),[h,p]=I.useState(n),v=vCe(h),b=bi("deviceLongUrls"),_=bi("urlValidation"),x=_||v,w=I.useCallback(()=>p(n),[n]),O=I.useCallback((j,N)=>au(j)?j:au(N)?null:void 0,[]),P=I.useCallback((j,N)=>p(({deviceLongUrls:F={},...V})=>{var B;return{...V,deviceLongUrls:{...F,[j]:O(N,(B=n.deviceLongUrls)==null?void 0:B[j])}}}),[n.deviceLongUrls,O]),C=I.useCallback(j=>p(N=>({...N,tags:j})),[]),T=I.useCallback(async j=>(j.preventDefault(),r(h).then(N=>v&&!Zj(N)&&w()).catch(()=>{})),[v,r,w,h]),A=I.useMemo(()=>g.jsxs("div",{className:"d-flex flex-column gap-3",children:[g.jsx(Zr,{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:ze("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(Zr,{bsSize:"lg",placeholder:"Custom slug",value:h.customSlug??"",onChange:j=>p(N=>({...N,customSlug:j.target.value}))})}),g.jsx("div",{className:ze("w-100",{"w-lg-50":e}),children:g.jsx(u,{tags:i.tags,selectedTags:h.tags??[],onChange:C})})]})]}),[u,e,C,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(Yo,{children:[g.jsx("div",{className:ze("mb-3",{"col-sm-6":b,"col-12":!b}),children:g.jsx(Wt,{title:"Main options",children:A})}),b&&g.jsx("div",{className:"col-sm-6 mb-3",children:g.jsxs(Wt,{title:"Device-specific long URLs",bodyClassName:"d-flex flex-column gap-3",children:[g.jsx(HO,{type:"url",icon:ile,placeholder:"Android-specific redirection",value:((a=h.deviceLongUrls)==null?void 0:a.android)??"",onChange:({target:j})=>P("android",j.value)}),g.jsx(HO,{type:"url",icon:nle,placeholder:"iOS-specific redirection",value:((s=h.deviceLongUrls)==null?void 0:s.ios)??"",onChange:({target:j})=>P("ios",j.value)}),g.jsx(HO,{type:"url",icon:PY,placeholder:"Desktop-specific redirection",value:((c=h.deviceLongUrls)==null?void 0:c.desktop)??"",onChange:({target:j})=>P("desktop",j.value)})]})})]}),g.jsxs(Yo,{children:[g.jsx("div",{className:"col-sm-6 mb-3",children:g.jsxs(Wt,{title:"Customize the short URL",bodyClassName:"d-flex flex-column gap-3",children:[g.jsx(Zr,{placeholder:"Title",value:h.title??"",onChange:({target:j})=>p(N=>({...N,title:O(j.value,n.title)}))}),v&&g.jsxs(g.Fragment,{children:[g.jsxs(Yo,{children:[g.jsx("div",{className:"col-lg-6 mb-3 mb-lg-0",children:g.jsx(Zr,{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(Zr,{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(dCe,{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(Wt,{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(y0,{label:"Enabled since",withTime:!0,maxDate:h.validUntil?ug(h.validUntil):void 0,value:h.validSince?ug(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(y0,{label:"Enabled until",withTime:!0,minDate:h.validSince?ug(h.validSince):void 0,value:h.validUntil?ug(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(Zr,{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(Yo,{children:[x&&g.jsx("div",{className:"col-sm-6 mb-3",children:g.jsxs(Wt,{title:"Extra checks",children:[_&&g.jsx(GO,{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(NF,{inline:!0,className:"me-2",checked:h.findIfExists,onChange:j=>p(N=>({...N,findIfExists:j})),children:"Use existing URL if found"}),g.jsx(mCe,{})]})]})}),g.jsx("div",{className:ze("mb-3",{"col-sm-6":x}),children:g.jsxs(Wt,{title:"Configure behavior",children:[g.jsx(GO,{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(GO,{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"})})]})},gCe=fr(Qz,["TagsSelector"]),Lb="all",Jz={today:"Today",yesterday:"Yesterday",last7Days:"Last 7 days",last30Days:"Last 30 days",last90Days:"Last 90 days",last180Days:"Last 180 days",last365Days:"Last 365 days",[Lb]:void 0},eV=Object.keys(Jz),yCe=e=>!e||!e.startDate&&!e.endDate,b0=e=>typeof e=="string"&&eV.includes(e),bCe=eV.filter(e=>e!==Lb),Y5=e=>e?pi(e):null,tV=(e,t)=>({startDate:Y5(e),endDate:Y5(t)}),_Ce=e=>{if(!(!e||yCe(e)))return e.startDate&&!e.endDate?`Since ${Zs(e.startDate)}`:!e.startDate&&e.endDate?`Until ${Zs(e.endDate)}`:`${Zs(e.startDate)} - ${Zs(e.endDate)}`},rV=e=>{if(!(!e||e===Lb))return b0(e)?Jz[e]:_Ce(e)},zi=e=>Eu(fy(ul(),e)),Fc=e=>({startDate:e,endDate:mf(ul())}),nV=e=>{var t;return((t=[[()=>e==="today",()=>Fc(Eu(ul()))],[()=>e==="yesterday",()=>({startDate:zi(1),endDate:mf(fy(ul(),1))})],[()=>e==="last7Days",()=>Fc(zi(7))],[()=>e==="last30Days",()=>Fc(zi(30))],[()=>e==="last90Days",()=>Fc(zi(90))],[()=>e==="last180Days",()=>Fc(zi(180))],[()=>e==="last365Days",()=>Fc(zi(365))]].find(([r])=>r()))==null?void 0:t[1]())??{}},xCe=e=>{var t;const r=pi(e);return((t=[[()=>Xl(Eu(ul()),r),"today"],[()=>Xl(zi(1),r),"yesterday"],[()=>Xl(zi(7),r),"last7Days"],[()=>Xl(zi(30),r),"last30Days"],[()=>Xl(zi(90),r),"last90Days"],[()=>Xl(zi(180),r),"last180Days"],[()=>Xl(zi(365),r),"last365Days"]].find(([n])=>n()))==null?void 0:t[1])??Lb},iV=e=>b0(e)?nV(e):e,oV=e=>!!(e&&e.startDate),wCe=({startDate:e,endDate:t})=>{const r=f7(mf(t??new Date),Eu(e))+1,n=fy(Eu(e),r),i=fy(mf(e),1);return{startDate:n,endDate:i}},OCe=e=>{if(oV(e))return f7(e.endDate??new Date,e.startDate)},SCe=({active:e,allText:t,onChange:r})=>g.jsxs(g.Fragment,{children:[g.jsx(Ye,{active:e==="all",onClick:()=>r("all"),children:t}),g.jsx(Ye,{divider:!0,tag:"hr"}),bCe.map(n=>g.jsx(Ye,{active:e===n,onClick:()=>r(n),children:rV(n)},n))]}),PCe=({startDate:e,endDate:t,disabled:r=!1,onStartDateChange:n,onEndDateChange:i})=>g.jsxs("div",{className:"row",children:[g.jsx("div",{className:"col-md-6",children:g.jsx(y0,{label:"Since",value:e,maxDate:t??void 0,disabled:r,onChange:n})}),g.jsx("div",{className:"col-md-6 mt-3 mt-md-0",children:g.jsx(y0,{label:"Until",value:t,minDate:e??void 0,disabled:r,onChange:o=>i(o&&mf(o))})})]}),cA=({onDatesChange:e,dateRangeOrInterval:t,defaultText:r,disabled:n})=>{const i=I.useMemo(()=>rV(t)??r,[t,r]),[o,a]=I.useMemo(()=>b0(t)?[void 0,t]:[t,void 0],[t]),s=I.useCallback(c=>{b0(c)?e(nV(c),c):e(c)},[e]);return g.jsxs(es,{disabled:n,text:i,children:[g.jsx(SCe,{allText:r,active:a,onChange:s}),g.jsx(Ye,{divider:!0,tag:"hr"}),g.jsx("div",{className:"px-3 py-1",children:g.jsx(PCe,{...o,onStartDateChange:c=>s({...o,startDate:c}),onEndDateChange:c=>s({...o,endDate:c})})})]})},ECe={dateCreated:"Created at",shortCode:"Short URL",longUrl:"Long URL",title:"Title",visits:"Visits"},CCe=({onChange:e,selected:t={},className:r,domains:n})=>{const i=bi("filterDisabledUrls"),o=bi("filterShortUrlsByDomain"),{excludeBots:a=!1,excludeMaxVisitsReached:s=!1,excludePastValidUntil:c=!1,domain:u}=t,h=I.useCallback(v=>e({...t,...v}),[e,t]),p=I.useCallback(v=>h({[v]:!(t!=null&&t[v])}),[h,t]);return g.jsxs(es,{text:"Filters",dropdownClassName:r,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: ",!n&&g.jsx("i",{children:"loading..."})]}),n==null?void 0:n.map(v=>{const b=v.isDefault?qf:v.domain,_=u===b;return g.jsx(Ye,{active:_,onClick:()=>h({domain:_?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"})]})},aV=({className:e,shortUrlsAmount:t,order:r,handleOrderBy:n,tagsList:i,domainsList:o})=>{const{ExportShortUrlsBtn:a,TagsSelector:s}=cr(aV),[{search:c,tags:u,startDate:h,endDate:p,excludeBots:v,excludeMaxVisitsReached:b,excludePastValidUntil:_,domain:x,tagsMode:w="any"},O]=Rb(),P=Rn("visits"),[C,T]=I.useState(),A=I.useCallback(({startDate:V,endDate:B},W)=>{O({startDate:cl(V)??void 0,endDate:cl(B)??void 0}),T(W)},[O]),j=I.useCallback(V=>O({search:V||void 0}),[O]),N=I.useCallback(V=>O({tags:V}),[O]),F=I.useCallback(()=>O({tagsMode:w==="any"?"all":"any"}),[w,O]);return g.jsxs("div",{className:ze("short-urls-filtering-bar-container",e),children:[g.jsx(im,{initialValue:c,onChange:j}),g.jsxs(rm,{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:F,id:"tagsModeBtn","aria-label":"Change tags mode",children:g.jsx(Ge,{className:"short-urls-filtering-bar__tags-icon",icon:w==="all"?i$:QK})}),g.jsx(wi,{target:"tagsModeBtn",placement:"left",children:w==="all"?"With all the tags.":"With any of the tags."})]})]}),g.jsxs(Yo,{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(cA,{defaultText:"All short URLs",dateRangeOrInterval:C??tV(h,p),onDatesChange:A})}),g.jsx(CCe,{className:"ms-0 ms-md-2 mt-3 mt-md-0",selected:{excludeBots:v??(P==null?void 0:P.excludeBots),excludeMaxVisitsReached:b,excludePastValidUntil:_,domain:x},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(om,{prefixed:!1,items:ECe,order:r,onChange:n})})]})]})},TCe=fr(aV,["ExportShortUrlsBtn","TagsSelector"]);function Kh({currentOrder:e,field:t,className:r="ms-1"}){return!e.dir||e.field!==t?null:g.jsx(Ge,{icon:e.dir==="ASC"?WK:rY,className:r})}const Bc=2,CC="...",sV=(e,t)=>{const r=LT(Math.max(Bc,e-Bc),Math.min(t-1,e+Bc)+1);return e-Bc>Bc&&r.unshift(CC),e+Bc<t-1&&r.push(CC),r.unshift(1),r.push(t),r},Hp=e=>e===CC,lV=e=>Hp(e)?e:Sr(e),uV=(e,t)=>Hp(e)?`${e}_${t}`:`${e}`,jCe=({paginator:e,currentQueryString:t=""})=>{const{currentPage:r=0,pagesCount:n=0}=e??{},i=_l(),o=s=>`${i}/list-short-urls/${s}${t}`;if(n<=1)return g.jsx("div",{className:"pb-3"});const a=()=>sV(r,n).map((s,c)=>g.jsx(mu,{disabled:Hp(s),active:r===s,children:g.jsx(vu,{tag:Ht,to:o(s),children:lV(s)})},uV(s,c)));return g.jsxs(TT,{className:"sticky-card-paginator py-3",listClassName:"flex-wrap justify-content-center mb-0",children:[g.jsx(mu,{disabled:r===1,children:g.jsx(vu,{previous:!0,tag:Ht,to:o(r-1)})}),a(),g.jsx(mu,{disabled:r>=n,children:g.jsx(vu,{next:!0,tag:Ht,to:o(r+1)})})]})},ACe={field:"dateCreated",dir:"DESC"},cV=Ao(({listShortUrls:e,shortUrlsList:t})=>{var r,n,i;const{ShortUrlsTable:o,ShortUrlsFilteringBar:a}=cr(cV),{page:s}=Kf(),c=gn(),[{tags:u,search:h,startDate:p,endDate:v,orderBy:b,tagsMode:_,excludeBots:x,excludePastValidUntil:w,excludeMaxVisitsReached:O,domain:P},C]=Rb(),T=IT(),[A,j]=I.useState(b??((r=T.shortUrlsList)==null?void 0:r.defaultOrdering)??ACe),{pagination:N}=(t==null?void 0:t.shortUrls)??{},F=I.useMemo(()=>{var ae;return x??((ae=T.visits)==null?void 0:ae.excludeBots)},[x,(n=T.visits)==null?void 0:n.excludeBots]),V=bi("excludeBotsOnShortUrls"),B=I.useCallback((ae,se)=>{C({orderBy:{field:ae,dir:se}}),j({field:ae,dir:se})},[C]),W=ae=>()=>B(ae,F0(ae,A.field,A.dir)),q=ae=>g.jsx(Kh,{currentOrder:A,field:ae}),J=I.useCallback(ae=>C({tags:[...new Set([...u,ae])]}),[u,C]),Q=I.useCallback(({field:ae,dir:se})=>V&&F&&ae==="visits"?{field:"nonBotVisits",dir:se}:{field:ae,dir:se},[F,V]),ne=Qj();return I.useEffect(()=>{e({page:s,searchTerm:h,tags:u,startDate:p,endDate:v,orderBy:Q(A),tagsMode:_,excludePastValidUntil:w,excludeMaxVisitsReached:O,domain:P})},[e,Q,s,h,u,p,v,A,_,w,O,P]),g.jsxs(Xj,{value:ne,children:[g.jsx(a,{shortUrlsAmount:(i=t.shortUrls)==null?void 0:i.pagination.totalItems,order:A,handleOrderBy:B,className:"mb-3"}),g.jsx(Jj,{type:"short-urls",className:"mb-3"}),g.jsxs(xi,{body:!0,className:ze({"pb-0":!t.loading}),children:[g.jsx(o,{shortUrlsList:t,orderByColumn:W,renderOrderIcon:q,onTagClick:J}),!t.loading&&g.jsx(jCe,{paginator:N,currentQueryString:c.search})]})]})},()=>[kn.visits]),kCe=fr(cV,["ShortUrlsTable","ShortUrlsFilteringBar"]),RCe=({shortUrlsList:e,onTagClick:t,ShortUrlsRow:r})=>{const{error:n,loading:i,shortUrls:o}=e;return n?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(r,{shortUrl:a,onTagClick:t},a.shortUrl))},fV=({orderByColumn:e,renderOrderIcon:t,shortUrlsList:r,onTagClick:n,className:i})=>{const{ShortUrlsRow:o}=cr(fV),a=ze({"short-urls-table__header-cell--with-action":!!e}),s=ze("short-urls-table__header-cell",a),c=ze("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:ze("p-0",a),onClick:e==null?void 0:e("title"),children:["Title ",t==null?void 0:t("title")]})," / ",g.jsxs(ku,{className:ze("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(RCe,{ShortUrlsRow:o,shortUrlsList:r,onTagClick:n})})]})},NCe=fr(fV,["ShortUrlsRow"]),MCe=(e,t)=>{e.factory("ShortUrlsList",kCe),e.decorator("ShortUrlsList",t(["mercureInfo","shortUrlsList"],["listShortUrls","createNewVisits","loadMercureInfo"])),e.factory("ShortUrlsTable",NCe),e.factory("ShortUrlsRow",iCe),e.factory("CreateShortUrlResult",FEe),e.factory("ShortUrlsRowMenu",oCe),e.decorator("ShortUrlsRowMenu",t(null,["shortUrlDeleted","deleteShortUrl"])),e.factory("ShortUrlForm",gCe),e.decorator("ShortUrlForm",t(["tagsList","domainsList"])),e.factory("CreateShortUrl",DEe),e.decorator("CreateShortUrl",t(["shortUrlCreation"],["createShortUrl","resetCreateShortUrl"])),e.factory("EditShortUrl",$Ee),e.decorator("EditShortUrl",t(["shortUrlsDetails","shortUrlEdition"],["getShortUrlsDetails","editShortUrl"])),e.serviceFactory("DeleteShortUrlModal",()=>BEe),e.decorator("DeleteShortUrlModal",t(["shortUrlDeletion"],["resetDeleteShortUrl"])),e.factory("QrCodeModal",ZEe),e.factory("ExportShortUrlsBtn",UEe),e.factory("ShortUrlsFilteringBar",TCe),e.decorator("ShortUrlsFilteringBar",t(["tagsList","domainsList"])),e.serviceFactory("shortUrlsListReducerCreator",yPe,"listShortUrls","editShortUrl","createShortUrl"),e.serviceFactory("shortUrlsListReducer",r=>r.reducer,"shortUrlsListReducerCreator"),e.serviceFactory("shortUrlCreationReducerCreator",sCe,"createShortUrl"),e.serviceFactory("shortUrlCreationReducer",r=>r.reducer,"shortUrlCreationReducerCreator"),e.serviceFactory("shortUrlEditionReducerCreator",cCe,"editShortUrl"),e.serviceFactory("shortUrlEditionReducer",r=>r.reducer,"shortUrlEditionReducerCreator"),e.serviceFactory("shortUrlDeletionReducerCreator",mPe,"deleteShortUrl"),e.serviceFactory("shortUrlDeletionReducer",r=>r.reducer,"shortUrlDeletionReducerCreator"),e.serviceFactory("shortUrlsDetailsReducerCreator",fCe,"apiClientFactory"),e.serviceFactory("shortUrlsDetailsReducer",r=>r.reducer,"shortUrlsDetailsReducerCreator"),e.serviceFactory("listShortUrls",gPe,"apiClientFactory"),e.serviceFactory("createShortUrl",aCe,"apiClientFactory"),e.serviceFactory("resetCreateShortUrl",r=>r.resetCreateShortUrl,"shortUrlCreationReducerCreator"),e.serviceFactory("deleteShortUrl",pPe,"apiClientFactory"),e.serviceFactory("resetDeleteShortUrl",r=>r.resetDeleteShortUrl,"shortUrlDeletionReducerCreator"),e.serviceFactory("shortUrlDeleted",()=>pz),e.serviceFactory("getShortUrlsDetails",r=>r.getShortUrlsDetails,"shortUrlsDetailsReducerCreator"),e.serviceFactory("editShortUrl",uCe,"apiClientFactory")},LCe=({tag:e,toggle:t,isOpen:r,deleteTag:n,tagDelete:i,tagDeleted:o})=>{const{deleting:a,error:s,deleted:c,errorData:u}=i;return g.jsxs(Yn,{toggle:t,isOpen:r,centered:!0,onClosed:()=>c&&o(e),children:[g.jsx(la,{toggle:t,className:"text-danger",children:"Delete tag"}),g.jsxs(Eo,{children:["Are you sure you want to delete tag ",g.jsx("b",{children:e}),"?",s&&g.jsx(Tn,{type:"error",small:!0,className:"mt-2",children:g.jsx(aa,{errorData:u,fallbackMessage:"Something went wrong while deleting the tag :("})})]}),g.jsxs(Ja,{children:[g.jsx(_t,{color:"link",onClick:t,children:"Cancel"}),g.jsx(_t,{color:"danger",disabled:a,onClick:async()=>{await n(e),t()},children:a?"Deleting tag...":"Delete tag"})]})]})},dV=({tag:e,editTag:t,toggle:r,tagEdited:n,isOpen:i,tagEdit:o})=>{const{ColorGenerator:a}=cr(dV),[s,c]=I.useState(e),[u,h]=I.useState(a.getColorForKey(e)),{editing:p,error:v,edited:b,errorData:_}=o,x=fz(async()=>{await t({oldName:e,newName:s,color:u}),r()}),w=I.useCallback(()=>b&&n({oldName:e,newName:s,color:u}),[u,b,s,e,n]);return g.jsx(Yn,{isOpen:i,toggle:r,centered:!0,onClosed:w,children:g.jsxs("form",{name:"editTag",onSubmit:x,children:[g.jsx(la,{toggle:r,children:"Edit tag"}),g.jsxs(Eo,{children:[g.jsxs(rm,{children:[g.jsx(Wz,{color:u,onChange:h,className:"input-group-text",name:"tag-color"}),g.jsx(Zr,{value:s,placeholder:"Tag",required:!0,onChange:({target:O})=>c(O.value)})]}),v&&g.jsx(Tn,{type:"error",small:!0,className:"mt-2",children:g.jsx(aa,{errorData:_,fallbackMessage:"Something went wrong while editing the tag :("})})]}),g.jsxs(Ja,{children:[g.jsx(_t,{type:"button",color:"link",onClick:r,children:"Cancel"}),g.jsx(_t,{color:"primary",disabled:p,children:p?"Saving...":"Save"})]})]})})},ICe=fr(dV,["ColorGenerator"]),DCe=/\s+/g,hV=e=>e.trim().toLowerCase().replace(DCe,"-"),pV=({color:e})=>g.jsx("div",{style:{backgroundColor:e},className:"color-bullet"}),mV=({tag:e,colorGenerator:t})=>g.jsx(pV,{color:t.getColorForKey(e)});let Z5=1;const vV="Tag not found",gV="Add tag",$Ce=e=>e!==vV,FCe=e=>e===gV,X5=e=>(Z5+=1,{label:e,value:`${e}${Z5}`}),BCe=e=>({tag:t,onClick:r})=>g.jsx(Mb,{colorGenerator:e,text:t.label,className:"react-tags__tag",onClose:r}),UCe=(e,t)=>({option:r,classNames:n,...i})=>{var o;const a=$Ce(r.label),s=FCe(r.label);return g.jsx("div",{className:ze(n.option,{[n.optionIsActive]:a&&r.active,"react-tags__listbox-option--not-selectable":!a}),...i,children:a?g.jsxs(g.Fragment,{children:[!s&&g.jsx(mV,{tag:`${r.label}`,colorGenerator:e}),s?g.jsxs("i",{children:['Add "',hV(((o=t.current)==null?void 0:o.input.value)??""),'"']}):r.label]}):g.jsx("i",{children:r.label})})},yV=({selectedTags:e,onChange:t,placeholder:r,tags:n,immutable:i=!1})=>{const{ColorGenerator:o}=cr(yV),a=Rn("shortUrlCreation"),s=(a==null?void 0:a.tagFilteringMode)??"startsWith",c=Yi();return g.jsx(rue,{ref:c,selected:e.map(X5),suggestions:n.filter(u=>!e.includes(u)).map(X5),renderTag:BCe(o),renderOption:UCe(o,c),activateFirstOption:!0,allowNew:!i,newOptionText:gV,noOptionsText:vV,placeholderText:r??"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(hV)])])})},zCe=fr(yV,["ColorGenerator"]),TC="shlink/tagDelete",VCe={deleting:!1,deleted:!1,error:!1},bV=jn(`${TC}/tagDeleted`),WCe=e=>{const t=Vr(`${TC}/deleteTag`,async n=>{await e().deleteTags([n])}),{reducer:r}=Tr({name:TC,initialState:VCe,reducers:{},extraReducers:n=>{n.addCase(t.pending,()=>({deleting:!0,deleted:!1,error:!1})),n.addCase(t.rejected,(i,{error:o})=>({deleting:!1,deleted:!1,error:!0,errorData:Oi(o)})),n.addCase(t.fulfilled,()=>({deleting:!1,deleted:!0,error:!1}))}});return{reducer:r,deleteTag:t}},fA="shlink/tagEdit",qCe={editing:!1,edited:!1,error:!1},_V=jn(`${fA}/tagEdited`),HCe=(e,t)=>Vr(`${fA}/editTag`,async({oldName:r,newName:n,color:i})=>(await e().editTag(r,n),t.setColorForKey(n,i),{oldName:r,newName:n,color:i})),GCe=e=>Tr({name:fA,initialState:qCe,reducers:{},extraReducers:t=>{t.addCase(e.pending,()=>({editing:!0,edited:!1,error:!1})),t.addCase(e.rejected,(r,{error:n})=>({editing:!1,edited:!1,error:!0,errorData:Oi(n)})),t.addCase(e.fulfilled,(r,{payload:n})=>{const{oldName:i,newName:o}=n;return{oldName:i,newName:o,editing:!1,edited:!0,error:!1}})}}),dA="shlink/tagsList",KO={tags:[],filteredTags:[],stats:{},loading:!1,error:!1},Q5=(e,t)=>r=>r===e?t:r,J5=(e,t)=>e.filter(r=>r!==t),KCe=(e,t)=>e.reduce((r,[n,i])=>{if(!r[n])return r;const{bots:o,nonBots:a}=i,s=r[n];return{...r,[n]:{...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}),YCe=e=>Object.entries(e.reduce((t,{shortUrl:r,visit:n})=>(r==null||r.tags.forEach(i=>{t[i]||(t[i]={bots:0,nonBots:0}),n.potentialBot?t[i].bots+=1:t[i].nonBots+=1}),t),{})),ZCe=e=>Vr(`${dA}/listTags`,async()=>{const{data:t}=await e().tagsStats(),r=t.reduce((n,{tag:i,...o})=>(n[i]=o,n),{});return{tags:Object.keys(r),stats:r}}),xV=jn(`${dA}/filterTags`),XCe=(e,t)=>Tr({name:dA,initialState:KO,reducers:{},extraReducers:r=>{r.addCase(xV,(n,{payload:i})=>({...n,filteredTags:n.tags.filter(o=>o.toLowerCase().match(i.toLowerCase()))})),r.addCase(e.pending,n=>({...n,loading:!0,error:!1})),r.addCase(e.rejected,(n,{error:i})=>({...KO,error:!0,errorData:Oi(i)})),r.addCase(e.fulfilled,(n,{payload:i})=>({...KO,stats:i.stats,tags:i.tags,filteredTags:i.tags})),r.addCase(bV,({tags:n,filteredTags:i,...o},{payload:a})=>({...o,tags:J5(n,a),filteredTags:J5(i,a)})),r.addCase(_V,({tags:n,filteredTags:i,stats:o,...a},{payload:s})=>({...a,stats:{...o,[s.newName]:o[s.oldName]},tags:n.map(Q5(s.oldName,s.newName)).sort(),filteredTags:i.map(Q5(s.oldName,s.newName)).sort()})),r.addCase(cd,(n,{payload:i})=>({...n,stats:KCe(YCe(i.createdVisits),n.stats)})),r.addCase(t.fulfilled,({tags:n,...i},{payload:o})=>({...i,tags:n.concat(o.tags.filter(a=>!n.includes(a)))}))}}),QCe={tag:"Tag",shortUrls:"Short URLs",visits:"Visits"},wV=Ao(({filterTags:e,tagsList:t})=>{var r,n;const{TagsTable:i}=cr(wV),o=IT(),[a,s]=I.useState(((r=o.tags)==null?void 0:r.defaultOrdering)??{}),c=I.useMemo(()=>{const h=t.filteredTags.map(p=>{var v,b,_;const x=t.stats[p],w=((v=o.visits)!=null&&v.excludeBots?(b=x==null?void 0:x.visitsSummary)==null?void 0:b.nonBots:(_=x==null?void 0:x.visitsSummary)==null?void 0:_.total)??(x==null?void 0:x.visitsCount)??0;return{tag:p,visits:w,shortUrls:(x==null?void 0:x.shortUrlsCount)??0}});return DF(h,a)},[a,(n=o.visits)==null?void 0:n.excludeBots,t.filteredTags,t.stats]),u=Qj();return t.loading?g.jsx(qa,{loading:!0}):t.error?g.jsx(Tn,{type:"error",children:g.jsx(aa,{errorData:t.errorData,fallbackMessage:"Error loading tags :("})}):g.jsxs(Xj,{value:u,children:[g.jsx(im,{className:"mb-3",onChange:e}),g.jsx(Yo,{className:"mb-3",children:g.jsx("div",{className:"col-lg-6 offset-lg-6",children:g.jsx(om,{items:QCe,order:a,onChange:(h,p)=>s({field:h,dir:p})})})}),g.jsx(Jj,{type:"tags",className:"mb-3"}),g.jsx(i,{sortedTags:c,currentOrder:a,orderByColumn:h=>()=>{const p=F0(h,a.field,a.dir);s({field:p?h:void 0,dir:p})}})]})},()=>[kn.visits]),JCe=fr(wV,["TagsTable"]),hA=({pagesCount:e,currentPage:t,setCurrentPage:r,centered:n=!0})=>{if(e<2)return null;const i=o=>()=>!Hp(o)&&r(o);return g.jsxs(TT,{listClassName:ze("flex-wrap mb-0 simple-paginator",{"justify-content-center":n}),children:[g.jsx(mu,{disabled:t<=1,children:g.jsx(vu,{previous:!0,tag:"span",onClick:i(t-1)})}),sV(t,e).map((o,a)=>g.jsx(mu,{disabled:Hp(o),active:t===o,children:g.jsx(vu,{role:"link",tag:"span",onClick:i(o),children:lV(o)})},uV(o,a))),g.jsx(mu,{disabled:t>=e,children:g.jsx(vu,{next:!0,tag:"span",onClick:i(t+1)})})]})},eTe=20,OV=({sortedTags:e,orderByColumn:t,currentOrder:r})=>{const{TagsTableRow:n}=cr(OV),i=I.useRef(!0),{page:o=1}=Xf(),[a,s]=XSe("page",Number(o)),c=I.useCallback(v=>{s(v),scrollTo(0,0)},[s]),u=ef(e,eTe),h=u.length>1,p=u[a-1]??[];return I.useEffect(()=>{i.current||c(1),i.current=!1},[c,e]),g.jsxs(Wt,{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(Kh,{currentOrder:r,field:"tag"})]}),g.jsxs("th",{className:"tags-table__header-cell text-lg-end",onClick:t("shortUrls"),children:["Short URLs ",g.jsx(Kh,{currentOrder:r,field:"shortUrls"})]}),g.jsxs("th",{className:"tags-table__header-cell text-lg-end",onClick:t("visits"),children:["Visits ",g.jsx(Kh,{currentOrder:r,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(n,{tag:v},v.tag))]})]}),h&&g.jsx("div",{className:"sticky-card-paginator",children:g.jsx(hA,{pagesCount:u.length,currentPage:a,setCurrentPage:c})})]},a)},tTe=fr(OV,["TagsTableRow"]),SV=({tag:e})=>{const{DeleteTagConfirmModal:t,EditTagModal:r,ColorGenerator:n}=cr(SV),[i,o]=ur(),[a,s]=ur(),c=_l(),u=jb();return g.jsxs("tr",{className:"responsive-table__row",children:[g.jsxs("th",{className:"responsive-table__cell","data-th":"Tag",children:[g.jsx(mV,{tag:e.tag,colorGenerator:n})," ",e.tag]}),g.jsx("td",{className:"responsive-table__cell text-lg-end","data-th":"Short URLs",children:g.jsx(Ht,{to:`${c}/list-short-urls/1?tags=${encodeURIComponent(e.tag)}`,children:Sr(e.shortUrls)})}),g.jsx("td",{className:"responsive-table__cell text-lg-end","data-th":"Visits",children:g.jsx(Ht,{to:`${c}/tag/${e.tag}/visits`,children:Sr(e.visits)})}),g.jsx("td",{className:"responsive-table__cell text-lg-end",children:g.jsxs($0,{children:[g.jsxs(Ye,{onClick:s,children:[g.jsx(Ge,{icon:r$,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:n.stylesForKey(e.tag)}),children:[g.jsx(Ge,{icon:j0,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:KK,fixedWidth:!0,className:"me-1"})," Delete tag"]})]})}),g.jsx(r,{tag:e.tag,toggle:s,isOpen:a}),g.jsx(t,{tag:e.tag,toggle:o,isOpen:i})]})},rTe=fr(SV,["DeleteTagConfirmModal","EditTagModal","ColorGenerator"]),nTe=(e,t)=>{e.factory("TagsSelector",zCe),e.serviceFactory("DeleteTagConfirmModal",()=>LCe),e.decorator("DeleteTagConfirmModal",t(["tagDelete"],["deleteTag","tagDeleted"])),e.factory("EditTagModal",ICe),e.decorator("EditTagModal",t(["tagEdit"],["editTag","tagEdited"])),e.factory("TagsTableRow",rTe),e.factory("TagsTable",tTe),e.factory("TagsList",JCe),e.decorator("TagsList",t(["tagsList","mercureInfo"],["filterTags","createNewVisits","loadMercureInfo"])),e.serviceFactory("tagEditReducerCreator",GCe,"editTag"),e.serviceFactory("tagEditReducer",r=>r.reducer,"tagEditReducerCreator"),e.serviceFactory("tagDeleteReducerCreator",WCe,"apiClientFactory"),e.serviceFactory("tagDeleteReducer",r=>r.reducer,"tagDeleteReducerCreator"),e.serviceFactory("tagsListReducerCreator",XCe,"listTags","createShortUrl"),e.serviceFactory("tagsListReducer",r=>r.reducer,"tagsListReducerCreator"),e.serviceFactory("listTags",ZCe,"apiClientFactory"),e.serviceFactory("filterTags",()=>xV),e.serviceFactory("deleteTag",r=>r.deleteTag,"tagDeleteReducerCreator"),e.serviceFactory("tagDeleted",()=>bV),e.serviceFactory("editTag",HCe,"apiClientFactory","ColorGenerator"),e.serviceFactory("tagEdited",()=>_V)},iTe=new O7,oTe=e=>iTe.parse(e),e8=e=>e.toLowerCase().trim();class aTe{constructor(t){tl(this,"colors"),tl(this,"lights");var r;this.storage=t,this.colors=((r=this.storage)==null?void 0:r.getTagColors())??{},this.lights={}}getColorForKey(t){const r=e8(t);return this.colors[r]||this.setColorForKey(r,qEe())}setColorForKey(t,r){var n;const i=e8(t);return this.colors[i]=r,(n=this.storage)==null||n.storeTagColors(this.colors),r}stylesForKey(t){const r=this.getColorForKey(t);return{backgroundColor:r,color:this.isLightColor(r)?"#222":"#fff"}}isLightColor(t){const r=t.substring(1);return this.lights[r]===void 0&&(this.lights[r]=Vz(r)),this.lights[r]}}const PV=({document:e},t,r)=>{const n=e.createElement("a");n.setAttribute("href",t),n.setAttribute("download",r),n.style.visibility="hidden",e.body.appendChild(n),n.click(),e.body.removeChild(n)},sTe=(e,t,r)=>{const n=new Blob([t],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(n);PV(e,i,r)};class lTe{constructor(t,r){this.fetch=t,this.window=r}async saveImage(t,r){const n=await this.fetch(t).then(o=>o.blob()),i=URL.createObjectURL(n);PV(this.window,i,r)}}class uTe{constructor(t,r){tl(this,"exportVisits",(n,i)=>{i.length&&this.exportCsv(n,i)}),tl(this,"exportShortUrls",n=>{n.length&&this.exportCsv("short_urls.csv",n)}),tl(this,"exportCsv",(n,i)=>{const o=this.jsonToCsv(i);sTe(this.window,o,n)}),this.window=t,this.jsonToCsv=r}}function cTe(e){e.constant("window",window),e.constant("fetch",window.fetch.bind(window)),e.service("ImageDownloader",lTe,"fetch","window"),e.service("ColorGenerator",aTe,"TagColorsStorage"),e.constant("jsonToCsv",oTe),e.service("ReportExporter",uTe,"window","jsonToCsv"),e.serviceFactory("useTimeoutToggle",()=>LF)}const _m=({visits:e,shortUrl:t,children:r,title:n})=>g.jsx("header",{children:g.jsxs(xi,{body:!0,children:[g.jsxs("h2",{className:"d-flex justify-content-between align-items-center mb-0",children:[g.jsx(Nb,{}),g.jsx("span",{className:"text-center d-none d-sm-block",children:g.jsx("small",{children:n})}),g.jsxs("span",{className:"badge badge-main ms-3",children:["Visits:"," ",g.jsx(Gz,{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:n})}),r&&g.jsx("div",{className:"mt-md-2",children:r})]})}),Ib=({children:e,className:t})=>g.jsx("div",{className:ze("d-flex justify-content-between align-items-center",t),children:e}),EV=({title:e,footer:t,children:r})=>g.jsxs(xi,{role:"document",children:[g.jsx(tm,{className:"chart-card__header",children:e}),g.jsx(em,{children:r}),t&&g.jsx(bF,{className:"chart-card__footer--sticky",children:t})]}),CV={color:"white",background:"rgb(0 0 0 / .9)",border:"none",borderRadius:"5px"},fTe={marginBottom:"5px",fontWeight:"bold"},TV={contentStyle:CV,labelStyle:fTe,itemStyle:{padding:0}},t8=["#97BBCD","#F7464A","#46BFBD","#FDB45C","#949FB1","#57A773","#414066","#08B2E3","#B6C454","#DCDCDC","#463730"],jV=e=>t8[e%t8.length],_0=()=>am()?"#46e587":"#1DAA58",dTe=()=>am()?"rgba(70, 229, 135, 0.4)":"rgba(29, 170, 88, 0.4)",hTe=({chartData:e,showNumbers:t})=>g.jsx("ul",{className:"doughnut-chart-legend",children:e.map(({name:r,color:n,value:i})=>g.jsxs("li",{className:"doughnut-chart-legend__item d-flex",children:[g.jsx("div",{className:"doughnut-chart-legend__item-color",style:{backgroundColor:n}}),g.jsxs("small",{className:"doughnut-chart-legend__item-text flex-fill",children:[r,t&&g.jsxs("b",{children:[" (",Sr(i),")"]})]})]},r))}),r8=e=>I.useMemo(()=>Object.entries(e).map(([t,r],n)=>({name:t,value:r,color:jV(n)})),[e]),pTe=({stats:e,prevStats:t,showNumbersInLegend:r,dimensions:n})=>{const i=r8(e),o=r8(t),a=o.length>0,s=am()?Bie:Fie;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:n??{width:"100%",height:300},children:g.jsx(n?I.Fragment:uj,{children:g.jsxs(cSe,{...n,children:[g.jsx(Ui,{formatter:Sr,contentStyle:CV,itemStyle:{color:"white"}}),g.jsx(oa,{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(Qs,{fill:c.color,stroke:s},`${c.name}-${u}`))}),a&&g.jsx(oa,{data:o,dataKey:"value",nameKey:"name",startAngle:360,endAngle:0,outerRadius:"55%",innerRadius:"20%",animationBegin:0,stroke:s,fill:_0()})]})})})}),g.jsx("div",{className:"col-sm-12 col-md-5",children:g.jsx(hTe,{chartData:i,showNumbers:r})})]})},n8=({title:e,...t})=>{const[r,n]=ur(!1);return g.jsx(EV,{title:g.jsxs(Ib,{children:[e,g.jsx("div",{children:g.jsx(Ha,{checked:r,onChange:n,children:"Show numbers"})})]}),children:g.jsx(pTe,{...t,showNumbersInLegend:r})})},mTe=I.forwardRef(({visitsGroups:e},t)=>{const r=I.useMemo(()=>Object.entries(e),[e]);return r.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:r.map(([n,i],o)=>g.jsxs("li",{className:"d-inline",children:[g.jsx(pV,{color:AV(i)}),g.jsxs("strong",{children:[n," (",Sr(i.length),")"]})]},`${n}${o}`))})}),vTe={monthly:"Month",weekly:"Week",daily:"Day",hourly:"Hour"},gTe={hourly:e=>({hours:e}),daily:e=>({days:e}),weekly:e=>({weeks:e}),monthly:e=>({months:e})},yTe={hourly:kae,daily:q0,weekly:Aae,monthly:ly},pA={hourly:e=>uy(e,"yyyy-MM-dd HH:00"),daily:e=>Zs(e),weekly(e){const t=Zs(up(e)),r=Zs(Fae(e));return`${t} - ${r}`},monthly:e=>uy(e,"yyyy-MM")},bTe=e=>{var t;const r=Object.values(e).filter(a=>a.length>0);if(r.length===0)return"monthly";const n=new Date,i=r.map(a=>al(a[a.length-1].date)),o=c7(i);return((t=[[()=>q0(n,o)<=2,"hourly"],[()=>ly(n,o)<=1,"daily"],[()=>ly(n,o)<=6,"weekly"]].find(([a])=>a()))==null?void 0:t[1])??"monthly"},_Te=(e,t)=>Object.keys(t).reduce((r,n)=>(r[n]=e7(t[n],i=>pA[e](al(i.date))),r),{}),xTe=(e,t)=>t.reduce((r,n)=>{const i=pA[e](al(n.date));return r[i]=r[i]??[],r[i].push(n),r},{}),wTe=(e,t)=>{const r=Object.values(t).filter(h=>h.length>0).map(h=>[...h].reverse());if(r.length===0)return[];const n=yTe[e],i=pA[e],o=gTe[e],a=r.flat(),s=al(a[0].date),c=al(a[a.length-1].date),u=n(c,s)||1;return[{formattedDate:i(s),date:s},...eA(u,h=>{const p=Sae(s,o(h));return{formattedDate:i(p),date:p}})]},AV=e=>{if(e.color)return e.color;const t={main:op,highlighted:FP,previous:_0()};return e.type?t[e.type]:op},i8=(e,t)=>I.useMemo(()=>Object.values(e).find(r=>r.type===t)??[],[e,t]),OTe=(e,t,r)=>{const n=i8(e,"main"),i=i8(e,"highlighted"),o=I.useMemo(()=>r?xTe(t,n):{},[r,t,n]),a=I.useCallback((s,{payload:c})=>{const u=o[c.formattedDate]??[];r==null||r(u===i?[]:u)},[o,i,r]);return r&&{cursor:"pointer",onClick:a}},o8=e=>{var t,r;return(r=(t=e.activePayload)==null?void 0:t[0])==null?void 0:r.payload},kV=({visitsGroups:e,setSelectedVisits:t,dimensions:r,matchMedia:n,onDateRangeChange:i})=>{const[o,a]=I.useState(bTe(e)),s=rA(767,n??window.matchMedia),c=I.useMemo(()=>{const q=_Te(o,e),J=Object.keys(q);return wTe(o,e).map(({formattedDate:Q,date:ne})=>({date:ne,formattedDate:Q,...J.reduce((ae,se)=>(ae[se]=q[se][Q]??0,ae),{})}))},[o,e]),u=OTe(e,o,t),[h,p,,v]=ur(),b=Yi(),_=I.useId(),x=Yi(),[w,O]=I.useState(s?300:400);I.useLayoutEffect(()=>{if(!h)return O(s?300:400),()=>{};const q=new ResizeObserver(()=>{const{height:J}=b.current.getBoundingClientRect(),{height:Q}=x.current.getBoundingClientRect();O(J-Q-48)});return q.observe(b.current),q.observe(x.current),()=>q.disconnect()},[b,h,s,x]),JSe("Escape",v,h);const P=r?I.Fragment:uj,C=I.useMemo(()=>r?{}:{width:"100%",height:w},[r,w]),[T,A]=I.useState(),[j,N]=I.useState(),F=I.useCallback(()=>{A(void 0),N(void 0)},[]),V=I.useCallback((q,J)=>{const Q=o8(q);J.button===0&&Q&&A(Q)},[]),B=I.useCallback(q=>{const J=o8(q);T&&J&&N(J)},[T]),W=I.useCallback(()=>{if(!T||!j)return;const q=[T.date,j.date],J=Cae(q),Q=c7(q);F(),i({startDate:J,endDate:Q})},[i,F,j,T]);return g.jsxs(xi,{className:ze({"fixed-top fixed-bottom":h}),"data-testid":"line-chart-card",children:[g.jsxs(tm,{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":_,size:"sm",color:"link",onClick:p,children:g.jsx(Ge,{icon:h?TK:OY})}),g.jsxs(nm,{className:"d-flex align-items-center",children:[g.jsx(Qa,{caret:!0,color:"link",className:"btn-sm p-0",children:"Group by"}),g.jsx(pl,{end:!0,children:Object.entries(vTe).map(([q,J])=>g.jsx(Ye,{active:o===q,onClick:()=>a(q),children:J},q))})]})]})]}),g.jsxs(em,{innerRef:b,id:_,children:[g.jsx(P,{...C,children:g.jsxs(uSe,{className:"user-select-none",data:c,...r,onMouseDown:V,onMouseMove:B,onMouseUp:W,children:[g.jsx(ld,{dataKey:"formattedDate"}),g.jsx(ud,{tickFormatter:Sr,yAxisId:"1"}),g.jsx(Ui,{formatter:Sr,...TV}),g.jsx(qj,{strokeOpacity:am()?.1:.9}),Object.entries(e).map(([q,J])=>J.length>0&&g.jsx(sd,{yAxisId:"1",dataKey:q,type:"monotone",stroke:AV(J),strokeWidth:2,activeDot:J.type==="previous"?void 0:u,strokeDasharray:J.type==="previous"?"8 3":void 0},q)),T&&j&&g.jsx(vm,{yAxisId:"1",x1:T.formattedDate,x2:j.formattedDate})]})}),g.jsx(mTe,{visitsGroups:e,ref:x})]})]})},STe=({toggleClassName:e,ranges:t,value:r,setValue:n})=>g.jsxs(nm,{children:[g.jsx(Qa,{caret:!0,color:"link",className:e,children:"Paginate"}),g.jsxs(pl,{end:!0,children:[t.map(i=>g.jsxs(Ye,{active:i===r,onClick:()=>n(i),children:[g.jsx("b",{children:i})," items per page"]},i)),g.jsx(Ye,{divider:!0,tag:"hr"}),g.jsx(Ye,{disabled:r===1/0,onClick:()=>n(1/0),children:g.jsx("i",{children:"Clear pagination"})})]})]}),a8=e=>e.startsWith("hidden_"),PTe=({stats:e,prevStats:t,highlightedStats:r,highlightedLabel:n,max:i,onClick:o,dimensions:a})=>{const s=I.useMemo(()=>Object.entries(e).map(([p,v])=>{const b=(r==null?void 0:r[p])??0,_=(t==null?void 0:t[p])??0,x=a8(p);return{name:p,amount:Math.max(v,_),nonHighlightedAmount:x?null:v-b,highlightedAmount:x?null:b,prevAmount:x?null:_}}),[e,t,r]),c=I.useMemo(()=>{const p=s.reduce((v,{name:b})=>v>b.length?v:b.length,0);return Math.min(150,p*7)},[s]),u=a?I.Fragment:uj,h=I.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(fSe,{layout:"vertical",data:s,barCategoryGap:3,...a,children:[g.jsx(ld,{type:"number",dataKey:"amount",tickFormatter:Sr,domain:i?[0,i]:void 0}),g.jsx(ud,{type:"category",dataKey:"name",width:c,interval:0,style:{fontSize:".8rem"},tickFormatter:p=>a8(p)?"":p}),g.jsx(qj,{strokeOpacity:am()?.05:.9}),g.jsx(Ui,{filterNull:!0,...TV,formatter:(p,v)=>[Sr(p),v==="highlightedAmount"?n:v==="prevAmount"?"Previous period":r?"Non-selected":"Visits"]}),g.jsx(Ua,{dataKey:"nonHighlightedAmount",stackId:"main",cursor:"pointer",fill:op,onClick:({name:p})=>o==null?void 0:o(p),children:s.map(p=>g.jsx(Qs,{fill:Die,stroke:op,strokeWidth:2},p.name))}),r&&g.jsx(Ua,{dataKey:"highlightedAmount",stackId:"main",cursor:"pointer",fill:FP,onClick:({name:p})=>o==null?void 0:o(p),children:s.map(p=>g.jsx(Qs,{fill:$ie,stroke:FP,strokeWidth:2},p.name))}),t&&g.jsx(Ua,{dataKey:"prevAmount",fill:_0(),children:s.map(p=>g.jsx(Qs,{fill:dTe(),stroke:_0(),strokeWidth:2},p.name))})]})})},ETe=e=>typeof e=="string"?e.toLowerCase():e,CTe=([e])=>e,TTe=([,e])=>e,cg=({stats:e,prevStats:t,highlightedStats:r,title:n,sortingItems:i,extraHeaderContent:o,withPagination:a=!0,...s})=>{const[c,u]=I.useState({}),[h,p]=I.useState(1),[v,b]=I.useState(50),_=I.useCallback((F,V)=>{const B=Object.entries(F),W=c.field?Hoe(B,([q,J])=>ETe(c.field===Object.keys(V)[0]?q:J)):B;return!c.dir||c.dir==="ASC"?W:[...W].reverse()},[c.dir,c.field]),x=I.useCallback(F=>{const V=F[h-1];if(h<F.length)return V;const B=F[0].length;return[...V,...eA(B-V.length,W=>[`hidden_${W}`,0])]},[h]),w=I.useCallback(F=>g.jsx(hA,{currentPage:h,pagesCount:F,setCurrentPage:p}),[h]),O=I.useCallback((F,V,B,W)=>{const q=_(F,V),J=q.map(CTe),Q=B&&Object.entries({...uN(J,J.map(()=>0)),...B}),ne=W&&Object.entries({...uN(J,J.map(()=>0)),...W});if(q.length<=v)return{currentPageStats:Object.fromEntries(q),currentPageHighlightedStats:Q&&Object.fromEntries(Q),currentPagePrevStats:ne&&Object.fromEntries(ne)};const ae=ef(q,v),se=Q&&ef(Q,v),oe=ne&&ef(ne,v);return{currentPageStats:Object.fromEntries(x(ae)),currentPageHighlightedStats:se&&Object.fromEntries(x(se)),currentPagePrevStats:oe&&Object.fromEntries(x(oe)),pagination:w(ae.length),max:xPe(Math.max(...q.map(TTe)))}},[x,_,v,w]),{currentPageStats:P,currentPagePrevStats:C,currentPageHighlightedStats:T,pagination:A,max:j}=I.useMemo(()=>O(e,i,r&&Object.keys(r).length>0?r:void 0,t&&Object.keys(t).length>0?t:void 0),[O,r,t,i,e]),N=I.useMemo(()=>Object.keys(P),[P]);return g.jsx(EV,{title:g.jsxs(Ib,{children:[n,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(STe,{toggleClassName:"btn-sm p-0",ranges:[50,100,200,500],value:v,setValue:F=>{b(F),p(1)}}),g.jsx(om,{isButton:!1,right:!0,items:i,order:c,onChange:(F,V)=>{u({field:F,dir:V}),p(1)}})]})]}),footer:A,children:g.jsx(PTe,{stats:P,prevStats:C,highlightedStats:T,max:j,...s})})},mA=e=>e.type!==void 0,jTe=e=>e.type!==void 0,ATe=e=>{const t=t7(e,r=>mA(r.visit)?"orphanVisits":"nonOrphanVisits");return{orphanVisits:[],nonOrphanVisits:[],...t}},RV=(e,{shortCode:t,domain:r},{endDate:n,startDate:i}={})=>e.filter(({shortUrl:o,visit:a})=>o&&Hh(o,t,r)&&bm(a.date,i,n)),NV=(e,t,{endDate:r,startDate:n}={})=>e.filter(({shortUrl:i,visit:o})=>i&&dPe(i,t)&&bm(o.date,n,r)),MV=(e,t,{endDate:r,startDate:n}={})=>e.filter(({shortUrl:i,visit:o})=>(i==null?void 0:i.tags.includes(t))&&bm(o.date,n,r)),fg=(e,t)=>e7(e,r=>r[t]),kTe=e=>{const t=((e==null?void 0:e.startDate)&&cl(e==null?void 0:e.startDate))??void 0,r=((e==null?void 0:e.endDate)&&cl(e==null?void 0:e.endDate))??void 0;return{startDate:t,endDate:r}},jC=({filter:e,dateRange:t})=>{const{startDate:r,endDate:n}=kTe(t),i=(e==null?void 0:e.excludeBots)||void 0;return{startDate:r,endDate:n,excludeBots:i}},RTe=e=>oV(e.dateRange),NTe=({dateRange:e,...t})=>({...t,dateRange:wCe(e)}),s8=(e,t)=>{if(!(!t||!(e in t)))return t[e]&&cl(t[e])||""},LV=()=>{const e=sa(),t=Xf(),{startDate:r,endDate:n,orphanVisitsType:i,excludeBots:o,loadPrevInterval:a,...s}=t,c=I.useMemo(()=>({dateRange:r!=null||n!=null?tV(r,n):void 0,visitsFilter:{orphanVisitsType:i,excludeBots:o!==void 0?o==="true":void 0},loadPrevInterval:a!==void 0?a==="true":void 0}),[n,o,a,i,r]),u=I.useCallback(h=>{const{dateRange:p,visitsFilter:v={},loadPrevInterval:b}=W0(c,h),{excludeBots:_,orphanVisitsType:x}=v,w={...s,startDate:s8("startDate",p),endDate:s8("endDate",p),excludeBots:_===void 0?void 0:OC(_),orphanVisitsType:x,loadPrevInterval:b===void 0?void 0:OC(b)},O=D0(w),P=O?`?${O}`:"";e(P,{replace:!0,relative:"route"})},[c,e,s]);return[c,u]},MTe=()=>g.jsx(ASe,{attribution:'© <a href="https://osm.org/copyright">OpenStreetMap</a> contributors',url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}),LTe=e=>{if(e.length===0)return{};if(e.length>1)return{bounds:e.map(({latLong:r})=>r)};const[{latLong:t}]=e;return{zoom:10,center:t}},IV=({toggle:e,isOpen:t,title:r,locations:n=[]})=>g.jsx(Yn,{toggle:e,isOpen:t,className:"map-modal__modal",contentClassName:"map-modal__modal-content",children:g.jsxs(Eo,{className:"map-modal__modal-body",children:[g.jsxs(Ib,{className:"map-modal__modal-title fs-4",children:[r,g.jsx("button",{type:"button",className:"btn-close","aria-label":"Close",onClick:e})]}),g.jsxs(CSe,{...LTe(n),children:[g.jsx(MTe,{}),n.map(({cityName:i,latLong:o,count:a},s)=>g.jsx(TSe,{position:o,children:g.jsxs(jSe,{children:[g.jsx("b",{children:a})," visit",a>1?"s":""," from ",g.jsx("b",{children:i})]})},s))]})]})}),ITe=({modalTitle:e,activeCities:t,locations:r=[]})=>{const[n,,i,o]=ur(),[a,s]=ur(),[c,u]=I.useState([]),h=I.useCallback(p=>{u(p?r.filter(p):r),i()},[r,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:rS})}),t&&g.jsxs(hl,{isOpen:a,toggle:s,children:[g.jsx(Qa,{color:"link",className:"p-0",title:"Show in map",children:g.jsx(Ge,{icon:rS})}),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(IV,{toggle:o,isOpen:n,title:e,locations:c})]})},DV=({onChange:e,selected:t={},className:r,isOrphanVisits:n=!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=I.useCallback(()=>e({...t,excludeBots:!s}),[s,e,t]),p=I.useCallback(()=>e({...t,loadPrevInterval:!c}),[c,e,t]);return g.jsxs(es,{disabled:o,text:"More",dropdownClassName:r,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"}),n&&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"})})]})},$V=({info:e})=>{const{loading:t,errorData:r,progress:n}=e;return g.jsxs(g.Fragment,{children:[t&&n===null&&g.jsx(qa,{loading:!0}),t&&n!==null&&g.jsxs(qa,{loading:!0,children:["This is going to take a while... :S",g.jsx(SF,{value:n,striped:n>=100,className:"mt-3"})]}),r&&g.jsx(Tn,{type:"error",children:g.jsx(aa,{errorData:r,fallbackMessage:"An error occurred while loading visits :("})})]})},Cg=({children:e,showFallback:t})=>g.jsxs(g.Fragment,{children:[t&&g.jsx(qa,{className:"mt-3",children:"There are no visits matching current filter"}),!t&&g.jsx(g.Fragment,{children:e})]}),DTe=({visitsDeletion:e,deleteVisits:t})=>{const{deleting:r}=e,[n,,i]=ur();return g.jsx(Wt,{title:g.jsx("span",{className:"text-danger fw-bold",children:"Danger zone"}),children:g.jsxs(Ib,{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."]})]}),!n&&g.jsx(_t,{color:"danger",className:"indivisible",onClick:i,children:"Delete visits"}),n&&g.jsxs(_t,{color:"danger",disabled:r,className:"indivisible",onClick:t,innerRef:o=>{o==null||o.focus()},children:[!r&&g.jsx(g.Fragment,{children:"Click again to confirm"}),r&&g.jsx(g.Fragment,{children:"Deleting..."})]})]})})},dg="Others",$Te=["Android Browser","Chrome","Chromium","Firefox","Internet Explorer","Microsoft Edge","Opera","Safari","Samsung Internet for Android","Vivaldi","WeChat"],FTe=e=>{if(!au(e))return{browser:dg,os:dg};const{browser:{name:t},os:{name:r}}=ISe.parse(e);return{os:r??dg,browser:t&&$Te.includes(t)?t:dg}},BTe=e=>{var t;return au(e)?((t=e.split("/")[e.includes("://")?2:0])==null?void 0:t.split(":")[0])??"":"Direct"},FV=(e,t)=>e[t]!==void 0,l8=e=>typeof e=="number"?e:e?parseFloat(e):0,UTe=(e,{os:t})=>{e[t]=(e[t]||0)+1},zTe=(e,{browser:t})=>{e[t]=(e[t]||0)+1},VTe=(e,{referer:t})=>{e[t]=(e[t]||0)+1},BV=e=>(t,r)=>{const n=FV(r,e)?r[e]:"Unknown";t[n]=(t[n]||0)+1},WTe=BV("country"),qTe=BV("city"),HTe=(e,t)=>{if(!FV(t,"city")||t.city==="Unknown")return;const{city:r,latitude:n,longitude:i}=t,o=e[r]||{cityName:r,count:0,latLong:[l8(n),l8(i)]};o.count+=1,e[r]=o},GTe=(e,t)=>{if(!jTe(t))return;const{visitedUrl:r}=t;e[r]=(e[r]||0)+1},AC=e=>e.reduce((t,r)=>(UTe(t.os,r),zTe(t.browsers,r),VTe(t.referrers,r),WTe(t.countries,r),qTe(t.cities,r),HTe(t.citiesForMap,r),GTe(t.visitedUrls,r),t),{os:{},browsers:{},referrers:{},countries:{},cities:{},citiesForMap:{},visitedUrls:{}}),x0=e=>e.map(t=>{const{userAgent:r,date:n,referer:i,visitLocation:o,potentialBot:a}=t;return{date:n,potentialBot:a,userAgent:r,...FTe(r),referer:BTe(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:mA(t)?t.type:void 0}}),KTe=Object.freeze(Object.defineProperty({__proto__:null,normalizeVisits:x0,processStatsFromVisits:AC},Symbol.toStringTag,{value:"Module"})),jh=20,YTe=({browser:e,os:t,referer:r,country:n,city:i,userAgent:o,...a},s,c)=>{const u=c?o:`${n} ${i}`;return`${e} ${t} ${r} ${u} ${a.visitedUrl}`.toLowerCase().includes(s.toLowerCase())},ZTe=(e,t,r)=>t.filter(n=>YTe(n,e,r)),XTe=(e,t)=>DF(t,e),QTe=({visits:e,searchTerm:t,order:r,searchInRawUserAgent:n})=>{const i=t?ZTe(t,e,n):[...e],o=XTe(r,i),a=o.length;return{visitsGroups:ef(o,jh),total:a}},qo="visits-table__header-cell visits-table__sticky",JTe=({visits:e,selectedVisits:t=[],setSelectedVisits:r,matchMedia:n=window.matchMedia})=>{var i;const o=rA(767,n),[a,s]=I.useState(),c=I.useCallback(F=>{s(F),w(1),r([])},[r]),[u,h]=I.useState({}),[p,v]=ur(),b=I.useCallback(()=>{v(),h({})},[v]),_=I.useMemo(()=>QTe({visits:e,searchTerm:a,order:u,searchInRawUserAgent:p}),[e,a,u,p]),[x,w]=I.useState(1),O=x*jh,P=O-jh,C=I.useMemo(()=>{var F,V;return!!((V=(F=_.visitsGroups[x-1])==null?void 0:F[0])!=null&&V.visitedUrl)},[x,_.visitsGroups]),T=6+Number(C)+(p?1:2),A=_.total>0,j=F=>h({field:F,dir:F0(F,u.field,u.dir)}),N=F=>g.jsx(Kh,{currentOrder:u,field:F,className:"visits-table__header-icon"});return g.jsx(Wt,{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(Ha,{checked:p,onChange:b,children:"Show user agent"})]}),children:g.jsx("div",{className:"table-responsive-md",children:g.jsxs("table",{className:ze("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:`${qo} text-center`,onClick:()=>r(t.length<_.total?_.visitsGroups.flat():[]),children:[g.jsx("span",{className:"sr-only",children:"Is selected"}),g.jsx(Ge,{icon:Zh,className:ze({"text-primary":t.length>0})})]}),g.jsxs("th",{className:`${qo} text-center`,onClick:()=>j("potentialBot"),children:[g.jsx("span",{className:"sr-only",children:"Is bot"}),g.jsx(Ge,{icon:T3}),N("potentialBot")]}),g.jsxs("th",{className:qo,onClick:()=>j("date"),children:["Date",N("date")]}),g.jsxs("th",{className:qo,onClick:()=>j("country"),children:["Country",N("country")]}),g.jsxs("th",{className:qo,onClick:()=>j("city"),children:["City",N("city")]}),p?g.jsxs("th",{className:qo,onClick:()=>j("userAgent"),children:["User agent",N("userAgent")]}):g.jsxs(g.Fragment,{children:[g.jsxs("th",{className:qo,onClick:()=>j("browser"),children:["Browser",N("browser")]}),g.jsxs("th",{className:qo,onClick:()=>j("os"),children:["OS",N("os")]})]}),g.jsxs("th",{className:qo,onClick:()=>j("referer"),children:["Referrer",N("referer")]}),C&&g.jsxs("th",{className:qo,onClick:()=>j("visitedUrl"),children:["Visited URL",N("visitedUrl")]})]}),g.jsx("tr",{children:g.jsx("td",{colSpan:T,className:"p-0",children:g.jsx(im,{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=_.visitsGroups[x-1])==null?void 0:i.map((F,V)=>{const B=t.includes(F);return g.jsxs("tr",{style:{cursor:"pointer"},className:ze({"table-active":B}),onClick:()=>r(B?t.filter(W=>W!==F):[...t,F]),children:[g.jsx("td",{className:"text-center",children:B&&g.jsx(Ge,{icon:Zh,className:"text-primary"})}),g.jsx("td",{className:"text-center",children:F.potentialBot&&g.jsxs(g.Fragment,{children:[g.jsx(Ge,{icon:T3,id:`botIcon${V}`}),g.jsx(wi,{placement:"right",target:`botIcon${V}`,children:"Potentially a visit from a bot or crawler"})]})}),g.jsx("td",{children:g.jsx(g0,{date:F.date})}),g.jsx("td",{children:F.country}),g.jsx("td",{children:F.city}),p?g.jsx("td",{children:F.userAgent}):g.jsxs(g.Fragment,{children:[g.jsx("td",{children:F.browser}),g.jsx("td",{children:F.os})]}),g.jsx("td",{children:F.referer}),F.visitedUrl&&g.jsx("td",{children:F.visitedUrl})]},V)})]}),_.total>jh&&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(hA,{pagesCount:Math.ceil(_.total/jh),currentPage:x,setCurrentPage:w,centered:o}),g.jsxs("div",{children:["Visits ",g.jsx("b",{children:Sr(P+1)})," to"," ",g.jsx("b",{children:Sr(Math.min(O,_.total))})," of"," ",g.jsx("b",{children:Sr(_.total)})]})]})})})})]})})})},Ws={byTime:{title:"By time",subPath:"by-time",icon:AK},byContext:{title:"By context",subPath:"by-context",icon:ZC},byLocation:{title:"By location",subPath:"by-location",icon:rS},list:{title:"List",subPath:"list",icon:KC},options:{title:"Options",subPath:"options",icon:s$,shouldRender:({deletion:e})=>!!e}};Object.freeze(Ws);const YO=({display:e})=>e&&g.jsx("div",{className:"mt-3 mx-auto w-75",children:g.jsx(Wt,{children:g.jsxs("div",{className:"d-flex gap-2",children:[g.jsx(Ge,{icon:CY,className:"mt-1"}),g.jsx("i",{children:"Could not calculate previous period because selected one does not have a strictly defined start date."})]})})});let hg;const xm=e=>{const{children:t,visitsInfo:r,getVisits:n,cancelGetVisits:i,deletion:o,exportCsv:a,isOrphanVisits:s=!1}=e,{visits:c,prevVisits:u,loading:h,errorData:p,fallbackInterval:v}=r,[{dateRange:b,visitsFilter:_,loadPrevInterval:x},w]=LV(),O=Rn("visits"),[P,C]=I.useState(),T=I.useCallback(({startDate:$,endDate:Y},ue)=>{w({dateRange:{startDate:$??void 0,endDate:Y??void 0}}),C(ue)},[w]),[A,j]=I.useState(v??(O==null?void 0:O.defaultInterval)??"last30Days"),[N,F]=I.useState([]),[V,B]=I.useState(),W=I.useRef(!0),{search:q}=gn(),J=I.useCallback($=>$?`../${$}${q}`:q,[q]),Q=I.useMemo(()=>x0(c),[c]),ne=I.useMemo(()=>u&&x0(u),[u]),{os:ae,browsers:se,referrers:oe,countries:K,cities:G,citiesForMap:z,visitedUrls:re}=I.useMemo(()=>AC(Q),[Q]),X=I.useMemo(()=>AC(ne??[]),[ne]),le=I.useMemo(()=>Object.fromEntries([["Visits",Object.assign(Q,{type:"main"})],ne&&["Previous period",Object.assign(ne,{type:"previous"})],N.length>0&&[V??"Selected",Object.assign(N,{type:"highlighted"})]].filter(Boolean)),[V,N,ne,Q]),ce=I.useMemo(()=>({..._,excludeBots:_.excludeBots??(O==null?void 0:O.excludeBots),loadPrevInterval:x??(O==null?void 0:O.loadPrevInterval)}),[x,_,O==null?void 0:O.excludeBots,O==null?void 0:O.loadPrevInterval]),de=I.useMemo(()=>Object.values(z),[z]),be=I.useCallback($=>{hg=void 0,F($)},[]),M=I.useCallback(($,Y)=>{const ue=`${$}_${Y}`;hg===ue?(F([]),B(void 0),hg=void 0):(F(Q.filter(ie=>ie[$]===Y)),B(Y),hg=ue)},[Q]);return I.useEffect(()=>i,[i]),I.useEffect(()=>{const $=b??iV(A),{loadPrevInterval:Y,...ue}=ce,ie={doIntervalFallback:W.current,loadPrevInterval:Y};n({dateRange:$,filter:ue},ie),be([]),W.current=!1},[A,b,n,ce,be]),I.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(cA,{disabled:h,dateRangeOrInterval:P??b??A,defaultText:"All visits",onDatesChange:T})}),g.jsx(DV,{disabled:h,className:"ms-0 ms-md-2 mt-3 mt-md-0",isOrphanVisits:s,withPrevInterval:!0,selected:ce,onChange:({loadPrevInterval:$,...Y})=>w({visitsFilter:Y,loadPrevInterval:$})})]})}),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(Bz,{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:["(",Sr(N.length),")"]})]})]})})]})}),g.jsxs("section",{className:"mt-3",children:[g.jsx($V,{info:r}),!h&&!p&&g.jsxs(g.Fragment,{children:[g.jsx(IF,{fill:!0,children:Object.values(Ws).map(({title:$,icon:Y,subPath:ue,shouldRender:ie},he)=>!ie||ie(e)?g.jsxs(Ih,{to:J(ue),replace:!0,children:[g.jsx(Ge,{icon:Y}),g.jsx("span",{className:"ms-2 d-none d-lg-inline",children:$})]},he):void 0).filter(Boolean)}),g.jsx(Yo,{children:g.jsxs(E0,{children:[g.jsx(Pt,{path:Ws.byTime.subPath,element:g.jsxs(Cg,{showFallback:c.length===0,children:[g.jsx("div",{className:"col-12 mt-3","data-testid":"line-chart-container",children:g.jsx(kV,{visitsGroups:le,setSelectedVisits:be,onDateRangeChange:T})}),g.jsx(YO,{display:!!ce.loadPrevInterval&&!u})]})}),g.jsx(Pt,{path:Ws.byContext.subPath,element:g.jsxs(Cg,{showFallback:c.length===0,children:[g.jsx("div",{className:ze("mt-3 col-lg-6",{"col-xl-4":!s}),children:g.jsx(n8,{title:"Operating systems",stats:ae,prevStats:X.os})}),g.jsx("div",{className:ze("mt-3 col-lg-6",{"col-xl-4":!s}),children:g.jsx(n8,{title:"Browsers",stats:se,prevStats:X.browsers})}),g.jsx("div",{className:ze("mt-3",{"col-xl-4":!s,"col-lg-6":s}),children:g.jsx(cg,{title:"Referrers",withPagination:!1,stats:oe,prevStats:X.referrers,highlightedStats:fg(N,"referer"),highlightedLabel:V,sortingItems:{name:"Referrer name",amount:"Visits amount"},onClick:$=>M("referer",$)})}),s&&g.jsx("div",{className:"mt-3 col-lg-6",children:g.jsx(cg,{title:"Visited URLs",stats:re,prevStats:X.visitedUrls,highlightedStats:fg(N,"visitedUrl"),highlightedLabel:V,sortingItems:{visitedUrl:"Visited URL",amount:"Visits amount"},onClick:$=>M("visitedUrl",$)})}),g.jsx("div",{className:"col-12",children:g.jsx(YO,{display:!!ce.loadPrevInterval&&!u})})]})}),g.jsx(Pt,{path:Ws.byLocation.subPath,element:g.jsxs(Cg,{showFallback:c.length===0,children:[g.jsx("div",{className:"col-lg-6 mt-3",children:g.jsx(cg,{title:"Countries",stats:K,prevStats:X.countries,highlightedStats:fg(N,"country"),highlightedLabel:V,sortingItems:{name:"Country name",amount:"Visits amount"},onClick:$=>M("country",$)})}),g.jsx("div",{className:"col-lg-6 mt-3",children:g.jsx(cg,{title:"Cities",stats:G,prevStats:X.cities,highlightedStats:fg(N,"city"),highlightedLabel:V,extraHeaderContent:$=>de.length>0&&g.jsx(ITe,{modalTitle:"Cities",locations:de,activeCities:$}),sortingItems:{name:"City name",amount:"Visits amount"},onClick:$=>M("city",$)})}),g.jsx("div",{className:"col-12",children:g.jsx(YO,{display:!!ce.loadPrevInterval&&!u})})]})}),g.jsx(Pt,{path:Ws.list.subPath,element:g.jsx("div",{className:"col-12",children:g.jsx(JTe,{visits:Q,selectedVisits:N,setSelectedVisits:be})})}),o&&g.jsx(Pt,{path:Ws.options.subPath,element:g.jsx("div",{className:"col-12 mt-3",children:g.jsx(DTe,{...o})})}),g.jsx(Pt,{path:"*",element:g.jsx($C,{replace:!0,to:J(Ws.byTime.subPath)})})]})})]})]})]})},UV=Ao(({getDomainVisits:e,domainVisits:t,cancelGetDomainVisits:r})=>{const{ReportExporter:n}=cr(UV),{domain:i=""}=Kf(),[o,a=o]=i.split("_"),s=I.useCallback((u,h)=>e({domain:a,options:h,params:u}),[a,e]),c=I.useCallback(u=>n.exportVisits(`domain_${o}_visits.csv`,u),[o,n]);return g.jsx(xm,{getVisits:s,cancelGetVisits:r,visitsInfo:t,exportCsv:c,children:g.jsx(_m,{visits:t.visits,title:`"${o}" visits`})})},()=>[kn.visits]),eje=fr(UV,["ReportExporter"]),zV=Ao(({getNonOrphanVisits:e,nonOrphanVisits:t,cancelGetNonOrphanVisits:r})=>{const{ReportExporter:n}=cr(zV),i=I.useCallback(a=>n.exportVisits("non_orphan_visits.csv",a),[n]),o=I.useCallback((a,s)=>e({options:s,params:a}),[e]);return g.jsx(xm,{getVisits:o,cancelGetVisits:r,visitsInfo:t,exportCsv:i,children:g.jsx(_m,{title:"Non-orphan visits",visits:t.visits})})},()=>[kn.visits]),tje=fr(zV,["ReportExporter"]),VV=Ao(({getOrphanVisits:e,orphanVisits:t,cancelGetOrphanVisits:r,deleteOrphanVisits:n,orphanVisitsDeletion:i})=>{const o=bi("orphanVisitsDeletion"),{ReportExporter:a}=cr(VV),s=I.useCallback(h=>a.exportVisits("orphan_visits.csv",h),[a]),c=I.useCallback((h,p)=>{var v;return e({options:p,params:h,orphanVisitsType:(v=h.filter)==null?void 0:v.orphanVisitsType})},[e]),u=I.useMemo(()=>o?{deleteVisits:n,visitsDeletion:i}:void 0,[n,i,o]);return g.jsx(xm,{getVisits:c,cancelGetVisits:r,visitsInfo:t,exportCsv:s,deletion:u,isOrphanVisits:!0,children:g.jsx(_m,{title:"Orphan visits",visits:t.visits})})},()=>[kn.orphanVisits]),rje=fr(VV,["ReportExporter"]),u8=5e3,nje=2,ije=4,oje=({currentPage:e,pagesCount:t})=>e>=t,aje=(e,t)=>t*100/e,WV=({visitsLoader:e,shouldCancel:t,progressChanged:r,batchSize:n})=>{const i=async(a,s)=>Promise.all(s.map(async c=>e({...a,page:c,itemsPerPage:u8}).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 r(aje(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:u8});if(oje(s))return c;const u=LT(nje,s.pagesCount+1),h=ef(u,n);return s.pagesCount-1>n&&r(0),c.concat(await o(a,h))}},wm=(e,t)=>async r=>e?t({page:1,itemsPerPage:1,excludeBots:r}).then(({data:n})=>n[0]):Promise.resolve(void 0),Om=({typePrefix:e,createLoaders:t,shouldCancel:r})=>{const n=jn(`${e}/progressChanged`),i=jn(`${e}/fallbackToInterval`),o=Vr(e,async(a,{getState:s,dispatch:c})=>{var u;const{params:h,options:p}=a,{visitsLoader:v,lastVisitLoader:b}=t(a),_=OCe(h.dateRange),x=jC(h),w=p.loadPrevInterval&&RTe(h)?jC(NTe(h)):void 0,O=ije/(w?2:1),P=w?{main:0,prev:0}:{main:0},C=(F,V)=>{P[F]=V;const B=Object.values(P),W=B.reduce((q,J)=>q+J,0);c(n(W/B.length))},T=WV({visitsLoader:v,shouldCancel:()=>r(s),progressChanged:F=>C("main",F),batchSize:O}),[A,j,N]=await Promise.all([T(x),b((u=h.filter)==null?void 0:u.excludeBots),w?T(w).then(F=>F.map(V=>{if(_===void 0)return V;const{date:B,...W}=V,q=FT(pi(B),_);return{...W,date:cl(q)}})):Promise.resolve(void 0)]);return!A.length&&j&&c(i(xCe(j.date))),{...a,visits:A,prevVisits:N}});return Object.assign(o,{progressChanged:n,fallbackToInterval:i})},Sm=({name:e,asyncThunkCreator:t,initialState:r,filterCreatedVisits:n,extraReducers:i})=>{const{pending:o,rejected:a,fulfilled:s,progressChanged:c,fallbackToInterval:u}=t,{reducer:h,actions:p}=Tr({name:e,initialState:r,reducers:{cancelGetVisits:b=>({...b,cancelLoad:!0})},extraReducers:b=>{b.addCase(o,()=>({...r,loading:!0})),b.addCase(a,(_,{error:x})=>({...r,errorData:Oi(x)??null})),b.addCase(s,(_,{payload:x})=>({..._,...x,loading:!1,progress:null,errorData:null})),b.addCase(c,(_,{payload:x})=>({..._,progress:x})),b.addCase(u,(_,{payload:x})=>({..._,fallbackInterval:x})),b.addCase(cd,(_,{payload:x})=>{const{visits:w}=_,O=n(_,x.createdVisits).map(({visit:P})=>P);return O.length?{..._,visits:[...O,...w]}:_}),i==null||i(b)}}),{cancelGetVisits:v}=p;return{reducer:h,cancelGetVisits:v}},qV="shlink/domainVisits",sje={visits:[],domain:"",loading:!1,cancelLoad:!1,errorData:null,progress:null},lje=e=>Om({typePrefix:`${qV}/getDomainVisits`,createLoaders:({domain:t,options:r})=>{const n=e(),{doIntervalFallback:i=!1}=r,o=s=>n.getDomainVisits(t,s),a=wm(i,s=>n.getDomainVisits(t,s));return{visitsLoader:o,lastVisitLoader:a}},shouldCancel:t=>t().domainVisits.cancelLoad}),uje=e=>Sm({name:qV,initialState:sje,asyncThunkCreator:e,filterCreatedVisits:({domain:t,params:r},n)=>NV(n,t,r==null?void 0:r.dateRange)}),HV="shlink/orphanVisits",cje={visits:[],loading:!1,cancelLoad:!1,errorData:null,progress:null},fje=e=>Om({typePrefix:`${HV}/getNonOrphanVisits`,createLoaders:({options:t})=>{const r=e(),{doIntervalFallback:n=!1}=t,i=async a=>r.getNonOrphanVisits(a),o=wm(n,a=>r.getNonOrphanVisits(a));return{visitsLoader:i,lastVisitLoader:o}},shouldCancel:t=>t().orphanVisits.cancelLoad}),dje=e=>Sm({name:HV,initialState:cje,asyncThunkCreator:e,filterCreatedVisits:({params:t},r)=>{const{startDate:n,endDate:i}=(t==null?void 0:t.dateRange)??{};return r.filter(({visit:o})=>bm(o.date,n,i))}}),GV="shlink/orphanVisits",hje={visits:[],loading:!1,cancelLoad:!1,errorData:null,progress:null},pje=(e,t)=>!t||t===e.type,mje=({data:e,...t},r)=>{const n=e.filter(i=>mA(i)&&pje(i,r));return{...t,data:n}},vje=e=>Om({typePrefix:`${GV}/getOrphanVisits`,createLoaders:({orphanVisitsType:t,options:r})=>{const n=e(),{doIntervalFallback:i=!1}=r,o=async s=>n.getOrphanVisits({...s,type:t}).then(c=>mje(c,t)),a=wm(i,s=>n.getOrphanVisits(s));return{visitsLoader:o,lastVisitLoader:a}},shouldCancel:t=>t().orphanVisits.cancelLoad}),gje=(e,t)=>Sm({name:GV,initialState:hje,asyncThunkCreator:e,extraReducers:r=>{r.addCase(t.fulfilled,n=>({...n,visits:[]}))},filterCreatedVisits:({params:r},n)=>{const{startDate:i,endDate:o}=(r==null?void 0:r.dateRange)??{};return n.filter(({visit:a,shortUrl:s})=>!s&&bm(a.date,i,o))}}),KV="shlink/orphanVisitsDeletion",c8={deletedVisits:0,deleting:!1,error:!1},yje=e=>Vr(`${KV}/deleteOrphanVisits`,()=>e().deleteOrphanVisits()),bje=e=>Tr({name:KV,initialState:c8,reducers:{},extraReducers:t=>{t.addCase(e.pending,r=>({...r,deleting:!0,error:!1})),t.addCase(e.rejected,(r,{error:n})=>({...r,deleting:!1,error:!0,errorData:Oi(n)})),t.addCase(e.fulfilled,(r,{payload:n})=>{const{deletedVisits:i}=n;return{...c8,deletedVisits:i}})}}),YV="shlink/shortUrlVisits",_je={visits:[],shortCode:"",loading:!1,errorData:null,cancelLoad:!1,progress:null},xje=e=>Om({typePrefix:`${YV}/getShortUrlVisits`,createLoaders:({shortCode:t,domain:r,options:n})=>{const i=e(),{doIntervalFallback:o=!1}=n,a=c=>i.getShortUrlVisits(t,{...c,domain:r}),s=wm(o,c=>i.getShortUrlVisits(t,{...c,domain:r}));return{visitsLoader:a,lastVisitLoader:s}},shouldCancel:t=>t().shortUrlVisits.cancelLoad}),wje=(e,t)=>Sm({name:YV,initialState:_je,asyncThunkCreator:e,extraReducers:r=>{r.addCase(t.fulfilled,(n,{payload:i})=>n.shortCode===i.shortCode&&n.domain===i.domain?{...n,visits:[]}:n)},filterCreatedVisits:({shortCode:r,domain:n,params:i},o)=>RV(o,{shortCode:r,domain:n},i==null?void 0:i.dateRange)}),ZV="shlink/shortUrlVisitsDeletion",f8={shortCode:"",deletedVisits:0,deleting:!1,error:!1},Oje=e=>Vr(`${ZV}/deleteShortUrlVisits`,async({shortCode:t,domain:r})=>({...await e().deleteShortUrlVisits(t,r),shortCode:t,domain:r})),Sje=e=>Tr({name:ZV,initialState:f8,reducers:{},extraReducers:t=>{t.addCase(e.pending,r=>({...r,deleting:!0,error:!1})),t.addCase(e.rejected,(r,{error:n})=>({...r,deleting:!1,error:!0,errorData:Oi(n)})),t.addCase(e.fulfilled,(r,{payload:n})=>{const{shortCode:i,domain:o,deletedVisits:a}=n;return{...f8,shortCode:i,domain:o,deletedVisits:a}})}}),XV="shlink/tagVisits",Pje={visits:[],tag:"",loading:!1,cancelLoad:!1,errorData:null,progress:null},Eje=e=>Om({typePrefix:`${XV}/getTagVisits`,createLoaders:({tag:t,options:r})=>{const n=e(),{doIntervalFallback:i=!1}=r,o=s=>n.getTagVisits(t,s),a=wm(i,async s=>n.getTagVisits(t,s));return{visitsLoader:o,lastVisitLoader:a}},shouldCancel:t=>t().tagVisits.cancelLoad}),Cje=e=>Sm({name:XV,initialState:Pje,asyncThunkCreator:e,filterCreatedVisits:({tag:t,params:r},n)=>MV(n,t,r==null?void 0:r.dateRange)}),QV="shlink/visitsOverview",pg={nonOrphanVisits:{total:0},orphanVisits:{total:0},loading:!1,error:!1},d8=e=>e.filter(({visit:t})=>t.potentialBot).length,Tje=e=>Vr(`${QV}/loadVisitsOverview`,()=>e().getVisitsOverview().then(({nonOrphanVisits:t,visitsCount:r=0,orphanVisits:n,orphanVisitsCount:i=0})=>({nonOrphanVisits:{total:(t==null?void 0:t.total)??r,nonBots:t==null?void 0:t.nonBots,bots:t==null?void 0:t.bots},orphanVisits:{total:(n==null?void 0:n.total)??i,nonBots:n==null?void 0:n.nonBots,bots:n==null?void 0:n.bots}}))),jje=e=>Tr({name:QV,initialState:pg,reducers:{},extraReducers:t=>{t.addCase(e.pending,()=>({...pg,loading:!0})),t.addCase(e.rejected,()=>({...pg,error:!0})),t.addCase(e.fulfilled,(r,{payload:n})=>({...pg,...n})),t.addCase(cd,({nonOrphanVisits:r,orphanVisits:n,...i},{payload:o})=>{const{nonOrphanVisits:a,orphanVisits:s}=ATe(o.createdVisits),c=a.length,u=d8(a),h=c-u,p=s.length,v=d8(s),b=p-v;return{...i,nonOrphanVisits:{total:r.total+c,bots:r.bots&&r.bots+u,nonBots:r.nonBots&&r.nonBots+h},orphanVisits:{total:n.total+p,bots:n.bots&&n.bots+v,nonBots:n.nonBots&&n.nonBots+b}}})}}),Aje=({shortUrl:e,loading:t,shortUrlVisits:r})=>{const{visits:n}=r,i=(e==null?void 0:e.shortUrl)??"",o=(e==null?void 0:e.longUrl)??"",a=e==null?void 0:e.title;return g.jsxs(_m,{title:g.jsxs(g.Fragment,{children:["Visits for ",g.jsx(Gn,{href:i})]}),visits:n,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(g0,{date:e.dateCreated,relative:!0})}),g.jsx(wi,{placement:"bottom",target:"created",children:g.jsx(g0,{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(Gn,{href:o,children:a??o})]})]})},JV=Ao(({shortUrlVisits:e,shortUrlVisitsDeletion:t,shortUrlsDetails:r,getShortUrlVisits:n,getShortUrlsDetails:i,deleteShortUrlVisits:o,cancelGetShortUrlVisits:a})=>{const s=bi("shortUrlVisitsDeletion"),{ReportExporter:c}=cr(JV),u=aA(),h=I.useMemo(()=>{var _;return(_=r.shortUrls)==null?void 0:_.get(u)},[u,r.shortUrls]),p=I.useCallback((_,x)=>n({...u,options:x,params:_}),[n,u]),v=I.useCallback(_=>c.exportVisits(`short-url_${h==null?void 0:h.shortUrl.replace(/https?:\/\//g,"")}_visits.csv`,_),[c,h==null?void 0:h.shortUrl]),b=I.useMemo(()=>s?{deleteVisits:()=>o(u),visitsDeletion:t}:void 0,[o,u,t,s]);return I.useEffect(()=>{i([u])},[u,i]),g.jsx(xm,{getVisits:p,cancelGetVisits:a,visitsInfo:e,exportCsv:v,deletion:b,children:g.jsx(Aje,{shortUrl:h,loading:r.loading,shortUrlVisits:e})})},e=>e.shortCode?[kn.shortUrlVisits(nA(e.shortCode))]:[]),kje=fr(JV,["ReportExporter"]),Rje=({tagVisits:e,colorGenerator:t})=>{const{visits:r,tag:n}=e;return g.jsx(_m,{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(Mb,{text:n,colorGenerator:t})]}),visits:r})},eW=Ao(({getTagVisits:e,tagVisits:t,cancelGetTagVisits:r})=>{const{ColorGenerator:n,ReportExporter:i}=cr(eW),{tag:o=""}=Kf(),a=I.useCallback((c,u)=>e({tag:o,params:c,options:u}),[e,o]),s=I.useCallback(c=>i.exportVisits(`tag_${o}_visits.csv`,c),[i,o]);return g.jsx(xm,{getVisits:a,cancelGetVisits:r,visitsInfo:t,exportCsv:s,children:g.jsx(Rje,{tagVisits:t,colorGenerator:n})})},()=>[kn.visits]),Nje=fr(eW,["ColorGenerator","ReportExporter"]),vA=({title:e,colors:t,getVisitsForComparison:r,visitsComparisonInfo:n,cancelGetVisitsComparison:i})=>{const{loading:o,visitsGroups:a}=n,s=Rn("visits"),c=I.useMemo(()=>Object.keys(a).reduce((P,C,T)=>(P[C]=Object.assign(x0(a[C]),{color:(t==null?void 0:t[C])??jV(T)}),P),{}),[t,a]),u=I.useMemo(()=>Object.values(a).every(P=>P.length===0),[a]),[{dateRange:h,visitsFilter:p},v]=LV(),[b,_]=I.useState(),x=I.useCallback(({startDate:P,endDate:C},T)=>{v({dateRange:{startDate:P??void 0,endDate:C??void 0}}),_(T)},[v]),w=I.useRef(h??(s==null?void 0:s.defaultInterval)??"last30Days"),O=I.useMemo(()=>({...p,excludeBots:p.excludeBots??(s==null?void 0:s.excludeBots)}),[p,s==null?void 0:s.excludeBots]);return I.useEffect(()=>{const P=h??iV(w.current);return r({params:{dateRange:P,filter:O}}),i},[i,h,r,O]),g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"mb-3",children:g.jsxs(Wt,{bodyClassName:"d-flex",children:[g.jsx(Nb,{}),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(cA,{disabled:o,defaultText:"All visits",dateRangeOrInterval:b??h??w.current,onDatesChange:x})}),g.jsx(DV,{disabled:o,className:"ms-0 ms-md-2 mt-3 mt-md-0",selected:O,onChange:({orphanVisitsType:P,excludeBots:C})=>v({visitsFilter:{orphanVisitsType:P,excludeBots:C}})})]})}),g.jsx($V,{info:n}),!o&&g.jsx(Cg,{showFallback:u,children:g.jsx(kV,{visitsGroups:c,onDateRangeChange:x})})]})},Mje=Ao(({getDomainVisitsForComparison:e,domainVisitsComparison:t,cancelGetDomainVisitsComparison:r})=>{const n=tA("domains"),i=I.useCallback(o=>e({...o,domains:n}),[n,e]);return g.jsx(vA,{title:`Comparing "${n.join('", "')}"`,getVisitsForComparison:i,visitsComparisonInfo:t,cancelGetVisitsComparison:r})},()=>[kn.visits]),Lje=({visitsLoaders:e,shouldCancel:t,progressChanged:r})=>{const n=Object.keys(e),i=Math.max(1,Math.round(4/n.length)),o=Object.fromEntries(n.map(c=>[c,0])),a=(c,u)=>{o[c]=u;const h=Object.values(o),p=h.reduce((v,b)=>v+b,0);r(p/h.length)},s=Object.entries(e).map(([c,u])=>[c,WV({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)}},gA=({typePrefix:e,createLoaders:t,shouldCancel:r})=>{const n=jn(`${e}/progressChanged`),i=Vr(e,async(o,{getState:a,dispatch:s})=>{const c=t(o),u=await Lje({visitsLoaders:c,shouldCancel:()=>r(a),progressChanged:h=>s(n(h))})(jC(o.params));return{...o,visitsGroups:u}});return Object.assign(i,{progressChanged:n})},yA=({name:e,asyncThunkCreator:t,initialState:r,filterCreatedVisitsForGroup:n})=>{const{pending:i,rejected:o,fulfilled:a,progressChanged:s}=t,{reducer:c,actions:u}=Tr({name:e,initialState:r,reducers:{cancelGetVisits:p=>({...p,cancelLoad:!0})},extraReducers:p=>{p.addCase(i,()=>({...r,loading:!0})),p.addCase(o,(v,{error:b})=>({...r,errorData:Oi(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(_).map(P=>{const C=n({...x,groupKey:P},b.createdVisits).map(({visit:T})=>T);return[P,[...C,..._[P]]]}),O=Object.fromEntries(w);return{...x,visitsGroups:O}})}}),{cancelGetVisits:h}=u;return{reducer:c,cancelGetVisits:h}},tW="shlink/domainVisitsComparison",Ije={visitsGroups:{},loading:!1,cancelLoad:!1,errorData:null,progress:null},Dje=e=>gA({typePrefix:`${tW}/getDomainVisitsForComparison`,createLoaders:({domains:t})=>{const r=e(),n=t.map(i=>[i,o=>r.getDomainVisits(i,o)]);return Object.fromEntries(n)},shouldCancel:t=>t().domainVisitsComparison.cancelLoad}),$je=e=>yA({name:tW,initialState:Ije,asyncThunkCreator:e,filterCreatedVisitsForGroup:({groupKey:t,params:r},n)=>NV(n,t,r==null?void 0:r.dateRange)}),rW="shlink/shortUrlVisitsComparison",Fje={visitsGroups:{},loading:!1,cancelLoad:!1,errorData:null,progress:null},Bje=e=>gA({typePrefix:`${rW}/getShortUrlVisitsForComparison`,createLoaders:({shortUrls:t})=>{const r=e(),n=t.map(i=>[iA(i),o=>r.getShortUrlVisits(i.shortCode,{...o,domain:i.domain})]);return Object.fromEntries(n)},shouldCancel:t=>t().shortUrlVisitsComparison.cancelLoad}),Uje=e=>yA({name:rW,initialState:Fje,asyncThunkCreator:e,filterCreatedVisitsForGroup:({groupKey:t,params:r},n)=>RV(n,hz(t),r==null?void 0:r.dateRange)}),nW="shlink/tagVisitsComparison",zje={visitsGroups:{},loading:!1,cancelLoad:!1,errorData:null,progress:null},Vje=e=>gA({typePrefix:`${nW}/getTagVisitsForComparison`,createLoaders:({tags:t})=>{const r=e(),n=t.map(i=>[i,o=>r.getTagVisits(i,o)]);return Object.fromEntries(n)},shouldCancel:t=>t().tagVisitsComparison.cancelLoad}),Wje=e=>yA({name:nW,initialState:zje,asyncThunkCreator:e,filterCreatedVisitsForGroup:({groupKey:t,params:r},n)=>MV(n,t,r==null?void 0:r.dateRange)}),qje=Ao(({getShortUrlVisitsForComparison:e,shortUrlVisitsComparison:t,cancelGetShortUrlVisitsComparison:r,shortUrlsDetails:n,getShortUrlsDetails:i})=>{const o=tA("short-urls"),a=I.useMemo(()=>o.map(hz),[o]),s=I.useCallback(h=>e({...h,shortUrls:a}),[e,a]),c=I.useMemo(()=>{var h;return[...((h=n.shortUrls)==null?void 0:h.values())??[]]},[n.shortUrls]),u=I.useMemo(()=>{const{visitsGroups:h,loading:p,...v}=t,b=c.reduce((_,x)=>(_[x.shortUrl]=h[iA(x)]??[],_),{});return{...v,visitsGroups:b,loading:p||n.loading}},[t,n.loading,c]);return I.useEffect(()=>{a.length>0&&i(a)},[i,a]),g.jsx(vA,{title:g.jsx("span",{"data-testid":"title",children:n.loading?"Loading...":`Comparing ${c.length} short URLs`}),getVisitsForComparison:s,visitsComparisonInfo:u,cancelGetVisitsComparison:r})},()=>[kn.visits]),iW=Ao(({getTagVisitsForComparison:e,tagVisitsComparison:t,cancelGetTagVisitsComparison:r})=>{const{ColorGenerator:n}=cr(iW),i=tA("tags"),o=I.useCallback(c=>e({...c,tags:i}),[e,i]),{visitsGroups:a}=t,s=I.useMemo(()=>Object.keys(a).reduce((c,u)=>(c[u]=n.getColorForKey(u),c),{}),[n,a]);return g.jsx(vA,{title:g.jsxs(g.Fragment,{children:["Comparing ",i.map(c=>g.jsx(Mb,{colorGenerator:n,text:c},c))]}),getVisitsForComparison:o,visitsComparisonInfo:t,cancelGetVisitsComparison:r,colors:s})},()=>[kn.visits]),Hje=fr(iW,["ColorGenerator"]),Gje=(e,t)=>{const r=(n,i)=>t([...n,"mercureInfo"],[...i,"createNewVisits","loadMercureInfo"]);e.serviceFactory("MapModal",()=>IV),e.factory("ShortUrlVisits",kje),e.decorator("ShortUrlVisits",t(["shortUrlVisits","shortUrlVisitsDeletion","shortUrlsDetails","mercureInfo"],["getShortUrlVisits","deleteShortUrlVisits","getShortUrlsDetails","cancelGetShortUrlVisits","createNewVisits","loadMercureInfo"])),e.factory("TagVisits",Nje),e.decorator("TagVisits",r(["tagVisits"],["getTagVisits","cancelGetTagVisits"])),e.factory("TagVisitsComparison",Hje),e.decorator("TagVisitsComparison",r(["tagVisitsComparison"],["getTagVisitsForComparison","cancelGetTagVisitsForComparison"])),e.serviceFactory("DomainVisitsComparison",()=>Mje),e.decorator("DomainVisitsComparison",r(["domainVisitsComparison"],["getDomainVisitsForComparison","cancelGetDomainVisitsForComparison"])),e.serviceFactory("ShortUrlVisitsComparison",()=>qje),e.decorator("ShortUrlVisitsComparison",r(["shortUrlVisitsComparison","shortUrlsDetails"],["getShortUrlVisitsForComparison","cancelGetShortUrlVisitsForComparison","getShortUrlsDetails"])),e.factory("DomainVisits",eje),e.decorator("DomainVisits",r(["domainVisits"],["getDomainVisits","cancelGetDomainVisits"])),e.factory("OrphanVisits",rje),e.decorator("OrphanVisits",r(["orphanVisits","orphanVisitsDeletion"],["getOrphanVisits","cancelGetOrphanVisits","deleteOrphanVisits"])),e.factory("NonOrphanVisits",tje),e.decorator("NonOrphanVisits",r(["nonOrphanVisits"],["getNonOrphanVisits","cancelGetNonOrphanVisits"])),e.serviceFactory("VisitsParser",()=>KTe),e.serviceFactory("getShortUrlVisits",xje,"apiClientFactory"),e.serviceFactory("cancelGetShortUrlVisits",n=>n.cancelGetVisits,"shortUrlVisitsReducerCreator"),e.serviceFactory("getShortUrlVisitsForComparison",Bje,"apiClientFactory"),e.serviceFactory("cancelGetShortUrlVisitsForComparison",n=>n.cancelGetVisits,"shortUrlVisitsComparisonReducerCreator"),e.serviceFactory("deleteShortUrlVisits",Oje,"apiClientFactory"),e.serviceFactory("getTagVisits",Eje,"apiClientFactory"),e.serviceFactory("cancelGetTagVisits",n=>n.cancelGetVisits,"tagVisitsReducerCreator"),e.serviceFactory("getTagVisitsForComparison",Vje,"apiClientFactory"),e.serviceFactory("cancelGetTagVisitsForComparison",n=>n.cancelGetVisits,"tagVisitsComparisonReducerCreator"),e.serviceFactory("getDomainVisits",lje,"apiClientFactory"),e.serviceFactory("cancelGetDomainVisits",n=>n.cancelGetVisits,"domainVisitsReducerCreator"),e.serviceFactory("getDomainVisitsForComparison",Dje,"apiClientFactory"),e.serviceFactory("cancelGetDomainVisitsForComparison",n=>n.cancelGetVisits,"domainVisitsComparisonReducerCreator"),e.serviceFactory("getOrphanVisits",vje,"apiClientFactory"),e.serviceFactory("cancelGetOrphanVisits",n=>n.cancelGetVisits,"orphanVisitsReducerCreator"),e.serviceFactory("deleteOrphanVisits",yje,"apiClientFactory"),e.serviceFactory("getNonOrphanVisits",fje,"apiClientFactory"),e.serviceFactory("cancelGetNonOrphanVisits",n=>n.cancelGetVisits,"nonOrphanVisitsReducerCreator"),e.serviceFactory("createNewVisits",()=>cd),e.serviceFactory("loadVisitsOverview",Tje,"apiClientFactory"),e.serviceFactory("visitsOverviewReducerCreator",jje,"loadVisitsOverview"),e.serviceFactory("visitsOverviewReducer",n=>n.reducer,"visitsOverviewReducerCreator"),e.serviceFactory("domainVisitsReducerCreator",uje,"getDomainVisits"),e.serviceFactory("domainVisitsReducer",n=>n.reducer,"domainVisitsReducerCreator"),e.serviceFactory("nonOrphanVisitsReducerCreator",dje,"getNonOrphanVisits"),e.serviceFactory("nonOrphanVisitsReducer",n=>n.reducer,"nonOrphanVisitsReducerCreator"),e.serviceFactory("orphanVisitsReducerCreator",gje,"getOrphanVisits","deleteOrphanVisits"),e.serviceFactory("orphanVisitsReducer",n=>n.reducer,"orphanVisitsReducerCreator"),e.serviceFactory("orphanVisitsDeletionReducerCreator",bje,"deleteOrphanVisits"),e.serviceFactory("orphanVisitsDeletionReducer",n=>n.reducer,"orphanVisitsDeletionReducerCreator"),e.serviceFactory("shortUrlVisitsReducerCreator",wje,"getShortUrlVisits","deleteShortUrlVisits"),e.serviceFactory("shortUrlVisitsReducer",n=>n.reducer,"shortUrlVisitsReducerCreator"),e.serviceFactory("shortUrlVisitsDeletionReducerCreator",Sje,"deleteShortUrlVisits"),e.serviceFactory("shortUrlVisitsDeletionReducer",n=>n.reducer,"shortUrlVisitsDeletionReducerCreator"),e.serviceFactory("tagVisitsReducerCreator",Cje,"getTagVisits"),e.serviceFactory("tagVisitsReducer",n=>n.reducer,"tagVisitsReducerCreator"),e.serviceFactory("tagVisitsComparisonReducerCreator",Wje,"getTagVisitsForComparison"),e.serviceFactory("tagVisitsComparisonReducer",n=>n.reducer,"tagVisitsComparisonReducerCreator"),e.serviceFactory("domainVisitsComparisonReducerCreator",$je,"getDomainVisitsForComparison"),e.serviceFactory("domainVisitsComparisonReducer",n=>n.reducer,"domainVisitsComparisonReducerCreator"),e.serviceFactory("shortUrlVisitsComparisonReducerCreator",Uje,"getShortUrlVisitsForComparison"),e.serviceFactory("shortUrlVisitsComparisonReducer",n=>n.reducer,"shortUrlVisitsComparisonReducerCreator")},bh=({children:e,to:t,className:r,...n})=>g.jsx(UC,{className:({isActive:i})=>ze("aside-menu__item",r,{"aside-menu__item--selected":i}),to:t,...n,children:e}),Kje=({routePrefix:e,showOnMobile:t=!1})=>{const{pathname:r}=gn(),n=ze("aside-menu",{"aside-menu--hidden":!t}),i=o=>`${e}${o}`;return g.jsx("aside",{className:n,children:g.jsxs("nav",{className:"nav flex-column aside-menu__nav",children:[g.jsxs(bh,{to:i("/overview"),children:[g.jsx(Ge,{fixedWidth:!0,icon:aY}),g.jsx("span",{className:"aside-menu__item-text",children:"Overview"})]}),g.jsxs(bh,{to:i("/list-short-urls/1"),className:ze({"aside-menu__item--selected":r.match("/list-short-urls")!==null}),children:[g.jsx(Ge,{fixedWidth:!0,icon:KC}),g.jsx("span",{className:"aside-menu__item-text",children:"List short URLs"})]}),g.jsxs(bh,{to:i("/create-short-url"),children:[g.jsx(Ge,{fixedWidth:!0,icon:dY,flip:"horizontal"}),g.jsx("span",{className:"aside-menu__item-text",children:"Create short URL"})]}),g.jsxs(bh,{to:i("/manage-tags"),children:[g.jsx(Ge,{fixedWidth:!0,icon:i$}),g.jsx("span",{className:"aside-menu__item-text",children:"Manage tags"})]}),g.jsxs(bh,{to:i("/manage-domains"),children:[g.jsx(Ge,{fixedWidth:!0,icon:FK}),g.jsx("span",{className:"aside-menu__item-text",children:"Manage domains"})]})]})})},oW=({createNotFound:e})=>{const{TagsList:t,ShortUrlsList:r,CreateShortUrl:n,ShortUrlVisits:i,TagVisits:o,DomainVisits:a,OrphanVisits:s,NonOrphanVisits:c,Overview:u,EditShortUrl:h,ManageDomains:p,TagVisitsComparison:v,DomainVisitsComparison:b,ShortUrlVisitsComparison:_,ShortUrlRedirectRules:x}=cr(oW),w=gn(),O=_l(),[P,C,T,A]=ur();I.useEffect(()=>A(),[w,A]);const j=ze("shlink-layout__burger-icon",{"shlink-layout__burger-icon--active":P}),N=ZSe(T,A),F=bi("shortUrlRedirectRules");return g.jsxs(g.Fragment,{children:[g.jsx(Ge,{icon:MK,className:j,onClick:C}),g.jsx("div",{...N,className:"shlink-layout__swipeable",children:g.jsxs("div",{className:"shlink-layout__swipeable-inner",children:[g.jsx(Kje,{routePrefix:O,showOnMobile:P}),g.jsx("div",{className:"shlink-layout__container",onPointerDown:()=>A(),children:g.jsx("div",{className:"container-xl",children:g.jsxs(E0,{children:[g.jsx(Pt,{index:!0,element:g.jsx($C,{replace:!0,to:"overview"})}),g.jsx(Pt,{path:"/overview",element:g.jsx(u,{})}),g.jsx(Pt,{path:"/list-short-urls/:page",element:g.jsx(r,{})}),g.jsx(Pt,{path:"/create-short-url",element:g.jsx(n,{})}),g.jsx(Pt,{path:"/short-code/:shortCode/visits",children:["","*"].map(V=>g.jsx(Pt,{path:V,element:g.jsx(i,{})},V))}),g.jsx(Pt,{path:"/short-code/:shortCode/edit",element:g.jsx(h,{})}),F&&g.jsx(Pt,{path:"/short-code/:shortCode/redirect-rules",element:g.jsx(x,{})}),g.jsx(Pt,{path:"/short-urls/compare-visits",element:g.jsx(_,{})}),g.jsx(Pt,{path:"/tag/:tag/visits",children:["","*"].map(V=>g.jsx(Pt,{path:V,element:g.jsx(o,{})},V))}),g.jsx(Pt,{path:"/tags/compare-visits",element:g.jsx(v,{})}),g.jsx(Pt,{path:"/domain/:domain/visits",children:["","*"].map(V=>g.jsx(Pt,{path:V,element:g.jsx(a,{})},V))}),g.jsx(Pt,{path:"/orphan-visits",children:["","*"].map(V=>g.jsx(Pt,{path:V,element:g.jsx(s,{})},V))}),g.jsx(Pt,{path:"/non-orphan-visits",children:["","*"].map(V=>g.jsx(Pt,{path:V,element:g.jsx(c,{})},V))}),g.jsx(Pt,{path:"/manage-tags",element:g.jsx(t,{})}),g.jsx(Pt,{path:"/manage-domains",element:g.jsx(p,{})}),g.jsx(Pt,{path:"/domains/compare-visits",element:g.jsx(b,{})}),e&&g.jsx(Pt,{path:"*",element:e("/list-short-urls/1")})]})})})]})})]})},Yje=fr(oW,["TagsList","ShortUrlsList","CreateShortUrl","ShortUrlVisits","TagVisits","DomainVisits","OrphanVisits","NonOrphanVisits","Overview","EditShortUrl","ManageDomains","TagVisitsComparison","DomainVisitsComparison","ShortUrlVisitsComparison","ShortUrlRedirectRules"]),Zje=!0,Xje=e=>ZF({devTools:!Zje,reducer:kT({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})}),Qje=e=>{e.factory("Main",Yje),e.factory("store",Xje)},ko=new e$,{container:Jje}=ko,eAe=e=>t=>Object.fromEntries(e.map(r=>[r,t[r]])),tAe=(e,t)=>(...r)=>e[t](...r),rAe=(e,t)=>({...e,[t]:tAe(Jje,t)}),fd=(e,t=[])=>T8(e?eAe(e):null,t.reduce(rAe,{}));Qje(ko);MCe(ko,fd);nTe(ko,fd);Gje(ko,fd);cPe(ko);sPe(ko,fd);OPe(ko,fd);cTe(ko);LEe(ko,fd);let h8;const nAe=e=>({serverVersion:t,apiClient:r,settings:n,routesPrefix:i="",createNotFound:o,tagColorsStorage:a})=>{const s=HSe(t),c=I.useRef(void 0),[u,h]=I.useState(),p=Nu(),v=I.useMemo(()=>p?I.Fragment:U8,[p]);return I.useEffect(()=>{h8=r,e.value("apiClientFactory",()=>h8),a&&e.value("TagColorsStorage",a);const{container:b}=e,{Main:_,store:x,loadMercureInfo:w,listTags:O,listDomains:P}=b;c.current=g.jsx(_,{createNotFound:o}),h(x),x.dispatch(w(n)),x.dispatch(O()),x.dispatch(P())},[r,o,n,a]),u?g.jsx(j8,{store:u,children:g.jsx(a7,{value:n??{},children:g.jsx(qSe,{value:s,children:g.jsx(zSe,{value:i,children:g.jsx(v,{children:c.current})})})})}):g.jsx(g.Fragment,{})},iAe="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=",oAe="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==",aAe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAQAAAACach9AAACMUlEQVR4Ae3ShY7jQBAE0Aoz/f9/HTMzhg1zrdKUrJbdx+Kd2nD8VNudfsL/Th///dyQN2TH6f3y/BGpC379rV+S+qqetBOxImNQXL8JCAr2V4iMQXHGNJxeCfZXhSRBcQMfvkOWUdtfzlLgAENmZDcmo2TVmt8OSM2eXxBp3DjHSMFutqS7SbmemzBiR+xpKCNUIRkdkkYxhAkyGoBvyQFEJEefwSmmvBfJuJ6aKqKWnAkvGZOaZXTUgFqYULWNSHUckZuR1HIIimUExutRxwzOLROIG4vKmCKQt364mIlhSyzAf1m9lHZHJZrlAOMMztRRiKimp/rpdJDc9Awry5xTZCte7FHtuS8wJgeYGrex28xNTd086Dik7vUMscQOa8y4DoGtCCSkAKlNwpgNtphjrC6MIHUkR6YWxxs6Sc5xqn222mmCRFzIt8lEdKx+ikCtg91qS2WpwVfBelJCiQJwvzixfI9cxZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+qMXSxXSyGUn4UbF8l+7qdSGnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC",sAe=()=>{delete T5.Icon.Default.prototype._getIconUrl,T5.Icon.Default.mergeOptions({iconRetinaUrl:oAe,iconUrl:iAe,shadowUrl:aAe})};sAe();const lAe=nAe(ko);function w0(e){return t=>{const{resetSelectedServer:r}=t;return I.useEffect(()=>{r()},[r]),g.jsx(e,{...t})}}let uAe=class extends I.Component{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(t){const{console:r=globalThis.console}=this.props;r.error(t)}render(){const{hasError:t}=this.state,{location:r=globalThis.location}=this.props;if(t)return g.jsx("div",{className:"home",children:g.jsxs(Wt,{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:()=>r.reload(),children:"Take me back"})]})});const{children:n}=this.props;return n}};const cAe=({id:e,name:t})=>g.jsxs(jF,{tag:Ht,to:`/server/${e}`,className:"servers-list__server-item",children:[t,g.jsx(Ge,{icon:gY,className:"servers-list__server-item-icon"})]}),aW=({servers:e,children:t,embedded:r=!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(CF,{"data-testid":"list",tag:"div",className:ze("servers-list__list-group",{"servers-list__list-group--embedded":r}),children:e.map(({id:n,name:i})=>g.jsx(cAe,{id:n,name:i},n))})]}),sW=({color:e=op,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"})]})}),fAe=({servers:e})=>{const t=sa(),r=Object.values(e),n=r.length>0;return I.useEffect(()=>{const i=r.find(({autoConnect:o})=>o);i&&t(`/server/${i.id}`)},[r,t]),g.jsx("div",{className:"w-100",children:g.jsx(xi,{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(sW,{})})}),g.jsxs("div",{className:"home__servers-container flex-grow-1",children:[g.jsx("h1",{className:ze("home__title p-4 text-center m-0",{"border-bottom":!n}),style:{borderColor:"var(--border-color) !important"},children:"Welcome!"}),g.jsx(aW,{embedded:!0,servers:r,children:!n&&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(Ht,{to:"/server/create",className:"btn btn-outline-primary btn-lg me-2",children:[g.jsx(Ge,{icon:Yp})," ",g.jsx("span",{className:"ms-1",children:"Add a server"})]})}),g.jsx("p",{className:"mb-0",children:g.jsx(Gn,{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:XK})]})})})]})})]})]})})})},lW=()=>{const{ServersDropdown:e}=Co(lW),[t,r,,n]=ur(),i=gn(),{pathname:o}=i;I.useEffect(n,[i,n]);const a="/settings",s=ze("main-header__toggle-icon",{"main-header__toggle-icon--opened":t});return g.jsxs(Z$,{color:"primary",dark:!0,fixed:"top",className:"main-header",expand:"md",children:[g.jsxs(X$,{tag:Ht,to:"/",children:[g.jsx(sW,{className:"main-header__brand-logo",color:"white"})," Shlink"]}),g.jsx(Q$,{onClick:r,children:g.jsx(Ge,{icon:mY,className:s})}),g.jsx(ST,{navbar:!0,isOpen:t,children:g.jsxs(hT,{navbar:!0,className:"ms-auto",children:[g.jsx(pT,{children:g.jsxs(mT,{tag:Ht,to:a,active:o.startsWith(a),children:[g.jsx(Ge,{icon:_Y})," Settings"]})}),g.jsx(e,{})]})})]})},dAe=To(lW,["ServersDropdown"]),hAe=({children:e})=>{const t=gn();return I.useEffect(()=>{scrollTo(0,0)},[t]),g.jsx(g.Fragment,{children:e})},uW=r7(e=>e,e=>{try{return HP(e,e,"=")}catch{return!1}}),cW=e=>uW(e)?`v${e}`:e,fW=(e,t="latest")=>uW(e)?e:t,pAe="%_VERSION_%",mAe=e=>cW(fW(e)),p8=({project:e,version:t})=>g.jsx(Gn,{href:`https://github.com/shlinkio/${e}/releases/${t}`,className:"text-muted",children:g.jsx("b",{children:t})}),vAe=({selectedServer:e,clientVersion:t=pAe})=>{const r=mAe(t);return g.jsxs("small",{className:"text-muted",children:[HC(e)&&g.jsxs(g.Fragment,{children:["Server: ",g.jsx(p8,{project:"shlink",version:e.printableVersion})," - "]}),"Client: ",g.jsx(p8,{project:"shlink-web-client",version:r})]})},gAe=({selectedServer:e})=>g.jsx("div",{className:ze("text-center",{"shlink-versions-container--with-sidebar":HC(e)}),children:g.jsx(vAe,{selectedServer:e})}),dd=({children:e,className:t})=>g.jsx("div",{className:ze("no-menu-wrapper container-xl",t),children:e});function dW(e){const t=r=>{const{ServerError:n}=Co(t),i=Kf(),{selectServer:o,selectedServer:a}=r;return I.useEffect(()=>{i.serverId&&o(i.serverId)},[i.serverId,o]),a?_K(a)?g.jsx(n,{}):g.jsx(e,{...r}):g.jsx(dd,{children:g.jsx(qa,{loading:!0})})};return t}const hW=dW(I.memo(({selectedServer:e,settings:t})=>{const{buildShlinkApiClient:r,TagColorsStorage:n,ShlinkWebComponent:i,ServerError:o}=Co(hW);if(!HC(e))return g.jsx(o,{});const a=`/server/${e.id}`;return g.jsx(i,{serverVersion:e.version,apiClient:r(e),settings:t,routesPrefix:a,tagColorsStorage:n,createNotFound:s=>g.jsx($F,{to:`${a}${s}`,children:"List short URLs"})})})),yAe=To(hW,["buildShlinkApiClient","TagColorsStorage","ShlinkWebComponent","ServerError"]),bAe=(e,t)=>{e.constant("window",window),e.constant("console",console),e.constant("fetch",window.fetch.bind(window)),e.service("HttpClient",Boe,"fetch"),e.serviceFactory("ScrollToTop",()=>hAe),e.factory("MainHeader",dAe),e.serviceFactory("Home",()=>fAe),e.decorator("Home",w0),e.decorator("Home",t(["servers"],["resetSelectedServer"])),e.serviceFactory("ShlinkWebComponent",()=>lAe),e.factory("ShlinkWebComponentContainer",yAe),e.decorator("ShlinkWebComponentContainer",t(["selectedServer","settings"],["selectServer"])),e.serviceFactory("ShlinkVersionsContainer",()=>gAe),e.decorator("ShlinkVersionsContainer",t(["selectedServer"])),e.serviceFactory("ErrorHandler",()=>uAe)},pW=()=>{const e=sa();return I.useCallback(()=>e(-1),[e])};function _Ae(e){let t=e.url;try{const{host:r,pathname:n}=new URL(t);t=r;const i=n.substring(1);i.length>0&&(t=`${t} ${i}`)}catch{}return`${e.name} ${t}`.toLowerCase().replace(/[^a-zA-Z0-9-_.~]/g,"-")}function xAe(e){const t={};return e.forEach(r=>{t[r.id]=r}),t}const wAe=(e,{url:t,apiKey:r})=>e.some(n=>n.url===t&&n.apiKey===r);function OAe(e,t){const r=Object.values(e),{duplicatedServers:n=[],newServers:i=[]}=t7(t,o=>wAe(r,o)?"duplicatedServers":"newServers");return{duplicatedServers:n,newServers:i}}function O0(e,t){const r=new Set(Object.keys(e)),n=[];return t.forEach(i=>{const o=_Ae(i);let a=o,s=1;for(;r.has(a);)a=`${o}-${s}`,s++;n.push({...i,id:a}),r.add(a)}),n}const mW=({isOpen:e,duplicatedServers:t,onDiscard:r,onSave:n})=>{const i=t.length>1;return g.jsxs(Yn,{centered:!0,isOpen:e,children:[g.jsxs(la,{children:["Duplicated server",i&&"s"]}),g.jsxs(Eo,{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(I.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(Ja,{children:[g.jsx(_t,{color:"link",onClick:r,children:i?"Ignore duplicates":"Discard"}),g.jsx(_t,{color:"primary",onClick:n,children:"Save anyway"})]})]})},SAe=e=>t=>{t.preventDefault(),e()},vW=({onSubmit:e,initialValues:t,children:r,title:n})=>{const[i,o]=I.useState((t==null?void 0:t.name)??""),[a,s]=I.useState((t==null?void 0:t.url)??""),[c,u]=I.useState((t==null?void 0:t.apiKey)??""),h=SAe(()=>e({name:i,url:a,apiKey:c}));return g.jsxs("form",{className:"server-form",name:"serverForm",onSubmit:h,children:[g.jsxs(Wt,{className:"mb-3",title:n,children:[g.jsx(wg,{value:i,onChange:o,children:"Name"}),g.jsx(wg,{type:"url",value:a,onChange:s,children:"URL"}),g.jsx(wg,{value:c,onChange:u,children:"API key"})]}),g.jsx("div",{className:"text-end",children:r})]})},m8=4e3,v8=({type:e})=>g.jsx("div",{className:"mt-3",children:g.jsxs(Tn,{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."]})}),gW=({servers:e,createServers:t})=>{const{ImportServersBtn:r,useTimeoutToggle:n}=Co(gW),i=sa(),o=pW(),a=!!Object.keys(e).length,[s,c]=n(!1,m8),[u,h]=n(!1,m8),[p,v]=ur(),[b,_]=I.useState(),x=I.useCallback(O=>{const[P]=O0(e,[O]);t([P]),i(`/server/${P.id}`)},[t,i,e]),w=I.useCallback(O=>{_(O),Object.values(e).some(({url:C,apiKey:T})=>O.url===C&&O.apiKey===T)?v():x(O)},[x,e,v]);return g.jsxs(dd,{children:[g.jsxs(vW,{title:g.jsx("h5",{className:"mb-0",children:"Add new server"}),onSubmit:w,children:[!a&&g.jsx(r,{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(v8,{type:"success"}),u&&g.jsx(v8,{type:"error"}),g.jsx(mW,{isOpen:p,duplicatedServers:b?[b]:[],onDiscard:o,onSave:()=>b&&x(b)})]})},PAe=To(gW,["ImportServersBtn","useTimeoutToggle"]),yW=({server:e,className:t,children:r,textClassName:n})=>{const{DeleteServerModal:i}=Co(yW),[o,,a,s]=ur();return g.jsxs(g.Fragment,{children:[g.jsxs("button",{type:"button",className:ze(t,"p-0 bg-transparent border-0"),onClick:a,children:[!r&&g.jsx(Ge,{fixedWidth:!0,icon:GC}),g.jsx("span",{className:n,children:r??"Remove this server"})]}),g.jsx(i,{server:e,isOpen:o,toggle:s})]})},EAe=To(yW,["DeleteServerModal"]),CAe=({server:e,toggle:t,isOpen:r,deleteServer:n,redirectHome:i=!0})=>{const o=sa(),a=I.useRef(!1),s=()=>{a.current=!0,t()},c=()=>{a.current&&(n(e),i&&o("/"))};return g.jsxs(Yn,{isOpen:r,toggle:t,centered:!0,onClosed:c,children:[g.jsx(la,{toggle:t,className:"text-danger",children:"Remove server"}),g.jsxs(Eo,{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(Ja,{children:[g.jsx(_t,{color:"link",onClick:t,children:"Cancel"}),g.jsx(_t,{color:"danger",onClick:s,children:"Delete"})]})]})},TAe=dW(({editServer:e,selectedServer:t,selectServer:r})=>{const n=pW(),{reconnect:i}=Xf();if(!Ah(t))return null;const o=a=>{e(t.id,a),i==="true"&&r(t.id),n()};return g.jsx(dd,{children:g.jsxs(vW,{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:n,children:"Cancel"}),g.jsx(_t,{outline:!0,color:"primary",children:"Save"})]})})}),jAe=To(TAe,["ServerError"]),bW=({createServers:e,servers:t,children:r,onImport:n=()=>{},onImportError:i=()=>{},tooltipPlacement:o="bottom",className:a=""})=>{const{ServersImporter:s}=Co(bW),c=Yi(),[u,h]=I.useState([]),[p,,v,b]=ur(),_=I.useRef([]),x=I.useRef([]),w=I.useCallback(T=>{e(T),n()},[e,n]),O=I.useCallback(async({target:T})=>{var A;return s.importServersFromFile((A=T.files)==null?void 0:A[0]).then(j=>{const{duplicatedServers:N,newServers:F}=OAe(t,j);_.current=O0(t,j),x.current=O0(t,F),N.length===0?w(_.current):(h(N),v())}).then(()=>{T.value=null}).catch(i)},[w,i,t,s,v]),P=I.useCallback(()=>{w(_.current),b()},[w,b]),C=I.useCallback(()=>{w(x.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:zK,fixedWidth:!0})," ",r??"Import from file"]}),g.jsxs(wi,{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(mW,{isOpen:p,duplicatedServers:u,onDiscard:C,onSave:P})]})},AAe=To(bW,["ServersImporter"]),_W=({servers:e,selectedServer:t})=>{const{DeleteServerButton:r}=Co(_W);return g.jsx(dd,{children:g.jsxs("div",{className:"server-error__container flex-column",children:[g.jsxs(qa,{className:"w-100 mb-3 mb-md-5",type:"error",fullWidth:!0,children:[!Ah(t)&&"Could not find this Shlink server.",Ah(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(aW,{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(Ht,{to:"/server/create",children:"add a new one"}),"."]})}),Ah(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(r,{server:t,className:"server-error__delete-btn",children:"remove it"})," or ",g.jsx(Ht,{to:`/server/${t.id}/edit?reconnect=true`,children:"edit it"}),"."]})})]})})},kAe=To(_W,["DeleteServerButton"]),RAe=4e3,xW=({servers:e})=>{const{ServersExporter:t,ImportServersBtn:r,useTimeoutToggle:n,ManageServersRow:i}=Co(xW),[o,a]=I.useState(""),s=I.useMemo(()=>Object.values(e),[e]),c=I.useMemo(()=>s.filter(({name:v,url:b})=>`${v} ${b}`.toLowerCase().match(o.toLowerCase())),[s,o]),u=s.some(({autoConnect:v})=>!!v),[h,p]=n(!1,RAe);return g.jsxs(dd,{className:"d-flex flex-column gap-3",children:[g.jsx(im,{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(r,{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:o$,fixedWidth:!0})," Export servers"]})]}),g.jsxs(_t,{outline:!0,color:"primary",className:"ms-md-auto",tag:Ht,to:"/server/create",children:[g.jsx(Ge,{icon:Yp,fixedWidth:!0})," Add a server"]})]}),g.jsx(Wt,{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(Tn,{type:"error",children:"The servers could not be imported. Make sure the format is correct."})})]})},NAe=To(xW,["ServersExporter","ImportServersBtn","useTimeoutToggle","ManageServersRow"]),wW=({server:e,hasAutoConnect:t})=>{const{ManageServersRowDropdown:r}=Co(wW);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:Zh,className:"text-primary",id:"autoConnectIcon"}),g.jsx(wi,{target:"autoConnectIcon",placement:"right",children:"Auto-connect to this server"})]})}),g.jsx("th",{className:"responsive-table__cell","data-th":"Name",children:g.jsx(Ht,{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(r,{server:e})})]})},MAe=To(wW,["ManageServersRowDropdown"]),OW=({server:e,setAutoConnect:t})=>{const{DeleteServerModal:r}=Co(OW),[n,,i,o]=ur(),a=`/server/${e.id}`,{autoConnect:s}=e,c=s?BK:xae;return g.jsxs($0,{minWidth:s?210:170,children:[g.jsxs(Ye,{tag:Ht,to:a,children:[g.jsx(Ge,{icon:$K,fixedWidth:!0})," Connect"]}),g.jsxs(Ye,{tag:Ht,to:`${a}/edit`,children:[g.jsx(Ge,{icon:YC,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:GC,fixedWidth:!0})," Remove server"]}),g.jsx(r,{redirectHome:!1,server:e,isOpen:n,toggle:o})]})},LAe=To(OW,["DeleteServerModal"]),SW=(e,t)=>QF(e,t,{serializeError:r=>r}),IAe={},{actions:DAe,reducer:$Ae}=Tr({name:"shlink/servers",initialState:IAe,reducers:{editServer:{prepare:(e,t)=>({payload:{serverId:e,serverData:t}}),reducer:(e,{payload:t})=>{const{serverId:r,serverData:n}=t;return e[r]?{...e,[r]:{...e[r],...n}}: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:r,autoConnect:n}=t;return e[r]?n?Object.fromEntries(Object.entries(e).map(([i,o])=>[i,{...o,autoConnect:i===r}])):{...e,[r]:{...e[r],autoConnect:n}}:e}},createServers:{prepare:e=>({payload:xAe(e)}),reducer:(e,{payload:t})=>({...e,...t})}}}),{editServer:FAe,deleteServer:BAe,setAutoConnect:UAe,createServers:PW}=DAe,zAe=$Ae,VAe=e=>O0({},Array.isArray(e)?e.filter(t$):[]),WAe=e=>SW("shlink/remoteServers/fetchServers",async(t,{dispatch:r})=>{const n=await e.jsonRequest(`${Ag.homepage}/servers.json`),i=VAe(n);r(PW(i))}),bA="shlink/selectedServer",qAe="1.0.0",HAe="999.999.999",GAe="latest",KAe=e=>fW(e===GAe?HAe:e,qAe),YAe=r7(e=>`${e.id}_${e.url}_${e.apiKey}`,async(e,t)=>t().then(({version:r})=>({version:KAe(r),printableVersion:cW(r)}))),g8=null,_A=jn(`${bA}/resetSelectedServer`),ZAe=e=>SW(`${bA}/selectServer`,async(t,{dispatch:r,getState:n})=>{r(_A());const{servers:i}=n(),o=i[t];if(!o)return{serverNotFound:!0};try{const a=e(o),{version:s,printableVersion:c}=await YAe(o,()=>a.health());return{...o,version:s,printableVersion:c}}catch{return{...o,serverNotReachable:!0}}}),XAe=e=>Tr({name:bA,initialState:g8,reducers:{},extraReducers:t=>{t.addCase(_A,()=>g8),t.addCase(e.fulfilled,(r,{payload:n})=>n)}}),QAe=({servers:e,selectedServer:t})=>{const r=Object.values(e),n=()=>r.length===0?g.jsxs(Ye,{tag:Ht,to:"/server/create",children:[g.jsx(Ge,{icon:Yp})," ",g.jsx("span",{className:"ms-1",children:"Add a server"})]}):g.jsxs(g.Fragment,{children:[r.map(({name:i,id:o})=>g.jsx(Ye,{tag:Ht,to:`/server/${o}`,active:xK(t)===o,children:i},o)),g.jsx(Ye,{divider:!0,tag:"hr"}),g.jsxs(Ye,{tag:Ht,to:"/manage-servers",children:[g.jsx(Ge,{icon:E3})," ",g.jsx("span",{className:"ms-1",children:"Manage servers"})]})]});return g.jsxs(nm,{nav:!0,inNavbar:!0,children:[g.jsxs(Qa,{nav:!0,caret:!0,children:[g.jsx(Ge,{icon:E3})," ",g.jsx("span",{className:"ms-1",children:"Servers"})]}),g.jsx(pl,{end:!0,style:{right:0},children:n()})]})},JAe=({document:e},t,r)=>{const n=e.createElement("a");n.setAttribute("href",t),n.setAttribute("download",r),n.style.visibility="hidden",e.body.appendChild(n),n.click(),e.body.removeChild(n)},eke=(e,t,r)=>{const n=new Blob([t],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(n);JAe(e,i,r)},tke="shlink-servers.csv";class rke{constructor(t,r,n){Tc(this,"exportServers",async()=>{const t=Object.values(this.storage.get("servers")??{}).map(wK);try{const r=this.jsonToCsv(t);eke(this.window,r,tke)}catch(r){console.error(r)}});this.storage=t,this.window=r,this.jsonToCsv=n}}const nke=e=>typeof e.url=="string"&&typeof e.apiKey=="string"&&typeof e.name=="string",ike=e=>Array.isArray(e)&&e.every(nke);class oke{constructor(t){this.csvToJson=t}async importServersFromFile(t){if(!t)throw new Error("No file provided");const r=await t.text(),n=await this.csvToJson(r);if(!ike(n))throw new Error("Provided file does not have the right format.");return n}}const ake=(e,t)=>{e.factory("ManageServers",NAe),e.decorator("ManageServers",w0),e.decorator("ManageServers",t(["selectedServer","servers"],["resetSelectedServer"])),e.factory("ManageServersRow",MAe),e.factory("ManageServersRowDropdown",LAe),e.decorator("ManageServersRowDropdown",t(null,["setAutoConnect"])),e.factory("CreateServer",PAe),e.decorator("CreateServer",w0),e.decorator("CreateServer",t(["selectedServer","servers"],["createServers","resetSelectedServer"])),e.factory("EditServer",jAe),e.decorator("EditServer",t(["selectedServer"],["editServer","selectServer","resetSelectedServer"])),e.serviceFactory("ServersDropdown",()=>QAe),e.decorator("ServersDropdown",t(["servers","selectedServer"])),e.serviceFactory("DeleteServerModal",()=>CAe),e.decorator("DeleteServerModal",t(null,["deleteServer"])),e.factory("DeleteServerButton",EAe),e.factory("ImportServersBtn",AAe),e.decorator("ImportServersBtn",t(["servers"],["createServers"])),e.factory("ServerError",kAe),e.decorator("ServerError",t(["servers","selectedServer"])),e.service("ServersImporter",oke,"csvToJson"),e.service("ServersExporter",rke,"Storage","window","jsonToCsv"),e.serviceFactory("selectServer",ZAe,"buildShlinkApiClient","loadMercureInfo"),e.serviceFactory("createServers",()=>PW),e.serviceFactory("deleteServer",()=>BAe),e.serviceFactory("editServer",()=>FAe),e.serviceFactory("setAutoConnect",()=>UAe),e.serviceFactory("fetchServers",WAe,"HttpClient"),e.serviceFactory("resetSelectedServer",()=>_A),e.serviceFactory("selectedServerReducerCreator",XAe,"selectServer"),e.serviceFactory("selectedServerReducer",r=>r.reducer,"selectedServerReducerCreator")},EW={field:"dateCreated",dir:"DESC"},ske={realTimeUpdates:{enabled:!0},shortUrlCreation:{validateUrls:!1},ui:{theme:jT()},visits:{defaultInterval:"last30Days"},shortUrlsList:{defaultOrdering:EW}},{reducer:lke,actions:uke}=Tr({name:"shlink/settings",initialState:ske,reducers:{setSettings:(e,{payload:t})=>W0(e,t)}}),{setSettings:cke}=uke,fke=lke,dke=({settings:e,setSettings:t})=>g.jsx(dd,{children:g.jsx(yae,{settings:e,updateSettings:t,defaultShortUrlsListOrdering:EW})}),hke=(e,t)=>{e.serviceFactory("Settings",()=>dke),e.decorator("Settings",w0),e.decorator("Settings",t(["settings"],["setSettings","resetSelectedServer"])),e.serviceFactory("setSettings",()=>cke)};var ZO,y8;function pke(){return y8||(y8=1,ZO=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(n,i,o){r.o(n,i)||Object.defineProperty(n,i,{enumerable:!0,get:o})},r.r=function(n){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},r.t=function(n,i){if(1&i&&(n=r(n)),8&i||4&i&&typeof n=="object"&&n&&n.__esModule)return n;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:n}),2&i&&typeof n!="string")for(var a in n)r.d(o,a,(function(s){return n[s]}).bind(null,a));return o},r.n=function(n){var i=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(i,"a",i),i},r.o=function(n,i){return Object.prototype.hasOwnProperty.call(n,i)},r.p="",r(r.s=32)}([function(e,t){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch{typeof window=="object"&&(r=window)}e.exports=r},function(e,t,r){var n=r(6),i=Object.keys||function(_){var x=[];for(var w in _)x.push(w);return x};e.exports=p;var o=r(5);o.inherits=r(2);var a=r(23),s=r(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(_){if(!(this instanceof p))return new p(_);a.call(this,_),s.call(this,_),_&&_.readable===!1&&(this.readable=!1),_&&_.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,_&&_.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",v)}function v(){this.allowHalfOpen||this._writableState.ended||n.nextTick(b,this)}function b(_){_.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(_){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=_,this._writableState.destroyed=_)}}),p.prototype._destroy=function(_,x){this.push(null),this.end(),n.nextTick(x,_)}},function(e,t){typeof Object.create=="function"?e.exports=function(r,n){r.super_=n,r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(r,n){r.super_=n;var i=function(){};i.prototype=n.prototype,r.prototype=new i,r.prototype.constructor=r}},function(e,t,r){(function(n){/*!
|
||
* The buffer module from node.js, for the browser.
|
||
*
|
||
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
||
* @license MIT
|
||
*/var i=r(38),o=r(39),a=r(40);function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(M,$){if(s()<$)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(M=new Uint8Array($)).__proto__=u.prototype:(M===null&&(M=new u($)),M.length=$),M}function u(M,$,Y){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(M,$,Y);if(typeof M=="number"){if(typeof $=="string")throw new Error("If encoding is specified then the first argument must be a string");return v(this,M)}return h(this,M,$,Y)}function h(M,$,Y,ue){if(typeof $=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&$ 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,$,Y,ue):typeof $=="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|x(he,Se),ge=(ie=c(ie,Fe)).write(he,Se);return ge!==Fe&&(ie=ie.slice(0,ge)),ie}(M,$,Y):function(ie,he){if(u.isBuffer(he)){var Se=0|_(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,$)}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,$){if(p($),M=c(M,$<0?0:0|_($)),!u.TYPED_ARRAY_SUPPORT)for(var Y=0;Y<$;++Y)M[Y]=0;return M}function b(M,$){var Y=$.length<0?0:0|_($.length);M=c(M,Y);for(var ue=0;ue<Y;ue+=1)M[ue]=255&$[ue];return M}function _(M){if(M>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|M}function x(M,$){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($){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;$=(""+$).toLowerCase(),ue=!0}}function w(M,$,Y){var ue=M[$];M[$]=M[Y],M[Y]=ue}function O(M,$,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 $=="string"&&($=u.from($,ue)),u.isBuffer($))return $.length===0?-1:P(M,$,Y,ue,ie);if(typeof $=="number")return $&=255,u.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?ie?Uint8Array.prototype.indexOf.call(M,$,Y):Uint8Array.prototype.lastIndexOf.call(M,$,Y):P(M,[$],Y,ue,ie);throw new TypeError("val must be string, number or Buffer")}function P(M,$,Y,ue,ie){var he,Se=1,Fe=M.length,ge=$.length;if(ue!==void 0&&((ue=String(ue).toLowerCase())==="ucs2"||ue==="ucs-2"||ue==="utf16le"||ue==="utf-16le")){if(M.length<2||$.length<2)return-1;Se=2,Fe/=2,ge/=2,Y/=2}function Ce(Be,qe){return Se===1?Be[qe]:Be.readUInt16BE(qe*Se)}if(ie){var je=-1;for(he=Y;he<Fe;he++)if(Ce(M,he)===Ce($,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(Ce(M,he+He)!==Ce($,He)){Me=!1;break}if(Me)return he}return-1}function C(M,$,Y,ue){Y=Number(Y)||0;var ie=M.length-Y;ue?(ue=Number(ue))>ie&&(ue=ie):ue=ie;var he=$.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($.substr(2*Se,2),16);if(isNaN(Fe))return Se;M[Y+Se]=Fe}return Se}function T(M,$,Y,ue){return be(ce($,M.length-Y),M,Y,ue)}function A(M,$,Y,ue){return be(function(ie){for(var he=[],Se=0;Se<ie.length;++Se)he.push(255&ie.charCodeAt(Se));return he}($),M,Y,ue)}function j(M,$,Y,ue){return A(M,$,Y,ue)}function N(M,$,Y,ue){return be(de($),M,Y,ue)}function F(M,$,Y,ue){return be(function(ie,he){for(var Se,Fe,ge,Ce=[],je=0;je<ie.length&&!((he-=2)<0);++je)Fe=(Se=ie.charCodeAt(je))>>8,ge=Se%256,Ce.push(ge),Ce.push(Fe);return Ce}($,M.length-Y),M,Y,ue)}function V(M,$,Y){return $===0&&Y===M.length?i.fromByteArray(M):i.fromByteArray(M.slice($,Y))}function B(M,$,Y){Y=Math.min(M.length,Y);for(var ue=[],ie=$;ie<Y;){var he,Se,Fe,ge,Ce=M[ie],je=null,Me=Ce>239?4:Ce>223?3:Ce>191?2:1;if(ie+Me<=Y)switch(Me){case 1:Ce<128&&(je=Ce);break;case 2:(192&(he=M[ie+1]))==128&&(ge=(31&Ce)<<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&Ce)<<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&Ce)<<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 Be=He.length;if(Be<=W)return String.fromCharCode.apply(String,He);for(var qe="",ye=0;ye<Be;)qe+=String.fromCharCode.apply(String,He.slice(ye,ye+=W));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=n.TYPED_ARRAY_SUPPORT!==void 0?n.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,$,Y){return h(null,M,$,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,$,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,$,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,$){if(!u.isBuffer(M)||!u.isBuffer($))throw new TypeError("Arguments must be Buffers");if(M===$)return 0;for(var Y=M.length,ue=$.length,ie=0,he=Math.min(Y,ue);ie<he;++ie)if(M[ie]!==$[ie]){Y=M[ie],ue=$[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,$){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($===void 0)for($=0,Y=0;Y<M.length;++Y)$+=M[Y].length;var ue=u.allocUnsafe($),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=x,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 $=0;$<M;$+=2)w(this,$,$+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 $=0;$<M;$+=4)w(this,$,$+3),w(this,$+1,$+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 $=0;$<M;$+=8)w(this,$,$+7),w(this,$+1,$+6),w(this,$+2,$+5),w(this,$+3,$+4);return this},u.prototype.toString=function(){var M=0|this.length;return M===0?"":arguments.length===0?B(this,0,M):(function($,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($||($="utf8");;)switch($){case"hex":return Q(this,Y,ue);case"utf8":case"utf-8":return B(this,Y,ue);case"ascii":return q(this,Y,ue);case"latin1":case"binary":return J(this,Y,ue);case"base64":return V(this,Y,ue);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ne(this,Y,ue);default:if(ie)throw new TypeError("Unknown encoding: "+$);$=($+"").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="",$=t.INSPECT_MAX_BYTES;return this.length>0&&(M=this.toString("hex",0,$).match(/.{2}/g).join(" "),this.length>$&&(M+=" ... ")),"<Buffer "+M+">"},u.prototype.compare=function(M,$,Y,ue,ie){if(!u.isBuffer(M))throw new TypeError("Argument must be a Buffer");if($===void 0&&($=0),Y===void 0&&(Y=M?M.length:0),ue===void 0&&(ue=0),ie===void 0&&(ie=this.length),$<0||Y>M.length||ue<0||ie>this.length)throw new RangeError("out of range index");if(ue>=ie&&$>=Y)return 0;if(ue>=ie)return-1;if($>=Y)return 1;if($>>>=0,Y>>>=0,ue>>>=0,ie>>>=0,this===M)return 0;for(var he=ie-ue,Se=Y-$,Fe=Math.min(he,Se),ge=this.slice(ue,ie),Ce=M.slice($,Y),je=0;je<Fe;++je)if(ge[je]!==Ce[je]){he=ge[je],Se=Ce[je];break}return he<Se?-1:Se<he?1:0},u.prototype.includes=function(M,$,Y){return this.indexOf(M,$,Y)!==-1},u.prototype.indexOf=function(M,$,Y){return O(this,M,$,Y,!0)},u.prototype.lastIndexOf=function(M,$,Y){return O(this,M,$,Y,!1)},u.prototype.write=function(M,$,Y,ue){if($===void 0)ue="utf8",Y=this.length,$=0;else if(Y===void 0&&typeof $=="string")ue=$,Y=this.length,$=0;else{if(!isFinite($))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");$|=0,isFinite(Y)?(Y|=0,ue===void 0&&(ue="utf8")):(ue=Y,Y=void 0)}var ie=this.length-$;if((Y===void 0||Y>ie)&&(Y=ie),M.length>0&&(Y<0||$<0)||$>this.length)throw new RangeError("Attempt to write outside buffer bounds");ue||(ue="utf8");for(var he=!1;;)switch(ue){case"hex":return C(this,M,$,Y);case"utf8":case"utf-8":return T(this,M,$,Y);case"ascii":return A(this,M,$,Y);case"latin1":case"binary":return j(this,M,$,Y);case"base64":return N(this,M,$,Y);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,M,$,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 W=4096;function q(M,$,Y){var ue="";Y=Math.min(M.length,Y);for(var ie=$;ie<Y;++ie)ue+=String.fromCharCode(127&M[ie]);return ue}function J(M,$,Y){var ue="";Y=Math.min(M.length,Y);for(var ie=$;ie<Y;++ie)ue+=String.fromCharCode(M[ie]);return ue}function Q(M,$,Y){var ue=M.length;(!$||$<0)&&($=0),(!Y||Y<0||Y>ue)&&(Y=ue);for(var ie="",he=$;he<Y;++he)ie+=le(M[he]);return ie}function ne(M,$,Y){for(var ue=M.slice($,Y),ie="",he=0;he<ue.length;he+=2)ie+=String.fromCharCode(ue[he]+256*ue[he+1]);return ie}function ae(M,$,Y){if(M%1!=0||M<0)throw new RangeError("offset is not uint");if(M+$>Y)throw new RangeError("Trying to access beyond buffer length")}function se(M,$,Y,ue,ie,he){if(!u.isBuffer(M))throw new TypeError('"buffer" argument must be a Buffer instance');if($>ie||$<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,$,Y,ue){$<0&&($=65535+$+1);for(var ie=0,he=Math.min(M.length-Y,2);ie<he;++ie)M[Y+ie]=($&255<<8*(ue?ie:1-ie))>>>8*(ue?ie:1-ie)}function K(M,$,Y,ue){$<0&&($=4294967295+$+1);for(var ie=0,he=Math.min(M.length-Y,4);ie<he;++ie)M[Y+ie]=$>>>8*(ue?ie:3-ie)&255}function G(M,$,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,$,Y,ue,ie){return ie||G(M,0,Y,4),o.write(M,$,Y,ue,23,4),Y+4}function re(M,$,Y,ue,ie){return ie||G(M,0,Y,8),o.write(M,$,Y,ue,52,8),Y+8}u.prototype.slice=function(M,$){var Y,ue=this.length;if(M=~~M,$=$===void 0?ue:~~$,M<0?(M+=ue)<0&&(M=0):M>ue&&(M=ue),$<0?($+=ue)<0&&($=0):$>ue&&($=ue),$<M&&($=M),u.TYPED_ARRAY_SUPPORT)(Y=this.subarray(M,$)).__proto__=u.prototype;else{var ie=$-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,$,Y){M|=0,$|=0,Y||ae(M,$,this.length);for(var ue=this[M],ie=1,he=0;++he<$&&(ie*=256);)ue+=this[M+he]*ie;return ue},u.prototype.readUIntBE=function(M,$,Y){M|=0,$|=0,Y||ae(M,$,this.length);for(var ue=this[M+--$],ie=1;$>0&&(ie*=256);)ue+=this[M+--$]*ie;return ue},u.prototype.readUInt8=function(M,$){return $||ae(M,1,this.length),this[M]},u.prototype.readUInt16LE=function(M,$){return $||ae(M,2,this.length),this[M]|this[M+1]<<8},u.prototype.readUInt16BE=function(M,$){return $||ae(M,2,this.length),this[M]<<8|this[M+1]},u.prototype.readUInt32LE=function(M,$){return $||ae(M,4,this.length),(this[M]|this[M+1]<<8|this[M+2]<<16)+16777216*this[M+3]},u.prototype.readUInt32BE=function(M,$){return $||ae(M,4,this.length),16777216*this[M]+(this[M+1]<<16|this[M+2]<<8|this[M+3])},u.prototype.readIntLE=function(M,$,Y){M|=0,$|=0,Y||ae(M,$,this.length);for(var ue=this[M],ie=1,he=0;++he<$&&(ie*=256);)ue+=this[M+he]*ie;return ue>=(ie*=128)&&(ue-=Math.pow(2,8*$)),ue},u.prototype.readIntBE=function(M,$,Y){M|=0,$|=0,Y||ae(M,$,this.length);for(var ue=$,ie=1,he=this[M+--ue];ue>0&&(ie*=256);)he+=this[M+--ue]*ie;return he>=(ie*=128)&&(he-=Math.pow(2,8*$)),he},u.prototype.readInt8=function(M,$){return $||ae(M,1,this.length),128&this[M]?-1*(255-this[M]+1):this[M]},u.prototype.readInt16LE=function(M,$){$||ae(M,2,this.length);var Y=this[M]|this[M+1]<<8;return 32768&Y?4294901760|Y:Y},u.prototype.readInt16BE=function(M,$){$||ae(M,2,this.length);var Y=this[M+1]|this[M]<<8;return 32768&Y?4294901760|Y:Y},u.prototype.readInt32LE=function(M,$){return $||ae(M,4,this.length),this[M]|this[M+1]<<8|this[M+2]<<16|this[M+3]<<24},u.prototype.readInt32BE=function(M,$){return $||ae(M,4,this.length),this[M]<<24|this[M+1]<<16|this[M+2]<<8|this[M+3]},u.prototype.readFloatLE=function(M,$){return $||ae(M,4,this.length),o.read(this,M,!0,23,4)},u.prototype.readFloatBE=function(M,$){return $||ae(M,4,this.length),o.read(this,M,!1,23,4)},u.prototype.readDoubleLE=function(M,$){return $||ae(M,8,this.length),o.read(this,M,!0,52,8)},u.prototype.readDoubleBE=function(M,$){return $||ae(M,8,this.length),o.read(this,M,!1,52,8)},u.prototype.writeUIntLE=function(M,$,Y,ue){M=+M,$|=0,Y|=0,ue||se(this,M,$,Y,Math.pow(2,8*Y)-1,0);var ie=1,he=0;for(this[$]=255&M;++he<Y&&(ie*=256);)this[$+he]=M/ie&255;return $+Y},u.prototype.writeUIntBE=function(M,$,Y,ue){M=+M,$|=0,Y|=0,ue||se(this,M,$,Y,Math.pow(2,8*Y)-1,0);var ie=Y-1,he=1;for(this[$+ie]=255&M;--ie>=0&&(he*=256);)this[$+ie]=M/he&255;return $+Y},u.prototype.writeUInt8=function(M,$,Y){return M=+M,$|=0,Y||se(this,M,$,1,255,0),u.TYPED_ARRAY_SUPPORT||(M=Math.floor(M)),this[$]=255&M,$+1},u.prototype.writeUInt16LE=function(M,$,Y){return M=+M,$|=0,Y||se(this,M,$,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[$]=255&M,this[$+1]=M>>>8):oe(this,M,$,!0),$+2},u.prototype.writeUInt16BE=function(M,$,Y){return M=+M,$|=0,Y||se(this,M,$,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[$]=M>>>8,this[$+1]=255&M):oe(this,M,$,!1),$+2},u.prototype.writeUInt32LE=function(M,$,Y){return M=+M,$|=0,Y||se(this,M,$,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[$+3]=M>>>24,this[$+2]=M>>>16,this[$+1]=M>>>8,this[$]=255&M):K(this,M,$,!0),$+4},u.prototype.writeUInt32BE=function(M,$,Y){return M=+M,$|=0,Y||se(this,M,$,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[$]=M>>>24,this[$+1]=M>>>16,this[$+2]=M>>>8,this[$+3]=255&M):K(this,M,$,!1),$+4},u.prototype.writeIntLE=function(M,$,Y,ue){if(M=+M,$|=0,!ue){var ie=Math.pow(2,8*Y-1);se(this,M,$,Y,ie-1,-ie)}var he=0,Se=1,Fe=0;for(this[$]=255&M;++he<Y&&(Se*=256);)M<0&&Fe===0&&this[$+he-1]!==0&&(Fe=1),this[$+he]=(M/Se>>0)-Fe&255;return $+Y},u.prototype.writeIntBE=function(M,$,Y,ue){if(M=+M,$|=0,!ue){var ie=Math.pow(2,8*Y-1);se(this,M,$,Y,ie-1,-ie)}var he=Y-1,Se=1,Fe=0;for(this[$+he]=255&M;--he>=0&&(Se*=256);)M<0&&Fe===0&&this[$+he+1]!==0&&(Fe=1),this[$+he]=(M/Se>>0)-Fe&255;return $+Y},u.prototype.writeInt8=function(M,$,Y){return M=+M,$|=0,Y||se(this,M,$,1,127,-128),u.TYPED_ARRAY_SUPPORT||(M=Math.floor(M)),M<0&&(M=255+M+1),this[$]=255&M,$+1},u.prototype.writeInt16LE=function(M,$,Y){return M=+M,$|=0,Y||se(this,M,$,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[$]=255&M,this[$+1]=M>>>8):oe(this,M,$,!0),$+2},u.prototype.writeInt16BE=function(M,$,Y){return M=+M,$|=0,Y||se(this,M,$,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[$]=M>>>8,this[$+1]=255&M):oe(this,M,$,!1),$+2},u.prototype.writeInt32LE=function(M,$,Y){return M=+M,$|=0,Y||se(this,M,$,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[$]=255&M,this[$+1]=M>>>8,this[$+2]=M>>>16,this[$+3]=M>>>24):K(this,M,$,!0),$+4},u.prototype.writeInt32BE=function(M,$,Y){return M=+M,$|=0,Y||se(this,M,$,4,2147483647,-2147483648),M<0&&(M=4294967295+M+1),u.TYPED_ARRAY_SUPPORT?(this[$]=M>>>24,this[$+1]=M>>>16,this[$+2]=M>>>8,this[$+3]=255&M):K(this,M,$,!1),$+4},u.prototype.writeFloatLE=function(M,$,Y){return z(this,M,$,!0,Y)},u.prototype.writeFloatBE=function(M,$,Y){return z(this,M,$,!1,Y)},u.prototype.writeDoubleLE=function(M,$,Y){return re(this,M,$,!0,Y)},u.prototype.writeDoubleBE=function(M,$,Y){return re(this,M,$,!1,Y)},u.prototype.copy=function(M,$,Y,ue){if(Y||(Y=0),ue||ue===0||(ue=this.length),$>=M.length&&($=M.length),$||($=0),ue>0&&ue<Y&&(ue=Y),ue===Y||M.length===0||this.length===0)return 0;if($<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-$<ue-Y&&(ue=M.length-$+Y);var ie,he=ue-Y;if(this===M&&Y<$&&$<ue)for(ie=he-1;ie>=0;--ie)M[ie+$]=this[ie+Y];else if(he<1e3||!u.TYPED_ARRAY_SUPPORT)for(ie=0;ie<he;++ie)M[ie+$]=this[ie+Y];else Uint8Array.prototype.set.call(M,this.subarray(Y,Y+he),$);return he},u.prototype.fill=function(M,$,Y,ue){if(typeof M=="string"){if(typeof $=="string"?(ue=$,$=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($<0||this.length<$||this.length<Y)throw new RangeError("Out of range index");if(Y<=$)return this;var he;if($>>>=0,Y=Y===void 0?this.length:Y>>>0,M||(M=0),typeof M=="number")for(he=$;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-$;++he)this[he+$]=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,$){var Y;$=$||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){($-=3)>-1&&he.push(239,191,189);continue}if(Se+1===ue){($-=3)>-1&&he.push(239,191,189);continue}ie=Y;continue}if(Y<56320){($-=3)>-1&&he.push(239,191,189),ie=Y;continue}Y=65536+(ie-55296<<10|Y-56320)}else ie&&($-=3)>-1&&he.push(239,191,189);if(ie=null,Y<128){if(($-=1)<0)break;he.push(Y)}else if(Y<2048){if(($-=2)<0)break;he.push(Y>>6|192,63&Y|128)}else if(Y<65536){if(($-=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(($-=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($){if(($=function(Y){return Y.trim?Y.trim():Y.replace(/^\s+|\s+$/g,"")}($).replace(X,"")).length<2)return"";for(;$.length%4!=0;)$+="=";return $}(M))}function be(M,$,Y,ue){for(var ie=0;ie<ue&&!(ie+Y>=$.length||ie>=M.length);++ie)$[ie+Y]=M[ie];return ie}}).call(this,r(0))},function(e,t){var r,n,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(r===setTimeout)return setTimeout(w,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(w,0);try{return r(w,0)}catch{try{return r.call(null,w,0)}catch{return r.call(this,w,0)}}}(function(){try{r=typeof setTimeout=="function"?setTimeout:o}catch{r=o}try{n=typeof clearTimeout=="function"?clearTimeout:a}catch{n=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(n===clearTimeout)return clearTimeout(P);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(P);try{n(P)}catch{try{return n.call(null,P)}catch{return n.call(this,P)}}}(w)}}function _(w,O){this.fun=w,this.array=O}function x(){}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 _(w,O)),u.length!==1||h||s(b)},_.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=x,i.addListener=x,i.once=x,i.off=x,i.removeListener=x,i.removeAllListeners=x,i.emit=x,i.prependListener=x,i.prependOnceListener=x,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,r){(function(n){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=n.isBuffer}).call(this,r(3).Buffer)},function(e,t,r){(function(n){!n.version||n.version.indexOf("v0.")===0||n.version.indexOf("v1.")===0&&n.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 n.nextTick(i);case 2:return n.nextTick(function(){i.call(null,o)});case 3:return n.nextTick(function(){i.call(null,o,a)});case 4:return n.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 n.nextTick(function(){i.apply(null,c)})}}}:e.exports=n}).call(this,r(4))},function(e,t,r){var n=r(3),i=n.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=n:(o(n,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 n.SlowBuffer(s)}},function(e,t,r){var n=r(17)(Object,"create");e.exports=n},function(e,t,r){var n=r(31);e.exports=function(i,o){for(var a=i.length;a--;)if(n(i[a][0],o))return a;return-1}},function(e,t,r){var n=r(96);e.exports=function(i,o){var a=i.__data__;return n(o)?a[typeof o=="string"?"string":"hash"]:a.map}},function(e,t,r){(function(n){var i=n!==void 0&&n||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))},r(35),t.setImmediate=typeof self<"u"&&self.setImmediate||n!==void 0&&n.setImmediate||this&&this.setImmediate,t.clearImmediate=typeof self<"u"&&self.clearImmediate||n!==void 0&&n.clearImmediate||this&&this.clearImmediate}).call(this,r(0))},function(e,t){function r(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function n(a){return typeof a=="function"}function i(a){return typeof a=="object"&&a!==null}function o(a){return a===void 0}e.exports=r,r.EventEmitter=r,r.prototype._events=void 0,r.prototype._maxListeners=void 0,r.defaultMaxListeners=10,r.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},r.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(n(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},r.prototype.addListener=function(a,s){var c;if(!n(s))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",a,n(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)?r.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},r.prototype.on=r.prototype.addListener,r.prototype.once=function(a,s){if(!n(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},r.prototype.removeListener=function(a,s){var c,u,h,p;if(!n(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||n(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},r.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(n(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},r.prototype.listeners=function(a){return this._events&&this._events[a]?n(this._events[a])?[this._events[a]]:this._events[a].slice():[]},r.prototype.listenerCount=function(a){if(this._events){var s=this._events[a];if(n(s))return 1;if(s)return s.length}return 0},r.listenerCount=function(a,s){return a.listenerCount(s)}},function(e,t,r){(t=e.exports=r(23)).Stream=t,t.Readable=t,t.Writable=r(14),t.Duplex=r(1),t.Transform=r(27),t.PassThrough=r(45)},function(e,t,r){(function(n,i,o){var a=r(6);function s(B){var W=this;this.next=null,this.entry=null,this.finish=function(){(function(q,J,Q){var ne=q.entry;for(q.entry=null;ne;){var ae=ne.callback;J.pendingcb--,ae(void 0),ne=ne.next}J.corkedRequestsFree?J.corkedRequestsFree.next=q:J.corkedRequestsFree=q})(W,B)}}e.exports=C;var c,u=!n.browser&&["v0.10","v0.9."].indexOf(n.version.slice(0,5))>-1?i:a.nextTick;C.WritableState=P;var h=r(5);h.inherits=r(2);var p,v={deprecate:r(44)},b=r(24),_=r(7).Buffer,x=o.Uint8Array||function(){},w=r(25);function O(){}function P(B,W){c=c||r(1),B=B||{};var q=W instanceof c;this.objectMode=!!B.objectMode,q&&(this.objectMode=this.objectMode||!!B.writableObjectMode);var J=B.highWaterMark,Q=B.writableHighWaterMark,ne=this.objectMode?16:16384;this.highWaterMark=J||J===0?J:q&&(Q||Q===0)?Q:ne,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,re=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(V,le,ce),le._writableState.errorEmitted=!0,le.emit("error",be)):(M(be),le._writableState.errorEmitted=!0,le.emit("error",be),V(le,ce))})(oe,G,z,K,re);else{var X=N(G);X||G.corked||G.bufferProcessing||!G.bufferedRequest||j(oe,G),z?u(A,oe,G,X,re):A(oe,G,X,re)}})(W,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 C(B){if(c=c||r(1),!(p.call(C,this)||this instanceof c))return new C(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,W,q,J,Q,ne,ae){W.writelen=J,W.writecb=ae,W.writing=!0,W.sync=!0,q?B._writev(Q,W.onwrite):B._write(Q,ne,W.onwrite),W.sync=!1}function A(B,W,q,J){q||function(Q,ne){ne.length===0&&ne.needDrain&&(ne.needDrain=!1,Q.emit("drain"))}(B,W),W.pendingcb--,J(),V(B,W)}function j(B,W){W.bufferProcessing=!0;var q=W.bufferedRequest;if(B._writev&&q&&q.next){var J=W.bufferedRequestCount,Q=new Array(J),ne=W.corkedRequestsFree;ne.entry=q;for(var ae=0,se=!0;q;)Q[ae]=q,q.isBuf||(se=!1),q=q.next,ae+=1;Q.allBuffers=se,T(B,W,!0,W.length,Q,"",ne.finish),W.pendingcb++,W.lastBufferedRequest=null,ne.next?(W.corkedRequestsFree=ne.next,ne.next=null):W.corkedRequestsFree=new s(W),W.bufferedRequestCount=0}else{for(;q;){var oe=q.chunk,K=q.encoding,G=q.callback;if(T(B,W,!1,W.objectMode?1:oe.length,oe,K,G),q=q.next,W.bufferedRequestCount--,W.writing)break}q===null&&(W.lastBufferedRequest=null)}W.bufferedRequest=q,W.bufferProcessing=!1}function N(B){return B.ending&&B.length===0&&B.bufferedRequest===null&&!B.finished&&!B.writing}function F(B,W){B._final(function(q){W.pendingcb--,q&&B.emit("error",q),W.prefinished=!0,B.emit("prefinish"),V(B,W)})}function V(B,W){var q=N(W);return q&&(function(J,Q){Q.prefinished||Q.finalCalled||(typeof J._final=="function"?(Q.pendingcb++,Q.finalCalled=!0,a.nextTick(F,J,Q)):(Q.prefinished=!0,J.emit("prefinish")))}(B,W),W.pendingcb===0&&(W.finished=!0,B.emit("finish"))),q}h.inherits(C,b),P.prototype.getBuffer=function(){for(var B=this.bufferedRequest,W=[];B;)W.push(B),B=B.next;return W},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(C,Symbol.hasInstance,{value:function(B){return!!p.call(this,B)||this===C&&B&&B._writableState instanceof P}})):p=function(B){return B instanceof this},C.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},C.prototype.write=function(B,W,q){var J=this._writableState,Q=!1,ne=!J.objectMode&&function(ae){return _.isBuffer(ae)||ae instanceof x}(B);return ne&&!_.isBuffer(B)&&(B=function(ae){return _.from(ae)}(B)),typeof W=="function"&&(q=W,W=null),ne?W="buffer":W||(W=J.defaultEncoding),typeof q!="function"&&(q=O),J.ended?function(ae,se){var oe=new Error("write after end");ae.emit("error",oe),a.nextTick(se,oe)}(this,q):(ne||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,q))&&(J.pendingcb++,Q=function(ae,se,oe,K,G,z){if(!oe){var re=function(de,be,M){return de.objectMode||de.decodeStrings===!1||typeof be!="string"||(be=_.from(be,M)),be}(se,K,G);K!==re&&(oe=!0,G="buffer",K=re)}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,ne,B,W,q)),Q},C.prototype.cork=function(){this._writableState.corked++},C.prototype.uncork=function(){var B=this._writableState;B.corked&&(B.corked--,B.writing||B.corked||B.finished||B.bufferProcessing||!B.bufferedRequest||j(this,B))},C.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(C.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),C.prototype._write=function(B,W,q){q(new Error("_write() is not implemented"))},C.prototype._writev=null,C.prototype.end=function(B,W,q){var J=this._writableState;typeof B=="function"?(q=B,B=null,W=null):typeof W=="function"&&(q=W,W=null),B!=null&&this.write(B,W),J.corked&&(J.corked=1,this.uncork()),J.ending||J.finished||function(Q,ne,ae){ne.ending=!0,V(Q,ne),ae&&(ne.finished?a.nextTick(ae):Q.once("finish",ae)),ne.ended=!0,Q.writable=!1}(this,J,q)},Object.defineProperty(C.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(B){this._writableState&&(this._writableState.destroyed=B)}}),C.prototype.destroy=w.destroy,C.prototype._undestroy=w.undestroy,C.prototype._destroy=function(B,W){this.end(),W(B)}}).call(this,r(4),r(11).setImmediate,r(0))},function(e,t,r){(function(n,i,o){e.exports=function a(s,c,u){function h(b,_){if(!c[b]){if(!s[b]){var x=typeof _dereq_=="function"&&_dereq_;if(!_&&x)return x(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),_=b.promise();return b.setHowMany(1),b.setUnwrap(),b.init(),_}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 _(O,P,C){this._lateQueue.push(O,P,C),this._queueTick()}function x(O,P,C){this._normalQueue.push(O,P,C),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?(n.stderr.write("Fatal "+(O instanceof Error?O.stack:O)+`
|
||
`),n.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,C){this._trampolineEnabled?_.call(this,O,P,C):this._schedule(function(){setTimeout(function(){O.call(P,C)},100)})},b.prototype.invoke=function(O,P,C){this._trampolineEnabled?x.call(this,O,P,C):this._schedule(function(){O.call(P,C)})},b.prototype.settlePromises=function(O){this._trampolineEnabled?w.call(this,O):this._schedule(function(){O._settlePromises()})}):(b.prototype.invokeLater=_,b.prototype.invoke=x,b.prototype.settlePromises=w),b.prototype._drainQueue=function(O){for(;O.length()>0;){var P=O.shift();if(typeof P=="function"){var C=O.shift(),T=O.shift();P.call(C,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,_=function(P,C){this._reject(C)},x=function(P,C){C.promiseRejectionQueued=!0,C.bindingPromise._then(_,_,null,this,P)},w=function(P,C){!(50397184&this._bitField)&&this._resolveCallback(C.target)},O=function(P,C){C.promiseRejectionQueued||this._reject(P)};u.prototype.bind=function(P){b||(b=!0,u.prototype._propagateFrom=v.propagateFromFunction(),u.prototype._boundValue=v.boundValueFunction());var C=p(P),T=new u(h);T._propagateFrom(this,1);var A=this._target();if(T._setBoundTo(C),C instanceof u){var j={promiseRejectionQueued:!1,promise:T,target:A,bindingPromise:C};A._then(h,x,void 0,T,j),C._then(w,O,void 0,T,j),T._setOnCancel(C)}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,C){return u.resolve(C).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"),_=b.canEvaluate;function x(P){return function(C,T){var A;if(C!=null&&(A=C[T]),typeof A!="function"){var j="Object "+b.classString(C)+" 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 C=+this;return C<0&&(C=Math.max(0,C+P.length)),P[C]}b.isIdentifier,v.prototype.call=function(P){var C=[].slice.call(arguments,1);return C.push(P),this._then(x,void 0,void 0,C,void 0)},v.prototype.get=function(P){var C;if(typeof P=="number")C=O;else if(_){var T=(void 0)(P);C=T!==null?T:w}else C=w;return this._then(C,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"),_=b.tryCatch,x=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 C=O._cancellationParent;if(C==null||!C._isCancellable()){O._isFollowing()?O._followee().cancel():O._cancelBranched();break}O._isFollowing()&&O._followee().cancel(),O._setWillBeCancelled(),P=O,O=C}},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 C=0;C<O.length;++C)this._doInvokeOnCancel(O[C],P);else if(O!==void 0)if(typeof O=="function"){if(!P){var T=_(O).call(this._boundValue());T===x&&(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 C=0;C<_.length;++C){var T=_[C];if(T===Error||T!=null&&T.prototype instanceof Error){if(O instanceof T)return v(x).call(P,O)}else if(typeof T=="function"){var A=v(T).call(P,O);if(A===b)return A;if(A)return v(x).call(P,O)}else if(h.isObject(O)){for(var j=p(T),N=0;N<j.length;++N){var F=j[N];if(T[F]!=O[F])continue e}return v(x).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 _=p.length-1;if(_>=0)return p[_]}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 _=p.pop(),x=_._promiseCreated;return _._promiseCreated=null,x}return null},v.CapturedTrace=null,v.create=function(){if(h)return new v},v.deactivateLongStackTraces=function(){},v.activateLongStackTraces=function(){var _=u.prototype._pushContext,x=u.prototype._popContext,w=u._peekContext,O=u.prototype._peekContext,P=u.prototype._promiseCreated;v.deactivateLongStackTraces=function(){u.prototype._pushContext=_,u.prototype._popContext=x,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 C=this._peekContext();C&&C._promiseCreated==null&&(C._promiseCreated=this)}},v}},{}],9:[function(a,s,c){s.exports=function(u,h){var p,v,b,_=u._getDomain,x=u._async,w=a("./errors").Warning,O=a("./util"),P=O.canAttachTrace,C=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,T=/\((?:timers\.js):\d+:\d+\)/,A=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,j=null,N=null,F=!1,V=O.env("BLUEBIRD_DEBUG")!=0,B=!(O.env("BLUEBIRD_WARNINGS")==0||!V&&!O.env("BLUEBIRD_WARNINGS")),W=!(O.env("BLUEBIRD_LONG_STACK_TRACES")==0||!V&&!O.env("BLUEBIRD_LONG_STACK_TRACES")),q=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=_();v=typeof ye=="function"?we===null?ye:O.domainBind(we,ye):void 0},u.onUnhandledRejectionHandled=function(ye){var we=_();p=typeof ye=="function"?we===null?ye:O.domainBind(we,ye):void 0};var J=function(){};u.longStackTraces=function(){if(x.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(x.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(),x.enableTrampoline(),qe.longStackTraces=!1},u.prototype._captureStackTrace=M,u.prototype._attachExtraTrace=$,h.activateLongStackTraces(),x.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}}(),ne=O.isNode?function(){return n.emit.apply(n,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=ne.apply(null,arguments)}catch(ke){x.throwLater(ke),we=!0}var Ae=!1;try{Ae=Q(ye,se[ye].apply(null,arguments))}catch(ke){x.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 re(){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,q=qe.warnings,O.isObject(we)&&"wForgottenReturn"in we&&(q=!!we.wForgottenReturn)}if("cancellation"in ye&&ye.cancellation&&!qe.cancellation){if(x.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");u.prototype._clearCancellationData=le,u.prototype._propagateFrom=ce,u.prototype._onCancel=re,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 $(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&&Ce(ke);De&&!Ke&&(F&&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){x.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 Be=="function"}var Ce=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);Be(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,Jt=Xe[xt],Gt=-1,jr=Ot.length-1;jr>=0;--jr)if(Ot[jr]===Jt){Gt=jr;break}for(jr=Gt;jr>=0;--jr){var Lr=Ot[jr];if(Xe[xt]!==Lr)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 Be=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 Ce=function(Ke){return C.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,F=!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&&n.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 W&&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&&q){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 Jt=Ot[xt];if(!T.test(Jt)){var Gt=Jt.match(A);Gt&&(Ke="at "+Gt[1]+":"+Gt[2]+":"+Gt[3]+" ");break}}if(Ot.length>0){var jr=Ot[0];for(xt=0;xt<bt.length;++xt)if(bt[xt]===jr){xt>0&&(Xe=`
|
||
`+bt[xt-1]);break}}}var Lr="a promise was created in a "+Ae+"handler "+Ke+"but was not returned from it, see http://goo.gl/rRqMUw"+Xe;ke._warn(Lr,!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||(Ce=function(Jt){if(C.test(Jt))return!0;var Gt=Me(Jt);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:ne}}},{"./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(_){return p(this,_,h,0)._then(b,void 0,void 0,this,void 0)},u.prototype.mapSeries=function(_){return p(this,_,h,h)},u.each=function(_,x){return p(_,x,h,0)._then(b,void 0,void 0,_,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"),_=b.inherits,x=b.notEnumerableProp;function w(B,W){function q(J){if(!(this instanceof q))return new q(J);x(this,"message",typeof J=="string"?J:W),x(this,"name",B),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return _(q,Error),q}var O=w("Warning","warning"),P=w("CancellationError","cancellation error"),C=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 F(B){if(!(this instanceof F))return new F(B);x(this,"name","OperationalError"),x(this,"message",B),this.cause=B,this.isOperational=!0,B instanceof Error?(x(this,"message",B.message),x(this,"stack",B.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}T.prototype.toString=function(){var B=Array(4*N+1).join(" "),W=`
|
||
`+B+`AggregateError of:
|
||
`;N++,B=Array(4*N+1).join(" ");for(var q=0;q<this.length;++q){for(var J=this[q]===this?"[Circular AggregateError]":this[q]+"",Q=J.split(`
|
||
`),ne=0;ne<Q.length;++ne)Q[ne]=B+Q[ne];W+=(J=Q.join(`
|
||
`))+`
|
||
`}return N--,W},_(F,Error);var V=Error.__BluebirdErrorTypes__;V||(V=v({CancellationError:P,TimeoutError:C,OperationalError:F,RejectionError:F,AggregateError:T}),p.defineProperty(Error,"__BluebirdErrorTypes__",{value:V,writable:!1,enumerable:!1,configurable:!1})),s.exports={Error,TypeError:u,RangeError:h,CancellationError:V.CancellationError,OperationalError:V.OperationalError,TimeoutError:V.TimeoutError,AggregateError:V.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(_){var x=[];for(var w in _)h.call(_,w)&&x.push(w);return x};s.exports={isArray:function(_){try{return p.call(_)==="[object Array]"}catch{return!1}},keys:b,names:b,defineProperty:function(_,x,w){return _[x]=w.value,_},getDescriptor:function(_,x){return{value:_[x]}},freeze:function(_){return _},getPrototypeOf:function(_){try{return Object(_).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,_){return p(v,b,_,h)}}},{}],15:[function(a,s,c){s.exports=function(u,h,p){var v=a("./util"),b=u.CancellationError,_=v.errorObj,x=a("./catch_filter")(p);function w(j,N,F){this.promise=j,this.type=N,this.handler=F,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 C(){return A.call(this,this.promise._target()._settledValue())}function T(j){if(!P(this,j))return _.e=j,_}function A(j){var N=this.promise,F=this.handler;if(!this.called){this.called=!0;var V=this.isFinallyHandler()?F.call(N._boundValue()):F.call(N._boundValue(),j);if(V===p)return V;if(V!==void 0){N._setReturnedNonUndefined();var B=h(V,N);if(B instanceof u){if(this.cancelPromise!=null){if(B._isCancelled()){var W=new b("late cancellation observer");return N._attachExtraTrace(W),_.e=W,_}B.isPending()&&B._attachCancellationCallback(new O(this))}return B._then(C,T,void 0,this,void 0)}}}return N.isRejected()?(P(this),_.e=j,_):(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,F,V){return typeof j!="function"?this.then():this._then(F,V,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 F,V=new Array(N-1),B=0;for(F=0;F<N-1;++F){var W=arguments[F];if(!v.isObject(W))return u.reject(new TypeError("tapCatch statement predicate: expecting an object but got "+v.classString(W)));V[B++]=W}V.length=B;var q=arguments[F];return this._passThrough(x(V,q,this),1,void 0,A)},w}},{"./catch_filter":7,"./util":36}],16:[function(a,s,c){s.exports=function(u,h,p,v,b,_){var x=a("./errors").TypeError,w=a("./util"),O=w.errorObj,P=w.tryCatch,C=[];function T(A,j,N,F){if(_.cancellation()){var V=new u(p),B=this._finallyPromise=new u(p);this._promise=V.lastly(function(){return B}),V._captureStackTrace(),V._setOnCancel(this)}else(this._promise=new u(p))._captureStackTrace();this._stack=F,this._generatorFunction=A,this._receiver=j,this._generator=void 0,this._yieldHandlers=typeof N=="function"?[N].concat(C):C,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,_.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 F=v(N,this._promise);if(F instanceof u||(F=function(B,W,q){for(var J=0;J<W.length;++J){q._pushContext();var Q=P(W[J])(B);if(q._popContext(),Q===O){q._pushContext();var ne=u.reject(O.e);return q._popContext(),ne}var ae=v(Q,q);if(ae instanceof u)return ae}return null}(F,this._yieldHandlers,this._promise))!==null){var V=(F=F._target())._bitField;50397184&V?33554432&V?u._async.invoke(this._promiseFulfilled,this,F._value()):16777216&V?u._async.invoke(this._promiseRejected,this,F._reason()):this._promiseCancelled():(this._yieldedPromise=F,F._proxy(this,null))}else this._promiseRejected(new x(`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 x(`generatorFunction must be a function
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);var N=Object(j).yieldHandler,F=T,V=new Error().stack;return function(){var B=A.apply(this,arguments),W=new F(void 0,void 0,N,V),q=W.promise();return W._generator=B,W._promiseFulfilled(void 0),q}},u.coroutine.addYieldHandler=function(A){if(typeof A!="function")throw new x("expecting a function but got "+w.classString(A));C.push(A)},u.spawn=function(A){if(_.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,_){var x=a("./util");x.canEvaluate,x.tryCatch,x.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 C=new h(P).promise();return w!==void 0?C.spread(w):C}}},{"./util":36}],18:[function(a,s,c){s.exports=function(u,h,p,v,b,_){var x=u._getDomain,w=a("./util"),O=w.tryCatch,P=w.errorObj,C=u._async;function T(j,N,F,V){this.constructor$(j),this._promise._captureStackTrace();var B=x();this._callback=B===null?N:w.domainBind(B,N),this._preservedValues=V===b?new Array(this.length()):null,this._limit=F,this._inFlight=0,this._queue=[],C.invoke(this._asyncInit,this,void 0)}function A(j,N,F,V){if(typeof N!="function")return p("expecting a function but got "+w.classString(N));var B=0;if(F!==void 0){if(typeof F!="object"||F===null)return u.reject(new TypeError("options argument must be an object but it is "+w.classString(F)));if(typeof F.concurrency!="number")return u.reject(new TypeError("'concurrency' must be a number but it is "+w.classString(F.concurrency)));B=F.concurrency}return new T(j,N,B=typeof B=="number"&&isFinite(B)&&B>=1?B:0,V).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 F=this._values,V=this.length(),B=this._preservedValues,W=this._limit;if(N<0){if(F[N=-1*N-1]=j,W>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(W>=1&&this._inFlight>=W)return F[N]=j,this._queue.push(N),!1;B!==null&&(B[N]=j);var q=this._promise,J=this._callback,Q=q._boundValue();q._pushContext();var ne=O(J).call(Q,j,N,V),ae=q._popContext();if(_.checkForgottenReturns(ne,ae,B!==null?"Promise.filter":"Promise.map",q),ne===P)return this._reject(ne.e),!0;var se=v(ne,this._promise);if(se instanceof u){var oe=(se=se._target())._bitField;if(!(50397184&oe))return W>=1&&this._inFlight++,F[N]=se,se._proxy(this,-1*(N+1)),!1;if(!(33554432&oe))return 16777216&oe?(this._reject(se._reason()),!0):(this._cancel(),!0);ne=se._value()}F[N]=ne}return++this._totalResolved>=V&&(B!==null?this._filter(F,B):this._resolve(F),!0)},T.prototype._drainQueue=function(){for(var j=this._queue,N=this._limit,F=this._values;j.length>0&&this._inFlight<N;){if(this._isResolved())return;var V=j.pop();this._promiseFulfilled(F[V],V)}},T.prototype._filter=function(j,N){for(var F=N.length,V=new Array(F),B=0,W=0;W<F;++W)j[W]&&(V[B++]=N[W]);V.length=B,this._resolve(V)},T.prototype.preservedValues=function(){return this._preservedValues},u.prototype.map=function(j,N){return A(this,j,N,null)},u.map=function(j,N,F,V){return A(j,N,F,V)}}},{"./util":36}],19:[function(a,s,c){s.exports=function(u,h,p,v,b){var _=a("./util"),x=_.tryCatch;u.method=function(w){if(typeof w!="function")throw new u.TypeError("expecting a function but got "+_.classString(w));return function(){var O=new u(h);O._captureStackTrace(),O._pushContext();var P=x(w).apply(this,arguments),C=O._popContext();return b.checkForgottenReturns(P,C,"Promise.method",O),O._resolveFromSyncValue(P),O}},u.attempt=u.try=function(w){if(typeof w!="function")return v("expecting a function but got "+_.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 C=arguments[1],T=arguments[2];O=_.isArray(C)?x(w).apply(T,C):x(w).call(T,C)}else O=x(w)();var A=P._popContext();return b.checkForgottenReturns(O,A,"Promise.try",P),P._resolveFromSyncValue(O),P},u.prototype._resolveFromSyncValue=function(w){w===_.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}(x)){(w=new p(x)).name=x.name,w.message=x.message,w.stack=x.stack;for(var O=v.keys(x),P=0;P<O.length;++P){var C=O[P];b.test(C)||(w[C]=x[C])}return w}return u.markAsOriginatingFromRejection(x),x}s.exports=function(x,w){return function(O,P){if(x!==null){if(O){var C=_(h(O));x._attachExtraTrace(C),x._reject(C)}else if(w){var T=[].slice.call(arguments,1);x._fulfill(T)}else x._fulfill(P);x=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 _(O,P){if(!h.isArray(O))return x.call(this,O,P);var C=v(P).apply(this._boundValue(),[null].concat(O));C===b&&p.throwLater(C.e)}function x(O,P){var C=this._boundValue(),T=O===void 0?v(P).call(C,null):v(P).call(C,null,O);T===b&&p.throwLater(T.e)}function w(O,P){if(!O){var C=new Error(O+"");C.cause=O,O=C}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 C=x;P!==void 0&&Object(P).spread&&(C=_),this._then(C,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=x.isNode?function(){var X=n.domain;return X===void 0&&(X=null),X}:function(){return null},x.notEnumerableProp(K,"_getDomain",b);var w=a("./es5"),O=a("./async"),P=new O;w.defineProperty(K,"_async",{value:P});var C=a("./errors"),T=K.TypeError=C.TypeError;K.RangeError=C.RangeError;var A=K.CancellationError=C.CancellationError;K.TimeoutError=C.TimeoutError,K.OperationalError=C.OperationalError,K.RejectionError=C.OperationalError,K.AggregateError=C.AggregateError;var j=function(){},N={},F={},V=a("./thenables")(K,j),B=a("./promise_array")(K,j,V,p,v),W=a("./context")(K),q=W.create,J=a("./debuggability")(K,W),Q=(J.CapturedTrace,a("./finally")(K,V,F)),ne=a("./catch_filter")(F),ae=a("./nodeback"),se=x.errorObj,oe=x.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 "+x.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 re(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(!x.isObject(M))return p("Catch statement predicate: expecting an object but got "+x.classString(M));de[be++]=M}return de.length=be,X=arguments[ce],this.then(void 0,ne(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: "+x.classString(X);arguments.length>1&&(ce+=", "+x.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 "+x.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(x.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=V(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 "+x.classString(X));return P.setScheduler(X)},K.prototype._then=function(X,le,ce,de,be){var M=be!==void 0,$=M?be:new K(j),Y=this._target(),ue=Y._bitField;M||($._propagateFrom(this,3),$._captureStackTrace(),de===void 0&&2097152&this._bitField&&(de=50397184&ue?this._boundValue():Y===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,$));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"&&x.domainBind(ie,he),promise:$,receiver:de,value:Se})}else Y._addCallbacks(X,le,$,de,ie);return $},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!==_)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=_),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=_),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:x.domainBind(be,X)),typeof le=="function"&&(this._rejectionHandler0=be===null?le:x.domainBind(be,le));else{var $=4*M-4;this[$+2]=ce,this[$+3]=de,typeof X=="function"&&(this[$+0]=be===null?X:x.domainBind(be,X)),typeof le=="function"&&(this[$+1]=be===null?le:x.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=V(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 $=1;$<M;++$)de._migrateCallbackAt(this,$);this._setFollowing(),this._setLength(0),this._setFollowee(de)}}else this._reject(u())}},K.prototype._rejectCallback=function(X,le,ce){var de=x.ensureErrorObject(X),be=de===X;if(!be&&!ce&&J.warnings()){var M="a promise was rejected with a non-error: "+x.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: "+x.classString(ce)):M=oe(X).call(le,ce);var $=de._popContext();!(65536&(be=de._bitField))&&(M===F?de._reject(ce):M===se?de._rejectCallback(M.e,!1):(J.checkForgottenReturns(M,$,"",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,$=(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?($&&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&&($&&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,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}},x.notEnumerableProp(K,"_makeSelfResolutionError",u),a("./method")(K,j,V,p,J),a("./bind")(K,j,V,J),a("./cancel")(K,B,p,J),a("./direct_resolve")(K),a("./synchronous_inspection")(K),a("./join")(K,B,V,j,P,b),K.Promise=K,K.version="3.5.1",a("./map.js")(K,B,p,V,j,J),a("./call_get.js")(K),a("./using.js")(K,p,V,q,j,J),a("./timers.js")(K,j,J),a("./generators.js")(K,p,j,V,v,J),a("./nodeify.js")(K),a("./promisify.js")(K,j),a("./props.js")(K,B,V,p),a("./race.js")(K,j,V,p),a("./reduce.js")(K,B,p,V,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),x.toFastProperties(K),x.toFastProperties(K.prototype),re({a:1}),re({b:2}),re({c:3}),re(1),re(function(){}),re(void 0),re(!1),re(new K(j)),J.setBounds(O.firstLineError,x.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 _=a("./util");function x(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 _.isArray,_.inherits(x,b),x.prototype.length=function(){return this._length},x.prototype.promise=function(){return this._promise},x.prototype._init=function w(O,P){var C=p(this._values,this._promise);if(C instanceof u){var T=(C=C._target())._bitField;if(this._values=C,(50397184&T)==0)return this._promise._setAsyncGuaranteed(),C._then(w,this._reject,void 0,this,P);if(!(33554432&T))return 16777216&T?this._reject(C._reason()):this._cancel();C=C._value()}if((C=_.asArray(C))!==null)C.length!==0?this._iterate(C):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 "+_.classString(C)).reason();this._promise._rejectCallback(A,!1)}},x.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,C=!1,T=null,A=0;A<O;++A){var j=p(w[A],P);T=j instanceof u?(j=j._target())._bitField:null,C?T!==null&&j.suppressUnhandledRejections():T!==null?50397184&T?C=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):C=this._promiseFulfilled(j,A)}C||P._setAsyncGuaranteed()},x.prototype._isResolved=function(){return this._values===null},x.prototype._resolve=function(w){this._values=null,this._promise._fulfill(w)},x.prototype._cancel=function(){!this._isResolved()&&this._promise._isCancellable()&&(this._values=null,this._promise._cancel())},x.prototype._reject=function(w){this._values=null,this._promise._rejectCallback(w,!1)},x.prototype._promiseFulfilled=function(w,O){return this._values[O]=w,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},x.prototype._promiseCancelled=function(){return this._cancel(),!0},x.prototype._promiseRejected=function(w){return this._totalResolved++,this._reject(w),!0},x.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()}},x.prototype.shouldCopyValues=function(){return!0},x.prototype.getActualLength=function(w){return w},x}},{"./util":36}],24:[function(a,s,c){s.exports=function(u,h){var p={},v=a("./util"),b=a("./nodeback"),_=v.withAppended,x=v.maybeWrapAsError,w=v.canEvaluate,O=a("./errors").TypeError,P={__isPromisified__:!0},C=new RegExp("^(?:"+["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"].join("|")+")$"),T=function(q){return v.isIdentifier(q)&&q.charAt(0)!=="_"&&q!=="constructor"};function A(q){return!C.test(q)}function j(q){try{return q.__isPromisified__===!0}catch{return!1}}function N(q,J,Q){var ne=v.getDataPropertyOrDefault(q,J+Q,P);return!!ne&&j(ne)}function F(q,J,Q,ne){for(var ae=v.inheritedDataKeys(q),se=[],oe=0;oe<ae.length;++oe){var K=ae[oe],G=q[K],z=ne===T||T(K);typeof G!="function"||j(G)||N(q,K,J)||!ne(K,G,q,z)||se.push(K,G)}return function(re,X,le){for(var ce=0;ce<re.length;ce+=2){var de=re[ce];if(le.test(de)){for(var be=de.replace(le,""),M=0;M<re.length;M+=2)if(re[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 V=function(q){return q.replace(/([$])/,"\\$")},B=w?void 0:function(q,J,Q,ne,ae,se){var oe=function(){return this}(),K=q;function G(){var z=J;J===p&&(z=this);var re=new u(h);re._captureStackTrace();var X=typeof K=="string"&&this!==oe?this[K]:q,le=b(re,se);try{X.apply(z,_(arguments,le))}catch(ce){re._rejectCallback(x(ce),!0,!0)}return re._isFateSealed()||re._setAsyncGuaranteed(),re}return typeof K=="string"&&(q=ne),v.notEnumerableProp(G,"__isPromisified__",!0),G};function W(q,J,Q,ne,ae){for(var se=new RegExp(V(J)+"$"),oe=F(q,J,se,Q),K=0,G=oe.length;K<G;K+=2){var z=oe[K],re=oe[K+1],X=z+J;if(ne===B)q[X]=B(z,p,z,re,J,ae);else{var le=ne(re,function(){return B(z,p,z,re,J,ae)});v.notEnumerableProp(le,"__isPromisified__",!0),q[X]=le}}return v.toFastProperties(q),q}u.promisify=function(q,J){if(typeof q!="function")throw new O("expecting a function but got "+v.classString(q));if(j(q))return q;var Q=(J=Object(J)).context===void 0?p:J.context,ne=!!J.multiArgs,ae=function(se,oe,K){return B(se,oe,void 0,se,null,ne)}(q,Q);return v.copyDescriptors(q,ae,A),ae},u.promisifyAll=function(q,J){if(typeof q!="function"&&typeof q!="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,ne=J.suffix;typeof ne!="string"&&(ne="Async");var ae=J.filter;typeof ae!="function"&&(ae=T);var se=J.promisifier;if(typeof se!="function"&&(se=B),!v.isIdentifier(ne))throw new RangeError(`suffix must be a valid identifier
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);for(var oe=v.inheritedDataKeys(q),K=0;K<oe.length;++K){var G=q[oe[K]];oe[K]!=="constructor"&&v.isClass(G)&&(W(G.prototype,ne,ae,se,Q),W(G,ne,ae,se,Q))}return W(q,ne,ae,se,Q)}}},{"./errors":12,"./nodeback":20,"./util":36}],25:[function(a,s,c){s.exports=function(u,h,p,v){var b,_=a("./util"),x=_.isObject,w=a("./es5");typeof Map=="function"&&(b=Map);var O=function(){var T=0,A=0;function j(N,F){this[T]=N,this[T+A]=F,T++}return function(N){A=N.size,T=0;var F=new Array(2*N.size);return N.forEach(j,F),F}}();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),F=N.length;A=new Array(2*F);for(var V=0;V<F;++V){var B=N[V];A[V]=T[B],A[V+F]=B}}this.constructor$(A),this._isMap=j,this._init$(void 0,j?-6:-3)}function C(T){var A,j=p(T);return x(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
|
||
`)}_.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 W=new b,q=B.length/2|0,J=0;J<q;++J){var Q=B[q+J],ne=B[J];W.set(Q,ne)}return W}(this._values);else{j={};for(var N=this.length(),F=0,V=this.length();F<V;++F)j[this._values[F+N]]=this._values[F]}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 C(this)},u.props=function(T){return C(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 _=this._front+b-3;this._checkCapacity(b);var x=this._capacity-1;this[_+0&x]=h,this[_+1&x]=p,this[_+2&x]=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)_[O+x]=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"),_=function(w){return w.then(function(O){return x(O,w)})};function x(w,O){var P=p(w);if(P instanceof u)return _(P);if((w=b.asArray(w))===null)return v("expecting an array or an iterable object but got "+b.classString(w));var C=new u(h);O!==void 0&&C._propagateFrom(O,3);for(var T=C._fulfill,A=C._reject,j=0,N=w.length;j<N;++j){var F=w[j];(F!==void 0||j in w)&&u.cast(F)._then(T,A,void 0,C,null)}return C}u.race=function(w){return x(w,void 0)},u.prototype.race=function(){return x(this,void 0)}}},{"./util":36}],28:[function(a,s,c){s.exports=function(u,h,p,v,b,_){var x=u._getDomain,w=a("./util"),O=w.tryCatch;function P(N,F,V,B){this.constructor$(N);var W=x();this._fn=W===null?F:w.domainBind(W,F),V!==void 0&&(V=u.resolve(V))._attachCancellationCallback(this),this._initialValue=V,this._currentCancellable=null,this._eachValues=B===b?Array(this._length):B===0?null:void 0,this._promise._captureStackTrace(),this._init$(void 0,-5)}function C(N,F){this.isFulfilled()?F._resolve(N):F._reject(N)}function T(N,F,V,B){return typeof F!="function"?p("expecting a function but got "+w.classString(F)):new P(N,F,V,B).promise()}function A(N){this.accum=N,this.array._gotAccum(N);var F=v(this.value,this.array._promise);return F instanceof u?(this.array._currentCancellable=F,F._then(j,void 0,void 0,this,void 0)):j.call(this,F)}function j(N){var F,V=this.array,B=V._promise,W=O(V._fn);B._pushContext(),(F=V._eachValues!==void 0?W.call(B._boundValue(),N,this.index,this.length):W.call(B._boundValue(),this.accum,N,this.index,this.length))instanceof u&&(V._currentCancellable=F);var q=B._popContext();return _.checkForgottenReturns(F,q,V._eachValues!==void 0?"Promise.each":"Promise.reduce",B),F}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 F,V;this._values=N;var B=N.length;if(this._initialValue!==void 0?(F=this._initialValue,V=0):(F=u.resolve(N[0]),V=1),this._currentCancellable=F,!F.isRejected())for(;V<B;++V){var W={accum:null,value:N[V],index:V,length:B,array:this};F=F._then(A,void 0,void 0,W,void 0)}this._eachValues!==void 0&&(F=F._then(this._eachComplete,void 0,void 0,this,void 0)),F._then(C,C,void 0,F,this)},u.prototype.reduce=function(N,F){return T(this,N,F,null)},u.reduce=function(N,F,V,B){return T(N,F,V,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=n.nextTick;u=h.isRecentNode?function(x){v.call(i,x)}:function(x){b.call(n,x)}}else if(typeof p=="function"&&typeof p.resolve=="function"){var _=p.resolve();u=function(x){_.then(x)}}else u=typeof MutationObserver>"u"||typeof window<"u"&&window.navigator&&(window.navigator.standalone||window.cordova)?o!==void 0?function(x){o(x)}:typeof setTimeout<"u"?function(x){setTimeout(x,0)}:function(){throw new Error(`No async scheduler available
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`)}:function(){var x=document.createElement("div"),w={attributes:!0},O=!1,P=document.createElement("div");return new MutationObserver(function(){x.classList.toggle("foo"),O=!1}).observe(P,w),function(C){var T=new MutationObserver(function(){T.disconnect(),C()});T.observe(x,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(_){this.constructor$(_)}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=_,this._promiseResolved(x,w)},b.prototype._promiseRejected=function(_,x){var w=new v;return w._bitField=16777216,w._settledValueField=_,this._promiseResolved(x,w)},u.settle=function(_){return p.deprecated(".settle()",".reflect()"),new b(_).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,_=a("./errors").AggregateError,x=v.isArray,w={};function O(C){this.constructor$(C),this._howMany=0,this._unwrap=!1,this._initialized=!1}function P(C,T){if((0|T)!==T||T<0)return p(`expecting a positive integer
|
||
|
||
See http://goo.gl/MqrFmX
|
||
`);var A=new O(C),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 C=x(this._values);!this._isResolved()&&C&&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(C){this._howMany=C},O.prototype._promiseFulfilled=function(C){return this._addFulfilled(C),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(C){return this._addRejected(C),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 C=new _,T=this.length();T<this._values.length;++T)this._values[T]!==w&&C.push(this._values[T]);return C.length>0?this._reject(C):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(C){this._values.push(C)},O.prototype._addFulfilled=function(C){this._values[this._totalResolved++]=C},O.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},O.prototype._getRangeError=function(C){var T="Input array must contain at least "+this._howMany+" items but contains only "+C+" items";return new b(T)},O.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},u.some=function(C,T){return P(C,T)},u.prototype.some=function(C){return P(this,C)},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},_=h.prototype.isRejected=function(){return(16777216&this._bitField)!=0},x=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 x.call(this._target())},u.prototype.isRejected=function(){return _.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,_={}.hasOwnProperty;return function(x,w){if(b(x)){if(x instanceof u)return x;var O=function(C){try{return function(T){return T.then}(C)}catch(T){return v.e=T,v}}(x);if(O===v){w&&w._pushContext();var P=u.reject(O.e);return w&&w._popContext(),P}if(typeof O=="function")return function(C){try{return _.call(C,"_promise0")}catch{return!1}}(x)?(P=new u(h),x._then(P._fulfill,P._reject,void 0,P,null),P):function(C,T,A){var j=new u(h),N=j;A&&A._pushContext(),j._captureStackTrace(),A&&A._popContext();var F=!0,V=p.tryCatch(T).call(C,function(B){j&&(j._resolveCallback(B),j=null)},function(B){j&&(j._rejectCallback(B,F,!0),j=null)});return F=!1,j&&V===v&&(j._rejectCallback(V.e,!0,!0),j=null),N}(x,O,w)}return x}}},{"./util":36}],34:[function(a,s,c){s.exports=function(u,h,p){var v=a("./util"),b=u.TimeoutError;function _(C){this.handle=C}_.prototype._resultCancelled=function(){clearTimeout(this.handle)};var x=function(C){return w(+this).thenReturn(C)},w=u.delay=function(C,T){var A,j;return T!==void 0?(A=u.resolve(T)._then(x,null,null,C,void 0),p.cancellation()&&T instanceof u&&A._setOnCancel(T)):(A=new u(h),j=setTimeout(function(){A._fulfill()},+C),p.cancellation()&&A._setOnCancel(new _(j)),A._captureStackTrace()),A._setAsyncGuaranteed(),A};function O(C){return clearTimeout(this.handle),C}function P(C){throw clearTimeout(this.handle),C}u.prototype.delay=function(C){return w(C,this)},u.prototype.timeout=function(C,T){var A,j;C=+C;var N=new _(setTimeout(function(){A.isPending()&&function(F,V,B){var W;W=typeof V!="string"?V instanceof Error?V:new b("operation timed out"):new b(V),v.markAsOriginatingFromRejection(W),F._attachExtraTrace(W),F._reject(W),B!=null&&B.cancel()}(A,T,j)},C));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,_){var x=a("./util"),w=a("./errors").TypeError,O=a("./util").inherits,P=x.errorObj,C=x.tryCatch,T={};function A(W){setTimeout(function(){throw W},0)}function j(W,q){var J=0,Q=W.length,ne=new u(b);return function ae(){if(J>=Q)return ne._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}(W[J++]);if(se instanceof u&&se._isDisposable()){try{se=p(se._getDisposer().tryDispose(q),W.promise)}catch(oe){return A(oe)}if(se instanceof u)return se._then(ae,A,null,null,null)}ae()}(),ne}function N(W,q,J){this._data=W,this._promise=q,this._context=J}function F(W,q,J){this.constructor$(W,q,J)}function V(W){return N.isDisposer(W)?(this.resources[this.index]._setDisposable(W),W.promise()):W}function B(W){this.length=W,this.promise=null,this[W-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(W){var q=this.resource(),J=this._context;J!==void 0&&J._pushContext();var Q=q!==T?this.doDispose(q,W):null;return J!==void 0&&J._popContext(),this._promise._unsetDisposable(),this._data=null,Q},N.isDisposer=function(W){return W!=null&&typeof W.resource=="function"&&typeof W.tryDispose=="function"},O(F,N),F.prototype.doDispose=function(W,q){return this.data().call(W,W,q)},B.prototype._resultCancelled=function(){for(var W=this.length,q=0;q<W;++q){var J=this[q];J instanceof u&&J.cancel()}},u.using=function(){var W=arguments.length;if(W<2)return h("you must pass at least 2 arguments to Promise.using");var q,J=arguments[W-1];if(typeof J!="function")return h("expecting a function but got "+x.classString(J));var Q=!0;W===2&&Array.isArray(arguments[0])?(W=(q=arguments[0]).length,Q=!1):(q=arguments,W--);for(var ne=new B(W),ae=0;ae<W;++ae){var se=q[ae];if(N.isDisposer(se)){var oe=se;(se=se.promise())._setDisposable(oe)}else{var K=p(se);K instanceof u&&(se=K._then(V,null,null,{resources:ne,index:ae},void 0))}ne[ae]=se}var G=new Array(ne.length);for(ae=0;ae<G.length;++ae)G[ae]=u.resolve(ne[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()}re._pushContext(),J=C(J);var de=Q?J.apply(void 0,X):J(X),be=re._popContext();return _.checkForgottenReturns(de,be,"Promise.using",re),de}),re=z.lastly(function(){var X=new u.PromiseInspection(z);return j(ne,X)});return ne.promise=re,re._setOnCancel(ne),re},u.prototype._setDisposable=function(W){this._bitField=131072|this._bitField,this._disposer=W},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(W){if(typeof W=="function")return new F(W,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 _(){try{var Q=u;return u=null,Q.apply(this,arguments)}catch(ne){return v.e=ne,v}}function x(Q){return Q==null||Q===!0||Q===!1||typeof Q=="string"||typeof Q=="number"}function w(Q,ne,ae){if(x(Q))return Q;var se={value:ae,configurable:!0,enumerable:!1,writable:!0};return h.defineProperty(Q,ne,se),Q}var O=function(){var Q=[Array.prototype,Object.prototype,Function.prototype],ne=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&&!ne(oe);){var z;try{z=ae(oe)}catch{return K}for(var re=0;re<z.length;++re){var X=z[re];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(ne(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*=/,C=/^[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(ne){return ne}};function F(Q){return{}.toString.call(Q)}var V=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 ne,ae=[],se=Q[Symbol.iterator]();!(ne=se.next()).done;)ae.push(ne.value);return ae};V=function(Q){return h.isArray(Q)?Q:Q!=null&&typeof Q[Symbol.iterator]=="function"?B(Q):null}}var W=n!==void 0&&F(n).toLowerCase()==="[object process]",q=n!==void 0&&n.env!==void 0,J={isClass:function(Q){try{if(typeof Q=="function"){var ne=h.names(Q.prototype),ae=h.isES5&&ne.length>1,se=ne.length>0&&!(ne.length===1&&ne[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 C.test(Q)},inheritedDataKeys:O,getDataPropertyOrDefault:function(Q,ne,ae){if(!h.isES5)return{}.hasOwnProperty.call(Q,ne)?Q[ne]:void 0;var se=Object.getOwnPropertyDescriptor(Q,ne);return se!=null?se.get==null&&se.set==null?se.value:ae:void 0},thrower:function(Q){throw Q},isArray:h.isArray,asArray:V,notEnumerableProp:w,isPrimitive:x,isObject:function(Q){return typeof Q=="function"||typeof Q=="object"&&Q!==null},isError:A,canEvaluate:p,errorObj:v,tryCatch:function(Q){return u=Q,_},inherits:function(Q,ne){var ae={}.hasOwnProperty;function se(){for(var oe in this.constructor=Q,this.constructor$=ne,ne.prototype)ae.call(ne.prototype,oe)&&oe.charAt(oe.length-1)!=="$"&&(this[oe+"$"]=ne.prototype[oe])}return se.prototype=ne.prototype,Q.prototype=new se,Q.prototype},withAppended:function(Q,ne){var ae,se=Q.length,oe=new Array(se+1);for(ae=0;ae<se;++ae)oe[ae]=Q[ae];return oe[ae]=ne,oe},maybeWrapAsError:function(Q){return x(Q)?new Error(T(Q)):Q},toFastProperties:function(Q){return Q},filledRange:function(Q,ne,ae){for(var se=new Array(Q),oe=0;oe<Q;++oe)se[oe]=ne+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:F,copyDescriptors:function(Q,ne,ae){for(var se=h.names(Q),oe=0;oe<se.length;++oe){var K=se[oe];if(ae(K))try{h.defineProperty(ne,K,h.getDescriptor(Q,K))}catch{}}},hasDevTools:typeof chrome<"u"&&chrome&&typeof chrome.loadTimes=="function",isNode:W,hasEnvVariables:q,env:function(Q){return q?n.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,ne){return Q.bind(ne)}};J.isRecentNode=J.isNode&&function(){var Q=n.versions.node.split(".").map(Number);return Q[0]===0&&Q[1]>10||Q[0]>0}(),J.isNode&&J.toFastProperties(n);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,r(4),r(0),r(11).setImmediate)},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n,i){if(!i.eol&&n){for(var o=0,a=n.length;o<a;o++)if(n[o]==="\r"){if(n[o+1]===`
|
||
`){i.eol=`\r
|
||
`;break}if(n[o+1]){i.eol="\r";break}}else if(n[o]===`
|
||
`){i.eol=`
|
||
`;break}}return i.eol||`
|
||
`}},function(e,t,r){var n=r(65),i=r(73);e.exports=function(o,a){var s=i(o,a);return n(s)?s:void 0}},function(e,t,r){var n=r(19).Symbol;e.exports=n},function(e,t,r){var n=r(67),i=typeof self=="object"&&self&&self.Object===Object&&self,o=n||i||Function("return this")();e.exports=o},function(e,t){e.exports=function(r){var n=typeof r;return r!=null&&(n=="object"||n=="function")}},function(e,t){var r=Array.isArray;e.exports=r},function(e,t,r){var n=r(30),i=r(76);e.exports=function(o){return typeof o=="symbol"||i(o)&&n(o)=="[object Symbol]"}},function(e,t,r){(function(n,i){var o=r(6);e.exports=T;var a,s=r(37);T.ReadableState=C,r(12).EventEmitter;var c=function(G,z){return G.listeners(z).length},u=r(24),h=r(7).Buffer,p=n.Uint8Array||function(){},v=r(5);v.inherits=r(2);var b=r(41),_=void 0;_=b&&b.debuglog?b.debuglog("stream"):function(){};var x,w=r(42),O=r(25);v.inherits(T,u);var P=["error","close","destroy","pause","resume"];function C(G,z){a=a||r(1),G=G||{};var re=z instanceof a;this.objectMode=!!G.objectMode,re&&(this.objectMode=this.objectMode||!!G.readableObjectMode);var X=G.highWaterMark,le=G.readableHighWaterMark,ce=this.objectMode?16:16384;this.highWaterMark=X||X===0?X:re&&(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&&(x||(x=r(26).StringDecoder),this.decoder=new x(G.encoding),this.encoding=G.encoding)}function T(G){if(a=a||r(1),!(this instanceof T))return new T(G);this._readableState=new C(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,re,X,le){var ce,de=G._readableState;return z===null?(de.reading=!1,function(be,M){if(!M.ended){if(M.decoder){var $=M.decoder.end();$&&$.length&&(M.buffer.push($),M.length+=M.objectMode?1:$.length)}M.ended=!0,V(be)}}(G,de)):(le||(ce=function(be,M){var $;return function(Y){return h.isBuffer(Y)||Y instanceof p}(M)||typeof M=="string"||M===void 0||be.objectMode||($=new TypeError("Invalid non-string/buffer chunk")),$}(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&&!re?(z=de.decoder.write(z),de.objectMode||z.length!==0?j(G,de,z,!1):W(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,re,X){z.flowing&&z.length===0&&!z.sync?(G.emit("data",re),G.read(0)):(z.length+=z.objectMode?1:re.length,X?z.buffer.unshift(re):z.buffer.push(re),z.needReadable&&V(G)),W(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 re,X=this._readableState;return X.objectMode?re=!0:typeof G=="string"&&((z=z||X.defaultEncoding)!==X.encoding&&(G=h.from(G,z),z=""),re=!0),A(this,G,z,!1,re)},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 x||(x=r(26).StringDecoder),this._readableState.decoder=new x(G),this._readableState.encoding=G,this};var N=8388608;function F(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(re){return re>=N?re=N:(re--,re|=re>>>1,re|=re>>>2,re|=re>>>4,re|=re>>>8,re|=re>>>16,re++),re}(G)),G<=z.length?G:z.ended?z.length:(z.needReadable=!0,0))}function V(G){var z=G._readableState;z.needReadable=!1,z.emittedReadable||(_("emitReadable",z.flowing),z.emittedReadable=!0,z.sync?o.nextTick(B,G):B(G))}function B(G){_("emit readable"),G.emit("readable"),ne(G)}function W(G,z){z.readingMore||(z.readingMore=!0,o.nextTick(q,G,z))}function q(G,z){for(var re=z.length;!z.reading&&!z.flowing&&!z.ended&&z.length<z.highWaterMark&&(_("maybeReadMore read 0"),G.read(0),re!==z.length);)re=z.length;z.readingMore=!1}function J(G){_("readable nexttick read 0"),G.read(0)}function Q(G,z){z.reading||(_("resume read 0"),G.read(0)),z.resumeScheduled=!1,z.awaitDrain=0,G.emit("resume"),ne(G),z.flowing&&!z.reading&&G.read(0)}function ne(G){var z=G._readableState;for(_("flow",z.flowing);z.flowing&&G.read()!==null;);}function ae(G,z){return z.length===0?null:(z.objectMode?re=z.buffer.shift():!G||G>=z.length?(re=z.decoder?z.buffer.join(""):z.buffer.length===1?z.buffer.head.data:z.buffer.concat(z.length),z.buffer.clear()):re=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 $=M.head,Y=1,ue=$.data;for(be-=ue.length;$=$.next;){var ie=$.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,$.next?M.head=$.next:M.head=M.tail=null):(M.head=$,$.data=ie.slice(he));break}++Y}return M.length-=Y,ue}(X,le):function(be,M){var $=h.allocUnsafe(be),Y=M.head,ue=1;for(Y.data.copy($),be-=Y.data.length;Y=Y.next;){var ie=Y.data,he=be>ie.length?ie.length:be;if(ie.copy($,$.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,$}(X,le),de}(G,z.buffer,z.decoder),re);var re}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 re=0,X=G.length;re<X;re++)if(G[re]===z)return re;return-1}T.prototype.read=function(G){_("read",G),G=parseInt(G,10);var z=this._readableState,re=G;if(G!==0&&(z.emittedReadable=!1),G===0&&z.needReadable&&(z.length>=z.highWaterMark||z.ended))return _("read: emitReadable",z.length,z.ended),z.length===0&&z.ended?se(this):V(this),null;if((G=F(G,z))===0&&z.ended)return z.length===0&&se(this),null;var X,le=z.needReadable;return _("need readable",le),(z.length===0||z.length-G<z.highWaterMark)&&_("length less than watermark",le=!0),z.ended||z.reading?_("reading or ended",le=!1):le&&(_("do read"),z.reading=!0,z.sync=!0,z.length===0&&(z.needReadable=!0),this._read(z.highWaterMark),z.sync=!1,z.reading||(G=F(re,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),re!==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 re=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,_("pipe count=%d opts=%j",X.pipesCount,z);var le=z&&z.end===!1||G===i.stdout||G===i.stderr?he:ce;function ce(){_("onend"),G.end()}X.endEmitted?o.nextTick(le):re.once("end",le),G.on("unpipe",function Se(Fe,ge){_("onunpipe"),Fe===re&&ge&&ge.hasUnpiped===!1&&(ge.hasUnpiped=!0,_("cleanup"),G.removeListener("close",ue),G.removeListener("finish",ie),G.removeListener("drain",de),G.removeListener("error",Y),G.removeListener("unpipe",Se),re.removeListener("end",ce),re.removeListener("end",he),re.removeListener("data",$),be=!0,!X.awaitDrain||G._writableState&&!G._writableState.needDrain||de())});var de=function(Se){return function(){var Fe=Se._readableState;_("pipeOnDrain",Fe.awaitDrain),Fe.awaitDrain&&Fe.awaitDrain--,Fe.awaitDrain===0&&c(Se,"data")&&(Fe.flowing=!0,ne(Se))}}(re);G.on("drain",de);var be=!1,M=!1;function $(Se){_("ondata"),M=!1,G.write(Se)!==!1||M||((X.pipesCount===1&&X.pipes===G||X.pipesCount>1&&K(X.pipes,G)!==-1)&&!be&&(_("false write response, pause",re._readableState.awaitDrain),re._readableState.awaitDrain++,M=!0),re.pause())}function Y(Se){_("onerror",Se),he(),G.removeListener("error",Y),c(G,"error")===0&&G.emit("error",Se)}function ue(){G.removeListener("finish",ie),he()}function ie(){_("onfinish"),G.removeListener("close",ue),he()}function he(){_("unpipe"),re.unpipe(G)}return re.on("data",$),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",re),X.flowing||(_("pipe resume"),re.resume()),G},T.prototype.unpipe=function(G){var z=this._readableState,re={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,re),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,re);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,re),this)},T.prototype.on=function(G,z){var re=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&&V(this):o.nextTick(J,this))}return re},T.prototype.addListener=T.prototype.on,T.prototype.resume=function(){var G=this._readableState;return G.flowing||(_("resume"),G.flowing=!0,function(z,re){re.resumeScheduled||(re.resumeScheduled=!0,o.nextTick(Q,z,re))}(this,G)),this},T.prototype.pause=function(){return _("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(_("pause"),this._readableState.flowing=!1,this.emit("pause")),this},T.prototype.wrap=function(G){var z=this,re=this._readableState,X=!1;for(var le in G.on("end",function(){if(_("wrapped end"),re.decoder&&!re.ended){var de=re.decoder.end();de&&de.length&&z.push(de)}z.push(null)}),G.on("data",function(de){_("wrapped data"),re.decoder&&(de=re.decoder.write(de)),(!re.objectMode||de!=null)&&(re.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){_("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,r(0),r(4))},function(e,t,r){e.exports=r(12).EventEmitter},function(e,t,r){var n=r(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||n.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?(n.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,r){var n=r(7).Buffer,i=n.isEncoding||function(_){switch((_=""+_)&&_.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(_){var x;switch(this.encoding=function(w){var O=function(P){if(!P)return"utf8";for(var C;;)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(C)return;P=(""+P).toLowerCase(),C=!0}}(w);if(typeof O!="string"&&(n.isEncoding===i||!i(w)))throw new Error("Unknown encoding: "+w);return O||w}(_),this.encoding){case"utf16le":this.text=c,this.end=u,x=4;break;case"utf8":this.fillLast=s,x=4;break;case"base64":this.text=h,this.end=p,x=3;break;default:return this.write=v,void(this.end=b)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(x)}function a(_){return _<=127?0:_>>5==6?2:_>>4==14?3:_>>3==30?4:_>>6==2?-1:-2}function s(_){var x=this.lastTotal-this.lastNeed,w=function(O,P,C){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,_);return w!==void 0?w:this.lastNeed<=_.length?(_.copy(this.lastChar,x,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(_.copy(this.lastChar,x,0,_.length),void(this.lastNeed-=_.length))}function c(_,x){if((_.length-x)%2==0){var w=_.toString("utf16le",x);if(w){var O=w.charCodeAt(w.length-1);if(O>=55296&&O<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=_[_.length-2],this.lastChar[1]=_[_.length-1],w.slice(0,-1)}return w}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=_[_.length-1],_.toString("utf16le",x,_.length-1)}function u(_){var x=_&&_.length?this.write(_):"";if(this.lastNeed){var w=this.lastTotal-this.lastNeed;return x+this.lastChar.toString("utf16le",0,w)}return x}function h(_,x){var w=(_.length-x)%3;return w===0?_.toString("base64",x):(this.lastNeed=3-w,this.lastTotal=3,w===1?this.lastChar[0]=_[_.length-1]:(this.lastChar[0]=_[_.length-2],this.lastChar[1]=_[_.length-1]),_.toString("base64",x,_.length-w))}function p(_){var x=_&&_.length?this.write(_):"";return this.lastNeed?x+this.lastChar.toString("base64",0,3-this.lastNeed):x}function v(_){return _.toString(this.encoding)}function b(_){return _&&_.length?this.write(_):""}t.StringDecoder=o,o.prototype.write=function(_){if(_.length===0)return"";var x,w;if(this.lastNeed){if((x=this.fillLast(_))===void 0)return"";w=this.lastNeed,this.lastNeed=0}else w=0;return w<_.length?x?x+this.text(_,w):this.text(_,w):x||""},o.prototype.end=function(_){var x=_&&_.length?this.write(_):"";return this.lastNeed?x+"<22>":x},o.prototype.text=function(_,x){var w=function(P,C,T){var A=C.length-1;if(A<T)return 0;var j=a(C[A]);return j>=0?(j>0&&(P.lastNeed=j-1),j):--A<T||j===-2?0:(j=a(C[A]))>=0?(j>0&&(P.lastNeed=j-2),j):--A<T||j===-2?0:(j=a(C[A]))>=0?(j>0&&(j===2?j=0:P.lastNeed=j-3),j):0}(this,_,x);if(!this.lastNeed)return _.toString("utf8",x);this.lastTotal=w;var O=_.length-(w-this.lastNeed);return _.copy(this.lastChar,0,O),_.toString("utf8",x,O)},o.prototype.fillLast=function(_){if(this.lastNeed<=_.length)return _.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);_.copy(this.lastChar,this.lastTotal-this.lastNeed,0,_.length),this.lastNeed-=_.length}},function(e,t,r){e.exports=o;var n=r(1),i=r(5);function o(c){if(!(this instanceof o))return new o(c);n.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=r(2),i.inherits(o,n),o.prototype.push=function(c,u){return this._transformState.needTransform=!1,n.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;n.prototype._destroy.call(this,c,function(p){u(p),h.emit("close")})}},function(e,t,r){(function(n){Object.defineProperty(t,"__esModule",{value:!0}),t.bufFromString=function(i){var o=n.byteLength(i),a=n.allocUnsafe?n.allocUnsafe(o):new n(o);return a.write(i),a},t.emptyBuffer=function(){return n.allocUnsafe?n.allocUnsafe(0):new n(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,r(3).Buffer)},function(e,t,r){var n=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 n(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,r){var n=r(18),i=r(68),o=r(69),a=n?n.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(r,n){return r===n||r!=r&&n!=n}},function(e,t,r){e.exports=r(33)},function(e,t,r){var n=r(34),i=function(o,a){return new n.Converter(o,a)};i.csv=i,i.Converter=n.Converter,e.exports=i},function(e,t,r){(function(n){var i=this&&this.__extends||function(){var b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,x){_.__proto__=x}||function(_,x){for(var w in x)x.hasOwnProperty(w)&&(_[w]=x[w])};return function(_,x){function w(){this.constructor=_}b(_,x),_.prototype=x===null?Object.create(x):(w.prototype=x.prototype,new w)}}(),o=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(36),s=r(50),c=r(51),u=o(r(15)),h=r(52),p=r(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(x),O.runtime=c.initParseRuntime(O),O.result=new p.Result(O),O.processor=new h.ProcessorLocal(O),O.once("error",function(P){n(function(){O.result.processError(P),O.emit("done",P)})}),O.once("done",function(){O.processor.destroy()}),O}return i(_,b),_.prototype.preRawData=function(x){return this.runtime.preRawDataHook=x,this},_.prototype.preFileLine=function(x){return this.runtime.preFileLineHook=x,this},_.prototype.subscribe=function(x,w,O){return this.parseRuntime.subscribe={onNext:x,onError:w,onCompleted:O},this},_.prototype.fromFile=function(x,w){var O=this,P=r(!function(){var C=new Error("Cannot find module 'fs'");throw C.code="MODULE_NOT_FOUND",C}());return P.exists(x,function(C){C?P.createReadStream(x,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},_.prototype.fromStream=function(x){return x.pipe(this),this},_.prototype.fromString=function(x){x.toString();var w=new a.Readable,O=0;return w._read=function(P){if(O>=x.length)this.push(null);else{var C=x.substr(O,P);this.push(C),O+=P}},this.fromStream(w)},_.prototype.then=function(x,w){var O=this;return new u.default(function(P,C){O.parseRuntime.then={onfulfilled:function(T){P(x?x(T):T)},onrejected:function(T){w?P(w(T)):C(T)}}})},Object.defineProperty(_.prototype,"parseParam",{get:function(){return this.params},enumerable:!0,configurable:!0}),Object.defineProperty(_.prototype,"parseRuntime",{get:function(){return this.runtime},enumerable:!0,configurable:!0}),_.prototype._transform=function(x,w,O){var P=this;this.processor.process(x).then(function(C){if(C.length>0)return P.runtime.started=!0,P.result.processResult(C)}).then(function(){P.emit("drained"),O()},function(C){P.runtime.hasError=!0,P.runtime.error=C,P.emit("error",C),O()})},_.prototype._flush=function(x){var w=this;this.processor.flush().then(function(O){if(O.length>0)return w.result.processResult(O)}).then(function(){w.processEnd(x)},function(O){w.emit("error",O),x()})},_.prototype.processEnd=function(x){this.result.endProcess(),this.emit("done"),x()},Object.defineProperty(_.prototype,"parsedLineNumber",{get:function(){return this.runtime.parsedLineNumber},enumerable:!0,configurable:!0}),_}(a.Transform);t.Converter=v}).call(this,r(11).setImmediate)},function(e,t,r){(function(n,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(x){i.nextTick(function(){_(x)})}:function(){if(o.postMessage&&!o.importScripts){var x=!0,w=o.onmessage;return o.onmessage=function(){x=!1},o.postMessage("","*"),o.onmessage=w,x}}()?function(){var x="setImmediate$"+Math.random()+"$",w=function(O){O.source===o&&typeof O.data=="string"&&O.data.indexOf(x)===0&&_(+O.data.slice(x.length))};o.addEventListener?o.addEventListener("message",w,!1):o.attachEvent("onmessage",w),s=function(O){o.postMessage(x+O,"*")}}():o.MessageChannel?function(){var x=new MessageChannel;x.port1.onmessage=function(w){_(w.data)},s=function(w){x.port2.postMessage(w)}}():p&&"onreadystatechange"in p.createElement("script")?function(){var x=p.documentElement;s=function(w){var O=p.createElement("script");O.onreadystatechange=function(){_(w),O.onreadystatechange=null,x.removeChild(O),O=null},x.appendChild(O)}}():s=function(x){setTimeout(_,0,x)},v.setImmediate=function(x){typeof x!="function"&&(x=new Function(""+x));for(var w=new Array(arguments.length-1),O=0;O<w.length;O++)w[O]=arguments[O+1];var P={callback:x,args:w};return u[c]=P,s(c),c++},v.clearImmediate=b}function b(x){delete u[x]}function _(x){if(h)setTimeout(_,0,x);else{var w=u[x];if(w){h=!0;try{(function(O){var P=O.callback,C=O.args;switch(C.length){case 0:P();break;case 1:P(C[0]);break;case 2:P(C[0],C[1]);break;case 3:P(C[0],C[1],C[2]);break;default:P.apply(a,C)}})(w)}finally{b(x),h=!1}}}}})(typeof self>"u"?n===void 0?this:n:self)}).call(this,r(0),r(4))},function(e,t,r){e.exports=i;var n=r(12).EventEmitter;function i(){n.call(this)}r(2)(i,n),i.Readable=r(13),i.Writable=r(46),i.Duplex=r(47),i.Transform=r(48),i.PassThrough=r(49),i.Stream=i,i.prototype.pipe=function(o,a){var s=this;function c(x){o.writable&&o.write(x)===!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(x){if(_(),n.listenerCount(this,"error")===0)throw x}function _(){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",_),s.removeListener("close",_),o.removeListener("close",_)}return s.on("error",b),o.on("error",b),s.on("end",_),s.on("close",_),o.on("close",_),o.emit("pipe",s),o}},function(e,t){var r={}.toString;e.exports=Array.isArray||function(n){return r.call(n)=="[object Array]"}},function(e,t,r){t.byteLength=function(v){var b=u(v),_=b[0],x=b[1];return 3*(_+x)/4-x},t.toByteArray=function(v){for(var b,_=u(v),x=_[0],w=_[1],O=new o(3*(x+w)/4-w),P=0,C=w>0?x-4:x,T=0;T<C;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,_=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 x===1?(b=v[_-1],w.push(n[b>>2]+n[b<<4&63]+"==")):x===2&&(b=(v[_-2]<<8)+v[_-1],w.push(n[b>>10]+n[b>>4&63]+n[b<<2&63]+"=")),w.join("")};for(var n=[],i=[],o=typeof Uint8Array<"u"?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=a.length;s<c;++s)n[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 _=v.indexOf("=");return _===-1&&(_=b),[_,_===b?0:4-_%4]}function h(v){return n[v>>18&63]+n[v>>12&63]+n[v>>6&63]+n[63&v]}function p(v,b,_){for(var x,w=[],O=b;O<_;O+=3)x=(v[O]<<16&16711680)+(v[O+1]<<8&65280)+(255&v[O+2]),w.push(h(x));return w.join("")}i[45]=62,i[95]=63},function(e,t){t.read=function(r,n,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,_=i?-1:1,x=r[n+b];for(b+=_,s=x&(1<<-v)-1,x>>=-v,v+=u;v>0;s=256*s+r[n+b],b+=_,v-=8);for(c=s&(1<<-v)-1,s>>=-v,v+=o;v>0;c=256*c+r[n+b],b+=_,v-=8);if(s===0)s=1-p;else{if(s===h)return c?NaN:1/0*(x?-1:1);c+=Math.pow(2,o),s-=p}return(x?-1:1)*c*Math.pow(2,s-o)},t.write=function(r,n,i,o,a,s){var c,u,h,p=8*s-a-1,v=(1<<p)-1,b=v>>1,_=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=o?0:s-1,w=o?1:-1,O=n<0||n===0&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(u=isNaN(n)?1:0,c=v):(c=Math.floor(Math.log(n)/Math.LN2),n*(h=Math.pow(2,-c))<1&&(c--,h*=2),(n+=c+b>=1?_/h:_*Math.pow(2,1-b))*h>=2&&(c++,h/=2),c+b>=v?(u=0,c=v):c+b>=1?(u=(n*h-1)*Math.pow(2,a),c+=b):(u=n*Math.pow(2,b-1)*Math.pow(2,a),c=0));a>=8;r[i+x]=255&u,x+=w,u/=256,a-=8);for(c=c<<a|u,p+=a;p>0;r[i+x]=255&c,x+=w,c/=256,p-=8);r[i+x-w]|=128*O}},function(e,t){var r={}.toString;e.exports=Array.isArray||function(n){return r.call(n)=="[object Array]"}},function(e,t){},function(e,t,r){var n=r(7).Buffer,i=r(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 n.alloc(0);if(this.length===1)return this.head.data;for(var c=n.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,r){(function(n){function i(o){try{if(!n.localStorage)return!1}catch{return!1}var a=n.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,r(0))},function(e,t,r){e.exports=o;var n=r(27),i=r(5);function o(a){if(!(this instanceof o))return new o(a);n.call(this,a)}i.inherits=r(2),i.inherits(o,n),o.prototype._transform=function(a,s,c){c(null,a)}},function(e,t,r){e.exports=r(14)},function(e,t,r){e.exports=r(1)},function(e,t,r){e.exports=r(13).Transform},function(e,t,r){e.exports=r(13).PassThrough},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.mergeParams=function(n){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 n||(n={}),n)n.hasOwnProperty(o)&&(Array.isArray(n[o])?i[o]=[].concat(n[o]):i[o]=n[o]);return i}},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.initParseRuntime=function(n){var i=n.parseParam,o={needProcessIgnoreColumn:!1,needProcessIncludeColumn:!1,selectedColumns:void 0,ended:!1,hasError:!1,error:void 0,delimiter:n.parseParam.delimiter,eol:n.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,r){(function(n){var i=this&&this.__extends||function(){var w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,P){O.__proto__=P}||function(O,P){for(var C in P)P.hasOwnProperty(C)&&(O[C]=P[C])};return function(O,P){function C(){this.constructor=O}w(O,P),O.prototype=P===null?Object.create(P):(C.prototype=P.prototype,new C)}}(),o=this&&this.__importDefault||function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(53),s=o(r(15)),c=r(54),u=o(r(16)),h=r(57),p=r(28),v=r(58),b=o(r(59)),_=o(r(29)),x=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 C=this.runtime.csvLineBuffer;return this.runtime.csvLineBuffer=void 0,this.process(C,!0).then(function(T){return P.runtime.csvLineBuffer&&P.runtime.csvLineBuffer.length>0?s.default.reject(_.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,C){var T,A=this;return C===void 0&&(C=!1),T=C?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,C):s.default.resolve([])})},O.prototype.processCSV=function(P,C){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 C?(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(F){return j.started||T.runtime.headers?T.processCSVBody(F):T.processDataWithHead(F)}):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 C="",T=[];P.length;){var A=C+P.shift(),j=this.rowSplit.parse(A);if(j.closed){T=j.cells,C="";break}C=A+u.default(A,this.runtime)}if(this.prependLeftBuf(p.bufFromString(C)),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,C=0;C<P.length;C++)if(this.params.ignoreColumns)if(this.params.ignoreColumns.test(P[C])){if(!this.params.includeColumns||!this.params.includeColumns.test(P[C]))continue;this.runtime.selectedColumns.push(C)}else this.runtime.selectedColumns.push(C);else this.params.includeColumns?this.params.includeColumns.test(P[C])&&this.runtime.selectedColumns.push(C):this.runtime.selectedColumns.push(C);this.runtime.headers=p.filterArray(this.runtime.headers,this.runtime.selectedColumns)}},O.prototype.processCSVBody=function(P){if(this.params.output==="line")return P;var C=this.rowSplit.parseMultiLines(P);return this.prependLeftBuf(p.bufFromString(C.partial)),this.params.output==="csv"?C.rowsCells:b.default(C.rowsCells,this.converter)},O.prototype.prependLeftBuf=function(P){P&&(this.runtime.csvLineBuffer?this.runtime.csvLineBuffer=n.concat([P,this.runtime.csvLineBuffer]):this.runtime.csvLineBuffer=P)},O.prototype.runPreLineHook=function(P){var C=this;return new s.default(function(T,A){(function j(N,F,V,B){if(V>=N.length)B();else if(F.preFileLineHook){var W=N[V],q=F.preFileLineHook(W,F.parsedLineNumber+V);if(V++,q&&q.then)q.then(function(J){N[V-1]=J,j(N,F,V,B)});else{for(N[V-1]=q;V<N.length;)N[V]=F.preFileLineHook(N[V],F.parsedLineNumber+V),V++;B()}}else B()})(P,C.runtime,0,function(j){j?A(j):T(P)})})},O}(a.Processor);t.ProcessorLocal=x}).call(this,r(3).Buffer)},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=function(i){this.converter=i,this.params=i.parseParam,this.runtime=i.parseRuntime};t.Processor=n},function(e,t,r){(function(n){var i=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0});var o=i(r(55));t.prepareData=function(a,s){var c=function(h,p){return p.csvLineBuffer&&p.csvLineBuffer.length>0?n.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,r(3).Buffer)},function(e,t,r){(function(n){var i=r(56);e.exports=function(o){return typeof o=="string"&&o.charCodeAt(0)===65279?o.slice(1):n.isBuffer(o)&&i(o)&&o[0]===239&&o[1]===187&&o[2]===191?o.slice(3):o}}).call(this,r(3).Buffer)},function(e,t){e.exports=function(r){for(var n=0;n<r.length;)if(r[n]==9||r[n]==10||r[n]==13||32<=r[n]&&r[n]<=126)n+=1;else if(194<=r[n]&&r[n]<=223&&128<=r[n+1]&&r[n+1]<=191)n+=2;else if(r[n]==224&&160<=r[n+1]&&r[n+1]<=191&&128<=r[n+2]&&r[n+2]<=191||(225<=r[n]&&r[n]<=236||r[n]==238||r[n]==239)&&128<=r[n+1]&&r[n+1]<=191&&128<=r[n+2]&&r[n+2]<=191||r[n]==237&&128<=r[n+1]&&r[n+1]<=159&&128<=r[n+2]&&r[n+2]<=191)n+=3;else{if(!(r[n]==240&&144<=r[n+1]&&r[n+1]<=191&&128<=r[n+2]&&r[n+2]<=191&&128<=r[n+3]&&r[n+3]<=191||241<=r[n]&&r[n]<=243&&128<=r[n+1]&&r[n+1]<=191&&128<=r[n+2]&&r[n+2]<=191&&128<=r[n+3]&&r[n+3]<=191||r[n]==244&&128<=r[n+1]&&r[n+1]<=143&&128<=r[n+2]&&r[n+2]<=191&&128<=r[n+3]&&r[n+3]<=191))return!1;n+=4}return!0}},function(e,t,r){var n=this&&this.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(r(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,r){var n=this&&this.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(r(16)),o=r(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 _=0;_<b.length;_++)b[_]=b[_].trim();return{cells:b,closed:!0}}return this.toCSVRow(b,p,h,v)},c.prototype.toCSVRow=function(u,h,p,v){for(var b=[],_=!1,x="",w=0,O=u.length;w<O;w++){var P=u[w];!_&&h&&(P=o.trimLeft(P));var C=P.length;if(_)this.isQuoteClose(P)?(_=!1,x+=v+(P=P.substr(0,C-1)),x=this.escapeQuote(x),h&&(x=o.trimRight(x)),b.push(x),x=""):x+=v+P;else{if(C===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 F=N[j];F===p&&A!==this.escape?(T++,A=""):A=F}if(T%2==1){h&&(P=o.trimRight(P)),b.push(p+P);continue}_=!0,x+=P;continue}_=!0,x+=P;continue}h&&(P=o.trimRight(P)),b.push(P)}}return{cells:b,closed:!_}},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 _=u.split(b).length;_>p&&(v=b,p=_)}),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,r){var n=this&&this.__importDefault||function(O){return O&&O.__esModule?O:{default:O}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(r(29)),o=n(r(60)),a=/^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/;function s(O,P,C){if(P.parseParam.checkColumn&&P.parseRuntime.headers&&O.length!==P.parseRuntime.headers.length)throw i.default.column_mismatched(P.parseRuntime.parsedLineNumber+C);return function(T,A,j){for(var N=!1,F={},V=0,B=T.length;V<B;V++){var W=T[V];if(!j.parseParam.ignoreEmpty||W!==""){N=!0;var q=A[V];q&&q!==""||(q=A[V]="field"+(V+1));var J=u(q,V,j);if(J){var Q=J(W,q,F,T,V);Q!==void 0&&h(F,q,Q,j,V)}else j.parseParam.checkType&&(W=b(W,q,V,j)(W)),W!==void 0&&h(F,q,W,j,V)}}return N?F:null}(O,P.parseRuntime.headers||[],P)||null}t.default=function(O,P){for(var C=[],T=0,A=O.length;T<A;T++){var j=s(O[T],P,T);j&&C.push(j)}return C};var c={string:x,number:_,omit:function(){}};function u(O,P,C){if(C.parseRuntime.columnConv[P]!==void 0)return C.parseRuntime.columnConv[P];var T=C.parseParam.colParser[O];if(T===void 0)return C.parseRuntime.columnConv[P]=null;if(typeof T=="object"&&(T=T.cellParser||"string"),typeof T=="string"){T=T.trim().toLowerCase();var A=c[T];return C.parseRuntime.columnConv[P]=A||null}return C.parseRuntime.columnConv[P]=typeof T=="function"?T:null}function h(O,P,C,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&&C==="null"&&(C=null),T.parseRuntime.columnValueSetter[A](O,P,C)}function p(O,P,C){O[P]=C}function v(O,P,C){o.default(O,P,C)}function b(O,P,C,T){return T.parseRuntime.headerType[C]?T.parseRuntime.headerType[C]:P.indexOf("number#!")>-1?T.parseRuntime.headerType[C]=_:P.indexOf("string#!")>-1?T.parseRuntime.headerType[C]=x:T.parseParam.checkType?T.parseRuntime.headerType[C]=w:T.parseRuntime.headerType[C]=x}function _(O){var P=parseFloat(O);return isNaN(P)?O:P}function x(O){return O.toString()}function w(O){var P=O.trim();return P===""?x(O):a.test(P)?_(O):P.length===5&&P.toLowerCase()==="false"||P.length===4&&P.toLowerCase()==="true"?function(C){var T=C.trim();return T.length!==5||T.toLowerCase()!=="false"}(O):P[0]==="{"&&P[P.length-1]==="}"||P[0]==="["&&P[P.length-1]==="]"?function(C){try{return JSON.parse(C)}catch{return C}}(O):x(O)}},function(e,t,r){var n=r(61);e.exports=function(i,o,a){return i==null?i:n(i,o,a)}},function(e,t,r){var n=r(62),i=r(74),o=r(103),a=r(20),s=r(104);e.exports=function(c,u,h,p){if(!a(c))return c;for(var v=-1,b=(u=i(u,c)).length,_=b-1,x=c;x!=null&&++v<b;){var w=s(u[v]),O=h;if(v!=_){var P=x[w];(O=p?p(P,w,x):void 0)===void 0&&(O=a(P)?P:o(u[v+1])?[]:{})}n(x,w,O),x=x[w]}return c}},function(e,t,r){var n=r(63),i=r(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)||n(a,s,c)}},function(e,t,r){var n=r(64);e.exports=function(i,o,a){o=="__proto__"&&n?n(i,o,{configurable:!0,enumerable:!0,value:a,writable:!0}):i[o]=a}},function(e,t,r){var n=r(17),i=function(){try{var o=n(Object,"defineProperty");return o({},"",{}),o}catch{}}();e.exports=i},function(e,t,r){var n=r(66),i=r(70),o=r(20),a=r(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))&&(n(b)?v:s).test(a(b))}},function(e,t,r){var n=r(30),i=r(20);e.exports=function(o){if(!i(o))return!1;var a=n(o);return a=="[object Function]"||a=="[object GeneratorFunction]"||a=="[object AsyncFunction]"||a=="[object Proxy]"}},function(e,t,r){(function(n){var i=typeof n=="object"&&n&&n.Object===Object&&n;e.exports=i}).call(this,r(0))},function(e,t,r){var n=r(18),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=n?n.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 r=Object.prototype.toString;e.exports=function(n){return r.call(n)}},function(e,t,r){var n=r(71),i=function(){var o=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}();e.exports=function(o){return!!i&&i in o}},function(e,t,r){var n=r(19)["__core-js_shared__"];e.exports=n},function(e,t){var r=Function.prototype.toString;e.exports=function(n){if(n!=null){try{return r.call(n)}catch{}try{return n+""}catch{}}return""}},function(e,t){e.exports=function(r,n){return r==null?void 0:r[n]}},function(e,t,r){var n=r(21),i=r(75),o=r(77),a=r(100);e.exports=function(s,c){return n(s)?s:i(s,c)?[s]:o(a(s))}},function(e,t,r){var n=r(21),i=r(22),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(s,c){if(n(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(r){return r!=null&&typeof r=="object"}},function(e,t,r){var n=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,o=r(78)(function(a){var s=[];return a.charCodeAt(0)===46&&s.push(""),a.replace(n,function(c,u,h,p){s.push(h?p.replace(i,"$1"):u||c)}),s});e.exports=o},function(e,t,r){var n=r(79);e.exports=function(i){var o=n(i,function(s){return a.size===500&&a.clear(),s}),a=o.cache;return o}},function(e,t,r){var n=r(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||n),c}o.Cache=n,e.exports=o},function(e,t,r){var n=r(81),i=r(95),o=r(97),a=r(98),s=r(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=n,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,e.exports=c},function(e,t,r){var n=r(82),i=r(88),o=r(94);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(o||i),string:new n}}},function(e,t,r){var n=r(83),i=r(84),o=r(85),a=r(86),s=r(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=n,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=s,e.exports=c},function(e,t,r){var n=r(8);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},function(e,t){e.exports=function(r){var n=this.has(r)&&delete this.__data__[r];return this.size-=n?1:0,n}},function(e,t,r){var n=r(8),i=Object.prototype.hasOwnProperty;e.exports=function(o){var a=this.__data__;if(n){var s=a[o];return s==="__lodash_hash_undefined__"?void 0:s}return i.call(a,o)?a[o]:void 0}},function(e,t,r){var n=r(8),i=Object.prototype.hasOwnProperty;e.exports=function(o){var a=this.__data__;return n?a[o]!==void 0:i.call(a,o)}},function(e,t,r){var n=r(8);e.exports=function(i,o){var a=this.__data__;return this.size+=this.has(i)?0:1,a[i]=n&&o===void 0?"__lodash_hash_undefined__":o,this}},function(e,t,r){var n=r(89),i=r(90),o=r(91),a=r(92),s=r(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=n,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,r){var n=r(9),i=Array.prototype.splice;e.exports=function(o){var a=this.__data__,s=n(a,o);return!(s<0||(s==a.length-1?a.pop():i.call(a,s,1),--this.size,0))}},function(e,t,r){var n=r(9);e.exports=function(i){var o=this.__data__,a=n(o,i);return a<0?void 0:o[a][1]}},function(e,t,r){var n=r(9);e.exports=function(i){return n(this.__data__,i)>-1}},function(e,t,r){var n=r(9);e.exports=function(i,o){var a=this.__data__,s=n(a,i);return s<0?(++this.size,a.push([i,o])):a[s][1]=o,this}},function(e,t,r){var n=r(17)(r(19),"Map");e.exports=n},function(e,t,r){var n=r(10);e.exports=function(i){var o=n(this,i).delete(i);return this.size-=o?1:0,o}},function(e,t){e.exports=function(r){var n=typeof r;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?r!=="__proto__":r===null}},function(e,t,r){var n=r(10);e.exports=function(i){return n(this,i).get(i)}},function(e,t,r){var n=r(10);e.exports=function(i){return n(this,i).has(i)}},function(e,t,r){var n=r(10);e.exports=function(i,o){var a=n(this,i),s=a.size;return a.set(i,o),this.size+=a.size==s?0:1,this}},function(e,t,r){var n=r(101);e.exports=function(i){return i==null?"":n(i)}},function(e,t,r){var n=r(18),i=r(102),o=r(21),a=r(22),s=n?n.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(r,n){for(var i=-1,o=r==null?0:r.length,a=Array(o);++i<o;)a[i]=n(r[i],i,r);return a}},function(e,t){var r=/^(?:0|[1-9]\d*)$/;e.exports=function(n,i){var o=typeof n;return!!(i=i??9007199254740991)&&(o=="number"||o!="symbol"&&r.test(n))&&n>-1&&n%1==0&&n<i}},function(e,t,r){var n=r(22);e.exports=function(i){if(typeof i=="string"||n(i))return i;var o=i+"";return o=="0"&&1/i==-1/0?"-0":o}},function(e,t,r){var n=this&&this.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(r(15)),o=r(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,C){if(O>=x.length)C();else if(w.parseRuntime.subscribe&&w.parseRuntime.subscribe.onNext){var T=w.parseRuntime.subscribe.onNext,A=x[O],j=T(A,w.parseRuntime.parsedLineNumber+O);if(O++,j&&j.then)j.then(function(){(function(F,V,B,W,q,J,Q){q&&s(B,Q),_(F,B,W,q,J)})(x,0,w,O,P,C,A)},C);else{for(P&&s(w,A);O<x.length;){var N=x[O];T(N,w.parseRuntime.parsedLineNumber+O),O++,P&&s(w,N)}C()}}else{if(P)for(;O<x.length;)N=x[O++],s(w,N);C()}}(u,h.converter,0,h.needPushDownstream,function(_){_?b(_):(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"/"}}])),ZO}var mke=pke();const vke=Nt(mke),gke=e=>new Promise(t=>{vke().fromString(e).then(t)}),yke=new O7,bke=e=>yke.parse(e),_ke="shlink",b8=e=>`${_ke}.${e}`;class xke{constructor(t){Tc(this,"get",t=>{const r=this.localStorage.getItem(b8(t));return r?JSON.parse(r):void 0});Tc(this,"set",(t,r)=>this.localStorage.setItem(b8(t),JSON.stringify(r)));this.localStorage=t}}class wke{constructor(t){this.storage=t}getTagColors(){return this.storage.get("colors")??{}}storeTagColors(t){this.storage.set("colors",t)}}const Oke=e=>{e.constant("localStorage",window.localStorage),e.service("Storage",xke,"localStorage"),e.service("TagColorsStorage",wke,"Storage"),e.constant("csvToJson",gke),e.constant("jsonToCsv",bke),e.serviceFactory("useTimeoutToggle",()=>LF)},Uu=new e$,{container:xA}=Uu,Ske=(e,t)=>(...r)=>e[t](...r),Pke=(e,t)=>({...e,[t]:Ske(xA,t)}),Eke=e=>t=>Object.fromEntries(e.map(r=>[r,t[r]])),Db=(e,t=[])=>T8(e?Eke(e):null,t.reduce(Pke,{}));Foe(Uu,Db);bAe(Uu,Db);EK(Uu);ake(Uu,Db);Oke(Uu);hke(Uu,Db);var XO={},mg={exports:{}},_8;function Cke(){return _8||(_8=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=r,t.default=r;function r(){for(var u=[],h=0;h<arguments.length;h++)u[h]=arguments[h];return n.apply(void 0,u)}t.main=r,r.clone=o,r.isPlainObject=a,r.recursive=i;function n(){for(var u=[],h=0;h<arguments.length;h++)u[h]=arguments[h];return c(u[0]===!0,!1,u)}t.merge=n;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 _=p[b];if(a(_)){for(var x in _)if(!(x==="__proto__"||x==="constructor"||x==="prototype")){var w=u?o(_[x]):_[x];v[x]=h?s(v[x],w):w}}}return v}}(mg,mg.exports)),mg.exports}var x8;function Tke(){return x8||(x8=1,function(e){var t=r(Cke());Object.defineProperty(e,"__esModule",{value:!0}),e.clear=J,e.combineLoads=q,e.load=W,e.save=B;function r(K){return K&&K.__esModule?K:{default:K}}function n(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,re=Array(G);z<G;z++)re[z]=K[z];return re}function s(K,G){var z=K==null?null:typeof Symbol<"u"&&K[Symbol.iterator]||K["@@iterator"];if(z!=null){var re,X,le=[],ce=!0,de=!1;try{for(z=z.call(K);!(ce=(re=z.next()).done)&&(le.push(re.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,C=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 F(K){function G(re,X){return re.length===0?X:G(re.slice(1),h({},re[0],X))}var z=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{};return G(K.split(".").reverse(),z)}function V(K){this.warnFn=K||T}Object.defineProperty(V.prototype,"length",{get:function(){try{return localStorage.length}catch(K){this.warnFn(K)}return 0},configurable:!0,enumerable:!0}),V.prototype.key=function(K){try{return localStorage.key(K)}catch(G){this.warnFn(G)}return null},V.prototype.setItem=function(K,G){try{localStorage.setItem(K,JSON.stringify(G))}catch(z){this.warnFn(z)}},V.prototype.getItem=function(K){try{return JSON.parse(localStorage.getItem(K))}catch(G){this.warnFn(G)}return null},V.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?_:G,re=K.ignoreStates,X=re===void 0?x:re,le=K.namespace,ce=le===void 0?v:le,de=K.namespaceSeparator,be=de===void 0?b:de,M=K.debounce,$=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(Be,qe){return 1<Be.split(".").length?N(Be.split("."),qe):N([Be],qe)}function ge(){z.length===0?He.setItem(ce,Ce):z.forEach(function(Be){var qe=ce+be+Be,ye=Fe(Be,Ce);ye?He.setItem(qe,ye):He.removeItem(qe)})}var Ce,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=_),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=x),0<X.length&&(X=X.filter(function(Be){return ne(Be)?Be:void console.error(p,"'ignoreStates' array contains a non-string value. Ignoring this value. Check your 'ignoreStates' array.")})),ne(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),ne(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($)||(console.error(p,"'debounce' parameter in 'save()' method was passed a non-integer value. Setting default value instead. Check your 'save()' method."),$=w),Ce=0<X.length?oe(X,ie.getState()):ie.getState();var He=new V(je);return $?(C.get(z+ce)&&clearTimeout(C.get(z+ce)),C.set(z+ce,setTimeout(function(){ge()},$))):ge(),Me}}}}function W(){var K=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},G=K.states,z=G===void 0?_:G,re=K.immutablejs,X=re===void 0?O:re,le=K.namespace,ce=le===void 0?v:le,de=K.namespaceSeparator,be=de===void 0?b:de,M=K.preloadedState,$=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=_),ne(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),ne(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 V(ie),Se=$;if(z.length===0){var Fe=he.getItem(ce);Fe&&(Se=Fe)}else z.forEach(function(ge){var Ce=ce+be+ge,je=he.getItem(Ce);je?Se=t.default.recursive(Se,F(ge,je)):ie("Invalid load '"+Ce+"' 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 q(){for(var K={},G=arguments.length,z=Array(G),re=0;re<G;re++)z[re]=arguments[re];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,re=K.disableWarnings,X=re===void 0?P:re,le=j(X);ne(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 V(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 ne(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(re,X){var le=n(X,2),ce=le[0];return le[1],K.indexOf(ce)===-1&&(re[ce]=G[ce]),re},{});return z}}(XO)),XO}var CW=Tke();const jke=e=>kT({appUpdated:$oe,servers:zAe,selectedServer:e.selectedServerReducer,settings:fke}),Ake=e=>(e.settings&&e.settings.visits&&e.settings.visits.defaultInterval==="last180days"&&(e.settings.visits.defaultInterval="last180Days"),e),kke=!0,TW={states:["settings","servers"],namespace:"shlink",namespaceSeparator:".",debounce:300},Rke=Ake(CW.load(TW)),Nke=e=>ZF({devTools:!kke,reducer:jke(e),preloadedState:Rke,middleware:t=>t({immutableCheck:!1,serializableCheck:!1}).concat(CW.save(TW))}),Mke=!!(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 Lke(e){if("serviceWorker"in navigator){if(new URL(Ag.homepage,window.location.href).origin!==window.location.origin)return;window.addEventListener("load",()=>{const r=`${Ag.homepage}/service-worker.js`;Mke?(Ike(r,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")})):jW(r,e)})}}function jW(e,t){navigator.serviceWorker.register(e).then(r=>{r.onupdatefound=()=>{const n=r.installing;n!=null&&(n.onstatechange=()=>{n.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(r)):(console.log("Content is cached for offline use."),t&&t.onSuccess&&t.onSuccess(r)))})}}).catch(r=>{console.error("Error during service worker registration:",r)})}function Ike(e,t){fetch(e,{headers:{"Service-Worker":"script"}}).then(r=>{const n=r.headers.get("content-type");r.status===404||n!=null&&n.indexOf("javascript")===-1?navigator.serviceWorker.ready.then(i=>{i.unregister().then(()=>{window.location.reload()})}):jW(e,t)}).catch(()=>{console.log("No internet connection found. App is running in offline mode.")})}const AW=Nke(xA),{App:Dke,ScrollToTop:$ke,ErrorHandler:Fke,appUpdateAvailable:Bke}=xA;xq.createRoot(document.getElementById("root")).render(g.jsx(j8,{store:AW,children:g.jsx(U8,{basename:Ag.homepage,children:g.jsx(Fke,{children:g.jsx($ke,{children:g.jsx(Dke,{})})})})}));Lke({onUpdate(){AW.dispatch(Bke())}});
|