shlink-web-client/dependabot/npm_and_yarn/sass-1.83.0/assets/index-DDX93MfF.js

824 lines
1.5 MiB
Raw Blame History

This file contains invisible Unicode characters

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

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

var vq=Object.defineProperty;var gq=(e,t,r)=>t in e?vq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Tc=(e,t,r)=>gq(e,typeof t!="symbol"?t+"":t,r);function yq(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(n,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))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 Fv=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 s1={exports:{}},nh={},l1={exports:{}},Et={};/**
* @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 Jk;function bq(){if(Jk)return Et;Jk=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(){}},x=Object.assign,_={};function w(z,re,X){this.props=z,this.context=re,this.refs=_,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 S(z,re,X){this.props=z,this.context=re,this.refs=_,this.updater=X||b}var E=S.prototype=new O;E.constructor=S,x(E,w.prototype),E.isPureReactComponent=!0;var T=Array.isArray,A=Object.prototype.hasOwnProperty,j={current:null},N={key:!0,ref:!0,__self:!0,__source:!0};function 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 D=Array(M),Y=0;Y<M;Y++)D[Y]=arguments[Y+2];ce.children=D}if(z&&z.defaultProps)for(le in M=z.defaultProps,M)ce[le]===void 0&&(ce[le]=M[le]);return{$$typeof:e,type:z,key:de,ref:be,props:ce,_owner:j.current}}function 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 D=le+J(de,M);be+=Q(de,re,X,D,ce)}else if(D=v(z),typeof D=="function")for(z=D.call(z),M=0;!(de=z.next()).done;)de=de.value,D=le+J(de,M++),be+=Q(de,re,X,D,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 Et.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}},Et.Component=w,Et.Fragment=r,Et.Profiler=i,Et.PureComponent=S,Et.StrictMode=n,Et.Suspense=c,Et.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=K,Et.act=G,Et.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=x({},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(D in re)A.call(re,D)&&!N.hasOwnProperty(D)&&(le[D]=re[D]===void 0&&M!==void 0?M[D]:re[D])}var D=arguments.length-2;if(D===1)le.children=X;else if(1<D){M=Array(D);for(var Y=0;Y<D;Y++)M[Y]=arguments[Y+2];le.children=M}return{$$typeof:e,type:z.type,key:ce,ref:de,props:le,_owner:be}},Et.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},Et.createElement=F,Et.createFactory=function(z){var re=F.bind(null,z);return re.type=z,re},Et.createRef=function(){return{current:null}},Et.forwardRef=function(z){return{$$typeof:s,render:z}},Et.isValidElement=B,Et.lazy=function(z){return{$$typeof:h,_payload:{_status:-1,_result:z},_init:ae}},Et.memo=function(z,re){return{$$typeof:u,type:z,compare:re===void 0?null:re}},Et.startTransition=function(z){var re=oe.transition;oe.transition={};try{z()}finally{oe.transition=re}},Et.unstable_act=G,Et.useCallback=function(z,re){return se.current.useCallback(z,re)},Et.useContext=function(z){return se.current.useContext(z)},Et.useDebugValue=function(){},Et.useDeferredValue=function(z){return se.current.useDeferredValue(z)},Et.useEffect=function(z,re){return se.current.useEffect(z,re)},Et.useId=function(){return se.current.useId()},Et.useImperativeHandle=function(z,re,X){return se.current.useImperativeHandle(z,re,X)},Et.useInsertionEffect=function(z,re){return se.current.useInsertionEffect(z,re)},Et.useLayoutEffect=function(z,re){return se.current.useLayoutEffect(z,re)},Et.useMemo=function(z,re){return se.current.useMemo(z,re)},Et.useReducer=function(z,re,X){return se.current.useReducer(z,re,X)},Et.useRef=function(z){return se.current.useRef(z)},Et.useState=function(z){return se.current.useState(z)},Et.useSyncExternalStore=function(z,re,X){return se.current.useSyncExternalStore(z,re,X)},Et.useTransition=function(){return se.current.useTransition()},Et.version="18.3.1",Et}var e3;function P0(){return e3||(e3=1,l1.exports=bq()),l1.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 t3;function _q(){if(t3)return nh;t3=1;var e=P0(),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 nh.Fragment=r,nh.jsx=a,nh.jsxs=a,nh}var r3;function xq(){return r3||(r3=1,s1.exports=_q()),s1.exports}var g=xq(),Bv={},u1={exports:{}},Vn={},c1={exports:{}},f1={};/**
* @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 n3;function wq(){return n3||(n3=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,x=!1,_=!1,w=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,S=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function E(oe){for(var K=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(_=!1,E(oe),!x)if(r(c)!==null)x=!0,ae(A);else{var K=r(u);K!==null&&se(T,K.startTime-oe)}}function A(oe,K){x=!1,_&&(_=!1,O(F),F=-1),b=!0;var G=v;try{for(E(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),E(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 S=="function")J=function(){S(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(){x||b||(x=!0,ae(A))},e.unstable_forceFrameRate=function(oe){0>oe||125<oe?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):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)&&(_?(O(F),F=-1):_=!0,se(T,G-z))):(oe.sortIndex=re,t(c,oe),x||b||(x=!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}}}}(f1)),f1}var i3;function Oq(){return i3||(i3=1,c1.exports=wq()),c1.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 o3;function Sq(){if(o3)return Vn;o3=1;var e=P0(),t=Oq();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,C){if(y!==null&&y.type===0)return!1;switch(typeof d){case"function":case"symbol":return!0;case"boolean":return C?!1:y!==null?!y.acceptsBooleans:(l=l.toLowerCase().slice(0,5),l!=="data-"&&l!=="aria-");default:return!1}}function x(l,d,y,C){if(d===null||typeof d>"u"||b(l,d,y,C))return!0;if(C)return!1;if(y!==null)switch(y.type){case 3:return!d;case 4:return d===!1;case 5:return isNaN(d);case 6:return isNaN(d)||1>d}return!1}function _(l,d,y,C,R,I,ee){this.acceptsBooleans=d===2||d===3||d===4,this.attributeName=C,this.attributeNamespace=R,this.mustUseProperty=y,this.propertyName=l,this.type=d,this.sanitizeURL=I,this.removeEmptyString=ee}var w={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(l){w[l]=new _(l,0,!1,l,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(l){var d=l[0];w[d]=new _(d,1,!1,l[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(l){w[l]=new _(l,2,!1,l.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(l){w[l]=new _(l,2,!1,l,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(l){w[l]=new _(l,3,!1,l.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(l){w[l]=new _(l,3,!0,l,null,!1,!1)}),["capture","download"].forEach(function(l){w[l]=new _(l,4,!1,l,null,!1,!1)}),["cols","rows","size","span"].forEach(function(l){w[l]=new _(l,6,!1,l,null,!1,!1)}),["rowSpan","start"].forEach(function(l){w[l]=new _(l,5,!1,l.toLowerCase(),null,!1,!1)});var O=/[\-:]([a-z])/g;function S(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,S);w[d]=new _(d,1,!1,l,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(l){var d=l.replace(O,S);w[d]=new _(d,1,!1,l,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(l){var d=l.replace(O,S);w[d]=new _(d,1,!1,l,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(l){w[l]=new _(l,1,!1,l.toLowerCase(),null,!1,!1)}),w.xlinkHref=new _("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(l){w[l]=new _(l,1,!1,l.toLowerCase(),null,!0,!0)});function E(l,d,y,C){var R=w.hasOwnProperty(d)?w[d]:null;(R!==null?R.type!==0:C||!(2<d.length)||d[0]!=="o"&&d[0]!=="O"||d[1]!=="n"&&d[1]!=="N")&&(x(d,y,R,C)&&(y=null),C||R===null?v(d)&&(y===null?l.removeAttribute(d):l.setAttribute(d,""+y)):R.mustUseProperty?l[R.propertyName]=y===null?R.type===3?!1:"":y:(d=R.attributeName,C=R.attributeNamespace,y===null?l.removeAttribute(d):(R=R.type,y=R===3||R===4&&y===!0?"":""+y,C?l.setAttributeNS(C,d,y):l.setAttribute(d,y))))}var T=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,A=Symbol.for("react.element"),j=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),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(Ce){var C=Ce}Reflect.construct(l,[],d)}else{try{d.call()}catch(Ce){C=Ce}l.call(d.prototype)}else{try{throw Error()}catch(Ce){C=Ce}l()}}catch(Ce){if(Ce&&C&&typeof Ce.stack=="string"){for(var R=Ce.stack.split(`
`),I=C.stack.split(`
`),ee=R.length-1,fe=I.length-1;1<=ee&&0<=fe&&R[ee]!==I[fe];)fe--;for(;1<=ee&&0<=fe;ee--,fe--)if(R[ee]!==I[fe]){if(ee!==1||fe!==1)do if(ee--,fe--,0>fe||R[ee]!==I[fe]){var me=`
`+R[ee].replace(" at new "," at ");return l.displayName&&me.includes("<anonymous>")&&(me=me.replace("<anonymous>",l.displayName)),me}while(1<=ee&&0<=fe);break}}}finally{X=!1,Error.prepareStackTrace=y}return(l=l?l.displayName||l.name:"")?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 D(l){var d=l.type;return(l=l.nodeName)&&l.toLowerCase()==="input"&&(d==="checkbox"||d==="radio")}function Y(l){var d=D(l)?"checked":"value",y=Object.getOwnPropertyDescriptor(l.constructor.prototype,d),C=""+l[d];if(!l.hasOwnProperty(d)&&typeof y<"u"&&typeof y.get=="function"&&typeof y.set=="function"){var R=y.get,I=y.set;return Object.defineProperty(l,d,{configurable:!0,get:function(){return R.call(this)},set:function(ee){C=""+ee,I.call(this,ee)}}),Object.defineProperty(l,d,{enumerable:y.enumerable}),{getValue:function(){return C},setValue:function(ee){C=""+ee},stopTracking:function(){l._valueTracker=null,delete l[d]}}}}function ue(l){l._valueTracker||(l._valueTracker=Y(l))}function ie(l){if(!l)return!1;var d=l._valueTracker;if(!d)return!0;var y=d.getValue(),C="";return l&&(C=D(l)?l.checked?"true":"false":l.value),l=C,l!==y?(d.setValue(l),!0):!1}function he(l){if(l=l||(typeof document<"u"?document:void 0),typeof l>"u")return null;try{return l.activeElement||l.body}catch{return l.body}}function Se(l,d){var y=d.checked;return G({},d,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:y??l._wrapperState.initialChecked})}function Fe(l,d){var y=d.defaultValue==null?"":d.defaultValue,C=d.checked!=null?d.checked:d.defaultChecked;y=M(d.value!=null?d.value:y),l._wrapperState={initialChecked:C,initialValue:y,controlled:d.type==="checkbox"||d.type==="radio"?d.checked!=null:d.value!=null}}function ge(l,d){d=d.checked,d!=null&&E(l,"checked",d,!1)}function Ee(l,d){ge(l,d);var y=M(d.value),C=d.type;if(y!=null)C==="number"?(y===0&&l.value===""||l.value!=y)&&(l.value=""+y):l.value!==""+y&&(l.value=""+y);else if(C==="submit"||C==="reset"){l.removeAttribute("value");return}d.hasOwnProperty("value")?Me(l,d.type,y):d.hasOwnProperty("defaultValue")&&Me(l,d.type,M(d.defaultValue)),d.checked==null&&d.defaultChecked!=null&&(l.defaultChecked=!!d.defaultChecked)}function je(l,d,y){if(d.hasOwnProperty("value")||d.hasOwnProperty("defaultValue")){var C=d.type;if(!(C!=="submit"&&C!=="reset"||d.value!==void 0&&d.value!==null))return;d=""+l._wrapperState.initialValue,y||d===l.value||(l.value=d),l.defaultValue=d}y=l.name,y!==""&&(l.name=""),l.defaultChecked=!!l._wrapperState.initialChecked,y!==""&&(l.name=y)}function Me(l,d,y){(d!=="number"||he(l.ownerDocument)!==l)&&(y==null?l.defaultValue=""+l._wrapperState.initialValue:l.defaultValue!==""+y&&(l.defaultValue=""+y))}var He=Array.isArray;function Be(l,d,y,C){if(l=l.options,d){d={};for(var R=0;R<y.length;R++)d["$"+y[R]]=!0;for(y=0;y<l.length;y++)R=d.hasOwnProperty("$"+l[y].value),l[y].selected!==R&&(l[y].selected=R),R&&C&&(l[y].defaultSelected=!0)}else{for(y=""+M(y),d=null,R=0;R<l.length;R++){if(l[R].value===y){l[R].selected=!0,C&&(l[R].defaultSelected=!0);return}d!==null||l[R].disabled||(d=l[R])}d!==null&&(d.selected=!0)}}function qe(l,d){if(d.dangerouslySetInnerHTML!=null)throw Error(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),C=M(d.defaultValue);y!=null&&(y=""+y,y!==l.value&&(l.value=y),d.defaultValue==null&&l.defaultValue!==y&&(l.defaultValue=y)),C!=null&&(l.defaultValue=""+C)}function Ae(l){var d=l.textContent;d===l._wrapperState.initialValue&&d!==""&&d!==null&&(l.value=d)}function ke(l){switch(l){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function De(l,d){return l==null||l==="http://www.w3.org/1999/xhtml"?ke(d):l==="http://www.w3.org/2000/svg"&&d==="foreignObject"?"http://www.w3.org/1999/xhtml":l}var Ke,Xe=function(l){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(d,y,C,R){MSApp.execUnsafeLocalFunction(function(){return l(d,y,C,R)})}:l}(function(l,d){if(l.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in l)l.innerHTML=d;else{for(Ke=Ke||document.createElement("div"),Ke.innerHTML="<svg>"+d.valueOf().toString()+"</svg>",d=Ke.firstChild;l.firstChild;)l.removeChild(l.firstChild);for(;d.firstChild;)l.appendChild(d.firstChild)}});function bt(l,d){if(d){var y=l.firstChild;if(y&&y===l.lastChild&&y.nodeType===3){y.nodeValue=d;return}}l.textContent=d}var Ot={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},xt=["Webkit","ms","Moz","O"];Object.keys(Ot).forEach(function(l){xt.forEach(function(d){d=d+l.charAt(0).toUpperCase()+l.substring(1),Ot[d]=Ot[l]})});function er(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 Kt(l,d){l=l.style;for(var y in d)if(d.hasOwnProperty(y)){var C=y.indexOf("--")===0,R=er(y,d[y],C);y==="float"&&(y="cssFloat"),C?l.setProperty(y,R):l[y]=R}}var Ar=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 Ir(l,d){if(d){if(Ar[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 Mn(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 Cr=null;function da(l){return l=l.target||l.srcElement||window,l.correspondingUseElement&&(l=l.correspondingUseElement),l.nodeType===3?l.parentNode:l}var Ln=null,eo=null,to=null;function wl(l){if(l=Sa(l)){if(typeof Ln!="function")throw Error(r(280));var d=l.stateNode;d&&(d=hc(d),Ln(l.stateNode,l.type,d))}}function os(l){eo?to?to.push(l):to=[l]:eo=l}function No(){if(eo){var l=eo,d=to;if(to=eo=null,wl(l),d)for(l=0;l<d.length;l++)wl(d[l])}}function hr(l,d){return l(d)}function ar(){}var Dr=!1;function kr(l,d,y){if(Dr)return l(d,y);Dr=!0;try{return hr(l,d,y)}finally{Dr=!1,(eo!==null||to!==null)&&(ar(),No())}}function pr(l,d){var y=l.stateNode;if(y===null)return null;var C=hc(y);if(C===null)return null;y=C[d];e:switch(d){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(C=!C.disabled)||(l=l.type,C=!(l==="button"||l==="input"||l==="select"||l==="textarea")),l=!C;break e;default:l=!1}if(l)return null;if(y&&typeof y!="function")throw Error(r(231,d,typeof y));return y}var mr=!1;if(s)try{var tn={};Object.defineProperty(tn,"passive",{get:function(){mr=!0}}),window.addEventListener("test",tn,tn),window.removeEventListener("test",tn,tn)}catch{mr=!1}function Qn(l,d,y,C,R,I,ee,fe,me){var Ce=Array.prototype.slice.call(arguments,3);try{d.apply(y,Ce)}catch(Ie){this.onError(Ie)}}var vr=!1,nt=null,Ol=!1,zu=null,Cm={onError:function(l){vr=!0,nt=l}};function Em(l,d,y,C,R,I,ee,fe,me){vr=!1,nt=null,Qn.apply(Cm,arguments)}function pd(l,d,y,C,R,I,ee,fe,me){if(Em.apply(this,arguments),vr){if(vr){var Ce=nt;vr=!1,nt=null}else throw Error(r(198));Ol||(Ol=!0,zu=Ce)}}function Mo(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 ha(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 md(l){if(Mo(l)!==l)throw Error(r(188))}function Fb(l){var d=l.alternate;if(!d){if(d=Mo(l),d===null)throw Error(r(188));return d!==l?null:l}for(var y=l,C=d;;){var R=y.return;if(R===null)break;var I=R.alternate;if(I===null){if(C=R.return,C!==null){y=C;continue}break}if(R.child===I.child){for(I=R.child;I;){if(I===y)return md(R),l;if(I===C)return md(R),d;I=I.sibling}throw Error(r(188))}if(y.return!==C.return)y=R,C=I;else{for(var ee=!1,fe=R.child;fe;){if(fe===y){ee=!0,y=R,C=I;break}if(fe===C){ee=!0,C=R,y=I;break}fe=fe.sibling}if(!ee){for(fe=I.child;fe;){if(fe===y){ee=!0,y=I,C=R;break}if(fe===C){ee=!0,C=I,y=R;break}fe=fe.sibling}if(!ee)throw Error(r(189))}}if(y.alternate!==C)throw Error(r(190))}if(y.tag!==3)throw Error(r(188));return y.stateNode.current===y?l:d}function Tm(l){return l=Fb(l),l!==null?jm(l):null}function jm(l){if(l.tag===5||l.tag===6)return l;for(l=l.child;l!==null;){var d=jm(l);if(d!==null)return d;l=l.sibling}return null}var Am=t.unstable_scheduleCallback,vd=t.unstable_cancelCallback,Bb=t.unstable_shouldYield,Vu=t.unstable_requestPaint,gr=t.unstable_now,Ub=t.unstable_getCurrentPriorityLevel,gd=t.unstable_ImmediatePriority,km=t.unstable_UserBlockingPriority,Wu=t.unstable_NormalPriority,yd=t.unstable_LowPriority,as=t.unstable_IdlePriority,Sl=null,Jn=null;function Pl(l){if(Jn&&typeof Jn.onCommitFiberRoot=="function")try{Jn.onCommitFiberRoot(Sl,l,void 0,(l.current.flags&128)===128)}catch{}}var wt=Math.clz32?Math.clz32:ss,tr=Math.log,qu=Math.LN2;function ss(l){return l>>>=0,l===0?32:31-(tr(l)/qu|0)|0}var ro=64,ls=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 Yt(l,d){var y=l.pendingLanes;if(y===0)return 0;var C=0,R=l.suspendedLanes,I=l.pingedLanes,ee=y&268435455;if(ee!==0){var fe=ee&~R;fe!==0?C=gt(fe):(I&=ee,I!==0&&(C=gt(I)))}else ee=y&~R,ee!==0?C=gt(ee):I!==0&&(C=gt(I));if(C===0)return 0;if(d!==0&&d!==C&&!(d&R)&&(R=C&-C,I=d&-d,R>=I||R===16&&(I&4194240)!==0))return d;if(C&4&&(C|=y&16),d=l.entangledLanes,d!==0)for(l=l.entanglements,d&=C;0<d;)y=31-wt(d),R=1<<y,C|=l[y],d&=~R;return C}function bd(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,C=l.pingedLanes,R=l.expirationTimes,I=l.pendingLanes;0<I;){var ee=31-wt(I),fe=1<<ee,me=R[ee];me===-1?(!(fe&y)||fe&C)&&(R[ee]=bd(fe,d)):me<=d&&(l.expiredLanes|=fe),I&=~fe}}function ln(l){return l=l.pendingLanes&-1073741825,l!==0?l:l&1073741824?1073741824:0}function Rm(){var l=ro;return ro<<=1,!(ro&4194240)&&(ro=64),l}function us(l){for(var d=[],y=0;31>y;y++)d.push(l);return d}function ei(l,d,y){l.pendingLanes|=d,d!==536870912&&(l.suspendedLanes=0,l.pingedLanes=0),l=l.eventTimes,d=31-wt(d),l[d]=y}function wr(l,d){var y=l.pendingLanes&~d;l.pendingLanes=d,l.suspendedLanes=0,l.pingedLanes=0,l.expiredLanes&=d,l.mutableReadLanes&=d,l.entangledLanes&=d,d=l.entanglements;var C=l.eventTimes;for(l=l.expirationTimes;0<y;){var R=31-wt(y),I=1<<R;d[R]=0,C[R]=-1,l[R]=-1,y&=~I}}function no(l,d){var y=l.entangledLanes|=d;for(l=l.entanglements;y;){var C=31-wt(y),R=1<<C;R&d|l[C]&d&&(l[C]|=d),y&=~R}}var Rt=0;function cs(l){return l&=-l,1<l?4<l?l&268435455?16:536870912:4:1}var Gu,pa,Ku,Yu,Cl,El=!1,fs=[],ti=null,io=null,Pi=null,Tl=new Map,pt=new Map,$r=[],Ut="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function _d(l,d){switch(l){case"focusin":case"focusout":ti=null;break;case"dragenter":case"dragleave":io=null;break;case"mouseover":case"mouseout":Pi=null;break;case"pointerover":case"pointerout":Tl.delete(d.pointerId);break;case"gotpointercapture":case"lostpointercapture":pt.delete(d.pointerId)}}function ma(l,d,y,C,R,I){return l===null||l.nativeEvent!==I?(l={blockedOn:d,domEventName:y,eventSystemFlags:C,nativeEvent:I,targetContainers:[R]},d!==null&&(d=Sa(d),d!==null&&pa(d)),l):(l.eventSystemFlags|=C,d=l.targetContainers,R!==null&&d.indexOf(R)===-1&&d.push(R),l)}function xd(l,d,y,C,R){switch(d){case"focusin":return ti=ma(ti,l,d,y,C,R),!0;case"dragenter":return io=ma(io,l,d,y,C,R),!0;case"mouseover":return Pi=ma(Pi,l,d,y,C,R),!0;case"pointerover":var I=R.pointerId;return Tl.set(I,ma(Tl.get(I)||null,l,d,y,C,R)),!0;case"gotpointercapture":return I=R.pointerId,pt.set(I,ma(pt.get(I)||null,l,d,y,C,R)),!0}return!1}function Zu(l){var d=Oa(l.target);if(d!==null){var y=Mo(d);if(y!==null){if(d=y.tag,d===13){if(d=ha(y),d!==null){l.blockedOn=d,Cl(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 Ci(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 C=new y.constructor(y.type,y);Cr=C,y.target.dispatchEvent(C),Cr=null}else return d=Sa(y),d!==null&&pa(d),l.blockedOn=y,!1;d.shift()}return!0}function Xu(l,d,y){Ci(l)&&y.delete(d)}function jl(){El=!1,ti!==null&&Ci(ti)&&(ti=null),io!==null&&Ci(io)&&(io=null),Pi!==null&&Ci(Pi)&&(Pi=null),Tl.forEach(Xu),pt.forEach(Xu)}function yr(l,d){l.blockedOn===d&&(l.blockedOn=null,El||(El=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,jl)))}function ri(l){function d(R){return yr(R,l)}if(0<fs.length){yr(fs[0],l);for(var y=1;y<fs.length;y++){var C=fs[y];C.blockedOn===l&&(C.blockedOn=null)}}for(ti!==null&&yr(ti,l),io!==null&&yr(io,l),Pi!==null&&yr(Pi,l),Tl.forEach(d),pt.forEach(d),y=0;y<$r.length;y++)C=$r[y],C.blockedOn===l&&(C.blockedOn=null);for(;0<$r.length&&(y=$r[0],y.blockedOn===null);)Zu(y),y.blockedOn===null&&$r.shift()}var va=T.ReactCurrentBatchConfig,Al=!0;function zb(l,d,y,C){var R=Rt,I=va.transition;va.transition=null;try{Rt=1,kl(l,d,y,C)}finally{Rt=R,va.transition=I}}function Nm(l,d,y,C){var R=Rt,I=va.transition;va.transition=null;try{Rt=4,kl(l,d,y,C)}finally{Rt=R,va.transition=I}}function kl(l,d,y,C){if(Al){var R=Ju(l,d,y,C);if(R===null)f(l,d,C,Qu,y),_d(l,C);else if(xd(R,l,d,y,C))C.stopPropagation();else if(_d(l,C),d&4&&-1<Ut.indexOf(l)){for(;R!==null;){var I=Sa(R);if(I!==null&&Gu(I),I=Ju(l,d,y,C),I===null&&f(l,d,C,Qu,y),I===R)break;R=I}R!==null&&C.stopPropagation()}else f(l,d,C,null,y)}}var Qu=null;function Ju(l,d,y,C){if(Qu=null,l=da(C),l=Oa(l),l!==null)if(d=Mo(l),d===null)l=null;else if(y=d.tag,y===13){if(l=ha(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(Ub()){case gd:return 1;case km:return 4;case Wu:case yd:return 16;case as:return 536870912;default:return 16}default:return 16}}var Lo=null,bn=null,Io=null;function wd(){if(Io)return Io;var l,d=bn,y=d.length,C,R="value"in Lo?Lo.value:Lo.textContent,I=R.length;for(l=0;l<y&&d[l]===R[l];l++);var ee=y-l;for(C=1;C<=ee&&d[y-C]===R[I-C];C++);return Io=R.slice(l,1<C?1-C: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 ds(){return!0}function Mm(){return!1}function un(l){function d(y,C,R,I,ee){this._reactName=y,this._targetInst=R,this.type=C,this.nativeEvent=I,this.target=ee,this.currentTarget=null;for(var fe in l)l.hasOwnProperty(fe)&&(y=l[fe],this[fe]=y?y(I):I[fe]);return this.isDefaultPrevented=(I.defaultPrevented!=null?I.defaultPrevented:I.returnValue===!1)?ds:Mm,this.isPropagationStopped=Mm,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=ds)},stopPropagation:function(){var y=this.nativeEvent;y&&(y.stopPropagation?y.stopPropagation():typeof y.cancelBubble!="unknown"&&(y.cancelBubble=!0),this.isPropagationStopped=ds)},persist:function(){},isPersistent:ds}),d}var hs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(l){return l.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Od=un(hs),ga=G({},hs,{view:0,detail:0}),Vb=un(ga),In,Sd,ps,ni=G({},ga,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ba,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!==ps&&(ps&&l.type==="mousemove"?(In=l.screenX-ps.screenX,Sd=l.screenY-ps.screenY):Sd=In=0,ps=l),In)},movementY:function(l){return"movementY"in l?l.movementY:Sd}}),Pd=un(ni),Lm=G({},ni,{dataTransfer:0}),Cd=un(Lm),Wb=G({},ga,{relatedTarget:0}),tc=un(Wb),Im=G({},hs,{animationName:0,elapsedTime:0,pseudoElement:0}),qb=un(Im),Hb=G({},hs,{clipboardData:function(l){return"clipboardData"in l?l.clipboardData:window.clipboardData}}),Ed=un(Hb),Gb=G({},hs,{data:0}),Td=un(Gb),Dm={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"},ya={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Kb(l){var d=this.nativeEvent;return d.getModifierState?d.getModifierState(l):(l=ya[l])?!!d[l]:!1}function ba(){return Kb}var Dn=G({},ga,{key:function(l){if(l.key){var d=Dm[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:ba,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}}),$m=un(Dn),Fm=G({},ni,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Bm=un(Fm),jd=G({},ga,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ba}),Ad=un(jd),Yb=G({},hs,{propertyName:0,elapsedTime:0,pseudoElement:0}),Zb=un(Yb),Um=G({},ni,{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}),Xb=un(Um),ii=[9,13,27,32],Do=s&&"CompositionEvent"in window,Rl=null;s&&"documentMode"in document&&(Rl=document.documentMode);var oo=s&&"TextEvent"in window&&!Rl,zm=s&&(!Do||Rl&&8<Rl&&11>=Rl),_a=" ",Vm=!1;function ms(l,d){switch(l){case"keyup":return ii.indexOf(d.keyCode)!==-1;case"keydown":return d.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function kd(l){return l=l.detail,typeof l=="object"&&"data"in l?l.data:null}var ao=!1;function Qb(l,d){switch(l){case"compositionend":return kd(d);case"keypress":return d.which!==32?null:(Vm=!0,_a);case"textInput":return l=d.data,l===_a&&Vm?null:l;default:return null}}function $o(l,d){if(ao)return l==="compositionend"||!Do&&ms(l,d)?(l=wd(),Io=bn=Lo=null,ao=!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 zm&&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 Wm(l){var d=l&&l.nodeName&&l.nodeName.toLowerCase();return d==="input"?!!nc[l.type]:d==="textarea"}function ic(l,d,y,C){os(C),d=P(d,"onChange"),0<d.length&&(y=new Od("onChange","change",null,y,C),l.push({event:y,listeners:d}))}var Nl=null,_n=null;function Jb(l){Bd(l,0)}function so(l){var d=Pa(l);if(ie(d))return l}function e_(l,d){if(l==="change")return d}var Ei=!1;if(s){var vs;if(s){var oc="oninput"in document;if(!oc){var ac=document.createElement("div");ac.setAttribute("oninput","return;"),oc=typeof ac.oninput=="function"}vs=oc}else vs=!1;Ei=vs&&(!document.documentMode||9<document.documentMode)}function Ml(){Nl&&(Nl.detachEvent("onpropertychange",sc),_n=Nl=null)}function sc(l){if(l.propertyName==="value"&&so(_n)){var d=[];ic(d,_n,l,da(l)),kr(Jb,d)}}function lc(l,d,y){l==="focusin"?(Ml(),Nl=d,_n=y,Nl.attachEvent("onpropertychange",sc)):l==="focusout"&&Ml()}function gs(l){if(l==="selectionchange"||l==="keyup"||l==="keydown")return so(_n)}function uc(l,d){if(l==="click")return so(d)}function Rd(l,d){if(l==="input"||l==="change")return so(d)}function qm(l,d){return l===d&&(l!==0||1/l===1/d)||l!==l&&d!==d}var oi=typeof Object.is=="function"?Object.is:qm;function Fo(l,d){if(oi(l,d))return!0;if(typeof l!="object"||l===null||typeof d!="object"||d===null)return!1;var y=Object.keys(l),C=Object.keys(d);if(y.length!==C.length)return!1;for(C=0;C<y.length;C++){var R=y[C];if(!c.call(d,R)||!oi(l[R],d[R]))return!1}return!0}function Hm(l){for(;l&&l.firstChild;)l=l.firstChild;return l}function Nd(l,d){var y=Hm(l);l=0;for(var C;y;){if(y.nodeType===3){if(C=l+y.textContent.length,l<=d&&C>=d)return{node:y,offset:d-l};l=C}e:{for(;y;){if(y.nextSibling){y=y.nextSibling;break e}y=y.parentNode}y=void 0}y=Hm(y)}}function Gm(l,d){return l&&d?l===d?!0:l&&l.nodeType===3?!1:d&&d.nodeType===3?Gm(l,d.parentNode):"contains"in l?l.contains(d):l.compareDocumentPosition?!!(l.compareDocumentPosition(d)&16):!1:!1}function Md(){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 Ld(l){var d=l&&l.nodeName&&l.nodeName.toLowerCase();return d&&(d==="input"&&(l.type==="text"||l.type==="search"||l.type==="tel"||l.type==="url"||l.type==="password")||d==="textarea"||l.contentEditable==="true")}function Ti(l){var d=Md(),y=l.focusedElem,C=l.selectionRange;if(d!==y&&y&&y.ownerDocument&&Gm(y.ownerDocument.documentElement,y)){if(C!==null&&Ld(y)){if(d=C.start,l=C.end,l===void 0&&(l=d),"selectionStart"in y)y.selectionStart=d,y.selectionEnd=Math.min(l,y.value.length);else if(l=(d=y.ownerDocument||document)&&d.defaultView||window,l.getSelection){l=l.getSelection();var R=y.textContent.length,I=Math.min(C.start,R);C=C.end===void 0?I:Math.min(C.end,R),!l.extend&&I>C&&(R=C,C=I,I=R),R=Nd(y,I);var ee=Nd(y,C);R&&ee&&(l.rangeCount!==1||l.anchorNode!==R.node||l.anchorOffset!==R.offset||l.focusNode!==ee.node||l.focusOffset!==ee.offset)&&(d=d.createRange(),d.setStart(R.node,R.offset),l.removeAllRanges(),I>C?(l.addRange(d),l.extend(ee.node,ee.offset)):(d.setEnd(ee.node,ee.offset),l.addRange(d)))}}for(d=[],l=y;l=l.parentNode;)l.nodeType===1&&d.push({element:l,left:l.scrollLeft,top:l.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<d.length;y++)l=d[y],l.element.scrollLeft=l.left,l.element.scrollTop=l.top}}var cc=s&&"documentMode"in document&&11>=document.documentMode,ys=null,bs=null,Ll=null,fc=!1;function Km(l,d,y){var C=y.window===y?y.document:y.nodeType===9?y:y.ownerDocument;fc||ys==null||ys!==he(C)||(C=ys,"selectionStart"in C&&Ld(C)?C={start:C.selectionStart,end:C.selectionEnd}:(C=(C.ownerDocument&&C.ownerDocument.defaultView||window).getSelection(),C={anchorNode:C.anchorNode,anchorOffset:C.anchorOffset,focusNode:C.focusNode,focusOffset:C.focusOffset}),Ll&&Fo(Ll,C)||(Ll=C,C=P(bs,"onSelect"),0<C.length&&(d=new Od("onSelect","select",null,d,y),l.push({event:d,listeners:C}),d.target=ys)))}function Bo(l,d){var y={};return y[l.toLowerCase()]=d.toLowerCase(),y["Webkit"+l]="webkit"+d,y["Moz"+l]="moz"+d,y}var _s={animationend:Bo("Animation","AnimationEnd"),animationiteration:Bo("Animation","AnimationIteration"),animationstart:Bo("Animation","AnimationStart"),transitionend:Bo("Transition","TransitionEnd")},Uo={},Id={};s&&(Id=document.createElement("div").style,"AnimationEvent"in window||(delete _s.animationend.animation,delete _s.animationiteration.animation,delete _s.animationstart.animation),"TransitionEvent"in window||delete _s.transitionend.transition);function Il(l){if(Uo[l])return Uo[l];if(!_s[l])return l;var d=_s[l],y;for(y in d)if(d.hasOwnProperty(y)&&y in Id)return Uo[l]=d[y];return l}var Ym=Il("animationend"),ji=Il("animationiteration"),Dd=Il("animationstart"),$d=Il("transitionend"),xs=new Map,Zm="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ai(l,d){xs.set(l,d),o(d,[l])}for(var xa=0;xa<Zm.length;xa++){var dc=Zm[xa],Xm=dc.toLowerCase(),t_=dc[0].toUpperCase()+dc.slice(1);ai(Xm,"on"+t_)}ai(Ym,"onAnimationEnd"),ai(ji,"onAnimationIteration"),ai(Dd,"onAnimationStart"),ai("dblclick","onDoubleClick"),ai("focusin","onFocus"),ai("focusout","onBlur"),ai($d,"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 ws="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(" "),Qm=new Set("cancel close invalid load scroll toggle".split(" ").concat(ws));function Fd(l,d,y){var C=l.type||"unknown-event";l.currentTarget=y,pd(C,d,void 0,l),l.currentTarget=null}function Bd(l,d){d=(d&4)!==0;for(var y=0;y<l.length;y++){var C=l[y],R=C.event;C=C.listeners;e:{var I=void 0;if(d)for(var ee=C.length-1;0<=ee;ee--){var fe=C[ee],me=fe.instance,Ce=fe.currentTarget;if(fe=fe.listener,me!==I&&R.isPropagationStopped())break e;Fd(R,fe,Ce),I=me}else for(ee=0;ee<C.length;ee++){if(fe=C[ee],me=fe.instance,Ce=fe.currentTarget,fe=fe.listener,me!==I&&R.isPropagationStopped())break e;Fd(R,fe,Ce),I=me}}}if(Ol)throw l=zu,Ol=!1,zu=null,l}function zt(l,d){var y=d[Cs];y===void 0&&(y=d[Cs]=new Set);var C=l+"__bubble";y.has(C)||(Jm(d,l,2,!1),y.add(C))}function Ud(l,d,y){var C=0;d&&(C|=4),Jm(y,l,C,d)}var Dl="_reactListening"+Math.random().toString(36).slice(2);function Os(l){if(!l[Dl]){l[Dl]=!0,n.forEach(function(y){y!=="selectionchange"&&(Qm.has(y)||Ud(y,!1,l),Ud(y,!0,l))});var d=l.nodeType===9?l:l.ownerDocument;d===null||d[Dl]||(d[Dl]=!0,Ud("selectionchange",!1,d))}}function Jm(l,d,y,C){switch(Tt(d)){case 1:var R=zb;break;case 4:R=Nm;break;default:R=kl}y=R.bind(null,d,y,l),R=void 0,!mr||d!=="touchstart"&&d!=="touchmove"&&d!=="wheel"||(R=!0),C?R!==void 0?l.addEventListener(d,y,{capture:!0,passive:R}):l.addEventListener(d,y,!0):R!==void 0?l.addEventListener(d,y,{passive:R}):l.addEventListener(d,y,!1)}function f(l,d,y,C,R){var I=C;if(!(d&1)&&!(d&2)&&C!==null)e:for(;;){if(C===null)return;var ee=C.tag;if(ee===3||ee===4){var fe=C.stateNode.containerInfo;if(fe===R||fe.nodeType===8&&fe.parentNode===R)break;if(ee===4)for(ee=C.return;ee!==null;){var me=ee.tag;if((me===3||me===4)&&(me=ee.stateNode.containerInfo,me===R||me.nodeType===8&&me.parentNode===R))return;ee=ee.return}for(;fe!==null;){if(ee=Oa(fe),ee===null)return;if(me=ee.tag,me===5||me===6){C=I=ee;continue e}fe=fe.parentNode}}C=C.return}kr(function(){var Ce=I,Ie=da(y),$e=[];e:{var Le=xs.get(l);if(Le!==void 0){var Qe=Od,tt=l;switch(l){case"keypress":if(ec(y)===0)break e;case"keydown":case"keyup":Qe=$m;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=Pd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Qe=Cd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Qe=Ad;break;case Ym:case ji:case Dd:Qe=qb;break;case $d:Qe=Zb;break;case"scroll":Qe=Vb;break;case"wheel":Qe=Xb;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=Bm}var rt=(d&4)!==0,Er=!rt&&l==="scroll",xe=rt?Le!==null?Le+"Capture":null:Le;rt=[];for(var ve=Ce,Oe;ve!==null;){Oe=ve;var We=Oe.stateNode;if(Oe.tag===5&&We!==null&&(Oe=We,xe!==null&&(We=pr(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!==Cr&&(tt=y.relatedTarget||y.fromElement)&&(Oa(tt)||tt[Dt]))break e;if((Qe||Le)&&(Le=Ie.window===Ie?Ie:(Le=Ie.ownerDocument)?Le.defaultView||Le.parentWindow:window,Qe?(tt=y.relatedTarget||y.toElement,Qe=Ce,tt=tt?Oa(tt):null,tt!==null&&(Er=Mo(tt),tt!==Er||tt.tag!==5&&tt.tag!==6)&&(tt=null)):(Qe=null,tt=Ce),Qe!==tt)){if(rt=Pd,We="onMouseLeave",xe="onMouseEnter",ve="mouse",(l==="pointerout"||l==="pointerover")&&(rt=Bm,We="onPointerLeave",xe="onPointerEnter",ve="pointer"),Er=Qe==null?Le:Pa(Qe),Oe=tt==null?Le:Pa(tt),Le=new rt(We,ve+"leave",Qe,y,Ie),Le.target=Er,Le.relatedTarget=Oe,We=null,Oa(Ie)===Ce&&(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=Ce?Pa(Ce):window,Qe=Le.nodeName&&Le.nodeName.toLowerCase(),Qe==="select"||Qe==="input"&&Le.type==="file")var ot=e_;else if(Wm(Le))if(Ei)ot=Rd;else{ot=gs;var lt=lc}else(Qe=Le.nodeName)&&Qe.toLowerCase()==="input"&&(Le.type==="checkbox"||Le.type==="radio")&&(ot=uc);if(ot&&(ot=ot(l,Ce))){ic($e,ot,y,Ie);break e}lt&&lt(l,Le,Ce),l==="focusout"&&(lt=Le._wrapperState)&&lt.controlled&&Le.type==="number"&&Me(Le,"number",Le.value)}switch(lt=Ce?Pa(Ce):window,l){case"focusin":(Wm(lt)||lt.contentEditable==="true")&&(ys=lt,bs=Ce,Ll=null);break;case"focusout":Ll=bs=ys=null;break;case"mousedown":fc=!0;break;case"contextmenu":case"mouseup":case"dragend":fc=!1,Km($e,y,Ie);break;case"selectionchange":if(cc)break;case"keydown":case"keyup":Km($e,y,Ie)}var ut;if(Do)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 ao?ms(l,y)&&(vt="onCompositionEnd"):l==="keydown"&&y.keyCode===229&&(vt="onCompositionStart");vt&&(zm&&y.locale!=="ko"&&(ao||vt!=="onCompositionStart"?vt==="onCompositionEnd"&&ao&&(ut=wd()):(Lo=Ie,bn="value"in Lo?Lo.value:Lo.textContent,ao=!0)),lt=P(Ce,vt),0<lt.length&&(vt=new Td(vt,l,null,y,Ie),$e.push({event:vt,listeners:lt}),ut?vt.data=ut:(ut=kd(y),ut!==null&&(vt.data=ut)))),(ut=oo?Qb(l,y):$o(l,y))&&(Ce=P(Ce,"onBeforeInput"),0<Ce.length&&(Ie=new Td("onBeforeInput","beforeinput",null,y,Ie),$e.push({event:Ie,listeners:Ce}),Ie.data=ut))}Bd($e,d)})}function m(l,d,y){return{instance:l,listener:d,currentTarget:y}}function P(l,d){for(var y=d+"Capture",C=[];l!==null;){var R=l,I=R.stateNode;R.tag===5&&I!==null&&(R=I,I=pr(l,y),I!=null&&C.unshift(m(l,I,R)),I=pr(l,d),I!=null&&C.push(m(l,I,R))),l=l.return}return C}function k(l){if(l===null)return null;do l=l.return;while(l&&l.tag!==5);return l||null}function U(l,d,y,C,R){for(var I=d._reactName,ee=[];y!==null&&y!==C;){var fe=y,me=fe.alternate,Ce=fe.stateNode;if(me!==null&&me===C)break;fe.tag===5&&Ce!==null&&(fe=Ce,R?(me=pr(y,I),me!=null&&ee.unshift(m(y,me,fe))):R||(me=pr(y,I),me!=null&&ee.push(m(y,me,fe)))),y=y.return}ee.length!==0&&l.push({event:d,listeners:ee})}var te=/\r\n?/g,pe=/\u0000|\uFFFD/g;function _e(l){return(typeof l=="string"?l:""+l).replace(te,`
`).replace(pe,"")}function Pe(l,d,y){if(d=_e(d),_e(l)!==d&&y)throw Error(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 Fr=typeof setTimeout=="function"?setTimeout:void 0,Rr=typeof clearTimeout=="function"?clearTimeout:void 0,xn=typeof Promise=="function"?Promise:void 0,cn=typeof queueMicrotask=="function"?queueMicrotask:typeof xn<"u"?function(l){return xn.resolve(null).then(l).catch(Ss)}:Fr;function Ss(l){setTimeout(function(){throw l})}function zd(l,d){var y=d,C=0;do{var R=y.nextSibling;if(l.removeChild(y),R&&R.nodeType===8)if(y=R.data,y==="/$"){if(C===0){l.removeChild(R),ri(d);return}C--}else y!=="$"&&y!=="$?"&&y!=="$!"||C++;y=R}while(y);ri(d)}function zo(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 ev(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 wa=Math.random().toString(36).slice(2),Ai="__reactFiber$"+wa,Ps="__reactProps$"+wa,Dt="__reactContainer$"+wa,Cs="__reactEvents$"+wa,r_="__reactListeners$"+wa,n_="__reactHandles$"+wa;function Oa(l){var d=l[Ai];if(d)return d;for(var y=l.parentNode;y;){if(d=y[Dt]||y[Ai]){if(y=d.alternate,d.child!==null||y!==null&&y.child!==null)for(l=ev(l);l!==null;){if(y=l[Ai])return y;l=ev(l)}return d}l=y,y=l.parentNode}return null}function Sa(l){return l=l[Ai]||l[Dt],!l||l.tag!==5&&l.tag!==6&&l.tag!==13&&l.tag!==3?null:l}function Pa(l){if(l.tag===5||l.tag===6)return l.stateNode;throw Error(r(33))}function hc(l){return l[Ps]||null}var i_=[],pc=-1;function Es(l){return{current:l}}function rr(l){0>pc||(l.current=i_[pc],i_[pc]=null,pc--)}function Zt(l,d){pc++,i_[pc]=l.current,l.current=d}var Ts={},fn=Es(Ts),$n=Es(!1),$l=Ts;function mc(l,d){var y=l.type.contextTypes;if(!y)return Ts;var C=l.stateNode;if(C&&C.__reactInternalMemoizedUnmaskedChildContext===d)return C.__reactInternalMemoizedMaskedChildContext;var R={},I;for(I in y)R[I]=d[I];return C&&(l=l.stateNode,l.__reactInternalMemoizedUnmaskedChildContext=d,l.__reactInternalMemoizedMaskedChildContext=R),R}function Fn(l){return l=l.childContextTypes,l!=null}function tv(){rr($n),rr(fn)}function xA(l,d,y){if(fn.current!==Ts)throw Error(r(168));Zt(fn,d),Zt($n,y)}function wA(l,d,y){var C=l.stateNode;if(d=d.childContextTypes,typeof C.getChildContext!="function")return y;C=C.getChildContext();for(var R in C)if(!(R in d))throw Error(r(108,be(l)||"Unknown",R));return G({},y,C)}function rv(l){return l=(l=l.stateNode)&&l.__reactInternalMemoizedMergedChildContext||Ts,$l=fn.current,Zt(fn,l),Zt($n,$n.current),!0}function OA(l,d,y){var C=l.stateNode;if(!C)throw Error(r(169));y?(l=wA(l,d,$l),C.__reactInternalMemoizedMergedChildContext=l,rr($n),rr(fn),Zt(fn,l)):rr($n),Zt($n,y)}var Ca=null,nv=!1,o_=!1;function SA(l){Ca===null?Ca=[l]:Ca.push(l)}function LW(l){nv=!0,SA(l)}function js(){if(!o_&&Ca!==null){o_=!0;var l=0,d=Rt;try{var y=Ca;for(Rt=1;l<y.length;l++){var C=y[l];do C=C(!0);while(C!==null)}Ca=null,nv=!1}catch(R){throw Ca!==null&&(Ca=Ca.slice(l+1)),Am(gd,js),R}finally{Rt=d,o_=!1}}return null}var vc=[],gc=0,iv=null,ov=0,ki=[],Ri=0,Fl=null,Ea=1,Ta="";function Bl(l,d){vc[gc++]=ov,vc[gc++]=iv,iv=l,ov=d}function PA(l,d,y){ki[Ri++]=Ea,ki[Ri++]=Ta,ki[Ri++]=Fl,Fl=l;var C=Ea;l=Ta;var R=32-wt(C)-1;C&=~(1<<R),y+=1;var I=32-wt(d)+R;if(30<I){var ee=R-R%5;I=(C&(1<<ee)-1).toString(32),C>>=ee,R-=ee,Ea=1<<32-wt(d)+R|y<<R|C,Ta=I+l}else Ea=1<<I|y<<R|C,Ta=l}function a_(l){l.return!==null&&(Bl(l,1),PA(l,1,0))}function s_(l){for(;l===iv;)iv=vc[--gc],vc[gc]=null,ov=vc[--gc],vc[gc]=null;for(;l===Fl;)Fl=ki[--Ri],ki[Ri]=null,Ta=ki[--Ri],ki[Ri]=null,Ea=ki[--Ri],ki[Ri]=null}var si=null,li=null,sr=!1,lo=null;function CA(l,d){var y=Ii(5,null,null,0);y.elementType="DELETED",y.stateNode=d,y.return=l,d=l.deletions,d===null?(l.deletions=[y],l.flags|=16):d.push(y)}function EA(l,d){switch(l.tag){case 5:var y=l.type;return d=d.nodeType!==1||y.toLowerCase()!==d.nodeName.toLowerCase()?null:d,d!==null?(l.stateNode=d,si=l,li=zo(d.firstChild),!0):!1;case 6:return d=l.pendingProps===""||d.nodeType!==3?null:d,d!==null?(l.stateNode=d,si=l,li=null,!0):!1;case 13:return d=d.nodeType!==8?null:d,d!==null?(y=Fl!==null?{id:Ea,overflow:Ta}:null,l.memoizedState={dehydrated:d,treeContext:y,retryLane:1073741824},y=Ii(18,null,null,0),y.stateNode=d,y.return=l,l.child=y,si=l,li=null,!0):!1;default:return!1}}function l_(l){return(l.mode&1)!==0&&(l.flags&128)===0}function u_(l){if(sr){var d=li;if(d){var y=d;if(!EA(l,d)){if(l_(l))throw Error(r(418));d=zo(y.nextSibling);var C=si;d&&EA(l,d)?CA(C,y):(l.flags=l.flags&-4097|2,sr=!1,si=l)}}else{if(l_(l))throw Error(r(418));l.flags=l.flags&-4097|2,sr=!1,si=l}}}function TA(l){for(l=l.return;l!==null&&l.tag!==5&&l.tag!==3&&l.tag!==13;)l=l.return;si=l}function av(l){if(l!==si)return!1;if(!sr)return TA(l),sr=!0,!1;var d;if((d=l.tag!==3)&&!(d=l.tag!==5)&&(d=l.type,d=d!=="head"&&d!=="body"&&!St(l.type,l.memoizedProps)),d&&(d=li)){if(l_(l))throw jA(),Error(r(418));for(;d;)CA(l,d),d=zo(d.nextSibling)}if(TA(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){li=zo(l.nextSibling);break e}d--}else y!=="$"&&y!=="$!"&&y!=="$?"||d++}l=l.nextSibling}li=null}}else li=si?zo(l.stateNode.nextSibling):null;return!0}function jA(){for(var l=li;l;)l=zo(l.nextSibling)}function yc(){li=si=null,sr=!1}function c_(l){lo===null?lo=[l]:lo.push(l)}var IW=T.ReactCurrentBatchConfig;function Vd(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 C=y.stateNode}if(!C)throw Error(r(147,l));var R=C,I=""+l;return d!==null&&d.ref!==null&&typeof d.ref=="function"&&d.ref._stringRef===I?d.ref:(d=function(ee){var fe=R.refs;ee===null?delete fe[I]:fe[I]=ee},d._stringRef=I,d)}if(typeof l!="string")throw Error(r(284));if(!y._owner)throw Error(r(290,l))}return l}function sv(l,d){throw l=Object.prototype.toString.call(d),Error(r(31,l==="[object Object]"?"object with keys {"+Object.keys(d).join(", ")+"}":l))}function AA(l){var d=l._init;return d(l._payload)}function kA(l){function d(xe,ve){if(l){var Oe=xe.deletions;Oe===null?(xe.deletions=[ve],xe.flags|=16):Oe.push(ve)}}function y(xe,ve){if(!l)return null;for(;ve!==null;)d(xe,ve),ve=ve.sibling;return null}function C(xe,ve){for(xe=new Map;ve!==null;)ve.key!==null?xe.set(ve.key,ve):xe.set(ve.index,ve),ve=ve.sibling;return xe}function R(xe,ve){return xe=Ds(xe,ve),xe.index=0,xe.sibling=null,xe}function I(xe,ve,Oe){return xe.index=Oe,l?(Oe=xe.alternate,Oe!==null?(Oe=Oe.index,Oe<ve?(xe.flags|=2,ve):Oe):(xe.flags|=2,ve)):(xe.flags|=1048576,ve)}function ee(xe){return l&&xe.alternate===null&&(xe.flags|=2),xe}function fe(xe,ve,Oe,We){return ve===null||ve.tag!==6?(ve=t1(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&&AA(ot)===ve.type)?(We=R(ve,Oe.props),We.ref=Vd(xe,ve,Oe),We.return=xe,We):(We=kv(Oe.type,Oe.key,Oe.props,null,xe.mode,We),We.ref=Vd(xe,ve,Oe),We.return=xe,We)}function Ce(xe,ve,Oe,We){return ve===null||ve.tag!==4||ve.stateNode.containerInfo!==Oe.containerInfo||ve.stateNode.implementation!==Oe.implementation?(ve=r1(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=Kl(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=t1(""+ve,xe.mode,Oe),ve.return=xe,ve;if(typeof ve=="object"&&ve!==null){switch(ve.$$typeof){case A:return Oe=kv(ve.type,ve.key,ve.props,null,xe.mode,Oe),Oe.ref=Vd(xe,null,ve),Oe.return=xe,Oe;case j:return ve=r1(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=Kl(ve,xe.mode,Oe,null),ve.return=xe,ve;sv(xe,ve)}return null}function Le(xe,ve,Oe,We){var ot=ve!==null?ve.key:null;if(typeof Oe=="string"&&Oe!==""||typeof Oe=="number")return ot!==null?null:fe(xe,ve,""+Oe,We);if(typeof Oe=="object"&&Oe!==null){switch(Oe.$$typeof){case A:return Oe.key===ot?me(xe,ve,Oe,We):null;case j:return Oe.key===ot?Ce(xe,ve,Oe,We):null;case ae:return ot=Oe._init,Le(xe,ve,ot(Oe._payload),We)}if(He(Oe)||K(Oe))return ot!==null?null:Ie(xe,ve,Oe,We,null);sv(xe,Oe)}return null}function Qe(xe,ve,Oe,We,ot){if(typeof We=="string"&&We!==""||typeof We=="number")return xe=xe.get(Oe)||null,fe(ve,xe,""+We,ot);if(typeof We=="object"&&We!==null){switch(We.$$typeof){case A:return xe=xe.get(We.key===null?Oe:We.key)||null,me(ve,xe,We,ot);case j:return xe=xe.get(We.key===null?Oe:We.key)||null,Ce(ve,xe,We,ot);case ae:var lt=We._init;return Qe(xe,ve,Oe,lt(We._payload),ot)}if(He(We)||K(We))return xe=xe.get(Oe)||null,Ie(ve,xe,We,ot,null);sv(ve,We)}return null}function tt(xe,ve,Oe,We){for(var ot=null,lt=null,ut=ve,vt=ve=0,Kr=null;ut!==null&&vt<Oe.length;vt++){ut.index>vt?(Kr=ut,ut=null):Kr=ut.sibling;var Lt=Le(xe,ut,Oe[vt],We);if(Lt===null){ut===null&&(ut=Kr);break}l&&ut&&Lt.alternate===null&&d(xe,ut),ve=I(Lt,ve,vt),lt===null?ot=Lt:lt.sibling=Lt,lt=Lt,ut=Kr}if(vt===Oe.length)return y(xe,ut),sr&&Bl(xe,vt),ot;if(ut===null){for(;vt<Oe.length;vt++)ut=$e(xe,Oe[vt],We),ut!==null&&(ve=I(ut,ve,vt),lt===null?ot=ut:lt.sibling=ut,lt=ut);return sr&&Bl(xe,vt),ot}for(ut=C(xe,ut);vt<Oe.length;vt++)Kr=Qe(ut,xe,vt,Oe[vt],We),Kr!==null&&(l&&Kr.alternate!==null&&ut.delete(Kr.key===null?vt:Kr.key),ve=I(Kr,ve,vt),lt===null?ot=Kr:lt.sibling=Kr,lt=Kr);return l&&ut.forEach(function($s){return d(xe,$s)}),sr&&Bl(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,Kr=null,Lt=Oe.next();ut!==null&&!Lt.done;vt++,Lt=Oe.next()){ut.index>vt?(Kr=ut,ut=null):Kr=ut.sibling;var $s=Le(xe,ut,Lt.value,We);if($s===null){ut===null&&(ut=Kr);break}l&&ut&&$s.alternate===null&&d(xe,ut),ve=I($s,ve,vt),lt===null?ot=$s:lt.sibling=$s,lt=$s,ut=Kr}if(Lt.done)return y(xe,ut),sr&&Bl(xe,vt),ot;if(ut===null){for(;!Lt.done;vt++,Lt=Oe.next())Lt=$e(xe,Lt.value,We),Lt!==null&&(ve=I(Lt,ve,vt),lt===null?ot=Lt:lt.sibling=Lt,lt=Lt);return sr&&Bl(xe,vt),ot}for(ut=C(xe,ut);!Lt.done;vt++,Lt=Oe.next())Lt=Qe(ut,xe,vt,Lt.value,We),Lt!==null&&(l&&Lt.alternate!==null&&ut.delete(Lt.key===null?vt:Lt.key),ve=I(Lt,ve,vt),lt===null?ot=Lt:lt.sibling=Lt,lt=Lt);return l&&ut.forEach(function(mq){return d(xe,mq)}),sr&&Bl(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&&AA(ot)===lt.type){y(xe,lt.sibling),ve=R(lt,Oe.props),ve.ref=Vd(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=Kl(Oe.props.children,xe.mode,We,Oe.key),ve.return=xe,xe=ve):(We=kv(Oe.type,Oe.key,Oe.props,null,xe.mode,We),We.ref=Vd(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=r1(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);sv(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=t1(Oe,xe.mode,We),ve.return=xe,xe=ve),ee(xe)):y(xe,ve)}return Er}var bc=kA(!0),RA=kA(!1),lv=Es(null),uv=null,_c=null,f_=null;function d_(){f_=_c=uv=null}function h_(l){var d=lv.current;rr(lv),l._currentValue=d}function p_(l,d,y){for(;l!==null;){var C=l.alternate;if((l.childLanes&d)!==d?(l.childLanes|=d,C!==null&&(C.childLanes|=d)):C!==null&&(C.childLanes&d)!==d&&(C.childLanes|=d),l===y)break;l=l.return}}function xc(l,d){uv=l,f_=_c=null,l=l.dependencies,l!==null&&l.firstContext!==null&&(l.lanes&d&&(Bn=!0),l.firstContext=null)}function Ni(l){var d=l._currentValue;if(f_!==l)if(l={context:l,memoizedValue:d,next:null},_c===null){if(uv===null)throw Error(r(308));_c=l,uv.dependencies={lanes:0,firstContext:l}}else _c=_c.next=l;return d}var Ul=null;function m_(l){Ul===null?Ul=[l]:Ul.push(l)}function NA(l,d,y,C){var R=d.interleaved;return R===null?(y.next=y,m_(d)):(y.next=R.next,R.next=y),d.interleaved=y,ja(l,C)}function ja(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 As=!1;function v_(l){l.updateQueue={baseState:l.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function MA(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 Aa(l,d){return{eventTime:l,lane:d,tag:0,payload:null,callback:null,next:null}}function ks(l,d,y){var C=l.updateQueue;if(C===null)return null;if(C=C.shared,Mt&2){var R=C.pending;return R===null?d.next=d:(d.next=R.next,R.next=d),C.pending=d,ja(l,y)}return R=C.interleaved,R===null?(d.next=d,m_(C)):(d.next=R.next,R.next=d),C.interleaved=d,ja(l,y)}function cv(l,d,y){if(d=d.updateQueue,d!==null&&(d=d.shared,(y&4194240)!==0)){var C=d.lanes;C&=l.pendingLanes,y|=C,d.lanes=y,no(l,y)}}function LA(l,d){var y=l.updateQueue,C=l.alternate;if(C!==null&&(C=C.updateQueue,y===C)){var R=null,I=null;if(y=y.firstBaseUpdate,y!==null){do{var ee={eventTime:y.eventTime,lane:y.lane,tag:y.tag,payload:y.payload,callback:y.callback,next:null};I===null?R=I=ee:I=I.next=ee,y=y.next}while(y!==null);I===null?R=I=d:I=I.next=d}else R=I=d;y={baseState:C.baseState,firstBaseUpdate:R,lastBaseUpdate:I,shared:C.shared,effects:C.effects},l.updateQueue=y;return}l=y.lastBaseUpdate,l===null?y.firstBaseUpdate=d:l.next=d,y.lastBaseUpdate=d}function fv(l,d,y,C){var R=l.updateQueue;As=!1;var I=R.firstBaseUpdate,ee=R.lastBaseUpdate,fe=R.shared.pending;if(fe!==null){R.shared.pending=null;var me=fe,Ce=me.next;me.next=null,ee===null?I=Ce:ee.next=Ce,ee=me;var Ie=l.alternate;Ie!==null&&(Ie=Ie.updateQueue,fe=Ie.lastBaseUpdate,fe!==ee&&(fe===null?Ie.firstBaseUpdate=Ce:fe.next=Ce,Ie.lastBaseUpdate=me))}if(I!==null){var $e=R.baseState;ee=0,Ie=Ce=me=null,fe=I;do{var Le=fe.lane,Qe=fe.eventTime;if((C&Le)===Le){Ie!==null&&(Ie=Ie.next={eventTime:Qe,lane:0,tag:fe.tag,payload:fe.payload,callback:fe.callback,next:null});e:{var tt=l,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:As=!0}}fe.callback!==null&&fe.lane!==0&&(l.flags|=64,Le=R.effects,Le===null?R.effects=[fe]:Le.push(fe))}else Qe={eventTime:Qe,lane:Le,tag:fe.tag,payload:fe.payload,callback:fe.callback,next:null},Ie===null?(Ce=Ie=Qe,me=$e):Ie=Ie.next=Qe,ee|=Le;if(fe=fe.next,fe===null){if(fe=R.shared.pending,fe===null)break;Le=fe,fe=Le.next,Le.next=null,R.lastBaseUpdate=Le,R.shared.pending=null}}while(!0);if(Ie===null&&(me=$e),R.baseState=me,R.firstBaseUpdate=Ce,R.lastBaseUpdate=Ie,d=R.shared.interleaved,d!==null){R=d;do ee|=R.lane,R=R.next;while(R!==d)}else I===null&&(R.shared.lanes=0);Wl|=ee,l.lanes=ee,l.memoizedState=$e}}function IA(l,d,y){if(l=d.effects,d.effects=null,l!==null)for(d=0;d<l.length;d++){var C=l[d],R=C.callback;if(R!==null){if(C.callback=null,C=y,typeof R!="function")throw Error(r(191,R));R.call(C)}}}var Wd={},Vo=Es(Wd),qd=Es(Wd),Hd=Es(Wd);function zl(l){if(l===Wd)throw Error(r(174));return l}function g_(l,d){switch(Zt(Hd,d),Zt(qd,l),Zt(Vo,Wd),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)}rr(Vo),Zt(Vo,d)}function wc(){rr(Vo),rr(qd),rr(Hd)}function DA(l){zl(Hd.current);var d=zl(Vo.current),y=De(d,l.type);d!==y&&(Zt(qd,l),Zt(Vo,y))}function y_(l){qd.current===l&&(rr(Vo),rr(qd))}var br=Es(0);function dv(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 b_=[];function __(){for(var l=0;l<b_.length;l++)b_[l]._workInProgressVersionPrimary=null;b_.length=0}var hv=T.ReactCurrentDispatcher,x_=T.ReactCurrentBatchConfig,Vl=0,_r=null,Br=null,Hr=null,pv=!1,Gd=!1,Kd=0,DW=0;function dn(){throw Error(r(321))}function w_(l,d){if(d===null)return!1;for(var y=0;y<d.length&&y<l.length;y++)if(!oi(l[y],d[y]))return!1;return!0}function O_(l,d,y,C,R,I){if(Vl=I,_r=d,d.memoizedState=null,d.updateQueue=null,d.lanes=0,hv.current=l===null||l.memoizedState===null?UW:zW,l=y(C,R),Gd){I=0;do{if(Gd=!1,Kd=0,25<=I)throw Error(r(301));I+=1,Hr=Br=null,d.updateQueue=null,hv.current=VW,l=y(C,R)}while(Gd)}if(hv.current=gv,d=Br!==null&&Br.next!==null,Vl=0,Hr=Br=_r=null,pv=!1,d)throw Error(r(300));return l}function S_(){var l=Kd!==0;return Kd=0,l}function Wo(){var l={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Hr===null?_r.memoizedState=Hr=l:Hr=Hr.next=l,Hr}function Mi(){if(Br===null){var l=_r.alternate;l=l!==null?l.memoizedState:null}else l=Br.next;var d=Hr===null?_r.memoizedState:Hr.next;if(d!==null)Hr=d,Br=l;else{if(l===null)throw Error(r(310));Br=l,l={memoizedState:Br.memoizedState,baseState:Br.baseState,baseQueue:Br.baseQueue,queue:Br.queue,next:null},Hr===null?_r.memoizedState=Hr=l:Hr=Hr.next=l}return Hr}function Yd(l,d){return typeof d=="function"?d(l):d}function P_(l){var d=Mi(),y=d.queue;if(y===null)throw Error(r(311));y.lastRenderedReducer=l;var C=Br,R=C.baseQueue,I=y.pending;if(I!==null){if(R!==null){var ee=R.next;R.next=I.next,I.next=ee}C.baseQueue=R=I,y.pending=null}if(R!==null){I=R.next,C=C.baseState;var fe=ee=null,me=null,Ce=I;do{var Ie=Ce.lane;if((Vl&Ie)===Ie)me!==null&&(me=me.next={lane:0,action:Ce.action,hasEagerState:Ce.hasEagerState,eagerState:Ce.eagerState,next:null}),C=Ce.hasEagerState?Ce.eagerState:l(C,Ce.action);else{var $e={lane:Ie,action:Ce.action,hasEagerState:Ce.hasEagerState,eagerState:Ce.eagerState,next:null};me===null?(fe=me=$e,ee=C):me=me.next=$e,_r.lanes|=Ie,Wl|=Ie}Ce=Ce.next}while(Ce!==null&&Ce!==I);me===null?ee=C:me.next=fe,oi(C,d.memoizedState)||(Bn=!0),d.memoizedState=C,d.baseState=ee,d.baseQueue=me,y.lastRenderedState=C}if(l=y.interleaved,l!==null){R=l;do I=R.lane,_r.lanes|=I,Wl|=I,R=R.next;while(R!==l)}else R===null&&(y.lanes=0);return[d.memoizedState,y.dispatch]}function C_(l){var d=Mi(),y=d.queue;if(y===null)throw Error(r(311));y.lastRenderedReducer=l;var C=y.dispatch,R=y.pending,I=d.memoizedState;if(R!==null){y.pending=null;var ee=R=R.next;do I=l(I,ee.action),ee=ee.next;while(ee!==R);oi(I,d.memoizedState)||(Bn=!0),d.memoizedState=I,d.baseQueue===null&&(d.baseState=I),y.lastRenderedState=I}return[I,C]}function $A(){}function FA(l,d){var y=_r,C=Mi(),R=d(),I=!oi(C.memoizedState,R);if(I&&(C.memoizedState=R,Bn=!0),C=C.queue,E_(zA.bind(null,y,C,l),[l]),C.getSnapshot!==d||I||Hr!==null&&Hr.memoizedState.tag&1){if(y.flags|=2048,Zd(9,UA.bind(null,y,C,R,d),void 0,null),Gr===null)throw Error(r(349));Vl&30||BA(y,d,R)}return R}function BA(l,d,y){l.flags|=16384,l={getSnapshot:d,value:y},d=_r.updateQueue,d===null?(d={lastEffect:null,stores:null},_r.updateQueue=d,d.stores=[l]):(y=d.stores,y===null?d.stores=[l]:y.push(l))}function UA(l,d,y,C){d.value=y,d.getSnapshot=C,VA(d)&&WA(l)}function zA(l,d,y){return y(function(){VA(d)&&WA(l)})}function VA(l){var d=l.getSnapshot;l=l.value;try{var y=d();return!oi(l,y)}catch{return!0}}function WA(l){var d=ja(l,1);d!==null&&ho(d,l,1,-1)}function qA(l){var d=Wo();return typeof l=="function"&&(l=l()),d.memoizedState=d.baseState=l,l={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Yd,lastRenderedState:l},d.queue=l,l=l.dispatch=BW.bind(null,_r,l),[d.memoizedState,l]}function Zd(l,d,y,C){return l={tag:l,create:d,destroy:y,deps:C,next:null},d=_r.updateQueue,d===null?(d={lastEffect:null,stores:null},_r.updateQueue=d,d.lastEffect=l.next=l):(y=d.lastEffect,y===null?d.lastEffect=l.next=l:(C=y.next,y.next=l,l.next=C,d.lastEffect=l)),l}function HA(){return Mi().memoizedState}function mv(l,d,y,C){var R=Wo();_r.flags|=l,R.memoizedState=Zd(1|d,y,void 0,C===void 0?null:C)}function vv(l,d,y,C){var R=Mi();C=C===void 0?null:C;var I=void 0;if(Br!==null){var ee=Br.memoizedState;if(I=ee.destroy,C!==null&&w_(C,ee.deps)){R.memoizedState=Zd(d,y,I,C);return}}_r.flags|=l,R.memoizedState=Zd(1|d,y,I,C)}function GA(l,d){return mv(8390656,8,l,d)}function E_(l,d){return vv(2048,8,l,d)}function KA(l,d){return vv(4,2,l,d)}function YA(l,d){return vv(4,4,l,d)}function ZA(l,d){if(typeof d=="function")return l=l(),d(l),function(){d(null)};if(d!=null)return l=l(),d.current=l,function(){d.current=null}}function XA(l,d,y){return y=y!=null?y.concat([l]):null,vv(4,4,ZA.bind(null,d,l),y)}function T_(){}function QA(l,d){var y=Mi();d=d===void 0?null:d;var C=y.memoizedState;return C!==null&&d!==null&&w_(d,C[1])?C[0]:(y.memoizedState=[l,d],l)}function JA(l,d){var y=Mi();d=d===void 0?null:d;var C=y.memoizedState;return C!==null&&d!==null&&w_(d,C[1])?C[0]:(l=l(),y.memoizedState=[l,d],l)}function ek(l,d,y){return Vl&21?(oi(y,d)||(y=Rm(),_r.lanes|=y,Wl|=y,l.baseState=!0),d):(l.baseState&&(l.baseState=!1,Bn=!0),l.memoizedState=y)}function $W(l,d){var y=Rt;Rt=y!==0&&4>y?y:4,l(!0);var C=x_.transition;x_.transition={};try{l(!1),d()}finally{Rt=y,x_.transition=C}}function tk(){return Mi().memoizedState}function FW(l,d,y){var C=Ls(l);if(y={lane:C,action:y,hasEagerState:!1,eagerState:null,next:null},rk(l))nk(d,y);else if(y=NA(l,d,y,C),y!==null){var R=On();ho(y,l,C,R),ik(y,d,C)}}function BW(l,d,y){var C=Ls(l),R={lane:C,action:y,hasEagerState:!1,eagerState:null,next:null};if(rk(l))nk(d,R);else{var I=l.alternate;if(l.lanes===0&&(I===null||I.lanes===0)&&(I=d.lastRenderedReducer,I!==null))try{var ee=d.lastRenderedState,fe=I(ee,y);if(R.hasEagerState=!0,R.eagerState=fe,oi(fe,ee)){var me=d.interleaved;me===null?(R.next=R,m_(d)):(R.next=me.next,me.next=R),d.interleaved=R;return}}catch{}finally{}y=NA(l,d,R,C),y!==null&&(R=On(),ho(y,l,C,R),ik(y,d,C))}}function rk(l){var d=l.alternate;return l===_r||d!==null&&d===_r}function nk(l,d){Gd=pv=!0;var y=l.pending;y===null?d.next=d:(d.next=y.next,y.next=d),l.pending=d}function ik(l,d,y){if(y&4194240){var C=d.lanes;C&=l.pendingLanes,y|=C,d.lanes=y,no(l,y)}}var gv={readContext:Ni,useCallback:dn,useContext:dn,useEffect:dn,useImperativeHandle:dn,useInsertionEffect:dn,useLayoutEffect:dn,useMemo:dn,useReducer:dn,useRef:dn,useState:dn,useDebugValue:dn,useDeferredValue:dn,useTransition:dn,useMutableSource:dn,useSyncExternalStore:dn,useId:dn,unstable_isNewReconciler:!1},UW={readContext:Ni,useCallback:function(l,d){return Wo().memoizedState=[l,d===void 0?null:d],l},useContext:Ni,useEffect:GA,useImperativeHandle:function(l,d,y){return y=y!=null?y.concat([l]):null,mv(4194308,4,ZA.bind(null,d,l),y)},useLayoutEffect:function(l,d){return mv(4194308,4,l,d)},useInsertionEffect:function(l,d){return mv(4,2,l,d)},useMemo:function(l,d){var y=Wo();return d=d===void 0?null:d,l=l(),y.memoizedState=[l,d],l},useReducer:function(l,d,y){var C=Wo();return d=y!==void 0?y(d):d,C.memoizedState=C.baseState=d,l={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:d},C.queue=l,l=l.dispatch=FW.bind(null,_r,l),[C.memoizedState,l]},useRef:function(l){var d=Wo();return l={current:l},d.memoizedState=l},useState:qA,useDebugValue:T_,useDeferredValue:function(l){return Wo().memoizedState=l},useTransition:function(){var l=qA(!1),d=l[0];return l=$W.bind(null,l[1]),Wo().memoizedState=l,[d,l]},useMutableSource:function(){},useSyncExternalStore:function(l,d,y){var C=_r,R=Wo();if(sr){if(y===void 0)throw Error(r(407));y=y()}else{if(y=d(),Gr===null)throw Error(r(349));Vl&30||BA(C,d,y)}R.memoizedState=y;var I={value:y,getSnapshot:d};return R.queue=I,GA(zA.bind(null,C,I,l),[l]),C.flags|=2048,Zd(9,UA.bind(null,C,I,y,d),void 0,null),y},useId:function(){var l=Wo(),d=Gr.identifierPrefix;if(sr){var y=Ta,C=Ea;y=(C&~(1<<32-wt(C)-1)).toString(32)+y,d=":"+d+"R"+y,y=Kd++,0<y&&(d+="H"+y.toString(32)),d+=":"}else y=DW++,d=":"+d+"r"+y.toString(32)+":";return l.memoizedState=d},unstable_isNewReconciler:!1},zW={readContext:Ni,useCallback:QA,useContext:Ni,useEffect:E_,useImperativeHandle:XA,useInsertionEffect:KA,useLayoutEffect:YA,useMemo:JA,useReducer:P_,useRef:HA,useState:function(){return P_(Yd)},useDebugValue:T_,useDeferredValue:function(l){var d=Mi();return ek(d,Br.memoizedState,l)},useTransition:function(){var l=P_(Yd)[0],d=Mi().memoizedState;return[l,d]},useMutableSource:$A,useSyncExternalStore:FA,useId:tk,unstable_isNewReconciler:!1},VW={readContext:Ni,useCallback:QA,useContext:Ni,useEffect:E_,useImperativeHandle:XA,useInsertionEffect:KA,useLayoutEffect:YA,useMemo:JA,useReducer:C_,useRef:HA,useState:function(){return C_(Yd)},useDebugValue:T_,useDeferredValue:function(l){var d=Mi();return Br===null?d.memoizedState=l:ek(d,Br.memoizedState,l)},useTransition:function(){var l=C_(Yd)[0],d=Mi().memoizedState;return[l,d]},useMutableSource:$A,useSyncExternalStore:FA,useId:tk,unstable_isNewReconciler:!1};function uo(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 j_(l,d,y,C){d=l.memoizedState,y=y(C,d),y=y==null?d:G({},d,y),l.memoizedState=y,l.lanes===0&&(l.updateQueue.baseState=y)}var yv={isMounted:function(l){return(l=l._reactInternals)?Mo(l)===l:!1},enqueueSetState:function(l,d,y){l=l._reactInternals;var C=On(),R=Ls(l),I=Aa(C,R);I.payload=d,y!=null&&(I.callback=y),d=ks(l,I,R),d!==null&&(ho(d,l,R,C),cv(d,l,R))},enqueueReplaceState:function(l,d,y){l=l._reactInternals;var C=On(),R=Ls(l),I=Aa(C,R);I.tag=1,I.payload=d,y!=null&&(I.callback=y),d=ks(l,I,R),d!==null&&(ho(d,l,R,C),cv(d,l,R))},enqueueForceUpdate:function(l,d){l=l._reactInternals;var y=On(),C=Ls(l),R=Aa(y,C);R.tag=2,d!=null&&(R.callback=d),d=ks(l,R,C),d!==null&&(ho(d,l,C,y),cv(d,l,C))}};function ok(l,d,y,C,R,I,ee){return l=l.stateNode,typeof l.shouldComponentUpdate=="function"?l.shouldComponentUpdate(C,I,ee):d.prototype&&d.prototype.isPureReactComponent?!Fo(y,C)||!Fo(R,I):!0}function ak(l,d,y){var C=!1,R=Ts,I=d.contextType;return typeof I=="object"&&I!==null?I=Ni(I):(R=Fn(d)?$l:fn.current,C=d.contextTypes,I=(C=C!=null)?mc(l,R):Ts),d=new d(y,I),l.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=yv,l.stateNode=d,d._reactInternals=l,C&&(l=l.stateNode,l.__reactInternalMemoizedUnmaskedChildContext=R,l.__reactInternalMemoizedMaskedChildContext=I),d}function sk(l,d,y,C){l=d.state,typeof d.componentWillReceiveProps=="function"&&d.componentWillReceiveProps(y,C),typeof d.UNSAFE_componentWillReceiveProps=="function"&&d.UNSAFE_componentWillReceiveProps(y,C),d.state!==l&&yv.enqueueReplaceState(d,d.state,null)}function A_(l,d,y,C){var R=l.stateNode;R.props=y,R.state=l.memoizedState,R.refs={},v_(l);var I=d.contextType;typeof I=="object"&&I!==null?R.context=Ni(I):(I=Fn(d)?$l:fn.current,R.context=mc(l,I)),R.state=l.memoizedState,I=d.getDerivedStateFromProps,typeof I=="function"&&(j_(l,d,I,y),R.state=l.memoizedState),typeof d.getDerivedStateFromProps=="function"||typeof R.getSnapshotBeforeUpdate=="function"||typeof R.UNSAFE_componentWillMount!="function"&&typeof R.componentWillMount!="function"||(d=R.state,typeof R.componentWillMount=="function"&&R.componentWillMount(),typeof R.UNSAFE_componentWillMount=="function"&&R.UNSAFE_componentWillMount(),d!==R.state&&yv.enqueueReplaceState(R,R.state,null),fv(l,y,R,C),R.state=l.memoizedState),typeof R.componentDidMount=="function"&&(l.flags|=4194308)}function Oc(l,d){try{var y="",C=d;do y+=ce(C),C=C.return;while(C);var R=y}catch(I){R=`
Error generating stack: `+I.message+`
`+I.stack}return{value:l,source:d,stack:R,digest:null}}function k_(l,d,y){return{value:l,source:null,stack:y??null,digest:d??null}}function R_(l,d){try{console.error(d.value)}catch(y){setTimeout(function(){throw y})}}var WW=typeof WeakMap=="function"?WeakMap:Map;function lk(l,d,y){y=Aa(-1,y),y.tag=3,y.payload={element:null};var C=d.value;return y.callback=function(){Pv||(Pv=!0,G_=C),R_(l,d)},y}function uk(l,d,y){y=Aa(-1,y),y.tag=3;var C=l.type.getDerivedStateFromError;if(typeof C=="function"){var R=d.value;y.payload=function(){return C(R)},y.callback=function(){R_(l,d)}}var I=l.stateNode;return I!==null&&typeof I.componentDidCatch=="function"&&(y.callback=function(){R_(l,d),typeof C!="function"&&(Ns===null?Ns=new Set([this]):Ns.add(this));var ee=d.stack;this.componentDidCatch(d.value,{componentStack:ee!==null?ee:""})}),y}function ck(l,d,y){var C=l.pingCache;if(C===null){C=l.pingCache=new WW;var R=new Set;C.set(d,R)}else R=C.get(d),R===void 0&&(R=new Set,C.set(d,R));R.has(y)||(R.add(y),l=iq.bind(null,l,d,y),d.then(l,l))}function fk(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 dk(l,d,y,C,R){return l.mode&1?(l.flags|=65536,l.lanes=R,l):(l===d?l.flags|=65536:(l.flags|=128,y.flags|=131072,y.flags&=-52805,y.tag===1&&(y.alternate===null?y.tag=17:(d=Aa(-1,1),d.tag=2,ks(y,d,1))),y.lanes|=1),l)}var qW=T.ReactCurrentOwner,Bn=!1;function wn(l,d,y,C){d.child=l===null?RA(d,null,y,C):bc(d,l.child,y,C)}function hk(l,d,y,C,R){y=y.render;var I=d.ref;return xc(d,R),C=O_(l,d,y,C,I,R),y=S_(),l!==null&&!Bn?(d.updateQueue=l.updateQueue,d.flags&=-2053,l.lanes&=~R,ka(l,d,R)):(sr&&y&&a_(d),d.flags|=1,wn(l,d,C,R),d.child)}function pk(l,d,y,C,R){if(l===null){var I=y.type;return typeof I=="function"&&!e1(I)&&I.defaultProps===void 0&&y.compare===null&&y.defaultProps===void 0?(d.tag=15,d.type=I,mk(l,d,I,C,R)):(l=kv(y.type,null,C,d,d.mode,R),l.ref=d.ref,l.return=d,d.child=l)}if(I=l.child,!(l.lanes&R)){var ee=I.memoizedProps;if(y=y.compare,y=y!==null?y:Fo,y(ee,C)&&l.ref===d.ref)return ka(l,d,R)}return d.flags|=1,l=Ds(I,C),l.ref=d.ref,l.return=d,d.child=l}function mk(l,d,y,C,R){if(l!==null){var I=l.memoizedProps;if(Fo(I,C)&&l.ref===d.ref)if(Bn=!1,d.pendingProps=C=I,(l.lanes&R)!==0)l.flags&131072&&(Bn=!0);else return d.lanes=l.lanes,ka(l,d,R)}return N_(l,d,y,C,R)}function vk(l,d,y){var C=d.pendingProps,R=C.children,I=l!==null?l.memoizedState:null;if(C.mode==="hidden")if(!(d.mode&1))d.memoizedState={baseLanes:0,cachePool:null,transitions:null},Zt(Pc,ui),ui|=y;else{if(!(y&1073741824))return l=I!==null?I.baseLanes|y:y,d.lanes=d.childLanes=1073741824,d.memoizedState={baseLanes:l,cachePool:null,transitions:null},d.updateQueue=null,Zt(Pc,ui),ui|=l,null;d.memoizedState={baseLanes:0,cachePool:null,transitions:null},C=I!==null?I.baseLanes:y,Zt(Pc,ui),ui|=C}else I!==null?(C=I.baseLanes|y,d.memoizedState=null):C=y,Zt(Pc,ui),ui|=C;return wn(l,d,R,y),d.child}function gk(l,d){var y=d.ref;(l===null&&y!==null||l!==null&&l.ref!==y)&&(d.flags|=512,d.flags|=2097152)}function N_(l,d,y,C,R){var I=Fn(y)?$l:fn.current;return I=mc(d,I),xc(d,R),y=O_(l,d,y,C,I,R),C=S_(),l!==null&&!Bn?(d.updateQueue=l.updateQueue,d.flags&=-2053,l.lanes&=~R,ka(l,d,R)):(sr&&C&&a_(d),d.flags|=1,wn(l,d,y,R),d.child)}function yk(l,d,y,C,R){if(Fn(y)){var I=!0;rv(d)}else I=!1;if(xc(d,R),d.stateNode===null)_v(l,d),ak(d,y,C),A_(d,y,C,R),C=!0;else if(l===null){var ee=d.stateNode,fe=d.memoizedProps;ee.props=fe;var me=ee.context,Ce=y.contextType;typeof Ce=="object"&&Ce!==null?Ce=Ni(Ce):(Ce=Fn(y)?$l:fn.current,Ce=mc(d,Ce));var Ie=y.getDerivedStateFromProps,$e=typeof Ie=="function"||typeof ee.getSnapshotBeforeUpdate=="function";$e||typeof ee.UNSAFE_componentWillReceiveProps!="function"&&typeof ee.componentWillReceiveProps!="function"||(fe!==C||me!==Ce)&&sk(d,ee,C,Ce),As=!1;var Le=d.memoizedState;ee.state=Le,fv(d,C,ee,R),me=d.memoizedState,fe!==C||Le!==me||$n.current||As?(typeof Ie=="function"&&(j_(d,y,Ie,C),me=d.memoizedState),(fe=As||ok(d,y,fe,C,Le,me,Ce))?($e||typeof ee.UNSAFE_componentWillMount!="function"&&typeof ee.componentWillMount!="function"||(typeof ee.componentWillMount=="function"&&ee.componentWillMount(),typeof ee.UNSAFE_componentWillMount=="function"&&ee.UNSAFE_componentWillMount()),typeof ee.componentDidMount=="function"&&(d.flags|=4194308)):(typeof ee.componentDidMount=="function"&&(d.flags|=4194308),d.memoizedProps=C,d.memoizedState=me),ee.props=C,ee.state=me,ee.context=Ce,C=fe):(typeof ee.componentDidMount=="function"&&(d.flags|=4194308),C=!1)}else{ee=d.stateNode,MA(l,d),fe=d.memoizedProps,Ce=d.type===d.elementType?fe:uo(d.type,fe),ee.props=Ce,$e=d.pendingProps,Le=ee.context,me=y.contextType,typeof me=="object"&&me!==null?me=Ni(me):(me=Fn(y)?$l:fn.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)&&sk(d,ee,C,me),As=!1,Le=d.memoizedState,ee.state=Le,fv(d,C,ee,R);var tt=d.memoizedState;fe!==$e||Le!==tt||$n.current||As?(typeof Qe=="function"&&(j_(d,y,Qe,C),tt=d.memoizedState),(Ce=As||ok(d,y,Ce,C,Le,tt,me)||!1)?(Ie||typeof ee.UNSAFE_componentWillUpdate!="function"&&typeof ee.componentWillUpdate!="function"||(typeof ee.componentWillUpdate=="function"&&ee.componentWillUpdate(C,tt,me),typeof ee.UNSAFE_componentWillUpdate=="function"&&ee.UNSAFE_componentWillUpdate(C,tt,me)),typeof ee.componentDidUpdate=="function"&&(d.flags|=4),typeof ee.getSnapshotBeforeUpdate=="function"&&(d.flags|=1024)):(typeof ee.componentDidUpdate!="function"||fe===l.memoizedProps&&Le===l.memoizedState||(d.flags|=4),typeof ee.getSnapshotBeforeUpdate!="function"||fe===l.memoizedProps&&Le===l.memoizedState||(d.flags|=1024),d.memoizedProps=C,d.memoizedState=tt),ee.props=C,ee.state=tt,ee.context=me,C=Ce):(typeof ee.componentDidUpdate!="function"||fe===l.memoizedProps&&Le===l.memoizedState||(d.flags|=4),typeof ee.getSnapshotBeforeUpdate!="function"||fe===l.memoizedProps&&Le===l.memoizedState||(d.flags|=1024),C=!1)}return M_(l,d,y,C,I,R)}function M_(l,d,y,C,R,I){gk(l,d);var ee=(d.flags&128)!==0;if(!C&&!ee)return R&&OA(d,y,!1),ka(l,d,I);C=d.stateNode,qW.current=d;var fe=ee&&typeof y.getDerivedStateFromError!="function"?null:C.render();return d.flags|=1,l!==null&&ee?(d.child=bc(d,l.child,null,I),d.child=bc(d,null,fe,I)):wn(l,d,fe,I),d.memoizedState=C.state,R&&OA(d,y,!0),d.child}function bk(l){var d=l.stateNode;d.pendingContext?xA(l,d.pendingContext,d.pendingContext!==d.context):d.context&&xA(l,d.context,!1),g_(l,d.containerInfo)}function _k(l,d,y,C,R){return yc(),c_(R),d.flags|=256,wn(l,d,y,C),d.child}var L_={dehydrated:null,treeContext:null,retryLane:0};function I_(l){return{baseLanes:l,cachePool:null,transitions:null}}function xk(l,d,y){var C=d.pendingProps,R=br.current,I=!1,ee=(d.flags&128)!==0,fe;if((fe=ee)||(fe=l!==null&&l.memoizedState===null?!1:(R&2)!==0),fe?(I=!0,d.flags&=-129):(l===null||l.memoizedState!==null)&&(R|=1),Zt(br,R&1),l===null)return u_(d),l=d.memoizedState,l!==null&&(l=l.dehydrated,l!==null)?(d.mode&1?l.data==="$!"?d.lanes=8:d.lanes=1073741824:d.lanes=1,null):(ee=C.children,l=C.fallback,I?(C=d.mode,I=d.child,ee={mode:"hidden",children:ee},!(C&1)&&I!==null?(I.childLanes=0,I.pendingProps=ee):I=Rv(ee,C,0,null),l=Kl(l,C,y,null),I.return=d,l.return=d,I.sibling=l,d.child=I,d.child.memoizedState=I_(y),d.memoizedState=L_,l):D_(d,ee));if(R=l.memoizedState,R!==null&&(fe=R.dehydrated,fe!==null))return HW(l,d,ee,C,fe,R,y);if(I){I=C.fallback,ee=d.mode,R=l.child,fe=R.sibling;var me={mode:"hidden",children:C.children};return!(ee&1)&&d.child!==R?(C=d.child,C.childLanes=0,C.pendingProps=me,d.deletions=null):(C=Ds(R,me),C.subtreeFlags=R.subtreeFlags&14680064),fe!==null?I=Ds(fe,I):(I=Kl(I,ee,y,null),I.flags|=2),I.return=d,C.return=d,C.sibling=I,d.child=C,C=I,I=d.child,ee=l.child.memoizedState,ee=ee===null?I_(y):{baseLanes:ee.baseLanes|y,cachePool:null,transitions:ee.transitions},I.memoizedState=ee,I.childLanes=l.childLanes&~y,d.memoizedState=L_,C}return I=l.child,l=I.sibling,C=Ds(I,{mode:"visible",children:C.children}),!(d.mode&1)&&(C.lanes=y),C.return=d,C.sibling=null,l!==null&&(y=d.deletions,y===null?(d.deletions=[l],d.flags|=16):y.push(l)),d.child=C,d.memoizedState=null,C}function D_(l,d){return d=Rv({mode:"visible",children:d},l.mode,0,null),d.return=l,l.child=d}function bv(l,d,y,C){return C!==null&&c_(C),bc(d,l.child,null,y),l=D_(d,d.pendingProps.children),l.flags|=2,d.memoizedState=null,l}function HW(l,d,y,C,R,I,ee){if(y)return d.flags&256?(d.flags&=-257,C=k_(Error(r(422))),bv(l,d,ee,C)):d.memoizedState!==null?(d.child=l.child,d.flags|=128,null):(I=C.fallback,R=d.mode,C=Rv({mode:"visible",children:C.children},R,0,null),I=Kl(I,R,ee,null),I.flags|=2,C.return=d,I.return=d,C.sibling=I,d.child=C,d.mode&1&&bc(d,l.child,null,ee),d.child.memoizedState=I_(ee),d.memoizedState=L_,I);if(!(d.mode&1))return bv(l,d,ee,null);if(R.data==="$!"){if(C=R.nextSibling&&R.nextSibling.dataset,C)var fe=C.dgst;return C=fe,I=Error(r(419)),C=k_(I,C,void 0),bv(l,d,ee,C)}if(fe=(ee&l.childLanes)!==0,Bn||fe){if(C=Gr,C!==null){switch(ee&-ee){case 4:R=2;break;case 16:R=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:R=32;break;case 536870912:R=268435456;break;default:R=0}R=R&(C.suspendedLanes|ee)?0:R,R!==0&&R!==I.retryLane&&(I.retryLane=R,ja(l,R),ho(C,l,R,-1))}return J_(),C=k_(Error(r(421))),bv(l,d,ee,C)}return R.data==="$?"?(d.flags|=128,d.child=l.child,d=oq.bind(null,l),R._reactRetry=d,null):(l=I.treeContext,li=zo(R.nextSibling),si=d,sr=!0,lo=null,l!==null&&(ki[Ri++]=Ea,ki[Ri++]=Ta,ki[Ri++]=Fl,Ea=l.id,Ta=l.overflow,Fl=d),d=D_(d,C.children),d.flags|=4096,d)}function wk(l,d,y){l.lanes|=d;var C=l.alternate;C!==null&&(C.lanes|=d),p_(l.return,d,y)}function $_(l,d,y,C,R){var I=l.memoizedState;I===null?l.memoizedState={isBackwards:d,rendering:null,renderingStartTime:0,last:C,tail:y,tailMode:R}:(I.isBackwards=d,I.rendering=null,I.renderingStartTime=0,I.last=C,I.tail=y,I.tailMode=R)}function Ok(l,d,y){var C=d.pendingProps,R=C.revealOrder,I=C.tail;if(wn(l,d,C.children,y),C=br.current,C&2)C=C&1|2,d.flags|=128;else{if(l!==null&&l.flags&128)e:for(l=d.child;l!==null;){if(l.tag===13)l.memoizedState!==null&&wk(l,y,d);else if(l.tag===19)wk(l,y,d);else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===d)break e;for(;l.sibling===null;){if(l.return===null||l.return===d)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}C&=1}if(Zt(br,C),!(d.mode&1))d.memoizedState=null;else switch(R){case"forwards":for(y=d.child,R=null;y!==null;)l=y.alternate,l!==null&&dv(l)===null&&(R=y),y=y.sibling;y=R,y===null?(R=d.child,d.child=null):(R=y.sibling,y.sibling=null),$_(d,!1,R,y,I);break;case"backwards":for(y=null,R=d.child,d.child=null;R!==null;){if(l=R.alternate,l!==null&&dv(l)===null){d.child=R;break}l=R.sibling,R.sibling=y,y=R,R=l}$_(d,!0,y,null,I);break;case"together":$_(d,!1,null,null,void 0);break;default:d.memoizedState=null}return d.child}function _v(l,d){!(d.mode&1)&&l!==null&&(l.alternate=null,d.alternate=null,d.flags|=2)}function ka(l,d,y){if(l!==null&&(d.dependencies=l.dependencies),Wl|=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=Ds(l,l.pendingProps),d.child=y,y.return=d;l.sibling!==null;)l=l.sibling,y=y.sibling=Ds(l,l.pendingProps),y.return=d;y.sibling=null}return d.child}function GW(l,d,y){switch(d.tag){case 3:bk(d),yc();break;case 5:DA(d);break;case 1:Fn(d.type)&&rv(d);break;case 4:g_(d,d.stateNode.containerInfo);break;case 10:var C=d.type._context,R=d.memoizedProps.value;Zt(lv,C._currentValue),C._currentValue=R;break;case 13:if(C=d.memoizedState,C!==null)return C.dehydrated!==null?(Zt(br,br.current&1),d.flags|=128,null):y&d.child.childLanes?xk(l,d,y):(Zt(br,br.current&1),l=ka(l,d,y),l!==null?l.sibling:null);Zt(br,br.current&1);break;case 19:if(C=(y&d.childLanes)!==0,l.flags&128){if(C)return Ok(l,d,y);d.flags|=128}if(R=d.memoizedState,R!==null&&(R.rendering=null,R.tail=null,R.lastEffect=null),Zt(br,br.current),C)break;return null;case 22:case 23:return d.lanes=0,vk(l,d,y)}return ka(l,d,y)}var Sk,F_,Pk,Ck;Sk=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}},F_=function(){},Pk=function(l,d,y,C){var R=l.memoizedProps;if(R!==C){l=d.stateNode,zl(Vo.current);var I=null;switch(y){case"input":R=Se(l,R),C=Se(l,C),I=[];break;case"select":R=G({},R,{value:void 0}),C=G({},C,{value:void 0}),I=[];break;case"textarea":R=qe(l,R),C=qe(l,C),I=[];break;default:typeof R.onClick!="function"&&typeof C.onClick=="function"&&(l.onclick=Re)}Ir(y,C);var ee;y=null;for(Ce in R)if(!C.hasOwnProperty(Ce)&&R.hasOwnProperty(Ce)&&R[Ce]!=null)if(Ce==="style"){var fe=R[Ce];for(ee in fe)fe.hasOwnProperty(ee)&&(y||(y={}),y[ee]="")}else Ce!=="dangerouslySetInnerHTML"&&Ce!=="children"&&Ce!=="suppressContentEditableWarning"&&Ce!=="suppressHydrationWarning"&&Ce!=="autoFocus"&&(i.hasOwnProperty(Ce)?I||(I=[]):(I=I||[]).push(Ce,null));for(Ce in C){var me=C[Ce];if(fe=R!=null?R[Ce]:void 0,C.hasOwnProperty(Ce)&&me!==fe&&(me!=null||fe!=null))if(Ce==="style")if(fe){for(ee in fe)!fe.hasOwnProperty(ee)||me&&me.hasOwnProperty(ee)||(y||(y={}),y[ee]="");for(ee in me)me.hasOwnProperty(ee)&&fe[ee]!==me[ee]&&(y||(y={}),y[ee]=me[ee])}else y||(I||(I=[]),I.push(Ce,y)),y=me;else Ce==="dangerouslySetInnerHTML"?(me=me?me.__html:void 0,fe=fe?fe.__html:void 0,me!=null&&fe!==me&&(I=I||[]).push(Ce,me)):Ce==="children"?typeof me!="string"&&typeof me!="number"||(I=I||[]).push(Ce,""+me):Ce!=="suppressContentEditableWarning"&&Ce!=="suppressHydrationWarning"&&(i.hasOwnProperty(Ce)?(me!=null&&Ce==="onScroll"&&zt("scroll",l),I||fe===me||(I=[])):(I=I||[]).push(Ce,me))}y&&(I=I||[]).push("style",y);var Ce=I;(d.updateQueue=Ce)&&(d.flags|=4)}},Ck=function(l,d,y,C){y!==C&&(d.flags|=4)};function Xd(l,d){if(!sr)switch(l.tailMode){case"hidden":d=l.tail;for(var y=null;d!==null;)d.alternate!==null&&(y=d),d=d.sibling;y===null?l.tail=null:y.sibling=null;break;case"collapsed":y=l.tail;for(var C=null;y!==null;)y.alternate!==null&&(C=y),y=y.sibling;C===null?d||l.tail===null?l.tail=null:l.tail.sibling=null:C.sibling=null}}function hn(l){var d=l.alternate!==null&&l.alternate.child===l.child,y=0,C=0;if(d)for(var R=l.child;R!==null;)y|=R.lanes|R.childLanes,C|=R.subtreeFlags&14680064,C|=R.flags&14680064,R.return=l,R=R.sibling;else for(R=l.child;R!==null;)y|=R.lanes|R.childLanes,C|=R.subtreeFlags,C|=R.flags,R.return=l,R=R.sibling;return l.subtreeFlags|=C,l.childLanes=y,d}function KW(l,d,y){var C=d.pendingProps;switch(s_(d),d.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return hn(d),null;case 1:return Fn(d.type)&&tv(),hn(d),null;case 3:return C=d.stateNode,wc(),rr($n),rr(fn),__(),C.pendingContext&&(C.context=C.pendingContext,C.pendingContext=null),(l===null||l.child===null)&&(av(d)?d.flags|=4:l===null||l.memoizedState.isDehydrated&&!(d.flags&256)||(d.flags|=1024,lo!==null&&(Z_(lo),lo=null))),F_(l,d),hn(d),null;case 5:y_(d);var R=zl(Hd.current);if(y=d.type,l!==null&&d.stateNode!=null)Pk(l,d,y,C,R),l.ref!==d.ref&&(d.flags|=512,d.flags|=2097152);else{if(!C){if(d.stateNode===null)throw Error(r(166));return hn(d),null}if(l=zl(Vo.current),av(d)){C=d.stateNode,y=d.type;var I=d.memoizedProps;switch(C[Ai]=d,C[Ps]=I,l=(d.mode&1)!==0,y){case"dialog":zt("cancel",C),zt("close",C);break;case"iframe":case"object":case"embed":zt("load",C);break;case"video":case"audio":for(R=0;R<ws.length;R++)zt(ws[R],C);break;case"source":zt("error",C);break;case"img":case"image":case"link":zt("error",C),zt("load",C);break;case"details":zt("toggle",C);break;case"input":Fe(C,I),zt("invalid",C);break;case"select":C._wrapperState={wasMultiple:!!I.multiple},zt("invalid",C);break;case"textarea":ye(C,I),zt("invalid",C)}Ir(y,I),R=null;for(var ee in I)if(I.hasOwnProperty(ee)){var fe=I[ee];ee==="children"?typeof fe=="string"?C.textContent!==fe&&(I.suppressHydrationWarning!==!0&&Pe(C.textContent,fe,l),R=["children",fe]):typeof fe=="number"&&C.textContent!==""+fe&&(I.suppressHydrationWarning!==!0&&Pe(C.textContent,fe,l),R=["children",""+fe]):i.hasOwnProperty(ee)&&fe!=null&&ee==="onScroll"&&zt("scroll",C)}switch(y){case"input":ue(C),je(C,I,!0);break;case"textarea":ue(C),Ae(C);break;case"select":case"option":break;default:typeof I.onClick=="function"&&(C.onclick=Re)}C=R,d.updateQueue=C,C!==null&&(d.flags|=4)}else{ee=R.nodeType===9?R:R.ownerDocument,l==="http://www.w3.org/1999/xhtml"&&(l=ke(y)),l==="http://www.w3.org/1999/xhtml"?y==="script"?(l=ee.createElement("div"),l.innerHTML="<script><\/script>",l=l.removeChild(l.firstChild)):typeof C.is=="string"?l=ee.createElement(y,{is:C.is}):(l=ee.createElement(y),y==="select"&&(ee=l,C.multiple?ee.multiple=!0:C.size&&(ee.size=C.size))):l=ee.createElementNS(l,y),l[Ai]=d,l[Ps]=C,Sk(l,d,!1,!1),d.stateNode=l;e:{switch(ee=Mn(y,C),y){case"dialog":zt("cancel",l),zt("close",l),R=C;break;case"iframe":case"object":case"embed":zt("load",l),R=C;break;case"video":case"audio":for(R=0;R<ws.length;R++)zt(ws[R],l);R=C;break;case"source":zt("error",l),R=C;break;case"img":case"image":case"link":zt("error",l),zt("load",l),R=C;break;case"details":zt("toggle",l),R=C;break;case"input":Fe(l,C),R=Se(l,C),zt("invalid",l);break;case"option":R=C;break;case"select":l._wrapperState={wasMultiple:!!C.multiple},R=G({},C,{value:void 0}),zt("invalid",l);break;case"textarea":ye(l,C),R=qe(l,C),zt("invalid",l);break;default:R=C}Ir(y,R),fe=R;for(I in fe)if(fe.hasOwnProperty(I)){var me=fe[I];I==="style"?Kt(l,me):I==="dangerouslySetInnerHTML"?(me=me?me.__html:void 0,me!=null&&Xe(l,me)):I==="children"?typeof me=="string"?(y!=="textarea"||me!=="")&&bt(l,me):typeof me=="number"&&bt(l,""+me):I!=="suppressContentEditableWarning"&&I!=="suppressHydrationWarning"&&I!=="autoFocus"&&(i.hasOwnProperty(I)?me!=null&&I==="onScroll"&&zt("scroll",l):me!=null&&E(l,I,me,ee))}switch(y){case"input":ue(l),je(l,C,!1);break;case"textarea":ue(l),Ae(l);break;case"option":C.value!=null&&l.setAttribute("value",""+M(C.value));break;case"select":l.multiple=!!C.multiple,I=C.value,I!=null?Be(l,!!C.multiple,I,!1):C.defaultValue!=null&&Be(l,!!C.multiple,C.defaultValue,!0);break;default:typeof R.onClick=="function"&&(l.onclick=Re)}switch(y){case"button":case"input":case"select":case"textarea":C=!!C.autoFocus;break e;case"img":C=!0;break e;default:C=!1}}C&&(d.flags|=4)}d.ref!==null&&(d.flags|=512,d.flags|=2097152)}return hn(d),null;case 6:if(l&&d.stateNode!=null)Ck(l,d,l.memoizedProps,C);else{if(typeof C!="string"&&d.stateNode===null)throw Error(r(166));if(y=zl(Hd.current),zl(Vo.current),av(d)){if(C=d.stateNode,y=d.memoizedProps,C[Ai]=d,(I=C.nodeValue!==y)&&(l=si,l!==null))switch(l.tag){case 3:Pe(C.nodeValue,y,(l.mode&1)!==0);break;case 5:l.memoizedProps.suppressHydrationWarning!==!0&&Pe(C.nodeValue,y,(l.mode&1)!==0)}I&&(d.flags|=4)}else C=(y.nodeType===9?y:y.ownerDocument).createTextNode(C),C[Ai]=d,d.stateNode=C}return hn(d),null;case 13:if(rr(br),C=d.memoizedState,l===null||l.memoizedState!==null&&l.memoizedState.dehydrated!==null){if(sr&&li!==null&&d.mode&1&&!(d.flags&128))jA(),yc(),d.flags|=98560,I=!1;else if(I=av(d),C!==null&&C.dehydrated!==null){if(l===null){if(!I)throw Error(r(318));if(I=d.memoizedState,I=I!==null?I.dehydrated:null,!I)throw Error(r(317));I[Ai]=d}else yc(),!(d.flags&128)&&(d.memoizedState=null),d.flags|=4;hn(d),I=!1}else lo!==null&&(Z_(lo),lo=null),I=!0;if(!I)return d.flags&65536?d:null}return d.flags&128?(d.lanes=y,d):(C=C!==null,C!==(l!==null&&l.memoizedState!==null)&&C&&(d.child.flags|=8192,d.mode&1&&(l===null||br.current&1?Ur===0&&(Ur=3):J_())),d.updateQueue!==null&&(d.flags|=4),hn(d),null);case 4:return wc(),F_(l,d),l===null&&Os(d.stateNode.containerInfo),hn(d),null;case 10:return h_(d.type._context),hn(d),null;case 17:return Fn(d.type)&&tv(),hn(d),null;case 19:if(rr(br),I=d.memoizedState,I===null)return hn(d),null;if(C=(d.flags&128)!==0,ee=I.rendering,ee===null)if(C)Xd(I,!1);else{if(Ur!==0||l!==null&&l.flags&128)for(l=d.child;l!==null;){if(ee=dv(l),ee!==null){for(d.flags|=128,Xd(I,!1),C=ee.updateQueue,C!==null&&(d.updateQueue=C,d.flags|=4),d.subtreeFlags=0,C=y,y=d.child;y!==null;)I=y,l=C,I.flags&=14680066,ee=I.alternate,ee===null?(I.childLanes=0,I.lanes=l,I.child=null,I.subtreeFlags=0,I.memoizedProps=null,I.memoizedState=null,I.updateQueue=null,I.dependencies=null,I.stateNode=null):(I.childLanes=ee.childLanes,I.lanes=ee.lanes,I.child=ee.child,I.subtreeFlags=0,I.deletions=null,I.memoizedProps=ee.memoizedProps,I.memoizedState=ee.memoizedState,I.updateQueue=ee.updateQueue,I.type=ee.type,l=ee.dependencies,I.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),y=y.sibling;return Zt(br,br.current&1|2),d.child}l=l.sibling}I.tail!==null&&gr()>Cc&&(d.flags|=128,C=!0,Xd(I,!1),d.lanes=4194304)}else{if(!C)if(l=dv(ee),l!==null){if(d.flags|=128,C=!0,y=l.updateQueue,y!==null&&(d.updateQueue=y,d.flags|=4),Xd(I,!0),I.tail===null&&I.tailMode==="hidden"&&!ee.alternate&&!sr)return hn(d),null}else 2*gr()-I.renderingStartTime>Cc&&y!==1073741824&&(d.flags|=128,C=!0,Xd(I,!1),d.lanes=4194304);I.isBackwards?(ee.sibling=d.child,d.child=ee):(y=I.last,y!==null?y.sibling=ee:d.child=ee,I.last=ee)}return I.tail!==null?(d=I.tail,I.rendering=d,I.tail=d.sibling,I.renderingStartTime=gr(),d.sibling=null,y=br.current,Zt(br,C?y&1|2:y&1),d):(hn(d),null);case 22:case 23:return Q_(),C=d.memoizedState!==null,l!==null&&l.memoizedState!==null!==C&&(d.flags|=8192),C&&d.mode&1?ui&1073741824&&(hn(d),d.subtreeFlags&6&&(d.flags|=8192)):hn(d),null;case 24:return null;case 25:return null}throw Error(r(156,d.tag))}function YW(l,d){switch(s_(d),d.tag){case 1:return Fn(d.type)&&tv(),l=d.flags,l&65536?(d.flags=l&-65537|128,d):null;case 3:return wc(),rr($n),rr(fn),__(),l=d.flags,l&65536&&!(l&128)?(d.flags=l&-65537|128,d):null;case 5:return y_(d),null;case 13:if(rr(br),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 rr(br),null;case 4:return wc(),null;case 10:return h_(d.type._context),null;case 22:case 23:return Q_(),null;case 24:return null;default:return null}}var xv=!1,pn=!1,ZW=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(C){Or(l,d,C)}else y.current=null}function B_(l,d,y){try{y()}catch(C){Or(l,d,C)}}var Ek=!1;function XW(l,d){if(Ze=Al,l=Md(),Ld(l)){if("selectionStart"in l)var y={start:l.selectionStart,end:l.selectionEnd};else e:{y=(y=l.ownerDocument)&&y.defaultView||window;var C=y.getSelection&&y.getSelection();if(C&&C.rangeCount!==0){y=C.anchorNode;var R=C.anchorOffset,I=C.focusNode;C=C.focusOffset;try{y.nodeType,I.nodeType}catch{y=null;break e}var ee=0,fe=-1,me=-1,Ce=0,Ie=0,$e=l,Le=null;t:for(;;){for(var Qe;$e!==y||R!==0&&$e.nodeType!==3||(fe=ee+R),$e!==I||C!==0&&$e.nodeType!==3||(me=ee+C),$e.nodeType===3&&(ee+=$e.nodeValue.length),(Qe=$e.firstChild)!==null;)Le=$e,$e=Qe;for(;;){if($e===l)break t;if(Le===y&&++Ce===R&&(fe=ee),Le===I&&++Ie===C&&(me=ee),(Qe=$e.nextSibling)!==null)break;$e=Le,Le=$e.parentNode}$e=Qe}y=fe===-1||me===-1?null:{start:fe,end:me}}else y=null}y=y||{start:0,end:0}}else y=null;for(st={focusedElem:l,selectionRange:y},Al=!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:uo(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){Or(d,d.return,We)}if(l=d.sibling,l!==null){l.return=d.return,Je=l;break}Je=d.return}return tt=Ek,Ek=!1,tt}function Qd(l,d,y){var C=d.updateQueue;if(C=C!==null?C.lastEffect:null,C!==null){var R=C=C.next;do{if((R.tag&l)===l){var I=R.destroy;R.destroy=void 0,I!==void 0&&B_(d,y,I)}R=R.next}while(R!==C)}}function wv(l,d){if(d=d.updateQueue,d=d!==null?d.lastEffect:null,d!==null){var y=d=d.next;do{if((y.tag&l)===l){var C=y.create;y.destroy=C()}y=y.next}while(y!==d)}}function U_(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 Tk(l){var d=l.alternate;d!==null&&(l.alternate=null,Tk(d)),l.child=null,l.deletions=null,l.sibling=null,l.tag===5&&(d=l.stateNode,d!==null&&(delete d[Ai],delete d[Ps],delete d[Cs],delete d[r_],delete d[n_])),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 jk(l){return l.tag===5||l.tag===3||l.tag===4}function Ak(l){e:for(;;){for(;l.sibling===null;){if(l.return===null||jk(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 z_(l,d,y){var C=l.tag;if(C===5||C===6)l=l.stateNode,d?y.nodeType===8?y.parentNode.insertBefore(l,d):y.insertBefore(l,d):(y.nodeType===8?(d=y.parentNode,d.insertBefore(l,y)):(d=y,d.appendChild(l)),y=y._reactRootContainer,y!=null||d.onclick!==null||(d.onclick=Re));else if(C!==4&&(l=l.child,l!==null))for(z_(l,d,y),l=l.sibling;l!==null;)z_(l,d,y),l=l.sibling}function V_(l,d,y){var C=l.tag;if(C===5||C===6)l=l.stateNode,d?y.insertBefore(l,d):y.appendChild(l);else if(C!==4&&(l=l.child,l!==null))for(V_(l,d,y),l=l.sibling;l!==null;)V_(l,d,y),l=l.sibling}var rn=null,co=!1;function Rs(l,d,y){for(y=y.child;y!==null;)kk(l,d,y),y=y.sibling}function kk(l,d,y){if(Jn&&typeof Jn.onCommitFiberUnmount=="function")try{Jn.onCommitFiberUnmount(Sl,y)}catch{}switch(y.tag){case 5:pn||Sc(y,d);case 6:var C=rn,R=co;rn=null,Rs(l,d,y),rn=C,co=R,rn!==null&&(co?(l=rn,y=y.stateNode,l.nodeType===8?l.parentNode.removeChild(y):l.removeChild(y)):rn.removeChild(y.stateNode));break;case 18:rn!==null&&(co?(l=rn,y=y.stateNode,l.nodeType===8?zd(l.parentNode,y):l.nodeType===1&&zd(l,y),ri(l)):zd(rn,y.stateNode));break;case 4:C=rn,R=co,rn=y.stateNode.containerInfo,co=!0,Rs(l,d,y),rn=C,co=R;break;case 0:case 11:case 14:case 15:if(!pn&&(C=y.updateQueue,C!==null&&(C=C.lastEffect,C!==null))){R=C=C.next;do{var I=R,ee=I.destroy;I=I.tag,ee!==void 0&&(I&2||I&4)&&B_(y,d,ee),R=R.next}while(R!==C)}Rs(l,d,y);break;case 1:if(!pn&&(Sc(y,d),C=y.stateNode,typeof C.componentWillUnmount=="function"))try{C.props=y.memoizedProps,C.state=y.memoizedState,C.componentWillUnmount()}catch(fe){Or(y,d,fe)}Rs(l,d,y);break;case 21:Rs(l,d,y);break;case 22:y.mode&1?(pn=(C=pn)||y.memoizedState!==null,Rs(l,d,y),pn=C):Rs(l,d,y);break;default:Rs(l,d,y)}}function Rk(l){var d=l.updateQueue;if(d!==null){l.updateQueue=null;var y=l.stateNode;y===null&&(y=l.stateNode=new ZW),d.forEach(function(C){var R=aq.bind(null,l,C);y.has(C)||(y.add(C),C.then(R,R))})}}function fo(l,d){var y=d.deletions;if(y!==null)for(var C=0;C<y.length;C++){var R=y[C];try{var I=l,ee=d,fe=ee;e:for(;fe!==null;){switch(fe.tag){case 5:rn=fe.stateNode,co=!1;break e;case 3:rn=fe.stateNode.containerInfo,co=!0;break e;case 4:rn=fe.stateNode.containerInfo,co=!0;break e}fe=fe.return}if(rn===null)throw Error(r(160));kk(I,ee,R),rn=null,co=!1;var me=R.alternate;me!==null&&(me.return=null),R.return=null}catch(Ce){Or(R,d,Ce)}}if(d.subtreeFlags&12854)for(d=d.child;d!==null;)Nk(d,l),d=d.sibling}function Nk(l,d){var y=l.alternate,C=l.flags;switch(l.tag){case 0:case 11:case 14:case 15:if(fo(d,l),qo(l),C&4){try{Qd(3,l,l.return),wv(3,l)}catch(rt){Or(l,l.return,rt)}try{Qd(5,l,l.return)}catch(rt){Or(l,l.return,rt)}}break;case 1:fo(d,l),qo(l),C&512&&y!==null&&Sc(y,y.return);break;case 5:if(fo(d,l),qo(l),C&512&&y!==null&&Sc(y,y.return),l.flags&32){var R=l.stateNode;try{bt(R,"")}catch(rt){Or(l,l.return,rt)}}if(C&4&&(R=l.stateNode,R!=null)){var I=l.memoizedProps,ee=y!==null?y.memoizedProps:I,fe=l.type,me=l.updateQueue;if(l.updateQueue=null,me!==null)try{fe==="input"&&I.type==="radio"&&I.name!=null&&ge(R,I),Mn(fe,ee);var Ce=Mn(fe,I);for(ee=0;ee<me.length;ee+=2){var Ie=me[ee],$e=me[ee+1];Ie==="style"?Kt(R,$e):Ie==="dangerouslySetInnerHTML"?Xe(R,$e):Ie==="children"?bt(R,$e):E(R,Ie,$e,Ce)}switch(fe){case"input":Ee(R,I);break;case"textarea":we(R,I);break;case"select":var Le=R._wrapperState.wasMultiple;R._wrapperState.wasMultiple=!!I.multiple;var Qe=I.value;Qe!=null?Be(R,!!I.multiple,Qe,!1):Le!==!!I.multiple&&(I.defaultValue!=null?Be(R,!!I.multiple,I.defaultValue,!0):Be(R,!!I.multiple,I.multiple?[]:"",!1))}R[Ps]=I}catch(rt){Or(l,l.return,rt)}}break;case 6:if(fo(d,l),qo(l),C&4){if(l.stateNode===null)throw Error(r(162));R=l.stateNode,I=l.memoizedProps;try{R.nodeValue=I}catch(rt){Or(l,l.return,rt)}}break;case 3:if(fo(d,l),qo(l),C&4&&y!==null&&y.memoizedState.isDehydrated)try{ri(d.containerInfo)}catch(rt){Or(l,l.return,rt)}break;case 4:fo(d,l),qo(l);break;case 13:fo(d,l),qo(l),R=l.child,R.flags&8192&&(I=R.memoizedState!==null,R.stateNode.isHidden=I,!I||R.alternate!==null&&R.alternate.memoizedState!==null||(H_=gr())),C&4&&Rk(l);break;case 22:if(Ie=y!==null&&y.memoizedState!==null,l.mode&1?(pn=(Ce=pn)||Ie,fo(d,l),pn=Ce):fo(d,l),qo(l),C&8192){if(Ce=l.memoizedState!==null,(l.stateNode.isHidden=Ce)&&!Ie&&l.mode&1)for(Je=l,Ie=l.child;Ie!==null;){for($e=Je=Ie;Je!==null;){switch(Le=Je,Qe=Le.child,Le.tag){case 0:case 11:case 14:case 15:Qd(4,Le,Le.return);break;case 1:Sc(Le,Le.return);var tt=Le.stateNode;if(typeof tt.componentWillUnmount=="function"){C=Le,y=Le.return;try{d=C,tt.props=d.memoizedProps,tt.state=d.memoizedState,tt.componentWillUnmount()}catch(rt){Or(C,y,rt)}}break;case 5:Sc(Le,Le.return);break;case 22:if(Le.memoizedState!==null){Ik($e);continue}}Qe!==null?(Qe.return=Le,Je=Qe):Ik($e)}Ie=Ie.sibling}e:for(Ie=null,$e=l;;){if($e.tag===5){if(Ie===null){Ie=$e;try{R=$e.stateNode,Ce?(I=R.style,typeof I.setProperty=="function"?I.setProperty("display","none","important"):I.display="none"):(fe=$e.stateNode,me=$e.memoizedProps.style,ee=me!=null&&me.hasOwnProperty("display")?me.display:null,fe.style.display=er("display",ee))}catch(rt){Or(l,l.return,rt)}}}else if($e.tag===6){if(Ie===null)try{$e.stateNode.nodeValue=Ce?"":$e.memoizedProps}catch(rt){Or(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:fo(d,l),qo(l),C&4&&Rk(l);break;case 21:break;default:fo(d,l),qo(l)}}function qo(l){var d=l.flags;if(d&2){try{e:{for(var y=l.return;y!==null;){if(jk(y)){var C=y;break e}y=y.return}throw Error(r(160))}switch(C.tag){case 5:var R=C.stateNode;C.flags&32&&(bt(R,""),C.flags&=-33);var I=Ak(l);V_(l,I,R);break;case 3:case 4:var ee=C.stateNode.containerInfo,fe=Ak(l);z_(l,fe,ee);break;default:throw Error(r(161))}}catch(me){Or(l,l.return,me)}l.flags&=-3}d&4096&&(l.flags&=-4097)}function QW(l,d,y){Je=l,Mk(l)}function Mk(l,d,y){for(var C=(l.mode&1)!==0;Je!==null;){var R=Je,I=R.child;if(R.tag===22&&C){var ee=R.memoizedState!==null||xv;if(!ee){var fe=R.alternate,me=fe!==null&&fe.memoizedState!==null||pn;fe=xv;var Ce=pn;if(xv=ee,(pn=me)&&!Ce)for(Je=R;Je!==null;)ee=Je,me=ee.child,ee.tag===22&&ee.memoizedState!==null?Dk(R):me!==null?(me.return=ee,Je=me):Dk(R);for(;I!==null;)Je=I,Mk(I),I=I.sibling;Je=R,xv=fe,pn=Ce}Lk(l)}else R.subtreeFlags&8772&&I!==null?(I.return=R,Je=I):Lk(l)}}function Lk(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:pn||wv(5,d);break;case 1:var C=d.stateNode;if(d.flags&4&&!pn)if(y===null)C.componentDidMount();else{var R=d.elementType===d.type?y.memoizedProps:uo(d.type,y.memoizedProps);C.componentDidUpdate(R,y.memoizedState,C.__reactInternalSnapshotBeforeUpdate)}var I=d.updateQueue;I!==null&&IA(d,I,C);break;case 3:var ee=d.updateQueue;if(ee!==null){if(y=null,d.child!==null)switch(d.child.tag){case 5:y=d.child.stateNode;break;case 1:y=d.child.stateNode}IA(d,ee,y)}break;case 5:var fe=d.stateNode;if(y===null&&d.flags&4){y=fe;var me=d.memoizedProps;switch(d.type){case"button":case"input":case"select":case"textarea":me.autoFocus&&y.focus();break;case"img":me.src&&(y.src=me.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(d.memoizedState===null){var Ce=d.alternate;if(Ce!==null){var Ie=Ce.memoizedState;if(Ie!==null){var $e=Ie.dehydrated;$e!==null&&ri($e)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}pn||d.flags&512&&U_(d)}catch(Le){Or(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 Ik(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 Dk(l){for(;Je!==null;){var d=Je;try{switch(d.tag){case 0:case 11:case 15:var y=d.return;try{wv(4,d)}catch(me){Or(d,y,me)}break;case 1:var C=d.stateNode;if(typeof C.componentDidMount=="function"){var R=d.return;try{C.componentDidMount()}catch(me){Or(d,R,me)}}var I=d.return;try{U_(d)}catch(me){Or(d,I,me)}break;case 5:var ee=d.return;try{U_(d)}catch(me){Or(d,ee,me)}}}catch(me){Or(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 JW=Math.ceil,Ov=T.ReactCurrentDispatcher,W_=T.ReactCurrentOwner,Li=T.ReactCurrentBatchConfig,Mt=0,Gr=null,Nr=null,nn=0,ui=0,Pc=Es(0),Ur=0,Jd=null,Wl=0,Sv=0,q_=0,eh=null,Un=null,H_=0,Cc=1/0,Ra=null,Pv=!1,G_=null,Ns=null,Cv=!1,Ms=null,Ev=0,th=0,K_=null,Tv=-1,jv=0;function On(){return Mt&6?gr():Tv!==-1?Tv:Tv=gr()}function Ls(l){return l.mode&1?Mt&2&&nn!==0?nn&-nn:IW.transition!==null?(jv===0&&(jv=Rm()),jv):(l=Rt,l!==0||(l=window.event,l=l===void 0?16:Tt(l.type)),l):1}function ho(l,d,y,C){if(50<th)throw th=0,K_=null,Error(r(185));ei(l,y,C),(!(Mt&2)||l!==Gr)&&(l===Gr&&(!(Mt&2)&&(Sv|=y),Ur===4&&Is(l,nn)),zn(l,C),y===1&&Mt===0&&!(d.mode&1)&&(Cc=gr()+500,nv&&js()))}function zn(l,d){var y=l.callbackNode;Hu(l,d);var C=Yt(l,l===Gr?nn:0);if(C===0)y!==null&&vd(y),l.callbackNode=null,l.callbackPriority=0;else if(d=C&-C,l.callbackPriority!==d){if(y!=null&&vd(y),d===1)l.tag===0?LW(Fk.bind(null,l)):SA(Fk.bind(null,l)),cn(function(){!(Mt&6)&&js()}),y=null;else{switch(cs(C)){case 1:y=gd;break;case 4:y=km;break;case 16:y=Wu;break;case 536870912:y=as;break;default:y=Wu}y=Gk(y,$k.bind(null,l))}l.callbackPriority=d,l.callbackNode=y}}function $k(l,d){if(Tv=-1,jv=0,Mt&6)throw Error(r(327));var y=l.callbackNode;if(Ec()&&l.callbackNode!==y)return null;var C=Yt(l,l===Gr?nn:0);if(C===0)return null;if(C&30||C&l.expiredLanes||d)d=Av(l,C);else{d=C;var R=Mt;Mt|=2;var I=Uk();(Gr!==l||nn!==d)&&(Ra=null,Cc=gr()+500,Hl(l,d));do try{rq();break}catch(fe){Bk(l,fe)}while(!0);d_(),Ov.current=I,Mt=R,Nr!==null?d=0:(Gr=null,nn=0,d=Ur)}if(d!==0){if(d===2&&(R=ln(l),R!==0&&(C=R,d=Y_(l,R))),d===1)throw y=Jd,Hl(l,0),Is(l,C),zn(l,gr()),y;if(d===6)Is(l,C);else{if(R=l.current.alternate,!(C&30)&&!eq(R)&&(d=Av(l,C),d===2&&(I=ln(l),I!==0&&(C=I,d=Y_(l,I))),d===1))throw y=Jd,Hl(l,0),Is(l,C),zn(l,gr()),y;switch(l.finishedWork=R,l.finishedLanes=C,d){case 0:case 1:throw Error(r(345));case 2:Gl(l,Un,Ra);break;case 3:if(Is(l,C),(C&130023424)===C&&(d=H_+500-gr(),10<d)){if(Yt(l,0)!==0)break;if(R=l.suspendedLanes,(R&C)!==C){On(),l.pingedLanes|=l.suspendedLanes&R;break}l.timeoutHandle=Fr(Gl.bind(null,l,Un,Ra),d);break}Gl(l,Un,Ra);break;case 4:if(Is(l,C),(C&4194240)===C)break;for(d=l.eventTimes,R=-1;0<C;){var ee=31-wt(C);I=1<<ee,ee=d[ee],ee>R&&(R=ee),C&=~I}if(C=R,C=gr()-C,C=(120>C?120:480>C?480:1080>C?1080:1920>C?1920:3e3>C?3e3:4320>C?4320:1960*JW(C/1960))-C,10<C){l.timeoutHandle=Fr(Gl.bind(null,l,Un,Ra),C);break}Gl(l,Un,Ra);break;case 5:Gl(l,Un,Ra);break;default:throw Error(r(329))}}}return zn(l,gr()),l.callbackNode===y?$k.bind(null,l):null}function Y_(l,d){var y=eh;return l.current.memoizedState.isDehydrated&&(Hl(l,d).flags|=256),l=Av(l,d),l!==2&&(d=Un,Un=y,d!==null&&Z_(d)),l}function Z_(l){Un===null?Un=l:Un.push.apply(Un,l)}function eq(l){for(var d=l;;){if(d.flags&16384){var y=d.updateQueue;if(y!==null&&(y=y.stores,y!==null))for(var C=0;C<y.length;C++){var R=y[C],I=R.getSnapshot;R=R.value;try{if(!oi(I(),R))return!1}catch{return!1}}}if(y=d.child,d.subtreeFlags&16384&&y!==null)y.return=d,d=y;else{if(d===l)break;for(;d.sibling===null;){if(d.return===null||d.return===l)return!0;d=d.return}d.sibling.return=d.return,d=d.sibling}}return!0}function Is(l,d){for(d&=~q_,d&=~Sv,l.suspendedLanes|=d,l.pingedLanes&=~d,l=l.expirationTimes;0<d;){var y=31-wt(d),C=1<<y;l[y]=-1,d&=~C}}function Fk(l){if(Mt&6)throw Error(r(327));Ec();var d=Yt(l,0);if(!(d&1))return zn(l,gr()),null;var y=Av(l,d);if(l.tag!==0&&y===2){var C=ln(l);C!==0&&(d=C,y=Y_(l,C))}if(y===1)throw y=Jd,Hl(l,0),Is(l,d),zn(l,gr()),y;if(y===6)throw Error(r(345));return l.finishedWork=l.current.alternate,l.finishedLanes=d,Gl(l,Un,Ra),zn(l,gr()),null}function X_(l,d){var y=Mt;Mt|=1;try{return l(d)}finally{Mt=y,Mt===0&&(Cc=gr()+500,nv&&js())}}function ql(l){Ms!==null&&Ms.tag===0&&!(Mt&6)&&Ec();var d=Mt;Mt|=1;var y=Li.transition,C=Rt;try{if(Li.transition=null,Rt=1,l)return l()}finally{Rt=C,Li.transition=y,Mt=d,!(Mt&6)&&js()}}function Q_(){ui=Pc.current,rr(Pc)}function Hl(l,d){l.finishedWork=null,l.finishedLanes=0;var y=l.timeoutHandle;if(y!==-1&&(l.timeoutHandle=-1,Rr(y)),Nr!==null)for(y=Nr.return;y!==null;){var C=y;switch(s_(C),C.tag){case 1:C=C.type.childContextTypes,C!=null&&tv();break;case 3:wc(),rr($n),rr(fn),__();break;case 5:y_(C);break;case 4:wc();break;case 13:rr(br);break;case 19:rr(br);break;case 10:h_(C.type._context);break;case 22:case 23:Q_()}y=y.return}if(Gr=l,Nr=l=Ds(l.current,null),nn=ui=d,Ur=0,Jd=null,q_=Sv=Wl=0,Un=eh=null,Ul!==null){for(d=0;d<Ul.length;d++)if(y=Ul[d],C=y.interleaved,C!==null){y.interleaved=null;var R=C.next,I=y.pending;if(I!==null){var ee=I.next;I.next=R,C.next=ee}y.pending=C}Ul=null}return l}function Bk(l,d){do{var y=Nr;try{if(d_(),hv.current=gv,pv){for(var C=_r.memoizedState;C!==null;){var R=C.queue;R!==null&&(R.pending=null),C=C.next}pv=!1}if(Vl=0,Hr=Br=_r=null,Gd=!1,Kd=0,W_.current=null,y===null||y.return===null){Ur=1,Jd=d,Nr=null;break}e:{var I=l,ee=y.return,fe=y,me=d;if(d=nn,fe.flags|=32768,me!==null&&typeof me=="object"&&typeof me.then=="function"){var Ce=me,Ie=fe,$e=Ie.tag;if(!(Ie.mode&1)&&($e===0||$e===11||$e===15)){var Le=Ie.alternate;Le?(Ie.updateQueue=Le.updateQueue,Ie.memoizedState=Le.memoizedState,Ie.lanes=Le.lanes):(Ie.updateQueue=null,Ie.memoizedState=null)}var Qe=fk(ee);if(Qe!==null){Qe.flags&=-257,dk(Qe,ee,fe,I,d),Qe.mode&1&&ck(I,Ce,d),d=Qe,me=Ce;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)){ck(I,Ce,d),J_();break e}me=Error(r(426))}}else if(sr&&fe.mode&1){var Er=fk(ee);if(Er!==null){!(Er.flags&65536)&&(Er.flags|=256),dk(Er,ee,fe,I,d),c_(Oc(me,fe));break e}}I=me=Oc(me,fe),Ur!==4&&(Ur=2),eh===null?eh=[I]:eh.push(I),I=ee;do{switch(I.tag){case 3:I.flags|=65536,d&=-d,I.lanes|=d;var xe=lk(I,me,d);LA(I,xe);break e;case 1:fe=me;var ve=I.type,Oe=I.stateNode;if(!(I.flags&128)&&(typeof ve.getDerivedStateFromError=="function"||Oe!==null&&typeof Oe.componentDidCatch=="function"&&(Ns===null||!Ns.has(Oe)))){I.flags|=65536,d&=-d,I.lanes|=d;var We=uk(I,fe,d);LA(I,We);break e}}I=I.return}while(I!==null)}Vk(y)}catch(ot){d=ot,Nr===y&&y!==null&&(Nr=y=y.return);continue}break}while(!0)}function Uk(){var l=Ov.current;return Ov.current=gv,l===null?gv:l}function J_(){(Ur===0||Ur===3||Ur===2)&&(Ur=4),Gr===null||!(Wl&268435455)&&!(Sv&268435455)||Is(Gr,nn)}function Av(l,d){var y=Mt;Mt|=2;var C=Uk();(Gr!==l||nn!==d)&&(Ra=null,Hl(l,d));do try{tq();break}catch(R){Bk(l,R)}while(!0);if(d_(),Mt=y,Ov.current=C,Nr!==null)throw Error(r(261));return Gr=null,nn=0,Ur}function tq(){for(;Nr!==null;)zk(Nr)}function rq(){for(;Nr!==null&&!Bb();)zk(Nr)}function zk(l){var d=Hk(l.alternate,l,ui);l.memoizedProps=l.pendingProps,d===null?Vk(l):Nr=d,W_.current=null}function Vk(l){var d=l;do{var y=d.alternate;if(l=d.return,d.flags&32768){if(y=YW(y,d),y!==null){y.flags&=32767,Nr=y;return}if(l!==null)l.flags|=32768,l.subtreeFlags=0,l.deletions=null;else{Ur=6,Nr=null;return}}else if(y=KW(y,d,ui),y!==null){Nr=y;return}if(d=d.sibling,d!==null){Nr=d;return}Nr=d=l}while(d!==null);Ur===0&&(Ur=5)}function Gl(l,d,y){var C=Rt,R=Li.transition;try{Li.transition=null,Rt=1,nq(l,d,y,C)}finally{Li.transition=R,Rt=C}return null}function nq(l,d,y,C){do Ec();while(Ms!==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 I=y.lanes|y.childLanes;if(wr(l,I),l===Gr&&(Nr=Gr=null,nn=0),!(y.subtreeFlags&2064)&&!(y.flags&2064)||Cv||(Cv=!0,Gk(Wu,function(){return Ec(),null})),I=(y.flags&15990)!==0,y.subtreeFlags&15990||I){I=Li.transition,Li.transition=null;var ee=Rt;Rt=1;var fe=Mt;Mt|=4,W_.current=null,XW(l,y),Nk(y,l),Ti(st),Al=!!Ze,st=Ze=null,l.current=y,QW(y),Vu(),Mt=fe,Rt=ee,Li.transition=I}else l.current=y;if(Cv&&(Cv=!1,Ms=l,Ev=R),I=l.pendingLanes,I===0&&(Ns=null),Pl(y.stateNode),zn(l,gr()),d!==null)for(C=l.onRecoverableError,y=0;y<d.length;y++)R=d[y],C(R.value,{componentStack:R.stack,digest:R.digest});if(Pv)throw Pv=!1,l=G_,G_=null,l;return Ev&1&&l.tag!==0&&Ec(),I=l.pendingLanes,I&1?l===K_?th++:(th=0,K_=l):th=0,js(),null}function Ec(){if(Ms!==null){var l=cs(Ev),d=Li.transition,y=Rt;try{if(Li.transition=null,Rt=16>l?16:l,Ms===null)var C=!1;else{if(l=Ms,Ms=null,Ev=0,Mt&6)throw Error(r(331));var R=Mt;for(Mt|=4,Je=l.current;Je!==null;){var I=Je,ee=I.child;if(Je.flags&16){var fe=I.deletions;if(fe!==null){for(var me=0;me<fe.length;me++){var Ce=fe[me];for(Je=Ce;Je!==null;){var Ie=Je;switch(Ie.tag){case 0:case 11:case 15:Qd(8,Ie,I)}var $e=Ie.child;if($e!==null)$e.return=Ie,Je=$e;else for(;Je!==null;){Ie=Je;var Le=Ie.sibling,Qe=Ie.return;if(Tk(Ie),Ie===Ce){Je=null;break}if(Le!==null){Le.return=Qe,Je=Le;break}Je=Qe}}}var tt=I.alternate;if(tt!==null){var rt=tt.child;if(rt!==null){tt.child=null;do{var Er=rt.sibling;rt.sibling=null,rt=Er}while(rt!==null)}}Je=I}}if(I.subtreeFlags&2064&&ee!==null)ee.return=I,Je=ee;else e:for(;Je!==null;){if(I=Je,I.flags&2048)switch(I.tag){case 0:case 11:case 15:Qd(9,I,I.return)}var xe=I.sibling;if(xe!==null){xe.return=I.return,Je=xe;break e}Je=I.return}}var ve=l.current;for(Je=ve;Je!==null;){ee=Je;var Oe=ee.child;if(ee.subtreeFlags&2064&&Oe!==null)Oe.return=ee,Je=Oe;else e:for(ee=ve;Je!==null;){if(fe=Je,fe.flags&2048)try{switch(fe.tag){case 0:case 11:case 15:wv(9,fe)}}catch(ot){Or(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,js(),Jn&&typeof Jn.onPostCommitFiberRoot=="function")try{Jn.onPostCommitFiberRoot(Sl,l)}catch{}C=!0}return C}finally{Rt=y,Li.transition=d}}return!1}function Wk(l,d,y){d=Oc(y,d),d=lk(l,d,1),l=ks(l,d,1),d=On(),l!==null&&(ei(l,1,d),zn(l,d))}function Or(l,d,y){if(l.tag===3)Wk(l,l,y);else for(;d!==null;){if(d.tag===3){Wk(d,l,y);break}else if(d.tag===1){var C=d.stateNode;if(typeof d.type.getDerivedStateFromError=="function"||typeof C.componentDidCatch=="function"&&(Ns===null||!Ns.has(C))){l=Oc(y,l),l=uk(d,l,1),d=ks(d,l,1),l=On(),d!==null&&(ei(d,1,l),zn(d,l));break}}d=d.return}}function iq(l,d,y){var C=l.pingCache;C!==null&&C.delete(d),d=On(),l.pingedLanes|=l.suspendedLanes&y,Gr===l&&(nn&y)===y&&(Ur===4||Ur===3&&(nn&130023424)===nn&&500>gr()-H_?Hl(l,0):q_|=y),zn(l,d)}function qk(l,d){d===0&&(l.mode&1?(d=ls,ls<<=1,!(ls&130023424)&&(ls=4194304)):d=1);var y=On();l=ja(l,d),l!==null&&(ei(l,d,y),zn(l,y))}function oq(l){var d=l.memoizedState,y=0;d!==null&&(y=d.retryLane),qk(l,y)}function aq(l,d){var y=0;switch(l.tag){case 13:var C=l.stateNode,R=l.memoizedState;R!==null&&(y=R.retryLane);break;case 19:C=l.stateNode;break;default:throw Error(r(314))}C!==null&&C.delete(d),qk(l,y)}var Hk;Hk=function(l,d,y){if(l!==null)if(l.memoizedProps!==d.pendingProps||$n.current)Bn=!0;else{if(!(l.lanes&y)&&!(d.flags&128))return Bn=!1,GW(l,d,y);Bn=!!(l.flags&131072)}else Bn=!1,sr&&d.flags&1048576&&PA(d,ov,d.index);switch(d.lanes=0,d.tag){case 2:var C=d.type;_v(l,d),l=d.pendingProps;var R=mc(d,fn.current);xc(d,y),R=O_(null,d,C,l,R,y);var I=S_();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,Fn(C)?(I=!0,rv(d)):I=!1,d.memoizedState=R.state!==null&&R.state!==void 0?R.state:null,v_(d),R.updater=yv,d.stateNode=R,R._reactInternals=d,A_(d,C,l,y),d=M_(null,d,C,!0,I,y)):(d.tag=0,sr&&I&&a_(d),wn(null,d,R,y),d=d.child),d;case 16:C=d.elementType;e:{switch(_v(l,d),l=d.pendingProps,R=C._init,C=R(C._payload),d.type=C,R=d.tag=lq(C),l=uo(C,l),R){case 0:d=N_(null,d,C,l,y);break e;case 1:d=yk(null,d,C,l,y);break e;case 11:d=hk(null,d,C,l,y);break e;case 14:d=pk(null,d,C,uo(C.type,l),y);break e}throw Error(r(306,C,""))}return d;case 0:return C=d.type,R=d.pendingProps,R=d.elementType===C?R:uo(C,R),N_(l,d,C,R,y);case 1:return C=d.type,R=d.pendingProps,R=d.elementType===C?R:uo(C,R),yk(l,d,C,R,y);case 3:e:{if(bk(d),l===null)throw Error(r(387));C=d.pendingProps,I=d.memoizedState,R=I.element,MA(l,d),fv(d,C,null,y);var ee=d.memoizedState;if(C=ee.element,I.isDehydrated)if(I={element:C,isDehydrated:!1,cache:ee.cache,pendingSuspenseBoundaries:ee.pendingSuspenseBoundaries,transitions:ee.transitions},d.updateQueue.baseState=I,d.memoizedState=I,d.flags&256){R=Oc(Error(r(423)),d),d=_k(l,d,C,y,R);break e}else if(C!==R){R=Oc(Error(r(424)),d),d=_k(l,d,C,y,R);break e}else for(li=zo(d.stateNode.containerInfo.firstChild),si=d,sr=!0,lo=null,y=RA(d,null,C,y),d.child=y;y;)y.flags=y.flags&-3|4096,y=y.sibling;else{if(yc(),C===R){d=ka(l,d,y);break e}wn(l,d,C,y)}d=d.child}return d;case 5:return DA(d),l===null&&u_(d),C=d.type,R=d.pendingProps,I=l!==null?l.memoizedProps:null,ee=R.children,St(C,R)?ee=null:I!==null&&St(C,I)&&(d.flags|=32),gk(l,d),wn(l,d,ee,y),d.child;case 6:return l===null&&u_(d),null;case 13:return xk(l,d,y);case 4:return g_(d,d.stateNode.containerInfo),C=d.pendingProps,l===null?d.child=bc(d,null,C,y):wn(l,d,C,y),d.child;case 11:return C=d.type,R=d.pendingProps,R=d.elementType===C?R:uo(C,R),hk(l,d,C,R,y);case 7:return wn(l,d,d.pendingProps,y),d.child;case 8:return wn(l,d,d.pendingProps.children,y),d.child;case 12:return wn(l,d,d.pendingProps.children,y),d.child;case 10:e:{if(C=d.type._context,R=d.pendingProps,I=d.memoizedProps,ee=R.value,Zt(lv,C._currentValue),C._currentValue=ee,I!==null)if(oi(I.value,ee)){if(I.children===R.children&&!$n.current){d=ka(l,d,y);break e}}else for(I=d.child,I!==null&&(I.return=d);I!==null;){var fe=I.dependencies;if(fe!==null){ee=I.child;for(var me=fe.firstContext;me!==null;){if(me.context===C){if(I.tag===1){me=Aa(-1,y&-y),me.tag=2;var Ce=I.updateQueue;if(Ce!==null){Ce=Ce.shared;var Ie=Ce.pending;Ie===null?me.next=me:(me.next=Ie.next,Ie.next=me),Ce.pending=me}}I.lanes|=y,me=I.alternate,me!==null&&(me.lanes|=y),p_(I.return,y,d),fe.lanes|=y;break}me=me.next}}else if(I.tag===10)ee=I.type===d.type?null:I.child;else if(I.tag===18){if(ee=I.return,ee===null)throw Error(r(341));ee.lanes|=y,fe=ee.alternate,fe!==null&&(fe.lanes|=y),p_(ee,y,d),ee=I.sibling}else ee=I.child;if(ee!==null)ee.return=I;else for(ee=I;ee!==null;){if(ee===d){ee=null;break}if(I=ee.sibling,I!==null){I.return=ee.return,ee=I;break}ee=ee.return}I=ee}wn(l,d,R.children,y),d=d.child}return d;case 9:return R=d.type,C=d.pendingProps.children,xc(d,y),R=Ni(R),C=C(R),d.flags|=1,wn(l,d,C,y),d.child;case 14:return C=d.type,R=uo(C,d.pendingProps),R=uo(C.type,R),pk(l,d,C,R,y);case 15:return mk(l,d,d.type,d.pendingProps,y);case 17:return C=d.type,R=d.pendingProps,R=d.elementType===C?R:uo(C,R),_v(l,d),d.tag=1,Fn(C)?(l=!0,rv(d)):l=!1,xc(d,y),ak(d,C,R),A_(d,C,R,y),M_(null,d,C,!0,l,y);case 19:return Ok(l,d,y);case 22:return vk(l,d,y)}throw Error(r(156,d.tag))};function Gk(l,d){return Am(l,d)}function sq(l,d,y,C){this.tag=l,this.key=y,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=d,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=C,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ii(l,d,y,C){return new sq(l,d,y,C)}function e1(l){return l=l.prototype,!(!l||!l.isReactComponent)}function lq(l){if(typeof l=="function")return e1(l)?1:0;if(l!=null){if(l=l.$$typeof,l===q)return 11;if(l===ne)return 14}return 2}function Ds(l,d){var y=l.alternate;return y===null?(y=Ii(l.tag,d,l.key,l.mode),y.elementType=l.elementType,y.type=l.type,y.stateNode=l.stateNode,y.alternate=l,l.alternate=y):(y.pendingProps=d,y.type=l.type,y.flags=0,y.subtreeFlags=0,y.deletions=null),y.flags=l.flags&14680064,y.childLanes=l.childLanes,y.lanes=l.lanes,y.child=l.child,y.memoizedProps=l.memoizedProps,y.memoizedState=l.memoizedState,y.updateQueue=l.updateQueue,d=l.dependencies,y.dependencies=d===null?null:{lanes:d.lanes,firstContext:d.firstContext},y.sibling=l.sibling,y.index=l.index,y.ref=l.ref,y}function kv(l,d,y,C,R,I){var ee=2;if(C=l,typeof l=="function")e1(l)&&(ee=1);else if(typeof l=="string")ee=5;else e:switch(l){case N:return Kl(y.children,R,I,d);case F:ee=8,R|=8;break;case V:return l=Ii(12,y,d,R|2),l.elementType=V,l.lanes=I,l;case J:return l=Ii(13,y,d,R),l.elementType=J,l.lanes=I,l;case Q:return l=Ii(19,y,d,R),l.elementType=Q,l.lanes=I,l;case se:return Rv(y,R,I,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,C=null;break e}throw Error(r(130,l==null?l:typeof l,""))}return d=Ii(ee,y,d,R),d.elementType=l,d.type=C,d.lanes=I,d}function Kl(l,d,y,C){return l=Ii(7,l,C,d),l.lanes=y,l}function Rv(l,d,y,C){return l=Ii(22,l,C,d),l.elementType=se,l.lanes=y,l.stateNode={isHidden:!1},l}function t1(l,d,y){return l=Ii(6,l,null,d),l.lanes=y,l}function r1(l,d,y){return d=Ii(4,l.children!==null?l.children:[],l.key,d),d.lanes=y,d.stateNode={containerInfo:l.containerInfo,pendingChildren:null,implementation:l.implementation},d}function uq(l,d,y,C,R){this.tag=d,this.containerInfo=l,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=us(0),this.expirationTimes=us(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=us(0),this.identifierPrefix=C,this.onRecoverableError=R,this.mutableSourceEagerHydrationData=null}function n1(l,d,y,C,R,I,ee,fe,me){return l=new uq(l,d,y,fe,me),d===1?(d=1,I===!0&&(d|=8)):d=0,I=Ii(3,null,null,d),l.current=I,I.stateNode=l,I.memoizedState={element:C,isDehydrated:y,cache:null,transitions:null,pendingSuspenseBoundaries:null},v_(I),l}function cq(l,d,y){var C=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:j,key:C==null?null:""+C,children:l,containerInfo:d,implementation:y}}function Kk(l){if(!l)return Ts;l=l._reactInternals;e:{if(Mo(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(Fn(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(Fn(y))return wA(l,y,d)}return d}function Yk(l,d,y,C,R,I,ee,fe,me){return l=n1(y,C,!0,l,R,I,ee,fe,me),l.context=Kk(null),y=l.current,C=On(),R=Ls(y),I=Aa(C,R),I.callback=d??null,ks(y,I,R),l.current.lanes=R,ei(l,R,C),zn(l,C),l}function Nv(l,d,y,C){var R=d.current,I=On(),ee=Ls(R);return y=Kk(y),d.context===null?d.context=y:d.pendingContext=y,d=Aa(I,ee),d.payload={element:l},C=C===void 0?null:C,C!==null&&(d.callback=C),l=ks(R,d,ee),l!==null&&(ho(l,R,ee,I),cv(l,R,ee)),ee}function Mv(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 Zk(l,d){if(l=l.memoizedState,l!==null&&l.dehydrated!==null){var y=l.retryLane;l.retryLane=y!==0&&y<d?y:d}}function i1(l,d){Zk(l,d),(l=l.alternate)&&Zk(l,d)}function fq(){return null}var Xk=typeof reportError=="function"?reportError:function(l){console.error(l)};function o1(l){this._internalRoot=l}Lv.prototype.render=o1.prototype.render=function(l){var d=this._internalRoot;if(d===null)throw Error(r(409));Nv(l,d,null,null)},Lv.prototype.unmount=o1.prototype.unmount=function(){var l=this._internalRoot;if(l!==null){this._internalRoot=null;var d=l.containerInfo;ql(function(){Nv(null,l,null,null)}),d[Dt]=null}};function Lv(l){this._internalRoot=l}Lv.prototype.unstable_scheduleHydration=function(l){if(l){var d=Yu();l={blockedOn:null,target:l,priority:d};for(var y=0;y<$r.length&&d!==0&&d<$r[y].priority;y++);$r.splice(y,0,l),y===0&&Zu(l)}};function a1(l){return!(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11)}function Iv(l){return!(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11&&(l.nodeType!==8||l.nodeValue!==" react-mount-point-unstable "))}function Qk(){}function dq(l,d,y,C,R){if(R){if(typeof C=="function"){var I=C;C=function(){var Ce=Mv(ee);I.call(Ce)}}var ee=Yk(d,C,l,0,null,!1,!1,"",Qk);return l._reactRootContainer=ee,l[Dt]=ee.current,Os(l.nodeType===8?l.parentNode:l),ql(),ee}for(;R=l.lastChild;)l.removeChild(R);if(typeof C=="function"){var fe=C;C=function(){var Ce=Mv(me);fe.call(Ce)}}var me=n1(l,0,!1,null,null,!1,!1,"",Qk);return l._reactRootContainer=me,l[Dt]=me.current,Os(l.nodeType===8?l.parentNode:l),ql(function(){Nv(d,me,y,C)}),me}function Dv(l,d,y,C,R){var I=y._reactRootContainer;if(I){var ee=I;if(typeof R=="function"){var fe=R;R=function(){var me=Mv(ee);fe.call(me)}}Nv(d,ee,l,R)}else ee=dq(y,d,l,R,C);return Mv(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&&(no(d,y|1),zn(d,gr()),!(Mt&6)&&(Cc=gr()+500,js()))}break;case 13:ql(function(){var C=ja(l,1);if(C!==null){var R=On();ho(C,l,1,R)}}),i1(l,1)}},pa=function(l){if(l.tag===13){var d=ja(l,134217728);if(d!==null){var y=On();ho(d,l,134217728,y)}i1(l,134217728)}},Ku=function(l){if(l.tag===13){var d=Ls(l),y=ja(l,d);if(y!==null){var C=On();ho(y,l,d,C)}i1(l,d)}},Yu=function(){return Rt},Cl=function(l,d){var y=Rt;try{return Rt=l,d()}finally{Rt=y}},Ln=function(l,d,y){switch(d){case"input":if(Ee(l,y),d=y.name,y.type==="radio"&&d!=null){for(y=l;y.parentNode;)y=y.parentNode;for(y=y.querySelectorAll("input[name="+JSON.stringify(""+d)+'][type="radio"]'),d=0;d<y.length;d++){var C=y[d];if(C!==l&&C.form===l.form){var R=hc(C);if(!R)throw Error(r(90));ie(C),Ee(C,R)}}}break;case"textarea":we(l,y);break;case"select":d=y.value,d!=null&&Be(l,!!y.multiple,d,!1)}},hr=X_,ar=ql;var hq={usingClientEntryPoint:!1,Events:[Sa,Pa,hc,os,No,X_]},rh={findFiberByHostInstance:Oa,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},pq={bundleType:rh.bundleType,version:rh.version,rendererPackageName:rh.rendererPackageName,rendererConfig:rh.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=Tm(l),l===null?null:l.stateNode},findFiberByHostInstance:rh.findFiberByHostInstance||fq,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 $v=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!$v.isDisabled&&$v.supportsFiber)try{Sl=$v.inject(pq),Jn=$v}catch{}}return Vn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=hq,Vn.createPortal=function(l,d){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!a1(d))throw Error(r(200));return cq(l,d,null,y)},Vn.createRoot=function(l,d){if(!a1(l))throw Error(r(299));var y=!1,C="",R=Xk;return d!=null&&(d.unstable_strictMode===!0&&(y=!0),d.identifierPrefix!==void 0&&(C=d.identifierPrefix),d.onRecoverableError!==void 0&&(R=d.onRecoverableError)),d=n1(l,1,!1,null,null,y,!1,C,R),l[Dt]=d.current,Os(l.nodeType===8?l.parentNode:l),new o1(d)},Vn.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=Tm(d),l=l===null?null:l.stateNode,l},Vn.flushSync=function(l){return ql(l)},Vn.hydrate=function(l,d,y){if(!Iv(d))throw Error(r(200));return Dv(null,l,d,!0,y)},Vn.hydrateRoot=function(l,d,y){if(!a1(l))throw Error(r(405));var C=y!=null&&y.hydratedSources||null,R=!1,I="",ee=Xk;if(y!=null&&(y.unstable_strictMode===!0&&(R=!0),y.identifierPrefix!==void 0&&(I=y.identifierPrefix),y.onRecoverableError!==void 0&&(ee=y.onRecoverableError)),d=Yk(d,null,l,1,y??null,R,!1,I,ee),l[Dt]=d.current,Os(l),C)for(l=0;l<C.length;l++)y=C[l],R=y._getVersion,R=R(y._source),d.mutableSourceEagerHydrationData==null?d.mutableSourceEagerHydrationData=[y,R]:d.mutableSourceEagerHydrationData.push(y,R);return new Lv(d)},Vn.render=function(l,d,y){if(!Iv(d))throw Error(r(200));return Dv(null,l,d,!1,y)},Vn.unmountComponentAtNode=function(l){if(!Iv(l))throw Error(r(40));return l._reactRootContainer?(ql(function(){Dv(null,null,l,!1,function(){l._reactRootContainer=null,l[Dt]=null})}),!0):!1},Vn.unstable_batchedUpdates=X_,Vn.unstable_renderSubtreeIntoContainer=function(l,d,y,C){if(!Iv(y))throw Error(r(200));if(l==null||l._reactInternals===void 0)throw Error(r(38));return Dv(l,d,y,!1,C)},Vn.version="18.3.1-next-f1338f8080-20240426",Vn}var a3;function S8(){if(a3)return u1.exports;a3=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(),u1.exports=Sq(),u1.exports}var s3;function Pq(){if(s3)return Bv;s3=1;var e=S8();return Bv.createRoot=e.createRoot,Bv.hydrateRoot=e.hydrateRoot,Bv}var Cq=Pq(),$=P0();const Z=Nt($),l3=yq({__proto__:null,default:Z},[$]);var d1={exports:{}},h1={};/**
* @license React
* use-sync-external-store-with-selector.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var u3;function Eq(){if(u3)return h1;u3=1;var e=P0();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 h1.useSyncExternalStoreWithSelector=function(c,u,h,p,v){var b=i(null);if(b.current===null){var x={hasValue:!1,value:null};b.current=x}else x=b.current;b=a(function(){function w(A){if(!O){if(O=!0,S=A,A=p(A),v!==void 0&&x.hasValue){var j=x.value;if(v(j,A))return E=j}return E=A}if(j=E,r(S,A))return j;var N=p(A);return v!==void 0&&v(j,N)?j:(S=A,E=N)}var O=!1,S,E,T=h===void 0?null:h;return[function(){return w(u())},T===null?void 0:function(){return w(T())}]},[u,h,p,v]);var _=n(c,b[0],b[1]);return o(function(){x.hasValue=!0,x.value=_},[_]),s(_),_},h1}var c3;function Tq(){return c3||(c3=1,d1.exports=Eq()),d1.exports}Tq();var Ft="default"in l3?Z:l3,f3=Symbol.for("react-redux-context"),d3=typeof globalThis<"u"?globalThis:{};function jq(){if(!Ft.createContext)return{};const e=d3[f3]??(d3[f3]=new Map);let t=e.get(Ft.createContext);return t||(t=Ft.createContext(null),e.set(Ft.createContext,t)),t}var P8=jq(),Aq=()=>{throw new Error("uSES not initialized!")},kq=Symbol.for("react.element"),Rq=Symbol.for("react.portal"),Nq=Symbol.for("react.fragment"),Mq=Symbol.for("react.strict_mode"),Lq=Symbol.for("react.profiler"),Iq=Symbol.for("react.provider"),Dq=Symbol.for("react.context"),$q=Symbol.for("react.server_context"),C8=Symbol.for("react.forward_ref"),Fq=Symbol.for("react.suspense"),Bq=Symbol.for("react.suspense_list"),AE=Symbol.for("react.memo"),Uq=Symbol.for("react.lazy"),zq=C8,Vq=AE;function Wq(e){if(typeof e=="object"&&e!==null){const t=e.$$typeof;switch(t){case kq:{const r=e.type;switch(r){case Nq:case Lq:case Mq:case Fq:case Bq:return r;default:{const n=r&&r.$$typeof;switch(n){case $q:case Dq:case C8:case Uq:case AE:case Iq:return n;default:return t}}}}case Rq:return t}}}function qq(e){return Wq(e)===AE}function Hq(e,t,r,n,{areStatesEqual:i,areOwnPropsEqual:o,areStatePropsEqual:a}){let s=!1,c,u,h,p,v;function b(S,E){return c=S,u=E,h=e(c,u),p=t(n,u),v=r(h,p,u),s=!0,v}function x(){return h=e(c,u),t.dependsOnOwnProps&&(p=t(n,u)),v=r(h,p,u),v}function _(){return e.dependsOnOwnProps&&(h=e(c,u)),t.dependsOnOwnProps&&(p=t(n,u)),v=r(h,p,u),v}function w(){const S=e(c,u),E=!a(S,h);return h=S,E&&(v=r(h,p,u)),v}function O(S,E){const T=!o(E,u),A=!i(S,c,E,u);return c=S,u=E,T&&A?x():T?_():A?w():v}return function(E,T){return s?O(E,T):b(E,T)}}function Gq(e,{initMapStateToProps:t,initMapDispatchToProps:r,initMergeProps:n,...i}){const o=t(e,i),a=r(e,i),s=n(e,i);return Hq(o,a,s,e,i)}function Kq(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 XO(e){return function(r){const n=e(r);function i(){return n}return i.dependsOnOwnProps=!1,i}}function h3(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function E8(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=h3(e);let u=o(s,c);return typeof u=="function"&&(o.mapToProps=u,o.dependsOnOwnProps=h3(u),u=o(s,c)),u},o}}function kE(e,t){return(r,n)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${n.wrappedComponentName}.`)}}function Yq(e){return e&&typeof e=="object"?XO(t=>Kq(e,t)):e?typeof e=="function"?E8(e):kE(e,"mapDispatchToProps"):XO(t=>({dispatch:t}))}function Zq(e){return e?typeof e=="function"?E8(e):kE(e,"mapStateToProps"):XO(()=>({}))}function Xq(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 Jq(e){return e?typeof e=="function"?Qq(e):kE(e,"mergeProps"):()=>Xq}function eH(e){e()}function tH(){let e=null,t=null;return{clear(){e=null,t=null},notify(){eH(()=>{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 p3={notify(){},get:()=>[]};function T8(e,t){let r,n=p3,i=0,o=!1;function a(_){h();const w=n.subscribe(_);let O=!1;return()=>{O||(O=!0,w(),p())}}function s(){n.notify()}function c(){x.onStateChange&&x.onStateChange()}function u(){return o}function h(){i++,r||(r=t?t.addNestedSub(c):e.subscribe(c),n=tH())}function p(){i--,r&&i===0&&(r(),r=void 0,n.clear(),n=p3)}function v(){o||(o=!0,h())}function b(){o&&(o=!1,p())}const x={addNestedSub:a,notifyNestedSubs:s,handleChangeWrapper:c,isSubscribed:u,trySubscribe:v,tryUnsubscribe:b,getListeners:()=>n};return x}var rH=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",nH=typeof navigator<"u"&&navigator.product==="ReactNative",jg=rH||nH?Ft.useLayoutEffect:Ft.useEffect;function m3(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function p1(e,t){if(m3(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])||!m3(e[r[i]],t[r[i]]))return!1;return!0}var iH={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},oH={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},aH={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},j8={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},sH={[zq]:aH,[Vq]:j8};function v3(e){return qq(e)?j8:sH[e.$$typeof]||iH}var lH=Object.defineProperty,uH=Object.getOwnPropertyNames,g3=Object.getOwnPropertySymbols,cH=Object.getOwnPropertyDescriptor,fH=Object.getPrototypeOf,y3=Object.prototype;function QO(e,t){if(typeof t!="string"){if(y3){const o=fH(t);o&&o!==y3&&QO(e,o)}let r=uH(t);g3&&(r=r.concat(g3(t)));const n=v3(e),i=v3(t);for(let o=0;o<r.length;++o){const a=r[o];if(!oH[a]&&!(i&&i[a])&&!(n&&n[a])){const s=cH(t,a);try{lH(e,a,s)}catch{}}}}return e}var A8=Aq,dH=e=>{A8=e},hH=[null,null];function pH(e,t,r){jg(()=>e(...t),r)}function mH(e,t,r,n,i,o){e.current=n,r.current=!1,i.current&&(i.current=null,o())}function vH(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 _=t.getState();let w,O;try{w=n(_,i.current)}catch(S){O=S,v=S}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 gH(e,t){return e===t}function yH(e,t,r,{pure:n,areStatesEqual:i=gH,areOwnPropsEqual:o=p1,areStatePropsEqual:a=p1,areMergedPropsEqual:s=p1,forwardRef:c=!1,context:u=P8}={}){const h=u,p=Zq(e),v=Yq(t),b=Jq(r),x=!!e;return w=>{const O=w.displayName||w.name||"Component",S=`Connect(${O})`,E={shouldHandleStateChanges:x,displayName:S,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]=Ft.useMemo(()=>{const{reactReduxForwardedRef:ie,...he}=N;return[N.context,ie,he]},[N]),W=Ft.useMemo(()=>{let ie=h;return F!=null&&F.Consumer,ie},[F,h]),q=Ft.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=Ft.useMemo(()=>Gq(ne.dispatch,E),[ne]),[oe,K]=Ft.useMemo(()=>{if(!x)return hH;const ie=T8(ne,J?void 0:q.subscription),he=ie.notifyNestedSubs.bind(ie);return[ie,he]},[ne,J,q]),G=Ft.useMemo(()=>J?q:{...q,subscription:oe},[J,q,oe]),z=Ft.useRef(void 0),re=Ft.useRef(B),X=Ft.useRef(void 0),le=Ft.useRef(!1),ce=Ft.useRef(!1),de=Ft.useRef(void 0);jg(()=>(ce.current=!0,()=>{ce.current=!1}),[]);const be=Ft.useMemo(()=>()=>X.current&&B===re.current?X.current:se(ne.getState(),B),[ne,B]),M=Ft.useMemo(()=>he=>oe?vH(x,ne,oe,se,re,z,le,ce,X,K,he):()=>{},[oe]);pH(mH,[re,z,le,B,X,K]);let D;try{D=A8(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}jg(()=>{de.current=void 0,X.current=void 0,z.current=D});const Y=Ft.useMemo(()=>Ft.createElement(w,{...D,ref:V}),[V,w,D]);return Ft.useMemo(()=>x?Ft.createElement(W.Provider,{value:G},Y):Y,[W,Y,G])}const j=Ft.memo(T);if(j.WrappedComponent=w,j.displayName=T.displayName=S,c){const F=Ft.forwardRef(function(B,W){return Ft.createElement(j,{...B,reactReduxForwardedRef:W})});return F.displayName=S,F.WrappedComponent=w,QO(F,w)}return QO(j,w)}}var k8=yH;function bH({store:e,context:t,children:r,serverState:n,stabilityCheck:i="once",identityFunctionCheck:o="once"}){const a=Ft.useMemo(()=>{const u=T8(e);return{store:e,subscription:u,getServerState:n?()=>n:void 0,stabilityCheck:i,identityFunctionCheck:o}},[e,n,i,o]),s=Ft.useMemo(()=>e.getState(),[e]);jg(()=>{const{subscription:u}=a;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),s!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[a,s]);const c=t||P8;return Ft.createElement(c.Provider,{value:a},r)}var R8=bH;dH($.useSyncExternalStore);var ih={},b3;function _H(){if(b3)return ih;b3=1,Object.defineProperty(ih,"__esModule",{value:!0}),ih.parse=a,ih.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 x=new o,_=v.length;if(_<2)return x;const w=(b==null?void 0:b.decode)||h;let O=0;do{const S=v.indexOf("=",O);if(S===-1)break;const E=v.indexOf(";",O),T=E===-1?_:E;if(S>T){O=v.lastIndexOf(";",S-1)+1;continue}const A=s(v,O,S),j=c(v,S,A),N=v.slice(A,j);if(x[N]===void 0){let F=s(v,S+1,T),V=c(v,T,F);const B=w(v.slice(F,V));x[N]=B}O=T+1}while(O<_);return x}function s(v,b,x){do{const _=v.charCodeAt(b);if(_!==32&&_!==9)return b}while(++b<x);return x}function c(v,b,x){for(;b>x;){const _=v.charCodeAt(--b);if(_!==32&&_!==9)return b+1}return x}function u(v,b,x){const _=(x==null?void 0:x.encode)||encodeURIComponent;if(!e.test(v))throw new TypeError(`argument name is invalid: ${v}`);const w=_(b);if(!t.test(w))throw new TypeError(`argument val is invalid: ${b}`);let O=v+"="+w;if(!x)return O;if(x.maxAge!==void 0){if(!Number.isInteger(x.maxAge))throw new TypeError(`option maxAge is invalid: ${x.maxAge}`);O+="; Max-Age="+x.maxAge}if(x.domain){if(!r.test(x.domain))throw new TypeError(`option domain is invalid: ${x.domain}`);O+="; Domain="+x.domain}if(x.path){if(!n.test(x.path))throw new TypeError(`option path is invalid: ${x.path}`);O+="; Path="+x.path}if(x.expires){if(!p(x.expires)||!Number.isFinite(x.expires.valueOf()))throw new TypeError(`option expires is invalid: ${x.expires}`);O+="; Expires="+x.expires.toUTCString()}if(x.httpOnly&&(O+="; HttpOnly"),x.secure&&(O+="; Secure"),x.partitioned&&(O+="; Partitioned"),x.priority)switch(typeof x.priority=="string"?x.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: ${x.priority}`)}if(x.sameSite)switch(typeof x.sameSite=="string"?x.sameSite.toLowerCase():x.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: ${x.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 ih}_H();/**
* react-router v7.0.2
*
* 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 _3="popstate";function xH(e={}){function t(n,i){let{pathname:o,search:a,hash:s}=n.location;return JO("",{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:Zh(i)}return OH(t,r,null,e)}function ur(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Oo(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function wH(){return Math.random().toString(36).substring(2,10)}function x3(e,t){return{usr:e.state,key:e.key,idx:t}}function JO(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||wH()}}function Zh({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 OH(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:_.location,delta:O})}function v(w,O){s="PUSH";let S=JO(_.location,w,O);u=h()+1;let E=x3(S,u),T=_.createHref(S);try{a.pushState(E,"",T)}catch(A){if(A instanceof DOMException&&A.name==="DataCloneError")throw A;i.location.assign(T)}o&&c&&c({action:s,location:_.location,delta:1})}function b(w,O){s="REPLACE";let S=JO(_.location,w,O);u=h();let E=x3(S,u),T=_.createHref(S);a.replaceState(E,"",T),o&&c&&c({action:s,location:_.location,delta:0})}function x(w){let O=i.location.origin!=="null"?i.location.origin:i.location.href,S=typeof w=="string"?w:Zh(w);return S=S.replace(/ $/,"%20"),ur(O,`No window.location.(origin|href) available to create URL for href: ${S}`),new URL(S,O)}let _={get action(){return s},get location(){return e(i,a)},listen(w){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(_3,p),c=w,()=>{i.removeEventListener(_3,p),c=null}},createHref(w){return t(i,w)},createURL:x,encodeLocation(w){let O=x(w);return{pathname:O.pathname,search:O.search,hash:O.hash}},push:v,replace:b,go(w){return a.go(w)}};return _}function N8(e,t,r="/"){return SH(e,t,r,!1)}function SH(e,t,r,n){let i=typeof t=="string"?Hf(t):t,o=nl(i.pathname||"/",r);if(o==null)return null;let a=M8(e);PH(a);let s=null;for(let c=0;s==null&&c<a.length;++c){let u=IH(o);s=MH(a[c],u,n)}return s}function M8(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("/")&&(ur(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=$a([n,c.relativePath]),h=r.concat(c);o.children&&o.children.length>0&&(ur(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${u}".`),M8(o.children,t,h,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:RH(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 L8(o.path))i(o,a,c)}),t}function L8(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=L8(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 PH(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:NH(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}var CH=/^:[\w-]+$/,EH=3,TH=2,jH=1,AH=10,kH=-2,w3=e=>e==="*";function RH(e,t){let r=e.split("/"),n=r.length;return r.some(w3)&&(n+=kH),t&&(n+=TH),r.filter(i=>!w3(i)).reduce((i,o)=>i+(CH.test(o)?EH:o===""?jH:AH),n)}function NH(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 MH(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=Ag({path:c.relativePath,caseSensitive:c.caseSensitive,end:u},h),v=c.route;if(!p&&u&&r&&!n[n.length-1].route.index&&(p=Ag({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},h)),!p)return null;Object.assign(i,p.params),a.push({params:i,pathname:$a([o,p.pathname]),pathnameBase:BH($a([o,p.pathnameBase])),route:v}),p.pathnameBase!=="/"&&(o=$a([o,p.pathnameBase]))}return a}function Ag(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=LH(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 x=s[v]||"";a=o.slice(0,o.length-x.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 LH(e,t=!1,r=!0){Oo(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 IH(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Oo(!1,`The URL path "${e}" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function nl(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 DH(e,t="/"){let{pathname:r,search:n="",hash:i=""}=typeof e=="string"?Hf(e):e;return{pathname:r?r.startsWith("/")?r:$H(r,t):t,search:UH(n),hash:zH(i)}}function $H(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 m1(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 FH(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function RE(e){let t=FH(e);return t.map((r,n)=>n===t.length-1?r.pathname:r.pathnameBase)}function NE(e,t,r,n=!1){let i;typeof e=="string"?i=Hf(e):(i={...e},ur(!i.pathname||!i.pathname.includes("?"),m1("?","pathname","search",i)),ur(!i.pathname||!i.pathname.includes("#"),m1("#","pathname","hash",i)),ur(!i.search||!i.search.includes("#"),m1("#","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=DH(i,s),u=a&&a!=="/"&&a.endsWith("/"),h=(o||a===".")&&r.endsWith("/");return!c.pathname.endsWith("/")&&(u||h)&&(c.pathname+="/"),c}var $a=e=>e.join("/").replace(/\/\/+/g,"/"),BH=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),UH=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,zH=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function VH(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var I8=["POST","PUT","PATCH","DELETE"];new Set(I8);var WH=["GET",...I8];new Set(WH);var Gf=$.createContext(null);Gf.displayName="DataRouter";var C0=$.createContext(null);C0.displayName="DataRouterState";var D8=$.createContext({isTransitioning:!1});D8.displayName="ViewTransition";var qH=$.createContext(new Map);qH.displayName="Fetchers";var HH=$.createContext(null);HH.displayName="Await";var Po=$.createContext(null);Po.displayName="Navigation";var Kp=$.createContext(null);Kp.displayName="Location";var Co=$.createContext({outlet:null,matches:[],isDataRoute:!1});Co.displayName="Route";var ME=$.createContext(null);ME.displayName="RouteError";function GH(e,{relative:t}={}){ur(Mu(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:n}=$.useContext(Po),{hash:i,pathname:o,search:a}=Yp(e,{relative:t}),s=o;return r!=="/"&&(s=o==="/"?r:$a([r,o])),n.createHref({pathname:s,search:a,hash:i})}function Mu(){return $.useContext(Kp)!=null}function yn(){return ur(Mu(),"useLocation() may be used only in the context of a <Router> component."),$.useContext(Kp).location}var $8="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function F8(e){$.useContext(Po).static||$.useLayoutEffect(e)}function la(){let{isDataRoute:e}=$.useContext(Co);return e?aG():KH()}function KH(){ur(Mu(),"useNavigate() may be used only in the context of a <Router> component.");let e=$.useContext(Gf),{basename:t,navigator:r}=$.useContext(Po),{matches:n}=$.useContext(Co),{pathname:i}=yn(),o=JSON.stringify(RE(n)),a=$.useRef(!1);return F8(()=>{a.current=!0}),$.useCallback((c,u={})=>{if(Oo(a.current,$8),!a.current)return;if(typeof c=="number"){r.go(c);return}let h=NE(c,JSON.parse(o),i,u.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:$a([t,h.pathname])),(u.replace?r.replace:r.push)(h,u.state,u)},[t,r,o,i,e])}$.createContext(null);function Kf(){let{matches:e}=$.useContext(Co),t=e[e.length-1];return t?t.params:{}}function Yp(e,{relative:t}={}){let{matches:r}=$.useContext(Co),{pathname:n}=yn(),i=JSON.stringify(RE(r));return $.useMemo(()=>NE(e,JSON.parse(i),n,t==="path"),[e,i,n,t])}function YH(e,t){return B8(e,t)}function B8(e,t,r,n){var O;ur(Mu(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=$.useContext(Po),{matches:o}=$.useContext(Co),a=o[o.length-1],s=a?a.params:{},c=a?a.pathname:"/",u=a?a.pathnameBase:"/",h=a&&a.route;{let S=h&&h.path||"";U8(c,!h||S.endsWith("*")||S.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${S}">) 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="${S}"> to <Route path="${S==="/"?"*":`${S}/*`}">.`)}let p=yn(),v;if(t){let S=typeof t=="string"?Hf(t):t;ur(u==="/"||((O=S.pathname)==null?void 0:O.startsWith(u)),`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 "${u}" but pathname "${S.pathname}" was given in the \`location\` prop.`),v=S}else v=p;let b=v.pathname||"/",x=b;if(u!=="/"){let S=u.replace(/^\//,"").split("/");x="/"+b.replace(/^\//,"").split("/").slice(S.length).join("/")}let _=N8(e,{pathname:x});Oo(h||_!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),Oo(_==null||_[_.length-1].route.element!==void 0||_[_.length-1].route.Component!==void 0||_[_.length-1].route.lazy!==void 0,`Matched leaf route at location "${v.pathname}${v.search}${v.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 w=eG(_&&_.map(S=>Object.assign({},S,{params:Object.assign({},s,S.params),pathname:$a([u,i.encodeLocation?i.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?u:$a([u,i.encodeLocation?i.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),o,r,n);return t&&w?$.createElement(Kp.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...v},navigationType:"POP"}},w):w}function ZH(){let e=oG(),t=VH(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=$.createElement($.Fragment,null,$.createElement("p",null,"💿 Hey developer 👋"),$.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",$.createElement("code",{style:o},"ErrorBoundary")," or"," ",$.createElement("code",{style:o},"errorElement")," prop on your route.")),$.createElement($.Fragment,null,$.createElement("h2",null,"Unexpected Application Error!"),$.createElement("h3",{style:{fontStyle:"italic"}},t),r?$.createElement("pre",{style:i},r):null,a)}var XH=$.createElement(ZH,null),QH=class extends $.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?$.createElement(Co.Provider,{value:this.props.routeContext},$.createElement(ME.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function JH({routeContext:e,match:t,children:r}){let n=$.useContext(Gf);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),$.createElement(Co.Provider,{value:e},r)}function eG(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);ur(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,x=null;r&&(p=o&&u.route.id?o[u.route.id]:void 0,b=u.route.errorElement||XH,a&&(s<0&&h===0?(U8("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),v=!0,x=null):s===h&&(v=!0,x=u.route.hydrateFallbackElement||null)));let _=t.concat(i.slice(0,h+1)),w=()=>{let O;return p?O=b:v?O=x:u.route.Component?O=$.createElement(u.route.Component,null):u.route.element?O=u.route.element:O=c,$.createElement(JH,{match:u,routeContext:{outlet:c,matches:_,isDataRoute:r!=null},children:O})};return r&&(u.route.ErrorBoundary||u.route.errorElement||h===0)?$.createElement(QH,{location:r.location,revalidation:r.revalidation,component:b,error:p,children:w(),routeContext:{outlet:null,matches:_,isDataRoute:!0}}):w()},null)}function LE(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function tG(e){let t=$.useContext(Gf);return ur(t,LE(e)),t}function rG(e){let t=$.useContext(C0);return ur(t,LE(e)),t}function nG(e){let t=$.useContext(Co);return ur(t,LE(e)),t}function IE(e){let t=nG(e),r=t.matches[t.matches.length-1];return ur(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function iG(){return IE("useRouteId")}function oG(){var n;let e=$.useContext(ME),t=rG("useRouteError"),r=IE("useRouteError");return e!==void 0?e:(n=t.errors)==null?void 0:n[r]}function aG(){let{router:e}=tG("useNavigate"),t=IE("useNavigate"),r=$.useRef(!1);return F8(()=>{r.current=!0}),$.useCallback(async(i,o={})=>{Oo(r.current,$8),r.current&&(typeof i=="number"?e.navigate(i):await e.navigate(i,{fromRouteId:t,...o}))},[e,t])}var O3={};function U8(e,t,r){!t&&!O3[e]&&(O3[e]=!0,Oo(!1,r))}$.memo(sG);function sG({routes:e,future:t,state:r}){return B8(e,void 0,r,t)}function DE({to:e,replace:t,state:r,relative:n}){ur(Mu(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=$.useContext(Po);Oo(!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}=$.useContext(Co),{pathname:a}=yn(),s=la(),c=NE(e,RE(o),a,n==="path"),u=JSON.stringify(c);return $.useEffect(()=>{s(JSON.parse(u),{replace:t,state:r,relative:n})},[s,u,n,t,r]),null}function Pt(e){ur(!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 lG({basename:e="/",children:t=null,location:r,navigationType:n="POP",navigator:i,static:o=!1}){ur(!Mu(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let a=e.replace(/^\/*/,"/"),s=$.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=$.useMemo(()=>{let x=nl(c,a);return x==null?null:{location:{pathname:x,search:u,hash:h,state:p,key:v},navigationType:n}},[a,c,u,h,p,v,n]);return Oo(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:$.createElement(Po.Provider,{value:s},$.createElement(Kp.Provider,{children:t,value:b}))}function E0({children:e,location:t}){return YH(eS(e),t)}function eS(e,t=[]){let r=[];return $.Children.forEach(e,(n,i)=>{if(!$.isValidElement(n))return;let o=[...t,i];if(n.type===$.Fragment){r.push.apply(r,eS(n.props.children,o));return}ur(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>`),ur(!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=eS(n.props.children,o)),r.push(a)}),r}var gg="get",yg="application/x-www-form-urlencoded";function T0(e){return e!=null&&typeof e.tagName=="string"}function uG(e){return T0(e)&&e.tagName.toLowerCase()==="button"}function cG(e){return T0(e)&&e.tagName.toLowerCase()==="form"}function fG(e){return T0(e)&&e.tagName.toLowerCase()==="input"}function dG(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function hG(e,t){return e.button===0&&(!t||t==="_self")&&!dG(e)}var Uv=null;function pG(){if(Uv===null)try{new FormData(document.createElement("form"),0),Uv=!1}catch{Uv=!0}return Uv}var mG=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function v1(e){return e!=null&&!mG.has(e)?(Oo(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${yg}"`),null):e}function vG(e,t){let r,n,i,o,a;if(cG(e)){let s=e.getAttribute("action");n=s?nl(s,t):null,r=e.getAttribute("method")||gg,i=v1(e.getAttribute("enctype"))||yg,o=new FormData(e)}else if(uG(e)||fG(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?nl(c,t):null,r=e.getAttribute("formmethod")||s.getAttribute("method")||gg,i=v1(e.getAttribute("formenctype"))||v1(s.getAttribute("enctype"))||yg,o=new FormData(s,e),!pG()){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(T0(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=gg,n=null,i=yg,a=e}return o&&i==="text/plain"&&(a=o,o=void 0),{action:n,method:r.toLowerCase(),encType:i,formData:o,body:a}}function $E(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function gG(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 yG(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 bG(e,t,r){let n=await Promise.all(e.map(async i=>{let o=t.routes[i.route.id];if(o){let a=await gG(o,r);return a.links?a.links():[]}return[]}));return OG(n.flat(1).filter(yG).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function S3(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 _G(e,t){return xG(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 xG(e){return[...new Set(e)]}function wG(e){let t={},r=Object.keys(e).sort();for(let n of r)t[n]=e[n];return t}function OG(e,t){let r=new Set;return new Set(t),e.reduce((n,i)=>{let o=JSON.stringify(wG(i));return r.has(o)||(r.add(o),n.push({key:o,link:i})),n},[])}function SG(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 PG(){let e=$.useContext(Gf);return $E(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function CG(){let e=$.useContext(C0);return $E(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var FE=$.createContext(void 0);FE.displayName="FrameworkContext";function z8(){let e=$.useContext(FE);return $E(e,"You must render this element inside a <HydratedRouter> element"),e}function EG(e,t){let r=$.useContext(FE),[n,i]=$.useState(!1),[o,a]=$.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:u,onMouseLeave:h,onTouchStart:p}=t,v=$.useRef(null);$.useEffect(()=>{if(e==="render"&&a(!0),e==="viewport"){let _=O=>{O.forEach(S=>{a(S.isIntersecting)})},w=new IntersectionObserver(_,{threshold:.5});return v.current&&w.observe(v.current),()=>{w.disconnect()}}},[e]),$.useEffect(()=>{if(n){let _=setTimeout(()=>{a(!0)},100);return()=>{clearTimeout(_)}}},[n]);let b=()=>{i(!0)},x=()=>{i(!1),a(!1)};return r?e!=="intent"?[o,v,{}]:[o,v,{onFocus:oh(s,b),onBlur:oh(c,x),onMouseEnter:oh(u,b),onMouseLeave:oh(h,x),onTouchStart:oh(p,b)}]:[!1,v,{}]}function oh(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function TG({page:e,...t}){let{router:r}=PG(),n=$.useMemo(()=>N8(r.routes,e,r.basename),[r.routes,e,r.basename]);return n?$.createElement(AG,{page:e,matches:n,...t}):(console.warn(`Tried to prefetch ${e} but no routes matched.`),null)}function jG(e){let{manifest:t,routeModules:r}=z8(),[n,i]=$.useState([]);return $.useEffect(()=>{let o=!1;return bG(e,t,r).then(a=>{o||i(a)}),()=>{o=!0}},[e,t,r]),n}function AG({page:e,matches:t,...r}){let n=yn(),{manifest:i,routeModules:o}=z8(),{loaderData:a,matches:s}=CG(),c=$.useMemo(()=>S3(e,t,s,i,n,"data"),[e,t,s,i,n]),u=$.useMemo(()=>S3(e,t,s,i,n,"assets"),[e,t,s,i,n]),h=$.useMemo(()=>{if(e===n.pathname+n.search+n.hash)return[];let b=new Set,x=!1;if(t.forEach(w=>{var S;let O=i.routes[w.route.id];!O||!O.hasLoader||(!c.some(E=>E.route.id===w.route.id)&&w.route.id in a&&((S=o[w.route.id])!=null&&S.shouldRevalidate)||O.hasClientLoader?x=!0:b.add(w.route.id))}),b.size===0)return[];let _=SG(e);return x&&b.size>0&&_.searchParams.set("_routes",t.filter(w=>b.has(w.route.id)).map(w=>w.route.id).join(",")),[_.pathname+_.search]},[a,n,i,c,t,e,o]),p=$.useMemo(()=>_G(u,i),[u,i]),v=jG(u);return $.createElement($.Fragment,null,h.map(b=>$.createElement("link",{key:b,rel:"prefetch",as:"fetch",href:b,...r})),p.map(b=>$.createElement("link",{key:b,rel:"modulepreload",href:b,...r})),v.map(({key:b,link:x})=>$.createElement("link",{key:b,...x})))}function kG(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var V8=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{V8&&(window.__reactRouterVersion="7.0.2")}catch{}function W8({basename:e,children:t,window:r}){let n=$.useRef();n.current==null&&(n.current=xH({window:r,v5Compat:!0}));let i=n.current,[o,a]=$.useState({action:i.action,location:i.location}),s=$.useCallback(c=>{$.startTransition(()=>a(c))},[a]);return $.useLayoutEffect(()=>i.listen(s),[i,s]),$.createElement(lG,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:i})}var q8=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Gt=$.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:x}=$.useContext(Po),_=typeof u=="string"&&q8.test(u),w,O=!1;if(typeof u=="string"&&_&&(w=u,V8))try{let V=new URL(window.location.href),B=u.startsWith("//")?new URL(V.protocol+u):new URL(u),W=nl(B.pathname,x);B.origin===V.origin&&W!=null?u=W+B.search+B.hash:O=!0}catch{Oo(!1,`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let S=GH(u,{relative:i}),[E,T,A]=EG(n,v),j=MG(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=$.createElement("a",{...v,...A,href:w||S,onClick:O||o?t:N,ref:kG(b,T),target:c,"data-discover":!_&&r==="render"?"true":void 0});return E&&!_?$.createElement($.Fragment,null,F,$.createElement(TG,{page:S})):F});Gt.displayName="Link";var BE=$.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=Yp(a,{relative:u.relative}),v=yn(),b=$.useContext(C0),{navigator:x,basename:_}=$.useContext(Po),w=b!=null&&FG(p)&&s===!0,O=x.encodeLocation?x.encodeLocation(p).pathname:p.pathname,S=v.pathname,E=b&&b.navigation&&b.navigation.location?b.navigation.location.pathname:null;r||(S=S.toLowerCase(),E=E?E.toLowerCase():null,O=O.toLowerCase()),E&&_&&(E=nl(E,_)||E);const T=O!=="/"&&O.endsWith("/")?O.length-1:O.length;let A=S===O||!i&&S.startsWith(O)&&S.charAt(T)==="/",j=E!=null&&(E===O||!i&&E.startsWith(O)&&E.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 $.createElement(Gt,{...u,"aria-current":F,className:V,ref:h,style:B,to:a,viewTransition:s},typeof c=="function"?c(N):c)});BE.displayName="NavLink";var RG=$.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:n,replace:i,state:o,method:a=gg,action:s,onSubmit:c,relative:u,preventScrollReset:h,viewTransition:p,...v},b)=>{let x=DG(),_=$G(s,{relative:u}),w=a.toLowerCase()==="get"?"get":"post",O=typeof s=="string"&&q8.test(s),S=E=>{if(c&&c(E),E.defaultPrevented)return;E.preventDefault();let T=E.nativeEvent.submitter,A=(T==null?void 0:T.getAttribute("formmethod"))||a;x(T||E.currentTarget,{fetcherKey:t,method:A,navigate:r,replace:i,state:o,relative:u,preventScrollReset:h,viewTransition:p})};return $.createElement("form",{ref:b,method:w,action:_,onSubmit:n?c:S,...v,"data-discover":!O&&e==="render"?"true":void 0})});RG.displayName="Form";function NG(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function H8(e){let t=$.useContext(Gf);return ur(t,NG(e)),t}function MG(e,{target:t,replace:r,state:n,preventScrollReset:i,relative:o,viewTransition:a}={}){let s=la(),c=yn(),u=Yp(e,{relative:o});return $.useCallback(h=>{if(hG(h,t)){h.preventDefault();let p=r!==void 0?r:Zh(c)===Zh(u);s(e,{replace:p,state:n,preventScrollReset:i,relative:o,viewTransition:a})}},[c,s,u,r,n,t,e,i,o,a])}var LG=0,IG=()=>`__${String(++LG)}__`;function DG(){let{router:e}=H8("useSubmit"),{basename:t}=$.useContext(Po),r=iG();return $.useCallback(async(n,i={})=>{let{action:o,method:a,encType:s,formData:c,body:u}=vG(n,t);if(i.navigate===!1){let h=i.fetcherKey||IG();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 $G(e,{relative:t}={}){let{basename:r}=$.useContext(Po),n=$.useContext(Co);ur(n,"useFormAction must be used inside a RouteContext");let[i]=n.matches.slice(-1),o={...Yp(e||".",{relative:t})},a=yn();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:$a([r,o.pathname])),Zh(o)}function FG(e,t={}){let r=$.useContext(D8);ur(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=H8("useViewTransitionState"),i=Yp(e,{relative:t.relative});if(!r.isTransitioning)return!1;let o=nl(r.currentLocation.pathname,n)||r.currentLocation.pathname,a=nl(r.nextLocation.pathname,n)||r.nextLocation.pathname;return Ag(i.pathname,a)!=null||Ag(i.pathname,o)!=null}new TextEncoder;const BG="shlink-web-client",UG="A React-based progressive web application for shlink",zG="/shlink-web-client/dependabot/npm_and_yarn/sass-1.83.0",VG="https://github.com/shlinkio/shlink-web-client",WG="MIT",qG="module",HG={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"},GG={"@fortawesome/fontawesome-free":"^6.7.1","@fortawesome/fontawesome-svg-core":"^6.7.1","@fortawesome/free-brands-svg-icons":"^6.7.1","@fortawesome/free-regular-svg-icons":"^6.7.1","@fortawesome/free-solid-svg-icons":"^6.7.1","@fortawesome/react-fontawesome":"^0.2.2","@json2csv/plainjs":"^7.0.6","@reduxjs/toolkit":"^2.4.0","@shlinkio/data-manipulation":"^1.0.3","@shlinkio/shlink-frontend-kit":"^0.7.0","@shlinkio/shlink-js-sdk":"^1.3.0","@shlinkio/shlink-web-component":"^0.12.0",bootstrap:"5.2.3",bottlejs:"^2.0.1",clsx:"^2.1.1","compare-versions":"^6.1.1",csvtojson:"^2.0.10","date-fns":"^4.1.0",react:"^18.3.1","react-dom":"^18.3.1","react-external-link":"^2.4.0","react-redux":"^9.1.2","react-router":"^7.0.2",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"},KG={"@shlinkio/eslint-config-js-coding-standard":"~3.2.1","@shlinkio/stylelint-config-css-coding-standard":"~1.1.1","@stylistic/eslint-plugin":"^2.11.0","@testing-library/jest-dom":"^6.6.3","@testing-library/react":"^16.1.0","@testing-library/user-event":"^14.5.2","@total-typescript/shoehorn":"^0.1.2","@types/react":"^18.3.12","@types/react-dom":"^18.3.1","@types/uuid":"^10.0.0","@vitejs/plugin-react":"^4.3.4","@vitest/coverage-v8":"^2.1.6","adm-zip":"^0.5.16","axe-core":"^4.10.2",chalk:"^5.3.0",eslint:"^9.16.0","eslint-plugin-jsx-a11y":"^6.10.2","eslint-plugin-react":"^7.37.2","eslint-plugin-react-hooks":"^5.1.0","eslint-plugin-simple-import-sort":"^12.1.1",history:"^5.3.0",jsdom:"^25.0.1",sass:"^1.83.0",stylelint:"^15.11.0",typescript:"^5.7.2","typescript-eslint":"^8.17.0",vite:"^6.0.3","vite-plugin-pwa":"^0.21.1",vitest:"^2.0.2"},YG=[">0.2%","not dead","not ie <= 11","not op_mini all"],kg={name:BG,description:UG,private:!1,homepage:zG,repository:VG,license:WG,type:qG,scripts:HG,dependencies:GG,devDependencies:KG,browserslist:YG};var So,na=".",G8="function",K8="string",Y8="__global__",UE="Provider",ZG=0,zE=Array.prototype.slice,XG=function(t,r){var n=t[r];if(n===void 0&&So.config.strict)throw new Error("Bottle was unable to resolve a service. `"+r+"` is undefined.");return n},j0=function(t){var r;return this.nested[t]||(r=So.pop(),this.nested[t]=r,this.factory(t,function(){return r.container})),this.nested[t]},Z8=function(t){return t.split(na).reduce(XG,this)},QG=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]},JG=function(t,r){var n,i;return typeof t===G8&&(r=t,t=Y8),n=t.split(na),i=n.shift(),n.length?j0.call(this,i).middleware(n.join(na),r):(this.middlewares[i]||(this.middlewares[i]=[]),this.middlewares[i].push(r)),this},eK=function(t,r){return r(t)},P3=function(t,r){return(t[r]||[]).concat(t.__global__||[])},tK=function(t,r){var n,i,o,a,s;return this.id,o=this.container,a=this.decorators,s=this.middlewares,n=t+UE,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=P3(a,t).reduce(eK,u.$get(o)),delete o[n],delete o[t]),h===void 0?h:QG(P3(s,t),t,h,o)}},Object.defineProperties(o,i),this},X8=function(t,r){var n,i;return n=t.split(na),this.providerMap[t]&&n.length===1&&!this.container[t+UE]?console.error(t+" provider already instantiated."):(this.originalProviders[t]=r,this.providerMap[t]=!0,i=n.shift(),n.length?(j0.call(this,i).provider(n.join(na),r),this):tK.call(this,i,r))},VE=function(t,r){return X8.call(this,t,function(){this.$get=r})},Q8=function(t,r,n){var i=arguments.length>3?zE.call(arguments,3):[],o=this;return VE.call(this,t,function(){var s=r,c=i.map(Z8,o.container);return n?new(r.bind.apply(r,[null].concat(c))):s.apply(null,c)})},rK=function(t,r){return Q8.apply(this,[t,r,!0].concat(zE.call(arguments,2)))},nK=function(t,r){return Q8.apply(this,[t,r,!1].concat(zE.call(arguments,2)))},J8=function(t,r){Object.defineProperty(this,t,{configurable:!0,enumerable:!0,value:r,writable:!0})},e$=function(t,r){var n=t[r];return n||(n={},J8.call(t,r,n)),n},iK=function(t,r){var n;return n=t.split(na),t=n.pop(),J8.call(n.reduce(e$,this.container),t,r),this},oK=function(t,r){Object.defineProperty(this,t,{configurable:!1,enumerable:!0,value:r,writable:!1})},aK=function(t,r){var n=t.split(na);return t=n.pop(),oK.call(n.reduce(e$,this.container),t,r),this},t$=function(t,r){var n,i;return typeof t===G8&&(r=t,t=Y8),n=t.split(na),i=n.shift(),n.length?j0.call(this,i).decorator(n.join(na),r):(this.decorators[i]||(this.decorators[i]=[]),this.decorators[i].push(r)),this},sK=function(t){return this.deferred.push(t),this},lK=function(t){return(t||[]).map(Z8,this.container)},uK=function(t,r){return VE.call(this,t,function(i){return{instance:r.bind(r,i)}})},cK=function(t){return!/^\$(?:decorator|register|list)$|Provider$/.test(t)},WE=function(t){return Object.keys(t||this.container||{}).filter(cK)},Rg={},fK=function(t){var r;return typeof t===K8?(r=Rg[t],r||(Rg[t]=r=new So,r.constant("BOTTLE_NAME",t)),r):new So},dK=function(t){typeof t===K8?delete Rg[t]:Rg={}},r$=function(t){var r=t.$value===void 0?t:t.$value;return this[t.$type||"service"].apply(this,[t.$name,r].concat(t.$inject||[]))},C3=function(t){delete this.providerMap[t],delete this.container[t],delete this.container[t+UE]},hK=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(na);a.length>1&&a.forEach(C3,j0.call(this,a[0])),C3.call(this,o),this.provider(o,r[o])}},this)},pK=function(t){return this.deferred.forEach(function(n){n(t)}),this};So=function e(t){if(!(this instanceof e))return e.pop(t);this.id=ZG++,this.decorators={},this.middlewares={},this.nested={},this.providerMap={},this.originalProviders={},this.deferred=[],this.container={$decorator:t$.bind(this),$register:r$.bind(this),$list:WE.bind(this)}};So.prototype={constant:aK,decorator:t$,defer:sK,digest:lK,factory:VE,instanceFactory:uK,list:WE,middleware:JG,provider:X8,resetProviders:hK,register:r$,resolve:pK,service:rK,serviceFactory:nK,value:iK};So.pop=fK;So.clear=dK;So.list=WE;So.config={strict:!1};const n$=So;var mK=Object.defineProperty,vK=(e,t,r)=>t in e?mK(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,gK=(e,t,r)=>vK(e,t+"",r);const yK=(e,t)=>`${e}/rest/v${t}`,bK=e=>e.dir?`${e.field}-${e.dir}`:void 0,_K=({orderBy:e={},excludeMaxVisitsReached:t,excludePastValidUntil:r,...n})=>({...n,excludeMaxVisitsReached:t===!0?"true":void 0,excludePastValidUntil:r===!0?"true":void 0,orderBy:bK(e)}),xK=(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}`},wK=(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()};class OK{constructor(t,r){gK(this,"apiVersion"),this.httpClient=t,this.serverInfo=r,this.apiVersion=3}async listShortUrls(t={}){return this.performRequest({url:"/short-urls",query:_K(t)}).then(({shortUrls:r})=>r)}async createShortUrl(t){const r=Object.entries(t).reduce((n,[i,o])=>(o&&(n[i]=o),n),{});return this.performRequest({url:"/short-urls",method:"POST",body:r})}async getShortUrl(t,r){return this.performRequest({url:`/short-urls/${t}`,query:{domain:r}})}async deleteShortUrl(t,r){return this.performEmptyRequest({url:`/short-urls/${t}`,method:"DELETE",query:{domain:r}})}async updateShortUrl(t,r,n){return this.performRequest({url:`/short-urls/${t}`,method:"PATCH",query:{domain:r},body:n})}async getShortUrlRedirectRules(t,r){return this.performRequest({url:`/short-urls/${t}/redirect-rules`,method:"GET",query:{domain:r}})}async setShortUrlRedirectRules(t,r,n){return this.performRequest({url:`/short-urls/${t}/redirect-rules`,method:"POST",query:{domain:r},body:n})}async getVisitsOverview(){return this.performRequest({url:"/visits"}).then(({visits:t})=>t)}async getShortUrlVisits(t,r){return this.performVisitsRequest({url:`/short-urls/${t}/visits`,query:r})}async getTagVisits(t,r){return this.performVisitsRequest({url:`/tags/${t}/visits`,query:r})}async getDomainVisits(t,r){return this.performVisitsRequest({url:`/domains/${t}/visits`,query:r})}async getOrphanVisits(t){return this.performVisitsRequest({url:"/visits/orphan",query:t})}async getNonOrphanVisits(t){return this.performVisitsRequest({url:"/visits/non-orphan",query:t})}async performVisitsRequest(t){return this.performRequest(t).then(({visits:r})=>r)}async deleteShortUrlVisits(t,r){const n=r?{domain:r}:void 0;return this.performRequest({method:"DELETE",url:`/short-urls/${t}/visits`,query:n})}async deleteOrphanVisits(){return this.performRequest({method:"DELETE",url:"/visits/orphan"})}async listTags(){return this.performRequest({url:"/tags",query:{withStats:"true"}}).then(({tags:t})=>t)}async tagsStats(){return this.performRequest({url:"/tags/stats"}).then(({tags:t})=>t)}async deleteTags(t){return this.performEmptyRequest({url:"/tags",method:"DELETE",query:{tags:t}}).then(()=>({tags:t}))}async editTag(t,r){return this.performEmptyRequest({url:"/tags",method:"PUT",body:{oldName:t,newName:r}}).then(()=>({oldName:t,newName:r}))}async listDomains(){return this.performRequest({url:"/domains"}).then(({domains:t})=>t)}async editDomainRedirects(t){return this.performRequest({url:"/domains/redirects",method:"PATCH",body:t})}async health(t){return this.performRequest({url:"/health",domain:t})}async mercureInfo(){return this.performRequest({url:"/mercure-info"})}async performRequest(t){return this.httpClient.jsonRequest(...this.toFetchParams(t))}async performEmptyRequest(t){return this.httpClient.emptyRequest(...this.toFetchParams(t))}toFetchParams({url:t,method:r="GET",query:n={},body:i,domain:o}){const a=wK(n),s=a?`?${a}`:"",c=o?xK(this.serverInfo.baseUrl,o):this.serverInfo.baseUrl;return[`${yK(c,this.apiVersion)}${t}${s}`,{method:r,body:i&&JSON.stringify(i),headers:{"X-Api-Key":this.serverInfo.apiKey}}]}}const i$=e=>!!(e!=null&&e.url)&&!!(e!=null&&e.apiKey),kh=e=>!!(e!=null&&e.id),qE=e=>!!(e!=null&&e.version),SK=e=>!!(e!=null&&e.serverNotFound),PK=e=>kh(e)?e.id:"",CK=({name:e,url:t,apiKey:r})=>({name:e,url:t,apiKey:r}),E3={},EK=e=>typeof e=="function",TK=e=>{const{selectedServer:t}=e();if(!i$(t))throw new Error("There's no selected server or it is not found");return t},jK=e=>t=>{const{url:r,apiKey:n}=EK(t)?TK(t):t,i=`${n}_${r}`,o=E3[i]??new OK(e,{apiKey:n,baseUrl:r});return E3[i]=o,o},AK=e=>{e.serviceFactory("buildShlinkApiClient",jK,"HttpClient")};/*!
* Font Awesome Free 6.7.1 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
* Copyright 2024 Fonticons, Inc.
*/const kK={prefix:"fas",iconName:"trash-can",icon:[448,512,[61460,"trash-alt"],"f2ed","M135.2 17.7C140.6 6.8 151.7 0 163.8 0L284.2 0c12.1 0 23.2 6.8 28.6 17.7L320 32l96 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 96C14.3 96 0 81.7 0 64S14.3 32 32 32l96 0 7.2-14.3zM32 128l384 0 0 320c0 35.3-28.7 64-64 64L96 512c-35.3 0-64-28.7-64-64l0-320zm96 64c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224c0-8.8-7.2-16-16-16z"]},RK={prefix:"fas",iconName:"down-left-and-up-right-to-center",icon:[512,512,["compress-alt"],"f422","M439 7c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2s-12.5 14.8-22.2 14.8l-144 0c-13.3 0-24-10.7-24-24l0-144c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l39 39L439 7zM72 272l144 0c13.3 0 24 10.7 24 24l0 144c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39L73 505c-9.4 9.4-24.6 9.4-33.9 0L7 473c-9.4-9.4-9.4-24.6 0-33.9l87-87L55 313c-6.9-6.9-8.9-17.2-5.2-26.2s12.5-14.8 22.2-14.8z"]},NK={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"]},MK=NK,LK={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"]},HE=LK,IK={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"]},DK={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"]},o$=DK,a$={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"]},$K={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"]},GE={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"]},FK={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"]},BK=FK,UK={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"]},KE=UK,zK={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"]},VK={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"]},WK={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"]},T3={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"]},qK={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"]},HK=qK,GK={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"]},tS=GK,KK={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"]},YK={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"]},ZK={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"]},XK=ZK,YE={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"]},A0={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"]},s$={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"]},j3={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"]},QK={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"]},JK={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"]},eY={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"]},tY=eY,rY={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"]},nY={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"]},ZE=nY,XE={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"]},iY=XE,oY={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"]},aY={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"]},sY={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"]},lY=sY,uY={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"]},cY=uY,fY={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"]},dY=fY,hY={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"]},l$=hY,pY={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"]},mY={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"]},vY={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"]},gY={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"]},yY=gY,bY={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"]},_Y={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"]},Zp={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"]},u$={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"]},rS=u$,xY={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"]},wY={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"]},OY=wY,A3={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"]},c$={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"]},SY=c$,PY={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"]},CY={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"]},EY={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"]},TY={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"]},jY={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"]},Xh={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"]},f$={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"]},AY={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"]},kY=AY;/*!
* Font Awesome Free 6.7.1 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
* Copyright 2024 Fonticons, Inc.
*/function RY(e,t,r){return(t=MY(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function k3(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?k3(Object(r),!0).forEach(function(n){RY(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):k3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function NY(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 MY(e){var t=NY(e,"string");return typeof t=="symbol"?t:t+""}const R3=()=>{};let QE={},d$={},h$=null,p$={mark:R3,measure:R3};try{typeof window<"u"&&(QE=window),typeof document<"u"&&(d$=document),typeof MutationObserver<"u"&&(h$=MutationObserver),typeof performance<"u"&&(p$=performance)}catch{}const{userAgent:N3=""}=QE.navigator||{},il=QE,or=d$,M3=h$,zv=p$;il.document;const Qa=!!or.documentElement&&!!or.head&&typeof or.addEventListener=="function"&&typeof or.createElement=="function",m$=~N3.indexOf("MSIE")||~N3.indexOf("Trident/");var LY=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,IY=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,v$={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"}},DY={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},g$=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],gn="classic",k0="duotone",$Y="sharp",FY="sharp-duotone",y$=[gn,k0,$Y,FY],BY={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"}},UY={"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"}},zY=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}]]),VY={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"}},WY=["fak","fa-kit","fakd","fa-kit-duotone"],L3={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},qY=["kit"],HY={kit:{"fa-kit":"fak"},"kit-duotone":{"fa-kit-duotone":"fakd"}},GY=["fak","fakd"],KY={kit:{fak:"fa-kit"},"kit-duotone":{fakd:"fa-kit-duotone"}},I3={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},Vv={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},YY=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],ZY=["fak","fa-kit","fakd","fa-kit-duotone"],XY={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},QY={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"}},JY={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]},nS={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"}},eZ=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],iS=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt",...YY,...eZ],tZ=["solid","regular","light","thin","duotone","brands"],b$=[1,2,3,4,5,6,7,8,9,10],rZ=b$.concat([11,12,13,14,15,16,17,18,19,20]),nZ=[...Object.keys(JY),...tZ,"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",Vv.GROUP,Vv.SWAP_OPACITY,Vv.PRIMARY,Vv.SECONDARY].concat(b$.map(e=>"".concat(e,"x"))).concat(rZ.map(e=>"w-".concat(e))),iZ={"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 Va="___FONT_AWESOME___",oS=16,_$="fa",x$="svg-inline--fa",_u="data-fa-i2svg",aS="data-fa-pseudo-element",oZ="data-fa-pseudo-element-pending",JE="data-prefix",eT="data-icon",D3="fontawesome-i2svg",aZ="async",sZ=["HTML","HEAD","STYLE","SCRIPT"],w$=(()=>{try{return!0}catch{return!1}})();function Xp(e){return new Proxy(e,{get(t,r){return r in t?t[r]:t[gn]}})}const O$=Ue({},v$);O$[gn]=Ue(Ue(Ue(Ue({},{"fa-duotone":"duotone"}),v$[gn]),L3.kit),L3["kit-duotone"]);const lZ=Xp(O$),sS=Ue({},VY);sS[gn]=Ue(Ue(Ue(Ue({},{duotone:"fad"}),sS[gn]),I3.kit),I3["kit-duotone"]);const $3=Xp(sS),lS=Ue({},nS);lS[gn]=Ue(Ue({},lS[gn]),KY.kit);const tT=Xp(lS),uS=Ue({},QY);uS[gn]=Ue(Ue({},uS[gn]),HY.kit);Xp(uS);const uZ=LY,S$="fa-layers-text",cZ=IY,fZ=Ue({},BY);Xp(fZ);const dZ=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],g1=DY,hZ=[...qY,...nZ],Rh=il.FontAwesomeConfig||{};function pZ(e){var t=or.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function mZ(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}or&&typeof or.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=mZ(pZ(r));i!=null&&(Rh[n]=i)});const P$={styleDefault:"solid",familyDefault:gn,cssPrefix:_$,replacementClass:x$,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Rh.familyPrefix&&(Rh.cssPrefix=Rh.familyPrefix);const af=Ue(Ue({},P$),Rh);af.autoReplaceSvg||(af.observeMutations=!1);const at={};Object.keys(P$).forEach(e=>{Object.defineProperty(at,e,{enumerable:!0,set:function(t){af[e]=t,Nh.forEach(r=>r(at))},get:function(){return af[e]}})});Object.defineProperty(at,"familyPrefix",{enumerable:!0,set:function(e){af.cssPrefix=e,Nh.forEach(t=>t(at))},get:function(){return af.cssPrefix}});il.FontAwesomeConfig=at;const Nh=[];function vZ(e){return Nh.push(e),()=>{Nh.splice(Nh.indexOf(e),1)}}const Fs=oS,Ko={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function gZ(e){if(!e||!Qa)return;const t=or.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const r=or.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 or.head.insertBefore(t,n),e}const yZ="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Qh(){let e=12,t="";for(;e-- >0;)t+=yZ[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 rT(e){return e.classList?Yf(e.classList):(e.getAttribute("class")||"").split(" ").filter(t=>t)}function C$(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function bZ(e){return Object.keys(e||{}).reduce((t,r)=>t+"".concat(r,'="').concat(C$(e[r]),'" '),"").trim()}function R0(e){return Object.keys(e||{}).reduce((t,r)=>t+"".concat(r,": ").concat(e[r].trim(),";"),"")}function nT(e){return e.size!==Ko.size||e.x!==Ko.x||e.y!==Ko.y||e.rotate!==Ko.rotate||e.flipX||e.flipY}function _Z(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 xZ(e){let{transform:t,width:r=oS,height:n=oS,startCentered:i=!1}=e,o="";return i&&m$?o+="translate(".concat(t.x/Fs-r/2,"em, ").concat(t.y/Fs-n/2,"em) "):i?o+="translate(calc(-50% + ".concat(t.x/Fs,"em), calc(-50% + ").concat(t.y/Fs,"em)) "):o+="translate(".concat(t.x/Fs,"em, ").concat(t.y/Fs,"em) "),o+="scale(".concat(t.size/Fs*(t.flipX?-1:1),", ").concat(t.size/Fs*(t.flipY?-1:1),") "),o+="rotate(".concat(t.rotate,"deg) "),o}var wZ=`: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 E$(){const e=_$,t=x$,r=at.cssPrefix,n=at.replacementClass;let i=wZ;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 F3=!1;function y1(){at.autoAddCss&&!F3&&(gZ(E$()),F3=!0)}var OZ={mixout(){return{dom:{css:E$,insertCss:y1}}},hooks(){return{beforeDOMElementCreation(){y1()},beforeI2svg(){y1()}}}};const Wa=il||{};Wa[Va]||(Wa[Va]={});Wa[Va].styles||(Wa[Va].styles={});Wa[Va].hooks||(Wa[Va].hooks={});Wa[Va].shims||(Wa[Va].shims=[]);var Yo=Wa[Va];const T$=[],j$=function(){or.removeEventListener("DOMContentLoaded",j$),Ng=1,T$.map(e=>e())};let Ng=!1;Qa&&(Ng=(or.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(or.readyState),Ng||or.addEventListener("DOMContentLoaded",j$));function SZ(e){Qa&&(Ng?setTimeout(e,0):T$.push(e))}function Qp(e){const{tag:t,attributes:r={},children:n=[]}=e;return typeof e=="string"?C$(e):"<".concat(t," ").concat(bZ(r),">").concat(n.map(Qp).join(""),"</").concat(t,">")}function B3(e,t,r){if(e&&e[t]&&e[t][r])return{prefix:t,iconName:r,icon:e[t][r]}}var b1=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 PZ(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 cS(e){const t=PZ(e);return t.length===1?t[0].toString(16):null}function CZ(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 U3(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 fS(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:n=!1}=r,i=U3(t);typeof Yo.hooks.addPack=="function"&&!n?Yo.hooks.addPack(e,U3(t)):Yo.styles[e]=Ue(Ue({},Yo.styles[e]||{}),i),e==="fas"&&fS("fa",t)}const{styles:Jh,shims:EZ}=Yo,A$=Object.keys(tT),TZ=A$.reduce((e,t)=>(e[t]=Object.keys(tT[t]),e),{});let iT=null,k$={},R$={},N$={},M$={},L$={};function jZ(e){return~hZ.indexOf(e)}function AZ(e,t){const r=t.split("-"),n=r[0],i=r.slice(1).join("-");return n===e&&i!==""&&!jZ(i)?i:null}const I$=()=>{const e=n=>b1(Jh,(i,o,a)=>(i[a]=b1(o,n,{}),i),{});k$=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)),R$=e((n,i,o)=>(n[o]=o,i[2]&&i[2].filter(s=>typeof s=="string").forEach(s=>{n[s]=o}),n)),L$=e((n,i,o)=>{const a=i[2];return n[o]=o,a.forEach(s=>{n[s]=o}),n});const t="far"in Jh||at.autoFetchSvg,r=b1(EZ,(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:{}});N$=r.names,M$=r.unicodes,iT=N0(at.styleDefault,{family:at.familyDefault})};vZ(e=>{iT=N0(e.styleDefault,{family:at.familyDefault})});I$();function oT(e,t){return(k$[e]||{})[t]}function kZ(e,t){return(R$[e]||{})[t]}function lu(e,t){return(L$[e]||{})[t]}function D$(e){return N$[e]||{prefix:null,iconName:null}}function RZ(e){const t=M$[e],r=oT("fas",e);return t||(r?{prefix:"fas",iconName:r}:null)||{prefix:null,iconName:null}}function ol(){return iT}const $$=()=>({prefix:null,iconName:null,rest:[]});function NZ(e){let t=gn;const r=A$.reduce((n,i)=>(n[i]="".concat(at.cssPrefix,"-").concat(i),n),{});return y$.forEach(n=>{(e.includes(r[n])||e.some(i=>TZ[n].includes(i)))&&(t=n)}),t}function N0(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:r=gn}=t,n=lZ[r][e];if(r===k0&&!e)return"fad";const i=$3[r][e]||$3[r][n],o=e in Yo.styles?e:null;return i||o||null}function MZ(e){let t=[],r=null;return e.forEach(n=>{const i=AZ(at.cssPrefix,n);i?r=i:n&&t.push(n)}),{iconName:r,rest:t}}function z3(e){return e.sort().filter((t,r,n)=>n.indexOf(t)===r)}function M0(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:r=!1}=t;let n=null;const i=iS.concat(ZY),o=z3(e.filter(p=>i.includes(p))),a=z3(e.filter(p=>!iS.includes(p))),s=o.filter(p=>(n=p,!g$.includes(p))),[c=null]=s,u=NZ(o),h=Ue(Ue({},MZ(a)),{},{prefix:N0(c,{family:u})});return Ue(Ue(Ue({},h),$Z({values:e,family:u,styles:Jh,config:at,canonical:h,givenPrefix:n})),LZ(r,n,h))}function LZ(e,t,r){let{prefix:n,iconName:i}=r;if(e||!n||!i)return{prefix:n,iconName:i};const o=t==="fa"?D$(i):{},a=lu(n,i);return i=o.iconName||a||i,n=o.prefix||n,n==="far"&&!Jh.far&&Jh.fas&&!at.autoFetchSvg&&(n="fas"),{prefix:n,iconName:i}}const IZ=y$.filter(e=>e!==gn||e!==k0),DZ=Object.keys(nS).filter(e=>e!==gn).map(e=>Object.keys(nS[e])).flat();function $Z(e){const{values:t,family:r,canonical:n,givenPrefix:i="",styles:o={},config:a={}}=e,s=r===k0,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&&IZ.includes(r)&&(Object.keys(o).find(v=>DZ.includes(v))||a.autoFetchSvg)){const v=zY.get(r).defaultShortPrefixId;n.prefix=v,n.iconName=lu(n.prefix,n.iconName)||n.iconName}return(n.prefix==="fa"||i==="fa")&&(n.prefix=ol()||"fas"),n}class FZ{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]),fS(o,i[o]);const a=tT[gn][o];a&&fS(a,i[o]),I$()})}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 V3=[],Wc={};const Jc={},BZ=Object.keys(Jc);function UZ(e,t){let{mixoutsTo:r}=t;return V3=e,Wc={},Object.keys(Jc).forEach(n=>{BZ.indexOf(n)===-1&&delete Jc[n]}),V3.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 dS(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 xu(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 al(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Jc[e]?Jc[e].apply(null,t):void 0}function hS(e){e.prefix==="fa"&&(e.prefix="fas");let{iconName:t}=e;const r=e.prefix||ol();if(t)return t=lu(r,t)||t,B3(F$.definitions,r,t)||B3(Yo.styles,r,t)}const F$=new FZ,zZ=()=>{at.autoReplaceSvg=!1,at.observeMutations=!1,xu("noAuto")},VZ={i2svg:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Qa?(xu("beforeI2svg",e),al("pseudoElements2svg",e),al("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,SZ(()=>{qZ({autoReplaceSvgRoot:t}),xu("watch",e)})}},WZ={icon:e=>{if(e===null)return null;if(typeof e=="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:lu(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&e.length===2){const t=e[1].indexOf("fa-")===0?e[1].slice(3):e[1],r=N0(e[0]);return{prefix:r,iconName:lu(r,t)||t}}if(typeof e=="string"&&(e.indexOf("".concat(at.cssPrefix,"-"))>-1||e.match(uZ))){const t=M0(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||ol(),iconName:lu(t.prefix,t.iconName)||t.iconName}}if(typeof e=="string"){const t=ol();return{prefix:t,iconName:lu(t,e)||e}}}},xi={noAuto:zZ,config:at,dom:VZ,parse:WZ,library:F$,findIconDefinition:hS,toHtml:Qp},qZ=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t=or}=e;(Object.keys(Yo.styles).length>0||at.autoFetchSvg)&&Qa&&at.autoReplaceSvg&&xi.dom.i2svg({node:t})};function L0(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(r=>Qp(r))}}),Object.defineProperty(e,"node",{get:function(){if(!Qa)return;const r=or.createElement("div");return r.innerHTML=e.html,r.children}}),e}function HZ(e){let{children:t,main:r,mask:n,attributes:i,styles:o,transform:a}=e;if(nT(a)&&r.found&&!n.found){const{width:s,height:c}=r,u={x:s/c/2,y:.5};i.style=R0(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 GZ(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 aT(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,x=GY.includes(n),_=[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:_,role:h.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(v," ").concat(b)})};const O=x&&!~h.classes.indexOf("fa-fw")?{width:"".concat(v/b*16*.0625,"em")}:{};p&&(w.attributes[_u]=""),s&&(w.children.push({tag:"title",attributes:{id:w.attributes["aria-labelledby"]||"title-".concat(u||Qh())},children:[s]}),delete w.attributes.title);const S=Ue(Ue({},w),{},{prefix:n,iconName:i,main:t,mask:r,maskId:c,transform:o,symbol:a,styles:Ue(Ue({},O),h.styles)}),{children:E,attributes:T}=r.found&&t.found?al("generateAbstractMask",S)||{children:[],attributes:{}}:al("generateAbstractIcon",S)||{children:[],attributes:{}};return S.children=E,S.attributes=T,a?GZ(S):HZ(S)}function W3(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[_u]="");const u=Ue({},a.styles);nT(i)&&(u.transform=xZ({transform:i,startCentered:!0,width:r,height:n}),u["-webkit-transform"]=u.transform);const h=R0(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 KZ(e){const{content:t,title:r,extra:n}=e,i=Ue(Ue(Ue({},n.attributes),r?{title:r}:{}),{},{class:n.classes.join(" ")}),o=R0(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:_1}=Yo;function pS(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(g1.GROUP)},children:[{tag:"path",attributes:{class:"".concat(at.cssPrefix,"-").concat(g1.SECONDARY),fill:"currentColor",d:n[0]}},{tag:"path",attributes:{class:"".concat(at.cssPrefix,"-").concat(g1.PRIMARY),fill:"currentColor",d:n[1]}}]}:i={tag:"path",attributes:{fill:"currentColor",d:n}},{found:!0,width:t,height:r,icon:i}}const YZ={found:!1,width:512,height:512};function ZZ(e,t){!w$&&!at.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function mS(e,t){let r=t;return t==="fa"&&at.styleDefault!==null&&(t=ol()),new Promise((n,i)=>{if(r==="fa"){const o=D$(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&_1[t]&&_1[t][e]){const o=_1[t][e];return n(pS(o))}ZZ(e,t),n(Ue(Ue({},YZ),{},{icon:at.showMissingIcons&&e?al("missingIconAbstract")||{}:{}}))})}const q3=()=>{},vS=at.measurePerformance&&zv&&zv.mark&&zv.measure?zv:{mark:q3,measure:q3},xh='FA "6.7.1"',XZ=e=>(vS.mark("".concat(xh," ").concat(e," begins")),()=>B$(e)),B$=e=>{vS.mark("".concat(xh," ").concat(e," ends")),vS.measure("".concat(xh," ").concat(e),"".concat(xh," ").concat(e," begins"),"".concat(xh," ").concat(e," ends"))};var sT={begin:XZ,end:B$};const bg=()=>{};function H3(e){return typeof(e.getAttribute?e.getAttribute(_u):null)=="string"}function QZ(e){const t=e.getAttribute?e.getAttribute(JE):null,r=e.getAttribute?e.getAttribute(eT):null;return t&&r}function JZ(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(at.replacementClass)}function eX(){return at.autoReplaceSvg===!0?_g.replace:_g[at.autoReplaceSvg]||_g.replace}function tX(e){return or.createElementNS("http://www.w3.org/2000/svg",e)}function rX(e){return or.createElement(e)}function U$(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:r=e.tag==="svg"?tX:rX}=t;if(typeof e=="string")return or.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(U$(o,{ceFn:r}))}),n}function nX(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}const _g={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach(r=>{t.parentNode.insertBefore(U$(r),t)}),t.getAttribute(_u)===null&&at.keepOriginalSource){let r=or.createComment(nX(t));t.parentNode.replaceChild(r,t)}else t.remove()},nest:function(e){const t=e[0],r=e[1];if(~rT(t).indexOf(at.replacementClass))return _g.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=>Qp(o)).join(`
`);t.setAttribute(_u,""),t.innerHTML=i}};function G3(e){e()}function z$(e,t){const r=typeof t=="function"?t:bg;if(e.length===0)r();else{let n=G3;at.mutateApproach===aZ&&(n=il.requestAnimationFrame||G3),n(()=>{const i=eX(),o=sT.begin("mutate");e.map(i),o(),r()})}}let lT=!1;function V$(){lT=!0}function gS(){lT=!1}let Mg=null;function K3(e){if(!M3||!at.observeMutations)return;const{treeCallback:t=bg,nodeCallback:r=bg,pseudoElementsCallback:n=bg,observeMutationsRoot:i=or}=e;Mg=new M3(o=>{if(lT)return;const a=ol();Yf(o).forEach(s=>{if(s.type==="childList"&&s.addedNodes.length>0&&!H3(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"&&H3(s.target)&&~dZ.indexOf(s.attributeName))if(s.attributeName==="class"&&QZ(s.target)){const{prefix:c,iconName:u}=M0(rT(s.target));s.target.setAttribute(JE,c||a),u&&s.target.setAttribute(eT,u)}else JZ(s.target)&&r(s.target)})}),Qa&&Mg.observe(i,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function iX(){Mg&&Mg.disconnect()}function oX(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 aX(e){const t=e.getAttribute("data-prefix"),r=e.getAttribute("data-icon"),n=e.innerText!==void 0?e.innerText.trim():"";let i=M0(rT(e));return i.prefix||(i.prefix=ol()),t&&r&&(i.prefix=t,i.iconName=r),i.iconName&&i.prefix||(i.prefix&&n.length>0&&(i.iconName=kZ(i.prefix,e.innerText)||oT(i.prefix,cS(e.innerText))),!i.iconName&&at.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function sX(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||Qh()):(t["aria-hidden"]="true",t.focusable="false")),t}function lX(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Ko,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Y3(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0};const{iconName:r,prefix:n,rest:i}=aX(e),o=sX(e),a=dS("parseNodeAttributes",{},e);let s=t.styleParser?oX(e):[];return Ue({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:n,transform:Ko,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:s,attributes:o}},a)}const{styles:uX}=Yo;function W$(e){const t=at.autoReplaceSvg==="nest"?Y3(e,{styleParser:!1}):Y3(e);return~t.extra.classes.indexOf(S$)?al("generateLayersText",e,t):al("generateSvgReplacementMutation",e,t)}function cX(){return[...WY,...iS]}function Z3(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Qa)return Promise.resolve();const r=or.documentElement.classList,n=h=>r.add("".concat(D3,"-").concat(h)),i=h=>r.remove("".concat(D3,"-").concat(h)),o=at.autoFetchSvg?cX():g$.concat(Object.keys(uX));o.includes("fa")||o.push("fa");const a=[".".concat(S$,":not([").concat(_u,"])")].concat(o.map(h=>".".concat(h,":not([").concat(_u,"])"))).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=sT.begin("onTree"),u=s.reduce((h,p)=>{try{const v=W$(p);v&&h.push(v)}catch(v){w$||v.name==="MissingIcon"&&console.error(v)}return h},[]);return new Promise((h,p)=>{Promise.all(u).then(v=>{z$(v,()=>{n("active"),n("complete"),i("pending"),typeof t=="function"&&t(),c(),h()})}).catch(v=>{c(),p(v)})})}function fX(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;W$(e).then(r=>{r&&z$([r],t)})}function dX(e){return function(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=(t||{}).icon?t:hS(t||{});let{mask:i}=r;return i&&(i=(i||{}).icon?i:hS(i||{})),e(n,Ue(Ue({},r),{},{mask:i}))}}const hX=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:r=Ko,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 L0(Ue({type:"icon"},e),()=>(xu("beforeDOMElementCreation",{iconDefinition:e,params:t}),at.autoA11y&&(a?u["aria-labelledby"]="".concat(at.replacementClass,"-title-").concat(s||Qh()):(u["aria-hidden"]="true",u.focusable="false")),aT({icons:{main:pS(b),mask:i?pS(i.icon):{found:!1,width:null,height:null,icon:{}}},prefix:p,iconName:v,transform:Ue(Ue({},Ko),r),symbol:n,title:a,maskId:o,titleId:s,extra:{attributes:u,styles:h,classes:c}})))};var pX={mixout(){return{icon:dX(hX)}},hooks(){return{mutationObserverCallbacks(e){return e.treeCallback=Z3,e.nodeCallback=fX,e}}},provides(e){e.i2svg=function(t){const{node:r=or,callback:n=()=>{}}=t;return Z3(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([mS(n,a),u.iconName?mS(u.iconName,u.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(x=>{let[_,w]=x;v([t,aT({icons:{main:_,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=R0(a);s.length>0&&(n.style=s);let c;return nT(o)&&(c=al("generateAbstractTransformGrouping",{main:i,transform:o,containerWidth:i.width,iconWidth:i.width})),r.push(c||i.icon),{children:r,attributes:n}}}},mX={mixout(){return{layer(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{classes:r=[]}=t;return L0({type:"layer"},()=>{xu("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}]})}}}},vX={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 L0({type:"counter",content:e},()=>(xu("beforeDOMElementCreation",{content:e,params:t}),KZ({content:e.toString(),title:r,extra:{attributes:i,styles:o,classes:["".concat(at.cssPrefix,"-layers-counter"),...n]}})))}}}},gX={mixout(){return{text(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:r=Ko,title:n=null,classes:i=[],attributes:o={},styles:a={}}=t;return L0({type:"text",content:e},()=>(xu("beforeDOMElementCreation",{content:e,params:t}),W3({content:e,transform:Ue(Ue({},Ko),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(m$){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,W3({content:t.innerHTML,width:a,height:s,transform:i,title:n,extra:o,watchable:!0})])}}};const yX=new RegExp('"',"ug"),X3=[1105920,1112319],Q3=Ue(Ue(Ue(Ue({},{FontAwesome:{normal:"fas",400:"fas"}}),UY),iZ),XY),yS=Object.keys(Q3).reduce((e,t)=>(e[t.toLowerCase()]=Q3[t],e),{}),bX=Object.keys(yS).reduce((e,t)=>{const r=yS[t];return e[t]=r[900]||[...Object.entries(r)][0][1],e},{});function _X(e){const t=e.replace(yX,""),r=CZ(t,0),n=r>=X3[0]&&r<=X3[1],i=t.length===2?t[0]===t[1]:!1;return{value:cS(i?t[0]:t),isSecondary:n||i}}function xX(e,t){const r=e.replace(/^['"]|['"]$/g,"").toLowerCase(),n=parseInt(t),i=isNaN(n)?"normal":n;return(yS[r]||{})[i]||bX[r]}function J3(e,t){const r="".concat(oZ).concat(t.replace(":","-"));return new Promise((n,i)=>{if(e.getAttribute(r)!==null)return n();const a=Yf(e.children).filter(v=>v.getAttribute(aS)===t)[0],s=il.getComputedStyle(e,t),c=s.getPropertyValue("font-family"),u=c.match(cZ),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=xX(c,h);const{value:x,isSecondary:_}=_X(v),w=u[0].startsWith("FontAwesome");let O=oT(b,x),S=O;if(w){const E=RZ(x);E.iconName&&E.prefix&&(O=E.iconName,b=E.prefix)}if(O&&!_&&(!a||a.getAttribute(JE)!==b||a.getAttribute(eT)!==S)){e.setAttribute(r,S),a&&e.removeChild(a);const E=lX(),{extra:T}=E;T.attributes[aS]=t,mS(O,b).then(A=>{const j=aT(Ue(Ue({},E),{},{icons:{main:A,mask:$$()},prefix:b,iconName:S,extra:T,watchable:!0})),N=or.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(N,e.firstChild):e.appendChild(N),N.outerHTML=j.map(F=>Qp(F)).join(`
`),e.removeAttribute(r),n()}).catch(i)}else n()}else n()})}function wX(e){return Promise.all([J3(e,"::before"),J3(e,"::after")])}function OX(e){return e.parentNode!==document.head&&!~sZ.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(aS)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function eR(e){if(Qa)return new Promise((t,r)=>{const n=Yf(e.querySelectorAll("*")).filter(OX).map(wX),i=sT.begin("searchPseudoElements");V$(),Promise.all(n).then(()=>{i(),gS(),t()}).catch(()=>{i(),gS(),r()})})}var SX={hooks(){return{mutationObserverCallbacks(e){return e.pseudoElementsCallback=eR,e}}},provides(e){e.pseudoElements2svg=function(t){const{node:r=or}=t;at.searchPseudoElements&&eR(r)}}};let tR=!1;var PX={mixout(){return{dom:{unwatch(){V$(),tR=!0}}}},hooks(){return{bootstrap(){K3(dS("mutationObserverCallbacks",{}))},noAuto(){iX()},watch(e){const{observeMutationsRoot:t}=e;tR?gS():K3(dS("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}};const rR=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 CX={mixout(){return{parse:{transform:e=>rR(e)}}},hooks(){return{parseNodeAttributes(e,t){const r=t.getAttribute("data-fa-transform");return r&&(e.transform=rR(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 x1={x:0,y:0,width:"100%",height:"100%"};function nR(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 EX(e){return e.tag==="g"?e.children:[e]}var TX={hooks(){return{parseNodeAttributes(e,t){const r=t.getAttribute("data-fa-mask"),n=r?M0(r.split(" ").map(i=>i.trim())):$$();return n.prefix||(n.prefix=ol()),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=_Z({transform:s,containerWidth:h,iconWidth:c}),b={tag:"rect",attributes:Ue(Ue({},x1),{},{fill:"white"})},x=u.children?{children:u.children.map(nR)}:{},_={tag:"g",attributes:Ue({},v.inner),children:[nR(Ue({tag:u.tag,attributes:Ue(Ue({},u.attributes),v.path)},x))]},w={tag:"g",attributes:Ue({},v.outer),children:[_]},O="mask-".concat(a||Qh()),S="clip-".concat(a||Qh()),E={tag:"mask",attributes:Ue(Ue({},x1),{},{id:O,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[b,w]},T={tag:"defs",children:[{tag:"clipPath",attributes:{id:S},children:EX(p)},E]};return r.push(T,{tag:"rect",attributes:Ue({fill:"currentColor","clip-path":"url(#".concat(S,")"),mask:"url(#".concat(O,")")},x1)}),{children:r,attributes:n}}}},jX={provides(e){let t=!1;il.matchMedia&&(t=il.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}}}},AX={hooks(){return{parseNodeAttributes(e,t){const r=t.getAttribute("data-fa-symbol"),n=r===null?!1:r===""?!0:r;return e.symbol=n,e}}}},kX=[OZ,pX,mX,vX,gX,SX,PX,CX,TX,jX,AX];UZ(kX,{mixoutsTo:xi});xi.noAuto;xi.config;xi.library;xi.dom;const bS=xi.parse;xi.findIconDefinition;xi.toHtml;const RX=xi.icon;xi.layer;xi.text;xi.counter;var w1={exports:{}},O1,iR;function NX(){if(iR)return O1;iR=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return O1=e,O1}var S1,oR;function MX(){if(oR)return S1;oR=1;var e=NX();function t(){}function r(){}return r.resetWarningCache=t,S1=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},S1}var aR;function LX(){return aR||(aR=1,w1.exports=MX()()),w1.exports}var IX=LX();const H=Nt(IX);function sR(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 Go(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sR(Object(r),!0).forEach(function(n){qc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Lg(e){"@babel/helpers - typeof";return Lg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lg(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 DX(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 $X(e,t){if(e==null)return{};var r=DX(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 _S(e){return FX(e)||BX(e)||UX(e)||zX()}function FX(e){if(Array.isArray(e))return xS(e)}function BX(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function UX(e,t){if(e){if(typeof e=="string")return xS(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 xS(e,t)}}function xS(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 zX(){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 VX(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,x=e.border,_=e.listItem,w=e.flip,O=e.size,S=e.rotation,E=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":x,"fa-li":_,"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(S),typeof S<"u"&&S!==null&&S!==0),qc(t,"fa-pull-".concat(E),typeof E<"u"&&E!==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 WX(e){return e=e-0,e===e}function q$(e){return WX(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,r){return r?r.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var qX=["style"];function HX(e){return e.charAt(0).toUpperCase()+e.slice(1)}function GX(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,r){var n=r.indexOf(":"),i=q$(r.slice(0,n)),o=r.slice(n+1).trim();return i.startsWith("webkit")?t[HX(i)]=o:t[i]=o,t},{})}function H$(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 H$(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=GX(h);break;default:u.indexOf("aria-")===0||u.indexOf("data-")===0?c.attrs[u.toLowerCase()]=h:c.attrs[q$(u)]=h}return c},{attrs:{}}),o=r.style,a=o===void 0?{}:o,s=$X(r,qX);return i.attrs.style=Go(Go({},i.attrs.style),a),e.apply(void 0,[t.tag,Go(Go({},i.attrs),s)].concat(_S(n)))}var G$=!1;try{G$=!0}catch{}function KX(){if(!G$&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function lR(e){if(e&&Lg(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(bS.icon)return bS.icon(e);if(e===null)return null;if(e&&Lg(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 P1(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?qc({},e,t):{}}var uR={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=Go(Go({},uR),e),n=r.icon,i=r.mask,o=r.symbol,a=r.className,s=r.title,c=r.titleId,u=r.maskId,h=lR(n),p=P1("classes",[].concat(_S(VX(r)),_S((a||"").split(" ")))),v=P1("transform",typeof r.transform=="string"?bS.transform(r.transform):r.transform),b=P1("mask",lR(i)),x=RX(h,Go(Go(Go(Go({},p),v),b),{},{symbol:o,title:s,titleId:c,maskId:u}));if(!x)return KX("Could not find icon",h),null;var _=x.abstract,w={ref:t};return Object.keys(r).forEach(function(O){uR.hasOwnProperty(O)||(w[O]=r[O])}),YX(_[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 YX=H$.bind(null,Z.createElement);function K$(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=K$(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=K$(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 cR;function ZX(){return cR||(cR=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 XX=ZX();const mt=Nt(XX);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 QX(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){JX(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 JX(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wu(e){"@babel/helpers - typeof";return wu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wu(e)}function eQ(){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 Y$(e){document.body.style.paddingRight=e>0?"".concat(e,"px"):null}function tQ(){return document.body.clientWidth<window.innerWidth}function rQ(){var e=window.getComputedStyle(document.body,null);return parseInt(e&&e.getPropertyValue("padding-right")||0,10)}function nQ(){var e=eQ(),t=document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top")[0],r=t?parseInt(t.style.paddingRight||0,10):0;tQ()&&Y$(r+e)}var iQ;function ct(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:iQ;return t?e.split(" ").map(function(r){return t[r]||r}).join(" "):e}function dl(e,t){var r={};return Object.keys(e).forEach(function(n){t.indexOf(n)===-1&&(r[n]=e[n])}),r}function Z$(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 dR={};function wS(e){dR[e]||(typeof console<"u"&&console.error(e),dR[e]=!0)}function X$(e,t){return function(n,i,o){n[i]!==null&&typeof n[i]<"u"&&wS('"'.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 oQ=(typeof window>"u"?"undefined":wu(window))==="object"&&window.Element||function(){};function uT(e,t,r){if(!(e[t]instanceof oQ))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,uT,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})]))]),Ig={Fade:150,Collapse:350,Modal:300,Carousel:600,Offcanvas:300},Dg=["in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],Wv={ENTERING:"entering",ENTERED:"entered",EXITING:"exiting",EXITED:"exited"},Bt={esc:27,space:32,enter:13,tab:9,up:38,down:40,home:36,end:35,n:78,p:80},aQ=["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"],cT=!!(typeof window<"u"&&window.document&&window.document.createElement);function sQ(e){return e&&wu(e)==="object"?"current"in e:!1}function Q$(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function OS(e){var t=wu(e);return e!=null&&(t==="object"||t==="function")}function hR(e){var t=wu(e),r=NaN;if(t==="number")return e;if(t==="symbol"||t==="object"&&Q$(e)==="[object Symbol]")return r;if(OS(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=OS(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 lQ(e){if(!OS(e))return!1;var t=Q$(e);return t==="[object Function]"||t==="[object AsyncFunction]"||t==="[object GeneratorFunction]"||t==="[object Proxy]"}function uQ(e){if(sQ(e))return e.current;if(lQ(e))return e();if(typeof e=="string"&&cT){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 pR(e){return e===null?!1:Array.isArray(e)||cT&&typeof e.length=="number"}function ep(e,t){var r=uQ(e);return t?pR(r)?r:r===null?[]:[r]:pR(r)?r[0]:r}var cQ=["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 fT(e,t){if(!e||!t)return t;var r=QX({},t);return Object.keys(e).forEach(function(n){r[n]===void 0&&(r[n]=e[n]),Object.keys(e[n]||{}).length>0&&wu(e[n])==="object"&&fT(e[n],r)}),r}var fQ=["className","cssModule","noGutters","tag","widths"];function SS(){return SS=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},SS.apply(this,arguments)}function dQ(e,t){if(e==null)return{};var r=hQ(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 hQ(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 pQ=["xs","sm","md","lg","xl","xxl"],jc=H.oneOfType([H.number,H.string]),mQ={tag:kt,noGutters:X$(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 Zo(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?pQ:a,c=dQ(e,fQ),u=[];s.forEach(function(p,v){var b=e[p];if(delete c[p],!!b){var x=!v;u.push(x?"row-cols-".concat(b):"row-cols-".concat(p,"-").concat(b))}});var h=ct(mt(t,n?"gx-0":null,"row",u),r);return Z.createElement(o,SS({},c,{className:h}))}Zo.propTypes=mQ;var vQ=["expand","className","cssModule","light","dark","fixed","sticky","color","container","tag","children"];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 E1(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gQ(e,t){if(e==null)return{};var r=yQ(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 yQ(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 bQ={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},_Q=function(t){return t===!1?!1:t===!0||t==="xs"?"navbar-expand":"navbar-expand-".concat(t)};function J$(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,x=b===void 0?"nav":b,_=e.children,w=gQ(e,vQ),O=ct(mt(i,"navbar",_Q(n),(t={"navbar-light":a,"navbar-dark":s},E1(t,"bg-".concat(h),h),E1(t,"fixed-".concat(c),c),E1(t,"sticky-".concat(u),u),t)),o),S=v&&v===!0?"container":"container-".concat(v);return Z.createElement(x,PS({},w,{className:O}),v?Z.createElement("div",{className:S},_):_)}J$.propTypes=bQ;var xQ=["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 wQ(e,t){if(e==null)return{};var r=OQ(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 OQ(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 SQ={className:H.string,cssModule:H.object,tag:kt};function eF(e){var t=e.className,r=e.cssModule,n=e.tag,i=n===void 0?"a":n,o=wQ(e,xQ),a=ct(mt(t,"navbar-brand"),r);return Z.createElement(i,CS({},o,{className:a}))}eF.propTypes=SQ;var PQ=["className","cssModule","children","tag"];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 mR(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 CQ(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mR(Object(r),!0).forEach(function(n){EQ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function EQ(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}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={className:H.string,cssModule:H.object,tag:kt,type:H.string,children:H.node};function tF(e){var t=e.className,r=e.cssModule,n=e.children,i=e.tag,o=i===void 0?"button":i,a=TQ(e,PQ),s=ct(mt(t,"navbar-toggler"),r);return Z.createElement(o,ES({"aria-label":"Toggle navigation"},CQ({type:"button"},a),{className:s}),n||Z.createElement("span",{className:ct("navbar-toggler-icon",r)}))}tF.propTypes=AQ;var kQ=["className","cssModule","tabs","pills","vertical","horizontal","justified","fill","navbar","card","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 RQ(e,t){if(e==null)return{};var r=NQ(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 NQ(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={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])},LQ=function(t){return t===!1?!1:t===!0||t==="xs"?"flex-column":"flex-".concat(t,"-column")};function dT(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,x=RQ(e,kQ),_=ct(mt(t,h?"navbar-nav":"nav",s?"justify-content-".concat(s):!1,LQ(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,TS({},x,{className:_}))}dT.propTypes=MQ;var IQ=["className","cssModule","active","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 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}var FQ={active:H.bool,className:H.string,cssModule:H.object,tag:kt};function hT(e){var t=e.className,r=e.cssModule,n=e.active,i=e.tag,o=i===void 0?"li":i,a=DQ(e,IQ),s=ct(mt(t,"nav-item",n?"active":!1),r);return Z.createElement(o,jS({},a,{className:s}))}hT.propTypes=FQ;function AS(e){"@babel/helpers - typeof";return AS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},AS(e)}var BQ=["className","cssModule","active","tag","innerRef"];function kS(){return kS=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},kS.apply(this,arguments)}function UQ(e,t){if(e==null)return{};var r=zQ(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 zQ(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 VQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function WQ(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 qQ(e,t,r){return t&&WQ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function HQ(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&&RS(e,t)}function RS(e,t){return RS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},RS(e,t)}function GQ(e){var t=YQ();return function(){var n=$g(e),i;if(t){var o=$g(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return KQ(this,i)}}function KQ(e,t){if(t&&(AS(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rF(e)}function rF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function YQ(){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 $g(e){return $g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},$g(e)}var ZQ={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},pT=function(e){HQ(r,e);var t=GQ(r);function r(n){var i;return VQ(this,r),i=t.call(this,n),i.onClick=i.onClick.bind(rF(i)),i}return qQ(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=UQ(i,BQ),v=ct(mt(o,"nav-link",{disabled:p.disabled,active:s}),a);return Z.createElement(u,kS({},p,{ref:h,onClick:this.onClick,className:v}))}}]),r}(Z.Component);pT.propTypes=ZQ;var XQ=["className","cssModule","variant","innerRef"];function NS(){return NS=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},NS.apply(this,arguments)}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 QQ(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){JQ(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 JQ(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}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,onClick:H.func,variant:H.oneOf(["white"]),className:H.string,cssModule:H.object,innerRef:H.oneOfType([H.object,H.string,H.func])};function nF(e){var t=e.className;e.cssModule;var r=e.variant,n=e.innerRef,i=eJ(e,XQ),o=ct(mt(t,"btn-close",r&&"btn-close-".concat(r)));return Z.createElement("button",NS({ref:n,type:"button",className:o},QQ({"aria-label":"close"},i)))}nF.propTypes=rJ;var nJ=["active","aria-label","block","className","close","cssModule","color","outline","size","tag","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 iJ(e,t){if(e==null)return{};var r=oJ(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 oJ(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 aJ={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=$.useCallback(function(S){if(e.disabled){S.preventDefault();return}if(e.onClick)return e.onClick(S)},[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,x=e.innerRef,_=iJ(e,nJ);if(a)return Z.createElement(nF,_);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 _.href&&b==="button"&&(b="a"),Z.createElement(b,MS({type:b==="button"&&_.onClick?"button":void 0},_,{className:O,ref:x,onClick:t,"aria-label":n}))}_t.propTypes=aJ;var iF=$.createContext(),oF=$.createContext();function gR(e){var t=e.children,r=$.useState(null),n=r[0],i=r[1],o=$.useRef(!1);$.useEffect(function(){return function(){o.current=!0}},[]);var a=$.useCallback(function(s){o.current||i(s)},[]);return $.createElement(iF.Provider,{value:n},$.createElement(oF.Provider,{value:a},t))}var aF=function(t){return Array.isArray(t)?t[0]:t},sF=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)}},LS=function(t,r){if(typeof t=="function")return sF(t,r);t!=null&&(t.current=r)},yR=function(t){return t.reduce(function(r,n){var i=n[0],o=n[1];return r[i]=o,r},{})},bR=typeof window<"u"&&window.document&&window.document.createElement?$.useLayoutEffect:$.useEffect,mT=S8();const uu=Nt(mT);var Hn="top",Ki="bottom",Yi="right",Gn="left",vT="auto",Jp=[Hn,Ki,Yi,Gn],lf="start",tp="end",sJ="clippingParents",lF="viewport",ah="popper",lJ="reference",_R=Jp.reduce(function(e,t){return e.concat([t+"-"+lf,t+"-"+tp])},[]),uF=[].concat(Jp,[vT]).reduce(function(e,t){return e.concat([t,t+"-"+lf,t+"-"+tp])},[]),uJ="beforeRead",cJ="read",fJ="afterRead",dJ="beforeMain",hJ="main",pJ="afterMain",mJ="beforeWrite",vJ="write",gJ="afterWrite",yJ=[uJ,cJ,fJ,dJ,hJ,pJ,mJ,vJ,gJ];function ia(e){return e?(e.nodeName||"").toLowerCase():null}function gi(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ou(e){var t=gi(e).Element;return e instanceof t||e instanceof Element}function Hi(e){var t=gi(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function gT(e){if(typeof ShadowRoot>"u")return!1;var t=gi(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function bJ(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];!Hi(o)||!ia(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 _J(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},{});!Hi(i)||!ia(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(c){i.removeAttribute(c)}))})}}const xJ={name:"applyStyles",enabled:!0,phase:"write",fn:bJ,effect:_J,requires:["computeStyles"]};function Jo(e){return e.split("-")[0]}var mu=Math.max,Fg=Math.min,uf=Math.round;function IS(){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 cF(){return!/^((?!chrome|android).)*safari/i.test(IS())}function cf(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),i=1,o=1;t&&Hi(e)&&(i=e.offsetWidth>0&&uf(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&uf(n.height)/e.offsetHeight||1);var a=Ou(e)?gi(e):window,s=a.visualViewport,c=!cF()&&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 yT(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 fF(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&gT(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function qa(e){return gi(e).getComputedStyle(e)}function wJ(e){return["table","td","th"].indexOf(ia(e))>=0}function hl(e){return((Ou(e)?e.ownerDocument:e.document)||window.document).documentElement}function I0(e){return ia(e)==="html"?e:e.assignedSlot||e.parentNode||(gT(e)?e.host:null)||hl(e)}function xR(e){return!Hi(e)||qa(e).position==="fixed"?null:e.offsetParent}function OJ(e){var t=/firefox/i.test(IS()),r=/Trident/i.test(IS());if(r&&Hi(e)){var n=qa(e);if(n.position==="fixed")return null}var i=I0(e);for(gT(i)&&(i=i.host);Hi(i)&&["html","body"].indexOf(ia(i))<0;){var o=qa(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 em(e){for(var t=gi(e),r=xR(e);r&&wJ(r)&&qa(r).position==="static";)r=xR(r);return r&&(ia(r)==="html"||ia(r)==="body"&&qa(r).position==="static")?t:r||OJ(e)||t}function bT(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Mh(e,t,r){return mu(e,Fg(t,r))}function SJ(e,t,r){var n=Mh(e,t,r);return n>r?r:n}function dF(){return{top:0,right:0,bottom:0,left:0}}function hF(e){return Object.assign({},dF(),e)}function pF(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var PJ=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,hF(typeof t!="number"?t:pF(t,Jp))};function CJ(e){var t,r=e.state,n=e.name,i=e.options,o=r.elements.arrow,a=r.modifiersData.popperOffsets,s=Jo(r.placement),c=bT(s),u=[Gn,Yi].indexOf(s)>=0,h=u?"height":"width";if(!(!o||!a)){var p=PJ(i.padding,r),v=yT(o),b=c==="y"?Hn:Gn,x=c==="y"?Ki:Yi,_=r.rects.reference[h]+r.rects.reference[c]-a[c]-r.rects.popper[h],w=a[c]-r.rects.reference[c],O=em(o),S=O?c==="y"?O.clientHeight||0:O.clientWidth||0:0,E=_/2-w/2,T=p[b],A=S-v[h]-p[x],j=S/2-v[h]/2+E,N=Mh(T,j,A),F=c;r.modifiersData[n]=(t={},t[F]=N,t.centerOffset=N-j,t)}}function EJ(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)||fF(t.elements.popper,i)&&(t.elements.arrow=i))}const TJ={name:"arrow",enabled:!0,phase:"main",fn:CJ,effect:EJ,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ff(e){return e.split("-")[1]}var jJ={top:"auto",right:"auto",bottom:"auto",left:"auto"};function AJ(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 wR(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,x=a.y,_=x===void 0?0:x,w=typeof h=="function"?h({x:b,y:_}):{x:b,y:_};b=w.x,_=w.y;var O=a.hasOwnProperty("x"),S=a.hasOwnProperty("y"),E=Gn,T=Hn,A=window;if(u){var j=em(r),N="clientHeight",F="clientWidth";if(j===gi(r)&&(j=hl(r),qa(j).position!=="static"&&s==="absolute"&&(N="scrollHeight",F="scrollWidth")),j=j,i===Hn||(i===Gn||i===Yi)&&o===tp){T=Ki;var V=p&&j===A&&A.visualViewport?A.visualViewport.height:j[N];_-=V-n.height,_*=c?1:-1}if(i===Gn||(i===Hn||i===Ki)&&o===tp){E=Yi;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&&jJ),q=h===!0?AJ({x:b,y:_},gi(r)):{x:b,y:_};if(b=q.x,_=q.y,c){var J;return Object.assign({},W,(J={},J[T]=S?"0":"",J[E]=O?"0":"",J.transform=(A.devicePixelRatio||1)<=1?"translate("+b+"px, "+_+"px)":"translate3d("+b+"px, "+_+"px, 0)",J))}return Object.assign({},W,(t={},t[T]=S?_+"px":"",t[E]=O?b+"px":"",t.transform="",t))}function kJ(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:Jo(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,wR(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,wR(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const RJ={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:kJ,data:{}};var qv={passive:!0};function NJ(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=gi(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(h){h.addEventListener("scroll",r.update,qv)}),s&&c.addEventListener("resize",r.update,qv),function(){o&&u.forEach(function(h){h.removeEventListener("scroll",r.update,qv)}),s&&c.removeEventListener("resize",r.update,qv)}}const MJ={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:NJ,data:{}};var LJ={left:"right",right:"left",bottom:"top",top:"bottom"};function xg(e){return e.replace(/left|right|bottom|top/g,function(t){return LJ[t]})}var IJ={start:"end",end:"start"};function OR(e){return e.replace(/start|end/g,function(t){return IJ[t]})}function _T(e){var t=gi(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function xT(e){return cf(hl(e)).left+_T(e).scrollLeft}function DJ(e,t){var r=gi(e),n=hl(e),i=r.visualViewport,o=n.clientWidth,a=n.clientHeight,s=0,c=0;if(i){o=i.width,a=i.height;var u=cF();(u||!u&&t==="fixed")&&(s=i.offsetLeft,c=i.offsetTop)}return{width:o,height:a,x:s+xT(e),y:c}}function $J(e){var t,r=hl(e),n=_T(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=mu(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=mu(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+xT(e),c=-n.scrollTop;return qa(i||r).direction==="rtl"&&(s+=mu(r.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:c}}function wT(e){var t=qa(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function mF(e){return["html","body","#document"].indexOf(ia(e))>=0?e.ownerDocument.body:Hi(e)&&wT(e)?e:mF(I0(e))}function Lh(e,t){var r;t===void 0&&(t=[]);var n=mF(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),o=gi(n),a=i?[o].concat(o.visualViewport||[],wT(n)?n:[]):n,s=t.concat(a);return i?s:s.concat(Lh(I0(a)))}function DS(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function FJ(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 SR(e,t,r){return t===lF?DS(DJ(e,r)):Ou(t)?FJ(t,r):DS($J(hl(e)))}function BJ(e){var t=Lh(I0(e)),r=["absolute","fixed"].indexOf(qa(e).position)>=0,n=r&&Hi(e)?em(e):e;return Ou(n)?t.filter(function(i){return Ou(i)&&fF(i,n)&&ia(i)!=="body"}):[]}function UJ(e,t,r,n){var i=t==="clippingParents"?BJ(e):[].concat(t),o=[].concat(i,[r]),a=o[0],s=o.reduce(function(c,u){var h=SR(e,u,n);return c.top=mu(h.top,c.top),c.right=Fg(h.right,c.right),c.bottom=Fg(h.bottom,c.bottom),c.left=mu(h.left,c.left),c},SR(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 vF(e){var t=e.reference,r=e.element,n=e.placement,i=n?Jo(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 Hn:c={x:a,y:t.y-r.height};break;case Ki:c={x:a,y:t.y+t.height};break;case Yi:c={x:t.x+t.width,y:s};break;case Gn:c={x:t.x-r.width,y:s};break;default:c={x:t.x,y:t.y}}var u=i?bT(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 tp:c[u]=c[u]+(t[h]/2-r[h]/2);break}}return c}function rp(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?sJ:s,u=r.rootBoundary,h=u===void 0?lF:u,p=r.elementContext,v=p===void 0?ah:p,b=r.altBoundary,x=b===void 0?!1:b,_=r.padding,w=_===void 0?0:_,O=hF(typeof w!="number"?w:pF(w,Jp)),S=v===ah?lJ:ah,E=e.rects.popper,T=e.elements[x?S:v],A=UJ(Ou(T)?T:T.contextElement||hl(e.elements.popper),c,h,a),j=cf(e.elements.reference),N=vF({reference:j,element:E,strategy:"absolute",placement:i}),F=DS(Object.assign({},E,N)),V=v===ah?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===ah&&W){var q=W[i];Object.keys(B).forEach(function(J){var Q=[Yi,Ki].indexOf(J)>=0?1:-1,ne=[Hn,Ki].indexOf(J)>=0?"y":"x";B[J]+=q[ne]*Q})}return B}function zJ(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?uF:c,h=ff(n),p=h?s?_R:_R.filter(function(x){return ff(x)===h}):Jp,v=p.filter(function(x){return u.indexOf(x)>=0});v.length===0&&(v=p);var b=v.reduce(function(x,_){return x[_]=rp(e,{placement:_,boundary:i,rootBoundary:o,padding:a})[Jo(_)],x},{});return Object.keys(b).sort(function(x,_){return b[x]-b[_]})}function VJ(e){if(Jo(e)===vT)return[];var t=xg(e);return[OR(e),t,OR(t)]}function WJ(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,x=b===void 0?!0:b,_=r.allowedAutoPlacements,w=t.options.placement,O=Jo(w),S=O===w,E=c||(S||!x?[xg(w)]:VJ(w)),T=[w].concat(E).reduce(function(le,ce){return le.concat(Jo(ce)===vT?zJ(t,{placement:ce,boundary:h,rootBoundary:p,padding:u,flipVariations:x,allowedAutoPlacements:_}):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=Jo(W),J=ff(W)===lf,Q=[Hn,Ki].indexOf(q)>=0,ne=Q?"width":"height",ae=rp(t,{placement:W,boundary:h,rootBoundary:p,altBoundary:v,padding:u}),se=Q?J?Yi:Gn:J?Ki:Hn;A[ne]>j[ne]&&(se=xg(se));var oe=xg(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=x?3:1,z=function(ce){var de=T.find(function(be){var M=N.get(be);if(M)return M.slice(0,ce).every(function(D){return D})});if(de)return 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 qJ={name:"flip",enabled:!0,phase:"main",fn:WJ,requiresIfExists:["offset"],data:{_skip:!1}};function PR(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 CR(e){return[Hn,Yi,Ki,Gn].some(function(t){return e[t]>=0})}function HJ(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=rp(t,{elementContext:"reference"}),s=rp(t,{altBoundary:!0}),c=PR(a,n),u=PR(s,i,o),h=CR(c),p=CR(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 GJ={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:HJ};function KJ(e,t,r){var n=Jo(e),i=[Gn,Hn].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,[Gn,Yi].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}function YJ(e){var t=e.state,r=e.options,n=e.name,i=r.offset,o=i===void 0?[0,0]:i,a=uF.reduce(function(h,p){return h[p]=KJ(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 ZJ={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:YJ};function XJ(e){var t=e.state,r=e.name;t.modifiersData[r]=vF({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const QJ={name:"popperOffsets",enabled:!0,phase:"read",fn:XJ,data:{}};function JJ(e){return e==="x"?"y":"x"}function eee(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,x=r.tetherOffset,_=x===void 0?0:x,w=rp(t,{boundary:c,rootBoundary:u,padding:p,altBoundary:h}),O=Jo(t.placement),S=ff(t.placement),E=!S,T=bT(O),A=JJ(T),j=t.modifiersData.popperOffsets,N=t.rects.reference,F=t.rects.popper,V=typeof _=="function"?_(Object.assign({},t.rects,{placement:t.placement})):_,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"?Hn:Gn,ne=T==="y"?Ki:Yi,ae=T==="y"?"height":"width",se=j[T],oe=se+w[Q],K=se-w[ne],G=b?-F[ae]/2:0,z=S===lf?N[ae]:F[ae],re=S===lf?-F[ae]:-N[ae],X=t.elements.arrow,le=b&&X?yT(X):{width:0,height:0},ce=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:dF(),de=ce[Q],be=ce[ne],M=Mh(0,N[ae],le[ae]),D=E?N[ae]/2-G-M-de-B.mainAxis:z-M-de-B.mainAxis,Y=E?-N[ae]/2+G+M+be+B.mainAxis:re+M+be+B.mainAxis,ue=t.elements.arrow&&em(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+D-he-ie,Fe=se+Y-he,ge=Mh(b?Fg(oe,Se):oe,se,b?mu(K,Fe):K);j[T]=ge,q[T]=ge-se}if(s){var Ee,je=T==="x"?Hn:Gn,Me=T==="x"?Ki:Yi,He=j[A],Be=A==="y"?"height":"width",qe=He+w[je],ye=He-w[Me],we=[Hn,Gn].indexOf(O)!==-1,Ae=(Ee=W==null?void 0:W[A])!=null?Ee: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?SJ(ke,He,De):Mh(b?ke:qe,He,b?De:ye);j[A]=Ke,q[A]=Ke-He}t.modifiersData[n]=q}}const tee={name:"preventOverflow",enabled:!0,phase:"main",fn:eee,requiresIfExists:["offset"]};function ree(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function nee(e){return e===gi(e)||!Hi(e)?_T(e):ree(e)}function iee(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 oee(e,t,r){r===void 0&&(r=!1);var n=Hi(t),i=Hi(t)&&iee(t),o=hl(t),a=cf(e,i,r),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!r)&&((ia(t)!=="body"||wT(o))&&(s=nee(t)),Hi(t)?(c=cf(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=xT(o))),{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function aee(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 see(e){var t=aee(e);return yJ.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function lee(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function uee(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 ER={placement:"bottom",modifiers:[],strategy:"absolute"};function TR(){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 cee(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,i=t.defaultOptions,o=i===void 0?ER:i;return function(s,c,u){u===void 0&&(u=o);var h={placement:"bottom",orderedModifiers:[],options:Object.assign({},ER,o),modifiersData:{},elements:{reference:s,popper:c},attributes:{},styles:{}},p=[],v=!1,b={state:h,setOptions:function(O){var S=typeof O=="function"?O(h.options):O;_(),h.options=Object.assign({},o,h.options,S),h.scrollParents={reference:Ou(s)?Lh(s):s.contextElement?Lh(s.contextElement):[],popper:Lh(c)};var E=see(uee([].concat(n,h.options.modifiers)));return h.orderedModifiers=E.filter(function(T){return T.enabled}),x(),b.update()},forceUpdate:function(){if(!v){var O=h.elements,S=O.reference,E=O.popper;if(TR(S,E)){h.rects={reference:oee(S,em(E),h.options.strategy==="fixed"),popper:yT(E)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach(function(B){return h.modifiersData[B.name]=Object.assign({},B.data)});for(var T=0;T<h.orderedModifiers.length;T++){if(h.reset===!0){h.reset=!1,T=-1;continue}var A=h.orderedModifiers[T],j=A.fn,N=A.options,F=N===void 0?{}:N,V=A.name;typeof j=="function"&&(h=j({state:h,options:F,name:V,instance:b})||h)}}}},update:lee(function(){return new Promise(function(w){b.forceUpdate(),w(h)})}),destroy:function(){_(),v=!0}};if(!TR(s,c))return b;b.setOptions(u).then(function(w){!v&&u.onFirstUpdate&&u.onFirstUpdate(w)});function x(){h.orderedModifiers.forEach(function(w){var O=w.name,S=w.options,E=S===void 0?{}:S,T=w.effect;if(typeof T=="function"){var A=T({state:h,name:O,instance:b,options:E}),j=function(){};p.push(A||j)}})}function _(){p.forEach(function(w){return w()}),p=[]}return b}}var fee=[MJ,QJ,RJ,xJ,ZJ,qJ,tee,TJ,GJ],dee=cee({defaultModifiers:fee}),T1,jR;function hee(){if(jR)return T1;jR=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 T1=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}},T1}var pee=hee();const mee=Nt(pee);var vee=[],gee=function(t,r,n){n===void 0&&(n={});var i=$.useRef(null),o={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||vee},a=$.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=a[0],c=a[1],u=$.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(b){var x=b.state,_=Object.keys(x.elements);mT.flushSync(function(){c({styles:yR(_.map(function(w){return[w,x.styles[w]||{}]})),attributes:yR(_.map(function(w){return[w,x.attributes[w]]}))})})},requires:["computeStyles"]}},[]),h=$.useMemo(function(){var v={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[u,{name:"applyStyles",enabled:!1}])};return mee(i.current,v)?i.current||v:(i.current=v,v)},[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,u]),p=$.useRef();return bR(function(){p.current&&p.current.setOptions(h)},[h]),bR(function(){if(!(t==null||r==null)){var v=n.createPopper||dee,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}},yee=function(){},bee=function(){return Promise.resolve(null)},_ee=[];function gF(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?_ee:o,s=e.referenceElement,c=e.onFirstUpdate,u=e.innerRef,h=e.children,p=$.useContext(iF),v=$.useState(null),b=v[0],x=v[1],_=$.useState(null),w=_[0],O=_[1];$.useEffect(function(){LS(u,b)},[u,b]);var S=$.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]),E=gee(s||p,b,S),T=E.state,A=E.styles,j=E.forceUpdate,N=E.update,F=$.useMemo(function(){return{ref:x,style:A.popper,placement:T?T.placement: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||yee,update:N||bee}},[x,O,r,T,A,N,j]);return aF(h)(F)}var j1,AR;function xee(){if(AR)return j1;AR=1;var e=function(){};return j1=e,j1}var wee=xee();const Oee=Nt(wee);function See(e){var t=e.children,r=e.innerRef,n=$.useContext(oF),i=$.useCallback(function(o){LS(r,o),sF(n,o)},[r,n]);return $.useEffect(function(){return function(){return LS(r,null)}},[]),$.useEffect(function(){Oee(!!n,"`Reference` should not be used outside of a `Manager` component.")},[n]),aF(t)({ref:i})}var np=Z.createContext({}),yF=Z.createContext({});function $S(e){"@babel/helpers - typeof";return $S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$S(e)}var Pee=["className","cssModule","direction","isOpen","group","size","nav","setActiveFromChild","active","tag","menuRole"];function FS(){return FS=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},FS.apply(this,arguments)}function Bs(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Cee(e,t){if(e==null)return{};var r=Eee(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 Eee(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 Tee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jee(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 Aee(e,t,r){return t&&jee(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function kee(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&&BS(e,t)}function BS(e,t){return BS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},BS(e,t)}function Ree(e){var t=Mee();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 Nee(this,i)}}function Nee(e,t){if(t&&($S(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return zs(e)}function zs(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Mee(){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 Lee={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"])},Iee={a11y:!0,isOpen:!1,direction:"down",nav:!1,active:!1,inNavbar:!1,setActiveFromChild:!1},Dee=[Bt.space,Bt.enter,Bt.up,Bt.down,Bt.end,Bt.home],pl=function(e){kee(r,e);var t=Ree(r);function r(n){var i;return Tee(this,r),i=t.call(this,n),i.addEvents=i.addEvents.bind(zs(i)),i.handleDocumentClick=i.handleDocumentClick.bind(zs(i)),i.handleKeyDown=i.handleKeyDown.bind(zs(i)),i.removeEvents=i.removeEvents.bind(zs(i)),i.toggle=i.toggle.bind(zs(i)),i.handleMenuRef=i.handleMenuRef.bind(zs(i)),i.handleToggleRef=i.handleToggleRef.bind(zs(i)),i.containerRef=Z.createRef(),i.menuRef=Z.createRef(),i.toggleRef=Z.createRef(),i}return Aee(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!==Bt.tab))){var o=this.getContainer(),a=this.getMenu(),s=this.getToggle();if(s){var c=s.contains(i.target),u=a&&a.contains(i.target)&&a!==i.target,h=!1;o&&(h=o.classList.contains("input-group")&&o.classList.contains("dropdown")&&i.target.tagName==="INPUT"),!((c&&!h||u)&&(i.type!=="keyup"||i.which===Bt.tab))&&this.toggle(i)}}}},{key:"handleKeyDown",value:function(i){var o=this,a=i.target.getAttribute("role")==="menuitem"||i.target.getAttribute("role")==="option",s=this.getMenuCtrl()===i.target,c=Bt.tab===i.which;if(!(/input|textarea/i.test(i.target.tagName)||c&&!this.props.a11y||c&&!(a||s))&&((Dee.indexOf(i.which)!==-1||i.which>=48&&i.which<=90)&&i.preventDefault(),!this.props.disabled)){if(s)if([Bt.space,Bt.enter,Bt.up,Bt.down].indexOf(i.which)>-1)this.props.isOpen||this.toggle(i),setTimeout(function(){var S;return(S=o.getMenuItems()[0])===null||S===void 0?void 0:S.focus()});else if(this.props.isOpen&&c){var u;i.preventDefault(),(u=this.getMenuItems()[0])===null||u===void 0||u.focus()}else this.props.isOpen&&i.which===Bt.esc&&this.toggle(i);if(this.props.isOpen&&a){if([Bt.tab,Bt.esc].indexOf(i.which)>-1)this.toggle(i),this.getMenuCtrl().focus();else if([Bt.space,Bt.enter].indexOf(i.which)>-1)i.target.click(),this.getMenuCtrl().focus();else if([Bt.down,Bt.up].indexOf(i.which)>-1||[Bt.n,Bt.p].indexOf(i.which)>-1&&i.ctrlKey){var h=this.getMenuItems(),p=h.indexOf(i.target);Bt.up===i.which||Bt.p===i.which&&i.ctrlKey?p=p!==0?p-1:h.length-1:(Bt.down===i.which||Bt.n===i.which&&i.ctrlKey)&&(p=p===h.length-1?0:p+1),h[p].focus()}else if(Bt.end===i.which){var v=this.getMenuItems();v[v.length-1].focus()}else if(Bt.home===i.which){var b=this.getMenuItems();b[0].focus()}else if(i.which>=48&&i.which<=90)for(var x=this.getMenuItems(),_=String.fromCharCode(i.which).toLowerCase(),w=0;w<x.length;w+=1){var O=x[w].textContent&&x[w].textContent[0].toLowerCase();if(O===_){x[w].focus();break}}}}}},{key:"handleProps",value:function(){this.props.isOpen?this.addEvents():this.removeEvents()}},{key:"getContextValue",value:function(){return{toggle:this.toggle,isOpen:this.props.isOpen,direction:this.props.direction==="down"&&this.props.dropup?"up":this.props.direction,inNavbar:this.props.inNavbar,disabled:this.props.disabled,onMenuRef:this.handleMenuRef,onToggleRef:this.handleToggleRef,menuRole:this.props.menuRole}}},{key:"getContainer",value:function(){return this.containerRef.current}},{key:"getMenu",value:function(){return this.menuRef.current}},{key:"getToggle",value:function(){return this.toggleRef.current}},{key:"getMenuCtrl",value:function(){return this._$menuCtrl?this._$menuCtrl:(this._$menuCtrl=this.getToggle(),this._$menuCtrl)}},{key:"getItemType",value:function(){return this.props.menuRole==="listbox"?"option":"menuitem"}},{key:"getMenuItems",value:function(){var i=this.getMenu()||this.getContainer();return[].slice.call(i.querySelectorAll('[role="'.concat(this.getItemType(),'"]')))}},{key:"addEvents",value:function(){var i=this;["click","touchstart","keyup"].forEach(function(o){return document.addEventListener(o,i.handleDocumentClick,!0)})}},{key:"removeEvents",value:function(){var i=this;["click","touchstart","keyup"].forEach(function(o){return document.removeEventListener(o,i.handleDocumentClick,!0)})}},{key:"toggle",value:function(i){return this.props.disabled?i&&i.preventDefault():this.props.toggle(i)}},{key:"render",value:function(){var i,o=this,a=dl(this.props,["toggle","disabled","inNavbar","a11y"]),s=a.className,c=a.cssModule,u=a.direction,h=a.isOpen,p=a.group,v=a.size,b=a.nav,x=a.setActiveFromChild,_=a.active,w=a.tag;a.menuRole;var O=Cee(a,Pee),S=w||(b?"li":"div"),E=!1;x&&Z.Children.map(this.props.children[1].props.children,function(A){A&&A.props.active&&(E=!0)});var T=ct(mt(s,b&&_?"active":!1,x&&E?"active":!1,(i={"btn-group":p},Bs(i,"btn-group-".concat(v),!!v),Bs(i,"dropdown",!p),Bs(i,"dropup",u==="up"),Bs(i,"dropstart",u==="start"||u==="left"),Bs(i,"dropend",u==="end"||u==="right"),Bs(i,"show",h),Bs(i,"nav-item",b),i)),c);return this.context.insideInputGroup?Z.createElement(np.Provider,{value:this.getContextValue()},Z.createElement(gR,null,Z.Children.map(this.props.children,function(A){return Z.cloneElement(A,{onKeyDown:o.handleKeyDown})}))):Z.createElement(np.Provider,{value:this.getContextValue()},Z.createElement(gR,null,Z.createElement(S,FS({},O,Bs({},typeof S=="string"?"ref":"innerRef",this.containerRef),{onKeyDown:this.handleKeyDown,className:T}))))}}]),r}(Z.Component);pl.propTypes=Lee;pl.defaultProps=Iee;pl.contextType=yF;function US(e){"@babel/helpers - typeof";return US=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},US(e)}var $ee=["className","cssModule","divider","tag","header","active","text"];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 Fee(e,t){if(e==null)return{};var r=Bee(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 Bee(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 Uee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zee(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 Vee(e,t,r){return t&&zee(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Wee(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&&VS(e,t)}function VS(e,t){return VS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},VS(e,t)}function qee(e){var t=Gee();return function(){var n=Ug(e),i;if(t){var o=Ug(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return Hee(this,i)}}function Hee(e,t){if(t&&(US(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return WS(e)}function WS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Gee(){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 Ug(e){return Ug=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ug(e)}var Kee={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){Wee(r,e);var t=qee(r);function r(n){var i;return Uee(this,r),i=t.call(this,n),i.onClick=i.onClick.bind(WS(i)),i.getTabIndex=i.getTabIndex.bind(WS(i)),i}return Vee(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=dl(this.props,["toggle"]),s=a.className,c=a.cssModule,u=a.divider,h=a.tag,p=h===void 0?"button":h,v=a.header,b=a.active,x=a.text,_=Fee(a,$ee),w=ct(mt(s,{disabled:_.disabled,"dropdown-item":!u&&!v&&!x,active:b,"dropdown-header":v,"dropdown-divider":u,"dropdown-item-text":x}),c);return p==="button"&&(v?p="h6":u?p="div":_.href?p="a":x&&(p="span")),Z.createElement(p,zS({type:p==="button"&&(_.onClick||this.props.toggle)?"button":void 0},_,{tabIndex:i,role:o,className:w,onClick:this.onClick}))}}]),r}(Z.Component);Ye.propTypes=Kee;Ye.contextType=np;function qS(e){"@babel/helpers - typeof";return qS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qS(e)}var Yee=["className","cssModule","dark","end","right","tag","flip","modifiers","persist","strategy","container","updateOnSelect"];function zg(){return zg=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},zg.apply(this,arguments)}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 A1(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){Zee(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 Zee(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xee(e){return tte(e)||ete(e)||Jee(e)||Qee()}function Qee(){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 Jee(e,t){if(e){if(typeof e=="string")return HS(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 HS(e,t)}}function ete(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function tte(e){if(Array.isArray(e))return HS(e)}function HS(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 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 ite(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ote(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 ate(e,t,r){return t&&ote(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ste(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&&GS(e,t)}function GS(e,t){return GS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},GS(e,t)}function lte(e){var t=fte();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 ute(this,i)}}function ute(e,t){if(t&&(qS(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cte(e)}function cte(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fte(){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 dte={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:X$(H.bool,'Please use "end" instead.')},hte={up:"top",left:"left",right:"right",start:"left",end:"right",down:"bottom"},ml=function(e){ste(r,e);var t=lte(r);function r(){return ite(this,r),t.apply(this,arguments)}return ate(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,x=b===void 0?!0:b,_=o.modifiers,w=_===void 0?[]:_,O=o.persist,S=o.strategy,E=o.container,T=o.updateOnSelect,A=rte(o,Yee),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=hte[this.context.direction]||"bottom",V=u||h?"end":"start",B="".concat(F,"-").concat(V),W=[].concat(Xee(w),[{name:"flip",enabled:!!x}]),q={};O&&(q.display="block",q.visibility=this.context.isOpen?"visible":"hidden");var J=Z.createElement(gF,{placement:B,modifiers:W,strategy:S},function(ne){var ae=ne.ref,se=ne.style,oe=ne.placement,K=ne.update,G=A1(A1(A1({},i.props.style),q),se),z=function(X){ae(X);var le=i.context.onMenuRef;le&&le(X)};return Z.createElement(N,zg({tabIndex:"-1",role:i.getRole(),ref:z},A,{style:G,"aria-hidden":!i.context.isOpen,className:j,"data-popper-placement":oe,onClick:function(){return T&&K()}}))});return E?uu.createPortal(J,ep(E)):J}var Q=this.context.onMenuRef;return Z.createElement(N,zg({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);ml.propTypes=dte;ml.contextType=np;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 pte=["className","color","cssModule","caret","split","nav","tag","innerRef"];function YS(){return YS=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},YS.apply(this,arguments)}function mte(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vte(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}function yte(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bte(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 _te(e,t,r){return t&&bte(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function xte(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&&ZS(e,t)}function ZS(e,t){return ZS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ZS(e,t)}function wte(e){var t=Ste();return function(){var n=Wg(e),i;if(t){var o=Wg(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return Ote(this,i)}}function Ote(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 bF(e)}function bF(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 Wg(e){return Wg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Wg(e)}var Pte={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])},Cte={color:"secondary","aria-haspopup":!0},Ja=function(e){xte(r,e);var t=wte(r);function r(n){var i;return yte(this,r),i=t.call(this,n),i.onClick=i.onClick.bind(bF(i)),i}return _te(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,x=vte(o,pte),_=x["aria-label"]||"Toggle Dropdown",w=ct(mt(a,{"dropdown-toggle":u||h,"dropdown-toggle-split":h,"nav-link":p}),c),O=typeof x.children<"u"?x.children:Z.createElement("span",{className:"visually-hidden"},_),S;p&&!v?(S="a",x.href="#"):v?S=v:(S=_t,x.color=s,x.cssModule=c);var E=function(A){var j=A.ref,N=function(V){j(V);var B=i.context.onToggleRef;B&&B(V)};return Z.createElement(S,YS({},x,mte({},typeof S=="string"?"ref":"innerRef",N),{className:w,onClick:i.onClick,"aria-expanded":i.context.isOpen,"aria-haspopup":i.getRole(),children:O}))};return this.context.inNavbar?Z.createElement(Z.Fragment,null,E({ref:this.context.onToggleRef})):Z.createElement(See,{innerRef:b},E)}}]),r}(Z.Component);Ja.propTypes=Pte;Ja.defaultProps=Cte;Ja.contextType=np;function Ete(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 XS(e,t){return XS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},XS(e,t)}function Tte(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,XS(e,t)}const RR={disabled:!1},_F=Z.createContext(null);var jte=function(t){return t.scrollTop},wh="unmounted",Jl="exited",eu="entering",Uc="entered",QS="exiting",Yn=function(e){Tte(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=Jl,o.appearStatus=eu):c=Uc:n.unmountOnExit||n.mountOnEnter?c=wh:c=Jl,o.state={status:c},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===wh?{status:Jl}: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!==eu&&a!==Uc&&(o=eu):(a===eu||a===Uc)&&(o=QS)}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===eu){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:uu.findDOMNode(this);a&&jte(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Jl&&this.setState({status:wh})},r.performEnter=function(i){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:i,c=this.props.nodeRef?[s]:[uu.findDOMNode(this),s],u=c[0],h=c[1],p=this.getTimeouts(),v=s?p.appear:p.enter;if(!i&&!a||RR.disabled){this.safeSetState({status:Uc},function(){o.props.onEntered(u)});return}this.props.onEnter(u,h),this.safeSetState({status:eu},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:uu.findDOMNode(this);if(!o||RR.disabled){this.safeSetState({status:Jl},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:QS},function(){i.props.onExiting(s),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:Jl},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:uu.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===wh)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=Ete(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Z.createElement(_F.Provider,{value:null},typeof a=="function"?a(i,s):Z.cloneElement(Z.Children.only(a),s))},t}(Z.Component);Yn.contextType=_F;Yn.propTypes={};function Ac(){}Yn.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};Yn.UNMOUNTED=wh;Yn.EXITED=Jl;Yn.ENTERING=eu;Yn.ENTERED=Uc;Yn.EXITING=QS;var Ate=["tag","baseClass","baseClassActive","className","cssModule","children","innerRef"];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 kte(e,t){if(e==null)return{};var r=Rte(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 Rte(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 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 ip(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){Nte(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 Nte(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Mte=ip(ip({},Yn.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])}),MR=ip(ip({},Yn.defaultProps),{},{timeout:Ig.Fade,appear:!0,enter:!0,exit:!0,in:!0});function Wn(e){var t=$.useRef(null),r=fT(MR,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,x=kte(r,Ate),_=Z$(ip({defaultProps:MR},x),Dg),w=dl(x,Dg);return Z.createElement(Yn,qg({nodeRef:b},_),function(O){var S=O==="entered",E=ct(mt(u,a,S&&c),h);return Z.createElement(i,qg({className:E},w,{ref:b}),p)})}Wn.propTypes=Mte;function JS(e){"@babel/helpers - typeof";return JS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},JS(e)}var Lte=["tag","horizontal","isOpen","className","navbar","cssModule","children","innerRef"],kc;function Hg(){return Hg=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},Hg.apply(this,arguments)}function Ite(e,t){if(e==null)return{};var r=Dte(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 Dte(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 $te(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fte(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 Bte(e,t,r){return t&&Fte(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ute(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 zte(e){var t=Wte();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 Vte(this,i)}}function Vte(e,t){if(t&&(JS(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xF(e)}function xF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wte(){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 LR(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?LR(Object(r),!0).forEach(function(n){Hc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):LR(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 qte=df(df({},Yn.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})}),Hte=df(df({},Yn.defaultProps),{},{horizontal:!1,isOpen:!1,appear:!1,enter:!0,exit:!0,tag:"div",timeout:Ig.Collapse}),Gte=(kc={},Hc(kc,Wv.ENTERING,"collapsing"),Hc(kc,Wv.ENTERED,"collapse show"),Hc(kc,Wv.EXITING,"collapsing"),Hc(kc,Wv.EXITED,"collapse"),kc);function Kte(e){return Gte[e]||"collapse"}var OT=function(e){Ute(r,e);var t=zte(r);function r(n){var i;return $te(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(xF(i))}),i}return Bte(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=Ite(o,Lte),x=this.state.dimension,_=Z$(b,Dg),w=dl(b,Dg);return Z.createElement(Yn,Hg({},_,{in:c,nodeRef:this.nodeRef,onEntering:this.onEntering,onEntered:this.onEntered,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),function(O){var S=Kte(O),E=ct(mt(u,s&&"collapse-horizontal",S,h&&"navbar-collapse"),p),T=x===null?null:Hc({},s?"width":"height",x);return Z.createElement(a,Hg({},w,{style:df(df({},w.style),T),className:E,ref:i.nodeRef}),v)})}}]),r}($.Component);OT.propTypes=qte;OT.defaultProps=Hte;var Yte=["className","cssModule","color","body","inverse","outline","tag","innerRef"];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 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={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 wi(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=Zte(e,Yte),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,tP({},h,{className:p,ref:u}))}wi.propTypes=Qte;var Jte=["className","cssModule","innerRef","tag"];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 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,innerRef:H.oneOfType([H.object,H.string,H.func]),tag:kt};function tm(e){var t=e.className,r=e.cssModule,n=e.innerRef,i=e.tag,o=i===void 0?"div":i,a=ere(e,Jte),s=ct(mt(t,"card-body"),r);return Z.createElement(o,rP({},a,{className:s,ref:n}))}tm.propTypes=rre;var nre=["className","cssModule","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 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 wF(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-footer"),r);return Z.createElement(i,nP({},o,{className:a}))}wF.propTypes=are;var sre=["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 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 rm(e){var t=e.className,r=e.cssModule,n=e.tag,i=n===void 0?"div":n,o=lre(e,sre),a=ct(mt(t,"card-header"),r);return Z.createElement(i,iP({},o,{className:a}))}rm.propTypes=cre;var fre=["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 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 OF(e){var t=e.className,r=e.cssModule,n=e.tag,i=n===void 0?"p":n,o=dre(e,fre),a=ct(mt(t,"card-text"),r);return Z.createElement(i,oP({},o,{className:a}))}OF.propTypes=pre;var mre=["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 vre(e,t){if(e==null)return{};var r=gre(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 gre(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 yre={className:H.string,cssModule:H.object,tag:kt};function SF(e){var t=e.className,r=e.cssModule,n=e.tag,i=n===void 0?"div":n,o=vre(e,mre),a=ct(mt(t,"card-title"),r);return Z.createElement(i,aP({},o,{className:a}))}SF.propTypes=yre;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 bre=["cssModule","children","isOpen","flip","target","offset","fallbackPlacements","placementPrefix","arrowClassName","hideArrow","popperClassName","tag","container","modifiers","strategy","boundariesElement","onClosed","fade","transition","placement"];function lP(){return lP=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},lP.apply(this,arguments)}function IR(e){return Ore(e)||wre(e)||xre(e)||_re()}function _re(){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 xre(e,t){if(e){if(typeof e=="string")return uP(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 uP(e,t)}}function wre(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ore(e){if(Array.isArray(e))return uP(e)}function uP(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 Sre(e,t){if(e==null)return{};var r=Pre(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 Pre(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 Cre(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 Ere(e,t,r){return t&&DR(e.prototype,t),r&&DR(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Tre(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&cP(e,t)}function cP(e,t){return cP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},cP(e,t)}function jre(e){var t=kre();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 Are(this,i)}}function Are(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 Oh(e)}function Oh(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kre(){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)}function $R(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 wg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$R(Object(r),!0).forEach(function(n){Rre(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$R(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Rre(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Nre(){}var Mre={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,uT]),onClosed:H.func,fade:H.bool,transition:H.shape(Wn.propTypes)},Lre={boundariesElement:"scrollParent",placement:"auto",hideArrow:!1,isOpen:!1,offset:[0,0],flip:!0,container:"body",modifiers:[],onClosed:Nre,fade:!0,transition:wg({},Wn.defaultProps)},ST=function(e){Tre(r,e);var t=jre(r);function r(n){var i;return Cre(this,r),i=t.call(this,n),i.setTargetNode=i.setTargetNode.bind(Oh(i)),i.getTargetNode=i.getTargetNode.bind(Oh(i)),i.getRef=i.getRef.bind(Oh(i)),i.onClosed=i.onClosed.bind(Oh(i)),i.state={isOpen:n.isOpen},i}return Ere(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 ep(this.props.container)}},{key:"getRef",value:function(i){this._element=i}},{key:"setTargetNode",value:function(i){this.targetNode=typeof i=="string"?ep(i):i}},{key:"renderChildren",value:function(){var i=this.props,o=i.cssModule,a=i.children,s=i.isOpen,c=i.flip;i.target;var u=i.offset,h=i.fallbackPlacements,p=i.placementPrefix,v=i.arrowClassName,b=i.hideArrow,x=i.popperClassName,_=i.tag;i.container;var w=i.modifiers,O=i.strategy,S=i.boundariesElement;i.onClosed;var E=i.fade,T=i.transition,A=i.placement,j=Sre(i,bre),N=ct(mt("arrow",v),o),F=ct(mt(x,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:S}}].filter(function(J){return!V.includes(J.name)}),W=[].concat(IR(B),IR(w)),q=wg(wg(wg({},Wn.defaultProps),T),{},{baseClass:E?T.baseClass:"",timeout:E?T.timeout:0});return Z.createElement(Wn,lP({},q,j,{in:s,onExited:this.onClosed,tag:_}),Z.createElement(gF,{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():uu.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);ST.propTypes=Mre;ST.defaultProps=Lre;function fP(){return fP=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},fP.apply(this,arguments)}function op(e){"@babel/helpers - typeof";return op=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},op(e)}function Ire(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function FR(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 Dre(e,t,r){return t&&FR(e.prototype,t),r&&FR(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function $re(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&dP(e,t)}function dP(e,t){return dP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},dP(e,t)}function Fre(e){var t=Ure();return function(){var n=Yg(e),i;if(t){var o=Yg(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return Bre(this,i)}}function Bre(e,t){if(t&&(op(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ci(e)}function ci(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ure(){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 Yg(e){return Yg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Yg(e)}var PT={children:H.oneOfType([H.node,H.func]),placement:H.oneOf(aQ),target:sf.isRequired,container:sf,isOpen:H.bool,disabled:H.bool,hideArrow:H.bool,boundariesElement:H.oneOfType([H.string,uT]),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},PF={show:0,hide:50},zre={isOpen:!1,hideArrow:!1,autohide:!1,delay:PF,toggle:function(){},trigger:"click",fade:!0};function CF(e,t){return t&&(e===t||t.contains(e))}function BR(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return t&&t.length&&t.filter(function(r){return CF(e,r)})[0]}var CT=function(e){$re(r,e);var t=Fre(r);function r(n){var i;return Ire(this,r),i=t.call(this,n),i._targets=[],i.currentTargetElement=null,i.addTargetEvents=i.addTargetEvents.bind(ci(i)),i.handleDocumentClick=i.handleDocumentClick.bind(ci(i)),i.removeTargetEvents=i.removeTargetEvents.bind(ci(i)),i.toggle=i.toggle.bind(ci(i)),i.showWithDelay=i.showWithDelay.bind(ci(i)),i.hideWithDelay=i.hideWithDelay.bind(ci(i)),i.onMouseOverTooltipContent=i.onMouseOverTooltipContent.bind(ci(i)),i.onMouseLeaveTooltipContent=i.onMouseLeaveTooltipContent.bind(ci(i)),i.show=i.show.bind(ci(i)),i.hide=i.hide.bind(ci(i)),i.onEscKeyDown=i.onEscKeyDown.bind(ci(i)),i.getRef=i.getRef.bind(ci(i)),i.state={isOpen:n.isOpen},i._isMounted=!1,i}return Dre(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||BR(i.target,this._targets))?(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen&&!CF(i.target,this._popover)?this.hideWithDelay(i):this.props.isOpen||this.showWithDelay(i)):o.indexOf("click")>-1&&BR(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):op(o)==="object"&&(o.current=i)),this._popover=i}},{key:"getDelay",value:function(i){var o=this.props.delay;return op(o)==="object"?isNaN(o[i])?PF[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=ep(this.props.target,!0);i!==this._targets&&(this.removeTargetEvents(),this._targets=i?Array.from(i):[],this.currentTargetElement=this.currentTargetElement||this._targets[0],this.addTargetEvents())}},{key:"toggle",value:function(i){return this.props.disabled||!this._isMounted?i&&i.preventDefault():this.props.toggle(i)}},{key:"render",value:function(){var i=this;this.props.isOpen&&this.updateTarget();var o=this.currentTargetElement||this._targets[0];if(!o)return null;var a=this.props,s=a.className,c=a.cssModule,u=a.innerClassName,h=a.isOpen,p=a.hideArrow,v=a.boundariesElement,b=a.placement,x=a.placementPrefix,_=a.arrowClassName,w=a.popperClassName,O=a.container,S=a.modifiers,E=a.strategy,T=a.offset,A=a.fade,j=a.flip,N=a.children,F=dl(this.props,Object.keys(PT)),V=ct(w,c),B=ct(u,c);return Z.createElement(ST,{className:s,target:o,isOpen:h,hideArrow:p,boundariesElement:v,placement:b,placementPrefix:x,arrowClassName:_,popperClassName:V,container:O,modifiers:S,strategy:E,offset:T,cssModule:c,fade:A,flip:j},function(W){var q=W.update;return Z.createElement("div",fP({},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=PT;CT.defaultProps=zre;var Vre=["children","className","barClassName","cssModule","value","min","max","animated","striped","color","bar","multi","tag","style","barStyle","barAriaValueText","barAriaLabelledBy"];function Zg(){return Zg=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},Zg.apply(this,arguments)}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 k1(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){Wre(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 Wre(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qre(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 Gre={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 EF(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,x=e.bar,_=e.multi,w=e.tag,O=w===void 0?"div":w,S=e.style,E=S===void 0?{}:S,T=e.barStyle,A=T===void 0?{}:T,j=e.barAriaValueText,N=e.barAriaLabelledBy,F=qre(e,Vre),V=hR(a)/hR(h)*100,B=ct(mt(r,"progress"),i),W=ct(mt("progress-bar",x&&r||n,p?"progress-bar-animated":null,b?"bg-".concat(b):null,v||p?"progress-bar-striped":null),i),q={className:W,style:k1(k1(k1({},x?E:{}),A),{},{width:"".concat(V,"%")}),role:"progressbar","aria-valuenow":a,"aria-valuemin":c,"aria-valuemax":h,"aria-valuetext":j,"aria-labelledby":N,children:t};return x?Z.createElement(O,Zg({},F,q)):Z.createElement(O,Zg({},F,{style:E,className:B}),_?t:Z.createElement("div",q))}EF.propTypes=Gre;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 Kre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yre(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 Zre(e,t,r){return t&&Yre(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Xre(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pP(e,t)}function pP(e,t){return pP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},pP(e,t)}function Qre(e){var t=tne();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 Jre(this,i)}}function Jre(e,t){if(t&&(hP(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ene(e)}function ene(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tne(){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)}var rne={children:H.node.isRequired,node:H.any},TF=function(e){Xre(r,e);var t=Qre(r);function r(){return Kre(this,r),t.apply(this,arguments)}return Zre(r,[{key:"componentWillUnmount",value:function(){this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null}},{key:"render",value:function(){return cT?(!this.props.node&&!this.defaultNode&&(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode)),uu.createPortal(this.props.children,this.props.node||this.defaultNode)):null}}]),r}(Z.Component);TF.propTypes=rne;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 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 Rc(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){zc(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 Ih(){return Ih=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},Ih.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 nne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ine(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 one(e,t,r){return t&&ine(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ane(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&&vP(e,t)}function vP(e,t){return vP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},vP(e,t)}function sne(e){var t=une();return function(){var n=Qg(e),i;if(t){var o=Qg(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return lne(this,i)}}function lne(e,t){if(t&&(mP(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Bi(e)}function Bi(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function une(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Qg(e){return Qg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Qg(e)}function Jg(){}var VR=H.shape(Wn.propTypes),jF={autoFocus:H.bool,backdrop:H.oneOfType([H.bool,H.oneOf(["static"])]),backdropClassName:H.string,backdropTransition:VR,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:VR,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])},cne=Object.keys(jF),fne={isOpen:!1,autoFocus:!0,centered:!1,scrollable:!1,role:"dialog",backdrop:!0,keyboard:!0,zIndex:1050,fade:!0,onOpened:Jg,onClosed:Jg,modalTransition:{timeout:Ig.Modal},backdropTransition:{mountOnEnter:!0,timeout:Ig.Fade},unmountOnClose:!0,returnFocusAfterClose:!0,container:"body",trapFocus:!1},Zn=function(e){ane(r,e);var t=sne(r);function r(n){var i;return nne(this,r),i=t.call(this,n),i._element=null,i._originalBodyPadding=null,i.getFocusableChildren=i.getFocusableChildren.bind(Bi(i)),i.handleBackdropClick=i.handleBackdropClick.bind(Bi(i)),i.handleBackdropMouseDown=i.handleBackdropMouseDown.bind(Bi(i)),i.handleEscape=i.handleEscape.bind(Bi(i)),i.handleStaticBackdropAnimation=i.handleStaticBackdropAnimation.bind(Bi(i)),i.handleTab=i.handleTab.bind(Bi(i)),i.onOpened=i.onOpened.bind(Bi(i)),i.onClosed=i.onClosed.bind(Bi(i)),i.manageFocusAfterClose=i.manageFocusAfterClose.bind(Bi(i)),i.clearBackdropAnimationTimeout=i.clearBackdropAnimationTimeout.bind(Bi(i)),i.trapFocus=i.trapFocus.bind(Bi(i)),i.state={isOpen:!1,showStaticBackdropAnimation:!1},i}return one(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===Bt.esc&&this.props.toggle&&(this.props.keyboard?(i.preventDefault(),i.stopPropagation(),this.props.toggle(i)):this.props.backdrop==="static"&&(i.preventDefault(),i.stopPropagation(),this.handleStaticBackdropAnimation()))}},{key:"handleStaticBackdropAnimation",value:function(){var i=this;this.clearBackdropAnimationTimeout(),this.setState({showStaticBackdropAnimation:!0}),this._backdropAnimationTimeout=setTimeout(function(){i.setState({showStaticBackdropAnimation:!1})},100)}},{key:"onOpened",value:function(i,o){this.props.onOpened(),(this.props.modalTransition.onEntered||Jg)(i,o)}},{key:"onClosed",value:function(i){var o=this.props.unmountOnClose;this.props.onClosed(),(this.props.modalTransition.onExited||Jg)(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(cQ.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=ep(this.props.container),this._mountContainer.appendChild(this._element)),this._originalBodyPadding=rQ(),r.openCount<1&&(r.originalBodyOverflow=window.getComputedStyle(document.body).overflow),nQ(),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),Y$(this._originalBodyPadding)}},{key:"clearBackdropAnimationTimeout",value:function(){this._backdropAnimationTimeout&&(clearTimeout(this._backdropAnimationTimeout),this._backdropAnimationTimeout=void 0)}},{key:"renderModalDialog",value:function(){var i,o=this,a=dl(this.props,cne),s="modal-dialog";return Z.createElement("div",Ih({},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,x=a.labelledBy,_=a.external,w=a.innerRef,O={onClick:this.handleBackdropClick,onMouseDown:this.handleBackdropMouseDown,onKeyUp:this.handleEscape,onKeyDown:this.handleTab,style:{display:"block"},"aria-labelledby":x,"aria-modal":!0,role:b,tabIndex:"-1"},S=this.props.fade,E=Rc(Rc(Rc({},Wn.defaultProps),this.props.modalTransition),{},{baseClass:S?this.props.modalTransition.baseClass:"",timeout:S?this.props.modalTransition.timeout:0}),T=Rc(Rc(Rc({},Wn.defaultProps),this.props.backdropTransition),{},{baseClass:S?this.props.backdropTransition.baseClass:"",timeout:S?this.props.backdropTransition.timeout:0}),A=v&&(S?Z.createElement(Wn,Ih({},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(TF,{node:this._element},Z.createElement("div",{className:ct(s)},Z.createElement(Wn,Ih({},O,E,{in:p,onEntered:this.onOpened,onExited:this.onClosed,cssModule:h,className:ct(mt("modal",c,this.state.showStaticBackdropAnimation&&"modal-static"),h),innerRef:w}),_,this.renderModalDialog()),A))}return null}}]),r}(Z.Component);Zn.propTypes=jF;Zn.defaultProps=fne;Zn.openCount=0;Zn.originalBodyOverflow=null;var dne=["className","cssModule","children","toggle","tag","wrapTag","closeAriaLabel","close"];function gP(){return gP=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},gP.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={children:H.node,className:H.string,close:H.object,closeAriaLabel:H.string,cssModule:H.object,tag:kt,toggle:H.func,wrapTag:kt};function ua(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=hne(e,dne),x=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,gP({},b,{className:x}),Z.createElement(s,{className:ct("modal-title",n)},i),v||t)}ua.propTypes=mne;var vne=["className","cssModule","tag"];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 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 Eo(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-body"),r);return Z.createElement(i,yP({},o,{className:a}))}Eo.propTypes=bne;var _ne=["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 xne(e,t){if(e==null)return{};var r=wne(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 wne(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 One={className:H.string,cssModule:H.object,tag:kt};function es(e){var t=e.className,r=e.cssModule,n=e.tag,i=n===void 0?"div":n,o=xne(e,_ne),a=ct(mt(t,"modal-footer"),r);return Z.createElement(i,bP({},o,{className:a}))}es.propTypes=One;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)}var Sne={placement:"top",autohide:!0,placementPrefix:"bs-tooltip",trigger:"hover focus"};function D0(e){var t=mt("tooltip-arrow",e.arrowClassName),r=mt("tooltip","show",e.popperClassName),n=mt("tooltip-inner",e.innerClassName),i=fT(Sne,e);return Z.createElement(CT,_P({},i,{arrowClassName:t,popperClassName:r,innerClassName:n}))}D0.propTypes=PT;var Pne=["className","cssModule","tag","flush","horizontal","numbered"];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)}function Cne(e,t){if(e==null)return{};var r=Ene(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 Ene(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 Tne={className:H.string,cssModule:H.object,flush:H.bool,horizontal:H.oneOfType([H.bool,H.string]),numbered:H.bool,tag:kt},jne=function(t){return t===!1?!1:t===!0||t==="xs"?"list-group-horizontal":"list-group-horizontal-".concat(t)};function AF(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=Cne(e,Pne),p=ct(mt(t,"list-group",o?"list-group-flush":jne(s),{"list-group-numbered":u}),r);return Z.createElement(i,xP({},h,{className:p}))}AF.propTypes=Tne;var Ane=["className","cssModule","row","disabled","check","inline","floating","noMargin","tag","switch"];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 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}var Nne={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 ey(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=kne(e,Ane),b=o||p,x=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,wP({},v,{className:x}))}ey.propTypes=Nne;function OP(e){"@babel/helpers - typeof";return OP=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},OP(e)}var Mne=["className","cssModule","type","bsSize","valid","invalid","tag","addon","plaintext","innerRef"];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 Lne(e,t){if(e==null)return{};var r=Ine(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 Ine(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 Dne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $ne(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 Fne(e,t,r){return t&&$ne(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Bne(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&PP(e,t)}function PP(e,t){return PP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},PP(e,t)}function Une(e){var t=Vne();return function(){var n=ty(e),i;if(t){var o=ty(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return zne(this,i)}}function zne(e,t){if(t&&(OP(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return 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 Vne(){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 ty(e){return ty=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ty(e)}var Wne={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},Xr=function(e){Bne(r,e);var t=Une(r);function r(n){var i;return Dne(this,r),i=t.call(this,n),i.getRef=i.getRef.bind(CP(i)),i.focus=i.focus.bind(CP(i)),i}return Fne(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,x=i.plaintext,_=i.innerRef,w=Lne(i,Mne),O=["switch","radio","checkbox"].indexOf(c)>-1,S=/\D/g,E=c==="textarea",T=c==="select",A=c==="range",j=v||(T||E?c:"input"),N="form-control";x?(N="".concat(N,"-plaintext"),j=v||"input"):A?N="form-range":T?N="form-select":O&&(b?N=null:N="form-check-input"),w.size&&S.test(w.size)&&(wS(`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&&!(x||c==="select"||typeof j!="string"||j==="select")&&(wS('Input with a type of "'.concat(c,'" cannot have children. Please use "value"/"defaultValue" instead.')),delete w.children),Z.createElement(j,SP({},w,{ref:_,className:F,"aria-invalid":p}))}}]),r}(Z.Component);Xr.propTypes=Wne;var qne=["className","cssModule","tag","type","size"];function ry(){return ry=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},ry.apply(this,arguments)}function Hne(e,t){if(e==null)return{};var r=Gne(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 Gne(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 Kne={className:H.string,cssModule:H.object,size:H.string,tag:kt,type:H.string};function nm(e){var t=e.className,r=e.cssModule,n=e.tag,i=n===void 0?"div":n;e.type;var o=e.size,a=Hne(e,qne),s=ct(mt(t,"input-group",o?"input-group-".concat(o):null),r);return e.type==="dropdown"?Z.createElement(pl,ry({},a,{className:s})):Z.createElement(yF.Provider,{value:{insideInputGroup:!0}},Z.createElement(i,ry({},a,{className:s})))}nm.propTypes=Kne;var Yne=["className","listClassName","cssModule","size","tag","listTag","aria-label"];function EP(){return EP=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},EP.apply(this,arguments)}function Zne(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}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={children:H.node,className:H.string,listClassName:H.string,cssModule:H.object,size:H.string,tag:kt,listTag:kt,"aria-label":H.string};function ET(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=Xne(e,Yne),v=ct(mt(t),n),b=ct(mt(r,"pagination",Zne({},"pagination-".concat(i),!!i)),n);return Z.createElement(a,{className:v,"aria-label":h},Z.createElement(c,EP({},p,{className:b})))}ET.propTypes=Jne;var eie=["active","className","cssModule","disabled","tag"];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 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={active:H.bool,children:H.node,className:H.string,cssModule:H.object,disabled:H.bool,tag:kt};function vu(e){var t=e.active,r=e.className,n=e.cssModule,i=e.disabled,o=e.tag,a=o===void 0?"li":o,s=tie(e,eie),c=ct(mt(r,"page-item",{active:t,disabled:i}),n);return Z.createElement(a,TP({},s,{className:c}))}vu.propTypes=nie;var iie=["className","cssModule","next","previous","first","last","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 oie(e,t){if(e==null)return{};var r=aie(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 aie(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 sie={"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 gu(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=oie(e,iie),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 x=e.children;return x&&Array.isArray(x)&&x.length===0&&(x=null),!u.href&&c==="a"&&(c="button"),(i||n||o||a)&&(x=[Z.createElement("span",{"aria-hidden":"true",key:"caret"},x||b),Z.createElement("span",{className:"visually-hidden",key:"ariaLabel"},v)]),Z.createElement(c,jP({},u,{className:h,"aria-label":v}),x)}gu.propTypes=sie;var lie=["className","closeClassName","closeAriaLabel","cssModule","tag","color","isOpen","toggle","children","transition","fade","innerRef"];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 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 sh(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){uie(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 uie(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}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={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(Wn.propTypes)};function kF(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,x=e.transition,_=x===void 0?sh(sh({},Wn.defaultProps),{},{unmountOnExit:!0}):x,w=e.fade,O=w===void 0?!0:w,S=e.innerRef,E=cie(e,lie),T=ct(mt(t,"alert","alert-".concat(u),{"alert-dismissible":v}),o),A=ct(mt("btn-close",r),o),j=sh(sh(sh({},Wn.defaultProps),_),{},{baseClass:O?_.baseClass:"",timeout:O?_.timeout:0});return Z.createElement(Wn,AP({},E,j,{tag:s,className:T,in:p,role:"alert",innerRef:S}),v?Z.createElement("button",{type:"button",className:A,"aria-label":i,onClick:v}):null,b)}kF.propTypes=die;var hie=["className","cssModule","tag","active","disabled","action","color"];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 pie(e,t){if(e==null)return{};var r=mie(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 mie(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 vie={action:H.bool,active:H.bool,className:H.string,cssModule:H.object,color:H.string,disabled:H.bool,tag:kt},gie=function(t){t.preventDefault()};function RF(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=pie(e,hie),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=gie),Z.createElement(i,kP({},u,{className:h}))}RF.propTypes=vie;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 qR(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 yie(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qR(Object(r),!0).forEach(function(n){bie(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bie(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}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 _ie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xie(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 wie(e,t,r){return t&&xie(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Oie(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&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 Sie(e){var t=Cie();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 Pie(this,i)}}function Pie(e,t){if(t&&(RP(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return NF(e)}function NF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Cie(){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 Eie=["defaultOpen"],im=function(e){Oie(r,e);var t=Sie(r);function r(n){var i;return _ie(this,r),i=t.call(this,n),i.state={isOpen:n.defaultOpen||!1},i.toggle=i.toggle.bind(NF(i)),i}return wie(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(pl,NP({isOpen:this.state.isOpen,toggle:this.toggle},dl(this.props,Eie)))}}]),r}($.Component);im.propTypes=yie({defaultOpen:H.bool,onToggle:H.func},pl.propTypes);function LP(e){"@babel/helpers - typeof";return LP=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},LP(e)}function 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 Tie(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){jie(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 jie(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}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 Aie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kie(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 Rie(e,t,r){return t&&kie(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Nie(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&DP(e,t)}function DP(e,t){return DP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},DP(e,t)}function Mie(e){var t=Iie();return function(){var n=iy(e),i;if(t){var o=iy(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return Lie(this,i)}}function Lie(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 MF(e)}function MF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Iie(){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 iy(e){return iy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},iy(e)}var Die=["defaultOpen"],Oi=function(e){Nie(r,e);var t=Mie(r);function r(n){var i;return Aie(this,r),i=t.call(this,n),i.state={isOpen:n.defaultOpen||!1},i.toggle=i.toggle.bind(MF(i)),i}return Rie(r,[{key:"toggle",value:function(){this.setState(function(i){return{isOpen:!i.isOpen}})}},{key:"render",value:function(){return Z.createElement(D0,IP({isOpen:this.state.isOpen,toggle:this.toggle},dl(this.props,Die)))}}]),r}($.Component);Oi.propTypes=Tie({defaultOpen:H.bool},D0.propTypes);const Ha=({className:e,children:t,loading:r=!1,type:n="default",fullWidth:i=!1})=>g.jsx(wi,{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:a$,spin:!0}),r&&g.jsx("span",{className:"ms-2",children:t??"Loading..."}),!r&&t]})}),qt=({title:e,children:t,bodyClassName:r,...n})=>g.jsxs(wi,{...n,children:[e&&g.jsx(rm,{role:"heading","aria-level":4,children:e}),g.jsx(tm,{className:r,children:t})]}),jn=({children:e,type:t,className:r,small:n=!1})=>g.jsx(qt,{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}),LF=({checked:e=!1,onChange:t,className:r,children:n,type:i,inline:o=!1})=>{const a=$.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})]})},IF=e=>g.jsx(LF,{type:"checkbox",...e}),Ga=e=>g.jsx(LF,{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]}),Og=({children:e,value:t,onChange:r,type:n,required:i,placeholder:o,className:a,labelClassName:s})=>{const c=$.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)})})},$ie=500;let Sg;const GR=()=>{Sg!==null&&clearTimeout(Sg),Sg=null},om=({onChange:e,className:t,large:r=!0,noBorder:n=!1,initialValue:i="",setTimeout_:o=setTimeout})=>{const[a,s]=$.useState(i),c=(u,h=$ie)=>{s(u),GR(),Sg=o(()=>{e(u),GR()},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:yY,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)})]})},DF=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},$0=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()},cr=(e=!1)=>{const[t,r]=$.useState(e),n=$.useCallback(()=>r(a=>!a),[]),i=$.useCallback(()=>r(!0),[]),o=$.useCallback(()=>r(!1),[]);return[t,n,i,o]},$F=(e=!1,t=2e3,r=window.setTimeout,n=window.clearTimeout)=>{const[i,o]=$.useState(e),a=$.useRef(e),s=$.useRef(),c=$.useCallback(()=>{o(!a.current),s.current&&n(s.current),s.current=r(()=>o(a.current),t)},[n,t,r]);return[i,c]},Zi=()=>$.useRef(null),Xf=()=>{const{search:e}=yn();return $.useMemo(()=>DF(e),[e])},ts=({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]=cr(),b=ze("dropdown-btn__toggle",r,{"btn-block":!c,"dropdown-btn__toggle--with-caret":!o}),x={minWidth:s&&`${s}px`};return g.jsxs(pl,{isOpen:p,toggle:v,disabled:t,className:i,children:[g.jsx(Ja,{size:u,caret:!o,className:b,color:"primary",...h,children:e}),g.jsx(ml,{className:"w-100",end:a,style:x,children:n})]})},F0=({children:e,minWidth:t,label:r="Options"})=>g.jsx(ts,{text:g.jsx(Ge,{className:"px-1",icon:lY}),"aria-label":r,size:"sm",minWidth:t,end:!0,noCaret:!0,inline:!0,children:e}),Dh=({children:e,...t})=>g.jsx(hT,{children:g.jsx(pT,{className:"nav-pills__nav-link",tag:BE,...t,children:e})}),FF=({children:e,fill:t=!1,className:r=""})=>g.jsx(wi,{className:`nav-pills__nav p-0 overflow-hidden ${r}`,body:!0,children:g.jsx(dT,{pills:!0,fill:t,children:$.Children.map(e,n=>{if(!$.isValidElement(n)||n.type!==Dh)throw new Error("Only NavPillItem children are allowed inside NavPills.");return n})})}),B0=(e,t,r)=>e!==t?"ASC":r?{ASC:"DESC",DESC:void 0}[r]:"ASC",BF=(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}),Fie=e=>e.dir?`${e.field}-${e.dir}`:void 0,Bie=e=>{const[t,r]=e.split("-");return{field:t,dir:r}};function am({items:e,order:t,onChange:r,isButton:n=!0,right:i=!1,prefixed:o=!0}){const a=s=>()=>{const c=B0(s,t.field,t.dir);r(c?s:void 0,c)};return g.jsxs(im,{children:[g.jsxs(Ja,{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(ml,{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"?dY:XK,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 ap="#4696e5",Uie="rgba(70, 150, 229, 0.4)",$P="#f77f28",zie="rgba(247, 127, 40, 0.4)",Vie="white",Wie="#161b22",qie=e=>{var t;return(t=document.querySelector("html"))==null?void 0:t.setAttribute("data-theme",e)},sm=()=>{var e;return((e=document.querySelector("html"))==null?void 0:e.getAttribute("data-theme"))==="dark"},TT=(e=window.matchMedia.bind(window))=>e("(prefers-color-scheme: dark)").matches?"dark":"light",Hie=$.forwardRef(({isOpen:e,toggle:t,forceUpdate:r},n)=>{const[i,,o]=cr(),a=$.useCallback(()=>{o(),r()},[r,o]);return g.jsxs(kF,{className:"app-update-banner",isOpen:e,toggle:t,tag:qt,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:OY,className:"ms-1"})]}),i&&g.jsx(g.Fragment,{children:"Restarting..."})]})]})]})}),UF=({to:e="/",children:t="Home"})=>g.jsx("div",{className:"home",children:g.jsxs(qt,{className:"p-4",children:[g.jsx("h2",{children:"Oops! We could not find requested route."}),g.jsx("p",{children:"Use your browser's back button to navigate to the page you have previously come from, or just press this button."}),g.jsx("br",{}),g.jsx(Gt,{to:e,className:"btn btn-outline-primary btn-lg",children:t})]})});function To(e){return $.useRef(e).current}function jo(e,t){return(r,n=globalThis.console)=>(t.forEach(i=>{const o=r[i];e[i]=o}),e)}const Gie=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"})})},zF=({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}=To(zF),b=yn(),x=$.useRef(t),_=b.pathname==="/";return $.useEffect(()=>{Object.keys(x.current).length===0&&e()},[e]),$.useEffect(()=>{var O;qie(((O=r.ui)==null?void 0:O.theme)??TT())},[(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":_}),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(UF,{})})]})}),g.jsx("div",{className:"shlink-footer",children:g.jsx(v,{})})]}),g.jsx(Hie,{isOpen:n,toggle:i,forceUpdate:Gie})]})},Kie=jo(zF,["MainHeader","Home","ShlinkWebComponentContainer","CreateServer","EditServer","Settings","ManageServers","ShlinkVersionsContainer"]);function on(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 Yie=typeof Symbol=="function"&&Symbol.observable||"@@observable",KR=Yie,R1=()=>Math.random().toString(36).substring(7).split("").join("."),Zie={INIT:`@@redux/INIT${R1()}`,REPLACE:`@@redux/REPLACE${R1()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${R1()}`},oy=Zie;function jT(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 VF(e,t,r){if(typeof e!="function")throw new Error(on(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(on(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(on(1));return r(VF)(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(on(3));return i}function p(w){if(typeof w!="function")throw new Error(on(4));if(c)throw new Error(on(5));let O=!0;u();const S=s++;return a.set(S,w),function(){if(O){if(c)throw new Error(on(6));O=!1,u(),a.delete(S),o=null}}}function v(w){if(!jT(w))throw new Error(on(7));if(typeof w.type>"u")throw new Error(on(8));if(typeof w.type!="string")throw new Error(on(17));if(c)throw new Error(on(9));try{c=!0,i=n(i,w)}finally{c=!1}return(o=a).forEach(S=>{S()}),w}function b(w){if(typeof w!="function")throw new Error(on(10));n=w,v({type:oy.REPLACE})}function x(){const w=p;return{subscribe(O){if(typeof O!="object"||O===null)throw new Error(on(11));function S(){const T=O;T.next&&T.next(h())}return S(),{unsubscribe:w(S)}},[KR](){return this}}}return v({type:oy.INIT}),{dispatch:v,subscribe:p,getState:h,replaceReducer:b,[KR]:x}}function Xie(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:oy.INIT})>"u")throw new Error(on(12));if(typeof r(void 0,{type:oy.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(on(13))})}function AT(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{Xie(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],x=v(b,s);if(typeof x>"u")throw s&&s.type,new Error(on(14));u[p]=x,c=c||x!==b}return c=c||n.length!==Object.keys(a).length,c?u:a}}function ay(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function Qie(...e){return t=>(r,n)=>{const i=t(r,n);let o=()=>{throw new Error(on(15))};const a={getState:i.getState,dispatch:(c,...u)=>o(c,...u)},s=e.map(c=>c(a));return o=ay(...s)(i.dispatch),{...i,dispatch:o}}}function Jie(e){return jT(e)&&"type"in e&&typeof e.type=="string"}var WF=Symbol.for("immer-nothing"),YR=Symbol.for("immer-draftable"),yi=Symbol.for("immer-state");function yo(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var hf=Object.getPrototypeOf;function Su(e){return!!e&&!!e[yi]}function Ka(e){var t;return e?qF(e)||Array.isArray(e)||!!e[YR]||!!((t=e.constructor)!=null&&t[YR])||z0(e)||V0(e):!1}var eoe=Object.prototype.constructor.toString();function qF(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)===eoe}function sp(e,t){U0(e)===0?Object.entries(e).forEach(([r,n])=>{t(r,n,e)}):e.forEach((r,n)=>t(n,r,e))}function U0(e){const t=e[yi];return t?t.type_:Array.isArray(e)?1:z0(e)?2:V0(e)?3:0}function FP(e,t){return U0(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function HF(e,t,r){const n=U0(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function toe(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function z0(e){return e instanceof Map}function V0(e){return e instanceof Set}function tu(e){return e.copy_||e.base_}function BP(e,t){if(z0(e))return new Map(e);if(V0(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&qF(e))return hf(e)?{...e}:Object.assign(Object.create(null),e);const r=Object.getOwnPropertyDescriptors(e);delete r[yi];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 kT(e,t=!1){return W0(e)||Su(e)||!Ka(e)||(U0(e)>1&&(e.set=e.add=e.clear=e.delete=roe),Object.freeze(e),t&&sp(e,(r,n)=>kT(n,!0))),e}function roe(){yo(2)}function W0(e){return Object.isFrozen(e)}var noe={};function Pu(e){const t=noe[e];return t||yo(0,e),t}var lp;function GF(){return lp}function ioe(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function ZR(e,t){t&&(Pu("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function UP(e){zP(e),e.drafts_.forEach(ooe),e.drafts_=null}function zP(e){e===lp&&(lp=e.parent_)}function XR(e){return lp=ioe(lp,e)}function ooe(e){const t=e[yi];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function QR(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[yi].modified_&&(UP(t),yo(4)),Ka(e)&&(e=sy(t,e),t.parent_||ly(t,e)),t.patches_&&Pu("Patches").generateReplacementPatches_(r[yi].base_,e,t.patches_,t.inversePatches_)):e=sy(t,r,[]),UP(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==WF?e:void 0}function sy(e,t,r){if(W0(t))return t;const n=t[yi];if(!n)return sp(t,(i,o)=>JR(e,n,t,i,o,r)),t;if(n.scope_!==e)return t;if(!n.modified_)return ly(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),sp(o,(s,c)=>JR(e,n,i,s,c,r,a)),ly(e,i,!1),r&&e.patches_&&Pu("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function JR(e,t,r,n,i,o,a){if(Su(i)){const s=o&&t&&t.type_!==3&&!FP(t.assigned_,n)?o.concat(n):void 0,c=sy(e,i,s);if(HF(r,n,c),Su(c))e.canAutoFreeze_=!1;else return}else a&&r.add(i);if(Ka(i)&&!W0(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;sy(e,i),(!t||!t.scope_.parent_)&&ly(e,i)}}function ly(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&kT(t,r)}function aoe(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:GF(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=n,o=RT;r&&(i=[n],o=up);const{revoke:a,proxy:s}=Proxy.revocable(i,o);return n.draft_=s,n.revoke_=a,s}var RT={get(e,t){if(t===yi)return e;const r=tu(e);if(!FP(r,t))return soe(e,r,t);const n=r[t];return e.finalized_||!Ka(n)?n:n===N1(e.base_,t)?(M1(e),e.copy_[t]=WP(n,e)):n},has(e,t){return t in tu(e)},ownKeys(e){return Reflect.ownKeys(tu(e))},set(e,t,r){const n=KF(tu(e),t);if(n!=null&&n.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=N1(tu(e),t),o=i==null?void 0:i[yi];if(o&&o.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(toe(r,i)&&(r!==void 0||FP(e.base_,t)))return!0;M1(e),VP(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 N1(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,M1(e),VP(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=tu(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){yo(11)},getPrototypeOf(e){return hf(e.base_)},setPrototypeOf(){yo(12)}},up={};sp(RT,(e,t)=>{up[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});up.deleteProperty=function(e,t){return up.set.call(this,e,t,void 0)};up.set=function(e,t,r){return RT.set.call(this,e[0],t,r,e[0])};function N1(e,t){const r=e[yi];return(r?tu(r):e)[t]}function soe(e,t,r){var i;const n=KF(t,r);return n?"value"in n?n.value:(i=n.get)==null?void 0:i.call(e.draft_):void 0}function KF(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 VP(e){e.modified_||(e.modified_=!0,e.parent_&&VP(e.parent_))}function M1(e){e.copy_||(e.copy_=BP(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var loe=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"&&yo(6),n!==void 0&&typeof n!="function"&&yo(7);let i;if(Ka(t)){const o=XR(this),a=WP(t,void 0);let s=!0;try{i=r(a),s=!1}finally{s?UP(o):zP(o)}return ZR(o,n),QR(i,o)}else if(!t||typeof t!="object"){if(i=r(t),i===void 0&&(i=t),i===WF&&(i=void 0),this.autoFreeze_&&kT(i,!0),n){const o=[],a=[];Pu("Patches").generateReplacementPatches_(t,i,o,a),n(o,a)}return i}else yo(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){Ka(e)||yo(8),Su(e)&&(e=uoe(e));const t=XR(this),r=WP(e,void 0);return r[yi].isManual_=!0,zP(t),r}finishDraft(e,t){const r=e&&e[yi];(!r||!r.isManual_)&&yo(9);const{scope_:n}=r;return ZR(n,t),QR(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=Pu("Patches").applyPatches_;return Su(e)?n(e,t):this.produce(e,i=>n(i,t))}};function WP(e,t){const r=z0(e)?Pu("MapSet").proxyMap_(e,t):V0(e)?Pu("MapSet").proxySet_(e,t):aoe(e,t);return(t?t.scope_:GF()).drafts_.push(r),r}function uoe(e){return Su(e)||yo(10,e),YF(e)}function YF(e){if(!Ka(e)||W0(e))return e;const t=e[yi];let r;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=BP(e,t.scope_.immer_.useStrictShallowCopy_)}else r=BP(e,!0);return sp(r,(n,i)=>{HF(r,n,YF(i))}),t&&(t.finalized_=!1),r}var bi=new loe,ZF=bi.produce;bi.produceWithPatches.bind(bi);bi.setAutoFreeze.bind(bi);bi.setUseStrictShallowCopy.bind(bi);bi.applyPatches.bind(bi);bi.createDraft.bind(bi);bi.finishDraft.bind(bi);function XF(e){return({dispatch:r,getState:n})=>i=>o=>typeof o=="function"?o(r,n,e):i(o)}var coe=XF(),foe=XF,doe=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ay:ay.apply(null,arguments)},hoe=e=>e&&typeof e.match=="function";function An(e,t){function r(...n){if(t){let i=t(...n);if(!i)throw new Error(Fa(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=>Jie(n)&&n.type===e,r}var QF=class Sh extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Sh.prototype)}static get[Symbol.species](){return Sh}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Sh(...t[0].concat(this)):new Sh(...t.concat(this))}};function eN(e){return Ka(e)?ZF(e,()=>{}):e}function tN(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function poe(e){return typeof e=="boolean"}var moe=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{};let a=new QF;return r&&(poe(r)?a.push(coe):a.push(foe(r.extraArgument))),a},voe="RTK_autoBatch",rN=e=>t=>{setTimeout(t,e)},goe=(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:rN(10):e.type==="callback"?e.queueNotification:rN(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[voe]),o=!i,o&&(a||(a=!0,c(u))),n.dispatch(h)}finally{i=!0}}})},yoe=e=>function(r){const{autoBatch:n=!0}=r??{};let i=new QF(e);return n&&i.push(goe(typeof n=="object"?n:void 0)),i};function JF(e){const t=moe(),{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(jT(r))s=AT(r);else throw new Error(Fa(1));let c;typeof n=="function"?c=n(t):c=t();let u=ay;i&&(u=doe({trace:!1,...typeof i=="object"&&i}));const h=Qie(...c),p=yoe(h);let v=typeof a=="function"?a(p):p();const b=u(...v);return VF(s,o,b)}function e7(e){const t={},r=[];let n;const i={addCase(o,a){const s=typeof o=="string"?o:o.type;if(!s)throw new Error(Fa(28));if(s in t)throw new Error(Fa(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 boe(e){return typeof e=="function"}function _oe(e,t){let[r,n,i]=e7(t),o;if(boe(e))o=()=>eN(e());else{const s=eN(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(Su(h)){const b=p(h,c);return b===void 0?h:b}else{if(Ka(h))return ZF(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 xoe=(e,t)=>hoe(e)?e.match(t):e(t);function woe(...e){return t=>e.some(r=>xoe(r,t))}var Ooe="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Soe=(e=21)=>{let t="",r=e;for(;r--;)t+=Ooe[Math.random()*64|0];return t},Poe=["name","message","stack","code"],L1=class{constructor(e,t){Tc(this,"_type");this.payload=e,this.meta=t}},nN=class{constructor(e,t){Tc(this,"_type");this.payload=e,this.meta=t}},Coe=e=>{if(typeof e=="object"&&e!==null){const t={};for(const r of Poe)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},t7=(()=>{function e(t,r,n){const i=An(t+"/fulfilled",(c,u,h,p)=>({payload:c,meta:{...p||{},arg:h,requestId:u,requestStatus:"fulfilled"}})),o=An(t+"/pending",(c,u,h)=>({payload:void 0,meta:{...h||{},arg:u,requestId:c,requestStatus:"pending"}})),a=An(t+"/rejected",(c,u,h,p,v)=>({payload:p,error:(n&&n.serializeError||Coe)(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):Soe(),b=new AbortController;let x,_;function w(S){_=S,b.abort()}const O=async function(){var T,A;let S;try{let j=(T=n==null?void 0:n.condition)==null?void 0:T.call(n,c,{getState:h,extra:p});if(Toe(j)&&(j=await j),j===!1||b.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const N=new Promise((F,V)=>{x=()=>{V({name:"AbortError",message:_||"Aborted"})},b.signal.addEventListener("abort",x)});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}))),S=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 L1(F,V),fulfillWithValue:(F,V)=>new nN(F,V)})).then(F=>{if(F instanceof L1)throw F;return F instanceof nN?i(F.payload,v,c,F.meta):i(F,v,c)})])}catch(j){S=j instanceof L1?a(null,v,c,j.payload,j.meta):a(j,v,c)}finally{x&&b.signal.removeEventListener("abort",x)}return n&&!n.dispatchConditionRejection&&a.match(S)&&S.meta.condition||u(S),S}();return Object.assign(O,{abort:w,requestId:v,arg:c,unwrap(){return O.then(Eoe)}})}}return Object.assign(s,{pending:o,rejected:a,fulfilled:i,settled:woe(a,i),typePrefix:t})}return e.withTypes=()=>e,e})();function Eoe(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Toe(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var joe=Symbol.for("rtk-slice-createasyncthunk");function Aoe(e,t){return`${e}/${t}`}function koe({creators:e}={}){var r;const t=(r=e==null?void 0:e.asyncThunk)==null?void 0:r[joe];return function(i){const{name:o,reducerPath:a=o}=i;if(!o)throw new Error(Fa(11));typeof process<"u";const s=(typeof i.reducers=="function"?i.reducers(Noe()):i.reducers)||{},c=Object.keys(s),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},h={addCase(E,T){const A=typeof E=="string"?E:E.type;if(!A)throw new Error(Fa(12));if(A in u.sliceCaseReducersByType)throw new Error(Fa(13));return u.sliceCaseReducersByType[A]=T,h},addMatcher(E,T){return u.sliceMatchers.push({matcher:E,reducer:T}),h},exposeAction(E,T){return u.actionCreators[E]=T,h},exposeCaseReducer(E,T){return u.sliceCaseReducersByName[E]=T,h}};c.forEach(E=>{const T=s[E],A={reducerName:E,type:Aoe(o,E),createNotation:typeof i.reducers=="function"};Loe(T)?Doe(A,T,h,t):Moe(A,T,h)});function p(){const[E={},T=[],A=void 0]=typeof i.extraReducers=="function"?e7(i.extraReducers):[i.extraReducers],j={...E,...u.sliceCaseReducersByType};return _oe(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=E=>E,b=new Map;let x;function _(E,T){return x||(x=p()),x(E,T)}function w(){return x||(x=p()),x.getInitialState()}function O(E,T=!1){function A(N){let F=N[E];return typeof F>"u"&&T&&(F=w()),F}function j(N=v){const F=tN(b,T,()=>new WeakMap);return tN(F,N,()=>{const V={};for(const[B,W]of Object.entries(i.selectors??{}))V[B]=Roe(W,N,w,T);return V})}return{reducerPath:E,getSelectors:j,get selectors(){return j(A)},selectSlice:A}}const S={name:o,reducer:_,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:w,...O(a),injectInto(E,{reducerPath:T,...A}={}){const j=T??a;return E.inject({reducerPath:j,reducer:_},A),{...S,...O(j,!0)}}};return S}}function Roe(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 jr=koe();function Noe(){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 Moe({type:e,reducerName:t,createNotation:r},n,i){let o,a;if("reducer"in n){if(r&&!Ioe(n))throw new Error(Fa(17));o=n.reducer,a=n.prepare}else o=n;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,a?An(e,a):An(e))}function Loe(e){return e._reducerDefinitionType==="asyncThunk"}function Ioe(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Doe({type:e,reducerName:t},r,n,i){if(!i)throw new Error(Fa(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||Hv,pending:s||Hv,rejected:c||Hv,settled:u||Hv})}function Hv(){}function Fa(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:$oe,reducer:Foe}=jr({name:"shlink/appUpdates",initialState:!1,reducers:{appUpdateAvailable:()=>!0,resetAppUpdate:()=>!1}}),{appUpdateAvailable:Boe,resetAppUpdate:Uoe}=$oe,zoe=Foe,Voe=(e,t)=>{e.factory("App",Kie),e.decorator("App",t(["servers","settings","appUpdated"],["fetchServers","resetAppUpdate"])),e.serviceFactory("appUpdateAvailable",()=>Boe),e.serviceFactory("resetAppUpdate",()=>Uoe)},iN={"Content-Type":"application/json"},oN=e=>e!=null&&e.body?e?{...e,headers:{...e.headers??{},...iN}}:{headers:iN}:e;let Woe=class{constructor(t=window.fetch.bind(window)){this.fetch=t}async jsonRequest(t,r){return this.fetch(t,oN(r)).then(async n=>{const i=await n.json();if(!n.ok)throw i;return i})}async emptyRequest(t,r){return this.fetch(t,oN(r)).then(async n=>{if(!n.ok)throw await n.json()})}};var NT=(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))(NT||{});const qoe=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,aN=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const t=e.match(qoe);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},sN=e=>e==="*"||e==="x"||e==="X",lN=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},Hoe=(e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t],Goe=(e,t)=>{if(sN(e)||sN(t))return 0;const[r,n]=Hoe(lN(e),lN(t));return r>n?1:r<n?-1:0},uN=(e,t)=>{for(let r=0;r<Math.max(e.length,t.length);r++){const n=Goe(e[r]||"0",t[r]||"0");if(n!==0)return n}return 0},Koe=(e,t)=>{const r=aN(e),n=aN(t),i=r.pop(),o=n.pop(),a=uN(r,n);return a!==0?a:i&&o?uN(i.split("."),o.split(".")):i||o?i?-1:1:0},qP=(e,t,r)=>{Yoe(r);const n=Koe(e,t);return r7[r].includes(n)},r7={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},cN=Object.keys(r7),Yoe=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(cN.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${cN.join("|")}`)},n7=(e,t)=>e.reduce((r,n)=>{const i=t(n);return r[i]=(r[i]||0)+1,r},{}),i7=(e,t)=>e.reduce((r,n)=>{const i=t(n);return(r[i]=r[i]||[]).push(n),r},{}),I1=e=>Object.prototype.toString.call(e)==="[object Object]",o7=(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}},q0=(e,t)=>{const r={...e};return!I1(e)||!I1(t)||Object.keys(t).forEach(n=>{I1(t[n])?r[n]=n in e&&e[n]!==void 0?q0(e[n],t[n]):{...t[n]}:r[n]=t[n]}),r},MT=(e,t)=>Array.from({length:t-e},(r,n)=>e+n),Zoe=(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},fN=(e,t)=>Object.fromEntries(e.map((r,n)=>[r,t[n]])),Kn=({href:e,children:t,rel:r,...n})=>g.jsx("a",{target:"_blank",rel:`noopener noreferrer${r?` ${r}`:""}`,href:e,...n,children:t??e}),Xoe="Left",Qoe="Right",Joe="Up",eae="Down",Gc={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},HP={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},dN="mousemove",hN="mouseup",tae="touchend",rae="touchmove",nae="touchstart";function iae(e,t,r,n){return e>t?r>0?Qoe:Xoe:n>0?eae:Joe}function pN(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 oae(e,t){const r=h=>{const p="touches"in h;p&&h.touches.length>1||e((v,b)=>{b.trackMouse&&!p&&(document.addEventListener(dN,n),document.addEventListener(hN,a));const{clientX:x,clientY:_}=p?h.touches[0]:h,w=pN([x,_],b.rotationAngle);return b.onTouchStartOrOnMouseDown&&b.onTouchStartOrOnMouseDown({event:h}),Object.assign(Object.assign(Object.assign({},v),HP),{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:x,clientY:_}=b?h.touches[0]:h,[w,O]=pN([x,_],v.rotationAngle),S=w-p.xy[0],E=O-p.xy[1],T=Math.abs(S),A=Math.abs(E),j=(h.timeStamp||0)-p.start,N=Math.sqrt(T*T+A*A)/(j||1),F=[S/(j||1),E/(j||1)],V=iae(T,A,S,E),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:S,deltaY:E,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 x=v[`onSwiped${b.dir}`];x&&x(b)}}else v.onTap&&v.onTap({event:h});return v.onTouchEndOrOnMouseUp&&v.onTouchEndOrOnMouseUp({event:h}),Object.assign(Object.assign(Object.assign({},p),HP),{eventData:b})})},o=()=>{document.removeEventListener(dN,n),document.removeEventListener(hN,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),x=[[nae,r,b],[rae,n,Object.assign(Object.assign({},b),p.preventScrollOnSwipe?{passive:!1}:{})],[tae,i,b]];x.forEach(([_,w,O])=>h.addEventListener(_,w,O)),v=()=>x.forEach(([_,w])=>h.removeEventListener(_,w))}return v},u={ref:h=>{h!==null&&e((p,v)=>{if(p.el===h)return p;const b={};return p.el&&p.el!==h&&p.cleanUpTouch&&(p.cleanUpTouch(),b.cleanUpTouch=void 0),v.trackTouch&&h&&(b.cleanUpTouch=s(h,v)),Object.assign(Object.assign(Object.assign({},p),{el:h}),b)})}};return t.trackMouse&&(u.onMouseDown=r),[u,s]}function aae(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 sae(e){const{trackMouse:t}=e,r=$.useRef(Object.assign({},HP)),n=$.useRef(Object.assign({},Gc)),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]=$.useMemo(()=>oae(c=>r.current=c(r.current,n.current),{trackMouse:t}),[t]);return r.current=aae(r.current,n.current,i.current,s),a}var Ph={exports:{}};/** @license
* eventsource.js
* Available under MIT License (MIT)
* https://github.com/Yaffle/EventSource/
*/var lae=Ph.exports,mN;function uae(){return mN||(mN=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,x=r.TextEncoder,_=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 Ee(){}return Ee.prototype=ge,new Ee}),Date.now||(Date.now=function(){return new Date().getTime()}),_==null){var w=p;p=function(ge,Ee){var je=Ee.signal;return w(ge,{headers:Ee.headers,credentials:Ee.credentials,cache:Ee.cache}).then(function(Me){var He=Me.body.getReader();return je._reader=He,je._aborted&&je._reader.cancel(),{status:Me.status,statusText:Me.statusText,headers:Me.headers,body:{getReader:function(){return He}}}})},_=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function O(){this.bitsNeeded=0,this.codePoint=0}O.prototype.decode=function(ge){function Ee(Ae,ke,De){if(De===1)return Ae>=128>>ke&&Ae<<ke<=2047;if(De===2)return Ae>=2048>>ke&&Ae<<ke<=55295||Ae>=57344>>ke&&Ae<<ke<=65535;if(De===3)return Ae>=65536>>ke&&Ae<<ke<=1114111;throw new Error}function je(Ae,ke){if(Ae===6*1)return ke>>6>15?3:ke>31?2:1;if(Ae===6*2)return ke>15?3:2;if(Ae===6*3)return 3;throw new Error}for(var Me=65533,He="",Be=this.bitsNeeded,qe=this.codePoint,ye=0;ye<ge.length;ye+=1){var we=ge[ye];Be!==0&&(we<128||we>191||!Ee(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&&!Ee(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 S=function(){try{return new b().decode(new x().encode("test"),{stream:!0})==="test"}catch(ge){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+ge)}return!1};(b==null||x==null||!S())&&(b=O);var E=function(){};function T(ge){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=E,this.onload=E,this.onerror=E,this.onreadystatechange=E,this._contentType="",this._xhr=ge,this._sendTimeout=0,this._abort=E}T.prototype.open=function(ge,Ee){this._abort(!0);var je=this,Me=this._xhr,He=1,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=E,Me.onerror=E,Me.onabort=E,Me.onprogress=E,Me.onreadystatechange=E,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:E}),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))&&(Ee+=(Ee.indexOf("?")===-1?"?":"&")+"padding=true"),Me.open(ge,Ee,!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,Ee){var je=this._xhr;"setRequestHeader"in je&&je.setRequestHeader(ge,Ee)},T.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},T.prototype.send=function(){if((!("ontimeout"in o.prototype)||!("sendAsBinary"in o.prototype)&&!("mozAnon"in o.prototype))&&u!=null&&u.readyState!=null&&u.readyState!=="complete"){var ge=this;ge._sendTimeout=n(function(){ge._sendTimeout=0,ge.send()},4);return}var Ee=this._xhr;"withCredentials"in Ee&&(Ee.withCredentials=this.withCredentials);try{Ee.send(void 0)}catch(je){throw je}};function A(ge){return ge.replace(/[A-Z]/g,function(Ee){return String.fromCharCode(Ee.charCodeAt(0)+32)})}function j(ge){for(var Ee=Object.create(null),je=ge.split(`\r
`),Me=0;Me<je.length;Me+=1){var He=je[Me],Be=He.split(": "),qe=Be.shift(),ye=Be.join(": ");Ee[A(qe)]=ye}this._map=Ee}j.prototype.get=function(ge){return this._map[A(ge)]},o!=null&&o.HEADERS_RECEIVED==null&&(o.HEADERS_RECEIVED=2);function N(){}N.prototype.open=function(ge,Ee,je,Me,He,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();Ee(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,Ee,je,Me,He,Be,qe){var ye=null,we=new _,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(),Ee(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 Ee=this._listeners[ge.type];if(Ee!=null)for(var je=Ee.length,Me=0;Me<je;Me+=1){var He=Ee[Me];try{typeof He.handleEvent=="function"?He.handleEvent(ge):He.call(this,ge)}catch(Be){W(Be)}}},B.prototype.addEventListener=function(ge,Ee){ge=String(ge);var je=this._listeners,Me=je[ge];Me==null&&(Me=[],je[ge]=Me);for(var He=!1,Be=0;Be<Me.length;Be+=1)Me[Be]===Ee&&(He=!0);He||Me.push(Ee)},B.prototype.removeEventListener=function(ge,Ee){ge=String(ge);var je=this._listeners,Me=je[ge];if(Me!=null){for(var He=[],Be=0;Be<Me.length;Be+=1)Me[Be]!==Ee&&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,Ee){q.call(this,ge),this.data=Ee.data,this.lastEventId=Ee.lastEventId}J.prototype=Object.create(q.prototype);function Q(ge,Ee){q.call(this,ge),this.status=Ee.status,this.statusText=Ee.statusText,this.headers=Ee.headers}Q.prototype=Object.create(q.prototype);function ne(ge,Ee){q.call(this,ge),this.error=Ee.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,Ee){var je=ge==null?Ee:parseInt(ge,10);return je!==je&&(je=Ee),D(je)},D=function(ge){return Math.min(Math.max(ge,de),be)},Y=function(ge,Ee,je){try{typeof Ee=="function"&&Ee.call(ge,je)}catch(Me){W(Me)}};function ue(ge,Ee){B.call(this),Ee=Ee||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,Se(this,ge,Ee)}function ie(){return o!=null&&"withCredentials"in o.prototype||a==null?new o:new a}var he=p!=null&&v!=null&&"body"in v.prototype;function Se(ge,Ee,je){Ee=String(Ee);var Me=!!je.withCredentials,He=je.lastEventIdQueryParameterName||"lastEventId",Be=D(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,er=ae,Kt="",Ar="",Ir="",Mn="",Cr=z,da=0,Ln=0,eo=function(hr,ar,Dr,kr){if(er===se)if(hr===200&&Dr!=null&&ce.test(Dr)){er=oe,Ae=Date.now(),we=Be,ge.readyState=oe;var pr=new Q("open",{status:hr,statusText:ar,headers:kr});ge.dispatchEvent(pr),Y(ge,ge.onopen,pr)}else{var mr="";hr!==200?(ar&&(ar=ar.replace(/\s+/g," ")),mr="EventSource's response has a status "+hr+" "+ar+" that is not 200. Aborting the connection."):mr="EventSource's response has a Content-Type specifying an unsupported type: "+(Dr==null?"-":Dr.replace(/\s+/g," "))+". Aborting the connection.",os();var pr=new Q("error",{status:hr,statusText:ar,headers:kr});ge.dispatchEvent(pr),Y(ge,ge.onerror,pr),console.error(mr)}},to=function(hr){if(er===oe){for(var ar=-1,Dr=0;Dr<hr.length;Dr+=1){var kr=hr.charCodeAt(Dr);(kr===10||kr===13)&&(ar=Dr)}var pr=(ar!==-1?Mn:"")+hr.slice(0,ar+1);Mn=(ar===-1?Mn:"")+hr.slice(ar+1),hr!==""&&(Ae=Date.now(),ke+=hr.length);for(var mr=0;mr<pr.length;mr+=1){var kr=pr.charCodeAt(mr);if(Cr===G&&kr===10)Cr=z;else if(Cr===G&&(Cr=z),kr===13||kr===10){if(Cr!==z){Cr===re&&(Ln=mr+1);var tn=pr.slice(da,Ln-1),Qn=pr.slice(Ln+(Ln<mr&&pr.charCodeAt(Ln)===32?1:0),mr);tn==="data"?(Kt+=`
`,Kt+=Qn):tn==="id"?Ar=Qn:tn==="event"?Ir=Qn:tn==="retry"?(Be=M(Qn,Be),we=Be):tn==="heartbeatTimeout"&&(qe=M(Qn,qe),xt!==0&&(i(xt),xt=n(function(){No()},qe)))}if(Cr===z){if(Kt!==""){ye=Ar,Ir===""&&(Ir="message");var vr=new J(Ir,{data:Kt.slice(1),lastEventId:Ar});if(ge.dispatchEvent(vr),Ir==="open"?Y(ge,ge.onopen,vr):Ir==="message"?Y(ge,ge.onmessage,vr):Ir==="error"&&Y(ge,ge.onerror,vr),er===K)return}Kt="",Ir=""}Cr=kr===13?G:z}else Cr===z&&(da=mr,Cr=re),Cr===re?kr===58&&(Ln=mr+1,Cr=X):Cr===X&&(Cr=le)}}},wl=function(hr){if(er===oe||er===se){er=ae,xt!==0&&(i(xt),xt=0),xt=n(function(){No()},we),we=D(Math.min(Be*16,we*2)),ge.readyState=se;var ar=new ne("error",{error:hr});ge.dispatchEvent(ar),Y(ge,ge.onerror,ar),hr!=null&&console.error(hr)}},os=function(){er=K,Ot!=null&&(Ot.abort(),Ot=void 0),xt!==0&&(i(xt),xt=0),ge.readyState=K},No=function(){if(xt=0,er!==ae){if(!Ae&&Ot!=null)wl(new Error("No activity within "+qe+" milliseconds. "+(er===se?"No response received.":ke+" chars received.")+" Reconnecting.")),Ot!=null&&(Ot.abort(),Ot=void 0);else{var hr=Math.max((Ae||Date.now())+qe-Date.now(),1);Ae=!1,xt=n(function(){No()},hr)}return}Ae=!1,ke=0,xt=n(function(){No()},qe),er=se,Kt="",Ir="",Ar=ye,Mn="",da=0,Ln=0,Cr=z;var ar=Ee;if(Ee.slice(0,5)!=="data:"&&Ee.slice(0,5)!=="blob:"&&ye!==""){var Dr=Ee.indexOf("?");ar=Dr===-1?Ee:Ee.slice(0,Dr+1)+Ee.slice(Dr+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(Qn,vr){return vr===He?"":Qn}),ar+=(Ee.indexOf("?")===-1?"?":"&")+He+"="+encodeURIComponent(ye)}var kr=ge.withCredentials,pr={};pr.Accept="text/event-stream";var mr=ge.headers;if(mr!=null)for(var tn in mr)Object.prototype.hasOwnProperty.call(mr,tn)&&(pr[tn]=mr[tn]);try{Ot=bt.open(Xe,eo,to,wl,ar,kr,pr)}catch(Qn){throw os(),Qn}};ge.url=Ee,ge.readyState=se,ge.withCredentials=Me,ge.headers=De,ge._close=os,No()}ue.prototype=Object.create(B.prototype),ue.prototype.CONNECTING=se,ue.prototype.OPEN=oe,ue.prototype.CLOSED=K,ue.prototype.close=function(){this._close()},ue.CONNECTING=se,ue.OPEN=oe,ue.CLOSED=K,ue.prototype.withCredentials=void 0;var Fe=c;o!=null&&(c==null||!("withCredentials"in c.prototype))&&(Fe=ue),function(ge){{var Ee=ge(t);Ee!==void 0&&(e.exports=Ee)}}(function(ge){ge.EventSourcePolyfill=ue,ge.NativeEventSource=c,ge.EventSource=Fe})})(typeof globalThis>"u"?typeof window<"u"?window:typeof self<"u"?self:lae:globalThis)}(Ph,Ph.exports)),Ph.exports}var cae=uae();const Qs=({children:e})=>g.jsx("small",{className:"form-text text-muted d-block",children:e}),fae=({toggleRealTimeUpdates:e,setRealTimeUpdatesInterval:t})=>{const{enabled:r,interval:n}=Nn("realTimeUpdates",{enabled:!0}),i=$.useId();return g.jsxs(qt,{title:"Real-time updates",className:"h-100",children:[g.jsx(ey,{children:g.jsxs(Ga,{checked:r,onChange:e,children:["Enable or disable real-time updates.",g.jsxs(Qs,{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(Xr,{type:"number",min:0,placeholder:"Immediate",disabled:!r,value:`${n??""}`,id:i,onChange:({target:o})=>t(Number(o.value))}),r&&g.jsx(Qs,{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."})]})]})},D1=e=>e==="includes"?"Suggest tags including input":"Suggest tags starting with input",dae=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."]}),hae=({updateShortUrlCreationSettings:e})=>{const t=Nn("shortUrlCreation",{validateUrls:!1}),r=n=>()=>e({...t??{validateUrls:!1},tagFilteringMode:n});return g.jsxs(qt,{title:"Short URLs form",className:"h-100",bodyClassName:"d-flex flex-column gap-3",children:[g.jsxs(Ga,{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(Qs,{children:["The initial state of the ",g.jsx("b",{children:"Validate URL"})," checkbox will be ",g.jsx("b",{children:t.validateUrls?"checked":"unchecked"}),"."]})]}),g.jsxs(Ga,{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(Qs,{children:["The initial state of the ",g.jsx("b",{children:"Forward query params on redirect"})," checkbox will be ",g.jsx("b",{children:t.forwardQuery??!0?"checked":"unchecked"}),"."]})]}),g.jsxs(Zf,{noMargin:!0,label:"Tag suggestions search mode:",children:[g.jsxs(ts,{text:D1(t.tagFilteringMode),children:[g.jsx(Ye,{active:!t.tagFilteringMode||t.tagFilteringMode==="startsWith",onClick:r("startsWith"),children:D1("startsWith")}),g.jsx(Ye,{active:t.tagFilteringMode==="includes",onClick:r("includes"),children:D1("includes")})]}),g.jsx(Qs,{children:dae(t.tagFilteringMode)})]})]})},pae={dateCreated:"Created at",shortCode:"Short URL",longUrl:"Long URL",title:"Title",visits:"Visits"},mae=({updateShortUrlsListSettings:e,defaultOrdering:t})=>{const r=Nn("shortUrlsList"),n=(r==null?void 0:r.confirmDeletions)??!0;return g.jsxs(qt,{title:"Short URLs list",className:"h-100",bodyClassName:"d-flex flex-column gap-3",children:[g.jsxs(Ga,{checked:n,onChange:i=>e({...r,confirmDeletions:i}),children:["Request confirmation before deleting a short URL.",g.jsxs(Qs,{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(am,{items:pae,order:(r==null?void 0:r.defaultOrdering)??t,onChange:(i,o)=>e({defaultOrdering:{field:i,dir:o}})})})]})},vae={tag:"Tag",shortUrls:"Short URLs",visits:"Visits"},gae=({updateTagsSettings:e})=>{const t=Nn("tags",{});return g.jsx(qt,{title:"Tags",className:"h-100",children:g.jsx(Zf,{noMargin:!0,label:"Default ordering for tags list:",children:g.jsx(am,{items:vae,order:t.defaultOrdering??{},onChange:(r,n)=>e({...t,defaultOrdering:{field:r,dir:n}})})})})},yae=({updateUiSettings:e,_matchMedia:t})=>{const r=Nn("ui"),n=$.useMemo(()=>(r==null?void 0:r.theme)??TT(t),[r==null?void 0:r.theme,t]);return g.jsxs(qt,{title:"User interface",className:"h-100",bodyClassName:"d-flex justify-content-between align-items-center",children:[g.jsx(Ga,{checked:n==="dark",onChange:i=>{e({...r,theme:i?"dark":"light"})},children:"Use dark theme."}),g.jsx(Ge,{icon:n==="dark"?CY:pY})]})},a7={today:"Today",yesterday:"Yesterday",last7Days:"Last 7 days",last30Days:"Last 30 days",last90Days:"Last 90 days",last180Days:"Last 180 days",last365Days:"Last 365 days"},bae=(e,t)=>!e||e==="all"?t:a7[e],_ae=({onChange:e,active:t,allText:r})=>g.jsxs(ts,{text:bae(t,r),children:[g.jsx(Ye,{active:t==="all",onClick:()=>e("all"),children:r}),g.jsx(Ye,{divider:!0}),Object.entries(a7).map(([n,i])=>g.jsx(Ye,{active:t===n,onClick:()=>e(n),children:i},n))]}),vN=e=>(e==null?void 0:e.defaultInterval)??"last30Days",xae=({updateVisitsSettings:e})=>{const t=Nn("visits"),r=$.useCallback(({defaultInterval:n,...i})=>e({defaultInterval:n??vN(t),...i}),[e,t]);return g.jsxs(qt,{title:"Visits",className:"h-100",children:[g.jsx(ey,{children:g.jsxs(Ga,{checked:!!(t!=null&&t.excludeBots),onChange:n=>r({excludeBots:n}),children:["Exclude bots wherever possible (this options effect might depend on Shlink servers version).",g.jsxs(Qs,{children:["The visits coming from potential bots will be ",g.jsx("b",{children:t!=null&&t.excludeBots?"excluded":"included"}),"."]})]})}),g.jsx(ey,{children:g.jsxs(Ga,{checked:!!(t!=null&&t.loadPrevInterval),onChange:n=>r({loadPrevInterval:n}),children:["Compare visits with previous period.",g.jsxs(Qs,{children:["When loading visits, previous period ",g.jsx("b",{children:t!=null&&t.loadPrevInterval?"will":"won't"})," be loaded by default."]})]})}),g.jsx(Zf,{noMargin:!0,label:"Default interval to load on visits sections:",children:g.jsx(_ae,{allText:"All visits",active:vN(t),onChange:n=>r({defaultInterval:n})})})]})},$1=({children:e})=>$.Children.map(e,(t,r)=>g.jsx("div",{className:"mb-3",children:t},r)),wae=({settings:e,updateSettings:t,defaultShortUrlsListOrdering:r})=>{const n=$.useCallback(s=>t(q0(e,s)),[e,t]),i=$.useCallback(s=>n({realTimeUpdates:{enabled:s}}),[n]),o=$.useCallback(s=>n({realTimeUpdates:{interval:s}}),[n]),a=$.useCallback((s,c)=>n({[s]:c}),[n]);return g.jsxs(u7,{value:e,children:[g.jsxs(FF,{className:"mb-3",children:[g.jsx(Dh,{to:"../general",children:"General"}),g.jsx(Dh,{to:"../short-urls",children:"Short URLs"}),g.jsx(Dh,{to:"../other-items",children:"Other items"})]}),g.jsxs(E0,{children:[g.jsx(Pt,{path:"general",element:g.jsxs($1,{children:[g.jsx(yae,{updateUiSettings:s=>a("ui",s)}),g.jsx(fae,{toggleRealTimeUpdates:i,setRealTimeUpdatesInterval:o})]})}),g.jsx(Pt,{path:"short-urls",element:g.jsxs($1,{children:[g.jsx(hae,{updateShortUrlCreationSettings:s=>a("shortUrlCreation",s)}),g.jsx(mae,{defaultOrdering:r,updateShortUrlsListSettings:s=>a("shortUrlsList",s)})]})}),g.jsx(Pt,{path:"other-items",element:g.jsxs($1,{children:[g.jsx(gae,{updateTagsSettings:s=>a("tags",s)}),g.jsx(xae,{updateVisitsSettings:s=>a("visits",s)})]})}),g.jsx(Pt,{path:"*",element:g.jsx(DE,{replace:!0,to:"../general"})})]})]})},s7={realTimeUpdates:{enabled:!0},shortUrlCreation:{validateUrls:!1},visits:{defaultInterval:"last30Days"},shortUrlsList:{defaultOrdering:{field:"dateCreated",dir:"DESC"}}},l7=$.createContext(s7),{Provider:u7}=l7,LT=()=>$.useContext(l7)??s7;function Nn(e,t){return LT()[e]??t}/*!
* Font Awesome Free 6.7.1 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
* Copyright 2024 Fonticons, Inc.
*/const Oae={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"]},Sae=Oae,Pae={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"]},c7={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"]},IT=6048e5,Cae=864e5,f7=6e4,DT=36e5,Gv=43200,gN=1440,yN=Symbol.for("constructDateFrom");function sn(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&yN in e?e[yN](t):e instanceof Date?new e.constructor(t):new Date(t)}function At(e,t){return sn(t||e,e)}function $T(e,t,r){const n=At(e,r==null?void 0:r.in);return isNaN(t)?sn(e,NaN):(t&&n.setDate(n.getDate()+t),n)}function Eae(e,t,r){const n=At(e,r==null?void 0:r.in);if(isNaN(t))return sn(e,NaN);if(!t)return n;const i=n.getDate(),o=sn(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 Tae(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?Eae(h,i+n*12):h,v=a||o?$T(p,a+o*7):p,b=c+s*60,_=(u+b*60)*1e3;return sn(e,+v+_)}let jae={};function lm(){return jae}function Cu(e,t){var s,c,u,h;const r=lm(),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 cp(e,t){return Cu(e,{...t,weekStartsOn:1})}function d7(e,t){const r=At(e,t==null?void 0:t.in),n=r.getFullYear(),i=sn(r,0);i.setFullYear(n+1,0,4),i.setHours(0,0,0,0);const o=cp(i),a=sn(r,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);const s=cp(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 Lu(e,...t){const r=sn.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 H0(e,t,r){const[n,i]=Lu(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)/Cae)}function Aae(e,t){const r=d7(e,t),n=sn(e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),cp(n)}function h7(e,t){let r,n=t==null?void 0:t.in;return e.forEach(i=>{!n&&typeof i=="object"&&(n=sn.bind(null,i));const o=At(i,n);(!r||r<o||isNaN(+o))&&(r=o)}),sn(n,r||NaN)}function kae(e,t){let r,n=t==null?void 0:t.in;return e.forEach(i=>{!n&&typeof i=="object"&&(n=sn.bind(null,i));const o=At(i,n);(!r||r>o||isNaN(+o))&&(r=o)}),sn(n,r||NaN)}function Pg(e,t){const r=+At(e)-+At(t);return r<0?-1:r>0?1:r}function Rae(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Nae(e){return!(!Rae(e)&&typeof e!="number"||isNaN(+At(e)))}function uy(e,t,r){const[n,i]=Lu(r==null?void 0:r.in,e,t),o=n.getFullYear()-i.getFullYear(),a=n.getMonth()-i.getMonth();return o*12+a}function Mae(e,t,r){const[n,i]=Lu(r==null?void 0:r.in,e,t),o=Cu(n,r),a=Cu(i,r),s=+o-pf(o),c=+a-pf(a);return Math.round((s-c)/IT)}function p7(e,t,r){const[n,i]=Lu(r==null?void 0:r.in,e,t),o=bN(n,i),a=Math.abs(H0(n,i));n.setDate(n.getDate()-o*a);const s=+(bN(n,i)===-o),c=o*(a-s);return c===0?0:c}function bN(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 m7(e){return t=>{const n=(e?Math[e]:Math.trunc)(t);return n===0?0:n}}function Lae(e,t,r){const[n,i]=Lu(r==null?void 0:r.in,e,t),o=(+n-+i)/DT;return m7(r==null?void 0:r.roundingMethod)(o)}function Iae(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 Dae(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 $ae(e,t){const r=At(e,t==null?void 0:t.in);return+mf(r,t)==+Dae(r,t)}function Fae(e,t,r){const[n,i,o]=Lu(r==null?void 0:r.in,e,e,t),a=Pg(i,o),s=Math.abs(uy(i,o));if(s<1)return 0;i.getMonth()===1&&i.getDate()>27&&i.setDate(30),i.setMonth(i.getMonth()-a*s);let c=Pg(i,o)===-a;$ae(n)&&s===1&&Pg(n,o)===1&&(c=!1);const u=a*(s-+c);return u===0?0:u}function Bae(e,t,r){const n=Iae(e,t)/1e3;return m7(r==null?void 0:r.roundingMethod)(n)}function Uae(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 zae(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 Vae(e,t){return zae(e,{...t,weekStartsOn:1})}const Wae={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"}},qae=(e,t,r)=>{let n;const i=Wae[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 F1(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const Hae={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Gae={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Kae={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Yae={date:F1({formats:Hae,defaultWidth:"full"}),time:F1({formats:Gae,defaultWidth:"full"}),dateTime:F1({formats:Kae,defaultWidth:"full"})},Zae={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Xae=(e,t,r,n)=>Zae[e];function lh(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 Qae={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Jae={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ese={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"]},tse={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"]},rse={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"}},nse={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"}},ise=(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"},ose={ordinalNumber:ise,era:lh({values:Qae,defaultWidth:"wide"}),quarter:lh({values:Jae,defaultWidth:"wide",argumentCallback:e=>e-1}),month:lh({values:ese,defaultWidth:"wide"}),day:lh({values:tse,defaultWidth:"wide"}),dayPeriod:lh({values:rse,defaultWidth:"wide",formattingValues:nse,defaultFormattingWidth:"wide"})};function uh(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)?sse(s,p=>p.test(a)):ase(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 ase(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function sse(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function lse(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 use=/^(\d+)(th|st|nd|rd)?/i,cse=/\d+/i,fse={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},dse={any:[/^b/i,/^(a|c)/i]},hse={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},pse={any:[/1/i,/2/i,/3/i,/4/i]},mse={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},vse={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]},gse={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},yse={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]},bse={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},_se={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}},xse={ordinalNumber:lse({matchPattern:use,parsePattern:cse,valueCallback:e=>parseInt(e,10)}),era:uh({matchPatterns:fse,defaultMatchWidth:"wide",parsePatterns:dse,defaultParseWidth:"any"}),quarter:uh({matchPatterns:hse,defaultMatchWidth:"wide",parsePatterns:pse,defaultParseWidth:"any",valueCallback:e=>e+1}),month:uh({matchPatterns:mse,defaultMatchWidth:"wide",parsePatterns:vse,defaultParseWidth:"any"}),day:uh({matchPatterns:gse,defaultMatchWidth:"wide",parsePatterns:yse,defaultParseWidth:"any"}),dayPeriod:uh({matchPatterns:bse,defaultMatchWidth:"any",parsePatterns:_se,defaultParseWidth:"any"})},v7={code:"en-US",formatDistance:qae,formatLong:Yae,formatRelative:Xae,localize:ose,match:xse,options:{weekStartsOn:0,firstWeekContainsDate:1}};function wse(e,t){const r=At(e,t==null?void 0:t.in);return H0(r,Uae(r))+1}function Ose(e,t){const r=At(e,t==null?void 0:t.in),n=+cp(r)-+Aae(r);return Math.round(n/IT)+1}function g7(e,t){var h,p,v,b;const r=At(e,t==null?void 0:t.in),n=r.getFullYear(),i=lm(),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=sn((t==null?void 0:t.in)||e,0);a.setFullYear(n+1,0,o),a.setHours(0,0,0,0);const s=Cu(a,t),c=sn((t==null?void 0:t.in)||e,0);c.setFullYear(n,0,o),c.setHours(0,0,0,0);const u=Cu(c,t);return+r>=+s?n+1:+r>=+u?n:n-1}function Sse(e,t){var s,c,u,h;const r=lm(),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=g7(e,t),o=sn((t==null?void 0:t.in)||e,0);return o.setFullYear(i,0,n),o.setHours(0,0,0,0),Cu(o,t)}function Pse(e,t){const r=At(e,t==null?void 0:t.in),n=+Cu(r,t)-+Sse(r,t);return Math.round(n/IT)+1}function jt(e,t){const r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}const Us={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"},_N={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 Us.y(e,t)},Y:function(e,t,r,n){const i=g7(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=d7(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 Us.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=Pse(e,n);return t==="wo"?r.ordinalNumber(i,{unit:"week"}):jt(i,t.length)},I:function(e,t,r){const n=Ose(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"}):Us.d(e,t)},D:function(e,t,r){const n=wse(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 Us.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):Us.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"}):Us.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):Us.s(e,t)},S:function(e,t){return Us.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return wN(n);case"XXXX":case"XX":return ru(n);case"XXXXX":case"XXX":default:return ru(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return wN(n);case"xxxx":case"xx":return ru(n);case"xxxxx":case"xxx":default:return ru(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+xN(n,":");case"OOOO":default:return"GMT"+ru(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+xN(n,":");case"zzzz":default:return"GMT"+ru(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 xN(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 wN(e,t){return e%60===0?(e>0?"-":"+")+jt(Math.abs(e)/60,2):ru(e,t)}function ru(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 ON=(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"})}},y7=(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"})}},Cse=(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],i=r[2];if(!i)return ON(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}}",ON(n,t)).replace("{{time}}",y7(i,t))},Ese={p:y7,P:Cse},Tse=/^D+$/,jse=/^Y+$/,Ase=["D","DD","YY","YYYY"];function kse(e){return Tse.test(e)}function Rse(e){return jse.test(e)}function Nse(e,t,r){const n=Mse(e,t,r);if(console.warn(n),Ase.includes(e))throw new RangeError(n)}function Mse(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 Lse=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ise=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Dse=/^'([^]*?)'?$/,$se=/''/g,Fse=/[a-zA-Z]/;function cy(e,t,r){var h,p,v,b;const n=lm(),i=n.locale??v7,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(!Nae(s))throw new RangeError("Invalid time value");let c=t.match(Ise).map(x=>{const _=x[0];if(_==="p"||_==="P"){const w=Ese[_];return w(x,i.formatLong)}return x}).join("").match(Lse).map(x=>{if(x==="''")return{isToken:!1,value:"'"};const _=x[0];if(_==="'")return{isToken:!1,value:Bse(x)};if(_N[_])return{isToken:!0,value:x};if(_.match(Fse))throw new RangeError("Format string contains an unescaped latin alphabet character `"+_+"`");return{isToken:!1,value:x}});i.localize.preprocessor&&(c=i.localize.preprocessor(s,c));const u={firstWeekContainsDate:o,weekStartsOn:a,locale:i};return c.map(x=>{if(!x.isToken)return x.value;const _=x.value;(Rse(_)||kse(_))&&Nse(_,t,String(e));const w=_N[_[0]];return w(s,_,i.localize,u)}).join("")}function Bse(e){const t=e.match(Dse);return t?t[1].replace($se,"'"):e}function Use(e,t,r){const n=lm(),i=(r==null?void 0:r.locale)??n.locale??v7,o=2520,a=Pg(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]=Lu(r==null?void 0:r.in,...a>0?[t,e]:[e,t]),h=Bae(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<gN){const x=Math.round(v/60);return i.formatDistance("aboutXHours",x,s)}else{if(v<o)return i.formatDistance("xDays",1,s);if(v<Gv){const x=Math.round(v/gN);return i.formatDistance("xDays",x,s)}else if(v<Gv*2)return b=Math.round(v/Gv),i.formatDistance("aboutXMonths",b,s)}if(b=Fae(u,c),b<12){const x=Math.round(v/Gv);return i.formatDistance("xMonths",x,s)}else{const x=b%12,_=Math.trunc(b/12);return x<3?i.formatDistance("aboutXYears",_,s):x<9?i.formatDistance("overXYears",_,s):i.formatDistance("almostXYears",_+1,s)}}function zse(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),x=jt(Math.trunc(b/60),2),_=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 Vse(e){return Math.trunc(+At(e)/1e3)}function Wse(e,t){return+At(e)>+At(t)}function fy(e,t){return+At(e)<+At(t)}function GP(e,t){return+At(e)==+At(t)}function qse(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 dy(e,t,r){return $T(e,-t,r)}function sl(e,t){const r=()=>sn(t==null?void 0:t.in,NaN),i=Yse(e);let o;if(i.date){const u=Zse(i.date,2);o=Xse(u.restDateString,u.year)}if(!o||isNaN(+o))return r();const a=+o;let s=0,c;if(i.time&&(s=Qse(i.time),isNaN(s)))return r();if(i.timezone){if(c=Jse(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 Kv={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Hse=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Gse=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Kse=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Yse(e){const t={},r=e.split(Kv.dateTimeDelimiter);let n;if(r.length>2)return t;if(/:/.test(r[0])?n=r[0]:(t.date=r[0],n=r[1],Kv.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Kv.timeZoneDelimiter)[0],n=e.substr(t.date.length,e.length))),n){const i=Kv.timezone.exec(n);i?(t.time=n.replace(i[1],""),t.timezone=i[1]):t.time=n}return t}function Zse(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 Xse(e,t){if(t===null)return new Date(NaN);const r=e.match(Hse);if(!r)return new Date(NaN);const n=!!r[4],i=ch(r[1]),o=ch(r[2])-1,a=ch(r[3]),s=ch(r[4]),c=ch(r[5])-1;if(n)return ile(t,s,c)?ele(t,s,c):new Date(NaN);{const u=new Date(0);return!rle(t,o,a)||!nle(t,i)?new Date(NaN):(u.setUTCFullYear(t,o,Math.max(i,a)),u)}}function ch(e){return e?parseInt(e):1}function Qse(e){const t=e.match(Gse);if(!t)return NaN;const r=B1(t[1]),n=B1(t[2]),i=B1(t[3]);return ole(r,n,i)?r*DT+n*f7+i*1e3:NaN}function B1(e){return e&&parseFloat(e.replace(",","."))||0}function Jse(e){if(e==="Z")return 0;const t=e.match(Kse);if(!t)return 0;const r=t[1]==="+"?-1:1,n=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return ale(n,i)?r*(n*DT+i*f7):NaN}function ele(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 tle=[31,null,31,30,31,30,31,31,30,31,30,31];function b7(e){return e%400===0||e%4===0&&e%100!==0}function rle(e,t,r){return t>=0&&t<=11&&r>=1&&r<=(tle[t]||(b7(e)?29:28))}function nle(e,t){return t>=1&&t<=(b7(e)?366:365)}function ile(e,t,r){return t>=1&&t<=53&&r>=0&&r<=6}function ole(e,t,r){return e===24?t===0&&r===0:r>=0&&r<60&&t>=0&&t<60&&e>=0&&e<25}function ale(e,t){return t>=0&&t<=59}/*!
* Font Awesome Free 6.7.1 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
* Copyright 2024 Fonticons, Inc.
*/const sle={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"]},lle={prefix:"fab",iconName:"android",icon:[576,512,[],"f17b","M420.55,301.93a24,24,0,1,1,24-24,24,24,0,0,1-24,24m-265.1,0a24,24,0,1,1,24-24,24,24,0,0,1-24,24m273.7-144.48,47.94-83a10,10,0,1,0-17.27-10h0l-48.54,84.07a301.25,301.25,0,0,0-246.56,0L116.18,64.45a10,10,0,1,0-17.27,10h0l47.94,83C64.53,202.22,8.24,285.55,0,384H576c-8.24-98.45-64.54-181.78-146.85-226.55"]},nu={Enter:"Enter",Escape:"Escape",Tab:"Tab",Backspace:"Backspace",UpArrow:"ArrowUp",UpArrowCompat:"Up",DownArrow:"ArrowDown",DownArrowCompat:"Down",PageDown:"PageDown",PageUp:"PageUp"},FT=Symbol("Create new tag"),_7=Symbol("No options"),Vc=()=>{},Jr=Z.createContext(void 0);function SN(e,t){return e===t?[]:e.filter(r=>!t.includes(r))}function ule(e){return e.selectionStart===0&&e.selectionEnd===0}function cle(e){const t=e.value.length;return e.selectionStart===t&&e.selectionEnd===t}function G0(e){return`${e}-label`}function fle(e){return`${e}-combobox`}function dle(e){return`${e}-input`}function x7(e){return`${e}-listbox`}function w7(e,t){return`${e}-option-${ble(t)}`}function hle(e,t){if((e==null?void 0:e.value)===FT&&e.disabled===!1)return{value:t,label:t}}function ple(e){const t=hle(e.activeOption,e.value)||e.activeOption||Ole(e.value,e.options);return t&&!t.disabled?t:void 0}function mle(e,t,r){const n=t-1;return e>n?r:e<r?n:e}const vle=/%value%/;function hy(e,t){return e.replace(vle,t)}function gle(e,t){const r=S7(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 yle=/\s+/g;function KP(e){return`${String(e.value)}-${e.label}`}function ble(e){return KP(e).replace(yle,"_")}function YP(e,t){return t.findIndex(({value:r})=>r===e.value)}const _le=/[-\\^$*+?.()|[\]{}]/g;function O7(e){return e.replace(_le,"\\$&")}function S7(e){return new RegExp(O7(e),"i")}function xle(e){return new RegExp(`^${O7(e)}$`,"i")}function wle(e,t){if(e){const r=S7(e);return t.filter(n=>r.test(n.label))}else return[].concat(t)}function Ole(e,t){const r=xle(e);return t.find(n=>r.test(n.label))||null}const Sle={autoComplete:"off",autoCorrect:"off","data-form-type":"other",spellCheck:!1};function Ple({allowBackspace:e,ariaDescribedBy:t,ariaErrorMessage:r,delimiterKeys:n}){const{id:i,comboBoxRef:o,inputRef:a,isDisabled:s,isInvalid:c,managerRef:u}=$.useContext(Jr),h=$.useMemo(()=>{const x=B=>{const W=B.currentTarget.value;u.current.updateInputValue(W),document.activeElement===a.current&&u.current.listBoxExpand(W)},_=()=>{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()},S=B=>{const{activeIndex:W,isExpanded:q}=u.current.state;q?(B.preventDefault(),u.current.updateActiveIndex(W+1)):(cle(B.currentTarget)||B.altKey)&&(B.preventDefault(),u.current.listBoxExpand())},E=B=>{const{activeIndex:W,isExpanded:q}=u.current.state;q?(B.preventDefault(),u.current.updateActiveIndex(W-1)):ule(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:x,onClick:O,onFocus:_,onKeyDown:B=>{if(B.key===nu.UpArrow)return E(B);if(B.key===nu.DownArrow)return S(B);if(B.key===nu.PageUp)return A(B);if(B.key===nu.PageDown)return T(B);if(B.key===nu.Escape)return j();if(B.key===nu.Backspace)return N();if(n.includes(B.key))return F(B)}}},[e,o,n,a,u]),{activeOption:p,isExpanded:v,value:b}=u.current.state;return{...Sle,"aria-autocomplete":"list","aria-activedescendant":p?w7(i,p):void 0,"aria-controls":x7(i),"aria-describedby":t||void 0,"aria-disabled":s,"aria-errormessage":c&&r||void 0,"aria-invalid":c,"aria-labelledby":G0(i),"aria-expanded":v,id:dle(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 Cle={position:"absolute",width:0,height:0,visibility:"hidden",overflow:"scroll",whiteSpace:"pre"},Ele=["font-family","font-size","font-style","font-weight","letter-spacing","text-transform"];function Tle({allowResize:e=!0,text:t}){const r=$.useRef(null),{inputRef:n}=$.useContext(Jr),[i,o]=$.useState(null);return $.useLayoutEffect(()=>{if(e&&n.current&&r.current&&window.getComputedStyle){const a=window.getComputedStyle(n.current);Ele.forEach(s=>{const c=a.getPropertyValue(s);r.current.style.setProperty(s,c)})}},[e,n,r]),$.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:Cle}}}function jle(){const{id:e,inputRef:t,listBoxRef:r,managerRef:n}=$.useContext(Jr),i=n.current.state.activeIndex===-1,o=$.useCallback(a=>{var s;a.target!==t.current&&((s=t.current)==null||s.focus({preventScroll:!0}))},[t]);return $.useEffect(()=>{var a;i&&((a=r.current)==null||a.scrollTo({top:0}))},[r,i]),{"aria-labelledby":G0(e),id:x7(e),onFocus:o,ref:r,role:"listbox",tabIndex:-1}}function Ale({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:x,suggestions:_,suggestionsTransform:w}){const O=$.useRef(),[S,E]=$.useState(null),[T,A]=$.useState(!1),[j,N]=$.useState(""),F=$.useMemo(()=>{const ne=w(j,_);return j&&(t&&ne[n==="first"?"unshift":"push"]({disabled:b?!b(j):!1,label:i,value:FT}),ne.length===0&&ne.push({disabled:!0,label:o,value:_7})),ne},[t,n,i,o,b,_,w,j]),V=S?YP(S,F):-1,B=e?Math.max(V,0):V,W=F[B],q={activeIndex:B,activeOption:W,isExpanded:T,options:F,selected:x,value:j},J={tagsAdded:O.current?SN(x,O.current.state.selected):[],tagsDeleted:O.current?SN(O.current.state.selected,x):[]},Q={listBoxCollapse(ne){T&&(!p||p(ne??q.value))&&(A(!1),E(null),c==null||c())},listBoxExpand(ne){T||(!v||v(ne??q.value))&&(A(!0),E(F[B]),u==null||u())},updateActiveIndex(ne){const ae=mle(ne,F.length,e?0:-1);E(F[ae])},updateInputValue(ne){j!==ne&&(N(ne),h==null||h(ne))},selectTag(ne){if(ne??(ne=ple(q)),ne){const ae=YP(ne,q.selected);ae>-1?s(ae):a(ne),r&&this.listBoxCollapse(),this.updateInputValue("")}}};return O.current={...Q,flags:J,state:q},O}function kle(e){const{id:t,inputRef:r,listBoxRef:n,managerRef:i}=$.useContext(Jr),o=$.useRef(null),a=i.current.state.options[e],s=e===i.current.state.activeIndex,c=a.disabled??!1,u=YP(a,i.current.state.selected)>-1,h=$.useCallback(()=>{var v;i.current.selectTag(),(v=r.current)==null||v.focus()},[r,i]),p=$.useCallback(()=>{e!==i.current.state.activeIndex&&i.current.updateActiveIndex(e)},[e,i]);return Mle(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:w7(t,a),onClick:h,onMouseDown:p,ref:o,role:"option",tabIndex:-1}}}function Rle({inputRef:e,managerRef:t}){return $.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 Nle({onBlur:e,onFocus:t}){const[r,n]=$.useState(!1),{id:i,inputRef:o,rootRef:a}=$.useContext(Jr),s=$.useMemo(()=>({"aria-describedby":G0(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 Mle(e,t,r){$.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 Lle(e,t){const{isDisabled:r,managerRef:n}=$.useContext(Jr),i=n.current.state.selected[e],o=$.useCallback(()=>n.current.selectTag(i),[n,i]);return{tag:i,tagProps:{"aria-disabled":r,title:hy(t,i.label),onClick:r?Vc:o}}}function Ile({label:e}){var t;const{rootRef:r,managerRef:n}=$.useContext(Jr),i=$.useRef(),o=n.current.flags.tagsDeleted[0],a=(t=i.current)==null?void 0:t.contains(document.activeElement);return $.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 Dle={position:"absolute",width:1,height:1,left:-9999,overflow:"hidden",clip:"rect(0 0 0 0)"};function $le({ariaAddedText:e,ariaDeletedText:t}){const{managerRef:r}=$.useContext(Jr),n=$.useRef([]);return r.current.flags.tagsAdded.forEach(i=>{n.current.push(hy(e,i.label))}),r.current.flags.tagsDeleted.forEach(i=>{n.current.push(hy(t,i.label))}),Z.createElement("div",{"aria-live":"polite","aria-relevant":"additions",role:"status",style:Dle},n.current.join(`
`))}function Fle({children:e}){const{classNames:t,comboBoxRef:r,id:n}=$.useContext(Jr);return Z.createElement("div",{className:t.comboBox,id:fle(n),ref:r},e)}const Ble=({classNames:e,text:t})=>Z.createElement("mark",{className:e.highlight},t);function Ule({option:e,query:t,render:r=Ble}){const{classNames:n}=$.useContext(Jr);if(e.value===FT||e.value===_7)return Z.createElement(Z.Fragment,null,hy(e.label,t));if(t){const i=gle(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 zle=Z.memo(Ule),Vle=({classNames:e,inputWidth:t,...r})=>Z.createElement("input",{className:e.input,style:{width:t},...r});function Wle({allowBackspace:e=!0,allowResize:t=!0,ariaDescribedBy:r,ariaErrorMessage:n,delimiterKeys:i,placeholderText:o,render:a=Vle}){const{classNames:s}=$.useContext(Jr),{value:c,...u}=Ple({allowBackspace:e,ariaDescribedBy:r,ariaErrorMessage:n,delimiterKeys:i}),h=c.length<o.length?o:c,{width:p,sizerProps:v}=Tle({allowResize:t,text:h});return Z.createElement(Z.Fragment,null,a({classNames:s,inputWidth:p,placeholder:o,value:c,...u}),t?Z.createElement("div",{...v},h):null)}const qle=({children:e,classNames:t,id:r})=>Z.createElement("div",{className:t.label,id:r},e);function Hle({children:e,render:t=qle}){const{classNames:r,id:n}=$.useContext(Jr);return t({children:e,classNames:r,id:G0(n)})}const Gle=({children:e,classNames:t,...r})=>Z.createElement("div",{className:t.listBox,...r},e);function Kle({children:e,render:t=Gle}){const{classNames:r,managerRef:n}=$.useContext(Jr),i=jle();return!n.current.state.isExpanded||Z.Children.count(e)===0?null:t({children:e,classNames:r,...i})}const Yle=({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 Zle({children:e,index:t,render:r=Yle}){const{classNames:n}=$.useContext(Jr),{option:i,optionProps:o}=kle(t);return r({classNames:n,children:e,option:i,...o})}const Xle=({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 Qle({children:e,onBlur:t,onFocus:r,render:n=Xle}){const{classNames:i,isDisabled:o,isInvalid:a}=$.useContext(Jr),{isActive:s,rootProps:c}=Nle({onBlur:t,onFocus:r});return n({children:e,classNames:i,isActive:s,isDisabled:o,isInvalid:a,...c})}const Jle=({classNames:e,tag:t,...r})=>Z.createElement("button",{type:"button",className:e.tag,...r},Z.createElement("span",{className:e.tagName},t.label));function eue({render:e=Jle,index:t,title:r}){const{classNames:n}=$.useContext(Jr),{tag:i,tagProps:o}=Lle(t,r);return e({classNames:n,tag:i,...o})}const tue=({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 rue({children:e,label:t,render:r=tue}){const{classNames:n}=$.useContext(Jr),i=Ile({label:t});return r({classNames:n,children:e,...i})}const nue={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"},iue=[nu.Enter];function oue({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=nue,collapseOnSelect:u=!1,deleteButtonText:h="Remove %value% from the list",delimiterKeys:p=iue,id:v="react-tags",isDisabled:b=!1,isInvalid:x=!1,labelText:_="Select tags",newOptionPosition:w="last",newOptionText:O="Add %value%",noOptionsText:S="No options found for %value%",onAdd:E,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=wle,tagListLabelText:ce="Selected tags"},de){const be=$.useRef(null),M=$.useRef(null),D=$.useRef(null),Y=$.useRef(null),ue=Ale({activateFirstOption:e,allowNew:r,collapseOnSelect:u,newOptionPosition:w,newOptionText:O,noOptionsText:S,onAdd:E,onDelete:j,onCollapse:A,onExpand:N,onInput:V,onShouldCollapse:B,onShouldExpand:W,onValidate:q,selected:re,suggestions:X,suggestionsTransform:le}),ie=Rle({inputRef:M,managerRef:ue});return de&&(typeof de=="function"?de(ie):de.current=ie),Z.createElement(Jr.Provider,{value:{classNames:c,comboBoxRef:be,id:v,inputRef:M,isDisabled:b,isInvalid:x,listBoxRef:D,managerRef:ue,rootRef:Y}},Z.createElement(Qle,{onBlur:T,onFocus:F,render:K},Z.createElement(Hle,{render:ae},_),Z.createElement(rue,{render:z,label:ce},ue.current.state.selected.map((he,Se)=>Z.createElement(eue,{key:KP(he),index:Se,render:G,title:h}))),Z.createElement(Fle,null,Z.createElement(Wle,{allowBackspace:t,allowResize:n,ariaDescribedBy:o,ariaErrorMessage:a,delimiterKeys:p,placeholderText:J,render:ne}),Z.createElement(Kle,{render:se},ue.current.state.options.map((he,Se)=>Z.createElement(Zle,{key:KP(he),index:Se,render:oe},Z.createElement(zle,{option:he,query:ue.current.state.value,render:Q}))))),Z.createElement($le,{ariaAddedText:i,ariaDeletedText:s})))}const aue=Z.forwardRef(oue);function U1(e){return e==null?"":`${e}`}function sue(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 BT(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 lue(e={stringFormatter:BT()}){return t=>e.stringFormatter(t.toString().slice(7,-1))}function uue(e={stringFormatter:BT()}){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 cue=RegExp(`[^.[\\]]+|\\[(?:([^"'][^[]*)|(["'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))`,"g");function fue(e){var t,r,n;const i=[];let o;for(;o=cue.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 PN(e,t,r){if(t in e){const o=e[t];return o===void 0?r:o}const n=Array.isArray(t)?t:fue(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 P7(e,t){try{return Array.isArray(t)?e.push(...t):e.push(t),e}catch{return e.concat(t)}}function ZP(e,t){let r=!0;return e.reduce((n,i)=>(i==null&&(i=""),r?(r=!1,`${i}`):`${n}${t}${i}`),"")}var CN;(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"})(CN||(CN={}));class due{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||BT(),i=uue({stringFormatter:n}),o={header:n,undefined:U1,boolean:U1,number:sue(),bigint:U1,string:n,symbol:lue({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=>PN(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=>PN(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 ZP(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(P7,[]),[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 ZP(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 C7 extends due{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(P7,[])}processData(t){return ZP(t.map(r=>this.processRow(r)).filter(r=>r),this.opts.eol)}}var Yr;(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"})(Yr||(Yr={}));Yr.QUOTATION_MARK+"",Yr.QUOTATION_MARK,Yr.REVERSE_SOLIDUS+"",Yr.REVERSE_SOLIDUS,Yr.SOLIDUS+"",Yr.SOLIDUS,Yr.LATIN_SMALL_LETTER_B+"",Yr.BACKSPACE,Yr.LATIN_SMALL_LETTER_F+"",Yr.FORM_FEED,Yr.LATIN_SMALL_LETTER_N+"",Yr.NEWLINE,Yr.LATIN_SMALL_LETTER_R+"",Yr.CARRIAGE_RETURN,Yr.LATIN_SMALL_LETTER_T+"",Yr.TAB;var EN;(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"})(EN||(EN={}));var TN;(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"})(TN||(TN={}));var jN;(function(e){e[e.OBJECT=0]="OBJECT",e[e.ARRAY=1]="ARRAY"})(jN||(jN={}));var AN;(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"})(AN||(AN={}));var z1,kN;function Xn(){if(kN)return z1;kN=1;var e=Array.isArray;return z1=e,z1}var V1,RN;function E7(){if(RN)return V1;RN=1;var e=typeof Fv=="object"&&Fv&&Fv.Object===Object&&Fv;return V1=e,V1}var W1,NN;function ca(){if(NN)return W1;NN=1;var e=E7(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return W1=r,W1}var q1,MN;function um(){if(MN)return q1;MN=1;var e=ca(),t=e.Symbol;return q1=t,q1}var H1,LN;function hue(){if(LN)return H1;LN=1;var e=um(),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 H1=o,H1}var G1,IN;function pue(){if(IN)return G1;IN=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return G1=r,G1}var K1,DN;function rs(){if(DN)return K1;DN=1;var e=um(),t=hue(),r=pue(),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 K1=a,K1}var Y1,$N;function ns(){if($N)return Y1;$N=1;function e(t){return t!=null&&typeof t=="object"}return Y1=e,Y1}var Z1,FN;function Qf(){if(FN)return Z1;FN=1;var e=rs(),t=ns(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return Z1=n,Z1}var X1,BN;function UT(){if(BN)return X1;BN=1;var e=Xn(),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 X1=i,X1}var Q1,UN;function vl(){if(UN)return Q1;UN=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return Q1=e,Q1}var J1,zN;function zT(){if(zN)return J1;zN=1;var e=rs(),t=vl(),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 J1=a,J1}var ex,VN;function mue(){if(VN)return ex;VN=1;var e=ca(),t=e["__core-js_shared__"];return ex=t,ex}var tx,WN;function vue(){if(WN)return tx;WN=1;var e=mue(),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 tx=r,tx}var rx,qN;function T7(){if(qN)return rx;qN=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 rx=r,rx}var nx,HN;function gue(){if(HN)return nx;HN=1;var e=zT(),t=vue(),r=vl(),n=T7(),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 nx=p,nx}var ix,GN;function yue(){if(GN)return ix;GN=1;function e(t,r){return t==null?void 0:t[r]}return ix=e,ix}var ox,KN;function Iu(){if(KN)return ox;KN=1;var e=gue(),t=yue();function r(n,i){var o=t(n,i);return e(o)?o:void 0}return ox=r,ox}var ax,YN;function K0(){if(YN)return ax;YN=1;var e=Iu(),t=e(Object,"create");return ax=t,ax}var sx,ZN;function bue(){if(ZN)return sx;ZN=1;var e=K0();function t(){this.__data__=e?e(null):{},this.size=0}return sx=t,sx}var lx,XN;function _ue(){if(XN)return lx;XN=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return lx=e,lx}var ux,QN;function xue(){if(QN)return ux;QN=1;var e=K0(),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 ux=i,ux}var cx,JN;function wue(){if(JN)return cx;JN=1;var e=K0(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var o=this.__data__;return e?o[i]!==void 0:r.call(o,i)}return cx=n,cx}var fx,eM;function Oue(){if(eM)return fx;eM=1;var e=K0(),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 fx=r,fx}var dx,tM;function Sue(){if(tM)return dx;tM=1;var e=bue(),t=_ue(),r=xue(),n=wue(),i=Oue();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,dx=o,dx}var hx,rM;function Pue(){if(rM)return hx;rM=1;function e(){this.__data__=[],this.size=0}return hx=e,hx}var px,nM;function VT(){if(nM)return px;nM=1;function e(t,r){return t===r||t!==t&&r!==r}return px=e,px}var mx,iM;function Y0(){if(iM)return mx;iM=1;var e=VT();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return mx=t,mx}var vx,oM;function Cue(){if(oM)return vx;oM=1;var e=Y0(),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 vx=n,vx}var gx,aM;function Eue(){if(aM)return gx;aM=1;var e=Y0();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return gx=t,gx}var yx,sM;function Tue(){if(sM)return yx;sM=1;var e=Y0();function t(r){return e(this.__data__,r)>-1}return yx=t,yx}var bx,lM;function jue(){if(lM)return bx;lM=1;var e=Y0();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 bx=t,bx}var _x,uM;function Z0(){if(uM)return _x;uM=1;var e=Pue(),t=Cue(),r=Eue(),n=Tue(),i=jue();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,_x=o,_x}var xx,cM;function WT(){if(cM)return xx;cM=1;var e=Iu(),t=ca(),r=e(t,"Map");return xx=r,xx}var wx,fM;function Aue(){if(fM)return wx;fM=1;var e=Sue(),t=Z0(),r=WT();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return wx=n,wx}var Ox,dM;function kue(){if(dM)return Ox;dM=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return Ox=e,Ox}var Sx,hM;function X0(){if(hM)return Sx;hM=1;var e=kue();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return Sx=t,Sx}var Px,pM;function Rue(){if(pM)return Px;pM=1;var e=X0();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return Px=t,Px}var Cx,mM;function Nue(){if(mM)return Cx;mM=1;var e=X0();function t(r){return e(this,r).get(r)}return Cx=t,Cx}var Ex,vM;function Mue(){if(vM)return Ex;vM=1;var e=X0();function t(r){return e(this,r).has(r)}return Ex=t,Ex}var Tx,gM;function Lue(){if(gM)return Tx;gM=1;var e=X0();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 Tx=t,Tx}var jx,yM;function qT(){if(yM)return jx;yM=1;var e=Aue(),t=Rue(),r=Nue(),n=Mue(),i=Lue();function o(a){var s=-1,c=a==null?0:a.length;for(this.clear();++s<c;){var u=a[s];this.set(u[0],u[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=r,o.prototype.has=n,o.prototype.set=i,jx=o,jx}var Ax,bM;function j7(){if(bM)return Ax;bM=1;var e=qT(),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,Ax=r,Ax}var kx,_M;function Iue(){if(_M)return kx;_M=1;var e=j7(),t=500;function r(n){var i=e(n,function(a){return o.size===t&&o.clear(),a}),o=i.cache;return i}return kx=r,kx}var Rx,xM;function Due(){if(xM)return Rx;xM=1;var e=Iue(),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 Rx=n,Rx}var Nx,wM;function HT(){if(wM)return Nx;wM=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 Nx=e,Nx}var Mx,OM;function $ue(){if(OM)return Mx;OM=1;var e=um(),t=HT(),r=Xn(),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 Mx=s,Mx}var Lx,SM;function A7(){if(SM)return Lx;SM=1;var e=$ue();function t(r){return r==null?"":e(r)}return Lx=t,Lx}var Ix,PM;function k7(){if(PM)return Ix;PM=1;var e=Xn(),t=UT(),r=Due(),n=A7();function i(o,a){return e(o)?o:t(o,a)?[o]:r(n(o))}return Ix=i,Ix}var Dx,CM;function Q0(){if(CM)return Dx;CM=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 Dx=r,Dx}var $x,EM;function GT(){if(EM)return $x;EM=1;var e=k7(),t=Q0();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 $x=r,$x}var Fx,TM;function R7(){if(TM)return Fx;TM=1;var e=GT();function t(r,n,i){var o=r==null?void 0:e(r,n);return o===void 0?i:o}return Fx=t,Fx}var Fue=R7();const vi=Nt(Fue);var Bx,jM;function Bue(){if(jM)return Bx;jM=1;function e(t){return t==null}return Bx=e,Bx}var Uue=Bue();const dt=Nt(Uue);var Ux,AM;function zue(){if(AM)return Ux;AM=1;var e=rs(),t=Xn(),r=ns(),n="[object String]";function i(o){return typeof o=="string"||!t(o)&&r(o)&&e(o)==n}return Ux=i,Ux}var Vue=zue();const cm=Nt(Vue);var Wue=zT();const ft=Nt(Wue);var que=vl();const Jf=Nt(que);var zx={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 kM;function Hue(){if(kM)return $t;kM=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"),x;x=Symbol.for("react.module.reference");function _(w){if(typeof w=="object"&&w!==null){var O=w.$$typeof;switch(O){case e:switch(w=w.type,w){case 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 _(w)===a},$t.isContextProvider=function(w){return _(w)===o},$t.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===e},$t.isForwardRef=function(w){return _(w)===c},$t.isFragment=function(w){return _(w)===r},$t.isLazy=function(w){return _(w)===v},$t.isMemo=function(w){return _(w)===p},$t.isPortal=function(w){return _(w)===t},$t.isProfiler=function(w){return _(w)===i},$t.isStrictMode=function(w){return _(w)===n},$t.isSuspense=function(w){return _(w)===u},$t.isSuspenseList=function(w){return _(w)===h},$t.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===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===x||w.getModuleId!==void 0)},$t.typeOf=_,$t}var RM;function Gue(){return RM||(RM=1,zx.exports=Hue()),zx.exports}var Kue=Gue(),Vx,NM;function N7(){if(NM)return Vx;NM=1;var e=rs(),t=ns(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return Vx=n,Vx}var Wx,MM;function Yue(){if(MM)return Wx;MM=1;var e=N7();function t(r){return e(r)&&r!=+r}return Wx=t,Wx}var Zue=Yue();const ed=Nt(Zue);var Xue=N7();const Que=Nt(Xue);var Cn=function(t){return t===0?0:t>0?1:-1},cu=function(t){return cm(t)&&t.indexOf("%")===t.length-1},Ve=function(t){return Que(t)&&!ed(t)},Vr=function(t){return Ve(t)||cm(t)},Jue=0,gl=function(t){var r=++Jue;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)&&!cm(t))return n;var o;if(cu(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},Gs=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},ece=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},xr=function(t,r){return Ve(t)&&Ve(r)?function(n){return t+n*(r-t)}:function(){return r}};function py(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):vi(n,t))===r})}var tce=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 XP(e){"@babel/helpers - typeof";return XP=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},XP(e)}var rce=["viewBox","children"],nce=["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"],LM=["points","pathLength"],qx={svg:rce,polygon:LM,polyline:LM},KT=["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"],my=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if($.isValidElement(t)&&(n=t.props),!Jf(n))return null;var i={};return Object.keys(n).forEach(function(o){KT.includes(o)&&(i[o]=r||function(a){return n[o](n,a)})}),i},ice=function(t,r,n){return function(i){return t(r,n,i),null}},ll=function(t,r,n){if(!Jf(t)||XP(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(o){var a=t[o];KT.includes(o)&&typeof a=="function"&&(i||(i={}),i[o]=ice(a,r,n))}),i},oce=["children"],ace=["children"];function IM(e,t){if(e==null)return{};var r=sce(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 sce(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 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 DM={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"},Ba=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},$M=null,Hx=null,YT=function e(t){if(t===$M&&Array.isArray(Hx))return Hx;var r=[];return $.Children.forEach(t,function(n){dt(n)||(Kue.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),Hx=r,$M=t,r};function kn(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return Ba(i)}):n=[Ba(t)],YT(e).forEach(function(i){var o=vi(i,"type.displayName")||vi(i,"type.name");n.indexOf(o)!==-1&&r.push(i)}),r}function hi(e,t){var r=kn(e,t);return r&&r[0]}var FM=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)},lce=["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"],uce=function(t){return t&&t.type&&cm(t.type)&&lce.indexOf(t.type)>=0},M7=function(t){return t&&QP(t)==="object"&&"clipDot"in t},cce=function(t,r,n,i){var o,a=(o=qx==null?void 0:qx[i])!==null&&o!==void 0?o:[];return!ft(t)&&(i&&a.includes(r)||nce.includes(r))||n&&KT.includes(r)},it=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if($.isValidElement(t)&&(i=t.props),!Jf(i))return null;var o={};return Object.keys(i).forEach(function(a){var s;cce((s=i)===null||s===void 0?void 0:s[a],a,r,n)&&(o[a]=i[a])}),o},JP=function e(t,r){if(t===r)return!0;var n=$.Children.count(t);if(n!==$.Children.count(r))return!1;if(n===0)return!0;if(n===1)return BM(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(!BM(o,a))return!1}return!0},BM=function(t,r){if(dt(t)&&dt(r))return!0;if(!dt(t)&&!dt(r)){var n=t.props||{},i=n.children,o=IM(n,oce),a=r.props||{},s=a.children,c=IM(a,ace);return i&&s?tf(o,c)&&JP(i,s):!i&&!s?tf(o,c):!1}return!1},UM=function(t,r){var n=[],i={};return YT(t).forEach(function(o,a){if(uce(o))n.push(o);else if(o){var s=Ba(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},fce=function(t){var r=t&&t.type;return r&&DM[r]?DM[r]:null},dce=function(t,r){return YT(r).indexOf(t)},hce=["children","width","height","viewBox","className","style","title","desc"];function eC(){return eC=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},eC.apply(this,arguments)}function pce(e,t){if(e==null)return{};var r=mce(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 mce(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 tC(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=pce(e,hce),h=i||{width:r,height:n,x:0,y:0},p=ze("recharts-surface",o);return Z.createElement("svg",eC({},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 vce=["children","className"];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)}function gce(e,t){if(e==null)return{};var r=yce(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 yce(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 Ct=Z.forwardRef(function(e,t){var r=e.children,n=e.className,i=gce(e,vce),o=ze("recharts-layer",n);return Z.createElement("g",rC({className:o},it(i,!0),{ref:t}),r)}),xo=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]},Gx,zM;function bce(){if(zM)return Gx;zM=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 Gx=e,Gx}var Kx,VM;function _ce(){if(VM)return Kx;VM=1;var e=bce();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 Kx=t,Kx}var Yx,WM;function L7(){if(WM)return Yx;WM=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 Yx=c,Yx}var Zx,qM;function xce(){if(qM)return Zx;qM=1;function e(t){return t.split("")}return Zx=e,Zx}var Xx,HM;function wce(){if(HM)return Xx;HM=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",x=u+"?",_="["+o+"]?",w="(?:"+b+"(?:"+[h,p,v].join("|")+")"+_+x+")*",O=_+x+w,S="(?:"+[h+s+"?",s,p,v,a].join("|")+")",E=RegExp(c+"(?="+c+")|"+S+O,"g");function T(A){return A.match(E)||[]}return Xx=T,Xx}var Qx,GM;function Oce(){if(GM)return Qx;GM=1;var e=xce(),t=L7(),r=wce();function n(i){return t(i)?r(i):e(i)}return Qx=n,Qx}var Jx,KM;function Sce(){if(KM)return Jx;KM=1;var e=_ce(),t=L7(),r=Oce(),n=A7();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 Jx=i,Jx}var ew,YM;function Pce(){if(YM)return ew;YM=1;var e=Sce(),t=e("toUpperCase");return ew=t,ew}var Cce=Pce();const J0=Nt(Cce);function Qt(e){return function(){return e}}const I7=Math.cos,vy=Math.sin,Ao=Math.sqrt,gy=Math.PI,eb=2*gy,nC=Math.PI,iC=2*nC,iu=1e-6,Ece=iC-iu;function D7(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function Tce(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return D7;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 jce{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?D7:Tce(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>iu)if(!(Math.abs(p*c-u*h)>iu)||!o)this._append`L${this._x1=t},${this._y1=r}`;else{let b=n-a,x=i-s,_=c*c+u*u,w=b*b+x*x,O=Math.sqrt(_),S=Math.sqrt(v),E=o*Math.tan((nC-Math.acos((_+v-w)/(2*O*S)))/2),T=E/S,A=E/O;Math.abs(T-1)>iu&&this._append`L${t+T*h},${r+T*p}`,this._append`A${o},${o},0,0,${+(p*b>h*x)},${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)>iu||Math.abs(this._y1-h)>iu)&&this._append`L${u},${h}`,n&&(v<0&&(v=v%iC+iC),v>Ece?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>iu&&this._append`A${n},${n},0,${+(v>=nC)},${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 ZT(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 jce(t)}function XT(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function $7(e){this._context=e}$7.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 tb(e){return new $7(e)}function F7(e){return e[0]}function B7(e){return e[1]}function U7(e,t){var r=Qt(!0),n=null,i=tb,o=null,a=ZT(s);e=typeof e=="function"?e:e===void 0?F7:Qt(e),t=typeof t=="function"?t:t===void 0?B7:Qt(t);function s(c){var u,h=(c=XT(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:Qt(+c),s):e},s.y=function(c){return arguments.length?(t=typeof c=="function"?c:Qt(+c),s):t},s.defined=function(c){return arguments.length?(r=typeof c=="function"?c:Qt(!!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 Yv(e,t,r){var n=null,i=Qt(!0),o=null,a=tb,s=null,c=ZT(u);e=typeof e=="function"?e:e===void 0?F7:Qt(+e),t=typeof t=="function"?t:Qt(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?B7:Qt(+r);function u(p){var v,b,x,_=(p=XT(p)).length,w,O=!1,S,E=new Array(_),T=new Array(_);for(o==null&&(s=a(S=c())),v=0;v<=_;++v){if(!(v<_&&i(w=p[v],v,p))===O)if(O=!O)b=v,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),x=v-1;x>=b;--x)s.point(E[x],T[x]);s.lineEnd(),s.areaEnd()}O&&(E[v]=+e(w,v,p),T[v]=+t(w,v,p),s.point(n?+n(w,v,p):E[v],r?+r(w,v,p):T[v]))}if(S)return s=null,S+""||null}function h(){return U7().defined(i).curve(a).context(o)}return u.x=function(p){return arguments.length?(e=typeof p=="function"?p:Qt(+p),n=null,u):e},u.x0=function(p){return arguments.length?(e=typeof p=="function"?p:Qt(+p),u):e},u.x1=function(p){return arguments.length?(n=p==null?null:typeof p=="function"?p:Qt(+p),u):n},u.y=function(p){return arguments.length?(t=typeof p=="function"?p:Qt(+p),r=null,u):t},u.y0=function(p){return arguments.length?(t=typeof p=="function"?p:Qt(+p),u):t},u.y1=function(p){return arguments.length?(r=p==null?null:typeof p=="function"?p:Qt(+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:Qt(!!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 z7{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 Ace(e){return new z7(e,!0)}function kce(e){return new z7(e,!1)}const QT={draw(e,t){const r=Ao(t/gy);e.moveTo(r,0),e.arc(0,0,r,0,eb)}},Rce={draw(e,t){const r=Ao(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()}},V7=Ao(1/3),Nce=V7*2,Mce={draw(e,t){const r=Ao(t/Nce),n=r*V7;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},Lce={draw(e,t){const r=Ao(t),n=-r/2;e.rect(n,n,r,r)}},Ice=.8908130915292852,W7=vy(gy/10)/vy(7*gy/10),Dce=vy(eb/10)*W7,$ce=-I7(eb/10)*W7,Fce={draw(e,t){const r=Ao(t*Ice),n=Dce*r,i=$ce*r;e.moveTo(0,-r),e.lineTo(n,i);for(let o=1;o<5;++o){const a=eb*o/5,s=I7(a),c=vy(a);e.lineTo(c*r,-s*r),e.lineTo(s*n-c*i,c*n+s*i)}e.closePath()}},tw=Ao(3),Bce={draw(e,t){const r=-Ao(t/(tw*3));e.moveTo(0,r*2),e.lineTo(-tw*r,-r),e.lineTo(tw*r,-r),e.closePath()}},Di=-.5,$i=Ao(3)/2,oC=1/Ao(12),Uce=(oC/2+1)*3,zce={draw(e,t){const r=Ao(t/Uce),n=r/2,i=r*oC,o=n,a=r*oC+r,s=-o,c=a;e.moveTo(n,i),e.lineTo(o,a),e.lineTo(s,c),e.lineTo(Di*n-$i*i,$i*n+Di*i),e.lineTo(Di*o-$i*a,$i*o+Di*a),e.lineTo(Di*s-$i*c,$i*s+Di*c),e.lineTo(Di*n+$i*i,Di*i-$i*n),e.lineTo(Di*o+$i*a,Di*a-$i*o),e.lineTo(Di*s+$i*c,Di*c-$i*s),e.closePath()}};function Vce(e,t){let r=null,n=ZT(i);e=typeof e=="function"?e:Qt(e||QT),t=typeof t=="function"?t:Qt(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:Qt(o),i):e},i.size=function(o){return arguments.length?(t=typeof o=="function"?o:Qt(+o),i):t},i.context=function(o){return arguments.length?(r=o??null,i):r},i}function yy(){}function by(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 q7(e){this._context=e}q7.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:by(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:by(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Wce(e){return new q7(e)}function H7(e){this._context=e}H7.prototype={areaStart:yy,areaEnd:yy,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:by(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function qce(e){return new H7(e)}function G7(e){this._context=e}G7.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:by(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Hce(e){return new G7(e)}function K7(e){this._context=e}K7.prototype={areaStart:yy,areaEnd:yy,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 Gce(e){return new K7(e)}function ZM(e){return e<0?-1:1}function XM(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(ZM(o)+ZM(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function QM(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function rw(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 _y(e){this._context=e}_y.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:rw(this,this._t0,QM(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var 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,rw(this,QM(this,r=XM(this,e,t)),r);break;default:rw(this,this._t0,r=XM(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function Y7(e){this._context=new Z7(e)}(Y7.prototype=Object.create(_y.prototype)).point=function(e,t){_y.prototype.point.call(this,t,e)};function Z7(e){this._context=e}Z7.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 Kce(e){return new _y(e)}function Yce(e){return new Y7(e)}function X7(e){this._context=e}X7.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=JM(e),i=JM(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 JM(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 Zce(e){return new X7(e)}function rb(e,t){this._context=e,this._t=t}rb.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 Xce(e){return new rb(e,.5)}function Qce(e){return new rb(e,0)}function Jce(e){return new rb(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 aC(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function efe(e,t){return e[t]}function tfe(e){const t=[];return t.key=e,t}function rfe(){var e=Qt([]),t=aC,r=vf,n=efe;function i(o){var a=Array.from(e.apply(this,arguments),tfe),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=XT(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:Qt(Array.from(o)),i):e},i.value=function(o){return arguments.length?(n=typeof o=="function"?o:Qt(+o),i):n},i.order=function(o){return arguments.length?(t=o==null?aC:typeof o=="function"?o:Qt(Array.from(o)),i):t},i.offset=function(o){return arguments.length?(r=o??vf,i):r},i}function nfe(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 ife(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 ofe(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,x=0;x<s;++x){var _=e[t[x]],w=_[n][1]||0,O=_[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 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)}var afe=["type","size","sizeType"];function sC(){return sC=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},sC.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 tL(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){sfe(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 sfe(e,t,r){return t=lfe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lfe(e){var t=ufe(e,"string");return fp(t)=="symbol"?t:t+""}function ufe(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)}function cfe(e,t){if(e==null)return{};var r=ffe(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 ffe(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 Q7={symbolCircle:QT,symbolCross:Rce,symbolDiamond:Mce,symbolSquare:Lce,symbolStar:Fce,symbolTriangle:Bce,symbolWye:zce},dfe=Math.PI/180,hfe=function(t){var r="symbol".concat(J0(t));return Q7[r]||QT},pfe=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*dfe;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}},mfe=function(t,r){Q7["symbol".concat(J0(t))]=r},nb=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=cfe(t,afe),u=tL(tL({},c),{},{type:n,size:o,sizeType:s}),h=function(){var w=hfe(n),O=Vce().type(w).size(pfe(o,s,n));return O()},p=u.className,v=u.cx,b=u.cy,x=it(u,!0);return v===+v&&b===+b&&o===+o?Z.createElement("path",sC({},x,{className:ze("recharts-symbols",p),transform:"translate(".concat(v,", ").concat(b,")"),d:h()})):null};nb.registerSymbol=mfe;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 lC(){return lC=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},lC.apply(this,arguments)}function rL(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 vfe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rL(Object(r),!0).forEach(function(n){dp(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rL(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yfe(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,eB(n.key),n)}}function bfe(e,t,r){return t&&yfe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _fe(e,t,r){return t=xy(t),xfe(e,J7()?Reflect.construct(t,r||[],xy(e).constructor):t.apply(e,r))}function xfe(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 wfe(e)}function wfe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function J7(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(J7=function(){return!!e})()}function xy(e){return xy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},xy(e)}function Ofe(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 dp(e,t,r){return t=eB(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eB(e){var t=Sfe(e,"string");return gf(t)=="symbol"?t:t+""}function Sfe(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 Fi=32,JT=function(e){function t(){return gfe(this,t),_fe(this,t,arguments)}return Ofe(t,e),bfe(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,o=Fi/2,a=Fi/6,s=Fi/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:Fi,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(Fi,"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(Fi/8,"h").concat(Fi,"v").concat(Fi*3/4,"h").concat(-Fi,"z"),className:"recharts-legend-icon"});if(Z.isValidElement(n.legendIcon)){var u=vfe({},n);return delete u.legendIcon,Z.cloneElement(n.legendIcon,u)}return Z.createElement(nb,{fill:c,cx:o,cy:o,size:Fi,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:Fi,height:Fi},p={display:s==="horizontal"?"inline-block":"block",marginRight:10},v={display:"inline-block",verticalAlign:"middle",marginRight:4};return o.map(function(b,x){var _=b.formatter||c,w=ze(dp(dp({"recharts-legend-item":!0},"legend-item-".concat(x),!0),"inactive",b.inactive));if(b.type==="none")return null;var O=ft(b.value)?null:b.value;xo(!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 S=b.inactive?u:b.color;return Z.createElement("li",lC({className:w,style:p,key:"legend-item-".concat(x)},ll(n.props,b,x)),Z.createElement(tC,{width:a,height:a,viewBox:h,style:v},n.renderIcon(b)),Z.createElement("span",{className:"recharts-legend-item-text",style:{color:S}},_?_(O,b,x):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())}}])}($.PureComponent);dp(JT,"displayName","Legend");dp(JT,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var nw,nL;function Pfe(){if(nL)return nw;nL=1;var e=Z0();function t(){this.__data__=new e,this.size=0}return nw=t,nw}var iw,iL;function Cfe(){if(iL)return iw;iL=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return iw=e,iw}var ow,oL;function Efe(){if(oL)return ow;oL=1;function e(t){return this.__data__.get(t)}return ow=e,ow}var aw,aL;function Tfe(){if(aL)return aw;aL=1;function e(t){return this.__data__.has(t)}return aw=e,aw}var sw,sL;function jfe(){if(sL)return sw;sL=1;var e=Z0(),t=WT(),r=qT(),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 sw=i,sw}var lw,lL;function tB(){if(lL)return lw;lL=1;var e=Z0(),t=Pfe(),r=Cfe(),n=Efe(),i=Tfe(),o=jfe();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,lw=a,lw}var uw,uL;function Afe(){if(uL)return uw;uL=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return uw=t,uw}var cw,cL;function kfe(){if(cL)return cw;cL=1;function e(t){return this.__data__.has(t)}return cw=e,cw}var fw,fL;function rB(){if(fL)return fw;fL=1;var e=qT(),t=Afe(),r=kfe();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,fw=n,fw}var dw,dL;function nB(){if(dL)return dw;dL=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 dw=e,dw}var hw,hL;function iB(){if(hL)return hw;hL=1;function e(t,r){return t.has(r)}return hw=e,hw}var pw,pL;function oB(){if(pL)return pw;pL=1;var e=rB(),t=nB(),r=iB(),n=1,i=2;function o(a,s,c,u,h,p){var v=c&n,b=a.length,x=s.length;if(b!=x&&!(v&&x>b))return!1;var _=p.get(a),w=p.get(s);if(_&&w)return _==s&&w==a;var O=-1,S=!0,E=c&i?new e:void 0;for(p.set(a,s),p.set(s,a);++O<b;){var T=a[O],A=s[O];if(u)var j=v?u(A,T,O,s,a,p):u(T,A,O,a,s,p);if(j!==void 0){if(j)continue;S=!1;break}if(E){if(!t(s,function(N,F){if(!r(E,F)&&(T===N||h(T,N,c,u,p)))return E.push(F)})){S=!1;break}}else if(!(T===A||h(T,A,c,u,p))){S=!1;break}}return p.delete(a),p.delete(s),S}return pw=o,pw}var mw,mL;function Rfe(){if(mL)return mw;mL=1;var e=ca(),t=e.Uint8Array;return mw=t,mw}var vw,vL;function Nfe(){if(vL)return vw;vL=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,o){n[++r]=[o,i]}),n}return vw=e,vw}var gw,gL;function ej(){if(gL)return gw;gL=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return gw=e,gw}var yw,yL;function Mfe(){if(yL)return yw;yL=1;var e=um(),t=Rfe(),r=VT(),n=oB(),i=Nfe(),o=ej(),a=1,s=2,c="[object Boolean]",u="[object Date]",h="[object Error]",p="[object Map]",v="[object Number]",b="[object RegExp]",x="[object Set]",_="[object String]",w="[object Symbol]",O="[object ArrayBuffer]",S="[object DataView]",E=e?e.prototype:void 0,T=E?E.valueOf:void 0;function A(j,N,F,V,B,W,q){switch(F){case S: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 _:return j==N+"";case p:var J=i;case x: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 yw=A,yw}var bw,bL;function aB(){if(bL)return bw;bL=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 bw=e,bw}var _w,_L;function Lfe(){if(_L)return _w;_L=1;var e=aB(),t=Xn();function r(n,i,o){var a=i(n);return t(n)?a:e(a,o(n))}return _w=r,_w}var xw,xL;function Ife(){if(xL)return xw;xL=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 xw=e,xw}var ww,wL;function Dfe(){if(wL)return ww;wL=1;function e(){return[]}return ww=e,ww}var Ow,OL;function $fe(){if(OL)return Ow;OL=1;var e=Ife(),t=Dfe(),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 Ow=o,Ow}var Sw,SL;function Ffe(){if(SL)return Sw;SL=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return Sw=e,Sw}var Pw,PL;function Bfe(){if(PL)return Pw;PL=1;var e=rs(),t=ns(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return Pw=n,Pw}var Cw,CL;function tj(){if(CL)return Cw;CL=1;var e=Bfe(),t=ns(),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 Ch={exports:{}},Ew,EL;function Ufe(){if(EL)return Ew;EL=1;function e(){return!1}return Ew=e,Ew}Ch.exports;var TL;function sB(){return TL||(TL=1,function(e,t){var r=ca(),n=Ufe(),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}(Ch,Ch.exports)),Ch.exports}var Tw,jL;function rj(){if(jL)return Tw;jL=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 Tw=r,Tw}var jw,AL;function nj(){if(AL)return jw;AL=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return jw=t,jw}var Aw,kL;function zfe(){if(kL)return Aw;kL=1;var e=rs(),t=nj(),r=ns(),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]",x="[object String]",_="[object WeakMap]",w="[object ArrayBuffer]",O="[object DataView]",S="[object Float32Array]",E="[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[S]=W[E]=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[x]=W[_]=!1;function q(J){return r(J)&&t(J.length)&&!!W[e(J)]}return Aw=q,Aw}var kw,RL;function lB(){if(RL)return kw;RL=1;function e(t){return function(r){return t(r)}}return kw=e,kw}var Eh={exports:{}};Eh.exports;var NL;function Vfe(){return NL||(NL=1,function(e,t){var r=E7(),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 Rw,ML;function uB(){if(ML)return Rw;ML=1;var e=zfe(),t=lB(),r=Vfe(),n=r&&r.isTypedArray,i=n?t(n):e;return Rw=i,Rw}var Nw,LL;function Wfe(){if(LL)return Nw;LL=1;var e=Ffe(),t=tj(),r=Xn(),n=sB(),i=rj(),o=uB(),a=Object.prototype,s=a.hasOwnProperty;function c(u,h){var p=r(u),v=!p&&t(u),b=!p&&!v&&n(u),x=!p&&!v&&!b&&o(u),_=p||v||b||x,w=_?e(u.length,String):[],O=w.length;for(var S in u)(h||s.call(u,S))&&!(_&&(S=="length"||b&&(S=="offset"||S=="parent")||x&&(S=="buffer"||S=="byteLength"||S=="byteOffset")||i(S,O)))&&w.push(S);return w}return Nw=c,Nw}var Mw,IL;function qfe(){if(IL)return Mw;IL=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return Mw=t,Mw}var Lw,DL;function cB(){if(DL)return Lw;DL=1;function e(t,r){return function(n){return t(r(n))}}return Lw=e,Lw}var Iw,$L;function Hfe(){if($L)return Iw;$L=1;var e=cB(),t=e(Object.keys,Object);return Iw=t,Iw}var Dw,FL;function Gfe(){if(FL)return Dw;FL=1;var e=qfe(),t=Hfe(),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 Dw=i,Dw}var $w,BL;function fm(){if(BL)return $w;BL=1;var e=zT(),t=nj();function r(n){return n!=null&&t(n.length)&&!e(n)}return $w=r,$w}var Fw,UL;function ib(){if(UL)return Fw;UL=1;var e=Wfe(),t=Gfe(),r=fm();function n(i){return r(i)?e(i):t(i)}return Fw=n,Fw}var Bw,zL;function Kfe(){if(zL)return Bw;zL=1;var e=Lfe(),t=$fe(),r=ib();function n(i){return e(i,r,t)}return Bw=n,Bw}var Uw,VL;function Yfe(){if(VL)return Uw;VL=1;var e=Kfe(),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,x=e(a),_=x.length;if(b!=_&&!p)return!1;for(var w=b;w--;){var O=v[w];if(!(p?O in a:n.call(a,O)))return!1}var S=h.get(o),E=h.get(a);if(S&&E)return S==a&&E==o;var T=!0;h.set(o,a),h.set(a,o);for(var A=p;++w<b;){O=v[w];var j=o[O],N=a[O];if(c)var 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 Uw=i,Uw}var zw,WL;function Zfe(){if(WL)return zw;WL=1;var e=Iu(),t=ca(),r=e(t,"DataView");return zw=r,zw}var Vw,qL;function Xfe(){if(qL)return Vw;qL=1;var e=Iu(),t=ca(),r=e(t,"Promise");return Vw=r,Vw}var Ww,HL;function fB(){if(HL)return Ww;HL=1;var e=Iu(),t=ca(),r=e(t,"Set");return Ww=r,Ww}var qw,GL;function Qfe(){if(GL)return qw;GL=1;var e=Iu(),t=ca(),r=e(t,"WeakMap");return qw=r,qw}var Hw,KL;function Jfe(){if(KL)return Hw;KL=1;var e=Zfe(),t=WT(),r=Xfe(),n=fB(),i=Qfe(),o=rs(),a=T7(),s="[object Map]",c="[object Object]",u="[object Promise]",h="[object Set]",p="[object WeakMap]",v="[object DataView]",b=a(e),x=a(t),_=a(r),w=a(n),O=a(i),S=o;return(e&&S(new e(new ArrayBuffer(1)))!=v||t&&S(new t)!=s||r&&S(r.resolve())!=u||n&&S(new n)!=h||i&&S(new i)!=p)&&(S=function(E){var T=o(E),A=T==c?E.constructor:void 0,j=A?a(A):"";if(j)switch(j){case b:return v;case x:return s;case _:return u;case w:return h;case O:return p}return T}),Hw=S,Hw}var Gw,YL;function ede(){if(YL)return Gw;YL=1;var e=tB(),t=oB(),r=Mfe(),n=Yfe(),i=Jfe(),o=Xn(),a=sB(),s=uB(),c=1,u="[object Arguments]",h="[object Array]",p="[object Object]",v=Object.prototype,b=v.hasOwnProperty;function x(_,w,O,S,E,T){var A=o(_),j=o(w),N=A?h:i(_),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(_)){if(!a(w))return!1;A=!0,V=!1}if(W&&!V)return T||(T=new e),A||s(_)?t(_,w,O,S,E,T):r(_,w,N,O,S,E,T);if(!(O&c)){var q=V&&b.call(_,"__wrapped__"),J=B&&b.call(w,"__wrapped__");if(q||J){var Q=q?_.value():_,ne=J?w.value():w;return T||(T=new e),E(Q,ne,O,S,T)}}return W?(T||(T=new e),n(_,w,O,S,E,T)):!1}return Gw=x,Gw}var Kw,ZL;function ij(){if(ZL)return Kw;ZL=1;var e=ede(),t=ns();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 Kw=r,Kw}var Yw,XL;function tde(){if(XL)return Yw;XL=1;var e=tB(),t=ij(),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],x=o[b],_=v[1];if(p&&v[2]){if(x===void 0&&!(b in o))return!1}else{var w=new e;if(c)var O=c(x,_,b,o,a,w);if(!(O===void 0?t(_,x,r|n,c,w):O))return!1}}return!0}return Yw=i,Yw}var Zw,QL;function dB(){if(QL)return Zw;QL=1;var e=vl();function t(r){return r===r&&!e(r)}return Zw=t,Zw}var Xw,JL;function rde(){if(JL)return Xw;JL=1;var e=dB(),t=ib();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 Xw=r,Xw}var Qw,e4;function hB(){if(e4)return Qw;e4=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return Qw=e,Qw}var Jw,t4;function nde(){if(t4)return Jw;t4=1;var e=tde(),t=rde(),r=hB();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 Jw=n,Jw}var e2,r4;function ide(){if(r4)return e2;r4=1;function e(t,r){return t!=null&&r in Object(t)}return e2=e,e2}var t2,n4;function ode(){if(n4)return t2;n4=1;var e=k7(),t=tj(),r=Xn(),n=rj(),i=nj(),o=Q0();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 t2=a,t2}var r2,i4;function ade(){if(i4)return r2;i4=1;var e=ide(),t=ode();function r(n,i){return n!=null&&t(n,i,e)}return r2=r,r2}var n2,o4;function sde(){if(o4)return n2;o4=1;var e=ij(),t=R7(),r=ade(),n=UT(),i=dB(),o=hB(),a=Q0(),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 n2=u,n2}var i2,a4;function td(){if(a4)return i2;a4=1;function e(t){return t}return i2=e,i2}var o2,s4;function lde(){if(s4)return o2;s4=1;function e(t){return function(r){return r==null?void 0:r[t]}}return o2=e,o2}var a2,l4;function ude(){if(l4)return a2;l4=1;var e=GT();function t(r){return function(n){return e(n,r)}}return a2=t,a2}var s2,u4;function cde(){if(u4)return s2;u4=1;var e=lde(),t=ude(),r=UT(),n=Q0();function i(o){return r(o)?e(n(o)):t(o)}return s2=i,s2}var l2,c4;function fa(){if(c4)return l2;c4=1;var e=nde(),t=sde(),r=td(),n=Xn(),i=cde();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 l2=o,l2}var u2,f4;function pB(){if(f4)return u2;f4=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 u2=e,u2}var c2,d4;function fde(){if(d4)return c2;d4=1;function e(t){return t!==t}return c2=e,c2}var f2,h4;function dde(){if(h4)return f2;h4=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 f2=e,f2}var d2,p4;function hde(){if(p4)return d2;p4=1;var e=pB(),t=fde(),r=dde();function n(i,o,a){return o===o?r(i,o,a):e(i,t,a)}return d2=n,d2}var h2,m4;function pde(){if(m4)return h2;m4=1;var e=hde();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return h2=t,h2}var p2,v4;function mde(){if(v4)return p2;v4=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 p2=e,p2}var m2,g4;function vde(){if(g4)return m2;g4=1;function e(){}return m2=e,m2}var v2,y4;function gde(){if(y4)return v2;y4=1;var e=fB(),t=vde(),r=ej(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(o){return new e(o)}:t;return v2=i,v2}var g2,b4;function yde(){if(b4)return g2;b4=1;var e=rB(),t=pde(),r=mde(),n=iB(),i=gde(),o=ej(),a=200;function s(c,u,h){var p=-1,v=t,b=c.length,x=!0,_=[],w=_;if(h)x=!1,v=r;else if(b>=a){var O=u?null:i(c);if(O)return o(O);x=!1,v=n,w=new e}else w=u?[]:_;e:for(;++p<b;){var S=c[p],E=u?u(S):S;if(S=h||S!==0?S:0,x&&E===E){for(var T=w.length;T--;)if(w[T]===E)continue e;u&&w.push(E),_.push(S)}else v(w,E,h)||(w!==_&&w.push(E),_.push(S))}return _}return g2=s,g2}var y2,_4;function bde(){if(_4)return y2;_4=1;var e=fa(),t=yde();function r(n,i){return n&&n.length?t(n,e(i,2)):[]}return y2=r,y2}var _de=bde();const x4=Nt(_de);function mB(e,t,r){return t===!0?x4(e,r):ft(t)?x4(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 xde=["ref"];function w4(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?w4(Object(r),!0).forEach(function(n){ob(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w4(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wde(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function O4(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,gB(n.key),n)}}function Ode(e,t,r){return t&&O4(e.prototype,t),r&&O4(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Sde(e,t,r){return t=wy(t),Pde(e,vB()?Reflect.construct(t,r||[],wy(e).constructor):t.apply(e,r))}function Pde(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 Cde(e)}function Cde(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(vB=function(){return!!e})()}function wy(e){return wy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},wy(e)}function Ede(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&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 ob(e,t,r){return t=gB(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gB(e){var t=Tde(e,"string");return yf(t)=="symbol"?t:t+""}function Tde(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 jde(e,t){if(e==null)return{};var r=Ade(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 Ade(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 kde(e){return e.value}function Rde(e,t){if(Z.isValidElement(e))return Z.cloneElement(e,t);if(typeof e=="function")return Z.createElement(e,t);t.ref;var r=jde(t,xde);return Z.createElement(JT,r)}var S4=1,rf=function(e){function t(){var r;wde(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return r=Sde(this,t,[].concat(i)),ob(r,"lastBoundingBox",{width:-1,height:-1}),r}return Ede(t,e),Ode(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)>S4||Math.abs(i.height-this.lastBoundingBox.height)>S4)&&(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?Na({},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 x=this.getBBoxSnapshot();v={top:((h||0)-x.height)/2}}else v=s==="bottom"?{bottom:c&&c.bottom||0}:{top:c&&c.top||0};return Na(Na({},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=Na(Na({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}},Rde(o,Na(Na({},this.props),{},{payload:mB(h,u,kde)})))}}],[{key:"getWithHeight",value:function(n,i){var o=Na(Na({},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}}])}($.PureComponent);ob(rf,"displayName","Legend");ob(rf,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var b2,P4;function Nde(){if(P4)return b2;P4=1;var e=um(),t=tj(),r=Xn(),n=e?e.isConcatSpreadable:void 0;function i(o){return r(o)||t(o)||!!(n&&o&&o[n])}return b2=i,b2}var _2,C4;function yB(){if(C4)return _2;C4=1;var e=aB(),t=Nde();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 _2=r,_2}var x2,E4;function Mde(){if(E4)return x2;E4=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 x2=e,x2}var w2,T4;function Lde(){if(T4)return w2;T4=1;var e=Mde(),t=e();return w2=t,w2}var O2,j4;function bB(){if(j4)return O2;j4=1;var e=Lde(),t=ib();function r(n,i){return n&&e(n,i,t)}return O2=r,O2}var S2,A4;function Ide(){if(A4)return S2;A4=1;var e=fm();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 S2=t,S2}var P2,k4;function oj(){if(k4)return P2;k4=1;var e=bB(),t=Ide(),r=t(e);return P2=r,P2}var C2,R4;function _B(){if(R4)return C2;R4=1;var e=oj(),t=fm();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 E2,N4;function Dde(){if(N4)return E2;N4=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return E2=e,E2}var T2,M4;function $de(){if(M4)return T2;M4=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 T2=t,T2}var j2,L4;function Fde(){if(L4)return j2;L4=1;var e=$de();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 j2=t,j2}var A2,I4;function Bde(){if(I4)return A2;I4=1;var e=HT(),t=GT(),r=fa(),n=_B(),i=Dde(),o=lB(),a=Fde(),s=td(),c=Xn();function u(h,p,v){p.length?p=e(p,function(_){return c(_)?function(w){return t(w,_.length===1?_[0]:_)}:_}):p=[s];var b=-1;p=e(p,o(r));var x=n(h,function(_,w,O){var S=e(p,function(E){return E(_)});return{criteria:S,index:++b,value:_}});return i(x,function(_,w){return a(_,w,v)})}return A2=u,A2}var k2,D4;function Ude(){if(D4)return k2;D4=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 k2=e,k2}var R2,$4;function zde(){if($4)return R2;$4=1;var e=Ude(),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 R2=r,R2}var N2,F4;function Vde(){if(F4)return N2;F4=1;function e(t){return function(){return t}}return N2=e,N2}var M2,B4;function xB(){if(B4)return M2;B4=1;var e=Iu(),t=function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}}();return M2=t,M2}var L2,U4;function Wde(){if(U4)return L2;U4=1;var e=Vde(),t=xB(),r=td(),n=t?function(i,o){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(o),writable:!0})}:r;return L2=n,L2}var I2,z4;function qde(){if(z4)return I2;z4=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 I2=n,I2}var D2,V4;function Hde(){if(V4)return D2;V4=1;var e=Wde(),t=qde(),r=t(e);return D2=r,D2}var $2,W4;function Gde(){if(W4)return $2;W4=1;var e=td(),t=zde(),r=Hde();function n(i,o){return r(t(i,o,e),i+"")}return $2=n,$2}var F2,q4;function ab(){if(q4)return F2;q4=1;var e=VT(),t=fm(),r=rj(),n=vl();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 F2=i,F2}var B2,H4;function Kde(){if(H4)return B2;H4=1;var e=yB(),t=Bde(),r=Gde(),n=ab(),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 B2=i,B2}var Yde=Kde();const aj=Nt(Yde);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 fC(){return fC=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},fC.apply(this,arguments)}function Zde(e,t){return ehe(e)||Jde(e,t)||Qde(e,t)||Xde()}function Xde(){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 Qde(e,t){if(e){if(typeof e=="string")return G4(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 G4(e,t)}}function G4(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 Jde(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 ehe(e){if(Array.isArray(e))return 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 U2(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){the(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 the(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)}function ihe(e){return Array.isArray(e)&&Vr(e[0])&&Vr(e[1])?e.join(" ~ "):e}var ohe=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,x=t.labelClassName,_=t.label,w=t.labelFormatter,O=t.accessibilityLayer,S=O===void 0?!1:O,E=function(){if(h&&h.length){var q={padding:0,margin:0},J=(v?aj(h,v):h).map(function(Q,ne){if(Q.type==="none")return null;var ae=U2({display:"block",paddingTop:4,paddingBottom:4,color:Q.color||"#000"},s),se=Q.formatter||p||ihe,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=Zde(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},Vr(z)?Z.createElement("span",{className:"recharts-tooltip-item-name"},z):null,Vr(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=U2({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},o),A=U2({margin:0},u),j=!dt(_),N=j?_:"",F=ze("recharts-default-tooltip",b),V=ze("recharts-tooltip-label",x);j&&w&&h!==void 0&&h!==null&&(N=w(_,h));var B=S?{role:"status","aria-live":"assertive"}:{};return Z.createElement("div",fC({className:F,style:T},B),Z.createElement("p",{className:V,style:A},Z.isValidElement(N)?N:"".concat(N)),E())};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 Zv(e,t,r){return t=ahe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ahe(e){var t=she(e,"string");return pp(t)=="symbol"?t:t+""}function she(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)}var fh="recharts-tooltip-wrapper",lhe={visibility:"hidden"};function uhe(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return ze(fh,Zv(Zv(Zv(Zv({},"".concat(fh,"-right"),Ve(r)&&t&&Ve(t.x)&&r>=t.x),"".concat(fh,"-left"),Ve(r)&&t&&Ve(t.x)&&r<t.x),"".concat(fh,"-bottom"),Ve(n)&&t&&Ve(t.y)&&n>=t.y),"".concat(fh,"-top"),Ve(n)&&t&&Ve(t.y)&&n<t.y))}function Y4(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 x=p+s,_=c[n]+u;return x>_?Math.max(h,c[n]):Math.max(p,c[n])}function che(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 fhe(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=Y4({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:o,tooltipDimension:a.width,viewBox:c,viewBoxDimension:c.width}),p=Y4({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:o,tooltipDimension:a.height,viewBox:c,viewBoxDimension:c.height}),u=che({translateX:h,translateY:p,useTranslate3d:s})):u=lhe,{cssProperties:u,cssClasses:uhe({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 Z4(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 X4(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Z4(Object(r),!0).forEach(function(n){hC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Z4(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dhe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hhe(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,OB(n.key),n)}}function phe(e,t,r){return t&&hhe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function mhe(e,t,r){return t=Oy(t),vhe(e,wB()?Reflect.construct(t,r||[],Oy(e).constructor):t.apply(e,r))}function vhe(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 ghe(e)}function ghe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(wB=function(){return!!e})()}function Oy(e){return Oy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Oy(e)}function yhe(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 hC(e,t,r){return t=OB(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OB(e){var t=bhe(e,"string");return bf(t)=="symbol"?t:t+""}function bhe(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 Q4=1,_he=function(e){function t(){var r;dhe(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return r=mhe(this,t,[].concat(i)),hC(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),hC(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 yhe(t,e),phe(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>Q4||Math.abs(n.height-this.state.lastBoundingBox.height)>Q4)&&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,x=i.position,_=i.reverseDirection,w=i.useTranslate3d,O=i.viewBox,S=i.wrapperStyle,E=fhe({allowEscapeViewBox:a,coordinate:h,offsetTopLeft:b,position:x,reverseDirection:_,tooltipBox:this.state.lastBoundingBox,useTranslate3d:w,viewBox:O}),T=E.cssClasses,A=E.cssProperties,j=X4(X4({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},S);return Z.createElement("div",{tabIndex:-1,className:T,style:j,ref:function(F){n.wrapperNode=F}},u)}}])}($.PureComponent),xhe=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Gi={isSsr:xhe(),get:function(t){return Gi[t]},set:function(t,r){if(typeof t=="string")Gi[t]=r;else{var n=Object.keys(t);n&&n.length&&n.forEach(function(i){Gi[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 J4(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 eI(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?J4(Object(r),!0).forEach(function(n){sj(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):J4(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function whe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ohe(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 She(e,t,r){return t&&Ohe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Phe(e,t,r){return t=Sy(t),Che(e,SB()?Reflect.construct(t,r||[],Sy(e).constructor):t.apply(e,r))}function Che(e,t){if(t&&(_f(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ehe(e)}function Ehe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function SB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(SB=function(){return!!e})()}function Sy(e){return Sy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Sy(e)}function The(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pC(e,t)}function pC(e,t){return pC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},pC(e,t)}function sj(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=jhe(e,"string");return _f(t)=="symbol"?t:t+""}function jhe(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 Ahe(e){return e.dataKey}function khe(e,t){return Z.isValidElement(e)?Z.cloneElement(e,t):typeof e=="function"?Z.createElement(e,t):Z.createElement(ohe,t)}var zi=function(e){function t(){return whe(this,t),Phe(this,t,arguments)}return The(t,e),She(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,x=i.payload,_=i.payloadUniqBy,w=i.position,O=i.reverseDirection,S=i.useTranslate3d,E=i.viewBox,T=i.wrapperStyle,A=x??[];p&&A.length&&(A=mB(x.filter(function(N){return N.value!=null&&(N.hide!==!0||n.props.includeHidden)}),_,Ahe));var j=A.length>0;return Z.createElement(_he,{allowEscapeViewBox:a,animationDuration:s,animationEasing:c,isAnimationActive:v,active:o,coordinate:h,hasPayload:j,offset:b,position:w,reverseDirection:O,useTranslate3d:S,viewBox:E,wrapperStyle:T},khe(u,eI(eI({},this.props),{},{payload:A})))}}])}($.PureComponent);sj(zi,"displayName","Tooltip");sj(zi,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Gi.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 z2,tI;function Rhe(){if(tI)return z2;tI=1;var e=ca(),t=function(){return e.Date.now()};return z2=t,z2}var V2,rI;function Nhe(){if(rI)return V2;rI=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return V2=t,V2}var W2,nI;function Mhe(){if(nI)return W2;nI=1;var e=Nhe(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return W2=r,W2}var q2,iI;function CB(){if(iI)return q2;iI=1;var e=Mhe(),t=vl(),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 q2=c,q2}var H2,oI;function Lhe(){if(oI)return H2;oI=1;var e=vl(),t=Rhe(),r=CB(),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,S=!1,E=!0;if(typeof s!="function")throw new TypeError(n);c=r(c)||0,e(u)&&(O=!!u.leading,S="maxWait"in u,v=S?i(r(u.maxWait)||0,c):v,E="trailing"in u?!!u.trailing:E);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,x=setTimeout(F,c),O?T(J):b}function j(J){var Q=J-_,ne=J-w,ae=c-Q;return S?o(ae,v-ne):ae}function N(J){var Q=J-_,ne=J-w;return _===void 0||Q>=c||Q<0||S&&ne>=v}function F(){var J=t();if(N(J))return V(J);x=setTimeout(F,j(J))}function V(J){return x=void 0,E&&h?T(J):(h=p=void 0,b)}function B(){x!==void 0&&clearTimeout(x),w=0,h=_=p=x=void 0}function W(){return x===void 0?b:V(t())}function q(){var J=t(),Q=N(J);if(h=arguments,p=this,_=J,Q){if(x===void 0)return A(_);if(S)return clearTimeout(x),x=setTimeout(F,c),T(_)}return x===void 0&&(x=setTimeout(F,c)),b}return q.cancel=B,q.flush=W,q}return H2=a,H2}var G2,aI;function Ihe(){if(aI)return G2;aI=1;var e=Lhe(),t=vl(),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 G2=n,G2}var Dhe=Ihe();const EB=Nt(Dhe);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 Xv(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){$he(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 $he(e,t,r){return t=Fhe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Fhe(e){var t=Bhe(e,"string");return mp(t)=="symbol"?t:t+""}function Bhe(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)}function Uhe(e,t){return qhe(e)||Whe(e,t)||Vhe(e,t)||zhe()}function zhe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vhe(e,t){if(e){if(typeof e=="string")return lI(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 lI(e,t)}}function lI(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 Whe(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 qhe(e){if(Array.isArray(e))return e}var lj=$.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,x=e.debounce,_=x===void 0?0:x,w=e.id,O=e.className,S=e.onResize,E=e.style,T=E===void 0?{}:E,A=$.useRef(null),j=$.useRef();j.current=S,$.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=$.useState({containerWidth:i.width,containerHeight:i.height}),F=Uhe(N,2),V=F[0],B=F[1],W=$.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}})},[]);$.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)};_>0&&(J=EB(J,_,{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,_]);var q=$.useMemo(function(){var J=V.containerWidth,Q=V.containerHeight;if(J<0||Q<0)return null;xo(cu(a)||cu(c),`The width(%s) and height(%s) are both fixed numbers,
maybe you don't need to use a ResponsiveContainer.`,a,c),xo(!r||r>0,"The aspect(%s) must be greater than zero.",r);var ne=cu(a)?J:a,ae=cu(c)?Q:c;r&&r>0&&(ne?ae=ne/r:ae&&(ne=ae*r),v&&ae>v&&(ae=v)),xo(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)&&Ba(b.type).endsWith("Chart");return Z.Children.map(b,function(oe){return Z.isValidElement(oe)?$.cloneElement(oe,Xv({width:ne,height:ae},se?{style:Xv({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:Xv(Xv({},T),{},{width:a,height:c,minWidth:h,minHeight:p,maxHeight:v}),ref:A},q)}),Js=function(t){return null};Js.displayName="Cell";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 uI(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 mC(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?uI(Object(r),!0).forEach(function(n){Hhe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uI(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Hhe(e,t,r){return t=Ghe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ghe(e){var t=Khe(e,"string");return vp(t)=="symbol"?t:t+""}function Khe(e,t){if(vp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(vp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Mc={widthCache:{},cacheCount:0},Yhe=2e3,Zhe={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},cI="recharts_measurement_span";function Xhe(e){var t=mC({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var $h=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Gi.isSsr)return{width:0,height:0};var n=Xhe(r),i=JSON.stringify({text:t,copyStyle:n});if(Mc.widthCache[i])return Mc.widthCache[i];try{var o=document.getElementById(cI);o||(o=document.createElement("span"),o.setAttribute("id",cI),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var a=mC(mC({},Zhe),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>Yhe&&(Mc.cacheCount=0,Mc.widthCache={}),c}catch{return{width:0,height:0}}},Qhe=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function gp(e){"@babel/helpers - typeof";return gp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gp(e)}function Py(e,t){return rpe(e)||tpe(e,t)||epe(e,t)||Jhe()}function Jhe(){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 epe(e,t){if(e){if(typeof e=="string")return fI(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 fI(e,t)}}function fI(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 tpe(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 rpe(e){if(Array.isArray(e))return e}function npe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dI(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,ope(n.key),n)}}function ipe(e,t,r){return t&&dI(e.prototype,t),r&&dI(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function ope(e){var t=ape(e,"string");return gp(t)=="symbol"?t:t+""}function ape(e,t){if(gp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(gp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var hI=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,pI=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,spe=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,lpe=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,TB={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},upe=Object.keys(TB),Kc="NaN";function cpe(e,t){return e*TB[t]}var Qv=function(){function e(t,r){npe(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!spe.test(r)&&(this.num=NaN,this.unit=""),upe.includes(r)&&(this.num=cpe(t,r),this.unit="px")}return ipe(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=lpe.exec(r))!==null&&n!==void 0?n:[],o=Py(i,3),a=o[1],s=o[2];return new e(parseFloat(a),s??"")}}])}();function jB(e){if(e.includes(Kc))return Kc;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=hI.exec(t))!==null&&r!==void 0?r:[],i=Py(n,4),o=i[1],a=i[2],s=i[3],c=Qv.parse(o??""),u=Qv.parse(s??""),h=a==="*"?c.multiply(u):c.divide(u);if(h.isNaN())return Kc;t=t.replace(hI,h.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var p,v=(p=pI.exec(t))!==null&&p!==void 0?p:[],b=Py(v,4),x=b[1],_=b[2],w=b[3],O=Qv.parse(x??""),S=Qv.parse(w??""),E=_==="+"?O.add(S):O.subtract(S);if(E.isNaN())return Kc;t=t.replace(pI,E.toString())}return t}var mI=/\(([^()]*)\)/;function fpe(e){for(var t=e;t.includes("(");){var r=mI.exec(t),n=Py(r,2),i=n[1];t=t.replace(mI,jB(i))}return t}function dpe(e){var t=e.replace(/\s+/g,"");return t=fpe(t),t=jB(t),t}function hpe(e){try{return dpe(e)}catch{return Kc}}function K2(e){var t=hpe(e.slice(5,-1));return t===Kc?"":t}var ppe=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],mpe=["dx","dy","angle","className","breakAll"];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)}function vI(e,t){if(e==null)return{};var r=vpe(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 vpe(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 gI(e,t){return _pe(e)||bpe(e,t)||ype(e,t)||gpe()}function gpe(){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 ype(e,t){if(e){if(typeof e=="string")return yI(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 yI(e,t)}}function yI(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 bpe(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 _pe(e){if(Array.isArray(e))return e}var AB=/[ \f\n\r\t\v\u2028\u2029]+/,kB=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(AB));var a=o.map(function(c){return{word:c,width:$h(c,i).width}}),s=n?0:$h(" ",i).width;return{wordsWithComputedWidth:a,spaceWidth:s}}catch{return null}},xpe=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),x=function(ne){return ne.reduce(function(ae,se){return ae.width>se.width?ae:se})};if(!h)return b;for(var _="…",w=function(ne){var ae=p.slice(0,ne),se=kB({breakAll:u,style:c,children:ae+_}).wordsWithComputedWidth,oe=v(se),K=oe.length>a||x(oe).width>Number(i);return[K,oe]},O=0,S=p.length-1,E=0,T;O<=S&&E<=p.length-1;){var A=Math.floor((O+S)/2),j=A-1,N=w(j),F=gI(N,2),V=F[0],B=F[1],W=w(A),q=gI(W,1),J=q[0];if(!V&&!J&&(O=A+1),V&&J&&(S=A-1),!V&&J){T=B;break}E++}return T||b},bI=function(t){var r=dt(t)?[]:t.toString().split(AB);return[{words:r}]},wpe=function(t){var r=t.width,n=t.scaleToFit,i=t.children,o=t.style,a=t.breakAll,s=t.maxLines;if((r||n)&&!Gi.isSsr){var c,u,h=kB({breakAll:a,children:i,style:o});if(h){var p=h.wordsWithComputedWidth,v=h.spaceWidth;c=p,u=v}else return bI(i);return xpe({breakAll:a,children:i,maxLines:s,style:o},c,u,r,n)}return bI(i)},_I="#808080",Tu=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,x=t.verticalAnchor,_=x===void 0?"end":x,w=t.fill,O=w===void 0?_I:w,S=vI(t,ppe),E=$.useMemo(function(){return wpe({breakAll:S.breakAll,children:S.children,maxLines:S.maxLines,scaleToFit:p,style:S.style,width:S.width})},[S.breakAll,S.children,S.maxLines,p,S.style,S.width]),T=S.dx,A=S.dy,j=S.angle,N=S.className,F=S.breakAll,V=vI(S,mpe);if(!Vr(n)||!Vr(o))return null;var B=n+(Ve(T)?T:0),W=o+(Ve(A)?A:0),q;switch(_){case"start":q=K2("calc(".concat(u,")"));break;case"middle":q=K2("calc(".concat((E.length-1)/2," * -").concat(s," + (").concat(u," / 2))"));break;default:q=K2("calc(".concat(E.length-1," * -").concat(s,")"));break}var J=[];if(p){var Q=E[0].width,ne=S.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",vC({},it(V,!0),{x:B,y:W,className:ze("recharts-text",N),textAnchor:b,fill:O.includes("url")?_I:O}),E.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 el(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Ope(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function uj(e){let t,r,n;e.length!==2?(t=el,r=(s,c)=>el(e(s),c),n=(s,c)=>e(s)-c):(t=e===el||e===Ope?e:Spe,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 Spe(){return 0}function RB(e){return e===null?NaN:+e}function*Ppe(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const Cpe=uj(el),dm=Cpe.right;uj(RB).center;class xI extends Map{constructor(t,r=jpe){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(wI(this,t))}has(t){return super.has(wI(this,t))}set(t,r){return super.set(Epe(this,t),r)}delete(t){return super.delete(Tpe(this,t))}}function wI({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function Epe({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function Tpe({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function jpe(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Ape(e=el){if(e===el)return NB;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 NB(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const kpe=Math.sqrt(50),Rpe=Math.sqrt(10),Npe=Math.sqrt(2);function Cy(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>=kpe?10:o>=Rpe?5:o>=Npe?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?Cy(e,t,r*2):[s,c,u]}function gC(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?Cy(t,e,r):Cy(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 yC(e,t,r){return t=+t,e=+e,r=+r,Cy(e,t,r)[2]}function bC(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?yC(t,e,r):yC(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function OI(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function SI(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function MB(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?NB:Ape(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)),x=Math.min(n,Math.floor(t+(c-u)*p/c+v));MB(e,t,b,x,i)}const o=e[t];let a=r,s=n;for(dh(e,r,t),i(e[n],o)>0&&dh(e,r,n);a<s;){for(dh(e,a,s),++a,--s;i(e[a],o)<0;)++a;for(;i(e[s],o)>0;)--s}i(e[r],o)===0?dh(e,r,s):(++s,dh(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function dh(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function Mpe(e,t,r){if(e=Float64Array.from(Ppe(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return SI(e);if(t>=1)return OI(e);var n,i=(n-1)*t,o=Math.floor(i),a=OI(MB(e,o).subarray(0,o+1)),s=SI(e.subarray(o+1));return a+(s-a)*(i-o)}}function Lpe(e,t,r=RB){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 Ipe(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 Ji(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function is(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 _C=Symbol("implicit");function cj(){var e=new xI,t=[],r=[],n=_C;function i(o){let a=e.get(o);if(a===void 0){if(n!==_C)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 xI;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 cj(t,r).unknown(n)},Ji.apply(i,arguments),i}function yp(){var e=cj().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,x=b?i:n,_=b?n:i;o=(_-x)/Math.max(1,v-c+u*2),s&&(o=Math.floor(o)),x+=(_-x-o*(v-c))*h,a=o*(1-c),s&&(x=Math.round(x),a=Math.round(a));var w=Ipe(v).map(function(O){return x+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 yp(t(),[n,i]).round(s).paddingInner(c).paddingOuter(u).align(h)},Ji.apply(p(),arguments)}function LB(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return LB(t())},e}function Fh(){return LB(yp.apply(null,arguments).paddingInner(1))}function fj(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function IB(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function hm(){}var bp=.7,Ey=1/bp,nf="\\s*([+-]?\\d+)\\s*",_p="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ea="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Dpe=/^#([0-9a-f]{3,8})$/,$pe=new RegExp(`^rgb\\(${nf},${nf},${nf}\\)$`),Fpe=new RegExp(`^rgb\\(${ea},${ea},${ea}\\)$`),Bpe=new RegExp(`^rgba\\(${nf},${nf},${nf},${_p}\\)$`),Upe=new RegExp(`^rgba\\(${ea},${ea},${ea},${_p}\\)$`),zpe=new RegExp(`^hsl\\(${_p},${ea},${ea}\\)$`),Vpe=new RegExp(`^hsla\\(${_p},${ea},${ea},${_p}\\)$`),PI={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};fj(hm,xp,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:CI,formatHex:CI,formatHex8:Wpe,formatHsl:qpe,formatRgb:EI,toString:EI});function CI(){return this.rgb().formatHex()}function Wpe(){return this.rgb().formatHex8()}function qpe(){return DB(this).formatHsl()}function EI(){return this.rgb().formatRgb()}function xp(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Dpe.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?TI(t):r===3?new qn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Jv(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Jv(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=$pe.exec(e))?new qn(t[1],t[2],t[3],1):(t=Fpe.exec(e))?new qn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Bpe.exec(e))?Jv(t[1],t[2],t[3],t[4]):(t=Upe.exec(e))?Jv(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=zpe.exec(e))?kI(t[1],t[2]/100,t[3]/100,1):(t=Vpe.exec(e))?kI(t[1],t[2]/100,t[3]/100,t[4]):PI.hasOwnProperty(e)?TI(PI[e]):e==="transparent"?new qn(NaN,NaN,NaN,0):null}function TI(e){return new qn(e>>16&255,e>>8&255,e&255,1)}function Jv(e,t,r,n){return n<=0&&(e=t=r=NaN),new qn(e,t,r,n)}function Hpe(e){return e instanceof hm||(e=xp(e)),e?(e=e.rgb(),new qn(e.r,e.g,e.b,e.opacity)):new qn}function xC(e,t,r,n){return arguments.length===1?Hpe(e):new qn(e,t,r,n??1)}function qn(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}fj(qn,xC,IB(hm,{brighter(e){return e=e==null?Ey:Math.pow(Ey,e),new qn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?bp:Math.pow(bp,e),new qn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new qn(yu(this.r),yu(this.g),yu(this.b),Ty(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:jI,formatHex:jI,formatHex8:Gpe,formatRgb:AI,toString:AI}));function jI(){return`#${fu(this.r)}${fu(this.g)}${fu(this.b)}`}function Gpe(){return`#${fu(this.r)}${fu(this.g)}${fu(this.b)}${fu((isNaN(this.opacity)?1:this.opacity)*255)}`}function AI(){const e=Ty(this.opacity);return`${e===1?"rgb(":"rgba("}${yu(this.r)}, ${yu(this.g)}, ${yu(this.b)}${e===1?")":`, ${e})`}`}function Ty(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function yu(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function fu(e){return e=yu(e),(e<16?"0":"")+e.toString(16)}function kI(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new bo(e,t,r,n)}function DB(e){if(e instanceof bo)return new bo(e.h,e.s,e.l,e.opacity);if(e instanceof hm||(e=xp(e)),!e)return new bo;if(e instanceof bo)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 bo(a,s,c,e.opacity)}function Kpe(e,t,r,n){return arguments.length===1?DB(e):new bo(e,t,r,n??1)}function bo(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}fj(bo,Kpe,IB(hm,{brighter(e){return e=e==null?Ey:Math.pow(Ey,e),new bo(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?bp:Math.pow(bp,e),new bo(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 qn(Y2(e>=240?e-240:e+120,i,n),Y2(e,i,n),Y2(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new bo(RI(this.h),eg(this.s),eg(this.l),Ty(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=Ty(this.opacity);return`${e===1?"hsl(":"hsla("}${RI(this.h)}, ${eg(this.s)*100}%, ${eg(this.l)*100}%${e===1?")":`, ${e})`}`}}));function RI(e){return e=(e||0)%360,e<0?e+360:e}function eg(e){return Math.max(0,Math.min(1,e||0))}function Y2(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 dj=e=>()=>e;function Ype(e,t){return function(r){return e+r*t}}function Zpe(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 Xpe(e){return(e=+e)==1?$B:function(t,r){return r-t?Zpe(t,r,e):dj(isNaN(t)?r:t)}}function $B(e,t){var r=t-e;return r?Ype(e,r):dj(isNaN(e)?t:e)}const NI=function e(t){var r=Xpe(t);function n(i,o){var a=r((i=xC(i)).r,(o=xC(o)).r),s=r(i.g,o.g),c=r(i.b,o.b),u=$B(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 Qpe(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 Jpe(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function eme(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 tme(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function jy(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function rme(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 wC=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Z2=new RegExp(wC.source,"g");function nme(e){return function(){return e}}function ime(e){return function(t){return e(t)+""}}function ome(e,t){var r=wC.lastIndex=Z2.lastIndex=0,n,i,o,a=-1,s=[],c=[];for(e=e+"",t=t+"";(n=wC.exec(e))&&(i=Z2.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:jy(n,i)})),r=Z2.lastIndex;return r<t.length&&(o=t.slice(r),s[a]?s[a]+=o:s[++a]=o),s.length<2?c[0]?ime(c[0].x):nme(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"?dj(t):(r==="number"?jy:r==="string"?(n=xp(t))?(t=n,NI):ome:t instanceof xp?NI:t instanceof Date?tme:Jpe(t)?Qpe:Array.isArray(t)?eme:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?rme:jy)(e,t)}function hj(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function ame(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 sme(e){return function(){return e}}function Ay(e){return+e}var MI=[0,1];function Tn(e){return e}function OC(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:sme(isNaN(t)?NaN:.5)}function lme(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function ume(e,t,r){var n=e[0],i=e[1],o=t[0],a=t[1];return i<n?(n=OC(i,n),o=r(a,o)):(n=OC(n,i),o=r(o,a)),function(s){return o(n(s))}}function cme(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]=OC(e[a],e[a+1]),o[a]=r(t[a],t[a+1]);return function(s){var c=dm(e,s,1,n)-1;return o[c](i[c](s))}}function pm(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function sb(){var e=MI,t=MI,r=rd,n,i,o,a=Tn,s,c,u;function h(){var v=Math.min(e.length,t.length);return a!==Tn&&(a=lme(e[0],e[v-1])),s=v>2?cme:ume,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),jy)))(v)))},p.domain=function(v){return arguments.length?(e=Array.from(v,Ay),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=hj,h()},p.clamp=function(v){return arguments.length?(a=v?!0:Tn,h()):a!==Tn},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 pj(){return sb()(Tn,Tn)}function fme(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function ky(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=ky(Math.abs(e)),e?e[1]:NaN}function dme(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 hme(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var pme=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function wp(e){if(!(t=pme.exec(e)))throw new Error("invalid format: "+e);var t;return new mj({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]})}wp.prototype=mj.prototype;function mj(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+""}mj.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 mme(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 FB;function vme(e,t){var r=ky(e,t);if(!r)return e+"";var n=r[0],i=r[1],o=i-(FB=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")+ky(e,Math.max(0,t+o-1))[0]}function LI(e,t){var r=ky(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 II={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:fme,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)=>LI(e*100,t),r:LI,s:vme,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function DI(e){return e}var $I=Array.prototype.map,FI=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function gme(e){var t=e.grouping===void 0||e.thousands===void 0?DI:dme($I.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?DI:hme($I.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=wp(p);var v=p.fill,b=p.align,x=p.sign,_=p.symbol,w=p.zero,O=p.width,S=p.comma,E=p.precision,T=p.trim,A=p.type;A==="n"?(S=!0,A="g"):II[A]||(E===void 0&&(E=12),T=!0,A="g"),(w||v==="0"&&b==="=")&&(w=!0,v="0",b="=");var j=_==="$"?r:_==="#"&&/[boxX]/.test(A)?"0"+A.toLowerCase():"",N=_==="$"?n:/[%p]/.test(A)?a:"",F=II[A],V=/[defgprs%]/.test(A);E=E===void 0?6:/[gprs]/.test(A)?Math.max(1,Math.min(21,E)):Math.max(0,Math.min(20,E));function B(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),E),T&&(W=mme(W)),se&&+W==0&&x!=="+"&&(se=!1),q=(se?x==="("?x:s:x==="-"||x==="("?"":x)+q,J=(A==="s"?FI[8+FB/3]:"")+J+(se&&x==="("?")":""),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}}}S&&!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(S&&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=wp(p),p.type="f",p)),x=Math.max(-8,Math.min(8,Math.floor(xf(v)/3)))*3,_=Math.pow(10,-x),w=FI[8+x/3];return function(O){return b(_*O)+w}}return{format:u,formatPrefix:h}}var tg,vj,BB;yme({thousands:",",grouping:[3],currency:["$",""]});function yme(e){return tg=gme(e),vj=tg.format,BB=tg.formatPrefix,tg}function bme(e){return Math.max(0,-xf(Math.abs(e)))}function _me(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(xf(t)/3)))*3-xf(Math.abs(e)))}function xme(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,xf(t)-xf(e))+1}function UB(e,t,r,n){var i=bC(e,t,r),o;switch(n=wp(n??",f"),n.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(o=_me(i,a))&&(n.precision=o),BB(n,a)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(o=xme(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=o-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(o=bme(i))&&(n.precision=o-(n.type==="%")*2);break}}return vj(n)}function yl(e){var t=e.domain;return e.ticks=function(r){var n=t();return gC(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return UB(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=yC(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 Ry(){var e=pj();return e.copy=function(){return pm(e,Ry())},Ji.apply(e,arguments),yl(e)}function zB(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,Ay),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return zB(e).unknown(t)},e=arguments.length?Array.from(e,Ay):[0,1],yl(r)}function VB(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 BI(e){return Math.log(e)}function UI(e){return Math.exp(e)}function wme(e){return-Math.log(-e)}function Ome(e){return-Math.exp(-e)}function Sme(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Pme(e){return e===10?Sme:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Cme(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 zI(e){return(t,r)=>-e(-t,r)}function gj(e){const t=e(BI,UI),r=t.domain;let n=10,i,o;function a(){return i=Cme(n),o=Pme(n),r()[0]<0?(i=zI(i),o=zI(o),e(wme,Ome)):e(BI,UI),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(x=1;x<n;++x)if(_=v<0?x/o(-v):x*o(v),!(_<u)){if(_>h)break;O.push(_)}}else for(;v<=b;++v)for(x=n-1;x>=1;--x)if(_=v>0?x/o(-v):x*o(v),!(_<u)){if(_>h)break;O.push(_)}O.length*2<w&&(O=gC(u,h,w))}else O=gC(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=wp(c)).precision==null&&(c.trim=!0),c=vj(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(VB(r(),{floor:s=>o(Math.floor(i(s))),ceil:s=>o(Math.ceil(i(s)))})),t}function WB(){const e=gj(sb()).domain([1,10]);return e.copy=()=>pm(e,WB()).base(e.base()),Ji.apply(e,arguments),e}function VI(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function WI(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function yj(e){var t=1,r=e(VI(t),WI(t));return r.constant=function(n){return arguments.length?e(VI(t=+n),WI(t)):t},yl(r)}function qB(){var e=yj(sb());return e.copy=function(){return pm(e,qB()).constant(e.constant())},Ji.apply(e,arguments)}function qI(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Eme(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Tme(e){return e<0?-e*e:e*e}function bj(e){var t=e(Tn,Tn),r=1;function n(){return r===1?e(Tn,Tn):r===.5?e(Eme,Tme):e(qI(r),qI(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},yl(t)}function _j(){var e=bj(sb());return e.copy=function(){return pm(e,_j()).exponent(e.exponent())},Ji.apply(e,arguments),e}function jme(){return _j.apply(null,arguments).exponent(.5)}function HI(e){return Math.sign(e)*e*e}function Ame(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function HB(){var e=pj(),t=[0,1],r=!1,n;function i(o){var a=Ame(e(o));return isNaN(a)?n:r?Math.round(a):a}return i.invert=function(o){return e.invert(HI(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,Ay)).map(HI)),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 HB(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Ji.apply(i,arguments),yl(i)}function GB(){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]=Lpe(e,a/s);return o}function o(a){return a==null||isNaN(a=+a)?n:t[dm(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(el),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 GB().domain(e).range(t).unknown(n)},Ji.apply(o,arguments)}function KB(){var e=0,t=1,r=1,n=[.5],i=[0,1],o;function a(c){return c!=null&&c<=c?i[dm(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 KB().domain([e,t]).range(i).unknown(o)},Ji.apply(yl(a),arguments)}function YB(){var e=[.5],t=[0,1],r,n=1;function i(o){return o!=null&&o<=o?t[dm(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 YB().domain(e).range(t).unknown(r)},Ji.apply(i,arguments)}const X2=new Date,Q2=new Date;function qr(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=>qr(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)=>(X2.setTime(+o),Q2.setTime(+a),e(X2),e(Q2),Math.floor(r(X2,Q2))),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 Ny=qr(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Ny.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?qr(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Ny);Ny.range;const La=1e3,qi=La*60,Ia=qi*60,Ya=Ia*24,xj=Ya*7,GI=Ya*30,J2=Ya*365,du=qr(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*La)},(e,t)=>(t-e)/La,e=>e.getUTCSeconds());du.range;const wj=qr(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*La)},(e,t)=>{e.setTime(+e+t*qi)},(e,t)=>(t-e)/qi,e=>e.getMinutes());wj.range;const Oj=qr(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*qi)},(e,t)=>(t-e)/qi,e=>e.getUTCMinutes());Oj.range;const Sj=qr(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*La-e.getMinutes()*qi)},(e,t)=>{e.setTime(+e+t*Ia)},(e,t)=>(t-e)/Ia,e=>e.getHours());Sj.range;const Pj=qr(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Ia)},(e,t)=>(t-e)/Ia,e=>e.getUTCHours());Pj.range;const mm=qr(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*qi)/Ya,e=>e.getDate()-1);mm.range;const lb=qr(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ya,e=>e.getUTCDate()-1);lb.range;const ZB=qr(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ya,e=>Math.floor(e/Ya));ZB.range;function Du(e){return qr(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())*qi)/xj)}const ub=Du(0),My=Du(1),kme=Du(2),Rme=Du(3),wf=Du(4),Nme=Du(5),Mme=Du(6);ub.range;My.range;kme.range;Rme.range;wf.range;Nme.range;Mme.range;function $u(e){return qr(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)/xj)}const cb=$u(0),Ly=$u(1),Lme=$u(2),Ime=$u(3),Of=$u(4),Dme=$u(5),$me=$u(6);cb.range;Ly.range;Lme.range;Ime.range;Of.range;Dme.range;$me.range;const Cj=qr(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 Ej=qr(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());Ej.range;const Za=qr(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());Za.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:qr(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)});Za.range;const Xa=qr(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());Xa.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:qr(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)});Xa.range;function XB(e,t,r,n,i,o){const a=[[du,1,La],[du,5,5*La],[du,15,15*La],[du,30,30*La],[o,1,qi],[o,5,5*qi],[o,15,15*qi],[o,30,30*qi],[i,1,Ia],[i,3,3*Ia],[i,6,6*Ia],[i,12,12*Ia],[n,1,Ya],[n,2,2*Ya],[r,1,xj],[t,1,GI],[t,3,3*GI],[e,1,J2]];function s(u,h,p){const v=h<u;v&&([u,h]=[h,u]);const b=p&&typeof p.range=="function"?p:c(u,h,p),x=b?b.range(u,+h+1):[];return v?x.reverse():x}function c(u,h,p){const v=Math.abs(h-u)/p,b=uj(([,,w])=>w).right(a,v);if(b===a.length)return e.every(bC(u/J2,h/J2,p));if(b===0)return Ny.every(Math.max(bC(u,h,p),1));const[x,_]=a[v/a[b-1][2]<a[b][2]/v?b-1:b];return x.every(_)}return[s,c]}const[Fme,Bme]=XB(Xa,Ej,cb,ZB,Pj,Oj),[Ume,zme]=XB(Za,Cj,ub,mm,Sj,wj);function eO(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 tO(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 hh(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function Vme(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=ph(i),h=mh(i),p=ph(o),v=mh(o),b=ph(a),x=mh(a),_=ph(s),w=mh(s),O=ph(c),S=mh(c),E={a:se,A:oe,b:K,B:G,c:null,d:JI,e:JI,f:dve,g:wve,G:Sve,H:uve,I:cve,j:fve,L:QB,m:hve,M:pve,p:z,q:re,Q:rD,s:nD,S:mve,u:vve,U:gve,V:yve,w:bve,W:_ve,x:null,X:null,y:xve,Y:Ove,Z:Pve,"%":tD},T={a:X,A:le,b:ce,B:de,c:null,d:eD,e:eD,f:jve,g:Fve,G:Uve,H:Cve,I:Eve,j:Tve,L:eU,m:Ave,M:kve,p:be,q:M,Q:rD,s:nD,S:Rve,u:Nve,U:Mve,V:Lve,w:Ive,W:Dve,x:null,X:null,y:$ve,Y:Bve,Z:zve,"%":tD},A={a:B,A:W,b:q,B:J,c:Q,d:XI,e:XI,f:ove,g:ZI,G:YI,H:QI,I:QI,j:tve,L:ive,m:eve,M:rve,p:V,q:Jme,Q:sve,s:lve,S:nve,u:Kme,U:Yme,V:Zme,w:Gme,W:Xme,x:ne,X:ae,y:ZI,Y:YI,Z:Qme,"%":ave};E.x=j(r,E),E.X=j(n,E),E.c=j(t,E),T.x=j(r,T),T.X=j(n,T),T.c=j(t,T);function j(D,Y){return function(ue){var ie=[],he=-1,Se=0,Fe=D.length,ge,Ee,je;for(ue instanceof Date||(ue=new Date(+ue));++he<Fe;)D.charCodeAt(he)===37&&(ie.push(D.slice(Se,he)),(Ee=KI[ge=D.charAt(++he)])!=null?ge=D.charAt(++he):Ee=ge==="e"?" ":"0",(je=Y[ge])&&(ge=je(ue,Ee)),ie.push(ge),Se=he+1);return ie.push(D.slice(Se,he)),ie.join("")}}function N(D,Y){return function(ue){var ie=hh(1900,void 0,1),he=F(ie,D,ue+="",0),Se,Fe;if(he!=ue.length)return null;if("Q"in ie)return new Date(ie.Q);if("s"in ie)return new Date(ie.s*1e3+("L"in ie?ie.L:0));if(Y&&!("Z"in ie)&&(ie.Z=0),"p"in ie&&(ie.H=ie.H%12+ie.p*12),ie.m===void 0&&(ie.m="q"in ie?ie.q:0),"V"in ie){if(ie.V<1||ie.V>53)return null;"w"in ie||(ie.w=1),"Z"in ie?(Se=tO(hh(ie.y,0,1)),Fe=Se.getUTCDay(),Se=Fe>4||Fe===0?Ly.ceil(Se):Ly(Se),Se=lb.offset(Se,(ie.V-1)*7),ie.y=Se.getUTCFullYear(),ie.m=Se.getUTCMonth(),ie.d=Se.getUTCDate()+(ie.w+6)%7):(Se=eO(hh(ie.y,0,1)),Fe=Se.getDay(),Se=Fe>4||Fe===0?My.ceil(Se):My(Se),Se=mm.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?tO(hh(ie.y,0,1)).getUTCDay():eO(hh(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,tO(ie)):eO(ie)}}function F(D,Y,ue,ie){for(var he=0,Se=Y.length,Fe=ue.length,ge,Ee;he<Se;){if(ie>=Fe)return-1;if(ge=Y.charCodeAt(he++),ge===37){if(ge=Y.charAt(he++),Ee=A[ge in KI?Y.charAt(he++):ge],!Ee||(ie=Ee(D,ue,ie))<0)return-1}else if(ge!=ue.charCodeAt(ie++))return-1}return ie}function V(D,Y,ue){var ie=u.exec(Y.slice(ue));return ie?(D.p=h.get(ie[0].toLowerCase()),ue+ie[0].length):-1}function B(D,Y,ue){var ie=b.exec(Y.slice(ue));return ie?(D.w=x.get(ie[0].toLowerCase()),ue+ie[0].length):-1}function W(D,Y,ue){var ie=p.exec(Y.slice(ue));return ie?(D.w=v.get(ie[0].toLowerCase()),ue+ie[0].length):-1}function q(D,Y,ue){var ie=O.exec(Y.slice(ue));return ie?(D.m=S.get(ie[0].toLowerCase()),ue+ie[0].length):-1}function J(D,Y,ue){var ie=_.exec(Y.slice(ue));return ie?(D.m=w.get(ie[0].toLowerCase()),ue+ie[0].length):-1}function Q(D,Y,ue){return F(D,t,Y,ue)}function ne(D,Y,ue){return F(D,r,Y,ue)}function ae(D,Y,ue){return F(D,n,Y,ue)}function se(D){return a[D.getDay()]}function oe(D){return o[D.getDay()]}function K(D){return c[D.getMonth()]}function G(D){return s[D.getMonth()]}function z(D){return i[+(D.getHours()>=12)]}function re(D){return 1+~~(D.getMonth()/3)}function X(D){return a[D.getUTCDay()]}function le(D){return o[D.getUTCDay()]}function ce(D){return c[D.getUTCMonth()]}function de(D){return s[D.getUTCMonth()]}function be(D){return i[+(D.getUTCHours()>=12)]}function M(D){return 1+~~(D.getUTCMonth()/3)}return{format:function(D){var Y=j(D+="",E);return Y.toString=function(){return D},Y},parse:function(D){var Y=N(D+="",!1);return Y.toString=function(){return D},Y},utcFormat:function(D){var Y=j(D+="",T);return Y.toString=function(){return D},Y},utcParse:function(D){var Y=N(D+="",!0);return Y.toString=function(){return D},Y}}}var KI={"-":"",_:" ",0:"0"},en=/^\s*\d+/,Wme=/^%/,qme=/[\\^$*+?|[\]().{}]/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 Hme(e){return e.replace(qme,"\\$&")}function ph(e){return new RegExp("^(?:"+e.map(Hme).join("|")+")","i")}function mh(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function Gme(e,t,r){var n=en.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function Kme(e,t,r){var n=en.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function Yme(e,t,r){var n=en.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function Zme(e,t,r){var n=en.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function Xme(e,t,r){var n=en.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function YI(e,t,r){var n=en.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function ZI(e,t,r){var n=en.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function Qme(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 Jme(e,t,r){var n=en.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function eve(e,t,r){var n=en.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function XI(e,t,r){var n=en.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function tve(e,t,r){var n=en.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function QI(e,t,r){var n=en.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function rve(e,t,r){var n=en.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function nve(e,t,r){var n=en.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function ive(e,t,r){var n=en.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function ove(e,t,r){var n=en.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function ave(e,t,r){var n=Wme.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function sve(e,t,r){var n=en.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function lve(e,t,r){var n=en.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function JI(e,t){return It(e.getDate(),t,2)}function uve(e,t){return It(e.getHours(),t,2)}function cve(e,t){return It(e.getHours()%12||12,t,2)}function fve(e,t){return It(1+mm.count(Za(e),e),t,3)}function QB(e,t){return It(e.getMilliseconds(),t,3)}function dve(e,t){return QB(e,t)+"000"}function hve(e,t){return It(e.getMonth()+1,t,2)}function pve(e,t){return It(e.getMinutes(),t,2)}function mve(e,t){return It(e.getSeconds(),t,2)}function vve(e){var t=e.getDay();return t===0?7:t}function gve(e,t){return It(ub.count(Za(e)-1,e),t,2)}function JB(e){var t=e.getDay();return t>=4||t===0?wf(e):wf.ceil(e)}function yve(e,t){return e=JB(e),It(wf.count(Za(e),e)+(Za(e).getDay()===4),t,2)}function bve(e){return e.getDay()}function _ve(e,t){return It(My.count(Za(e)-1,e),t,2)}function xve(e,t){return It(e.getFullYear()%100,t,2)}function wve(e,t){return e=JB(e),It(e.getFullYear()%100,t,2)}function Ove(e,t){return It(e.getFullYear()%1e4,t,4)}function Sve(e,t){var r=e.getDay();return e=r>=4||r===0?wf(e):wf.ceil(e),It(e.getFullYear()%1e4,t,4)}function Pve(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+It(t/60|0,"0",2)+It(t%60,"0",2)}function eD(e,t){return It(e.getUTCDate(),t,2)}function Cve(e,t){return It(e.getUTCHours(),t,2)}function Eve(e,t){return It(e.getUTCHours()%12||12,t,2)}function Tve(e,t){return It(1+lb.count(Xa(e),e),t,3)}function eU(e,t){return It(e.getUTCMilliseconds(),t,3)}function jve(e,t){return eU(e,t)+"000"}function Ave(e,t){return It(e.getUTCMonth()+1,t,2)}function kve(e,t){return It(e.getUTCMinutes(),t,2)}function Rve(e,t){return It(e.getUTCSeconds(),t,2)}function Nve(e){var t=e.getUTCDay();return t===0?7:t}function Mve(e,t){return It(cb.count(Xa(e)-1,e),t,2)}function tU(e){var t=e.getUTCDay();return t>=4||t===0?Of(e):Of.ceil(e)}function Lve(e,t){return e=tU(e),It(Of.count(Xa(e),e)+(Xa(e).getUTCDay()===4),t,2)}function Ive(e){return e.getUTCDay()}function Dve(e,t){return It(Ly.count(Xa(e)-1,e),t,2)}function $ve(e,t){return It(e.getUTCFullYear()%100,t,2)}function Fve(e,t){return e=tU(e),It(e.getUTCFullYear()%100,t,2)}function Bve(e,t){return It(e.getUTCFullYear()%1e4,t,4)}function Uve(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Of(e):Of.ceil(e),It(e.getUTCFullYear()%1e4,t,4)}function zve(){return"+0000"}function tD(){return"%"}function rD(e){return+e}function nD(e){return Math.floor(+e/1e3)}var Lc,rU,nU;Vve({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Vve(e){return Lc=Vme(e),rU=Lc.format,Lc.parse,nU=Lc.utcFormat,Lc.utcParse,Lc}function Wve(e){return new Date(e)}function qve(e){return e instanceof Date?+e:+new Date(+e)}function Tj(e,t,r,n,i,o,a,s,c,u){var h=pj(),p=h.invert,v=h.domain,b=u(".%L"),x=u(":%S"),_=u("%I:%M"),w=u("%I %p"),O=u("%a %d"),S=u("%b %d"),E=u("%B"),T=u("%Y");function A(j){return(c(j)<j?b:s(j)<j?x:a(j)<j?_:o(j)<j?w:n(j)<j?i(j)<j?O:S:r(j)<j?E:T)(j)}return h.invert=function(j){return new Date(p(j))},h.domain=function(j){return arguments.length?v(Array.from(j,qve)):v().map(Wve)},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(VB(N,j)):h},h.copy=function(){return pm(h,Tj(e,t,r,n,i,o,a,s,c,u))},h}function Hve(){return Ji.apply(Tj(Ume,zme,Za,Cj,ub,mm,Sj,wj,du,rU).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Gve(){return Ji.apply(Tj(Fme,Bme,Xa,Ej,cb,lb,Pj,Oj,du,nU).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function fb(){var e=0,t=1,r,n,i,o,a=Tn,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,x;return arguments.length?([b,x]=v,a=p(b,x),u):[a(0),a(1)]}}return u.range=h(rd),u.rangeRound=h(hj),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 bl(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function iU(){var e=yl(fb()(Tn));return e.copy=function(){return bl(e,iU())},is.apply(e,arguments)}function oU(){var e=gj(fb()).domain([1,10]);return e.copy=function(){return bl(e,oU()).base(e.base())},is.apply(e,arguments)}function aU(){var e=yj(fb());return e.copy=function(){return bl(e,aU()).constant(e.constant())},is.apply(e,arguments)}function jj(){var e=bj(fb());return e.copy=function(){return bl(e,jj()).exponent(e.exponent())},is.apply(e,arguments)}function Kve(){return jj.apply(null,arguments).exponent(.5)}function sU(){var e=[],t=Tn;function r(n){if(n!=null&&!isNaN(n=+n))return t((dm(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(el),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)=>Mpe(e,o/n))},r.copy=function(){return sU(t).domain(e)},is.apply(r,arguments)}function db(){var e=0,t=.5,r=1,n=1,i,o,a,s,c,u=Tn,h,p=!1,v;function b(_){return isNaN(_=+_)?v:(_=.5+((_=+h(_))-o)*(n*_<n*o?s:c),u(p?Math.max(0,Math.min(1,_)):_))}b.domain=function(_){return arguments.length?([e,t,r]=_,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(_){return arguments.length?(p=!!_,b):p},b.interpolator=function(_){return arguments.length?(u=_,b):u};function x(_){return function(w){var O,S,E;return arguments.length?([O,S,E]=w,u=ame(_,[O,S,E]),b):[u(0),u(.5),u(1)]}}return b.range=x(rd),b.rangeRound=x(hj),b.unknown=function(_){return arguments.length?(v=_,b):v},function(_){return h=_,i=_(e),o=_(t),a=_(r),s=i===o?0:.5/(o-i),c=o===a?0:.5/(a-o),n=o<i?-1:1,b}}function lU(){var e=yl(db()(Tn));return e.copy=function(){return bl(e,lU())},is.apply(e,arguments)}function uU(){var e=gj(db()).domain([.1,1,10]);return e.copy=function(){return bl(e,uU()).base(e.base())},is.apply(e,arguments)}function cU(){var e=yj(db());return e.copy=function(){return bl(e,cU()).constant(e.constant())},is.apply(e,arguments)}function Aj(){var e=bj(db());return e.copy=function(){return bl(e,Aj()).exponent(e.exponent())},is.apply(e,arguments)}function Yve(){return Aj.apply(null,arguments).exponent(.5)}const iD=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:yp,scaleDiverging:lU,scaleDivergingLog:uU,scaleDivergingPow:Aj,scaleDivergingSqrt:Yve,scaleDivergingSymlog:cU,scaleIdentity:zB,scaleImplicit:_C,scaleLinear:Ry,scaleLog:WB,scaleOrdinal:cj,scalePoint:Fh,scalePow:_j,scaleQuantile:GB,scaleQuantize:KB,scaleRadial:HB,scaleSequential:iU,scaleSequentialLog:oU,scaleSequentialPow:jj,scaleSequentialQuantile:sU,scaleSequentialSqrt:Kve,scaleSequentialSymlog:aU,scaleSqrt:jme,scaleSymlog:qB,scaleThreshold:YB,scaleTime:Hve,scaleUtc:Gve,tickFormat:UB},Symbol.toStringTag,{value:"Module"}));var rO,oD;function hb(){if(oD)return rO;oD=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 rO=t,rO}var nO,aD;function fU(){if(aD)return nO;aD=1;function e(t,r){return t>r}return nO=e,nO}var iO,sD;function Zve(){if(sD)return iO;sD=1;var e=hb(),t=fU(),r=td();function n(i){return i&&i.length?e(i,r,t):void 0}return iO=n,iO}var Xve=Zve();const Ks=Nt(Xve);var oO,lD;function dU(){if(lD)return oO;lD=1;function e(t,r){return t<r}return oO=e,oO}var aO,uD;function Qve(){if(uD)return aO;uD=1;var e=hb(),t=dU(),r=td();function n(i){return i&&i.length?e(i,r,t):void 0}return aO=n,aO}var Jve=Qve();const pb=Nt(Jve);var sO,cD;function ege(){if(cD)return sO;cD=1;var e=HT(),t=fa(),r=_B(),n=Xn();function i(o,a){var s=n(o)?e:r;return s(o,t(a,3))}return sO=i,sO}var lO,fD;function tge(){if(fD)return lO;fD=1;var e=yB(),t=ege();function r(n,i){return e(t(n,i),1)}return lO=r,lO}var rge=tge();const nge=Nt(rge);var uO,dD;function ige(){if(dD)return uO;dD=1;var e=ij();function t(r,n){return e(r,n)}return uO=t,uO}var oge=ige();const ul=Nt(oge);var nd=1e9,age={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Rj,lr=!0,Xi="[DecimalError] ",bu=Xi+"Invalid argument: ",kj=Xi+"Exponent out of range: ",id=Math.floor,ou=Math.pow,sge=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,pi,Zr=1e7,nr=7,hU=9007199254740991,Iy=id(hU/nr),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)*nr;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 Ua(this,new this.constructor(e))};et.dividedToIntegerBy=et.idiv=function(e){var t=this,r=t.constructor;return Ht(Ua(t,new r(e),0,1),r.precision)};et.equals=et.eq=function(e){return!this.cmp(e)};et.exponent=function(){return Lr(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(pi))throw Error(Xi+"NaN");if(r.s<1)throw Error(Xi+(r.s?"NaN":"-Infinity"));return r.eq(pi)?new n(0):(lr=!1,t=Ua(Op(r,o),Op(e,o),o),lr=!0,Ht(t,i))};et.minus=et.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?vU(t,e):pU(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(Xi+"NaN");return r.s?(lr=!1,t=Ua(r,e,0,1).times(e),lr=!0,r.minus(t)):Ht(new n(r),i)};et.naturalExponential=et.exp=function(){return mU(this)};et.naturalLogarithm=et.ln=function(){return Op(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?pU(t,e):vU(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(bu+e);if(t=Lr(i)+1,n=i.d.length-1,r=n*nr+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(Xi+"NaN")}for(e=Lr(s),lr=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=Xo(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(Ua(s,o,a+2)).times(.5),Xo(o.d).slice(0,a)===(t=Xo(n.d)).slice(0,a)){if(t=t.slice(a-3,a+1),i==a&&t=="4999"){if(Ht(o,r+1,0),o.times(o).eq(s)){n=o;break}}else if(t!="9999")break;a+=4}return lr=!0,Ht(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%Zr|0,t=s/Zr|0;o[i]=(o[i]+t)%Zr|0}for(;!o[--a];)o.pop();return t?++r:o.shift(),e.d=o,e.e=r,lr?Ht(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:(oa(e,0,nd),t===void 0?t=n.rounding:oa(t,0,8),Ht(r,e+Lr(r)+1,t))};et.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=ju(n,!0):(oa(e,0,nd),t===void 0?t=i.rounding:oa(t,0,8),n=Ht(new i(n),e+1,t),r=ju(n,!0,e+1)),r};et.toFixed=function(e,t){var r,n,i=this,o=i.constructor;return e===void 0?ju(i):(oa(e,0,nd),t===void 0?t=o.rounding:oa(t,0,8),n=Ht(new o(i),e+Lr(i)+1,t),r=ju(n.abs(),!1,e+Lr(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};et.toInteger=et.toint=function(){var e=this,t=e.constructor;return Ht(new t(e),Lr(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(pi);if(s=new c(s),!s.s){if(e.s<1)throw Error(Xi+"Infinity");return s}if(s.eq(pi))return s;if(n=c.precision,e.eq(pi))return Ht(s,n);if(t=e.e,r=e.d.length-1,a=t>=r,o=s.s,a){if((r=h<0?-h:h)<=hU){for(i=new c(pi),t=Math.ceil(n/nr+4),lr=!1;r%2&&(i=i.times(s),pD(i.d,t)),r=id(r/2),r!==0;)s=s.times(s),pD(s.d,t);return lr=!0,e.s<0?new c(pi).div(i):Ht(i,n)}}else if(o<0)throw Error(Xi+"NaN");return o=o<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,lr=!1,i=e.times(Op(s,n+u)),lr=!0,i=mU(i),i.s=o,i};et.toPrecision=function(e,t){var r,n,i=this,o=i.constructor;return e===void 0?(r=Lr(i),n=ju(i,r<=o.toExpNeg||r>=o.toExpPos)):(oa(e,1,nd),t===void 0?t=o.rounding:oa(t,0,8),i=Ht(new o(i),e,t),r=Lr(i),n=ju(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):(oa(e,1,nd),t===void 0?t=n.rounding:oa(t,0,8)),Ht(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=Lr(e),r=e.constructor;return ju(e,t<=r.toExpNeg||t>=r.toExpPos)};function pU(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)),lr?Ht(t,p):t;if(c=e.d,u=t.d,a=e.e,i=t.e,c=c.slice(),o=a-i,o){for(o<0?(n=c,o=-o,s=u.length):(n=u,i=a,s=c.length),a=Math.ceil(p/nr),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)/Zr|0,c[o]%=Zr;for(r&&(c.unshift(r),++i),s=c.length;c[--s]==0;)c.pop();return t.d=c,t.e=i,lr?Ht(t,p):t}function oa(e,t,r){if(e!==~~e||e<t||e>r)throw Error(bu+e)}function Xo(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=nr-n.length,r&&(o+=Hs(r)),o+=n;a=e[t],n=a+"",r=nr-n.length,r&&(o+=Hs(r))}else if(a===0)return"0";for(;a%10===0;)a/=10;return o+a}var Ua=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%Zr|0,a=o/Zr|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*Zr+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,S,E,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(Xi+"Division by zero");for(c=n.e-i.e,N=q.length,A=W.length,b=new V(B),x=b.d=[],u=0;q[u]==(W[u]||0);)++u;if(q[u]>(W[u]||0)&&--c,o==null?S=o=V.precision:a?S=o+(Lr(n)-Lr(i))+1:S=o,S<0)return new V(0);if(S=S/nr+2|0,u=0,N==1)for(h=0,q=q[0],S++;(u<A||h)&&S--;u++)E=h*Zr+(W[u]||0),x[u]=E/q|0,h=E%q|0;else{for(h=Zr/(q[0]+1)|0,h>1&&(q=e(q,h),W=e(W,h),N=q.length,A=W.length),T=N,_=W.slice(0,N),w=_.length;w<N;)_[w++]=0;F=q.slice(),F.unshift(0),j=q[0],q[1]>=Zr/2&&++j;do h=0,s=t(q,_,N,w),s<0?(O=_[0],N!=w&&(O=O*Zr+(_[1]||0)),h=O/j|0,h>1?(h>=Zr&&(h=Zr-1),p=e(q,h),v=p.length,w=_.length,s=t(p,_,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(_,p,w),s==-1&&(w=_.length,s=t(q,_,N,w),s<1&&(h++,r(_,N<w?F:q,w))),w=_.length):s===0&&(h++,_=[0]),x[u++]=h,s&&_[0]?_[w++]=W[T]||0:(_=[W[T]],w=1);while((T++<A||_[0]!==void 0)&&S--)}return x[0]||x.shift(),b.e=c,Ht(b,a?o+Lr(b)+1:o)}}();function mU(e,t){var r,n,i,o,a,s,c=0,u=0,h=e.constructor,p=h.precision;if(Lr(e)>16)throw Error(kj+Lr(e));if(!e.s)return new h(pi);for(t==null?(lr=!1,s=p):s=t,a=new h(.03125);e.abs().gte(.1);)e=e.times(a),u+=5;for(n=Math.log(ou(2,u))/Math.LN10*2+5|0,s+=n,r=i=o=new h(pi),h.precision=s;;){if(i=Ht(i.times(e),s),r=r.times(++c),a=o.plus(Ua(i,r,s)),Xo(a.d).slice(0,s)===Xo(o.d).slice(0,s)){for(;u--;)o=Ht(o.times(o),s);return h.precision=p,t==null?(lr=!0,Ht(o,p)):o}o=a}}function Lr(e){for(var t=e.e*nr,r=e.d[0];r>=10;r/=10)t++;return t}function cO(e,t,r){if(t>e.LN10.sd())throw lr=!0,r&&(e.precision=r),Error(Xi+"LN10 precision limit exceeded");return Ht(new e(e.LN10),t)}function Hs(e){for(var t="";e--;)t+="0";return t}function Op(e,t){var r,n,i,o,a,s,c,u,h,p=1,v=10,b=e,x=b.d,_=b.constructor,w=_.precision;if(b.s<1)throw Error(Xi+(b.s?"NaN":"-Infinity"));if(b.eq(pi))return new _(0);if(t==null?(lr=!1,u=w):u=t,b.eq(10))return t==null&&(lr=!0),cO(_,u);if(u+=v,_.precision=u,r=Xo(x),n=r.charAt(0),o=Lr(b),Math.abs(o)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)b=b.times(e),r=Xo(b.d),n=r.charAt(0),p++;o=Lr(b),n>1?(b=new _("0."+r),o++):b=new _(n+"."+r.slice(1))}else return c=cO(_,u+2,w).times(o+""),b=Op(new _(n+"."+r.slice(1)),u-v).plus(c),_.precision=w,t==null?(lr=!0,Ht(b,w)):b;for(s=a=b=Ua(b.minus(pi),b.plus(pi),u),h=Ht(b.times(b),u),i=3;;){if(a=Ht(a.times(h),u),c=s.plus(Ua(a,new _(i),u)),Xo(c.d).slice(0,u)===Xo(s.d).slice(0,u))return s=s.times(2),o!==0&&(s=s.plus(cO(_,u+2,w).times(o+""))),s=Ua(s,new _(p),u),_.precision=w,t==null?(lr=!0,Ht(s,w)):s;s=c,i+=2}}function hD(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/nr),e.d=[],n=(r+1)%nr,r<0&&(n+=nr),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=nr;n<i;)e.d.push(+t.slice(n,n+=nr));t=t.slice(n),n=nr-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),lr&&(e.e>Iy||e.e<-Iy))throw Error(kj+r)}else e.s=0,e.e=0,e.d=[0];return e}function Ht(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+=nr,i=t,u=p[h=0];else{if(h=Math.ceil((n+1)/nr),o=p.length,h>=o)return e;for(u=o=p[h],a=1;o>=10;o/=10)a++;n%=nr,i=n-nr+a}if(r!==void 0&&(o=ou(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/ou(10,a-i):0:p[h-1])%10&1||r==(e.s<0?8:7))),t<1||!p[0])return c?(o=Lr(e),p.length=1,t=t-o-1,p[0]=ou(10,(nr-t%nr)%nr),e.e=id(-t/nr)||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=ou(10,nr-n),p[h]=i>0?(u/ou(10,a-i)%ou(10,i)|0)*o:0),c)for(;;)if(h==0){(p[0]+=o)==Zr&&(p[0]=1,++e.e);break}else{if(p[h]+=o,p[h]!=Zr)break;p[h--]=0,o=1}for(n=p.length;p[--n]===0;)p.pop();if(lr&&(e.e>Iy||e.e<-Iy))throw Error(kj+Lr(e));return e}function vU(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),lr?Ht(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/nr),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]=Zr-1;--c[o],c[i]+=Zr}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,lr?Ht(t,b):t):new v(0)}function ju(e,t,r){var n,i=Lr(e),o=Xo(e.d),a=o.length;return t?(r&&(n=r-a)>0?o=o.charAt(0)+"."+o.slice(1)+Hs(n):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+Hs(-i-1)+o,r&&(n=r-a)>0&&(o+=Hs(n))):i>=a?(o+=Hs(i+1-a),r&&(n=r-i-1)>0&&(o=o+"."+Hs(n))):((n=i+1)<a&&(o=o.slice(0,n)+"."+o.slice(n)),r&&(n=r-a)>0&&(i+1===a&&(o+="."),o+=Hs(n))),e.s<0?"-"+o:o}function pD(e,t){if(e.length>t)return e.length=t,!0}function gU(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(bu+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 hD(a,o.toString())}else if(typeof o!="string")throw Error(bu+o);if(o.charCodeAt(0)===45?(o=o.slice(1),a.s=-1):a.s=1,sge.test(o))hD(a,o);else throw Error(bu+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=gU,i.config=i.set=lge,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 lge(e){if(!e||typeof e!="object")throw Error(Xi+"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(bu+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(bu+r+": "+n);return this}var Rj=gU(age);pi=new Rj(1);const Vt=Rj;function uge(e){return hge(e)||dge(e)||fge(e)||cge()}function cge(){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 fge(e,t){if(e){if(typeof e=="string")return SC(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 SC(e,t)}}function dge(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function hge(e){if(Array.isArray(e))return SC(e)}function SC(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 pge=function(t){return t},yU={"@@functional/placeholder":!0},bU=function(t){return t===yU},mD=function(t){return function r(){return arguments.length===0||arguments.length===1&&bU(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},mge=function e(t,r){return t===1?r:mD(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!==yU}).length;return a>=t?r.apply(void 0,i):e(t-a,mD(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 bU(p)?c.shift():p});return r.apply(void 0,uge(h).concat(c))}))})},mb=function(t){return mge(t.length,t)},PC=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},vge=mb(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),gge=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return pge;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))}},CC=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},_U=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 yge(e){var t;return e===0?t=1:t=Math.floor(new Vt(e).abs().log(10).toNumber())+1,t}function bge(e,t,r){for(var n=new Vt(e),i=0,o=[];n.lt(t)&&i<1e5;)o.push(n.toNumber()),n=n.add(r),i++;return o}var _ge=mb(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),xge=mb(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),wge=mb(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const vb={rangeStep:bge,getDigitCount:yge,interpolateNumber:_ge,uninterpolateNumber:xge,uninterpolateTruncation:wge};function EC(e){return Pge(e)||Sge(e)||xU(e)||Oge()}function Oge(){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){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Pge(e){if(Array.isArray(e))return TC(e)}function Sp(e,t){return Tge(e)||Ege(e,t)||xU(e,t)||Cge()}function Cge(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xU(e,t){if(e){if(typeof e=="string")return TC(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 TC(e,t)}}function TC(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 Ege(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 Tge(e){if(Array.isArray(e))return e}function wU(e){var t=Sp(e,2),r=t[0],n=t[1],i=r,o=n;return r>n&&(i=n,o=r),[i,o]}function OU(e,t,r){if(e.lte(0))return new Vt(0);var n=vb.getDigitCount(e.toNumber()),i=new Vt(10).pow(n),o=e.div(i),a=n!==1?.05:.1,s=new Vt(Math.ceil(o.div(a).toNumber())).add(r).mul(a),c=s.mul(i);return t?c:new Vt(Math.ceil(c))}function jge(e,t,r){var n=1,i=new Vt(e);if(!i.isint()&&r){var o=Math.abs(e);o<1?(n=new Vt(10).pow(vb.getDigitCount(e)-1),i=new Vt(Math.floor(i.div(n).toNumber())).mul(n)):o>1&&(i=new Vt(Math.floor(e)))}else e===0?i=new Vt(Math.floor((t-1)/2)):r||(i=new Vt(Math.floor(e)));var a=Math.floor((t-1)/2),s=gge(vge(function(c){return i.add(new Vt(c-a).mul(n)).toNumber()}),PC);return s(0,t)}function SU(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 Vt(0),tickMin:new Vt(0),tickMax:new Vt(0)};var o=OU(new Vt(t).sub(e).div(r-1),n,i),a;e<=0&&t>=0?a=new Vt(0):(a=new Vt(e).add(t).div(2),a=a.sub(new Vt(a).mod(o)));var s=Math.ceil(a.sub(e).div(o).toNumber()),c=Math.ceil(new Vt(t).sub(a).div(o).toNumber()),u=s+c+1;return u>r?SU(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 Vt(s).mul(o)),tickMax:a.add(new Vt(c).mul(o))})}function Age(e){var t=Sp(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=wU([r,n]),c=Sp(s,2),u=c[0],h=c[1];if(u===-1/0||h===1/0){var p=h===1/0?[u].concat(EC(PC(0,i-1).map(function(){return 1/0}))):[].concat(EC(PC(0,i-1).map(function(){return-1/0})),[h]);return r>n?CC(p):p}if(u===h)return jge(u,i,o);var v=SU(u,h,a,o),b=v.step,x=v.tickMin,_=v.tickMax,w=vb.rangeStep(x,_.add(new Vt(.1).mul(b)),b);return r>n?CC(w):w}function kge(e,t){var r=Sp(e,2),n=r[0],i=r[1],o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=wU([n,i]),s=Sp(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=OU(new Vt(u).sub(c).div(h-1),o,0),v=[].concat(EC(vb.rangeStep(new Vt(c),new Vt(u).sub(new Vt(.99).mul(p)),p)),[u]);return n>i?CC(v):v}var Rge=_U(Age),Nge=_U(kge),Mge="Invariant failed";function Au(e,t){throw new Error(Mge)}var Lge=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Sf(e){"@babel/helpers - typeof";return Sf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sf(e)}function Dy(){return Dy=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},Dy.apply(this,arguments)}function Ige(e,t){return Bge(e)||Fge(e,t)||$ge(e,t)||Dge()}function Dge(){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 $ge(e,t){if(e){if(typeof e=="string")return vD(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 vD(e,t)}}function vD(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 Fge(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 Bge(e){if(Array.isArray(e))return e}function Uge(e,t){if(e==null)return{};var r=zge(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 zge(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 Vge(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wge(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,EU(n.key),n)}}function qge(e,t,r){return t&&Wge(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Hge(e,t,r){return t=$y(t),Gge(e,PU()?Reflect.construct(t,r||[],$y(e).constructor):t.apply(e,r))}function Gge(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 Kge(e)}function Kge(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function PU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(PU=function(){return!!e})()}function $y(e){return $y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},$y(e)}function Yge(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&&jC(e,t)}function jC(e,t){return jC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},jC(e,t)}function CU(e,t,r){return t=EU(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function EU(e){var t=Zge(e,"string");return Sf(t)=="symbol"?t:t+""}function Zge(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 Vge(this,t),Hge(this,t,arguments)}return Yge(t,e),qge(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=Uge(n,Lge),b=it(v,!1);this.props.direction==="x"&&h.type!=="number"&&Au();var x=c.map(function(_){var w=u(_,s),O=w.x,S=w.y,E=w.value,T=w.errorVal;if(!T)return null;var A=[],j,N;if(Array.isArray(T)){var F=Ige(T,2);j=F[0],N=F[1]}else j=N=T;if(o==="vertical"){var V=h.scale,B=S+i,W=B+a,q=B-a,J=V(E-j),Q=V(E+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(E-j),G=ne(E+N);A.push({x1:se,y1:G,x2:oe,y2:G}),A.push({x1:ae,y1:K,x2:ae,y2:G}),A.push({x1:se,y1:K,x2:oe,y2:K})}return Z.createElement(Ct,Dy({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",Dy({},z,{key:"line-".concat(z.x1,"-").concat(z.x2,"-").concat(z.y1,"-").concat(z.y2)}))}))});return Z.createElement(Ct,{className:"recharts-errorBars"},x)}}])}(Z.Component);CU(od,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});CU(od,"displayName","ErrorBar");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 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 Yl(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){Xge(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 Xge(e,t,r){return t=Qge(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qge(e){var t=Jge(e,"string");return Pp(t)=="symbol"?t:t+""}function Jge(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)}var TU=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,o=t.legendContent,a=hi(r,rf);if(!a)return null;var s=rf.defaultProps,c=s!==void 0?Yl(Yl({},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,x=b.sectors||b.data||[];return h.concat(x.map(function(_){return{type:a.props.iconType||v.props.legendType,value:_.name,color:_.fill,payload:_}}))},[]):u=(n||[]).map(function(h){var p=h.item,v=p.type.defaultProps,b=v!==void 0?Yl(Yl({},v),p.props):{},x=b.dataKey,_=b.name,w=b.legendType,O=b.hide;return{inactive:O,dataKey:x,type:c.iconType||w||"square",color:Nj(p),value:_||x,payload:b}}),Yl(Yl(Yl({},c),rf.getWithHeight(a,i)),{},{payload:u,item:a})};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)}function yD(e){return nye(e)||rye(e)||tye(e)||eye()}function eye(){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 tye(e,t){if(e){if(typeof e=="string")return AC(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 AC(e,t)}}function rye(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function nye(e){if(Array.isArray(e))return AC(e)}function AC(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 bD(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 Sr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bD(Object(r),!0).forEach(function(n){of(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function of(e,t,r){return t=iye(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iye(e){var t=oye(e,"string");return Cp(t)=="symbol"?t:t+""}function oye(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 ir(e,t,r){return dt(e)||dt(t)?r:Vr(t)?vi(e,t,r):ft(t)?t(e):r}function Bh(e,t,r,n){var i=nge(e,function(s){return ir(s,t)});if(r==="number"){var o=i.filter(function(s){return Ve(s)||parseFloat(s)});return o.length?[pb(o),Ks(o)]:[1/0,-1/0]}var a=n?i.filter(function(s){return!dt(s)}):i;return a.map(function(s){return Vr(s)||s instanceof Date?s:""})}var aye=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(Cn(p-h)!==Cn(v-p)){var x=[];if(Cn(v-p)===Cn(c[1]-c[0])){b=v;var _=p+c[1]-c[0];x[0]=Math.min(_,(_+h)/2),x[1]=Math.max(_,(_+h)/2)}else{b=h;var w=v+c[1]-c[0];x[0]=Math.min(p,(w+p)/2),x[1]=Math.max(p,(w+p)/2)}var O=[Math.min(p,(b+p)/2),Math.max(p,(b+p)/2)];if(t>O[0]&&t<=O[1]||t>=x[0]&&t<=x[1]){a=i[u].index;break}}else{var S=Math.min(h,v),E=Math.max(h,v);if(t>(S+p)/2&&t<=(E+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},Nj=function(t){var r,n=t,i=n.type.displayName,o=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Sr(Sr({},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},sye=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 x=h[p[v]],_=x.items,w=x.cateAxisId,O=_.filter(function(N){return Ba(N.type).indexOf("Bar")>=0});if(O&&O.length){var S=O[0].type.defaultProps,E=S!==void 0?Sr(Sr({},S),O[0].props):O[0].props,T=E.barSize,A=E[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},lye=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,x=a.reduce(function(T,A){return T+A.barSize||0},0);x+=(c-1)*u,x>=i&&(x-=(c-1)*u,u=0),x>=i&&b>0&&(v=!0,b*=.9,x=c*b);var _=(i-x)/2>>0,w={offset:_-u,size:0};h=a.reduce(function(T,A){var j={item:A.item,position:{offset:w.offset+w.size+u,size:v?b:A.barSize}},N=[].concat(yD(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 S=(i-2*O-(c-1)*u)/c;S>1&&(S>>=0);var E=s===+s?Math.min(S,s):S;h=a.reduce(function(T,A,j){var N=[].concat(yD(T),[{item:A.item,position:{offset:O+(S+u)*j+(S-E)/2,size:E}}]);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},uye=function(t,r,n,i){var o=n.children,a=n.width,s=n.margin,c=a-(s.left||0)-(s.right||0),u=TU({children:o,legendWidth:c});if(u){var h=i||{},p=h.width,v=h.height,b=u.align,x=u.verticalAlign,_=u.layout;if((_==="vertical"||_==="horizontal"&&x==="middle")&&b!=="center"&&Ve(t[b]))return Sr(Sr({},t),{},of({},b,t[b]+(p||0)));if((_==="horizontal"||_==="vertical"&&b==="center")&&x!=="middle"&&Ve(t[x]))return Sr(Sr({},t),{},of({},x,t[x]+(v||0)))}return t},cye=function(t,r,n){return dt(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},jU=function(t,r,n,i,o){var a=r.props.children,s=kn(a,od).filter(function(u){return cye(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=ir(h,n);if(dt(p))return u;var v=Array.isArray(p)?[pb(p),Ks(p)]:[p,p],b=c.reduce(function(x,_){var w=ir(h,_,0),O=v[0]-Math.abs(Array.isArray(w)?w[0]:w),S=v[1]+Math.abs(Array.isArray(w)?w[1]:w);return[Math.min(O,x[0]),Math.max(S,x[1])]},[1/0,-1/0]);return[Math.min(b[0],u[0]),Math.max(b[1],u[1])]},[1/0,-1/0])}return null},fye=function(t,r,n,i,o){var a=r.map(function(s){return jU(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},AU=function(t,r,n,i,o){var a=r.map(function(c){var u=c.props.dataKey;return n==="number"&&u&&jU(t,c,u,i)||Bh(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},[])},kU=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},RU=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},Da=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?Cn(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}})},fO=new WeakMap,rg=function(t,r){if(typeof r!="function")return t;fO.has(t)||fO.set(t,new WeakMap);var n=fO.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},NU=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:yp(),realScaleType:"band"}:a==="radial"&&s==="angleAxis"?{scale:Ry(),realScaleType:"linear"}:o==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:Fh(),realScaleType:"point"}:o==="category"?{scale:yp(),realScaleType:"band"}:{scale:Ry(),realScaleType:"linear"};if(cm(i)){var c="scale".concat(J0(i));return{scale:(iD[c]||Fh)(),realScaleType:iD[c]?c:"point"}}return ft(i)?{scale:i}:{scale:Fh(),realScaleType:"point"}},_D=1e-4,MU=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])-_D,a=Math.max(i[0],i[1])+_D,s=t(r[0]),c=t(r[n-1]);(s<o||s>a||c<o||c>a)&&t.domain([r[0],r[n-1]])}},dye=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},hye=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},pye=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])}},mye=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)}},vye={sign:pye,expand:nfe,none:vf,silhouette:ife,wiggle:ofe,positive:mye},gye=function(t,r,n){var i=r.map(function(s){return s.props.dataKey}),o=vye[n],a=rfe().keys(i).value(function(s,c){return+ir(s,c,0)}).order(aC).offset(o);return a(t)},yye=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,x=(b=v.type)!==null&&b!==void 0&&b.defaultProps?Sr(Sr({},v.type.defaultProps),v.props):v.props,_=x.stackId,w=x.hide;if(w)return p;var O=x[n],S=p[O]||{hasStack:!1,stackGroups:{}};if(Vr(_)){var E=S.stackGroups[_]||{numericAxisId:n,cateAxisId:i,items:[]};E.items.push(v),S.hasStack=!0,S.stackGroups[_]=E}else S.stackGroups[gl("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[v]};return Sr(Sr({},p),{},of({},O,S))},c),h={};return Object.keys(u).reduce(function(p,v){var b=u[v];if(b.hasStack){var x={};b.stackGroups=Object.keys(b.stackGroups).reduce(function(_,w){var O=b.stackGroups[w];return Sr(Sr({},_),{},of({},w,{numericAxisId:n,cateAxisId:i,items:O.items,stackedData:gye(t,O.items,o)}))},x)}return Sr(Sr({},p),{},of({},v,b))},h)},LU=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=Rge(u,o,s);return t.domain([pb(h),Ks(h)]),{niceTicks:h}}if(o&&i==="number"){var p=t.domain(),v=Nge(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=py(r,"value",i[t.dataKey]);if(s)return s.coordinate+n/2}return r[o]?r[o].coordinate+n/2:null}var c=ir(i,dt(a)?t.dataKey:a);return dt(c)?null:t.scale(c)}var xD=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=ir(a,r.dataKey,r.domain[s]);return dt(c)?null:r.scale(c)-o/2+i},bye=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]},_ye=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Sr(Sr({},t.type.defaultProps),t.props):t.props,o=i.stackId;if(Vr(o)){var a=r[o];if(a){var s=a.items.indexOf(t);return s>=0?a.stackedData[s]:null}}return null},xye=function(t){return t.reduce(function(r,n){return[pb(n.concat([r[0]]).filter(Ve)),Ks(n.concat([r[1]]).filter(Ve))]},[1/0,-1/0])},IU=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=xye(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})},wD=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,OD=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,kC=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(wD.test(t[0])){var o=+wD.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(OD.test(t[1])){var a=+OD.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},Fy=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=aj(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},SD=function(t,r,n){return!t||!t.length||ul(t,vi(n,"type.defaultProps.domain"))?r:t},DU=function(t,r){var n=t.type.defaultProps?Sr(Sr({},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 Sr(Sr({},it(t,!1)),{},{dataKey:i,unit:a,formatter:s,name:o||i,color:Nj(t),value:ir(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 PD(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 Ma(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?PD(Object(r),!0).forEach(function(n){$U(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):PD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $U(e,t,r){return t=wye(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wye(e){var t=Oye(e,"string");return Ep(t)=="symbol"?t:t+""}function Oye(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 Sye(e,t){return Tye(e)||Eye(e,t)||Cye(e,t)||Pye()}function Pye(){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 Cye(e,t){if(e){if(typeof e=="string")return CD(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 CD(e,t)}}function CD(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 Eye(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 Tye(e){if(Array.isArray(e))return e}var By=Math.PI/180,jye=function(t){return t*180/Math.PI},Jt=function(t,r,n,i){return{x:t+Math.cos(-By*i)*n,y:r+Math.sin(-By*i)*n}},FU=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},Aye=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=FU(a,s,n),b=En(t.innerRadius,v,0),x=En(t.outerRadius,v,v*.8),_=Object.keys(r);return _.reduce(function(w,O){var S=r[O],E=S.domain,T=S.reversed,A;if(dt(S.range))i==="angleAxis"?A=[c,u]:i==="radiusAxis"&&(A=[b,x]),T&&(A=[A[1],A[0]]);else{A=S.range;var j=A,N=Sye(j,2);c=N[0],u=N[1]}var F=NU(S,o),V=F.realScaleType,B=F.scale;B.domain(E).range(A),MU(B);var W=LU(B,Ma(Ma({},S),{},{realScaleType:V})),q=Ma(Ma(Ma({},S),W),{},{range:A,radius:x,realScaleType:V,scale:B,cx:h,cy:p,innerRadius:b,outerRadius:x,startAngle:c,endAngle:u});return Ma(Ma({},w),{},$U({},O,q))},{})},kye=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))},Rye=function(t,r){var n=t.x,i=t.y,o=r.cx,a=r.cy,s=kye({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:jye(u),angleInRadian:u}},Nye=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}},Mye=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},ED=function(t,r){var n=t.x,i=t.y,o=Rye({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=Nye(r),p=h.startAngle,v=h.endAngle,b=s,x;if(p<=v){for(;b>v;)b-=360;for(;b<p;)b+=360;x=b>=p&&b<=v}else{for(;b>p;)b-=360;for(;b<v;)b+=360;x=b>=v&&b<=p}return x?Ma(Ma({},r),{},{radius:a,angle:Mye(b,r)}):null},BU=function(t){return!$.isValidElement(t)&&!ft(t)&&typeof t!="boolean"?t.className:""};function Tp(e){"@babel/helpers - typeof";return Tp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tp(e)}var Lye=["offset"];function Iye(e){return Bye(e)||Fye(e)||$ye(e)||Dye()}function Dye(){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 $ye(e,t){if(e){if(typeof e=="string")return RC(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 RC(e,t)}}function Fye(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Bye(e){if(Array.isArray(e))return RC(e)}function RC(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 Uye(e,t){if(e==null)return{};var r=zye(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 zye(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 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 zr(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){Vye(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 Vye(e,t,r){return t=Wye(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Wye(e){var t=qye(e,"string");return Tp(t)=="symbol"?t:t+""}function qye(e,t){if(Tp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Tp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}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)}var Hye=function(t){var r=t.value,n=t.formatter,i=dt(t.children)?r:t.children;return ft(n)?n(i):i},Gye=function(t,r){var n=Cn(r-t),i=Math.min(Math.abs(r-t),360);return n*i},Kye=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,x=c.endAngle,_=c.clockWise,w=(p+v)/2,O=Gye(b,x),S=O>=0?1:-1,E,T;i==="insideStart"?(E=b+S*a,T=_):i==="insideEnd"?(E=x-S*a,T=!_):i==="end"&&(E=x+S*a,T=_),T=O<=0?T:!T;var A=Jt(u,h,w,E),j=Jt(u,h,w,E+(T?1:-1)*359),N="M".concat(A.x,",").concat(A.y,`
A`).concat(w,",").concat(w,",0,1,").concat(T?0:1,`,
`).concat(j.x,",").concat(j.y),F=dt(t.id)?gl("recharts-radial-line-"):t.id;return Z.createElement("text",jp({},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))},Yye=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=Jt(a,s,u+n,v),x=b.x,_=b.y;return{x,y:_,textAnchor:x>=a?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:a,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:a,y:s,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:a,y:s,textAnchor:"middle",verticalAnchor:"end"};var w=(c+u)/2,O=Jt(a,s,w,v),S=O.x,E=O.y;return{x:S,y:E,textAnchor:"middle",verticalAnchor:"middle"}},Zye=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",x=p>0?"start":"end",_=u>=0?1:-1,w=_*i,O=_>0?"end":"start",S=_>0?"start":"end";if(o==="top"){var E={x:s+u/2,y:c-p*i,textAnchor:"middle",verticalAnchor:b};return zr(zr({},E),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:x};return zr(zr({},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 zr(zr({},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:S,verticalAnchor:"middle"};return zr(zr({},j),n?{width:Math.max(n.x+n.width-j.x,0),height:h}:{})}var N=n?{width:u,height:h}:{};return o==="insideLeft"?zr({x:s+w,y:c+h/2,textAnchor:S,verticalAnchor:"middle"},N):o==="insideRight"?zr({x:s+u-w,y:c+h/2,textAnchor:O,verticalAnchor:"middle"},N):o==="insideTop"?zr({x:s+u/2,y:c+v,textAnchor:"middle",verticalAnchor:x},N):o==="insideBottom"?zr({x:s+u/2,y:c+h-v,textAnchor:"middle",verticalAnchor:b},N):o==="insideTopLeft"?zr({x:s+w,y:c+v,textAnchor:S,verticalAnchor:x},N):o==="insideTopRight"?zr({x:s+u-w,y:c+v,textAnchor:O,verticalAnchor:x},N):o==="insideBottomLeft"?zr({x:s+w,y:c+h-v,textAnchor:S,verticalAnchor:b},N):o==="insideBottomRight"?zr({x:s+u-w,y:c+h-v,textAnchor:O,verticalAnchor:b},N):Jf(o)&&(Ve(o.x)||cu(o.x))&&(Ve(o.y)||cu(o.y))?zr({x:s+En(o.x,u),y:c+En(o.y,h),textAnchor:"end",verticalAnchor:"end"},N):zr({x:s+u/2,y:c+h/2,textAnchor:"middle",verticalAnchor:"middle"},N)},Xye=function(t){return"cx"in t&&Ve(t.cx)};function Qr(e){var t=e.offset,r=t===void 0?5:t,n=Uye(e,Lye),i=zr({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)&&!$.isValidElement(u)&&!ft(u))return null;if($.isValidElement(u))return $.cloneElement(u,i);var b;if(ft(u)){if(b=$.createElement(u,i),$.isValidElement(b))return b}else b=Hye(i);var x=Xye(o),_=it(i,!0);if(x&&(a==="insideStart"||a==="insideEnd"||a==="end"))return Kye(i,b,_);var w=x?Yye(i):Zye(i);return Z.createElement(Tu,jp({className:ze("recharts-label",p)},_,w,{breakAll:v}),b)}Qr.displayName="Label";var UU=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,x=t.left,_=t.width,w=t.height,O=t.clockWise,S=t.labelViewBox;if(S)return S;if(Ve(_)&&Ve(w)){if(Ve(p)&&Ve(v))return{x:p,y:v,width:_,height:w};if(Ve(b)&&Ve(x))return{x:b,y:x,width:_,height:w}}return Ve(p)&&Ve(v)?{x:p,y:v,width:0,height:0}:Ve(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:{}},Qye=function(t,r){return t?t===!0?Z.createElement(Qr,{key:"label-implicit",viewBox:r}):Vr(t)?Z.createElement(Qr,{key:"label-implicit",viewBox:r,value:t}):$.isValidElement(t)?t.type===Qr?$.cloneElement(t,{key:"label-implicit",viewBox:r}):Z.createElement(Qr,{key:"label-implicit",content:t,viewBox:r}):ft(t)?Z.createElement(Qr,{key:"label-implicit",content:t,viewBox:r}):Jf(t)?Z.createElement(Qr,jp({viewBox:r},t,{key:"label-implicit"})):null:null},Jye=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=UU(t),a=kn(i,Qr).map(function(c,u){return $.cloneElement(c,{viewBox:r||o,key:"label-".concat(u)})});if(!n)return a;var s=Qye(t.label,r||o);return[s].concat(Iye(a))};Qr.parseViewBox=UU;Qr.renderCallByParent=Jye;var dO,jD;function e0e(){if(jD)return dO;jD=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return dO=e,dO}var t0e=e0e();const r0e=Nt(t0e);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)}var n0e=["valueAccessor"],i0e=["data","dataKey","clockWise","id","textBreakAll"];function o0e(e){return u0e(e)||l0e(e)||s0e(e)||a0e()}function a0e(){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 s0e(e,t){if(e){if(typeof e=="string")return NC(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 NC(e,t)}}function l0e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function u0e(e){if(Array.isArray(e))return NC(e)}function NC(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 Uy(){return Uy=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},Uy.apply(this,arguments)}function AD(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 kD(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?AD(Object(r),!0).forEach(function(n){c0e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):AD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function c0e(e,t,r){return t=f0e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f0e(e){var t=d0e(e,"string");return Ap(t)=="symbol"?t:t+""}function d0e(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)}function RD(e,t){if(e==null)return{};var r=h0e(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 h0e(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 p0e=function(t){return Array.isArray(t.value)?r0e(t.value):t.value};function wo(e){var t=e.valueAccessor,r=t===void 0?p0e:t,n=RD(e,n0e),i=n.data,o=n.dataKey,a=n.clockWise,s=n.id,c=n.textBreakAll,u=RD(n,i0e);return!i||!i.length?null:Z.createElement(Ct,{className:"recharts-label-list"},i.map(function(h,p){var v=dt(o)?r(h,p):ir(h&&h.payload,o),b=dt(s)?{}:{id:"".concat(s,"-").concat(p)};return Z.createElement(Qr,Uy({},it(h,!0),u,b,{parentViewBox:h.parentViewBox,value:v,textBreakAll:c,viewBox:Qr.parseViewBox(dt(a)?h:kD(kD({},h),{},{clockWise:a})),key:"label-".concat(p),index:p}))}))}wo.displayName="LabelList";function m0e(e,t){return e?e===!0?Z.createElement(wo,{key:"labelList-implicit",data:t}):Z.isValidElement(e)||ft(e)?Z.createElement(wo,{key:"labelList-implicit",data:t,content:e}):Jf(e)?Z.createElement(wo,Uy({data:t},e,{key:"labelList-implicit"})):null:null}function v0e(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=kn(n,wo).map(function(a,s){return $.cloneElement(a,{data:t,key:"labelList-".concat(s)})});if(!r)return i;var o=m0e(e.label,t);return[o].concat(o0e(i))}wo.renderCallByParent=v0e;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 MC(){return MC=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},MC.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){g0e(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 g0e(e,t,r){return t=y0e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y0e(e){var t=b0e(e,"string");return kp(t)=="symbol"?t:t+""}function b0e(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 _0e=function(t,r){var n=Cn(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},ng=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)/By,v=u?o:o+a*p,b=Jt(r,n,h,v),x=Jt(r,n,i,v),_=u?o-a*p:o,w=Jt(r,n,h*Math.cos(p*By),_);return{center:b,circleTangency:x,lineTangency:w,theta:p}},zU=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,o=t.outerRadius,a=t.startAngle,s=t.endAngle,c=_0e(a,s),u=a+c,h=Jt(r,n,o,a),p=Jt(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=Jt(r,n,i,a),x=Jt(r,n,i,u);v+="L ".concat(x.x,",").concat(x.y,`
A `).concat(i,",").concat(i,`,0,
`).concat(+(Math.abs(c)>180),",").concat(+(a<=u),`,
`).concat(b.x,",").concat(b.y," Z")}else v+="L ".concat(r,",").concat(n," Z");return v},x0e=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=Cn(h-u),v=ng({cx:r,cy:n,radius:o,angle:u,sign:p,cornerRadius:a,cornerIsExternal:c}),b=v.circleTangency,x=v.lineTangency,_=v.theta,w=ng({cx:r,cy:n,radius:o,angle:h,sign:-p,cornerRadius:a,cornerIsExternal:c}),O=w.circleTangency,S=w.lineTangency,E=w.theta,T=c?Math.abs(u-h):Math.abs(u-h)-_-E;if(T<0)return s?"M ".concat(x.x,",").concat(x.y,`
a`).concat(a,",").concat(a,",0,0,1,").concat(a*2,`,0
a`).concat(a,",").concat(a,",0,0,1,").concat(-a*2,`,0
`):zU({cx:r,cy:n,innerRadius:i,outerRadius:o,startAngle:u,endAngle:h});var A="M ".concat(x.x,",").concat(x.y,`
A`).concat(a,",").concat(a,",0,0,").concat(+(p<0),",").concat(b.x,",").concat(b.y,`
A`).concat(o,",").concat(o,",0,").concat(+(T>180),",").concat(+(p<0),",").concat(O.x,",").concat(O.y,`
A`).concat(a,",").concat(a,",0,0,").concat(+(p<0),",").concat(S.x,",").concat(S.y,`
`);if(i>0){var j=ng({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=ng({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},w0e={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},VU=function(t){var r=MD(MD({},w0e),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),x=a-o,_=En(s,x,0,!0),w;return _>0&&Math.abs(h-p)<360?w=x0e({cx:n,cy:i,innerRadius:o,outerRadius:a,cornerRadius:Math.min(_,x/2),forceCornerRadius:c,cornerIsExternal:u,startAngle:h,endAngle:p}):w=zU({cx:n,cy:i,innerRadius:o,outerRadius:a,startAngle:h,endAngle:p}),Z.createElement("path",MC({},it(r,!0),{className:b,d:w,role:"img"}))};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 LC(){return LC=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},LC.apply(this,arguments)}function LD(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 ID(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?LD(Object(r),!0).forEach(function(n){O0e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):LD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function O0e(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=P0e(e,"string");return Rp(t)=="symbol"?t:t+""}function P0e(e,t){if(Rp(e)!="object"||!e)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 DD={curveBasisClosed:qce,curveBasisOpen:Hce,curveBasis:Wce,curveBumpX:Ace,curveBumpY:kce,curveLinearClosed:Gce,curveLinear:tb,curveMonotoneX:Kce,curveMonotoneY:Yce,curveNatural:Zce,curveStep:Xce,curveStepAfter:Jce,curveStepBefore:Qce},ig=function(t){return t.x===+t.x&&t.y===+t.y},vh=function(t){return t.x},gh=function(t){return t.y},C0e=function(t,r){if(ft(t))return t;var n="curve".concat(J0(t));return(n==="curveMonotone"||n==="curveBump")&&r?DD["".concat(n).concat(r==="vertical"?"Y":"X")]:DD[n]||tb},E0e=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=C0e(n,s),p=u?o.filter(function(_){return ig(_)}):o,v;if(Array.isArray(a)){var b=u?a.filter(function(_){return ig(_)}):a,x=p.map(function(_,w){return ID(ID({},_),{},{base:b[w]})});return s==="vertical"?v=Yv().y(gh).x1(vh).x0(function(_){return _.base.x}):v=Yv().x(vh).y1(gh).y0(function(_){return _.base.y}),v.defined(ig).curve(h),v(x)}return s==="vertical"&&Ve(a)?v=Yv().y(gh).x1(vh).x0(a):Ve(a)?v=Yv().x(vh).y1(gh).y0(a):v=U7().x(vh).y(gh),v.defined(ig).curve(h),v(p)},tl=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?E0e(t):i;return Z.createElement("path",LC({},it(t,!1),my(t),{className:ze("recharts-curve",r),d:a,ref:o}))},T0e=Object.getOwnPropertyNames,j0e=Object.getOwnPropertySymbols,A0e=Object.prototype.hasOwnProperty;function $D(e,t){return function(n,i,o){return e(n,i,o)&&t(n,i,o)}}function og(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 FD(e){return T0e(e).concat(j0e(e))}var WU=Object.hasOwn||function(e,t){return A0e.call(e,t)};function ad(e,t){return e||t?e===t:e===t||e!==e&&t!==t}var qU="_owner",BD=Object.getOwnPropertyDescriptor,UD=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 ad(e.getTime(),t.getTime())}function zD(e,t,r){if(e.size!==t.size)return!1;for(var n={},i=e.entries(),o=0,a,s;(a=i.next())&&!a.done;){for(var c=t.entries(),u=!1,h=0;(s=c.next())&&!s.done;){var p=a.value,v=p[0],b=p[1],x=s.value,_=x[0],w=x[1];!u&&!n[h]&&(u=r.equals(v,_,o,h,e,t,r)&&r.equals(b,w,v,_,e,t,r))&&(n[h]=!0),h++}if(!u)return!1;o++}return!0}function N0e(e,t,r){var n=UD(e),i=n.length;if(UD(t).length!==i)return!1;for(var o;i-- >0;)if(o=n[i],o===qU&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!WU(t,o)||!r.equals(e[o],t[o],o,o,e,t,r))return!1;return!0}function yh(e,t,r){var n=FD(e),i=n.length;if(FD(t).length!==i)return!1;for(var o,a,s;i-- >0;)if(o=n[i],o===qU&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!WU(t,o)||!r.equals(e[o],t[o],o,o,e,t,r)||(a=BD(e,o),s=BD(t,o),(a||s)&&(!a||!s||a.configurable!==s.configurable||a.enumerable!==s.enumerable||a.writable!==s.writable)))return!1;return!0}function M0e(e,t){return ad(e.valueOf(),t.valueOf())}function L0e(e,t){return e.source===t.source&&e.flags===t.flags}function VD(e,t,r){if(e.size!==t.size)return!1;for(var n={},i=e.values(),o,a;(o=i.next())&&!o.done;){for(var s=t.values(),c=!1,u=0;(a=s.next())&&!a.done;)!c&&!n[u]&&(c=r.equals(o.value,a.value,o.value,a.value,e,t,r))&&(n[u]=!0),u++;if(!c)return!1}return!0}function I0e(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}var D0e="[object Arguments]",$0e="[object Boolean]",F0e="[object Date]",B0e="[object Map]",U0e="[object Number]",z0e="[object Object]",V0e="[object RegExp]",W0e="[object Set]",q0e="[object String]",H0e=Array.isArray,WD=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,qD=Object.assign,G0e=Object.prototype.toString.call.bind(Object.prototype.toString);function K0e(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areMapsEqual,i=e.areObjectsEqual,o=e.arePrimitiveWrappersEqual,a=e.areRegExpsEqual,s=e.areSetsEqual,c=e.areTypedArraysEqual;return function(h,p,v){if(h===p)return!0;if(h==null||p==null||typeof h!="object"||typeof p!="object")return h!==h&&p!==p;var b=h.constructor;if(b!==p.constructor)return!1;if(b===Object)return i(h,p,v);if(H0e(h))return t(h,p,v);if(WD!=null&&WD(h))return c(h,p,v);if(b===Date)return r(h,p,v);if(b===RegExp)return a(h,p,v);if(b===Map)return n(h,p,v);if(b===Set)return s(h,p,v);var x=G0e(h);return x===F0e?r(h,p,v):x===V0e?a(h,p,v):x===B0e?n(h,p,v):x===W0e?s(h,p,v):x===z0e?typeof h.then!="function"&&typeof p.then!="function"&&i(h,p,v):x===D0e?i(h,p,v):x===$0e||x===U0e||x===q0e?o(h,p,v):!1}}function Y0e(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,i={areArraysEqual:n?yh:k0e,areDatesEqual:R0e,areMapsEqual:n?$D(zD,yh):zD,areObjectsEqual:n?yh:N0e,arePrimitiveWrappersEqual:M0e,areRegExpsEqual:L0e,areSetsEqual:n?$D(VD,yh):VD,areTypedArraysEqual:n?yh:I0e};if(r&&(i=qD({},i,r(i))),t){var o=og(i.areArraysEqual),a=og(i.areMapsEqual),s=og(i.areObjectsEqual),c=og(i.areSetsEqual);i=qD({},i,{areArraysEqual:o,areMapsEqual:a,areObjectsEqual:s,areSetsEqual:c})}return i}function Z0e(e){return function(t,r,n,i,o,a,s){return e(t,r,s)}}function X0e(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 Q0e=_l();_l({strict:!0});_l({circular:!0});_l({circular:!0,strict:!0});_l({createInternalComparator:function(){return ad}});_l({strict:!0,createInternalComparator:function(){return ad}});_l({circular:!0,createInternalComparator:function(){return ad}});_l({circular:!0,createInternalComparator:function(){return ad},strict:!0});function _l(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=Y0e(e),c=K0e(s),u=n?n(c):Z0e(c);return X0e({circular:r,comparator:c,createState:i,equals:u,strict:a})}function J0e(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function HD(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):J0e(i)};requestAnimationFrame(n)}function IC(e){"@babel/helpers - typeof";return IC=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},IC(e)}function ebe(e){return ibe(e)||nbe(e)||rbe(e)||tbe()}function tbe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rbe(e,t){if(e){if(typeof e=="string")return GD(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 GD(e,t)}}function GD(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 nbe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ibe(e){if(Array.isArray(e))return e}function obe(){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=ebe(a),c=s[0],u=s.slice(1);if(typeof c=="number"){HD(i.bind(null,u),c);return}i(c),HD(i.bind(null,u));return}IC(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 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 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 YD(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){HU(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 HU(e,t,r){return t=abe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function abe(e){var t=sbe(e,"string");return Np(t)==="symbol"?t:String(t)}function sbe(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)}var lbe=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(o){return i.includes(o)})})},ube=function(t){return t},cbe=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},Uh=function(t,r){return Object.keys(r).reduce(function(n,i){return YD(YD({},n),{},HU({},i,t(i,r[i])))},{})},ZD=function(t,r,n){return t.map(function(i){return"".concat(cbe(i)," ").concat(r,"ms ").concat(n)}).join(",")};function fbe(e,t){return pbe(e)||hbe(e,t)||GU(e,t)||dbe()}function dbe(){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 hbe(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 pbe(e){if(Array.isArray(e))return e}function mbe(e){return ybe(e)||gbe(e)||GU(e)||vbe()}function vbe(){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 GU(e,t){if(e){if(typeof e=="string")return DC(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 DC(e,t)}}function gbe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ybe(e){if(Array.isArray(e))return DC(e)}function DC(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 zy=1e-4,KU=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},YU=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},XD=function(t,r){return function(n){var i=KU(t,r);return YU(i,n)}},bbe=function(t,r){return function(n){var i=KU(t,r),o=[].concat(mbe(i.map(function(a,s){return a*s}).slice(1)),[0]);return YU(o,n)}},QD=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=fbe(u,4);i=h[0],o=h[1],a=h[2],s=h[3]}}}var p=XD(i,a),v=XD(o,s),b=bbe(i,a),x=function(O){return O>1?1:O<0?0:O},_=function(O){for(var S=O>1?1:O,E=S,T=0;T<8;++T){var A=p(E)-S,j=b(E);if(Math.abs(A-S)<zy||j<zy)return v(E);E=x(E-A/j)}return v(E)};return _.isStepper=!1,_},_be=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,x=v*o,_=v+(b-x)*s/1e3,w=v*s/1e3+h;return Math.abs(w-p)<zy&&Math.abs(_)<zy?[p,0]:[w,_]};return c.isStepper=!0,c.dt=s,c},xbe=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 QD(i);case"spring":return _be();default:if(i.split("(")[0]==="cubic-bezier")return QD(i)}return typeof i=="function"?i:null};function Mp(e){"@babel/helpers - typeof";return Mp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mp(e)}function JD(e){return Sbe(e)||Obe(e)||ZU(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 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 FC(e)}function e6(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 an(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?e6(Object(r),!0).forEach(function(n){$C(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):e6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $C(e,t,r){return t=Pbe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Pbe(e){var t=Cbe(e,"string");return Mp(t)==="symbol"?t:String(t)}function Cbe(e,t){if(Mp(e)!=="object"||e===null)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)}function Ebe(e,t){return Abe(e)||jbe(e,t)||ZU(e,t)||Tbe()}function Tbe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ZU(e,t){if(e){if(typeof e=="string")return FC(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 FC(e,t)}}function FC(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 jbe(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 Abe(e){if(Array.isArray(e))return e}var Vy=function(t,r,n){return t+(r-t)*n},BC=function(t){var r=t.from,n=t.to;return r!==n},kbe=function e(t,r,n){var i=Uh(function(o,a){if(BC(a)){var s=t(a.from,a.to,a.velocity),c=Ebe(s,2),u=c[0],h=c[1];return an(an({},a),{},{from:u,velocity:h})}return a},r);return n<1?Uh(function(o,a){return BC(a)?an(an({},a),{},{velocity:Vy(a.velocity,i[o].velocity,n),from:Vy(a.from,i[o].from,n)}):a},r):e(t,i,n-1)};const Rbe=function(e,t,r,n,i){var o=lbe(e,t),a=o.reduce(function(w,O){return an(an({},w),{},$C({},O,[e[O],t[O]]))},{}),s=o.reduce(function(w,O){return an(an({},w),{},$C({},O,{from:e[O],velocity:0,to:t[O]}))},{}),c=-1,u,h,p=function(){return null},v=function(){return Uh(function(O,S){return S.from},s)},b=function(){return!Object.values(s).filter(BC).length},x=function(O){u||(u=O);var S=O-u,E=S/r.dt;s=kbe(r,s,E),i(an(an(an({},e),t),v())),u=O,b()||(c=requestAnimationFrame(p))},_=function(O){h||(h=O);var S=(O-h)/n,E=Uh(function(A,j){return Vy.apply(void 0,JD(j).concat([r(S)]))},a);if(i(an(an(an({},e),t),E)),S<1)c=requestAnimationFrame(p);else{var T=Uh(function(A,j){return Vy.apply(void 0,JD(j).concat([r(1)]))},a);i(an(an(an({},e),t),T))}};return p=r.isStepper?x:_,function(){return requestAnimationFrame(p),function(){cancelAnimationFrame(c)}}};function Cf(e){"@babel/helpers - typeof";return Cf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cf(e)}var Nbe=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function Mbe(e,t){if(e==null)return{};var r=Lbe(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 Lbe(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 hO(e){return Fbe(e)||$be(e)||Dbe(e)||Ibe()}function Ibe(){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 Dbe(e,t){if(e){if(typeof e=="string")return UC(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 UC(e,t)}}function $be(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Fbe(e){if(Array.isArray(e))return UC(e)}function UC(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 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 po(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){Th(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 Th(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 Bbe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ube(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 zbe(e,t,r){return t&&Ube(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function XU(e){var t=Vbe(e,"string");return Cf(t)==="symbol"?t:String(t)}function Vbe(e,t){if(Cf(e)!=="object"||e===null)return e;var 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)}function Wbe(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&&zC(e,t)}function zC(e,t){return zC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},zC(e,t)}function qbe(e){var t=Hbe();return function(){var n=Wy(e),i;if(t){var o=Wy(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return VC(this,i)}}function VC(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 WC(e)}function WC(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Hbe(){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 Wy(e){return Wy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Wy(e)}var Qi=function(e){Wbe(r,e);var t=qbe(r);function r(n,i){var o;Bbe(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(WC(o)),o.changeStyle=o.changeStyle.bind(WC(o)),!s||b<=0)return o.state={style:{}},typeof v=="function"&&(o.state={style:h}),VC(o);if(p&&p.length)o.state={style:p[0].style};else if(u){if(typeof v=="function")return o.state={style:u},VC(o);o.state={style:c?Th({},c,u):u}}else o.state={style:{}};return o}return zbe(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?Th({},c,h):h};this.state&&v&&(c&&v[c]!==h||!c&&v!==h)&&this.setState(b);return}if(!(Q0e(i.to,h)&&i.canBegin&&i.isActive)){var x=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var _=x||u?p:i.to;if(this.state&&v){var w={style:c?Th({},c,_):_};(c&&v[c]!==_||!c&&v!==_)&&this.setState(w)}this.runAnimation(po(po({},this.props),{},{from:_,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var o=this,a=i.from,s=i.to,c=i.duration,u=i.easing,h=i.begin,p=i.onAnimationEnd,v=i.onAnimationStart,b=Rbe(a,s,xbe(u),c,this.changeStyle),x=function(){o.stopJSAnimation=b()};this.manager.start([v,h,x,c,p])}},{key:"runStepAnimation",value:function(i){var o=this,a=i.steps,s=i.begin,c=i.onAnimationStart,u=a[0],h=u.style,p=u.duration,v=p===void 0?0:p,b=function(_,w,O){if(O===0)return _;var S=w.duration,E=w.easing,T=E===void 0?"ease":E,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(hO(_),[o.runJSAnimation.bind(o,{from:F.style,to:A,duration:S,easing:T}),S]);var B=ZD(V,S,T),W=po(po(po({},F.style),A),{},{transition:B});return[].concat(hO(_),[W,S,N]).filter(ube)};return this.manager.start([c].concat(hO(a.reduce(b,[h,Math.max(v,s)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=obe());var o=i.begin,a=i.duration,s=i.attributeName,c=i.to,u=i.easing,h=i.onAnimationStart,p=i.onAnimationEnd,v=i.steps,b=i.children,x=this.manager;if(this.unSubscribe=x.subscribe(this.handleStyleChange),typeof u=="function"||typeof b=="function"||u==="spring"){this.runJSAnimation(i);return}if(v.length>1){this.runStepAnimation(i);return}var _=s?Th({},s,c):c,w=ZD(Object.keys(_),a,u);x.start([h,o,po(po({},_),{},{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=Mbe(i,Nbe),u=$.Children.count(o),h=this.state.style;if(typeof o=="function")return o(h);if(!s||u===0||a<=0)return o;var p=function(b){var x=b.props,_=x.style,w=_===void 0?{}:_,O=x.className,S=$.cloneElement(b,po(po({},c),{},{style:po(po({},w),h),className:O}));return S};return u===1?p($.Children.only(o)):Z.createElement("div",null,$.Children.map(o,function(v){return p(v)}))}}]),r}($.PureComponent);Qi.displayName="Animate";Qi.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Qi.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 Lp(e){"@babel/helpers - typeof";return Lp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lp(e)}function 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 Gbe(e,t){return Xbe(e)||Zbe(e,t)||Ybe(e,t)||Kbe()}function Kbe(){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 Ybe(e,t){if(e){if(typeof e=="string")return r6(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 r6(e,t)}}function r6(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 Zbe(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 Xbe(e){if(Array.isArray(e))return e}function n6(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 i6(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?n6(Object(r),!0).forEach(function(n){Qbe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Qbe(e,t,r){return t=Jbe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Jbe(e){var t=e_e(e,"string");return Lp(t)=="symbol"?t:t+""}function e_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)}var o6=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 x=Math.min(a,o);h="M ".concat(t,",").concat(r+s*x,`
A `).concat(x,",").concat(x,",0,0,").concat(u,",").concat(t+c*x,",").concat(r,`
L `).concat(t+n-c*x,",").concat(r,`
A `).concat(x,",").concat(x,",0,0,").concat(u,",").concat(t+n,",").concat(r+s*x,`
L `).concat(t+n,",").concat(r+i-s*x,`
A `).concat(x,",").concat(x,",0,0,").concat(u,",").concat(t+n-c*x,",").concat(r+i,`
L `).concat(t+c*x,",").concat(r+i,`
A `).concat(x,",").concat(x,",0,0,").concat(u,",").concat(t,",").concat(r+i-s*x," Z")}else h="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return h},t_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},r_e={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Mj=function(t){var r=i6(i6({},r_e),t),n=$.useRef(),i=$.useState(-1),o=Gbe(i,2),a=o[0],s=o[1];$.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,x=r.animationEasing,_=r.animationDuration,w=r.animationBegin,O=r.isAnimationActive,S=r.isUpdateAnimationActive;if(c!==+c||u!==+u||h!==+h||p!==+p||h===0||p===0)return null;var E=ze("recharts-rectangle",b);return S?Z.createElement(Qi,{canBegin:a>0,from:{width:h,height:p,x:c,y:u},to:{width:h,height:p,x:c,y:u},duration:_,animationEasing:x,isActive:S},function(T){var A=T.width,j=T.height,N=T.x,F=T.y;return Z.createElement(Qi,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:w,duration:_,isActive:O,easing:x},Z.createElement("path",qy({},it(r,!0),{className:E,d:o6(N,F,A,j,v),ref:n})))}):Z.createElement("path",qy({},it(r,!0),{className:E,d:o6(c,u,h,p,v)}))},n_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 i_e(e,t){if(e==null)return{};var r=o_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 o_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 a6(e){return u_e(e)||l_e(e)||s_e(e)||a_e()}function a_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 s_e(e,t){if(e){if(typeof e=="string")return qC(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 qC(e,t)}}function l_e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function u_e(e){if(Array.isArray(e))return qC(e)}function qC(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 s6=function(t){return t&&t.x===+t.x&&t.y===+t.y},c_e=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(n){s6(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),s6(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},zh=function(t,r){var n=c_e(t);r&&(n=[n.reduce(function(o,a){return[].concat(a6(o),a6(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},f_e=function(t,r,n){var i=zh(t,n);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(zh(r.reverse(),n).slice(1))},d_e=function(t){var r=t.points,n=t.className,i=t.baseLinePoints,o=t.connectNulls,a=i_e(t,n_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=f_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:zh(r,o)})):null,c?Z.createElement("path",Yc({},it(a,!0),{fill:"none",d:zh(i,o)})):null)}var h=zh(r,o);return Z.createElement("path",Yc({},it(a,!0),{fill:h.slice(-1)==="Z"?a.fill:"none",className:s,d:h}))};function HC(){return HC=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},HC.apply(this,arguments)}var vm=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",HC({},it(t,!1),my(t),{className:a,cx:r,cy:n,r:i})):null};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)}var h_e=["x","y","top","left","width","height","className"];function GC(){return GC=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},GC.apply(this,arguments)}function l6(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 p_e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?l6(Object(r),!0).forEach(function(n){m_e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function m_e(e,t,r){return t=v_e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v_e(e){var t=g_e(e,"string");return Ip(t)=="symbol"?t:t+""}function g_e(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)}function y_e(e,t){if(e==null)return{};var r=b_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 b_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=function(t,r,n,i,o,a){return"M".concat(t,",").concat(o,"v").concat(i,"M").concat(a,",").concat(r,"h").concat(n)},x_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,x=t.className,_=y_e(t,h_e),w=p_e({x:n,y:o,top:s,left:u,width:p,height:b},_);return!Ve(n)||!Ve(o)||!Ve(p)||!Ve(b)||!Ve(s)||!Ve(u)?null:Z.createElement("path",GC({},it(w,!0),{className:ze("recharts-cross",x),d:__e(n,o,p,b,s,u)}))},pO,u6;function w_e(){if(u6)return pO;u6=1;var e=hb(),t=fU(),r=fa();function n(i,o){return i&&i.length?e(i,r(o,2),t):void 0}return pO=n,pO}var O_e=w_e();const S_e=Nt(O_e);var mO,c6;function P_e(){if(c6)return mO;c6=1;var e=hb(),t=fa(),r=dU();function n(i,o){return i&&i.length?e(i,t(o,2),r):void 0}return mO=n,mO}var C_e=P_e();const E_e=Nt(C_e);var T_e=["cx","cy","angle","ticks","axisLine"],j_e=["ticks","tick","angle","tickFormatter","stroke"];function Ef(e){"@babel/helpers - typeof";return Ef=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ef(e)}function 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 f6(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?f6(Object(r),!0).forEach(function(n){gb(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function d6(e,t){if(e==null)return{};var r=A_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 A_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 k_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,JU(n.key),n)}}function R_e(e,t,r){return t&&h6(e.prototype,t),r&&h6(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function N_e(e,t,r){return t=Hy(t),M_e(e,QU()?Reflect.construct(t,r||[],Hy(e).constructor):t.apply(e,r))}function M_e(e,t){if(t&&(Ef(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return L_e(e)}function L_e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function QU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(QU=function(){return!!e})()}function Hy(e){return Hy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Hy(e)}function I_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&&KC(e,t)}function KC(e,t){return KC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},KC(e,t)}function gb(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=D_e(e,"string");return Ef(t)=="symbol"?t:t+""}function D_e(e,t){if(Ef(e)!="object"||!e)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)}var yb=function(e){function t(){return k_e(this,t),N_e(this,t,arguments)}return I_e(t,e),R_e(t,[{key:"getTickValueCoord",value:function(n){var i=n.coordinate,o=this.props,a=o.angle,s=o.cx,c=o.cy;return Jt(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=S_e(s,function(h){return h.coordinate||0}),u=E_e(s,function(h){return h.coordinate||0});return{cx:i,cy:o,startAngle:a,endAngle:a,innerRadius:u.coordinate||0,outerRadius:c.coordinate||0}}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,o=n.cy,a=n.angle,s=n.ticks,c=n.axisLine,u=d6(n,T_e),h=s.reduce(function(x,_){return[Math.min(x[0],_.coordinate),Math.max(x[1],_.coordinate)]},[1/0,-1/0]),p=Jt(i,o,h[0],a),v=Jt(i,o,h[1],a),b=Zl(Zl(Zl({},it(u,!1)),{},{fill:"none"},it(c,!1)),{},{x1:p.x,y1:p.y,x2:v.x,y2:v.y});return Z.createElement("line",Vh({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=d6(i,j_e),p=this.getTickTextAnchor(),v=it(h,!1),b=it(a,!1),x=o.map(function(_,w){var O=n.getTickValueCoord(_),S=Zl(Zl(Zl(Zl({textAnchor:p,transform:"rotate(".concat(90-s,", ").concat(O.x,", ").concat(O.y,")")},v),{},{stroke:"none",fill:u},b),{},{index:w},O),{},{payload:_});return Z.createElement(Ct,Vh({className:ze("recharts-polar-radius-axis-tick",BU(a)),key:"tick-".concat(_.coordinate)},ll(n.props,_,w)),t.renderTickItem(a,S,c?c(_.value,w):_.value))});return Z.createElement(Ct,{className:"recharts-polar-radius-axis-ticks"},x)}},{key:"render",value:function(){var n=this.props,i=n.ticks,o=n.axisLine,a=n.tick;return!i||!i.length?null:Z.createElement(Ct,{className:ze("recharts-polar-radius-axis",this.props.className)},o&&this.renderAxisLine(),a&&this.renderTicks(),Qr.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(Tu,Vh({},i,{className:"recharts-polar-radius-axis-tick-value"}),o),a}}])}($.PureComponent);gb(yb,"displayName","PolarRadiusAxis");gb(yb,"axisType","radiusAxis");gb(yb,"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 au(){return au=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},au.apply(this,arguments)}function p6(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 Xl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?p6(Object(r),!0).forEach(function(n){bb(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $_e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m6(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,t9(n.key),n)}}function F_e(e,t,r){return t&&m6(e.prototype,t),r&&m6(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function B_e(e,t,r){return t=Gy(t),U_e(e,e9()?Reflect.construct(t,r||[],Gy(e).constructor):t.apply(e,r))}function U_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 z_e(e)}function z_e(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 Gy(e){return Gy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Gy(e)}function V_e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&YC(e,t)}function YC(e,t){return YC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},YC(e,t)}function bb(e,t,r){return t=t9(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t9(e){var t=W_e(e,"string");return Tf(t)=="symbol"?t:t+""}function W_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 q_e=Math.PI/180,v6=1e-5,_b=function(e){function t(){return $_e(this,t),B_e(this,t,arguments)}return V_e(t,e),F_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=Jt(o,a,s,n.coordinate),v=Jt(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*q_e),a;return o>v6?a=i==="outer"?"start":"end":o<-v6?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=Xl(Xl({},it(this.props,!1)),{},{fill:"none"},it(s,!1));if(c==="circle")return Z.createElement(vm,au({className:"recharts-polar-angle-axis-line"},u,{cx:i,cy:o,r:a}));var h=this.props.ticks,p=h.map(function(v){return Jt(i,o,a,v.coordinate)});return Z.createElement(d_e,au({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=Xl(Xl({},h),{},{fill:"none"},it(s,!1)),b=o.map(function(x,_){var w=n.getTickLineCoord(x),O=n.getTickTextAnchor(x),S=Xl(Xl(Xl({textAnchor:O},h),{},{stroke:"none",fill:u},p),{},{index:_,payload:x,x:w.x2,y:w.y2});return Z.createElement(Ct,au({className:ze("recharts-polar-angle-axis-tick",BU(a)),key:"tick-".concat(x.coordinate)},ll(n.props,x,_)),s&&Z.createElement("line",au({className:"recharts-polar-angle-axis-tick-line"},v,w)),a&&t.renderTickItem(a,S,c?c(x.value,_):x.value))});return Z.createElement(Ct,{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(Ct,{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(Tu,au({},i,{className:"recharts-polar-angle-axis-tick-value"}),o),a}}])}($.PureComponent);bb(_b,"displayName","PolarAngleAxis");bb(_b,"axisType","angleAxis");bb(_b,"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 vO,g6;function H_e(){if(g6)return vO;g6=1;var e=cB(),t=e(Object.getPrototypeOf,Object);return vO=t,vO}var gO,y6;function G_e(){if(y6)return gO;y6=1;var e=rs(),t=H_e(),r=ns(),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 gO=u,gO}var K_e=G_e();const Y_e=Nt(K_e);var yO,b6;function Z_e(){if(b6)return yO;b6=1;var e=rs(),t=ns(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return yO=n,yO}var X_e=Z_e();const Q_e=Nt(X_e);function Dp(e){"@babel/helpers - typeof";return Dp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dp(e)}function Ky(){return Ky=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},Ky.apply(this,arguments)}function J_e(e,t){return n1e(e)||r1e(e,t)||t1e(e,t)||e1e()}function e1e(){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 t1e(e,t){if(e){if(typeof e=="string")return _6(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 _6(e,t)}}function _6(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 r1e(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 n1e(e){if(Array.isArray(e))return e}function x6(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 w6(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?x6(Object(r),!0).forEach(function(n){i1e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function i1e(e,t,r){return t=o1e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o1e(e){var t=a1e(e,"string");return Dp(t)=="symbol"?t:t+""}function a1e(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)}var O6=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},s1e={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},l1e=function(t){var r=w6(w6({},s1e),t),n=$.useRef(),i=$.useState(-1),o=J_e(i,2),a=o[0],s=o[1];$.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var E=n.current.getTotalLength();E&&s(E)}catch{}},[]);var c=r.x,u=r.y,h=r.upperWidth,p=r.lowerWidth,v=r.height,b=r.className,x=r.animationEasing,_=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 S=ze("recharts-trapezoid",b);return O?Z.createElement(Qi,{canBegin:a>0,from:{upperWidth:0,lowerWidth:0,height:v,x:c,y:u},to:{upperWidth:h,lowerWidth:p,height:v,x:c,y:u},duration:_,animationEasing:x,isActive:O},function(E){var T=E.upperWidth,A=E.lowerWidth,j=E.height,N=E.x,F=E.y;return Z.createElement(Qi,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:w,duration:_,easing:x},Z.createElement("path",Ky({},it(r,!0),{className:S,d:O6(N,F,T,A,j),ref:n})))}):Z.createElement("g",null,Z.createElement("path",Ky({},it(r,!0),{className:S,d:O6(c,u,h,p,v)})))},u1e=["option","shapeType","propTransformer","activeClassName","isActive"];function $p(e){"@babel/helpers - typeof";return $p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$p(e)}function c1e(e,t){if(e==null)return{};var r=f1e(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 f1e(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 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 Yy(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){d1e(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 d1e(e,t,r){return t=h1e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h1e(e){var t=p1e(e,"string");return $p(t)=="symbol"?t:t+""}function p1e(e,t){if($p(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if($p(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function m1e(e,t){return Yy(Yy({},t),e)}function v1e(e,t){return e==="symbols"}function P6(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return Z.createElement(Mj,r);case"trapezoid":return Z.createElement(l1e,r);case"sector":return Z.createElement(VU,r);case"symbols":if(v1e(t))return Z.createElement(nb,r);break;default:return null}}function g1e(e){return $.isValidElement(e)?e.props:e}function Zy(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?m1e:n,o=e.activeClassName,a=o===void 0?"recharts-active-shape":o,s=e.isActive,c=c1e(e,u1e),u;if($.isValidElement(t))u=$.cloneElement(t,Yy(Yy({},c),g1e(t)));else if(ft(t))u=t(c);else if(Y_e(t)&&!Q_e(t)){var h=i(t,c);u=Z.createElement(P6,{shapeType:r,elementProps:h})}else{var p=c;u=Z.createElement(P6,{shapeType:r,elementProps:p})}return s?Z.createElement(Ct,{className:a},u):u}function xb(e,t){return t!=null&&"trapezoids"in e.props}function wb(e,t){return t!=null&&"sectors"in e.props}function Fp(e,t){return t!=null&&"points"in e.props}function y1e(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 b1e(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function _1e(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function x1e(e,t){var r;return xb(e,t)?r=y1e:wb(e,t)?r=b1e:Fp(e,t)&&(r=_1e),r}function w1e(e,t){var r;return xb(e,t)?r="trapezoids":wb(e,t)?r="sectors":Fp(e,t)&&(r="points"),r}function O1e(e,t){if(xb(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(wb(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 Fp(e,t)?t.payload:{}}function S1e(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=w1e(r,t),o=O1e(r,t),a=n.filter(function(c,u){var h=ul(o,c),p=r.props[i].filter(function(x){var _=x1e(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 Cg;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 C6(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 Xt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?C6(Object(r),!0).forEach(function(n){Wi(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):C6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function P1e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E6(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 C1e(e,t,r){return t&&E6(e.prototype,t),r&&E6(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function E1e(e,t,r){return t=Xy(t),T1e(e,r9()?Reflect.construct(t,r||[],Xy(e).constructor):t.apply(e,r))}function T1e(e,t){if(t&&(jf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return j1e(e)}function j1e(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 Xy(e){return Xy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Xy(e)}function A1e(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&&ZC(e,t)}function ZC(e,t){return ZC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ZC(e,t)}function Wi(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=k1e(e,"string");return jf(t)=="symbol"?t:t+""}function k1e(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 aa=function(e){function t(r){var n;return P1e(this,t),n=E1e(this,t,[r]),Wi(n,"pieRef",null),Wi(n,"sectorRefs",[]),Wi(n,"id",gl("recharts-pie-")),Wi(n,"handleAnimationEnd",function(){var i=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),ft(i)&&i()}),Wi(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 A1e(t,e),C1e(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,x=n.map(function(_,w){var O=(_.startAngle+_.endAngle)/2,S=Jt(_.cx,_.cy,_.outerRadius+b,O),E=Xt(Xt(Xt(Xt({},h),_),{},{stroke:"none"},p),{},{index:w,textAnchor:t.getTextAnchor(S.x,_.cx)},S),T=Xt(Xt(Xt(Xt({},h),_),{},{fill:"none",stroke:_.fill},v),{},{index:w,points:[Jt(_.cx,_.cy,_.outerRadius,O),S]}),A=c;return dt(c)&&dt(u)?A="value":dt(c)&&(A=u),Z.createElement(Ct,{key:"label-".concat(_.startAngle,"-").concat(_.endAngle,"-").concat(_.midAngle,"-").concat(w)},s&&t.renderLabelLineItem(s,T,"line"),t.renderLabelItem(a,E,ir(_,A)))});return Z.createElement(Ct,{className:"recharts-pie-labels"},x)}},{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,x=Xt(Xt({},u),{},{stroke:s?u.fill:u.stroke,tabIndex:-1});return Z.createElement(Ct,Zc({ref:function(w){w&&!i.sectorRefs.includes(w)&&i.sectorRefs.push(w)},tabIndex:-1,className:"recharts-pie-sector"},ll(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(Zy,Zc({option:b,isActive:p,shapeType:"sector"},x)))})}},{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(Qi,{begin:s,duration:c,isActive:a,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(h,"-").concat(b),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(x){var _=x.t,w=[],O=o&&o[0],S=O.startAngle;return o.forEach(function(E,T){var A=v&&v[T],j=T>0?vi(E,"paddingAngle",0):0;if(A){var N=xr(A.endAngle-A.startAngle,E.endAngle-E.startAngle),F=Xt(Xt({},E),{},{startAngle:S+j,endAngle:S+N(_)+j});w.push(F),S=F.endAngle}else{var V=E.endAngle,B=E.startAngle,W=xr(0,V-B),q=W(_),J=Xt(Xt({},E),{},{startAngle:S+j,endAngle:S+q+j});w.push(J),S=J.endAngle}}),Z.createElement(Ct,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||!ul(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,x=this.state.isAnimationFinished;if(o||!a||!a.length||!Ve(u)||!Ve(h)||!Ve(p)||!Ve(v))return null;var _=ze("recharts-pie",s);return Z.createElement(Ct,{tabIndex:this.props.rootTabIndex,className:_,ref:function(O){n.pieRef=O}},this.renderSectors(),c&&this.renderLabels(a),Qr.renderCallByParent(this.props,null,!1),(!b||x)&&wo.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(tl,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(Tu,Zc({},i,{alignmentBaseline:"middle",className:s}),a)}}])}($.PureComponent);Cg=aa;Wi(aa,"displayName","Pie");Wi(aa,"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:!Gi.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});Wi(aa,"parseDeltaAngle",function(e,t){var r=Cn(t-e),n=Math.min(Math.abs(t-e),360);return r*n});Wi(aa,"getRealPieData",function(e){var t=e.data,r=e.children,n=it(e,!1),i=kn(r,Js);return t&&t.length?t.map(function(o,a){return Xt(Xt(Xt({payload:o},n),o),i&&i[a]&&i[a].props)}):i&&i.length?i.map(function(o){return Xt(Xt({},n),o.props)}):[]});Wi(aa,"parseCoordinateOfPie",function(e,t){var r=t.top,n=t.left,i=t.width,o=t.height,a=FU(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}});Wi(aa,"getComposedData",function(e){var t=e.item,r=e.offset,n=t.type.defaultProps!==void 0?Xt(Xt({},t.type.defaultProps),t.props):t.props,i=Cg.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),x=Cg.parseCoordinateOfPie(n,r),_=Cg.parseDeltaAngle(a,s),w=Math.abs(_),O=u;dt(u)&&dt(p)?(xo(!1,`Use "dataKey" to specify the value of pie,
the props "valueKey" will be deprecated in 1.1.0`),O="value"):dt(u)&&(xo(!1,`Use "dataKey" to specify the value of pie,
the props "valueKey" will be deprecated in 1.1.0`),O=p);var S=i.filter(function(F){return ir(F,O,0)!==0}).length,E=(w>=360?S:S-1)*c,T=w-S*b-E,A=i.reduce(function(F,V){var B=ir(V,O,0);return F+(Ve(B)?B:0)},0),j;if(A>0){var N;j=i.map(function(F,V){var B=ir(F,O,0),W=ir(F,h,V),q=(Ve(B)?B:0)/A,J;V?J=N.endAngle+Cn(_)*c*(B!==0?1:0):J=a;var Q=J+Cn(_)*((B!==0?b:0)+q*T),ne=(J+Q)/2,ae=(x.innerRadius+x.outerRadius)/2,se=[{name:W,value:B,payload:F,dataKey:O,type:v}],oe=Jt(x.cx,x.cy,ae,ne);return N=Xt(Xt(Xt({percent:q,cornerRadius:o,name:W,tooltipPayload:se,midAngle:ne,middleRadius:ae,tooltipPosition:oe},F),x),{},{value:ir(F,O),startAngle:J,endAngle:Q,payload:F,paddingAngle:Cn(_)*c}),N})}return Xt(Xt({},x),{},{sectors:j,data:i})});var bO,T6;function R1e(){if(T6)return bO;T6=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 bO=r,bO}var _O,j6;function i9(){if(j6)return _O;j6=1;var e=CB(),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 _O=n,_O}var xO,A6;function N1e(){if(A6)return xO;A6=1;var e=R1e(),t=ab(),r=i9();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 xO=n,xO}var wO,k6;function M1e(){if(k6)return wO;k6=1;var e=N1e(),t=e();return wO=t,wO}var L1e=M1e();const Qy=Nt(L1e);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 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 N6(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){o9(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 o9(e,t,r){return t=I1e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function I1e(e){var t=D1e(e,"string");return Bp(t)=="symbol"?t:t+""}function D1e(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)}var $1e=["Webkit","Moz","O","ms"],F1e=function(t,r){var n=t.replace(/(\w)/,function(o){return o.toUpperCase()}),i=$1e.reduce(function(o,a){return N6(N6({},o),{},o9({},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 Jy(){return Jy=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},Jy.apply(this,arguments)}function M6(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 OO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?M6(Object(r),!0).forEach(function(n){di(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):M6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function B1e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function L6(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 U1e(e,t,r){return t&&L6(e.prototype,t),r&&L6(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function z1e(e,t,r){return t=e0(t),V1e(e,a9()?Reflect.construct(t,r||[],e0(e).constructor):t.apply(e,r))}function V1e(e,t){if(t&&(Af(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return W1e(e)}function W1e(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 e0(e){return e0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},e0(e)}function q1e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&XC(e,t)}function XC(e,t){return XC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},XC(e,t)}function di(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=H1e(e,"string");return Af(t)=="symbol"?t:t+""}function H1e(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 G1e=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=Fh().domain(Qy(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}},I6=function(t){return t.changedTouches&&!!t.changedTouches.length},kf=function(e){function t(r){var n;return B1e(this,t),n=z1e(this,t,[r]),di(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),di(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),di(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()}),di(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),di(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),di(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),di(n,"handleSlideDragStart",function(i){var o=I6(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 q1e(t,e),U1e(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),x=t.getIndexInRange(a,v);return{startIndex:b-b%c,endIndex:x===h?h:x-x%c}}},{key:"getTextOfTick",value:function(n){var i=this.props,o=i.data,a=i.tickFormatter,s=i.dataKey,c=ir(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,x=c.onChange,_=n.pageX-o;_>0?_=Math.min(_,u+h-p-s,u+h-p-a):_<0&&(_=Math.max(_,u-a,u-s));var w=this.getIndex({startX:a+_,endX:s+_});(w.startIndex!==v||w.endIndex!==b)&&x&&x(w),this.setState({startX:a+_,endX:s+_,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var o=I6(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,x=h.onChange,_=h.gap,w=h.data,O={startX:this.state.startX,endX:this.state.endX},S=n.pageX-o;S>0?S=Math.min(S,p+v-b-u):S<0&&(S=Math.max(S,p-u)),O[a]=u+S;var E=this.getIndex(O),T=E.startIndex,A=E.endIndex,j=function(){var F=w.length-1;return a==="startX"&&(s>c?T%_===0:A%_===0)||s<c&&A===F||a==="endX"&&(s>c?A%_===0:T%_===0)||s>c&&A===F};this.setState(di(di({},a,u+S),"brushMoveStartX",n.pageX),function(){x&&j()&&x(E)})}},{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(di({},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=$.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,x=c.data,_=c.startIndex,w=c.endIndex,O=Math.max(n,this.props.x),S=OO(OO({},it(this.props,!1)),{},{x:O,y:u,width:h,height:p}),E=b||"Min value: ".concat((o=x[_])===null||o===void 0?void 0:o.name,", Max value: ").concat((a=x[w])===null||a===void 0?void 0:a.name);return Z.createElement(Ct,{tabIndex:0,role:"slider","aria-label":E,"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,S))}},{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,x={pointerEvents:"none",fill:u};return Z.createElement(Ct,{className:"recharts-brush-texts"},Z.createElement(Tu,Jy({textAnchor:"end",verticalAnchor:"middle",x:Math.min(p,v)-b,y:a+s/2},x),this.getTextOfTick(i)),Z.createElement(Tu,Jy({textAnchor:"start",verticalAnchor:"middle",x:Math.max(p,v)+c+b,y:a+s/2},x),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,x=v.endX,_=v.isTextActive,w=v.isSlideMoving,O=v.isTravellerMoving,S=v.isTravellerFocused;if(!i||!i.length||!Ve(s)||!Ve(c)||!Ve(u)||!Ve(h)||u<=0||h<=0)return null;var E=ze("recharts-brush",o),T=Z.Children.count(a)===1,A=F1e("userSelect","none");return Z.createElement(Ct,{className:E,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:A},this.renderBackground(),T&&this.renderPanorama(),this.renderSlide(b,x),this.renderTravellerLayer(b,"startX"),this.renderTravellerLayer(x,"endX"),(_||w||O||S||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 OO({prevData:o,prevTravellerWidth:c,prevUpdateId:u,prevX:s,prevWidth:a},o&&o.length?G1e({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}}])}($.PureComponent);di(kf,"displayName","Brush");di(kf,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var SO,D6;function K1e(){if(D6)return SO;D6=1;var e=oj();function t(r,n){var i;return e(r,function(o,a,s){return i=n(o,a,s),!i}),!!i}return SO=t,SO}var PO,$6;function Y1e(){if($6)return PO;$6=1;var e=nB(),t=fa(),r=K1e(),n=Xn(),i=ab();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 PO=o,PO}var Z1e=Y1e();const X1e=Nt(Z1e);var ta=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},CO,F6;function Q1e(){if(F6)return CO;F6=1;var e=xB();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 EO,B6;function J1e(){if(B6)return EO;B6=1;var e=Q1e(),t=bB(),r=fa();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 EO=n,EO}var exe=J1e();const txe=Nt(exe);var TO,U6;function rxe(){if(U6)return TO;U6=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 TO=e,TO}var jO,z6;function nxe(){if(z6)return jO;z6=1;var e=oj();function t(r,n){var i=!0;return e(r,function(o,a,s){return i=!!n(o,a,s),i}),i}return jO=t,jO}var AO,V6;function ixe(){if(V6)return AO;V6=1;var e=rxe(),t=nxe(),r=fa(),n=Xn(),i=ab();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 AO=o,AO}var oxe=ixe();const l9=Nt(oxe);var axe=["x","y"];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 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 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 bh(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){sxe(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 sxe(e,t,r){return t=lxe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lxe(e){var t=uxe(e,"string");return Up(t)=="symbol"?t:t+""}function uxe(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)}function cxe(e,t){if(e==null)return{};var r=fxe(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 fxe(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 dxe(e,t){var r=e.x,n=e.y,i=cxe(e,axe),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 bh(bh(bh(bh(bh({},t),i),a?{x:a}:{}),c?{y:c}:{}),{},{height:h,width:v,name:t.name,radius:t.radius})}function q6(e){return Z.createElement(Zy,QC({shapeType:"rectangle",propTransformer:dxe,activeClassName:"recharts-active-bar"},e))}var hxe=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||Au(),r)}},pxe=["value","background"],u9;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 mxe(e,t){if(e==null)return{};var r=vxe(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 vxe(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 t0(){return t0=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},t0.apply(this,arguments)}function H6(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 Mr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?H6(Object(r),!0).forEach(function(n){Ys(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):H6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gxe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function G6(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 yxe(e,t,r){return t&&G6(e.prototype,t),r&&G6(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function bxe(e,t,r){return t=r0(t),_xe(e,c9()?Reflect.construct(t,r||[],r0(e).constructor):t.apply(e,r))}function _xe(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 xxe(e)}function xxe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(c9=function(){return!!e})()}function r0(e){return r0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},r0(e)}function wxe(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&&JC(e,t)}function JC(e,t){return JC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},JC(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=Oxe(e,"string");return Rf(t)=="symbol"?t:t+""}function Oxe(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 za=function(e){function t(){var r;gxe(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return r=bxe(this,t,[].concat(i)),Ys(r,"state",{isAnimationFinished:!1}),Ys(r,"id",gl("recharts-bar-")),Ys(r,"handleAnimationEnd",function(){var a=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),a&&a()}),Ys(r,"handleAnimationStart",function(){var a=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),a&&a()}),r}return wxe(t,e),yxe(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,x=b?u:a,_=Mr(Mr(Mr({},h),p),{},{isActive:b,option:x,index:v,dataKey:s,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return Z.createElement(Ct,t0({className:"recharts-bar-rectangle"},ll(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(q6,_))})}},{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(Qi,{begin:c,duration:u,isActive:s,easing:h,from:{t:0},to:{t:1},key:"bar-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(b){var x=b.t,_=o.map(function(w,O){var S=v&&v[O];if(S){var E=xr(S.x,w.x),T=xr(S.y,w.y),A=xr(S.width,w.width),j=xr(S.height,w.height);return Mr(Mr({},w),{},{x:E(x),y:T(x),width:A(x),height:j(x)})}if(a==="horizontal"){var N=xr(0,w.height),F=N(x);return Mr(Mr({},w),{},{y:w.y+w.height-F,height:F})}var V=xr(0,w.width),B=V(x);return Mr(Mr({},w),{},{width:B})});return Z.createElement(Ct,null,n.renderRectanglesStatically(_))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,o=n.isAnimationActive,a=this.state.prevData;return o&&i&&i.length&&(!a||!ul(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=mxe(u,pxe);if(!p)return null;var b=Mr(Mr(Mr(Mr(Mr({},v),{},{fill:"#eee"},p),c),ll(n.props,u,h)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:a,index:h,className:"recharts-bar-background-rectangle"});return Z.createElement(q6,t0({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=kn(h,od);if(!p)return null;var v=u==="vertical"?a[0].height/2:a[0].width/2,b=function(w,O){var S=Array.isArray(w.value)?w.value[1]:w.value;return{x:w.x,y:w.y,value:S,errorVal:ir(w,O)}},x={clipPath:n?"url(#clipPath-".concat(i,")"):null};return Z.createElement(Ct,x,p.map(function(_){return Z.cloneElement(_,{key:"error-bar-".concat(i,"-").concat(_.props.dataKey),data:a,xAxis:s,yAxis:c,layout:u,offset:v,dataPointFormatter:b})}))}},{key:"render",value:function(){var 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,x=n.background,_=n.id;if(i||!o||!o.length)return null;var w=this.state.isAnimationFinished,O=ze("recharts-bar",a),S=s&&s.allowDataOverflow,E=c&&c.allowDataOverflow,T=S||E,A=dt(_)?this.id:_;return Z.createElement(Ct,{className:O},S||E?Z.createElement("defs",null,Z.createElement("clipPath",{id:"clipPath-".concat(A)},Z.createElement("rect",{x:S?u:u-p/2,y:E?h:h-v/2,width:S?p:p*2,height:E?v:v*2}))):null,Z.createElement(Ct,{className:"recharts-bar-rectangles",clipPath:T?"url(#clipPath-".concat(A,")"):null},x?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(T,A),(!b||w)&&wo.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}}])}($.PureComponent);u9=za;Ys(za,"displayName","Bar");Ys(za,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Gi.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Ys(za,"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=dye(n,r);if(!b)return null;var x=t.layout,_=r.type.defaultProps,w=_!==void 0?Mr(Mr({},_),r.props):r.props,O=w.dataKey,S=w.children,E=w.minPointSize,T=x==="horizontal"?a:o,A=u?T.scale.domain():null,j=bye({numericAxis:T}),N=kn(S,Js),F=p.map(function(V,B){var W,q,J,Q,ne,ae;u?W=hye(u[h+B],A):(W=ir(V,O),Array.isArray(W)||(W=[j,W]));var se=hxe(E,u9.defaultProps.minPointSize)(W[1],B);if(x==="horizontal"){var oe,K=[a.scale(W[0]),a.scale(W[1])],G=K[0],z=K[1];q=xD({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=Cn(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=xD({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=Cn(Q||se)*(Math.abs(se)-Math.abs(Q));Q+=be}}return Mr(Mr(Mr({},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:[DU(r,V)],tooltipPosition:{x:q+Q/2,y:J+ne/2}})});return Mr({data:F,layout:x},v)});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 Sxe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function K6(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 Pxe(e,t,r){return t&&K6(e.prototype,t),r&&K6(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Y6(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 vo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Y6(Object(r),!0).forEach(function(n){Ob(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Y6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ob(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=Cxe(e,"string");return zp(t)=="symbol"?t:t+""}function Cxe(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)}var h9=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=!!hi(u,za);return h.reduce(function(b,x){var _=r[x],w=_.orientation,O=_.domain,S=_.padding,E=S===void 0?{}:S,T=_.mirror,A=_.reversed,j="".concat(w).concat(T?"Mirror":""),N,F,V,B,W;if(_.type==="number"&&(_.padding==="gap"||_.padding==="no-gap")){var q=O[1]-O[0],J=1/0,Q=_.categoricalDomain.sort();if(Q.forEach(function(le,ce){ce>0&&(J=Math.min((le||0)-(Q[ce-1]||0),J))}),Number.isFinite(J)){var ne=J/q,ae=_.layout==="vertical"?n.height:n.width;if(_.padding==="gap"&&(N=ne*ae/2),_.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+(E.left||0)+(N||0),n.left+n.width-(E.right||0)-(N||0)]:i==="yAxis"?F=c==="horizontal"?[n.top+n.height-(E.bottom||0),n.top+(E.top||0)]:[n.top+(E.top||0)+(N||0),n.top+n.height-(E.bottom||0)-(N||0)]:F=_.range,A&&(F=[F[1],F[0]]);var K=NU(_,o,v),G=K.scale,z=K.realScaleType;G.domain(O).range(F),MU(G);var re=LU(G,vo(vo({},_),{},{realScaleType:z}));i==="xAxis"?(W=w==="top"&&!T||w==="bottom"&&T,V=n.left,B=p[j]-W*_.height):i==="yAxis"&&(W=w==="left"&&!T||w==="right"&&T,V=p[j]-W*_.width,B=n.top);var X=vo(vo(vo({},_),re),{},{realScaleType:z,x:V,y:B,scale:G,width:i==="xAxis"?n.width:_.width,height:i==="yAxis"?n.height:_.height});return X.bandSize=Fy(X,re),!_.hide&&i==="xAxis"?p[j]+=(W?-1:1)*X.height:_.hide||(p[j]+=(W?-1:1)*X.width),vo(vo({},b),{},Ob({},x,X))},{})},p9=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)}},Exe=function(t){var r=t.x1,n=t.y1,i=t.x2,o=t.y2;return p9({x:r,y:n},{x:i,y:o})},m9=function(){function e(t){Sxe(this,e),this.scale=t}return Pxe(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)}}])}();Ob(m9,"EPS",1e-4);var Lj=function(t){var r=Object.keys(t).reduce(function(n,i){return vo(vo({},n),{},Ob({},i,m9.create(t[i])))},{});return vo(vo({},r),{},{apply:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=o.bandAware,s=o.position;return txe(i,function(c,u){return r[u].apply(c,{bandAware:a,position:s})})},isInRange:function(i){return l9(i,function(o,a){return r[a].isInRange(o)})}})};function Txe(e){return(e%180+180)%180}var jxe=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=Txe(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)},kO,Z6;function Axe(){if(Z6)return kO;Z6=1;var e=fa(),t=fm(),r=ib();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 kO=n,kO}var RO,X6;function kxe(){if(X6)return RO;X6=1;var e=i9();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return RO=t,RO}var NO,Q6;function Rxe(){if(Q6)return NO;Q6=1;var e=pB(),t=fa(),r=kxe(),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 NO=i,NO}var MO,J6;function Nxe(){if(J6)return MO;J6=1;var e=Axe(),t=Rxe(),r=e(t);return MO=r,MO}var Mxe=Nxe();const Lxe=Nt(Mxe);var Ixe=j7();const Dxe=Nt(Ixe);var $xe=Dxe(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("")}),Ij=$.createContext(void 0),Dj=$.createContext(void 0),v9=$.createContext(void 0),g9=$.createContext({}),y9=$.createContext(void 0),b9=$.createContext(0),_9=$.createContext(0),e5=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=$xe(o);return Z.createElement(Ij.Provider,{value:n},Z.createElement(Dj.Provider,{value:i},Z.createElement(g9.Provider,{value:o},Z.createElement(v9.Provider,{value:h},Z.createElement(y9.Provider,{value:a},Z.createElement(b9.Provider,{value:u},Z.createElement(_9.Provider,{value:c},s)))))))},Fxe=function(){return $.useContext(y9)},x9=function(t){var r=$.useContext(Ij);r==null&&Au();var n=r[t];return n==null&&Au(),n},Bxe=function(){var t=$.useContext(Ij);return Gs(t)},Uxe=function(){var t=$.useContext(Dj),r=Lxe(t,function(n){return l9(n.domain,Number.isFinite)});return r||Gs(t)},w9=function(t){var r=$.useContext(Dj);r==null&&Au();var n=r[t];return n==null&&Au(),n},zxe=function(){var t=$.useContext(v9);return t},Vxe=function(){return $.useContext(g9)},$j=function(){return $.useContext(_9)},Fj=function(){return $.useContext(b9)};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 Wxe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qxe(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 Hxe(e,t,r){return t&&qxe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Gxe(e,t,r){return t=n0(t),Kxe(e,O9()?Reflect.construct(t,r||[],n0(e).constructor):t.apply(e,r))}function Kxe(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 Yxe(e)}function Yxe(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 n0(e){return n0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},n0(e)}function Zxe(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&&eE(e,t)}function eE(e,t){return eE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},eE(e,t)}function t5(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 r5(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?t5(Object(r),!0).forEach(function(n){Bj(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):t5(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Bj(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=Xxe(e,"string");return Nf(t)=="symbol"?t:t+""}function Xxe(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 Qxe(e,t){return rwe(e)||twe(e,t)||ewe(e,t)||Jxe()}function Jxe(){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 ewe(e,t){if(e){if(typeof e=="string")return n5(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 n5(e,t)}}function n5(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 twe(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 rwe(e){if(Array.isArray(e))return e}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)}var nwe=function(t,r){var n;return Z.isValidElement(t)?n=Z.cloneElement(t,r):ft(t)?n=t(r):n=Z.createElement("line",tE({},r,{className:"recharts-reference-line-line"})),n},iwe=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 x=u.y,_=t.y.apply(x,{position:a});if(ta(u,"discard")&&!t.y.isInRange(_))return null;var w=[{x:h+v,y:_},{x:h,y:_}];return c==="left"?w.reverse():w}if(r){var O=u.x,S=t.x.apply(O,{position:a});if(ta(u,"discard")&&!t.x.isInRange(S))return null;var E=[{x:S,y:p+b},{x:S,y:p}];return s==="top"?E.reverse():E}if(i){var T=u.segment,A=T.map(function(j){return t.apply(j,{position:a})});return ta(u,"discard")&&X1e(A,function(j){return!t.isInRange(j)})?null:A}return null};function owe(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=Fxe(),h=x9(i),p=w9(o),v=zxe();if(!u||!v)return null;xo(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var b=Lj({x:h.scale,y:p.scale}),x=Vr(t),_=Vr(r),w=n&&n.length===2,O=iwe(b,x,_,w,v,e.position,h.orientation,p.orientation,e);if(!O)return null;var S=Qxe(O,2),E=S[0],T=E.x,A=E.y,j=S[1],N=j.x,F=j.y,V=ta(e,"hidden")?"url(#".concat(u,")"):void 0,B=r5(r5({clipPath:V},it(e,!0)),{},{x1:T,y1:A,x2:N,y2:F});return Z.createElement(Ct,{className:ze("recharts-reference-line",s)},nwe(a,B),Qr.renderCallByParent(e,Exe({x1:T,y1:A,x2:N,y2:F})))}var Uj=function(e){function t(){return Wxe(this,t),Gxe(this,t,arguments)}return Zxe(t,e),Hxe(t,[{key:"render",value:function(){return Z.createElement(owe,this.props)}}])}(Z.Component);Bj(Uj,"displayName","ReferenceLine");Bj(Uj,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function rE(){return rE=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},rE.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 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){Sb(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 awe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function swe(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 lwe(e,t,r){return t&&swe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function uwe(e,t,r){return t=i0(t),cwe(e,P9()?Reflect.construct(t,r||[],i0(e).constructor):t.apply(e,r))}function cwe(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 fwe(e)}function fwe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function P9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(P9=function(){return!!e})()}function i0(e){return i0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},i0(e)}function dwe(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&&nE(e,t)}function nE(e,t){return nE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},nE(e,t)}function Sb(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=hwe(e,"string");return Mf(t)=="symbol"?t:t+""}function hwe(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 pwe=function(t){var r=t.x,n=t.y,i=t.xAxis,o=t.yAxis,a=Lj({x:i.scale,y:o.scale}),s=a.apply({x:r,y:n},{bandAware:!0});return ta(t,"discard")&&!a.isInRange(s)?null:s},Pb=function(e){function t(){return awe(this,t),uwe(this,t,arguments)}return dwe(t,e),lwe(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=Vr(i),h=Vr(o);if(xo(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!h)return null;var p=pwe(this.props);if(!p)return null;var v=p.x,b=p.y,x=this.props,_=x.shape,w=x.className,O=ta(this.props,"hidden")?"url(#".concat(c,")"):void 0,S=o5(o5({clipPath:O},it(this.props,!0)),{},{cx:v,cy:b});return Z.createElement(Ct,{className:ze("recharts-reference-dot",w)},t.renderDot(_,S),Qr.renderCallByParent(this.props,{x:v-a,y:b-a,width:2*a,height:2*a}))}}])}(Z.Component);Sb(Pb,"displayName","ReferenceDot");Sb(Pb,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Sb(Pb,"renderDot",function(e,t){var r;return Z.isValidElement(e)?r=Z.cloneElement(e,t):ft(e)?r=e(t):r=Z.createElement(vm,rE({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});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 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 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 s5(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){Cb(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){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vwe(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,T9(n.key),n)}}function gwe(e,t,r){return t&&vwe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ywe(e,t,r){return t=o0(t),bwe(e,E9()?Reflect.construct(t,r||[],o0(e).constructor):t.apply(e,r))}function bwe(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 _we(e)}function _we(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 o0(e){return o0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},o0(e)}function xwe(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&&oE(e,t)}function oE(e,t){return oE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},oE(e,t)}function Cb(e,t,r){return t=T9(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function T9(e){var t=wwe(e,"string");return Lf(t)=="symbol"?t:t+""}function wwe(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 Owe=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=Lj({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={x:r?v.x.apply(s,{position:"end"}):v.x.rangeMax,y:i?v.y.apply(u,{position:"end"}):v.y.rangeMax};return ta(o,"discard")&&(!v.isInRange(b)||!v.isInRange(x))?null:p9(b,x)},gm=function(e){function t(){return mwe(this,t),ywe(this,t,arguments)}return xwe(t,e),gwe(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;xo(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=Vr(i),v=Vr(o),b=Vr(a),x=Vr(s),_=this.props.shape;if(!p&&!v&&!b&&!x&&!_)return null;var w=Owe(p,v,b,x,this.props);if(!w&&!_)return null;var O=ta(this.props,"hidden")?"url(#".concat(h,")"):void 0;return Z.createElement(Ct,{className:ze("recharts-reference-area",c)},t.renderRect(_,s5(s5({clipPath:O},it(this.props,!0)),w)),Qr.renderCallByParent(this.props,w))}}])}(Z.Component);Cb(gm,"displayName","ReferenceArea");Cb(gm,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});Cb(gm,"renderRect",function(e,t){var r;return Z.isValidElement(e)?r=Z.cloneElement(e,t):ft(e)?r=e(t):r=Z.createElement(Mj,iE({},t,{className:"recharts-reference-area-rect"})),r});function j9(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 Swe(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return jxe(n,r)}function Pwe(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 a0(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 Cwe(e,t){return j9(e,t+1)}function Ewe(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 x=n==null?void 0:n[c];if(x===void 0)return{v:j9(n,u)};var _=c,w,O=function(){return w===void 0&&(w=r(x,_)),w},S=x.coordinate,E=c===0||a0(e,S,O,h,s);E||(c=0,h=a,u+=1),E&&(h=S+e*(O()/2+i),c+=u)},v;u<=o.length;)if(v=p(),v)return v.v;return[]}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 l5(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?l5(Object(r),!0).forEach(function(n){Twe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l5(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Twe(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=Awe(e,"string");return Vp(t)=="symbol"?t:t+""}function Awe(e,t){if(Vp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Vp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kwe(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 x===void 0&&(x=r(b,v)),x};if(v===a-1){var w=e*(b.coordinate+e*_()/2-c);o[v]=b=mn(mn({},b),{},{tickCoord:w>0?b.coordinate-w*e:b.coordinate})}else o[v]=b=mn(mn({},b),{},{tickCoord:b.coordinate});var O=a0(e,b.tickCoord,_,s,c);O&&(c=b.tickCoord-e*(_()/2+i),o[v]=mn(mn({},b),{},{isShow:!0}))},h=a-1;h>=0;h--)u(h);return o}function Rwe(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=mn(mn({},h),{},{tickCoord:v>0?h.coordinate-v*e:h.coordinate});var b=a0(e,h.tickCoord,function(){return p},c,u);b&&(u=h.tickCoord-e*(p/2+i),a[s-1]=mn(mn({},h),{},{isShow:!0}))}for(var x=o?s-1:s,_=function(S){var E=a[S],T,A=function(){return T===void 0&&(T=r(E,S)),T};if(S===0){var j=e*(E.coordinate-e*A()/2-c);a[S]=E=mn(mn({},E),{},{tickCoord:j<0?E.coordinate-j*e:E.coordinate})}else a[S]=E=mn(mn({},E),{},{tickCoord:E.coordinate});var N=a0(e,E.tickCoord,A,c,u);N&&(c=E.tickCoord+e*(A()/2+i),a[S]=mn(mn({},E),{},{isShow:!0}))},w=0;w<x;w++)_(w);return a}function zj(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)||Gi.isSsr)return Cwe(i,typeof c=="number"&&Ve(c)?c:0);var v=[],b=s==="top"||s==="bottom"?"width":"height",x=h&&b==="width"?$h(h,{fontSize:t,letterSpacing:r}):{width:0,height:0},_=function(E,T){var A=ft(u)?u(E.value,T):E.value;return b==="width"?Swe($h(A,{fontSize:t,letterSpacing:r}),x,p):$h(A,{fontSize:t,letterSpacing:r})[b]},w=i.length>=2?Cn(i[1].coordinate-i[0].coordinate):1,O=Pwe(o,w,b);return c==="equidistantPreserveStart"?Ewe(w,O,_,i,a):(c==="preserveStart"||c==="preserveStartEnd"?v=Rwe(w,O,_,i,a,c==="preserveStartEnd"):v=kwe(w,O,_,i,a),v.filter(function(S){return S.isShow}))}var Nwe=["viewBox"],Mwe=["viewBox"],Lwe=["ticks"];function If(e){"@babel/helpers - typeof";return If=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},If(e)}function 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 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 Sn(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){Vj(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 LO(e,t){if(e==null)return{};var r=Iwe(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 Iwe(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 Dwe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c5(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,k9(n.key),n)}}function $we(e,t,r){return t&&c5(e.prototype,t),r&&c5(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Fwe(e,t,r){return t=s0(t),Bwe(e,A9()?Reflect.construct(t,r||[],s0(e).constructor):t.apply(e,r))}function Bwe(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 Uwe(e)}function Uwe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function A9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(A9=function(){return!!e})()}function s0(e){return s0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},s0(e)}function zwe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&aE(e,t)}function aE(e,t){return aE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},aE(e,t)}function Vj(e,t,r){return t=k9(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function k9(e){var t=Vwe(e,"string");return If(t)=="symbol"?t:t+""}function Vwe(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 sd=function(e){function t(r){var n;return Dwe(this,t),n=Fwe(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return zwe(t,e),$we(t,[{key:"shouldComponentUpdate",value:function(n,i){var o=n.viewBox,a=LO(n,Nwe),s=this.props,c=s.viewBox,u=LO(s,Mwe);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,S,E=p?-1:1,T=n.tickSize||h,A=Ve(n.tickCoord)?n.tickCoord:n.coordinate;switch(u){case"top":b=x=n.coordinate,w=a+ +!p*c,_=w-E*T,S=_-E*v,O=A;break;case"left":_=w=n.coordinate,x=o+ +!p*s,b=x-E*T,O=b-E*v,S=A;break;case"right":_=w=n.coordinate,x=o+ +p*s,b=x+E*T,O=b+E*v,S=A;break;default:b=x=n.coordinate,w=a+ +p*c,_=w+E*T,S=_+E*v,O=A;break}return{line:{x1:b,y1:_,x2:x,y2:w},tick:{x:O,y:S}}}},{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=Sn(Sn(Sn({},it(this.props,!1)),it(h,!1)),{},{fill:"none"});if(c==="top"||c==="bottom"){var v=+(c==="top"&&!u||c==="bottom"&&u);p=Sn(Sn({},p),{},{x1:i,y1:o+v*s,x2:i+a,y2:o+v*s})}else{var b=+(c==="left"&&!u||c==="right"&&u);p=Sn(Sn({},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",vi(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=zj(Sn(Sn({},this.props),{},{ticks:n}),i,o),x=this.getTickTextAnchor(),_=this.getTickVerticalAnchor(),w=it(this.props,!1),O=it(h,!1),S=Sn(Sn({},w),{},{fill:"none"},it(c,!1)),E=b.map(function(T,A){var j=a.getTickLineCoord(T),N=j.line,F=j.tick,V=Sn(Sn(Sn(Sn({textAnchor:x,verticalAnchor:_},w),{},{stroke:"none",fill:u},O),F),{},{index:A,payload:T,visibleTicksCount:b.length,tickFormatter:p});return Z.createElement(Ct,Xc({className:"recharts-cartesian-axis-tick",key:"tick-".concat(T.value,"-").concat(T.coordinate,"-").concat(T.tickCoord)},ll(a.props,T,A)),c&&Z.createElement("line",Xc({},S,N,{className:ze("recharts-cartesian-axis-tick-line",vi(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"},E)}},{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=LO(p,Lwe),x=v;return ft(c)&&(x=v&&v.length>0?c(this.props):c(b)),a<=0||s<=0||!x||!x.length?null:Z.createElement(Ct,{className:ze("recharts-cartesian-axis",u),ref:function(w){n.layerReference=w}},o&&this.renderAxisLine(),this.renderTicks(x,this.state.fontSize,this.state.letterSpacing),Qr.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(Tu,Xc({},i,{className:"recharts-cartesian-axis-tick-value"}),o),a}}])}($.Component);Vj(sd,"displayName","CartesianAxis");Vj(sd,"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 Wwe=["x1","y1","x2","y2","key"],qwe=["offset"];function ku(e){"@babel/helpers - typeof";return ku=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ku(e)}function f5(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 vn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?f5(Object(r),!0).forEach(function(n){Hwe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f5(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Hwe(e,t,r){return t=Gwe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Gwe(e){var t=Kwe(e,"string");return ku(t)=="symbol"?t:t+""}function Kwe(e,t){if(ku(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ku(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}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 d5(e,t){if(e==null)return{};var r=Ywe(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 Ywe(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 Zwe=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 R9(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=d5(t,Wwe),u=it(c,!1);u.offset;var h=d5(u,qwe);r=Z.createElement("line",hu({},h,{x1:n,y1:i,x2:o,y2:a,fill:"none",key:s}))}return r}function Xwe(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=vn(vn({},e),{},{x1:t,y1:s,x2:t+r,y2:s,key:"line-".concat(c),index:c});return R9(i,u)});return Z.createElement("g",{className:"recharts-cartesian-grid-horizontal"},a)}function Qwe(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=vn(vn({},e),{},{x1:s,y1:t,x2:s,y2:t+r,key:"line-".concat(c),index:c});return R9(i,u)});return Z.createElement("g",{className:"recharts-cartesian-grid-vertical"},a)}function Jwe(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 x=!h[b+1],_=x?i+a-v:h[b+1]-v;if(_<=0)return null;var w=b%t.length;return Z.createElement("rect",{key:"react-".concat(b),y:v,x:n,height:_,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 e2e(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 x=!h[b+1],_=x?o+s-v:h[b+1]-v;if(_<=0)return null;var w=b%n.length;return Z.createElement("rect",{key:"react-".concat(b),x:v,y:a,width:_,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 t2e=function(t,r){var n=t.xAxis,i=t.width,o=t.height,a=t.offset;return RU(zj(vn(vn(vn({},sd.defaultProps),n),{},{ticks:Da(n,!0),viewBox:{x:0,y:0,width:i,height:o}})),a.left,a.left+a.width,r)},r2e=function(t,r){var n=t.yAxis,i=t.width,o=t.height,a=t.offset;return RU(zj(vn(vn(vn({},sd.defaultProps),n),{},{ticks:Da(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 Wj(e){var t,r,n,i,o,a,s=$j(),c=Fj(),u=Vxe(),h=vn(vn({},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,x=h.height,_=h.syncWithTicks,w=h.horizontalValues,O=h.verticalValues,S=Bxe(),E=Uxe();if(!Ve(b)||b<=0||!Ve(x)||x<=0||!Ve(p)||p!==+p||!Ve(v)||v!==+v)return null;var T=h.verticalCoordinatesGenerator||t2e,A=h.horizontalCoordinatesGenerator||r2e,j=h.horizontalPoints,N=h.verticalPoints;if((!j||!j.length)&&ft(A)){var F=w&&w.length,V=A({yAxis:E?vn(vn({},E),{},{ticks:F?w:E.ticks}):void 0,width:s,height:c,offset:u},F?!0:_);xo(Array.isArray(V),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(ku(V),"]")),Array.isArray(V)&&(j=V)}if((!N||!N.length)&&ft(T)){var B=O&&O.length,W=T({xAxis:S?vn(vn({},S),{},{ticks:B?O:S.ticks}):void 0,width:s,height:c,offset:u},B?!0:_);xo(Array.isArray(W),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(ku(W),"]")),Array.isArray(W)&&(N=W)}return Z.createElement("g",{className:"recharts-cartesian-grid"},Z.createElement(Zwe,{fill:h.fill,fillOpacity:h.fillOpacity,x:h.x,y:h.y,width:h.width,height:h.height,ry:h.ry}),Z.createElement(Xwe,hu({},h,{offset:u,horizontalPoints:j,xAxis:S,yAxis:E})),Z.createElement(Qwe,hu({},h,{offset:u,verticalPoints:N,xAxis:S,yAxis:E})),Z.createElement(Jwe,hu({},h,{horizontalPoints:j})),Z.createElement(e2e,hu({},h,{verticalPoints:N})))}Wj.displayName="CartesianGrid";var n2e=["type","layout","connectNulls","ref"],i2e=["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 h5(e,t){if(e==null)return{};var r=o2e(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 o2e(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 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 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 fi(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){go(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 Dc(e){return u2e(e)||l2e(e)||s2e(e)||a2e()}function a2e(){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 s2e(e,t){if(e){if(typeof e=="string")return sE(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 sE(e,t)}}function l2e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function u2e(e){if(Array.isArray(e))return sE(e)}function sE(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 c2e(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 f2e(e,t,r){return t&&m5(e.prototype,t),r&&m5(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function d2e(e,t,r){return t=l0(t),h2e(e,N9()?Reflect.construct(t,r||[],l0(e).constructor):t.apply(e,r))}function h2e(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 p2e(e)}function p2e(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 m2e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&lE(e,t)}function lE(e,t){return lE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},lE(e,t)}function go(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=v2e(e,"string");return Df(t)=="symbol"?t:t+""}function v2e(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 ld=function(e){function t(){var r;c2e(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return r=d2e(this,t,[].concat(i)),go(r,"state",{isAnimationFinished:!0,totalLength:0}),go(r,"generateSimpleStrokeDasharray",function(a,s){return"".concat(s,"px ").concat(a-s,"px")}),go(r,"getStrokeDasharray",function(a,s,c){var u=c.reduce(function(O,S){return O+S});if(!u)return r.generateSimpleStrokeDasharray(s,a);for(var h=Math.floor(a/u),p=a%u,v=s-a,b=[],x=0,_=0;x<c.length;_+=c[x],++x)if(_+c[x]>p){b=[].concat(Dc(c.slice(0,x)),[p-_]);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(", ")}),go(r,"id",gl("recharts-line-")),go(r,"pathRef",function(a){r.mainCurve=a}),go(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),go(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return m2e(t,e),f2e(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=kn(h,od);if(!p)return null;var v=function(_,w){return{x:_.x,y:_.y,value:_.value,errorVal:ir(_.payload,w)}},b={clipPath:n?"url(#clipPath-".concat(i,")"):null};return Z.createElement(Ct,b,p.map(function(x){return Z.cloneElement(x,{key:"bar-".concat(x.props.dataKey),data:a,xAxis:s,yAxis:c,layout:u,dataPointFormatter:v})}))}},{key:"renderDots",value:function(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(_,w){var O=fi(fi(fi({key:"dot-".concat(w),r:3},p),v),{},{value:_.value,dataKey:h,cx:_.x,cy:_.y,index:w,payload:_.payload});return t.renderDotItem(c,O)}),x={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(o,")"):null};return Z.createElement(Ct,Wh({className:"recharts-line-dots",key:"dots"},x),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=h5(s,n2e),v=fi(fi(fi({},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(tl,Wh({},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,x=a.animateNewValues,_=a.width,w=a.height,O=this.state,S=O.prevPoints,E=O.totalLength;return Z.createElement(Qi,{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(S){var j=S.length/s.length,N=s.map(function(q,J){var Q=Math.floor(J*j);if(S[Q]){var ne=S[Q],ae=xr(ne.x,q.x),se=xr(ne.y,q.y);return fi(fi({},q),{},{x:ae(A),y:se(A)})}if(x){var oe=xr(_*2,q.x),K=xr(w/2,q.y);return fi(fi({},q),{},{x:oe(A),y:K(A)})}return fi(fi({},q),{},{x:q.x,y:q.y})});return o.renderCurveStatically(N,n,i)}var F=xr(0,E),V=F(A),B;if(c){var W="".concat(c).split(/[,\s]+/gim).map(function(q){return parseFloat(q)});B=o.getStrokeDasharray(V,E,W)}else B=o.generateSimpleStrokeDasharray(E,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||!ul(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,x=i.height,_=i.isAnimationActive,w=i.id;if(o||!s||!s.length)return null;var O=this.state.isAnimationFinished,S=s.length===1,E=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=M7(a)?a:{},Q=J.clipDot,ne=Q===void 0?!0:Q,ae=B*2+q;return Z.createElement(Ct,{className:E},T||A?Z.createElement("defs",null,Z.createElement("clipPath",{id:"clipPath-".concat(N)},Z.createElement("rect",{x:T?v:v-b/2,y:A?p:p-x/2,width:T?b:b*2,height:A?x:x*2})),!ne&&Z.createElement("clipPath",{id:"clipPath-dots-".concat(N)},Z.createElement("rect",{x:v-ae/2,y:p-ae/2,width:b+ae,height:x+ae}))):null,!S&&this.renderCurve(j,N),this.renderErrorBar(j,N),(S||a)&&this.renderDots(j,ne,N),(!_||O)&&wo.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=h5(i,i2e),c=ze("recharts-line-dot",typeof n!="boolean"?n.className:"");o=Z.createElement(vm,Wh({key:a},s,{className:c}))}return o}}])}($.PureComponent);go(ld,"displayName","Line");go(ld,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Gi.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});go(ld,"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 x=ir(v,a);return h==="horizontal"?{x:Pf({axis:r,ticks:i,bandSize:s,entry:v,index:b}),y:dt(x)?null:n.scale(x),value:x,payload:v}:{x:dt(x)?null:r.scale(x),y:Pf({axis:n,ticks:o,bandSize:s,entry:v,index:b}),value:x,payload:v}});return fi({points:p,layout:h},u)});var g2e=["layout","type","stroke","connectNulls","isRange","ref"],y2e=["key"],L9;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 I9(e,t){if(e==null)return{};var r=b2e(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 b2e(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 pu(){return pu=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},pu.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 Vs(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){Qo(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 _2e(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,$9(n.key),n)}}function x2e(e,t,r){return t&&g5(e.prototype,t),r&&g5(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function w2e(e,t,r){return t=u0(t),O2e(e,D9()?Reflect.construct(t,r||[],u0(e).constructor):t.apply(e,r))}function O2e(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 S2e(e)}function S2e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function D9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(D9=function(){return!!e})()}function u0(e){return u0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},u0(e)}function P2e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&uE(e,t)}function uE(e,t){return uE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},uE(e,t)}function Qo(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=C2e(e,"string");return $f(t)=="symbol"?t:t+""}function C2e(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;_2e(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return r=w2e(this,t,[].concat(i)),Qo(r,"state",{isAnimationFinished:!0}),Qo(r,"id",gl("recharts-area-")),Qo(r,"handleAnimationEnd",function(){var a=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),ft(a)&&a()}),Qo(r,"handleAnimationStart",function(){var a=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),ft(a)&&a()}),r}return P2e(t,e),x2e(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),x=h.map(function(w,O){var S=Vs(Vs(Vs({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,S)}),_={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(o,")"):null};return Z.createElement(Ct,pu({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=Ks(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(Ks(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=Ks(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(Ks(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=I9(s,g2e);return Z.createElement(Ct,{clipPath:o?"url(#clipPath-".concat(a,")"):null},Z.createElement(tl,pu({},it(b,!0),{points:n,connectNulls:p,type:u,baseLine:i,layout:c,stroke:"none",className:"recharts-area-area"})),h!=="none"&&Z.createElement(tl,pu({},it(this.props,!1),{className:"recharts-area-curve",layout:c,type:u,connectNulls:p,fill:"none",points:n})),h!=="none"&&v&&Z.createElement(tl,pu({},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,x=this.state,_=x.prevPoints,w=x.prevBaseLine;return Z.createElement(Qi,{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 S=O.t;if(_){var E=_.length/s.length,T=s.map(function(F,V){var B=Math.floor(V*E);if(_[B]){var W=_[B],q=xr(W.x,F.x),J=xr(W.y,F.y);return Vs(Vs({},F),{},{x:q(S),y:J(S)})}return F}),A;if(Ve(c)&&typeof c=="number"){var j=xr(w,c);A=j(S)}else if(dt(c)||ed(c)){var N=xr(w,0);A=N(S)}else A=c.map(function(F,V){var B=Math.floor(V*E);if(w[B]){var W=w[B],q=xr(W.x,F.x),J=xr(W.y,F.y);return Vs(Vs({},F),{},{x:q(S),y:J(S)})}return F});return o.renderAreaStatically(T,A,n,i)}return Z.createElement(Ct,null,Z.createElement("defs",null,Z.createElement("clipPath",{id:"animationClipPath-".concat(i)},o.renderClipRect(S))),Z.createElement(Ct,{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||!ul(h,a)||!ul(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,x=i.height,_=i.isAnimationActive,w=i.id;if(o||!s||!s.length)return null;var O=this.state.isAnimationFinished,S=s.length===1,E=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=M7(a)?a:{},Q=J.clipDot,ne=Q===void 0?!0:Q,ae=B*2+q;return Z.createElement(Ct,{className:E},T||A?Z.createElement("defs",null,Z.createElement("clipPath",{id:"clipPath-".concat(N)},Z.createElement("rect",{x:T?h:h-b/2,y:A?u:u-x/2,width:T?b:b*2,height:A?x:x*2})),!ne&&Z.createElement("clipPath",{id:"clipPath-dots-".concat(N)},Z.createElement("rect",{x:h-ae/2,y:u-ae/2,width:b+ae,height:x+ae}))):null,S?null:this.renderArea(j,N),(a||S)&&this.renderDots(j,ne,N),(!_||O)&&wo.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}}])}($.PureComponent);L9=Fu;Qo(Fu,"displayName","Area");Qo(Fu,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Gi.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});Qo(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]});Qo(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,x=u&&u.length,_=L9.getBaseValue(t,r,n,i),w=b==="horizontal",O=!1,S=p.map(function(T,A){var j;x?j=u[h+A]:(j=ir(T,c),Array.isArray(j)?O=!0:j=[_,j]);var N=j[1]==null||x&&ir(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}}),E;return x||O?E=S.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}}):E=w?i.scale(_):n.scale(_),Vs({points:S,baseLine:E,layout:b,isRange:O},v)});Qo(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=I9(t,y2e);r=Z.createElement(vm,pu({},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 E2e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function T2e(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,U9(n.key),n)}}function j2e(e,t,r){return t&&T2e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function A2e(e,t,r){return t=c0(t),k2e(e,F9()?Reflect.construct(t,r||[],c0(e).constructor):t.apply(e,r))}function k2e(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 R2e(e)}function R2e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(F9=function(){return!!e})()}function c0(e){return c0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},c0(e)}function N2e(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 B9(e,t,r){return t=U9(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function U9(e){var t=M2e(e,"string");return Ff(t)=="symbol"?t:t+""}function M2e(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 E2e(this,t),A2e(this,t,arguments)}return N2e(t,e),j2e(t,[{key:"render",value:function(){return null}}])}(Z.Component);B9(Eb,"displayName","ZAxis");B9(Eb,"defaultProps",{zAxisId:0,range:[64,64],scale:"auto",type:"number"});var L2e=["option","isActive"];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 I2e(e,t){if(e==null)return{};var r=D2e(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 D2e(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 $2e(e){var t=e.option,r=e.isActive,n=I2e(e,L2e);return typeof t=="string"?Z.createElement(Zy,qh({option:Z.createElement(nb,qh({type:t},n)),isActive:r,shapeType:"symbols"},n)):Z.createElement(Zy,qh({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 Hh(){return Hh=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},Hh.apply(this,arguments)}function y5(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 Ui(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?y5(Object(r),!0).forEach(function(n){Zs(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y5(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function F2e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b5(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,V9(n.key),n)}}function B2e(e,t,r){return t&&b5(e.prototype,t),r&&b5(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function U2e(e,t,r){return t=f0(t),z2e(e,z9()?Reflect.construct(t,r||[],f0(e).constructor):t.apply(e,r))}function z2e(e,t){if(t&&(Bf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return V2e(e)}function V2e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function z9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(z9=function(){return!!e})()}function f0(e){return f0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},f0(e)}function W2e(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 Zs(e,t,r){return t=V9(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function V9(e){var t=q2e(e,"string");return Bf(t)=="symbol"?t:t+""}function q2e(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 Tb=function(e){function t(){var r;F2e(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return r=U2e(this,t,[].concat(i)),Zs(r,"state",{isAnimationFinished:!1}),Zs(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0})}),Zs(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1})}),Zs(r,"id",gl("recharts-scatter-")),r}return W2e(t,e),B2e(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,x=Ui(Ui({},u),h);return Z.createElement(Ct,Hh({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)},ll(i.props,h,p),{role:"img"}),Z.createElement($2e,Hh({option:b,isActive:v,key:"symbol-".concat(p)},x)))})}},{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(Qi,{begin:s,duration:c,isActive:a,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(h),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(v){var b=v.t,x=o.map(function(_,w){var O=p&&p[w];if(O){var S=xr(O.cx,_.cx),E=xr(O.cy,_.cy),T=xr(O.size,_.size);return Ui(Ui({},_),{},{cx:S(b),cy:E(b),size:T(b)})}var A=xr(0,_.size);return Ui(Ui({},_),{},{size:A(b)})});return Z.createElement(Ct,null,n.renderSymbolsStatically(x))})}},{key:"renderSymbols",value:function(){var n=this.props,i=n.points,o=n.isAnimationActive,a=this.state.prevPoints;return o&&i&&i.length&&(!a||!ul(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=kn(c,od);return u?u.map(function(h,p){var v=h.props,b=v.direction,x=v.dataKey;return Z.cloneElement(h,{key:"".concat(b,"-").concat(x,"-").concat(o[p]),data:o,xAxis:a,yAxis:s,layout:b==="x"?"vertical":"horizontal",dataPointFormatter:function(w,O){return{x:w.cx,y:w.cy,value:b==="x"?+w.node.x:+w.node.y,errorVal:ir(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(E){return{x:E.cx,y:E.cy}});else if(a==="fitting"){var v=tce(i),b=v.xmin,x=v.xmax,_=v.a,w=v.b,O=function(T){return _*T+w};h=[{x:b,y:O(b)},{x,y:O(x)}]}var S=Ui(Ui(Ui({},c),{},{fill:"none",stroke:c&&c.fill},u),{},{points:h});return Z.isValidElement(o)?p=Z.cloneElement(o,S):ft(o)?p=o(S):p=Z.createElement(tl,Hh({},S,{type:s})),Z.createElement(Ct,{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,x=n.id,_=n.isAnimationActive;if(i||!o||!o.length)return null;var w=this.state.isAnimationFinished,O=ze("recharts-scatter",s),S=c&&c.allowDataOverflow,E=u&&u.allowDataOverflow,T=S||E,A=dt(x)?this.id:x;return Z.createElement(Ct,{className:O,clipPath:T?"url(#clipPath-".concat(A,")"):null},S||E?Z.createElement("defs",null,Z.createElement("clipPath",{id:"clipPath-".concat(A)},Z.createElement("rect",{x:S?h:h-v/2,y:E?p:p-b/2,width:S?v:v*2,height:E?b:b*2}))):null,a&&this.renderLine(),this.renderErrorBar(),Z.createElement(Ct,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!_||w)&&wo.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}}])}($.PureComponent);Zs(Tb,"displayName","Scatter");Zs(Tb,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!Gi.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"});Zs(Tb,"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=kn(i.props.children,Js),p=dt(t.dataKey)?i.props.dataKey:t.dataKey,v=dt(r.dataKey)?i.props.dataKey:r.dataKey,b=n&&n.dataKey,x=n?n.range:Eb.defaultProps.range,_=x&&x[0],w=t.scale.bandwidth?t.scale.bandwidth():0,O=r.scale.bandwidth?r.scale.bandwidth():0,S=o.map(function(E,T){var A=ir(E,p),j=ir(E,v),N=!dt(b)&&ir(E,b)||"-",F=[{name:dt(t.dataKey)?i.props.name:t.name||t.dataKey,unit:t.unit||"",value:A,payload:E,dataKey:p,type:u},{name:dt(r.dataKey)?i.props.name:r.name||r.dataKey,unit:r.unit||"",value:j,payload:E,dataKey:v,type:u}];N!=="-"&&F.push({name:n.name||n.dataKey,unit:n.unit||"",value:N,payload:E,dataKey:b,type:u});var V=Pf({axis:t,ticks:a,bandSize:w,entry:E,index:T,dataKey:p}),B=Pf({axis:r,ticks:s,bandSize:O,entry:E,index:T,dataKey:v}),W=N!=="-"?n.scale(N):_,q=Math.sqrt(Math.max(W,0)/Math.PI);return Ui(Ui({},E),{},{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:E},h&&h[T]&&h[T].props)});return Ui({points:S},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 H2e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function G2e(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 K2e(e,t,r){return t&&G2e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Y2e(e,t,r){return t=d0(t),Z2e(e,W9()?Reflect.construct(t,r||[],d0(e).constructor):t.apply(e,r))}function Z2e(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 X2e(e)}function X2e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function W9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(W9=function(){return!!e})()}function d0(e){return d0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},d0(e)}function Q2e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&dE(e,t)}function dE(e,t){return dE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},dE(e,t)}function q9(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=J2e(e,"string");return Uf(t)=="symbol"?t:t+""}function J2e(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 hE(){return hE=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},hE.apply(this,arguments)}function eOe(e){var t=e.xAxisId,r=$j(),n=Fj(),i=x9(t);return i==null?null:Z.createElement(sd,hE({},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 Da(a,!0)}}))}var ud=function(e){function t(){return H2e(this,t),Y2e(this,t,arguments)}return Q2e(t,e),K2e(t,[{key:"render",value:function(){return Z.createElement(eOe,this.props)}}])}(Z.Component);q9(ud,"displayName","XAxis");q9(ud,"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 tOe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rOe(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,Y9(n.key),n)}}function nOe(e,t,r){return t&&rOe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function iOe(e,t,r){return t=h0(t),oOe(e,G9()?Reflect.construct(t,r||[],h0(e).constructor):t.apply(e,r))}function oOe(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 aOe(e)}function aOe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function G9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(G9=function(){return!!e})()}function h0(e){return h0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},h0(e)}function sOe(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&&pE(e,t)}function pE(e,t){return pE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},pE(e,t)}function K9(e,t,r){return t=Y9(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Y9(e){var t=lOe(e,"string");return zf(t)=="symbol"?t:t+""}function lOe(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 mE(){return mE=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},mE.apply(this,arguments)}var uOe=function(t){var r=t.yAxisId,n=$j(),i=Fj(),o=w9(r);return o==null?null:Z.createElement(sd,mE({},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 Da(s,!0)}}))},cd=function(e){function t(){return tOe(this,t),iOe(this,t,arguments)}return sOe(t,e),nOe(t,[{key:"render",value:function(){return Z.createElement(uOe,this.props)}}])}(Z.Component);K9(cd,"displayName","YAxis");K9(cd,"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 _5(e){return hOe(e)||dOe(e)||fOe(e)||cOe()}function cOe(){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 fOe(e,t){if(e){if(typeof e=="string")return vE(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 vE(e,t)}}function dOe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function hOe(e){if(Array.isArray(e))return vE(e)}function vE(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 gE=function(t,r,n,i,o){var a=kn(t,Uj),s=kn(t,Pb),c=[].concat(_5(a),_5(s)),u=kn(t,gm),h="".concat(i,"Id"),p=i[0],v=r;if(c.length&&(v=c.reduce(function(_,w){if(w.props[h]===n&&ta(w.props,"extendDomain")&&Ve(w.props[p])){var O=w.props[p];return[Math.min(_[0],O),Math.max(_[1],O)]}return _},v)),u.length){var b="".concat(p,"1"),x="".concat(p,"2");v=u.reduce(function(_,w){if(w.props[h]===n&&ta(w.props,"extendDomain")&&Ve(w.props[b])&&Ve(w.props[x])){var O=w.props[b],S=w.props[x];return[Math.min(_[0],O,S),Math.max(_[1],O,S)]}return _},v)}return o&&o.length&&(v=o.reduce(function(_,w){return Ve(w)?[Math.min(_[0],w),Math.max(_[1],w)]:_},v)),v},IO={exports:{}},x5;function pOe(){return x5||(x5=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),x=r?r+u:u;return c._events[x]?c._events[x].fn?c._events[x]=[c._events[x],b]:c._events[x].push(b):(c._events[x]=b,c._eventsCount++),c}function a(c,u){--c._eventsCount===0?c._events=new 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,x=new Array(b);v<b;v++)x[v]=p[v].fn;return x},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,x){var _=r?r+u:u;if(!this._events[_])return!1;var w=this._events[_],O=arguments.length,S,E;if(w.fn){switch(w.once&&this.removeListener(u,w.fn,void 0,!0),O){case 1:return w.fn.call(w.context),!0;case 2:return w.fn.call(w.context,h),!0;case 3:return w.fn.call(w.context,h,p),!0;case 4:return w.fn.call(w.context,h,p,v),!0;case 5:return w.fn.call(w.context,h,p,v,b),!0;case 6:return w.fn.call(w.context,h,p,v,b,x),!0}for(E=1,S=new Array(O-1);E<O;E++)S[E-1]=arguments[E];w.fn.apply(w.context,S)}else{var T=w.length,A;for(E=0;E<T;E++)switch(w[E].once&&this.removeListener(u,w[E].fn,void 0,!0),O){case 1:w[E].fn.call(w[E].context);break;case 2:w[E].fn.call(w[E].context,h);break;case 3:w[E].fn.call(w[E].context,h,p);break;case 4:w[E].fn.call(w[E].context,h,p,v);break;default:if(!S)for(A=1,S=new Array(O-1);A<O;A++)S[A-1]=arguments[A];w[E].fn.apply(w[E].context,S)}}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 x=this._events[b];if(x.fn)x.fn===h&&(!v||x.once)&&(!p||x.context===p)&&a(this,b);else{for(var _=0,w=[],O=x.length;_<O;_++)(x[_].fn!==h||v&&!x[_].once||p&&x[_].context!==p)&&w.push(x[_]);w.length?this._events[b]=w.length===1?w[0]:w:a(this,b)}return this},s.prototype.removeAllListeners=function(u){var h;return u?(h=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}(IO)),IO.exports}var mOe=pOe();const vOe=Nt(mOe);var DO=new vOe,$O="recharts.syncMouseEvents";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 gOe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yOe(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 bOe(e,t,r){return t&&yOe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function FO(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=_Oe(e,"string");return Wp(t)=="symbol"?t:t+""}function _Oe(e,t){if(Wp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Wp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var xOe=function(){function e(){gOe(this,e),FO(this,"activeIndex",0),FO(this,"coordinateList",[]),FO(this,"layout","horizontal")}return bOe(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 wOe(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 OOe(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 X9(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,o=e.endAngle,a=Jt(t,r,n,i),s=Jt(t,r,n,o);return{points:[a,s],cx:t,cy:r,radius:n,startAngle:i,endAngle:o}}function SOe(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=Jt(s,c,u,p),b=Jt(s,c,h,p);n=v.x,i=v.y,o=b.x,a=b.y}else return X9(t);return[{x:n,y:i},{x:o,y:a}]}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)}function w5(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 ag(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?w5(Object(r),!0).forEach(function(n){POe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w5(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function POe(e,t,r){return t=COe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function COe(e){var t=EOe(e,"string");return qp(t)=="symbol"?t:t+""}function EOe(e,t){if(qp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(qp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function TOe(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,_=tl;if(v==="ScatterChart")x=a,_=x_e;else if(v==="BarChart")x=OOe(p,a,c,h),_=Mj;else if(p==="radial"){var w=X9(a),O=w.cx,S=w.cy,E=w.radius,T=w.startAngle,A=w.endAngle;x={cx:O,cy:S,startAngle:T,endAngle:A,innerRadius:E,outerRadius:E},_=VU}else x={points:SOe(p,a,c)},_=tl;var j=ag(ag(ag(ag({stroke:"#ccc",pointerEvents:"none"},c),x),it(b,!1)),{},{payload:s,payloadIndex:u,className:ze("recharts-tooltip-cursor",b.className)});return $.isValidElement(b)?$.cloneElement(b,j):$.createElement(_,j)}var jOe=["item"],AOe=["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 O5(e,t){return NOe(e)||ROe(e,t)||J9(e,t)||kOe()}function kOe(){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 ROe(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 NOe(e){if(Array.isArray(e))return e}function S5(e,t){if(e==null)return{};var r=MOe(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 MOe(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 LOe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function IOe(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,ez(n.key),n)}}function DOe(e,t,r){return t&&IOe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function $Oe(e,t,r){return t=p0(t),FOe(e,Q9()?Reflect.construct(t,r||[],p0(e).constructor):t.apply(e,r))}function FOe(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 BOe(e)}function BOe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Q9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Q9=function(){return!!e})()}function p0(e){return p0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},p0(e)}function UOe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&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 Wf(e){return WOe(e)||VOe(e)||J9(e)||zOe()}function zOe(){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 J9(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 VOe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function WOe(e){if(Array.isArray(e))return bE(e)}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 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 Te(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){ht(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 ht(e,t,r){return t=ez(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ez(e){var t=qOe(e,"string");return Vf(t)=="symbol"?t:t+""}function qOe(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 HOe={xAxis:["bottom","top"],yAxis:["left","right"]},GOe={width:"100%",height:"100%"},tz={x:0,y:0};function sg(e){return e}var KOe=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},YOe=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),Jt(i.cx,i.cy,s,a)),{},{angle:a,radius:s})}var c=o.coordinate,u=i.angle;return Te(Te(Te({},i),Jt(i.cx,i.cy,c,u)),{},{angle:u,radius:c})}return tz},jb=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 rz(e){return e==="number"?[0,"auto"]:void 0}var _E=function(t,r,n,i){var o=t.graphicalItems,a=t.tooltipAxis,s=jb(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=py(b,a.dataKey,i)}else v=p&&p[n]||s[n];return v?[].concat(Wf(c),[DU(u,v)]):c},[])},C5=function(t,r,n,i){var o=i||{x:t.chartX,y:t.chartY},a=KOe(o,n),s=t.orderedTooltipTicks,c=t.tooltipAxis,u=t.tooltipTicks,h=aye(a,s,u,c);if(h>=0&&u){var p=u[h]&&u[h].value,v=_E(t,r,h,p),b=YOe(n,s,h,o);return{activeTooltipIndex:h,activeLabel:p,activePayload:v,activeCoordinate:b}}return null},ZOe=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=kU(h,o);return n.reduce(function(x,_){var w,O=_.type.defaultProps!==void 0?Te(Te({},_.type.defaultProps),_.props):_.props,S=O.type,E=O.dataKey,T=O.allowDataOverflow,A=O.allowDuplicatedCategory,j=O.scale,N=O.ticks,F=O.includeHidden,V=O[a];if(x[V])return x;var B=jb(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;wOe(O.domain,T,S)&&(q=kC(O.domain,null,T),b&&(S==="number"||j!=="auto")&&(Q=Bh(B,E,"category")));var ne=rz(S);if(!q||q.length===0){var ae,se=(ae=O.domain)!==null&&ae!==void 0?ae:ne;if(E){if(q=Bh(B,E,S),S==="category"&&b){var oe=ece(q);A&&oe?(J=q,q=Qy(0,W)):A||(q=SD(se,q,_).reduce(function(re,X){return re.indexOf(X)>=0?re:[].concat(Wf(re),[X])},[]))}else if(S==="category")A?q=q.filter(function(re){return re!==""&&!dt(re)}):q=SD(se,q,_).reduce(function(re,X){return re.indexOf(X)>=0||X===""||dt(X)?re:[].concat(Wf(re),[X])},[]);else if(S==="number"){var K=fye(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)}),E,o,h);K&&(q=K)}b&&(S==="number"||j!=="auto")&&(Q=Bh(B,E,"category"))}else b?q=Qy(0,W):s&&s[V]&&s[V].hasStack&&S==="number"?q=v==="expand"?[0,1]:IU(s[V].stackGroups,c,u):q=AU(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)}),S,h,!0);if(S==="number")q=gE(p,q,V,o,N),se&&(q=kC(se,q,T));else if(S==="category"&&se){var G=se,z=q.every(function(re){return G.indexOf(re)>=0});z&&(q=G)}}return Te(Te({},x),{},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})))},{})},XOe=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=jb(t.data,{graphicalItems:n,dataStartIndex:c,dataEndIndex:u}),b=v.length,x=kU(h,o),_=-1;return n.reduce(function(w,O){var S=O.type.defaultProps!==void 0?Te(Te({},O.type.defaultProps),O.props):O.props,E=S[a],T=rz("number");if(!w[E]){_++;var A;return x?A=Qy(0,b):s&&s[E]&&s[E].hasStack?(A=IU(s[E].stackGroups,c,u),A=gE(p,A,E,o)):(A=kC(T,AU(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===E&&!B}),"number",h),i.defaultProps.allowDataOverflow),A=gE(p,A,E,o)),Te(Te({},w),{},ht({},E,Te(Te({axisType:o},i.defaultProps),{},{hide:!0,orientation:vi(HOe,"".concat(o,".").concat(_%2),null),domain:A,originalDomain:T,isCategorical:x,layout:h})))}return w},{})},QOe=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=kn(h,o),b={};return v&&v.length?b=ZOe(t,{axes:v,graphicalItems:a,axisType:i,axisIdKey:p,stackGroups:s,dataStartIndex:c,dataEndIndex:u}):a&&a.length&&(b=XOe(t,{Axis:o,graphicalItems:a,axisType:i,axisIdKey:p,stackGroups:s,dataStartIndex:c,dataEndIndex:u})),b},JOe=function(t){var r=Gs(t),n=Da(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:aj(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:Fy(r,n)}},E5=function(t){var r=t.children,n=t.defaultShowTooltip,i=hi(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}},eSe=function(t){return!t||!t.length?!1:t.some(function(r){var n=Ba(r&&r.type);return n&&n.indexOf("Bar")>=0})},T5=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"}},tSe=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=hi(p,kf),x=hi(p,rf),_=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,vi(A,"".concat(F))+N.height)):A},{top:v.top||0,bottom:v.bottom||0}),O=Te(Te({},w),_),S=O.bottom;b&&(O.bottom+=b.props.height||kf.defaultProps.height),x&&r&&(O=uye(O,i,n,r));var E=u-O.left-O.right,T=h-O.top-O.bottom;return Te(Te({brushBottom:S},O),{},{width:Math.max(E,0),height:Math.max(T,0)})},rSe=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},qj=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,S){var E=S.graphicalItems,T=S.stackGroups,A=S.offset,j=S.updateId,N=S.dataStartIndex,F=S.dataEndIndex,V=O.barSize,B=O.layout,W=O.barGap,q=O.barCategoryGap,J=O.maxBarSize,Q=T5(B),ne=Q.numericAxisName,ae=Q.cateAxisName,se=eSe(E),oe=[];return E.forEach(function(K,G){var z=jb(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=S["".concat(qe.axisType,"Map")],we=re["".concat(qe.axisType,"Id")];ye&&ye[we]||qe.axisType==="zAxis"||Au();var Ae=ye[we];return Te(Te({},Be),{},ht(ht({},qe.axisType,Ae),"".concat(qe.axisType,"Ticks"),Da(Ae)))},be),D=M[ae],Y=M["".concat(ae,"Ticks")],ue=T&&T[ce]&&T[ce].hasStack&&_ye(K,T[ce].stackGroups),ie=Ba(K.type).indexOf("Bar")>=0,he=Fy(D,Y),Se=[],Fe=se&&sye({barSize:V,stackGroups:T,totalSize:rSe(M,ae)});if(ie){var ge,Ee,je=dt(le)?J:le,Me=(ge=(Ee=Fy(D,Y,!0))!==null&&Ee!==void 0?Ee:je)!==null&&ge!==void 0?ge:0;Se=lye({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:dce(K,O.children),item:K})}),oe},b=function(O,S){var E=O.props,T=O.dataStartIndex,A=O.dataEndIndex,j=O.updateId;if(!FM({props:E}))return null;var N=E.children,F=E.layout,V=E.stackOffset,B=E.data,W=E.reverseStackOrder,q=T5(F),J=q.numericAxisName,Q=q.cateAxisName,ne=kn(N,n),ae=yye(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,QOe(E,Te(Te({},X),{},{graphicalItems:ne,stackGroups:X.axisType===J&&ae,dataStartIndex:T,dataEndIndex:A}))))},{}),oe=tSe(Te(Te({},se),{},{props:E,graphicalItems:ne}),S==null?void 0:S.legendBBox);Object.keys(se).forEach(function(re){se[re]=h(E,se[re],oe,re.replace("Map",""),r)});var K=se["".concat(Q,"Map")],G=JOe(K),z=v(E,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)},x=function(w){function O(S){var E,T,A;return LOe(this,O),A=$Oe(this,O,[S]),ht(A,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),ht(A,"accessibilityManager",new xOe),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=fce(j),F=vi(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&&DO.emit($O,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=_E(A.state,A.props.data,ne),ce=oe[ne]?{x:F==="horizontal"?oe[ne].coordinate:z,y:F==="horizontal"?re:oe[ne].coordinate}:tz;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(TOe,{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=vi(j,"type.axisType"),B=vi(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 $.cloneElement(j,Te(Te({},J),{},{className:ze(V,J.className),key:j.key||"".concat(N,"-").concat(F),ticks:Da(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=Gs(q),ne=Gs(J),ae=ne.cx,se=ne.cy,oe=ne.innerRadius,K=ne.outerRadius;return $.cloneElement(j,{polarAngles:Array.isArray(V)?V:Da(ne,!0).map(function(G){return G.coordinate}),polarRadius:Array.isArray(B)?B:Da(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=TU({children:F,formattedGraphicalItems:j,legendWidth:q,legendContent:u});if(!J)return null;var Q=J.item,ne=S5(J,jOe);return $.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=hi(F,zi);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 $.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 $.cloneElement(j,{key:j.key||"_recharts-brush",onChange:rg(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 $.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:Nj(N.item),strokeWidth:2,stroke:"#fff",payload:F.payload,value:F.value},it(ne,!1)),my(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=hi(ae,zi),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:rg(A.handleItemMouseEnter,j.props.onClick)}:B!=="axis"&&(M={onMouseLeave:rg(A.handleItemMouseLeave,j.props.onMouseLeave),onMouseEnter:rg(A.handleItemMouseEnter,j.props.onMouseEnter)});var D=$.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=py(K,he,ne),ie=G&&z&&py(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[$.cloneElement(j,Te(Te(Te({},V.props),M),{},{activeIndex:Se})),null,null]}if(!dt(ue))return[D].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:D},Ee=ge.graphicalItem,je=Ee.item,Me=je===void 0?j:je,He=Ee.childIndex,Be=Te(Te(Te({},V.props),M),{},{activeIndex:He});return[$.cloneElement(Me,Be),null,null]}return G?[D,null,null]:[D,null]}),ht(A,"renderCustomized",function(j,N,F){return $.cloneElement(j,Te(Te({key:"recharts-customized-".concat(F)},A.props),A.state))}),ht(A,"renderMap",{CartesianGrid:{handler:sg,once:!0},ReferenceArea:{handler:A.renderReferenceElement},ReferenceLine:{handler:sg},ReferenceDot:{handler:A.renderReferenceElement},XAxis:{handler:sg},YAxis:{handler:sg},Brush:{handler:A.renderBrush,once:!0},Bar:{handler:A.renderGraphicChild},Line:{handler:A.renderGraphicChild},Area:{handler:A.renderGraphicChild},Radar:{handler:A.renderGraphicChild},RadialBar:{handler:A.renderGraphicChild},Scatter:{handler:A.renderGraphicChild},Pie:{handler:A.renderGraphicChild},Funnel:{handler:A.renderGraphicChild},Tooltip:{handler:A.renderCursor,once:!0},PolarGrid:{handler:A.renderPolarGrid,once:!0},PolarAngleAxis:{handler:A.renderPolarAxis},PolarRadiusAxis:{handler:A.renderPolarAxis},Customized:{handler:A.renderCustomized}}),A.clipPathId="".concat((E=S.id)!==null&&E!==void 0?E:gl("recharts"),"-clip"),A.throttleTriggeredAfterMouseMove=EB(A.triggeredAfterMouseMove,(T=S.throttleDelay)!==null&&T!==void 0?T:1e3/60),A.state={},A}return UOe(O,w),DOe(O,[{key:"componentDidMount",value:function(){var E,T;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(E=this.props.margin.left)!==null&&E!==void 0?E:0,top:(T=this.props.margin.top)!==null&&T!==void 0?T:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var E=this.props,T=E.children,A=E.data,j=E.height,N=E.layout,F=hi(T,zi);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=_E(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(E,T){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==T.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==E.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==E.margin){var A,j;this.accessibilityManager.setDetails({offset:{left:(A=this.props.margin.left)!==null&&A!==void 0?A:0,top:(j=this.props.margin.top)!==null&&j!==void 0?j:0}})}return null}},{key:"componentDidUpdate",value:function(E){JP([hi(E.children,zi)],[hi(this.props.children,zi)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var E=hi(this.props.children,zi);if(E&&typeof E.props.shared=="boolean"){var T=E.props.shared?"axis":"item";return s.indexOf(T)>=0?T:o}return o}},{key:"getMouseInfo",value:function(E){if(!this.container)return null;var T=this.container,A=T.getBoundingClientRect(),j=Qhe(A),N={chartX:Math.round(E.pageX-j.left),chartY:Math.round(E.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=Gs(W).scale,ne=Gs(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=C5(this.state,this.props.data,this.props.layout,V);return oe?Te(Te({},N),oe):null}},{key:"inRange",value:function(E,T){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,j=this.props.layout,N=E/A,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=Gs(q);return ED({x:N,y:F},Q)}return null}},{key:"parseEventsOfWrapper",value:function(){var E=this.props.children,T=this.getTooltipEventType(),A=hi(E,zi),j={};A&&T==="axis"&&(A.props.trigger==="click"?j={onClick:this.handleClick}:j={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var N=my(this.props,this.handleOuterEvent);return Te(Te({},N),j)}},{key:"addListener",value:function(){DO.on($O,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){DO.removeListener($O,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(E,T,A){for(var j=this.state.formattedGraphicalItems,N=0,F=j.length;N<F;N++){var V=j[N];if(V.item===E||V.props.key===E.key||T===Ba(V.item.type)&&A===V.childIndex)return V}return null}},{key:"renderClipPath",value:function(){var E=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:E},Z.createElement("rect",{x:A,y:j,height:N,width:F})))}},{key:"getXScales",value:function(){var E=this.state.xAxisMap;return E?Object.entries(E).reduce(function(T,A){var j=O5(A,2),N=j[0],F=j[1];return Te(Te({},T),{},ht({},N,F.scale))},{}):null}},{key:"getYScales",value:function(){var E=this.state.yAxisMap;return E?Object.entries(E).reduce(function(T,A){var j=O5(A,2),N=j[0],F=j[1];return Te(Te({},T),{},ht({},N,F.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(E){var T;return(T=this.state.xAxisMap)===null||T===void 0||(T=T[E])===null||T===void 0?void 0:T.scale}},{key:"getYScaleByAxisId",value:function(E){var T;return(T=this.state.yAxisMap)===null||T===void 0||(T=T[E])===null||T===void 0?void 0:T.scale}},{key:"getItemByXY",value:function(E){var T=this.state,A=T.formattedGraphicalItems,j=T.activeItem;if(A&&A.length)for(var N=0,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=Ba(W.type);if(J==="Bar"){var Q=(B.data||[]).find(function(oe){return t_e(E,oe)});if(Q)return{graphicalItem:V,payload:Q}}else if(J==="RadialBar"){var ne=(B.data||[]).find(function(oe){return ED(E,oe)});if(ne)return{graphicalItem:V,payload:ne}}else if(xb(V,j)||wb(V,j)||Fp(V,j)){var ae=S1e({graphicalItem:V,activeTooltipItem:j,itemData:q.data}),se=q.activeIndex===void 0?ae:q.activeIndex;return{graphicalItem:Te(Te({},V),{},{childIndex:se}),payload:Fp(V,j)?q.data[ae]:V.props.data[ae]}}}return null}},{key:"render",value:function(){var E=this;if(!FM(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=S5(T,AOe),Q=it(J,!1);if(B)return Z.createElement(e5,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},Z.createElement(tC,Qc({},Q,{width:N,height:F,title:W,desc:q}),this.renderClipPath(),UM(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){E.accessibilityManager.keyboardEvent(oe)},Q.onFocus=function(){E.accessibilityManager.focus()}}var se=this.parseEventsOfWrapper();return Z.createElement(e5,{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){E.container=K}}),Z.createElement(tC,Qc({},Q,{width:N,height:F,title:W,desc:q,style:GOe}),this.renderClipPath(),UM(A,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}($.Component);ht(x,"displayName",r),ht(x,"defaultProps",Te({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},p)),ht(x,"getDerivedStateFromProps",function(w,O){var S=w.dataKey,E=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=E5(w);return Te(Te(Te({},q),{},{updateId:0},b(Te(Te({props:w},q),{},{updateId:0}),O)),{},{prevDataKey:S,prevData:E,prevWidth:A,prevHeight:j,prevLayout:N,prevStackOffset:F,prevMargin:V,prevChildren:T})}if(S!==O.prevDataKey||E!==O.prevData||A!==O.prevWidth||j!==O.prevHeight||N!==O.prevLayout||F!==O.prevStackOffset||!tf(V,O.prevMargin)){var J=E5(w),Q={chartX:O.chartX,chartY:O.chartY,isTooltipActive:O.isTooltipActive},ne=Te(Te({},C5(O,E,N)),{},{updateId:O.updateId+1}),ae=Te(Te(Te({},J),Q),ne);return Te(Te(Te({},ae),b(Te({props:w},ae),O)),{},{prevDataKey:S,prevData:E,prevWidth:A,prevHeight:j,prevLayout:N,prevStackOffset:F,prevMargin:V,prevChildren:T})}if(!JP(T,O.prevChildren)){var se,oe,K,G,z=hi(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(E),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(x,"renderActiveDot",function(w,O,S){var E;return $.isValidElement(w)?E=$.cloneElement(w,O):ft(w)?E=w(O):E=Z.createElement(vm,O),Z.createElement(Ct,{className:"recharts-active-dot",key:S},E)});var _=$.forwardRef(function(O,S){return Z.createElement(x,Qc({},O,{ref:S}))});return _.displayName=x.displayName,_},nSe=qj({chartName:"LineChart",GraphicalChild:ld,axisComponents:[{axisType:"xAxis",AxisComp:ud},{axisType:"yAxis",AxisComp:cd}],formatAxisMap:h9}),iSe=qj({chartName:"PieChart",GraphicalChild:aa,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:_b},{axisType:"radiusAxis",AxisComp:yb}],formatAxisMap:Aye,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),oSe=qj({chartName:"ComposedChart",GraphicalChild:[ld,Fu,za,Tb],axisComponents:[{axisType:"xAxis",AxisComp:ud},{axisType:"yAxis",AxisComp:cd},{axisType:"zAxis",AxisComp:Eb}],formatAxisMap:h9});function nz(e,t){const r=$.useRef(t);$.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 aSe=1;function sSe(e){return Object.freeze({__version:aSe,map:e})}function lSe(e,t){return Object.freeze({...e,...t})}const iz=$.createContext(null),oz=iz.Provider;function az(){const e=$.useContext(iz);if(e==null)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return e}function uSe(e){function t(r,n){const{instance:i,context:o}=e(r).current;return $.useImperativeHandle(n,()=>i),r.children==null?null:Z.createElement(oz,{value:o},r.children)}return $.forwardRef(t)}function cSe(e){function t(r,n){const[i,o]=$.useState(!1),{instance:a}=e(r,o).current;$.useImperativeHandle(n,()=>a),$.useEffect(function(){i&&a.update()},[a,i,r.children]);const s=a._contentNode;return s?mT.createPortal(r.children,s):null}return $.forwardRef(t)}function fSe(e){function t(r,n){const{instance:i}=e(r).current;return $.useImperativeHandle(n,()=>i),null}return $.forwardRef(t)}function sz(e,t){const r=$.useRef();$.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 Hj(e,t){const r=e.pane??t.pane;return r?{...e,pane:r}:e}function dSe(e,t){return function(n,i){const o=az(),a=e(Hj(n,o),o);return nz(o.map,n.attribution),sz(a.current,n.eventHandlers),t(a.current,o,n,i),a}}var jh={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 hSe=jh.exports,j5;function pSe(){return j5||(j5=1,function(e,t){(function(r,n){n(t)})(hSe,function(r){var n="1.9.4";function i(f){var m,P,k,U;for(P=1,k=arguments.length;P<k;P++){U=arguments[P];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 P=Array.prototype.slice;if(f.bind)return f.bind.apply(f,P.call(arguments,1));var k=P.call(arguments,2);return function(){return f.apply(m,k.length?k.concat(P.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,P){var k,U,te,pe;return pe=function(){k=!1,U&&(te.apply(P,U),U=!1)},te=function(){k?U=arguments:(f.apply(P,arguments),setTimeout(pe,m),k=!0)},te}function h(f,m,P){var k=m[1],U=m[0],te=k-U;return f===k&&P?f:((f-U)%te+te)%te+U}function p(){return!1}function v(f,m){if(m===!1)return f;var P=Math.pow(10,m===void 0?6:m);return Math.round(f*P)/P}function b(f){return f.trim?f.trim():f.replace(/^\s+|\s+$/g,"")}function x(f){return b(f).split(/\s+/)}function _(f,m){Object.prototype.hasOwnProperty.call(f,"options")||(f.options=f.options?o(f.options):{});for(var P in m)f.options[P]=m[P];return f.options}function w(f,m,P){var k=[];for(var U in f)k.push(encodeURIComponent(P?U.toUpperCase():U)+"="+encodeURIComponent(f[U]));return(!m||m.indexOf("?")===-1?"?":"&")+k.join("&")}var O=/\{ *([\w_ -]+) *\}/g;function S(f,m){return f.replace(O,function(P,k){var U=m[k];if(U===void 0)throw new Error("No value provided for variable "+P);return typeof U=="function"&&(U=U(m)),U})}var E=Array.isArray||function(f){return Object.prototype.toString.call(f)==="[object Array]"};function T(f,m){for(var P=0;P<f.length;P++)if(f[P]===m)return P;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,P=Math.max(0,16-(m-N));return N=m+P,window.setTimeout(f,P)}var V=window.requestAnimationFrame||j("RequestAnimationFrame")||F,B=window.cancelAnimationFrame||j("CancelAnimationFrame")||j("CancelRequestAnimationFrame")||function(f){window.clearTimeout(f)};function W(f,m,P){if(P&&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:x,setOptions:_,getParamString:w,template:S,isArray:E,indexOf:T,emptyImageUrl:A,requestFn:V,cancelFn:B,requestAnimFrame:W,cancelAnimFrame:q};function Q(){}Q.extend=function(f){var m=function(){_(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},P=m.__super__=this.prototype,k=o(P);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=P.options?o(P.options):{},i(k.options,f.options)),k._initHooks=[],k.callInitHooks=function(){if(!this._initHooksCalled){P.callInitHooks&&P.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),P=typeof f=="function"?f:function(){this[f].apply(this,m)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(P),this};function ne(f){if(!(typeof L>"u"||!L||!L.Mixin)){f=E(f)?f:[f];for(var m=0;m<f.length;m++)f[m]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var ae={on:function(f,m,P){if(typeof f=="object")for(var k in f)this._on(k,f[k],m);else{f=x(f);for(var U=0,te=f.length;U<te;U++)this._on(f[U],m,P)}return this},off:function(f,m,P){if(!arguments.length)delete this._events;else if(typeof f=="object")for(var k in f)this._off(k,f[k],m);else{f=x(f);for(var U=arguments.length===1,te=0,pe=f.length;te<pe;te++)U?this._off(f[te]):this._off(f[te],m,P)}return this},_on:function(f,m,P,k){if(typeof m!="function"){console.warn("wrong listener type: "+typeof m);return}if(this._listens(f,m,P)===!1){P===this&&(P=void 0);var U={fn:m,ctx:P};k&&(U.once=!0),this._events=this._events||{},this._events[f]=this._events[f]||[],this._events[f].push(U)}},_off:function(f,m,P){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,P);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,P){if(!this.listens(f,P))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 P&&this._propagateEvent(k),this},listens:function(f,m,P,k){typeof f!="string"&&console.warn('"string" type argument expected');var U=m;typeof m!="function"&&(k=!!m,U=void 0,P=void 0);var te=this._events&&this._events[f];if(te&&te.length&&this._listens(f,U,P)!==!1)return!0;if(k){for(var pe in this._eventParents)if(this._eventParents[pe].listens(f,m,P,k))return!0}return!1},_listens:function(f,m,P){if(!this._events)return!1;var k=this._events[f]||[];if(!m)return!!k.length;P===this&&(P=void 0);for(var U=0,te=k.length;U<te;U++)if(k[U].fn===m&&k[U].ctx===P)return U;return!1},once:function(f,m,P){if(typeof f=="object")for(var k in f)this._on(k,f[k],m,!0);else{f=x(f);for(var U=0,te=f.length;U<te;U++)this._on(f[U],m,P,!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,P){this.x=P?Math.round(f):f,this.y=P?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,P=f.y-this.y;return Math.sqrt(m*m+P*P)},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,P){return f instanceof oe?f:E(f)?new oe(f[0],f[1]):f==null?f:typeof f=="object"&&"x"in f&&"y"in f?new oe(f.x,f.y):new oe(f,m,P)}function z(f,m){if(f)for(var P=m?[f,m]:f,k=0,U=P.length;k<U;k++)this.extend(P[k])}z.prototype={extend:function(f){var m,P;if(!f)return this;if(f instanceof oe||typeof f[0]=="number"||"x"in f)m=P=G(f);else if(f=re(f),m=f.min,P=f.max,!m||!P)return this;return!this.min&&!this.max?(this.min=m.clone(),this.max=P.clone()):(this.min.x=Math.min(m.x,this.min.x),this.max.x=Math.max(P.x,this.max.x),this.min.y=Math.min(m.y,this.min.y),this.max.y=Math.max(P.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,P;return typeof f[0]=="number"||f instanceof oe?f=G(f):f=re(f),f instanceof z?(m=f.min,P=f.max):m=P=f,m.x>=this.min.x&&P.x<=this.max.x&&m.y>=this.min.y&&P.y<=this.max.y},intersects:function(f){f=re(f);var m=this.min,P=this.max,k=f.min,U=f.max,te=U.x>=m.x&&k.x<=P.x,pe=U.y>=m.y&&k.y<=P.y;return te&&pe},overlaps:function(f){f=re(f);var m=this.min,P=this.max,k=f.min,U=f.max,te=U.x>m.x&&k.x<P.x,pe=U.y>m.y&&k.y<P.y;return te&&pe},isValid:function(){return!!(this.min&&this.max)},pad:function(f){var m=this.min,P=this.max,k=Math.abs(m.x-P.x)*f,U=Math.abs(m.y-P.y)*f;return re(G(m.x-k,m.y-U),G(P.x+k,P.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 P=m?[f,m]:f,k=0,U=P.length;k<U;k++)this.extend(P[k])}X.prototype={extend:function(f){var m=this._southWest,P=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&&!P?(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),P.lat=Math.max(U.lat,P.lat),P.lng=Math.max(U.lng,P.lng)),this},pad:function(f){var m=this._southWest,P=this._northEast,k=Math.abs(m.lat-P.lat)*f,U=Math.abs(m.lng-P.lng)*f;return new X(new ce(m.lat-k,m.lng-U),new ce(P.lat+k,P.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,P=this._northEast,k,U;return f instanceof X?(k=f.getSouthWest(),U=f.getNorthEast()):k=U=f,k.lat>=m.lat&&U.lat<=P.lat&&k.lng>=m.lng&&U.lng<=P.lng},intersects:function(f){f=le(f);var m=this._southWest,P=this._northEast,k=f.getSouthWest(),U=f.getNorthEast(),te=U.lat>=m.lat&&k.lat<=P.lat,pe=U.lng>=m.lng&&k.lng<=P.lng;return te&&pe},overlaps:function(f){f=le(f);var m=this._southWest,P=this._northEast,k=f.getSouthWest(),U=f.getNorthEast(),te=U.lat>m.lat&&k.lat<P.lat,pe=U.lng>m.lng&&k.lng<P.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,P){if(isNaN(f)||isNaN(m))throw new Error("Invalid LatLng object: ("+f+", "+m+")");this.lat=+f,this.lng=+m,P!==void 0&&(this.alt=+P)}ce.prototype={equals:function(f,m){if(!f)return!1;f=de(f);var P=Math.max(Math.abs(this.lat-f.lat),Math.abs(this.lng-f.lng));return P<=(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,P=m/Math.cos(Math.PI/180*this.lat);return le([this.lat-m,this.lng-P],[this.lat+m,this.lng+P])},clone:function(){return new ce(this.lat,this.lng,this.alt)}};function de(f,m,P){return f instanceof ce?f:E(f)&&typeof f[0]!="object"?f.length===3?new ce(f[0],f[1],f[2]):f.length===2?new ce(f[0],f[1]):null:f==null?f:typeof f=="object"&&"lat"in f?new ce(f.lat,"lng"in f?f.lng:f.lon,f.alt):m===void 0?null:new ce(f,m,P)}var be={latLngToPoint:function(f,m){var P=this.projection.project(f),k=this.scale(m);return this.transformation._transform(P,k)},pointToLatLng:function(f,m){var P=this.scale(m),k=this.transformation.untransform(f,P);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,P=this.scale(f),k=this.transformation.transform(m.min,P),U=this.transformation.transform(m.max,P);return new z(k,U)},infinite:!1,wrapLatLng:function(f){var m=this.wrapLng?h(f.lng,this.wrapLng,!0):f.lng,P=this.wrapLat?h(f.lat,this.wrapLat,!0):f.lat,k=f.alt;return new ce(P,m,k)},wrapLatLngBounds:function(f){var m=f.getCenter(),P=this.wrapLatLng(m),k=m.lat-P.lat,U=m.lng-P.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 P=Math.PI/180,k=f.lat*P,U=m.lat*P,te=Math.sin((m.lat-f.lat)*P/2),pe=Math.sin((m.lng-f.lng)*P/2),_e=te*te+Math.cos(k)*Math.cos(U)*pe*pe,Pe=2*Math.atan2(Math.sqrt(_e),Math.sqrt(1-_e));return this.R*Pe}}),D=6378137,Y={R:D,MAX_LATITUDE:85.0511287798,project:function(f){var m=Math.PI/180,P=this.MAX_LATITUDE,k=Math.max(Math.min(P,f.lat),-P),U=Math.sin(k*m);return new oe(this.R*f.lng*m,this.R*Math.log((1+U)/(1-U))/2)},unproject:function(f){var m=180/Math.PI;return new ce((2*Math.atan(Math.exp(f.y/this.R))-Math.PI/2)*m,f.x*m/this.R)},bounds:function(){var f=D*Math.PI;return new z([-f,-f],[f,f])}()};function ue(f,m,P,k){if(E(f)){this._a=f[0],this._b=f[1],this._c=f[2],this._d=f[3];return}this._a=f,this._b=m,this._c=P,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,P,k){return new ue(f,m,P,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 P="",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],P+=(U?"L":"M")+Pe.x+" "+Pe.y;P+=m?nt.svg?"z":"x":""}return P||"M0 0"}var Ee=document.documentElement.style,je="ActiveXObject"in window,Me=je&&!document.addEventListener,He="msLaunchUri"in navigator&&!("documentMode"in document),Be=vr("webkit"),qe=vr("android"),ye=vr("android 2")||vr("android 3"),we=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),Ae=qe&&vr("Google")&&we<537&&!("AudioNode"in window),ke=!!window.opera,De=!He&&vr("chrome"),Ke=vr("gecko")&&!Be&&!ke&&!je,Xe=!De&&vr("safari"),bt=vr("phantom"),Ot="OTransition"in Ee,xt=navigator.platform.indexOf("Win")===0,er=je&&"transition"in Ee,Kt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!ye,Ar="MozPerspective"in Ee,Ir=!window.L_DISABLE_3D&&(er||Kt||Ar)&&!Ot&&!bt,Mn=typeof orientation<"u"||vr("mobile"),Cr=Mn&&Be,da=Mn&&Kt,Ln=!window.PointerEvent&&window.MSPointerEvent,eo=!!(window.PointerEvent||Ln),to="ontouchstart"in window||!!window.TouchEvent,wl=!window.L_NO_TOUCH&&(to||eo),os=Mn&&ke,No=Mn&&Ke,hr=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,ar=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}(),Dr=function(){return!!document.createElement("canvas").getContext}(),kr=!!(document.createElementNS&&Fe("svg").createSVGRect),pr=!!kr&&function(){var f=document.createElement("div");return f.innerHTML="<svg/>",(f.firstChild&&f.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),mr=!kr&&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}}(),tn=navigator.platform.indexOf("Mac")===0,Qn=navigator.platform.indexOf("Linux")===0;function vr(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:er,webkit3d:Kt,gecko3d:Ar,any3d:Ir,mobile:Mn,mobileWebkit:Cr,mobileWebkit3d:da,msPointer:Ln,pointer:eo,touch:wl,touchNative:to,mobileOpera:os,mobileGecko:No,retina:hr,passiveEvents:ar,canvas:Dr,svg:kr,vml:mr,inlineSvg:pr,mac:tn,linux:Qn},Ol=nt.msPointer?"MSPointerDown":"pointerdown",zu=nt.msPointer?"MSPointerMove":"pointermove",Cm=nt.msPointer?"MSPointerUp":"pointerup",Em=nt.msPointer?"MSPointerCancel":"pointercancel",pd={touchstart:Ol,touchmove:zu,touchend:Cm,touchcancel:Em},Mo={touchstart:gr,touchmove:Vu,touchend:Vu,touchcancel:Vu},ha={},md=!1;function Fb(f,m,P){return m==="touchstart"&&Bb(),Mo[m]?(P=Mo[m].bind(this,P),f.addEventListener(pd[m],P,!1),P):(console.warn("wrong event specified:",m),p)}function Tm(f,m,P){if(!pd[m]){console.warn("wrong event specified:",m);return}f.removeEventListener(pd[m],P,!1)}function jm(f){ha[f.pointerId]=f}function Am(f){ha[f.pointerId]&&(ha[f.pointerId]=f)}function vd(f){delete ha[f.pointerId]}function Bb(){md||(document.addEventListener(Ol,jm,!0),document.addEventListener(zu,Am,!0),document.addEventListener(Cm,vd,!0),document.addEventListener(Em,vd,!0),md=!0)}function Vu(f,m){if(m.pointerType!==(m.MSPOINTER_TYPE_MOUSE||"mouse")){m.touches=[];for(var P in ha)m.touches.push(ha[P]);m.changedTouches=[m],f(m)}}function gr(f,m){m.MSPOINTER_TYPE_TOUCH&&m.pointerType===m.MSPOINTER_TYPE_TOUCH&&yr(m),Vu(f,m)}function Ub(f){var m={},P,k;for(k in f)P=f[k],m[k]=P&&P.bind?P.bind(f):P;return f=m,m.type="dblclick",m.detail=2,m.isTrusted=!1,m._simulated=!0,m}var gd=200;function km(f,m){f.addEventListener("dblclick",m);var P=0,k;function U(te){if(te.detail!==1){k=te.detail;return}if(!(te.pointerType==="mouse"||te.sourceCapabilities&&!te.sourceCapabilities.firesTouchEvents)){var pe=va(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-P<=gd?(k++,k===2&&m(Ub(te))):k=1,P=_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 yd=us(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),as=us(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Sl=as==="webkitTransition"||as==="OTransition"?as+"End":"transitionend";function Jn(f){return typeof f=="string"?document.getElementById(f):f}function Pl(f,m){var P=f.style[m]||f.currentStyle&&f.currentStyle[m];if((!P||P==="auto")&&document.defaultView){var k=document.defaultView.getComputedStyle(f,null);P=k?k[m]:null}return P==="auto"?null:P}function wt(f,m,P){var k=document.createElement(f);return k.className=m||"",P&&P.appendChild(k),k}function tr(f){var m=f.parentNode;m&&m.removeChild(f)}function qu(f){for(;f.firstChild;)f.removeChild(f.firstChild)}function ss(f){var m=f.parentNode;m&&m.lastChild!==f&&m.appendChild(f)}function ro(f){var m=f.parentNode;m&&m.firstChild!==f&&m.insertBefore(f,m.firstChild)}function ls(f,m){if(f.classList!==void 0)return f.classList.contains(m);var P=Hu(f);return P.length>0&&new RegExp("(^|\\s)"+m+"(\\s|$)").test(P)}function gt(f,m){if(f.classList!==void 0)for(var P=x(m),k=0,U=P.length;k<U;k++)f.classList.add(P[k]);else if(!ls(f,m)){var te=Hu(f);bd(f,(te?te+" ":"")+m)}}function Yt(f,m){f.classList!==void 0?f.classList.remove(m):bd(f,b((" "+Hu(f)+" ").replace(" "+m+" "," ")))}function bd(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 ln(f,m){"opacity"in f.style?f.style.opacity=m:"filter"in f.style&&Rm(f,m)}function Rm(f,m){var P=!1,k="DXImageTransform.Microsoft.Alpha";try{P=f.filters.item(k)}catch{if(m===1)return}m=Math.round(m*100),P?(P.Enabled=m!==100,P.Opacity=m):f.style.filter+=" progid:"+k+"(opacity="+m+")"}function us(f){for(var m=document.documentElement.style,P=0;P<f.length;P++)if(f[P]in m)return f[P];return!1}function ei(f,m,P){var k=m||new oe(0,0);f.style[yd]=(nt.ie3d?"translate("+k.x+"px,"+k.y+"px)":"translate3d("+k.x+"px,"+k.y+"px,0)")+(P?" scale("+P+")":"")}function wr(f,m){f._leaflet_pos=m,nt.any3d?ei(f,m):(f.style.left=m.x+"px",f.style.top=m.y+"px")}function no(f){return f._leaflet_pos||new oe(0,0)}var Rt,cs,Gu;if("onselectstart"in document)Rt=function(){pt(window,"selectstart",yr)},cs=function(){Ut(window,"selectstart",yr)};else{var pa=us(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Rt=function(){if(pa){var f=document.documentElement.style;Gu=f[pa],f[pa]="none"}},cs=function(){pa&&(document.documentElement.style[pa]=Gu,Gu=void 0)}}function Ku(){pt(window,"dragstart",yr)}function Yu(){Ut(window,"dragstart",yr)}var Cl,El;function fs(f){for(;f.tabIndex===-1;)f=f.parentNode;f.style&&(ti(),Cl=f,El=f.style.outlineStyle,f.style.outlineStyle="none",pt(window,"keydown",ti))}function ti(){Cl&&(Cl.style.outlineStyle=El,Cl=void 0,El=void 0,Ut(window,"keydown",ti))}function io(f){do f=f.parentNode;while((!f.offsetWidth||!f.offsetHeight)&&f!==document.body);return f}function Pi(f){var m=f.getBoundingClientRect();return{x:m.width/f.offsetWidth||1,y:m.height/f.offsetHeight||1,boundingClientRect:m}}var Tl={__proto__:null,TRANSFORM:yd,TRANSITION:as,TRANSITION_END:Sl,get:Jn,getStyle:Pl,create:wt,remove:tr,empty:qu,toFront:ss,toBack:ro,hasClass:ls,addClass:gt,removeClass:Yt,setClass:bd,getClass:Hu,setOpacity:ln,testProp:us,setTransform:ei,setPosition:wr,getPosition:no,get disableTextSelection(){return Rt},get enableTextSelection(){return cs},disableImageDrag:Ku,enableImageDrag:Yu,preventOutline:fs,restoreOutline:ti,getSizedParentNode:io,getScale:Pi};function pt(f,m,P,k){if(m&&typeof m=="object")for(var U in m)xd(f,U,m[U],P);else{m=x(m);for(var te=0,pe=m.length;te<pe;te++)xd(f,m[te],P,k)}return this}var $r="_leaflet_events";function Ut(f,m,P,k){if(arguments.length===1)_d(f),delete f[$r];else if(m&&typeof m=="object")for(var U in m)Zu(f,U,m[U],P);else if(m=x(m),arguments.length===2)_d(f,function(_e){return T(m,_e)!==-1});else for(var te=0,pe=m.length;te<pe;te++)Zu(f,m[te],P,k);return this}function _d(f,m){for(var P in f[$r]){var k=P.split(/\d/)[0];(!m||m(k))&&Zu(f,k,null,null,P)}}var ma={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function xd(f,m,P,k){var U=m+c(P)+(k?"_"+c(k):"");if(f[$r]&&f[$r][U])return this;var te=function(_e){return P.call(k||f,_e||window.event)},pe=te;!nt.touchNative&&nt.pointer&&m.indexOf("touch")===0?te=Fb(f,m,te):nt.touch&&m==="dblclick"?te=km(f,te):"addEventListener"in f?m==="touchstart"||m==="touchmove"||m==="wheel"||m==="mousewheel"?f.addEventListener(ma[m]||m,te,nt.passiveEvents?{passive:!1}:!1):m==="mouseenter"||m==="mouseleave"?(te=function(_e){_e=_e||window.event,kl(f,_e)&&pe(_e)},f.addEventListener(ma[m],te,!1)):f.addEventListener(m,pe,!1):f.attachEvent("on"+m,te),f[$r]=f[$r]||{},f[$r][U]=te}function Zu(f,m,P,k,U){U=U||m+c(P)+(k?"_"+c(k):"");var te=f[$r]&&f[$r][U];if(!te)return this;!nt.touchNative&&nt.pointer&&m.indexOf("touch")===0?Tm(f,m,te):nt.touch&&m==="dblclick"?Wu(f,te):"removeEventListener"in f?f.removeEventListener(ma[m]||m,te,!1):f.detachEvent("on"+m,te),f[$r][U]=null}function Ci(f){return f.stopPropagation?f.stopPropagation():f.originalEvent?f.originalEvent._stopped=!0:f.cancelBubble=!0,this}function Xu(f){return xd(f,"wheel",Ci),this}function jl(f){return pt(f,"mousedown touchstart dblclick contextmenu",Ci),f._leaflet_disable_click=!0,this}function yr(f){return f.preventDefault?f.preventDefault():f.returnValue=!1,this}function ri(f){return yr(f),Ci(f),this}function va(f){if(f.composedPath)return f.composedPath();for(var m=[],P=f.target;P;)m.push(P),P=P.parentNode;return m}function Al(f,m){if(!m)return new oe(f.clientX,f.clientY);var P=Pi(m),k=P.boundingClientRect;return new oe((f.clientX-k.left)/P.x-m.clientLeft,(f.clientY-k.top)/P.y-m.clientTop)}var zb=nt.linux&&nt.chrome?window.devicePixelRatio:nt.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function Nm(f){return nt.edge?f.wheelDeltaY/2:f.deltaY&&f.deltaMode===0?-f.deltaY/zb: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 kl(f,m){var P=m.relatedTarget;if(!P)return!0;try{for(;P&&P!==f;)P=P.parentNode}catch{return!1}return P!==f}var Qu={__proto__:null,on:pt,off:Ut,stopPropagation:Ci,disableScrollPropagation:Xu,disableClickPropagation:jl,preventDefault:yr,stop:ri,getPropagationPath:va,getMousePosition:Al,getWheelDelta:Nm,isExternalTarget:kl,addListener:pt,removeListener:Ut},Ju=se.extend({run:function(f,m,P,k){this.stop(),this._el=f,this._inProgress=!0,this._duration=P||.25,this._easeOutPower=1/Math.max(k||.5,.2),this._startPos=no(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,P=this._duration*1e3;m<P?this._runFrame(this._easeOut(m/P),f):(this._runFrame(1),this._complete())},_runFrame:function(f,m){var P=this._startPos.add(this._offset.multiplyBy(f));m&&P._round(),wr(this._el,P),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=_(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=as&&nt.any3d&&!nt.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),pt(this._proxy,Sl,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(f,m,P){if(m=m===void 0?this._zoom:this._limitZoom(m),f=this._limitCenter(de(f),m,this.options.maxBounds),P=P||{},this._stop(),this._loaded&&!P.reset&&P!==!0){P.animate!==void 0&&(P.zoom=i({animate:P.animate},P.zoom),P.pan=i({animate:P.animate,duration:P.duration},P.pan));var k=this._zoom!==m?this._tryAnimatedZoom&&this._tryAnimatedZoom(f,m,P.zoom):this._tryAnimatedPan(f,P.pan);if(k)return clearTimeout(this._sizeTimer),this}return this._resetView(f,m,P.pan&&P.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,P){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:P})},_getBoundsCenterZoom:function(f,m){m=m||{},f=f.getBounds?f.getBounds():le(f);var P=G(m.paddingTopLeft||m.padding||[0,0]),k=G(m.paddingBottomRight||m.padding||[0,0]),U=this.getBoundsZoom(f,!1,P.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(P).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 P=this._getBoundsCenterZoom(f,m);return this.setView(P.center,P.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 P=this._getMapPanePos().subtract(f).round();this._panAnim.run(this._mapPane,P,m.duration||.25,m.easeLinearity)}else this._rawPanBy(f),this.fire("move").fire("moveend");return this},flyTo:function(f,m,P){if(P=P||{},P.animate===!1||!nt.any3d)return this.setView(f,m,P);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 Cs=Dt?-1:1,r_=Dt?Pe:_e,n_=Pe*Pe-_e*_e+Cs*st*st*Re*Re,Oa=2*r_*st*Re,Sa=n_/Oa,Pa=Math.sqrt(Sa*Sa+1)-Sa,hc=Pa<1e-9?-18:Math.log(Pa);return hc}function Fr(Dt){return(Math.exp(Dt)-Math.exp(-Dt))/2}function Rr(Dt){return(Math.exp(Dt)+Math.exp(-Dt))/2}function xn(Dt){return Fr(Dt)/Rr(Dt)}var cn=St(0);function Ss(Dt){return _e*(Rr(cn)/Rr(cn+Ze*Dt))}function zd(Dt){return _e*(Rr(cn)*xn(cn+Ze*Dt)-Fr(cn))/st}function zo(Dt){return 1-Math.pow(1-Dt,1.5)}var ev=Date.now(),wa=(St(1)-cn)/Ze,Ai=P.duration?1e3*P.duration:1e3*wa*.8;function Ps(){var Dt=(Date.now()-ev)/Ai,Cs=zo(Dt)*wa;Dt<=1?(this._flyToFrame=W(Ps,this),this._move(this.unproject(k.add(U.subtract(k).multiplyBy(zd(Cs)/Re)),pe),this.getScaleZoom(_e/Ss(Cs),pe),{flyTo:!0})):this._move(f,m)._moveEnd(!0)}return this._moveStart(!0,P.noMoveStart),Ps.call(this),this},flyToBounds:function(f,m){var P=this._getBoundsCenterZoom(f,m);return this.flyTo(P.center,P.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 P=this.getCenter(),k=this._limitCenter(P,this._zoom,le(f));return P.equals(k)||this.panTo(k,m),this._enforcingBounds=!1,this},panInside:function(f,m){m=m||{};var P=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(P),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 P=this.getSize(),k=m.divideBy(2).round(),U=P.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:P}))},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),P=a(this._handleGeolocationError,this);return f.watch?this._locationWatchId=navigator.geolocation.watchPosition(m,P,f):navigator.geolocation.getCurrentPosition(m,P,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,P=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: "+P+"."})}},_handleGeolocationResponse:function(f){if(this._container._leaflet_id){var m=f.coords.latitude,P=f.coords.longitude,k=new ce(m,P),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 P=this[f]=new m(this);return this._handlers.push(P),this.options[f]&&P.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),tr(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)tr(this._panes[f]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(f,m){var P="leaflet-pane"+(f?" leaflet-"+f.replace("Pane","")+"-pane":""),k=wt("div",P,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()),P=this.unproject(f.getTopRight());return new X(m,P)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(f,m,P){f=le(f),P=G(P||[0,0]);var k=this.getZoom()||0,U=this.getMinZoom(),te=this.getMaxZoom(),pe=f.getNorthWest(),_e=f.getSouthEast(),Pe=this.getSize().subtract(P),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,Fr=m?Math.max(st,St):Math.min(st,St);return k=this.getScaleZoom(Fr,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 P=this._getTopLeftPoint(f,m);return new z(P,P.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 P=this.options.crs;return m=m===void 0?this._zoom:m,P.scale(f)/P.scale(m)},getScaleZoom:function(f,m){var P=this.options.crs;m=m===void 0?this._zoom:m;var k=P.zoom(f*P.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 Al(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=Jn(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=Pl(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),wr(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,P){wr(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,P)._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,P,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?P&&P.pinch&&this.fire("zoom",P):((U||P&&P.pinch)&&this.fire("zoom",P),this.fire("move",P)),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){wr(this._mapPane,this._getMapPanePos().subtract(f))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(f){this._targets={},this._targets[c(this._container)]=this;var m=f?Ut: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 P=[],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&&!kl(te,f)||(P.push(k),U))||te===this._container)break;te=te.parentNode}return!P.length&&!pe&&!U&&this.listens(m,!0)&&(P=[this]),P},_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 P=f.type;P==="mousedown"&&fs(m),this._fireDOMEvent(f,P)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(f,m,P){if(f.type==="click"){var k=i({},f);k.type="preclick",this._fireDOMEvent(k,k.type,P)}var U=this._findEventTargets(f,m);if(P){for(var te=[],pe=0;pe<P.length;pe++)P[pe].listens(m,!0)&&te.push(P[pe]);U=te.concat(U)}if(U.length){m==="contextmenu"&&yr(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 no(this._mapPane)||new oe(0,0)},_moved:function(){var f=this._getMapPanePos();return f&&!f.equals([0,0])},_getTopLeftPoint:function(f,m){var P=f&&m!==void 0?this._getNewPixelOrigin(f,m):this.getPixelOrigin();return P.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(f,m){var P=this.getSize()._divideBy(2);return this.project(f,m)._subtract(P)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(f,m,P){var k=this._getNewPixelOrigin(P,m);return this.project(f,m)._subtract(k)},_latLngBoundsToNewLayerBounds:function(f,m,P){var k=this._getNewPixelOrigin(P,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,P){if(!P)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,P,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 P=this.getPixelBounds(),k=new z(P.min.add(f),P.max.add(f));return f.add(this._getBoundsOffset(k,m))},_getBoundsOffset:function(f,m,P){var k=re(this.project(m.getNorthEast(),P),this.project(m.getSouthWest(),P)),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(),P=this.getMaxZoom(),k=nt.any3d?this.options.zoomSnap:1;return k&&(f=Math.round(f/k)*k),Math.max(m,Math.min(P,f))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){Yt(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(f,m){var P=this._getCenterOffset(f)._trunc();return(m&&m.animate)!==!0&&!this.getSize().contains(P)?!1:(this.panBy(P,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 P=yd,k=this._proxy.style[P];ei(this._proxy,this.project(m.center,m.zoom),this.getZoomScale(m.zoom,1)),k===this._proxy.style[P]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){tr(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var f=this.getCenter(),m=this.getZoom();ei(this._proxy,this.project(f,m),this.getZoomScale(m,1))},_catchTransitionEnd:function(f){this._animatingZoom&&f.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(f,m,P){if(this._animatingZoom)return!0;if(P=P||{},!this._zoomAnimated||P.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 P.animate!==!0&&!this.getSize().contains(U)?!1:(W(function(){this._moveStart(!0,P.noMoveStart||!1)._animateZoom(f,m,!0)},this),!0)},_animateZoom:function(f,m,P,k){this._mapPane&&(P&&(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&&Yt(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 Lo(f,m){return new Tt(f,m)}var bn=Q.extend({options:{position:"topright"},initialize:function(f){_(this,f)},getPosition:function(){return this.options.position},setPosition:function(f){var m=this._map;return m&&m.removeControl(this),this.options.position=f,m&&m.addControl(this),this},getContainer:function(){return this._container},addTo:function(f){this.remove(),this._map=f;var m=this._container=this.onAdd(f),P=this.getPosition(),k=f._controlCorners[P];return gt(m,"leaflet-control"),P.indexOf("bottom")!==-1?k.insertBefore(m,k.firstChild):k.appendChild(m),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(tr(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()}}),Io=function(f){return new bn(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-",P=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,P)}k("top","left"),k("top","right"),k("bottom","left"),k("bottom","right")},_clearControlPos:function(){for(var f in this._controlCorners)tr(this._controlCorners[f]);tr(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var wd=bn.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(f,m,P,k){return P<k?-1:k<P?1:0}},initialize:function(f,m,P){_(this,P),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 bn.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"):Yt(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return Yt(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var f="leaflet-control-layers",m=this._container=wt("div",f),P=this.options.collapsed;m.setAttribute("aria-haspopup",!0),jl(m),Xu(m);var k=this._section=wt("section",f+"-list");P&&(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){yr(te),this._expandSafely()}},this),P||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,P){this._map&&f.on("add remove",this._onLayerChange,this),this._layers.push({layer:f,name:m,overlay:P}),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,P,k,U=0;for(P=0;P<this._layers.length;P++)k=this._layers[P],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)),P=m.overlay?f.type==="add"?"overlayadd":"overlayremove":f.type==="add"?"baselayerchange":null;P&&this._map.fire(P,m)},_createRadioElement:function(f,m){var P='<input type="radio" class="leaflet-control-layers-selector" name="'+f+'"'+(m?' checked="checked"':"")+"/>",k=document.createElement("div");return k.innerHTML=P,k.firstChild},_addItem:function(f){var m=document.createElement("label"),P=this._map.hasLayer(f.layer),k;f.overlay?(k=document.createElement("input"),k.type="checkbox",k.className="leaflet-control-layers-selector",k.defaultChecked=P):k=this._createRadioElement("leaflet-base-layers_"+c(this),P),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,P,k=[],U=[];this._handlingClick=!0;for(var te=f.length-1;te>=0;te--)m=f[te],P=this._getLayer(m.layerId).layer,m.checked?k.push(P):m.checked||U.push(P);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,P,k=this._map.getZoom(),U=f.length-1;U>=0;U--)m=f[U],P=this._getLayer(m.layerId).layer,m.disabled=P.options.minZoom!==void 0&&k<P.options.minZoom||P.options.maxZoom!==void 0&&k>P.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",yr),this.expand();var m=this;setTimeout(function(){Ut(f,"click",yr),m._preventClick=!1})}}),ec=function(f,m,P){return new wd(f,m,P)},ds=bn.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(f){var m="leaflet-control-zoom",P=wt("div",m+" leaflet-bar"),k=this.options;return this._zoomInButton=this._createButton(k.zoomInText,k.zoomInTitle,m+"-in",P,this._zoomIn),this._zoomOutButton=this._createButton(k.zoomOutText,k.zoomOutTitle,m+"-out",P,this._zoomOut),this._updateDisabled(),f.on("zoomend zoomlevelschange",this._updateDisabled,this),P},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,P,k,U){var te=wt("a",P,k);return te.innerHTML=f,te.href="#",te.title=m,te.setAttribute("role","button"),te.setAttribute("aria-label",m),jl(te),pt(te,"click",ri),pt(te,"click",U,this),pt(te,"click",this._refocusOnMap,this),te},_updateDisabled:function(){var f=this._map,m="leaflet-disabled";Yt(this._zoomInButton,m),Yt(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 ds,this.addControl(this.zoomControl))});var Mm=function(f){return new ds(f)},un=bn.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(f){var m="leaflet-control-scale",P=wt("div",m),k=this.options;return this._addScales(k,m+"-line",P),f.on(k.updateWhenIdle?"moveend":"move",this._update,this),f.whenReady(this._update,this),P},onRemove:function(f){f.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(f,m,P){f.metric&&(this._mScale=wt("div",m,P)),f.imperial&&(this._iScale=wt("div",m,P))},_update:function(){var f=this._map,m=f.getSize().y/2,P=f.distance(f.containerPointToLatLng([0,m]),f.containerPointToLatLng([this.options.maxWidth,m]));this._updateScales(P)},_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),P=m<1e3?m+" m":m/1e3+" km";this._updateScale(this._mScale,P,m/f)},_updateImperial:function(f){var m=f*3.2808399,P,k,U;m>5280?(P=m/5280,k=this._getRoundNum(P),this._updateScale(this._iScale,k+" mi",k/P)):(U=this._getRoundNum(m),this._updateScale(this._iScale,U+" ft",U/m))},_updateScale:function(f,m,P){f.style.width=Math.round(this.options.maxWidth*P)+"px",f.innerHTML=m},_getRoundNum:function(f){var m=Math.pow(10,(Math.floor(f)+"").length-1),P=f/m;return P=P>=10?10:P>=5?5:P>=3?3:P>=2?2:1,m*P}}),hs=function(f){return new un(f)},Od='<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>',ga=bn.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(nt.inlineSvg?Od+" ":"")+"Leaflet</a>"},initialize:function(f){_(this,f),this._attributions={}},onAdd:function(f){f.attributionControl=this,this._container=wt("div","leaflet-control-attribution"),jl(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 P=[];this.options.prefix&&P.push(this.options.prefix),f.length&&P.push(f.join(", ")),this._container.innerHTML=P.join(' <span aria-hidden="true">|</span> ')}}});Tt.mergeOptions({attributionControl:!0}),Tt.addInitHook(function(){this.options.attributionControl&&new ga().addTo(this)});var Vb=function(f){return new ga(f)};bn.Layers=wd,bn.Zoom=ds,bn.Scale=un,bn.Attribution=ga,Io.layers=ec,Io.zoom=Mm,Io.scale=hs,Io.attribution=Vb;var In=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}});In.addTo=function(f,m){return f.addHandler(m,this),this};var Sd={Events:ae},ps=nt.touch?"touchstart mousedown":"mousedown",ni=se.extend({options:{clickTolerance:3},initialize:function(f,m,P,k){_(this,k),this._element=f,this._dragStartTarget=m||f,this._preventOutline=P},enable:function(){this._enabled||(pt(this._dragStartTarget,ps,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(ni._dragging===this&&this.finishDrag(!0),Ut(this._dragStartTarget,ps,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(f){if(this._enabled&&(this._moved=!1,!ls(this._element,"leaflet-zoom-anim"))){if(f.touches&&f.touches.length!==1){ni._dragging===this&&this.finishDrag();return}if(!(ni._dragging||f.shiftKey||f.which!==1&&f.button!==1&&!f.touches)&&(ni._dragging=this,this._preventOutline&&fs(this._element),Ku(),Rt(),!this._moving)){this.fire("down");var m=f.touches?f.touches[0]:f,P=io(this._element);this._startPoint=new oe(m.clientX,m.clientY),this._startPos=no(this._element),this._parentScale=Pi(P);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,P=new oe(m.clientX,m.clientY)._subtract(this._startPoint);!P.x&&!P.y||Math.abs(P.x)+Math.abs(P.y)<this.options.clickTolerance||(P.x/=this._parentScale.x,P.y/=this._parentScale.y,yr(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(P),this._moving=!0,this._lastEvent=f,this._updatePosition())}},_updatePosition:function(){var f={originalEvent:this._lastEvent};this.fire("predrag",f),wr(this._element,this._newPos),this.fire("drag",f)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(f){Yt(document.body,"leaflet-dragging"),this._lastTarget&&(Yt(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),Ut(document,"mousemove touchmove",this._onMove,this),Ut(document,"mouseup touchend touchcancel",this._onUp,this),Yu(),cs();var m=this._moved&&this._moving;this._moving=!1,ni._dragging=!1,m&&this.fire("dragend",{noInertia:f,distance:this._newPos.distanceTo(this._startPos)})}});function Pd(f,m,P){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=ya(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,P),St._code=ya(St,m),k.push(St)):(Re._code&st&&(St=rc(Re,Pe,st,m,P),St._code=ya(St,m),k.push(St)),k.push(Pe));f=k}return f}function Lm(f,m){var P,k,U,te,pe,_e,Pe,Re,Ze;if(!f||f.length===0)throw new Error("latlngs not passed");Dn(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),Fr=St.getNorthWest().distanceTo(St.getSouthWest())*St.getNorthEast().distanceTo(St.getNorthWest());Fr<1700&&(st=Cd(f));var Rr=f.length,xn=[];for(P=0;P<Rr;P++){var cn=de(f[P]);xn.push(m.project(de([cn.lat-st.lat,cn.lng-st.lng])))}for(_e=Pe=Re=0,P=0,k=Rr-1;P<Rr;k=P++)U=xn[P],te=xn[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=xn[0]:Ze=[Pe/_e,Re/_e];var Ss=m.unproject(G(Ze));return de([Ss.lat+st.lat,Ss.lng+st.lng])}function Cd(f){for(var m=0,P=0,k=0,U=0;U<f.length;U++){var te=de(f[U]);m+=te.lat,P+=te.lng,k++}return de([m/k,P/k])}var Wb={__proto__:null,clipPolygon:Pd,polygonCenter:Lm,centroid:Cd};function tc(f,m){if(!m||!f.length)return f.slice();var P=m*m;return f=Gb(f,P),f=Hb(f,P),f}function Im(f,m,P){return Math.sqrt(ba(f,m,P,!0))}function qb(f,m,P){return ba(f,m,P)}function Hb(f,m){var P=f.length,k=typeof Uint8Array<"u"?Uint8Array:Array,U=new k(P);U[0]=U[P-1]=1,Ed(f,U,m,0,P-1);var te,pe=[];for(te=0;te<P;te++)U[te]&&pe.push(f[te]);return pe}function Ed(f,m,P,k,U){var te=0,pe,_e,Pe;for(_e=k+1;_e<=U-1;_e++)Pe=ba(f[_e],f[k],f[U],!0),Pe>te&&(pe=_e,te=Pe);te>P&&(m[pe]=1,Ed(f,m,P,k,pe),Ed(f,m,P,pe,U))}function Gb(f,m){for(var P=[f[0]],k=1,U=0,te=f.length;k<te;k++)Kb(f[k],f[U])>m&&(P.push(f[k]),U=k);return U<te-1&&P.push(f[te-1]),P}var Td;function Dm(f,m,P,k,U){var te=k?Td:ya(f,P),pe=ya(m,P),_e,Pe,Re;for(Td=pe;;){if(!(te|pe))return[f,m];if(te&pe)return!1;_e=te||pe,Pe=rc(f,m,_e,P,U),Re=ya(Pe,P),_e===te?(f=Pe,te=Re):(m=Pe,pe=Re)}}function rc(f,m,P,k,U){var te=m.x-f.x,pe=m.y-f.y,_e=k.min,Pe=k.max,Re,Ze;return P&8?(Re=f.x+te*(Pe.y-f.y)/pe,Ze=Pe.y):P&4?(Re=f.x+te*(_e.y-f.y)/pe,Ze=_e.y):P&2?(Re=Pe.x,Ze=f.y+pe*(Pe.x-f.x)/te):P&1&&(Re=_e.x,Ze=f.y+pe*(_e.x-f.x)/te),new oe(Re,Ze,U)}function ya(f,m){var P=0;return f.x<m.min.x?P|=1:f.x>m.max.x&&(P|=2),f.y<m.min.y?P|=4:f.y>m.max.y&&(P|=8),P}function Kb(f,m){var P=m.x-f.x,k=m.y-f.y;return P*P+k*k}function ba(f,m,P,k){var U=m.x,te=m.y,pe=P.x-U,_e=P.y-te,Pe=pe*pe+_e*_e,Re;return Pe>0&&(Re=((f.x-U)*pe+(f.y-te)*_e)/Pe,Re>1?(U=P.x,te=P.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 Dn(f){return!E(f[0])||typeof f[0][0]!="object"&&typeof f[0][0]<"u"}function $m(f){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Dn(f)}function Fm(f,m){var P,k,U,te,pe,_e,Pe,Re;if(!f||f.length===0)throw new Error("latlngs not passed");Dn(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=Cd(f));var Fr=f.length,Rr=[];for(P=0;P<Fr;P++){var xn=de(f[P]);Rr.push(m.project(de([xn.lat-Ze.lat,xn.lng-Ze.lng])))}for(P=0,k=0;P<Fr-1;P++)k+=Rr[P].distanceTo(Rr[P+1])/2;if(k===0)Re=Rr[0];else for(P=0,te=0;P<Fr-1;P++)if(pe=Rr[P],_e=Rr[P+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 cn=m.unproject(G(Re));return de([cn.lat+Ze.lat,cn.lng+Ze.lng])}var Bm={__proto__:null,simplify:tc,pointToSegmentDistance:Im,closestPointOnSegment:qb,clipSegment:Dm,_getEdgeIntersection:rc,_getBitCode:ya,_sqClosestPointOnSegment:ba,isFlat:Dn,_flat:$m,polylineCenter:Fm},jd={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])},Ad={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,P=this.R,k=f.lat*m,U=this.R_MINOR/P,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=-P*Math.log(Math.max(_e,1e-10)),new oe(f.lng*m*P,k)},unproject:function(f){for(var m=180/Math.PI,P=this.R,k=this.R_MINOR/P,U=Math.sqrt(1-k*k),te=Math.exp(-f.y/P),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/P)}},Yb={__proto__:null,LonLat:jd,Mercator:Ad,SphericalMercator:Y},Zb=i({},M,{code:"EPSG:3395",projection:Ad,transformation:function(){var f=.5/(Math.PI*Ad.R);return ie(f,.5,-f,.5)}()}),Um=i({},M,{code:"EPSG:4326",projection:jd,transformation:ie(1/180,1,-1/180,.5)}),Xb=i({},be,{projection:jd,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 P=m.lng-f.lng,k=m.lat-f.lat;return Math.sqrt(P*P+k*k)},infinite:!0});be.Earth=M,be.EPSG3395=Zb,be.EPSG3857=he,be.EPSG900913=Se,be.EPSG4326=Um,be.Simple=Xb;var ii=se.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(f){return f.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(f){return f&&f.removeLayer(this),this},getPane:function(f){return this._map.getPane(f?this.options[f]||f:this.options.pane)},addInteractiveTarget:function(f){return this._map._targets[c(f)]=this,this},removeInteractiveTarget:function(f){return delete this._map._targets[c(f)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(f){var m=f.target;if(m.hasLayer(this)){if(this._map=m,this._zoomAnimated=m._zoomAnimated,this.getEvents){var P=this.getEvents();m.on(P,this),this.once("remove",function(){m.off(P,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 P in this._layers)f.call(m,this._layers[P]);return this},_addLayers:function(f){f=f?E(f)?f:[f]:[];for(var m=0,P=f.length;m<P;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,P=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,P!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var Do=ii.extend({initialize:function(f,m){_(this,m),this._layers={};var P,k;if(f)for(P=0,k=f.length;P<k;P++)this.addLayer(f[P])},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),P,k;for(P in this._layers)k=this._layers[P],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 P in this._layers)f.call(m,this._layers[P]);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)}}),Rl=function(f,m){return new Do(f,m)},oo=Do.extend({addLayer:function(f){return this.hasLayer(f)?this:(f.addEventParent(this),Do.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),Do.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 P=this._layers[m];f.extend(P.getBounds?P.getBounds():P.getLatLng())}return f}}),zm=function(f,m){return new oo(f,m)},_a=Q.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(f){_(this,f)},createIcon:function(f){return this._createIcon("icon",f)},createShadow:function(f){return this._createIcon("shadow",f)},_createIcon:function(f,m){var P=this._getIconUrl(f);if(!P){if(f==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var k=this._createImg(P,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 P=this.options,k=P[m+"Size"];typeof k=="number"&&(k=[k,k]);var U=G(k),te=G(m==="shadow"&&P.shadowAnchor||P.iconAnchor||U&&U.divideBy(2,!0));f.className="leaflet-marker-"+m+" "+(P.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 Vm(f){return new _a(f)}var ms=_a.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 ms.imagePath!="string"&&(ms.imagePath=this._detectIconPath()),(this.options.imagePath||ms.imagePath)+_a.prototype._getIconUrl.call(this,f)},_stripUrl:function(f){var m=function(P,k,U){var te=k.exec(P);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=Pl(f,"background-image")||Pl(f,"backgroundImage");if(document.body.removeChild(f),m=this._stripUrl(m),m)return m;var P=document.querySelector('link[href$="leaflet.css"]');return P?P.href.substring(0,P.href.length-11-1):""}}),kd=In.extend({initialize:function(f){this._marker=f},addHooks:function(){var f=this._marker._icon;this._draggable||(this._draggable=new ni(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&&Yt(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(f){var m=this._marker,P=m._map,k=this._marker.options.autoPanSpeed,U=this._marker.options.autoPanPadding,te=no(m._icon),pe=P.getPixelBounds(),_e=P.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);P.panBy(Re,{animate:!1}),this._draggable._newPos._add(Re),this._draggable._startPos._add(Re),wr(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,P=m._shadow,k=no(m._icon),U=m._map.layerPointToLatLng(k);P&&wr(P,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)}}),ao=ii.extend({options:{icon:new ms,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(f,m){_(this,m),this._latlng=de(f)},onAdd:function(f){this._zoomAnimated=this._zoomAnimated&&f.options.markerZoomAnimation,this._zoomAnimated&&f.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(f){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&f.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(f){var m=this._latlng;return this._latlng=de(f),this.update(),this.fire("move",{oldLatLng:m,latlng:this._latlng})},setZIndexOffset:function(f){return this.options.zIndexOffset=f,this.update()},getIcon:function(){return this.options.icon},setIcon:function(f){return this.options.icon=f,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var f=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(f)}return this},_initIcon:function(){var f=this.options,m="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),P=f.icon.createIcon(this._icon),k=!1;P!==this._icon&&(this._icon&&this._removeIcon(),k=!0,f.title&&(P.title=f.title),P.tagName==="IMG"&&(P.alt=f.alt||"")),gt(P,m),f.keyboard&&(P.tabIndex="0",P.setAttribute("role","button")),this._icon=P,f.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&pt(P,"focus",this._panOnFocus,this);var U=f.icon.createShadow(this._shadow),te=!1;U!==this._shadow&&(this._removeShadow(),te=!0),U&&(gt(U,m),U.alt=""),this._shadow=U,f.opacity<1&&this._updateOpacity(),k&&this.getPane().appendChild(this._icon),this._initInteraction(),U&&te&&this.getPane(f.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Ut(this._icon,"focus",this._panOnFocus,this),tr(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&tr(this._shadow),this._shadow=null},_setPos:function(f){this._icon&&wr(this._icon,f),this._shadow&&wr(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),kd)){var f=this.options.draggable;this.dragging&&(f=this.dragging.enabled(),this.dragging.disable()),this.dragging=new kd(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&&ln(this._icon,f),this._shadow&&ln(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,P=m.iconSize?G(m.iconSize):G(0,0),k=m.iconAnchor?G(m.iconAnchor):G(0,0);f.panInside(this._latlng,{paddingTopLeft:k,paddingBottomRight:P.subtract(k)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function Qb(f,m){return new ao(f,m)}var $o=ii.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(f){this._renderer=f.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(f){return _(this,f),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&f&&Object.prototype.hasOwnProperty.call(f,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),nc=$o.extend({options:{fill:!0,radius:10},initialize:function(f,m){_(this,m),this._latlng=de(f),this._radius=this.options.radius},setLatLng:function(f){var m=this._latlng;return this._latlng=de(f),this.redraw(),this.fire("move",{oldLatLng:m,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(f){return this.options.radius=this._radius=f,this.redraw()},getRadius:function(){return this._radius},setStyle:function(f){var m=f&&f.radius||this._radius;return $o.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,P=this._clickTolerance(),k=[f+P,m+P];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 Wm(f,m){return new nc(f,m)}var ic=nc.extend({initialize:function(f,m,P){if(typeof m=="number"&&(m=i({},P,{radius:m})),_(this,m),this._latlng=de(f),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(f){return this._mRadius=f,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var f=[this._radius,this._radiusY||this._radius];return new X(this._map.layerPointToLatLng(this._point.subtract(f)),this._map.layerPointToLatLng(this._point.add(f)))},setStyle:$o.prototype.setStyle,_project:function(){var f=this._latlng.lng,m=this._latlng.lat,P=this._map,k=P.options.crs;if(k.distance===M.distance){var U=Math.PI/180,te=this._mRadius/M.R/U,pe=P.project([m+te,f]),_e=P.project([m-te,f]),Pe=pe.add(_e).divideBy(2),Re=P.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(P.getPixelOrigin()),this._radius=isNaN(Ze)?0:Pe.x-P.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=P.latLngToLayerPoint(this._latlng),this._radius=this._point.x-P.latLngToLayerPoint(st).x}this._updateBounds()}});function Nl(f,m,P){return new ic(f,m,P)}var _n=$o.extend({options:{smoothFactor:1,noClip:!1},initialize:function(f,m){_(this,m),this._setLatLngs(f)},getLatLngs:function(){return this._latlngs},setLatLngs:function(f){return this._setLatLngs(f),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(f){for(var m=1/0,P=null,k=ba,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,P=k(f,U,te))}return P&&(P.distance=Math.sqrt(m)),P},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Fm(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 Dn(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(f){for(var m=[],P=Dn(f),k=0,U=f.length;k<U;k++)P?(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,P){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]),P.extend(pe[te]);m.push(pe)}else for(te=0;te<U;te++)this._projectLatlngs(f[te],m,P)},_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,P,k,U,te,pe,_e,Pe;for(P=0,U=0,te=this._rings.length;P<te;P++)for(Pe=this._rings[P],k=0,pe=Pe.length;k<pe-1;k++)_e=Dm(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,P=0,k=f.length;P<k;P++)f[P]=tc(f[P],m)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(f,m){var P,k,U,te,pe,_e,Pe=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(f))return!1;for(P=0,te=this._parts.length;P<te;P++)for(_e=this._parts[P],k=0,pe=_e.length,U=pe-1;k<pe;U=k++)if(!(!m&&k===0)&&Im(f,_e[U],_e[k])<=Pe)return!0;return!1}});function Jb(f,m){return new _n(f,m)}_n._flat=$m;var so=_n.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 Lm(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(f){var m=_n.prototype._convertLatLngs.call(this,f),P=m.length;return P>=2&&m[0]instanceof ce&&m[0].equals(m[P-1])&&m.pop(),m},_setLatLngs:function(f){_n.prototype._setLatLngs.call(this,f),Dn(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Dn(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var f=this._renderer._bounds,m=this.options.weight,P=new oe(m,m);if(f=new z(f.min.subtract(P),f.max.add(P)),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=Pd(this._rings[k],f,!0),te.length&&this._parts.push(te)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(f){var m=!1,P,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(P=this._parts[te],pe=0,Re=P.length,_e=Re-1;pe<Re;_e=pe++)k=P[pe],U=P[_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||_n.prototype._containsPoint.call(this,f,!0)}});function e_(f,m){return new so(f,m)}var Ei=oo.extend({initialize:function(f,m){_(this,m),this._layers={},f&&this.addData(f)},addData:function(f){var m=E(f)?f:f.features,P,k,U;if(m){for(P=0,k=m.length;P<k;P++)U=m[P],(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=vs(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 vs(f,m){var P=f.type==="Feature"?f.geometry:f,k=P?P.coordinates:null,U=[],te=m&&m.pointToLayer,pe=m&&m.coordsToLatLng||ac,_e,Pe,Re,Ze;if(!k&&!P)return null;switch(P.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 oo(U);case"LineString":case"MultiLineString":return Pe=Ml(k,P.type==="LineString"?0:1,pe),new _n(Pe,m);case"Polygon":case"MultiPolygon":return Pe=Ml(k,P.type==="Polygon"?1:2,pe),new so(Pe,m);case"GeometryCollection":for(Re=0,Ze=P.geometries.length;Re<Ze;Re++){var st=vs({geometry:P.geometries[Re],type:"Feature",properties:f.properties},m);st&&U.push(st)}return new oo(U);case"FeatureCollection":for(Re=0,Ze=P.features.length;Re<Ze;Re++){var St=vs(P.features[Re],m);St&&U.push(St)}return new oo(U);default:throw new Error("Invalid GeoJSON object.")}}function oc(f,m,P,k){return f?f(m,P):new ao(P,k&&k.markersInheritOptions&&k)}function ac(f){return new ce(f[1],f[0],f[2])}function Ml(f,m,P){for(var k=[],U=0,te=f.length,pe;U<te;U++)pe=m?Ml(f[U],m-1,P):(P||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,P,k){for(var U=[],te=0,pe=f.length;te<pe;te++)U.push(m?lc(f[te],Dn(f[te])?0:m-1,P,k):sc(f[te],k));return!m&&P&&U.length>0&&U.push(U[0].slice()),U}function gs(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 Rd={toGeoJSON:function(f){return gs(this,{type:"Point",coordinates:sc(this.getLatLng(),f)})}};ao.include(Rd),ic.include(Rd),nc.include(Rd),_n.include({toGeoJSON:function(f){var m=!Dn(this._latlngs),P=lc(this._latlngs,m?1:0,!1,f);return gs(this,{type:(m?"Multi":"")+"LineString",coordinates:P})}}),so.include({toGeoJSON:function(f){var m=!Dn(this._latlngs),P=m&&!Dn(this._latlngs[0]),k=lc(this._latlngs,P?2:m?1:0,!0,f);return m||(k=[k]),gs(this,{type:(P?"Multi":"")+"Polygon",coordinates:k})}}),Do.include({toMultiPoint:function(f){var m=[];return this.eachLayer(function(P){m.push(P.toGeoJSON(f).geometry.coordinates)}),gs(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 P=m==="GeometryCollection",k=[];return this.eachLayer(function(U){if(U.toGeoJSON){var te=U.toGeoJSON(f);if(P)k.push(te.geometry);else{var pe=uc(te);pe.type==="FeatureCollection"?k.push.apply(k,pe.features):k.push(pe)}}}),P?gs(this,{geometries:k,type:"GeometryCollection"}):{type:"FeatureCollection",features:k}}});function qm(f,m){return new Ei(f,m)}var oi=qm,Fo=ii.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(f,m,P){this._url=f,this._bounds=le(m),_(this,P)},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(){tr(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&&ss(this._image),this},bringToBack:function(){return this._map&&ro(this._image),this},setUrl:function(f){return this._url=f,this._image&&(this._image.src=f),this},setBounds:function(f){return this._bounds=le(f),this._map&&this._reset(),this},getEvents:function(){var f={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(f.zoomanim=this._animateZoom),f},setZIndex:function(f){return this.options.zIndex=f,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var f=this._url.tagName==="IMG",m=this._image=f?this._url:wt("img");if(gt(m,"leaflet-image-layer"),this._zoomAnimated&&gt(m,"leaflet-zoom-animated"),this.options.className&&gt(m,this.options.className),m.onselectstart=p,m.onmousemove=p,m.onload=a(this.fire,this,"load"),m.onerror=a(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(m.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),f){this._url=m.src;return}m.src=this._url,m.alt=this.options.alt},_animateZoom:function(f){var m=this._map.getZoomScale(f.zoom),P=this._map._latLngBoundsToNewLayerBounds(this._bounds,f.zoom,f.center).min;ei(this._image,P,m)},_reset:function(){var f=this._image,m=new z(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),P=m.getSize();wr(f,m.min),f.style.width=P.x+"px",f.style.height=P.y+"px"},_updateOpacity:function(){ln(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()}}),Hm=function(f,m,P){return new Fo(f,m,P)},Nd=Fo.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var f=this._url.tagName==="VIDEO",m=this._image=f?this._url:wt("video");if(gt(m,"leaflet-image-layer"),this._zoomAnimated&&gt(m,"leaflet-zoom-animated"),this.options.className&&gt(m,this.options.className),m.onselectstart=p,m.onmousemove=p,m.onloadeddata=a(this.fire,this,"load"),f){for(var P=m.getElementsByTagName("source"),k=[],U=0;U<P.length;U++)k.push(P[U].src);this._url=P.length>0?k:[m.src];return}E(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(m.style,"objectFit")&&(m.style.objectFit="fill"),m.autoplay=!!this.options.autoplay,m.loop=!!this.options.loop,m.muted=!!this.options.muted,m.playsInline=!!this.options.playsInline;for(var te=0;te<this._url.length;te++){var pe=wt("source");pe.src=this._url[te],m.appendChild(pe)}}});function Gm(f,m,P){return new Nd(f,m,P)}var Md=Fo.extend({_initImage:function(){var f=this._image=this._url;gt(f,"leaflet-image-layer"),this._zoomAnimated&&gt(f,"leaflet-zoom-animated"),this.options.className&&gt(f,this.options.className),f.onselectstart=p,f.onmousemove=p}});function Ld(f,m,P){return new Md(f,m,P)}var Ti=ii.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(f,m){f&&(f instanceof ce||E(f))?(this._latlng=de(f),_(this,m)):(_(this,f),this._source=m),this.options.content&&(this._content=this.options.content)},openOn:function(f){return f=arguments.length?f:this._source._map,f.hasLayer(this)||f.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(f){return this._map?this.close():(arguments.length?this._source=f:f=this._source,this._prepareOpen(),this.openOn(f._map)),this},onAdd:function(f){this._zoomAnimated=f._zoomAnimated,this._container||this._initLayout(),f._fadeAnimated&&ln(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),f._fadeAnimated&&ln(this._container,1),this.bringToFront(),this.options.interactive&&(gt(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(f){f._fadeAnimated?(ln(this._container,0),this._removeTimeout=setTimeout(a(tr,void 0,this._container),200)):tr(this._container),this.options.interactive&&(Yt(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&&ss(this._container),this},bringToBack:function(){return this._map&&ro(this._container),this},_prepareOpen:function(f){var m=this._source;if(!m._map)return!1;if(m instanceof oo){m=null;var P=this._source._layers;for(var k in P)if(P[k]._map){m=P[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),P=this._getAnchor();this._zoomAnimated?wr(this._container,f.add(P)):m=m.add(f).add(P);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,P,k){var U=m;return U instanceof f||(U=new f(k).setContent(m)),P&&U.setLatLng(P),U}}),ii.include({_initOverlay:function(f,m,P,k){var U=P;return U instanceof f?(_(U,k),U._source=this):(U=m&&!k?m:new f(k,this),U.setContent(P)),U}});var cc=Ti.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(f){return f=arguments.length?f:this._source._map,!f.hasLayer(this)&&f._popup&&f._popup.options.autoClose&&f.removeLayer(f._popup),f._popup=this,Ti.prototype.openOn.call(this,f)},onAdd:function(f){Ti.prototype.onAdd.call(this,f),f.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof $o||this._source.on("preclick",Ci))},onRemove:function(f){Ti.prototype.onRemove.call(this,f),f.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof $o||this._source.off("preclick",Ci))},getEvents:function(){var f=Ti.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(f.preclick=this.close),this.options.keepInView&&(f.moveend=this._adjustPan),f},_initLayout:function(){var f="leaflet-popup",m=this._container=wt("div",f+" "+(this.options.className||"")+" leaflet-zoom-animated"),P=this._wrapper=wt("div",f+"-content-wrapper",m);if(this._contentNode=wt("div",f+"-content",P),jl(m),Xu(this._contentNode),pt(m,"contextmenu",Ci),this._tipContainer=wt("div",f+"-tip-container",m),this._tip=wt("div",f+"-tip",this._tipContainer),this.options.closeButton){var k=this._closeButton=wt("a",f+"-close-button",m);k.setAttribute("role","button"),k.setAttribute("aria-label","Close popup"),k.href="#close",k.innerHTML='<span aria-hidden="true">&#215;</span>',pt(k,"click",function(U){yr(U),this.close()},this)}},_updateLayout:function(){var f=this._contentNode,m=f.style;m.width="",m.whiteSpace="nowrap";var P=f.offsetWidth;P=Math.min(P,this.options.maxWidth),P=Math.max(P,this.options.minWidth),m.width=P+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)):Yt(f,te),this._containerWidth=this._container.offsetWidth},_animateZoom:function(f){var m=this._map._latLngToNewLayerPoint(this._latlng,f.zoom,f.center),P=this._getAnchor();wr(this._container,m.add(P))},_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(Pl(this._container,"marginBottom"),10)||0,P=this._container.offsetHeight+m,k=this._containerWidth,U=new oe(this._containerLeft,-P-this._containerBottom);U._add(no(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+P+Pe.y>Re.y&&(st=te.y+P-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])}}),ys=function(f,m){return new cc(f,m)};Tt.mergeOptions({closePopupOnClick:!0}),Tt.include({openPopup:function(f,m,P){return this._initOverlay(cc,f,m,P).openOn(this),this},closePopup:function(f){return f=arguments.length?f:this._popup,f&&f.close(),this}}),ii.include({bindPopup:function(f,m){return this._popup=this._initOverlay(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 oo||(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)){ri(f);var m=f.layer||f.target;if(this._popup._source===m&&!(m instanceof $o)){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 bs=Ti.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(f){Ti.prototype.onAdd.call(this,f),this.setOpacity(this.options.opacity),f.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(f){Ti.prototype.onRemove.call(this,f),f.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var f=Ti.prototype.getEvents.call(this);return this.options.permanent||(f.preclick=this.close),f},_initLayout:function(){var f="leaflet-tooltip",m=f+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=wt("div",m),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+c(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(f){var m,P,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,P=Re):_e==="bottom"?(m=Pe/2,P=0):_e==="center"?(m=Pe/2,P=Re/2):_e==="right"?(m=0,P=Re/2):_e==="left"?(m=Pe,P=Re/2):pe.x<te.x?(_e="right",m=0,P=Re/2):(_e="left",m=Pe+(Ze.x+st.x)*2,P=Re/2),f=f.subtract(G(m,P,!0)).add(Ze).add(st),Yt(U,"leaflet-tooltip-right"),Yt(U,"leaflet-tooltip-left"),Yt(U,"leaflet-tooltip-top"),Yt(U,"leaflet-tooltip-bottom"),gt(U,"leaflet-tooltip-"+_e),wr(U,f)},_updatePosition:function(){var f=this._map.latLngToLayerPoint(this._latlng);this._setPosition(f)},setOpacity:function(f){this.options.opacity=f,this._container&&ln(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])}}),Ll=function(f,m){return new bs(f,m)};Tt.include({openTooltip:function(f,m,P){return this._initOverlay(bs,f,m,P).openOn(this),this},closeTooltip:function(f){return f.close(),this}}),ii.include({bindTooltip:function(f,m){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(bs,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",P={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?P.add=this._openTooltip:(P.mouseover=this._openTooltip,P.mouseout=this.closeTooltip,P.click=this._openTooltip,this._map?this._addFocusListeners():P.add=this._addFocusListeners),this._tooltip.options.sticky&&(P.mousemove=this._moveTooltip),this[m](P),this._tooltipHandlersAdded=!f}},openTooltip:function(f){return this._tooltip&&(this instanceof oo||(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,P,k;this._tooltip.options.sticky&&f.originalEvent&&(P=this._map.mouseEventToContainerPoint(f.originalEvent),k=this._map.containerPointToLayerPoint(P),m=this._map.layerPointToLatLng(k)),this._tooltip.setLatLng(m)}});var fc=_a.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"),P=this.options;if(P.html instanceof Element?(qu(m),m.appendChild(P.html)):m.innerHTML=P.html!==!1?P.html:"",P.bgPos){var k=G(P.bgPos);m.style.backgroundPosition=-k.x+"px "+-k.y+"px"}return this._setIconStyles(m,"icon"),m},createShadow:function(){return null}});function Km(f){return new fc(f)}_a.Default=ms;var Bo=ii.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){_(this,f)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(f){f._addZoomLimit(this)},onRemove:function(f){this._removeAllTiles(),tr(this._container),f._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(ss(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(ro(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(f){return this.options.opacity=f,this._updateOpacity(),this},setZIndex:function(f){return this.options.zIndex=f,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var f=this._clampZoom(this._map.getZoom());f!==this._tileZoom&&(this._tileZoom=f,this._updateLevels()),this._update()}return this},getEvents:function(){var f={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=u(this._onMoveEnd,this.options.updateInterval,this)),f.move=this._onMove),this._zoomAnimated&&(f.zoomanim=this._animateZoom),f},createTile:function(){return document.createElement("div")},getTileSize:function(){var f=this.options.tileSize;return f instanceof oe?f:new oe(f,f)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(f){for(var m=this.getPane().children,P=-f(-1/0,1/0),k=0,U=m.length,te;k<U;k++)te=m[k].style.zIndex,m[k]!==this._container&&te&&(P=f(P,+te));isFinite(P)&&(this.options.zIndex=P+f(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!nt.ielt9){ln(this._container,this.options.opacity);var f=+new Date,m=!1,P=!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);ln(U.el,te),te<1?m=!0:(U.active?P=!0:this._onOpaqueTile(U),U.active=!0)}}P&&!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 P in this._levels)P=Number(P),this._levels[P].el.children.length||P===f?(this._levels[P].el.style.zIndex=m-Math.abs(f-P),this._onUpdateLevel(P)):(tr(this._levels[P].el),this._removeTilesAtZoom(P),this._onRemoveLevel(P),delete this._levels[P]);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,P=this._map.getZoom();if(P>this.options.maxZoom||P<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)tr(this._levels[f].el),this._onRemoveLevel(Number(f)),delete this._levels[f];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(f,m,P,k){var U=Math.floor(f/2),te=Math.floor(m/2),pe=P-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,P,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=P+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);P+1<k&&this._retainChildren(U,te,P+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,P,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),P||this._pruneTiles(),this._noPrune=!!P),this._setZoomTransforms(f,m)},_setZoomTransforms:function(f,m){for(var P in this._levels)this._setZoomTransform(this._levels[P],f,m)},_setZoomTransform:function(f,m,P){var k=this._map.getZoomScale(P,f.zoom),U=f.origin.multiplyBy(k).subtract(this._map._getNewPixelOrigin(m,P)).round();nt.any3d?ei(f.el,U,k):wr(f.el,U)},_resetGrid:function(){var f=this._map,m=f.options.crs,P=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/P.x),Math.ceil(f.project([0,m.wrapLng[1]],k).x/P.y)],this._wrapY=m.wrapLat&&!this.options.noWrap&&[Math.floor(f.project([m.wrapLat[0],0],k).y/P.x),Math.ceil(f.project([m.wrapLat[1],0],k).y/P.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(f){var m=this._map,P=m._animatingZoom?Math.max(m._animateToZoom,m.getZoom()):m.getZoom(),k=m.getZoomScale(P,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 P=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(P-this._tileZoom)>1){this._setView(f,P);return}for(var st=U.min.y;st<=U.max.y;st++)for(var St=U.min.x;St<=U.max.x;St++){var Fr=new oe(St,st);if(Fr.z=this._tileZoom,!!this._isValidTile(Fr)){var Rr=this._tiles[this._tileCoordsToKey(Fr)];Rr?Rr.current=!0:pe.push(Fr)}}if(pe.sort(function(cn,Ss){return cn.distanceTo(te)-Ss.distanceTo(te)}),pe.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var xn=document.createDocumentFragment();for(St=0;St<pe.length;St++)this._addTile(pe[St],xn);this._level.el.appendChild(xn)}}}},_isValidTile:function(f){var m=this._map.options.crs;if(!m.infinite){var P=this._globalTileRange;if(!m.wrapLng&&(f.x<P.min.x||f.x>P.max.x)||!m.wrapLat&&(f.y<P.min.y||f.y>P.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,P=this.getTileSize(),k=f.scaleBy(P),U=k.add(P),te=m.unproject(k,f.z),pe=m.unproject(U,f.z);return[te,pe]},_tileCoordsToBounds:function(f){var m=this._tileCoordsToNwSe(f),P=new X(m[0],m[1]);return this.options.noWrap||(P=this._map.wrapLatLngBounds(P)),P},_tileCoordsToKey:function(f){return f.x+":"+f.y+":"+f.z},_keyToTileCoords:function(f){var m=f.split(":"),P=new oe(+m[0],+m[1]);return P.z=+m[2],P},_removeTile:function(f){var m=this._tiles[f];m&&(tr(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&&ln(f,this.options.opacity)},_addTile:function(f,m){var P=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)),wr(U,P),this._tiles[k]={el:U,coords:f,current:!0},m.appendChild(U),this.fire("tileloadstart",{tile:U,coords:f})},_tileReady:function(f,m,P){m&&this.fire("tileerror",{error:m,tile:P,coords:f});var k=this._tileCoordsToKey(f);P=this._tiles[k],P&&(P.loaded=+new Date,this._map._fadeAnimated?(ln(P.el,0),q(this._fadeFrame),this._fadeFrame=W(this._updateOpacity,this)):(P.active=!0,this._pruneTiles()),m||(gt(P.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:P.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 _s(f){return new Bo(f)}var Uo=Bo.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(f,m){this._url=f,m=_(this,m),m.detectRetina&&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 P=document.createElement("img");return pt(P,"load",a(this._tileOnLoad,this,m,P)),pt(P,"error",a(this._tileOnError,this,m,P)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(P.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(P.referrerPolicy=this.options.referrerPolicy),P.alt="",P.src=this.getTileUrl(f),P},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 P=this._globalTileRange.max.y-f.y;this.options.tms&&(m.y=P),m["-y"]=P}return S(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,P){var k=this.options.errorTileUrl;k&&m.getAttribute("src")!==k&&(m.src=k),f(P,m)},_onTileRemove:function(f){f.tile.onload=null},_getZoomForUrl:function(){var f=this._tileZoom,m=this.options.maxZoom,P=this.options.zoomReverse,k=this.options.zoomOffset;return P&&(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 P=this._tiles[f].coords;tr(m),delete this._tiles[f],this.fire("tileabort",{tile:m,coords:P})}},_removeTile:function(f){var m=this._tiles[f];if(m)return m.el.setAttribute("src",A),Bo.prototype._removeTile.call(this,f)},_tileReady:function(f,m,P){if(!(!this._map||P&&P.getAttribute("src")===A))return Bo.prototype._tileReady.call(this,f,m,P)}});function Id(f,m){return new Uo(f,m)}var Il=Uo.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 P=i({},this.defaultWmsParams);for(var k in m)k in this.options||(P[k]=m[k]);m=_(this,m);var U=m.detectRetina&&nt.retina?2:1,te=this.getTileSize();P.width=te.x*U,P.height=te.y*U,this.wmsParams=P},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,Uo.prototype.onAdd.call(this,f)},getTileUrl:function(f){var m=this._tileCoordsToNwSe(f),P=this._crs,k=re(P.project(m[0]),P.project(m[1])),U=k.min,te=k.max,pe=(this._wmsVersion>=1.3&&this._crs===Um?[U.y,U.x,te.y,te.x]:[U.x,U.y,te.x,te.y]).join(","),_e=Uo.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 Ym(f,m){return new Il(f,m)}Uo.WMS=Il,Id.wms=Ym;var ji=ii.extend({options:{padding:.1},initialize:function(f){_(this,f),c(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),gt(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var f={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(f.zoomanim=this._onAnimZoom),f},_onAnimZoom:function(f){this._updateTransform(f.center,f.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(f,m){var P=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(-P).add(U).subtract(this._map._getNewPixelOrigin(f,m));nt.any3d?ei(this._container,te,P):wr(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(),P=this._map.containerPointToLayerPoint(m.multiplyBy(-f)).round();this._bounds=new z(P,P.add(m.multiplyBy(1+f*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Dd=ji.extend({options:{tolerance:0},getEvents:function(){var f=ji.prototype.getEvents.call(this);return f.viewprereset=this._onViewPreReset,f},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){ji.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var f=this._container=document.createElement("canvas");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,tr(this._container),Ut(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var f;this._redrawBounds=null;for(var m in this._layers)f=this._layers[m],f._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){ji.prototype._update.call(this);var f=this._bounds,m=this._container,P=f.getSize(),k=nt.retina?2:1;wr(m,f.min),m.width=k*P.x,m.height=k*P.y,m.style.width=P.x+"px",m.style.height=P.y+"px",nt.retina&&this._ctx.scale(2,2),this._ctx.translate(-f.min.x,-f.min.y),this.fire("update")}},_reset:function(){ji.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(f){this._updateDashArray(f),this._layers[c(f)]=f;var m=f._order={layer:f,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=m),this._drawLast=m,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(f){this._requestRedraw(f)},_removePath:function(f){var m=f._order,P=m.next,k=m.prev;P?P.prev=k:this._drawLast=k,k?k.next=P:this._drawFirst=P,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(/[, ]+/),P=[],k,U;for(U=0;U<m.length;U++){if(k=Number(m[U]),isNaN(k))return;P.push(k)}f.options._dashArray=P}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 P=m.getSize();this._ctx.beginPath(),this._ctx.rect(m.min.x,m.min.y,P.x,P.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 P,k,U,te,pe=f._parts,_e=pe.length,Pe=this._ctx;if(_e){for(Pe.beginPath(),P=0;P<_e;P++){for(k=0,U=pe[P].length;k<U;k++)te=pe[P][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,P=this._ctx,k=Math.max(Math.round(f._radius),1),U=(Math.max(Math.round(f._radiusY),1)||k)/k;U!==1&&(P.save(),P.scale(1,U)),P.beginPath(),P.arc(m.x,m.y/U,k,0,Math.PI*2,!1),U!==1&&P.restore(),this._fillStroke(P,f)}},_fillStroke:function(f,m){var P=m.options;P.fill&&(f.globalAlpha=P.fillOpacity,f.fillStyle=P.fillColor||P.color,f.fill(P.fillRule||"evenodd")),P.stroke&&P.weight!==0&&(f.setLineDash&&f.setLineDash(m.options&&m.options._dashArray||[]),f.globalAlpha=P.opacity,f.lineWidth=P.weight,f.strokeStyle=P.color,f.lineCap=P.lineCap,f.lineJoin=P.lineJoin,f.stroke())},_onClick:function(f){for(var m=this._map.mouseEventToLayerPoint(f),P,k,U=this._drawFirst;U;U=U.next)P=U.layer,P.options.interactive&&P._containsPoint(m)&&(!(f.type==="click"||f.type==="preclick")||!this._map._draggableMoved(P))&&(k=P);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&&(Yt(this._container,"leaflet-interactive"),this._fireEvent([m],f,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(f,m){if(!this._mouseHoverThrottled){for(var P,k,U=this._drawFirst;U;U=U.next)P=U.layer,P.options.interactive&&P._containsPoint(m)&&(k=P);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,P){this._map._fireDOMEvent(m,P||m.type,f)},_bringToFront:function(f){var m=f._order;if(m){var P=m.next,k=m.prev;if(P)P.prev=k;else return;k?k.next=P:P&&(this._drawFirst=P),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 P=m.next,k=m.prev;if(k)k.next=P;else return;P?P.prev=k:k&&(this._drawLast=k),m.prev=null,m.next=this._drawFirst,this._drawFirst.prev=m,this._drawFirst=m,this._requestRedraw(f)}}});function $d(f){return nt.canvas?new Dd(f):null}var xs=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">')}}(),Zm={_initContainer:function(){this._container=wt("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(ji.prototype._update.call(this),this.fire("update"))},_initPath:function(f){var m=f._container=xs("shape");gt(m,"leaflet-vml-shape "+(this.options.className||"")),m.coordsize="1 1",f._path=xs("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;tr(m),f.removeInteractiveTarget(m),delete this._layers[c(f)]},_updateStyle:function(f){var m=f._stroke,P=f._fill,k=f.options,U=f._container;U.stroked=!!k.stroke,U.filled=!!k.fill,k.stroke?(m||(m=f._stroke=xs("stroke")),U.appendChild(m),m.weight=k.weight+"px",m.color=k.color,m.opacity=k.opacity,k.dashArray?m.dashStyle=E(k.dashArray)?k.dashArray.join(" "):k.dashArray.replace(/( *, *)/g," "):m.dashStyle="",m.endcap=k.lineCap.replace("butt","flat"),m.joinstyle=k.lineJoin):m&&(U.removeChild(m),f._stroke=null),k.fill?(P||(P=f._fill=xs("fill")),U.appendChild(P),P.color=k.fillColor||k.color,P.opacity=k.fillOpacity):P&&(U.removeChild(P),f._fill=null)},_updateCircle:function(f){var m=f._point.round(),P=Math.round(f._radius),k=Math.round(f._radiusY||P);this._setPath(f,f._empty()?"M0 0":"AL "+m.x+","+m.y+" "+P+","+k+" 0,"+65535*360)},_setPath:function(f,m){f._path.v=m},_bringToFront:function(f){ss(f._container)},_bringToBack:function(f){ro(f._container)}},ai=nt.vml?xs:Fe,xa=ji.extend({_initContainer:function(){this._container=ai("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=ai("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){tr(this._container),Ut(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){ji.prototype._update.call(this);var f=this._bounds,m=f.getSize(),P=this._container;(!this._svgSize||!this._svgSize.equals(m))&&(this._svgSize=m,P.setAttribute("width",m.x),P.setAttribute("height",m.y)),wr(P,f.min),P.setAttribute("viewBox",[f.min.x,f.min.y,m.x,m.y].join(" ")),this.fire("update")}},_initPath:function(f){var m=f._path=ai("path");f.options.className&&gt(m,f.options.className),f.options.interactive&&gt(m,"leaflet-interactive"),this._updateStyle(f),this._layers[c(f)]=f},_addPath:function(f){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(f._path),f.addInteractiveTarget(f._path)},_removePath:function(f){tr(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,P=f.options;m&&(P.stroke?(m.setAttribute("stroke",P.color),m.setAttribute("stroke-opacity",P.opacity),m.setAttribute("stroke-width",P.weight),m.setAttribute("stroke-linecap",P.lineCap),m.setAttribute("stroke-linejoin",P.lineJoin),P.dashArray?m.setAttribute("stroke-dasharray",P.dashArray):m.removeAttribute("stroke-dasharray"),P.dashOffset?m.setAttribute("stroke-dashoffset",P.dashOffset):m.removeAttribute("stroke-dashoffset")):m.setAttribute("stroke","none"),P.fill?(m.setAttribute("fill",P.fillColor||P.color),m.setAttribute("fill-opacity",P.fillOpacity),m.setAttribute("fill-rule",P.fillRule||"evenodd")):m.setAttribute("fill","none"))},_updatePoly:function(f,m){this._setPath(f,ge(f._parts,m))},_updateCircle:function(f){var m=f._point,P=Math.max(Math.round(f._radius),1),k=Math.max(Math.round(f._radiusY),1)||P,U="a"+P+","+k+" 0 1,0 ",te=f._empty()?"M0 0":"M"+(m.x-P)+","+m.y+U+P*2+",0 "+U+-P*2+",0 ";this._setPath(f,te)},_setPath:function(f,m){f._path.setAttribute("d",m)},_bringToFront:function(f){ss(f._path)},_bringToBack:function(f){ro(f._path)}});nt.vml&&xa.include(Zm);function dc(f){return nt.svg||nt.vml?new xa(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&&$d(f)||dc(f)}});var Xm=so.extend({initialize:function(f,m){so.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 t_(f,m){return new Xm(f,m)}xa.create=ai,xa.pointsToPath=ge,Ei.geometryToLayer=vs,Ei.coordsToLatLng=ac,Ei.coordsToLatLngs=Ml,Ei.latLngToCoords=sc,Ei.latLngsToCoords=lc,Ei.getFeature=gs,Ei.asFeature=uc,Tt.mergeOptions({boxZoom:!0});var ws=In.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(){Ut(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){tr(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:ri,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),P=m.getSize();wr(this._box,m.min),this._box.style.width=P.x+"px",this._box.style.height=P.y+"px"},_finish:function(){this._moved&&(tr(this._box),Yt(this._container,"leaflet-crosshair")),cs(),Yu(),Ut(document,{contextmenu:ri,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",ws),Tt.mergeOptions({doubleClickZoom:!0});var Qm=In.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,P=m.getZoom(),k=m.options.zoomDelta,U=f.originalEvent.shiftKey?P-k:P+k;m.options.doubleClickZoom==="center"?m.setZoom(U):m.setZoomAround(f.containerPoint,U)}});Tt.addInitHook("addHandler","doubleClickZoom",Qm),Tt.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Fd=In.extend({addHooks:function(){if(!this._draggable){var f=this._map;this._draggable=new ni(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(){Yt(this._map._container,"leaflet-grab"),Yt(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,P=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(P),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),P=this._initialWorldOffset,k=this._draggable._newPos.x,U=(k-m+P)%f+m-P,te=(k+m+P)%f-m-P,pe=Math.abs(U+P)<Math.abs(te+P)?U:te;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=pe},_onDragEnd:function(f){var m=this._map,P=m.options,k=!P.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=P.easeLinearity,_e=U.multiplyBy(pe/te),Pe=_e.distanceTo([0,0]),Re=Math.min(P.inertiaMaxSpeed,Pe),Ze=_e.multiplyBy(Re/Pe),st=Re/(P.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",Fd),Tt.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Bd=In.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(),Ut(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var f=document.body,m=document.documentElement,P=f.scrollTop||m.scrollTop,k=f.scrollLeft||m.scrollLeft;this._map._container.focus(),window.scrollTo(k,P)}},_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={},P=this.keyCodes,k,U;for(k=0,U=P.left.length;k<U;k++)m[P.left[k]]=[-1*f,0];for(k=0,U=P.right.length;k<U;k++)m[P.right[k]]=[f,0];for(k=0,U=P.down.length;k<U;k++)m[P.down[k]]=[0,f];for(k=0,U=P.up.length;k<U;k++)m[P.up[k]]=[0,-1*f]},_setZoomDelta:function(f){var m=this._zoomKeys={},P=this.keyCodes,k,U;for(k=0,U=P.zoomIn.length;k<U;k++)m[P.zoomIn[k]]=f;for(k=0,U=P.zoomOut.length;k<U;k++)m[P.zoomOut[k]]=-f},_addHooks:function(){pt(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Ut(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(f){if(!(f.altKey||f.ctrlKey||f.metaKey)){var m=f.keyCode,P=this._map,k;if(m in this._panKeys){if(!P._panAnim||!P._panAnim._inProgress)if(k=this._panKeys[m],f.shiftKey&&(k=G(k).multiplyBy(3)),P.options.maxBounds&&(k=P._limitOffset(G(k),P.options.maxBounds)),P.options.worldCopyJump){var U=P.wrapLatLng(P.unproject(P.project(P.getCenter()).add(k)));P.panTo(U)}else P.panBy(k)}else if(m in this._zoomKeys)P.setZoom(P.getZoom()+(f.shiftKey?3:1)*this._zoomKeys[m]);else if(m===27&&P._popup&&P._popup.options.closeOnEscapeKey)P.closePopup();else return;ri(f)}}});Tt.addInitHook("addHandler","keyboard",Bd),Tt.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var zt=In.extend({addHooks:function(){pt(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Ut(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(f){var m=Nm(f),P=this._map.options.wheelDebounceTime;this._delta+=m,this._lastMousePos=this._map.mouseEventToContainerPoint(f),this._startTime||(this._startTime=+new Date);var k=Math.max(P-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(a(this._performZoom,this),k),ri(f)},_performZoom:function(){var f=this._map,m=f.getZoom(),P=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=P?Math.ceil(U/P)*P: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",zt);var Ud=600;Tt.mergeOptions({tapHold:nt.touchNative&&nt.safari&&nt.mobile,tapTolerance:15});var Dl=In.extend({addHooks:function(){pt(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Ut(this._map._container,"touchstart",this._onDown,this)},_onDown:function(f){if(clearTimeout(this._holdTimeout),f.touches.length===1){var m=f.touches[0];this._startPos=this._newPos=new oe(m.clientX,m.clientY),this._holdTimeout=setTimeout(a(function(){this._cancel(),this._isTapValid()&&(pt(document,"touchend",yr),pt(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",m))},this),Ud),pt(document,"touchend touchcancel contextmenu",this._cancel,this),pt(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function f(){Ut(document,"touchend",yr),Ut(document,"touchend touchcancel",f)},_cancel:function(){clearTimeout(this._holdTimeout),Ut(document,"touchend touchcancel contextmenu",this._cancel,this),Ut(document,"touchmove",this._onMove,this)},_onMove:function(f){var m=f.touches[0];this._newPos=new oe(m.clientX,m.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(f,m){var P=new MouseEvent(f,{bubbles:!0,cancelable:!0,view:window,screenX:m.screenX,screenY:m.screenY,clientX:m.clientX,clientY:m.clientY});P._simulated=!0,m.target.dispatchEvent(P)}});Tt.addInitHook("addHandler","tapHold",Dl),Tt.mergeOptions({touchZoom:nt.touch,bounceAtZoomLimits:!0});var Os=In.extend({addHooks:function(){gt(this._map._container,"leaflet-touch-zoom"),pt(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Yt(this._map._container,"leaflet-touch-zoom"),Ut(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(f){var m=this._map;if(!(!f.touches||f.touches.length!==2||m._animatingZoom||this._zooming)){var P=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(P.add(k)._divideBy(2))),this._startDist=P.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),yr(f)}},_onTouchMove:function(f){if(!(!f.touches||f.touches.length!==2||!this._zooming)){var m=this._map,P=m.mouseEventToContainerPoint(f.touches[0]),k=m.mouseEventToContainerPoint(f.touches[1]),U=P.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=P._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),yr(f)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,q(this._animRequest),Ut(document,"touchmove",this._onTouchMove,this),Ut(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});Tt.addInitHook("addHandler","touchZoom",Os),Tt.BoxZoom=ws,Tt.DoubleClickZoom=Qm,Tt.Drag=Fd,Tt.Keyboard=Bd,Tt.ScrollWheelZoom=zt,Tt.TapHold=Dl,Tt.TouchZoom=Os,r.Bounds=z,r.Browser=nt,r.CRS=be,r.Canvas=Dd,r.Circle=ic,r.CircleMarker=nc,r.Class=Q,r.Control=bn,r.DivIcon=fc,r.DivOverlay=Ti,r.DomEvent=Qu,r.DomUtil=Tl,r.Draggable=ni,r.Evented=se,r.FeatureGroup=oo,r.GeoJSON=Ei,r.GridLayer=Bo,r.Handler=In,r.Icon=_a,r.ImageOverlay=Fo,r.LatLng=ce,r.LatLngBounds=X,r.Layer=ii,r.LayerGroup=Do,r.LineUtil=Bm,r.Map=Tt,r.Marker=ao,r.Mixin=Sd,r.Path=$o,r.Point=oe,r.PolyUtil=Wb,r.Polygon=so,r.Polyline=_n,r.Popup=cc,r.PosAnimation=Ju,r.Projection=Yb,r.Rectangle=Xm,r.Renderer=ji,r.SVG=xa,r.SVGOverlay=Md,r.TileLayer=Uo,r.Tooltip=bs,r.Transformation=ue,r.Util=J,r.VideoOverlay=Nd,r.bind=a,r.bounds=re,r.canvas=$d,r.circle=Nl,r.circleMarker=Wm,r.control=Io,r.divIcon=Km,r.extend=i,r.featureGroup=zm,r.geoJSON=qm,r.geoJson=oi,r.gridLayer=_s,r.icon=Vm,r.imageOverlay=Hm,r.latLng=de,r.latLngBounds=le,r.layerGroup=Rl,r.map=Lo,r.marker=Qb,r.point=G,r.polygon=e_,r.polyline=Jb,r.popup=ys,r.rectangle=t_,r.setOptions=_,r.stamp=c,r.svg=dc,r.svgOverlay=Ld,r.tileLayer=Id,r.tooltip=Ll,r.transformation=ie,r.version=n,r.videoOverlay=Gm;var Jm=window.L;r.noConflict=function(){return window.L=Jm,this},window.L=r})}(jh,jh.exports)),jh.exports}var ym=pSe();const A5=Nt(ym);function Gj(e,t,r){return Object.freeze({instance:e,context:t,container:r})}function Kj(e,t){return t==null?function(n,i){const o=$.useRef();return o.current||(o.current=e(n,i)),o}:function(n,i){const o=$.useRef();o.current||(o.current=e(n,i));const a=$.useRef(n),{instance:s}=o.current;return $.useEffect(function(){a.current!==n&&(t(s,n,a.current),a.current=n)},[s,n,i]),o}}function mSe(e,t){$.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 lz(e){return function(r){const n=az(),i=e(Hj(r,n),n);return nz(n.map,r.attribution),sz(i.current,r.eventHandlers),mSe(i.current,n),i}}function vSe(e,t){const r=Kj(e,t),n=lz(r);return uSe(n)}function gSe(e,t){const r=Kj(e),n=dSe(r,t);return cSe(n)}function ySe(e,t){const r=Kj(e,t),n=lz(r);return fSe(n)}function bSe(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 xE(){return xE=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},xE.apply(this,arguments)}function _Se({bounds:e,boundsOptions:t,center:r,children:n,className:i,id:o,placeholder:a,style:s,whenReady:c,zoom:u,...h},p){const[v]=$.useState({className:i,id:o,style:s}),[b,x]=$.useState(null);$.useImperativeHandle(p,()=>(b==null?void 0:b.map)??null,[b]);const _=$.useCallback(O=>{if(O!==null&&b===null){const S=new ym.Map(O,h);r!=null&&u!=null?S.setView(r,u):e!=null&&S.fitBounds(e,t),c!=null&&S.whenReady(c),x(sSe(S))}},[]);$.useEffect(()=>()=>{b==null||b.map.remove()},[b]);const w=b?Z.createElement(oz,{value:b},n):a??null;return Z.createElement("div",xE({},v,{ref:_}),w)}const xSe=$.forwardRef(_Se),wSe=vSe(function({position:t,...r},n){const i=new ym.Marker(t,r);return Gj(i,lSe(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())}),OSe=gSe(function(t,r){const n=new ym.Popup(t,r.overlayContainer);return Gj(n,r)},function(t,r,{position:n},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])}),SSe=ySe(function({url:t,...r},n){const i=new ym.TileLayer(t,Hj(r,n));return Gj(i,n)},function(t,r,n){bSe(t,r,n);const{url:i}=r;i!=null&&i!==n.url&&t.setUrl(i)}),PSe={"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"},uz={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"},Tr={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},Pn={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"},Ws={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 PSe[t]}static getBrowserTypeByAlias(t){return uz[t]||""}}const Wt=/version\/(\d+(\.?_?\d+)+)/i,CSe=[{test:[/googlebot/i],describe(e){const t={name:"Googlebot"},r=Ne.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||Ne.getFirstMatch(Wt,e);return r&&(t.version=r),t}},{test:[/opera/i],describe(e){const t={name:"Opera"},r=Ne.getFirstMatch(Wt,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(Wt,e);return r&&(t.version=r),t}},{test:[/SamsungBrowser/i],describe(e){const t={name:"Samsung Internet for Android"},r=Ne.getFirstMatch(Wt,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(Wt,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(Wt,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(Wt,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(Wt,e);return r&&(t.version=r),t}},{test:[/coast/i],describe(e){const t={name:"Opera Coast"},r=Ne.getFirstMatch(Wt,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(Wt,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(Wt,e);return r&&(t.version=r),t}},{test:[/ucbrowser/i],describe(e){const t={name:"UC Browser"},r=Ne.getFirstMatch(Wt,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(Wt,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(Wt,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(Wt,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(Wt,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(Wt,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(Wt,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(Wt,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(Wt,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(Wt,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(Wt,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(Wt,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(Wt,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(Wt,e);return r&&(t.version=r),t}},{test:[/playstation 4/i],describe(e){const t={name:"PlayStation 4"},r=Ne.getFirstMatch(Wt,e);return r&&(t.version=r),t}},{test:[/safari|applewebkit/i],describe(e){const t={name:"Safari"},r=Ne.getFirstMatch(Wt,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)}}}],ESe=[{test:[/Roku\/DVP/],describe(e){const t=Ne.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:Pn.Roku,version:t}}},{test:[/windows phone/i],describe(e){const t=Ne.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:Pn.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:Pn.Windows,version:t,versionName:r}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){const t={name:Pn.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:Pn.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:Pn.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:Pn.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:Pn.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:Pn.BlackBerry,version:t}}},{test:[/bada/i],describe(e){const t=Ne.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:Pn.Bada,version:t}}},{test:[/tizen/i],describe(e){const t=Ne.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:Pn.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:Pn.Linux}}},{test:[/CrOS/],describe(){return{name:Pn.ChromeOS}}},{test:[/PlayStation 4/],describe(e){const t=Ne.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:Pn.PlayStation4,version:t}}}],TSe=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){const t=Ne.getFirstMatch(/(can-l01)/i,e)&&"Nova",r={type:Tr.mobile,vendor:"Huawei"};return t&&(r.model=t),r}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:Tr.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:Tr.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:Tr.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:Tr.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:Tr.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:Tr.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:Tr.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:Tr.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:Tr.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:Tr.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:Tr.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:Tr.mobile,vendor:"Microsoft"}}},{test(e){const t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:Tr.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:Tr.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:Tr.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:Tr.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:Tr.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:Tr.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:Tr.tv}}}],jSe=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:Ws.Blink};const r=Ne.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:Ws.EdgeHTML,version:r}}},{test:[/trident/i],describe(e){const t={name:Ws.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:Ws.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:Ws.Gecko},r=Ne.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:Ws.Blink}}},{test:[/(apple)?webkit/i],describe(e){const t={name:Ws.WebKit},r=Ne.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}}];class k5{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(CSe,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(ESe,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(TSe,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(jSe,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 ASe{static getParser(t,r=!1){if(typeof t!="string")throw new Error("UserAgent should be a string");return new k5(t,r)}static parse(t){return new k5(t).getResult()}static get BROWSER_MAP(){return uz}static get ENGINE_MAP(){return Ws}static get OS_MAP(){return Pn}static get PLATFORMS_MAP(){return Tr}}var kSe=Object.defineProperty,RSe=(e,t,r)=>t in e?kSe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,rl=(e,t,r)=>RSe(e,typeof t!="symbol"?t+"":t,r);const NSe=e=>(e==null?void 0:e.type)===NT.INVALID_ARGUMENT,MSe=e=>(e==null?void 0:e.type)===NT.INVALID_SHORT_URL_DELETION,LSe=e=>!!e&&typeof e=="object"&&["type","detail","title","status"].every(t=>t in e),Si=e=>LSe(e)?e:void 0,Yj=e=>"error"in e,sa=({errorData:e,fallbackMessage:t})=>g.jsxs(g.Fragment,{children:[(e==null?void 0:e.detail)??t,NSe(e)&&g.jsxs("p",{className:"mb-0",children:["Invalid elements: [",e.invalidElements.join(", "),"]"]})]}),Ru=({style:e,className:t,...r})=>g.jsx("button",{type:"button",className:ze("border-0",t),style:{backgroundColor:"inherit",fontWeight:"inherit",color:"inherit",...e},...r}),cz=$.createContext(""),ISe=cz.Provider,xl=()=>$.useContext(cz),fz=$.createContext(void 0),{Provider:Zj}=fz,Ab=()=>$.useContext(fz),DSe=5,Xj=()=>{const[e,t]=$.useState([]),r=$.useMemo(()=>e.length>=DSe,[e.length]),n=$.useCallback(s=>!r&&t(c=>[...c,s]),[r]),i=$.useCallback(s=>!r&&e.every(c=>c.name!==s),[e,r]),o=$.useCallback(s=>t(c=>c.filter(u=>u!==s)),[]),a=$.useCallback(()=>t([]),[]);return{itemsToCompare:e,addItemToCompare:n,removeItemToCompare:o,clearItemsToCompare:a,canAddItemWithName:i}},Qj=({className:e,type:t})=>{const r=xl(),n=Ab(),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(qt,{bodyClassName:"d-md-flex gap-3 align-items-center",children:[g.jsx("ul",{className:"d-flex flex-wrap gap-1 flex-grow-1 p-0 m-0",children:o.map((c,u)=>{var h;return g.jsxs("li",{className:ze("badge pe-1",{"bg-secondary":!((h=c.style)!=null&&h.backgroundColor)}),style:c.style,children:[c.name,g.jsx(Ru,{"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:Gt,to:`${r}/${t}/compare-visits?${t}=${i}`,children:[g.jsx(Ge,{icon:A0,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:"×"})]})]})})},$Se=(e,{maxVersion:t,minVersion:r})=>{const n=!r||qP(e,r,">=");return(!t||qP(e,t,"<="))&&n},dz={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(dz);const mo=(e,t)=>$Se(t==="latest"?"999.99.99":t,dz[e]),hz=e=>({excludeBotsOnShortUrls:mo("excludeBotsOnShortUrls",e),filterDisabledUrls:mo("filterDisabledUrls",e),deviceLongUrls:mo("deviceLongUrls",e),shortUrlVisitsDeletion:mo("shortUrlVisitsDeletion",e),orphanVisitsDeletion:mo("orphanVisitsDeletion",e),shortUrlRedirectRules:mo("shortUrlRedirectRules",e),qrCodeColors:mo("qrCodeColors",e),urlValidation:mo("urlValidation",e),ipRedirectCondition:mo("ipRedirectCondition",e),geolocationRedirectCondition:mo("geolocationRedirectCondition",e),filterShortUrlsByDomain:mo("filterShortUrlsByDomain",e)}),pz=$.createContext(hz("0.0.0")),FSe=pz.Provider,BSe=e=>$.useMemo(()=>hz(e),[e]),_i=e=>$.useContext(pz)[e],qf="DEFAULT",Eg=({className:e="",placement:t,children:r})=>{const n=Zi();return g.jsxs(g.Fragment,{children:[g.jsx("span",{className:e,ref:n,children:g.jsx(Ge,{icon:ZE})}),g.jsx(Oi,{target:n,placement:t,children:r})]})},mz=e=>t=>{t.preventDefault(),e()},Jj=(e,t,r=1)=>MT(r,e+1).map(t),USe=e=>Array.isArray(e)&&e.length===0||typeof e=="string"&&e===""||typeof e=="object"&&Object.keys(e).length===0,su=e=>e!=null&&!USe(e),BO=e=>e||null,wE=e=>e?"true":"false",UO=e=>e===void 0?void 0:wE(e),zO=({isLast:e,...t})=>g.jsx(Og,{...t,required:!1,type:"url",placeholder:"No redirect",className:e?"mb-0":""}),zSe=({isOpen:e,toggle:t,domain:r,editDomainRedirects:n})=>{var i,o,a;const[s,c]=$.useState(((i=r.redirects)==null?void 0:i.baseUrlRedirect)??""),[u,h]=$.useState(((o=r.redirects)==null?void 0:o.regular404Redirect)??""),[p,v]=$.useState(((a=r.redirects)==null?void 0:a.invalidShortUrlRedirect)??""),b=mz(async()=>n({domain:r.domain,redirects:{baseUrlRedirect:BO(s),regular404Redirect:BO(u),invalidShortUrlRedirect:BO(p)}}).then(t));return g.jsx(Zn,{isOpen:e,toggle:t,centered:!0,children:g.jsxs("form",{name:"domainRedirectsModal",onSubmit:b,children:[g.jsxs(ua,{toggle:t,children:["Edit redirects for ",g.jsx("b",{children:r.domain})]}),g.jsxs(Eo,{children:[g.jsxs(zO,{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(zO,{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(zO,{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(es,{children:[g.jsx(_t,{color:"link",type:"button",onClick:t,children:"Cancel"}),g.jsx(_t,{color:"primary",children:"Save"})]})]})})},VSe=({domain:e,editDomainRedirects:t})=>{const[r,n]=cr(),i=xl(),o=Ab(),a=_i("filterShortUrlsByDomain");return g.jsxs(F0,{children:[g.jsxs(Ye,{tag:Gt,to:`${i}/domain/${e.domain}${e.isDefault?`_${qf}`:""}/visits`,children:[g.jsx(Ge,{icon:YE,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:A0,fixedWidth:!0})," Compare visits"]}),a&&g.jsxs(Ye,{tag:Gt,to:`${i}/list-short-urls/1?domain=${e.isDefault?qf:e.domain}`,children:[g.jsx(Ge,{icon:GE,fixedWidth:!0})," Short URLs"]}),g.jsx(Ye,{divider:!0,tag:"hr"}),g.jsxs(Ye,{onClick:n,children:[g.jsx(Ge,{icon:KE,fixedWidth:!0})," Edit redirects"]}),g.jsx(zSe,{domain:e,isOpen:r,toggle:n,editDomainRedirects:t})]})},WSe=(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 sae({delta:40,onSwipedLeft:r(t),onSwipedRight:r(e)})},qSe=(e,t)=>{const[r,n]=$.useState(t),i=$.useCallback(o=>{const{location:a,history:s}=window,c=DF(a.search);c[e]=o,s.pushState(null,"",`${a.pathname}?${$0(c)}`),n(o)},[e]);return[r,i]},eA=e=>{const t=Xf();return $.useMemo(()=>{var r;return((r=t[e])==null?void 0:r.split(",").filter(Boolean))??[]},[e,t])},HSe=()=>{const e=la();return $.useCallback(()=>e(-1),[e])},tA=(e,t)=>{const r=$.useCallback(()=>t(`(max-width: ${e}px)`).matches,[t,e]),[n,i]=$.useState(r());return $.useEffect(()=>{const o=()=>i(r());return window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[r]),n},GSe=(e,t,r)=>{$.useEffect(()=>{if(!r)return()=>{};const n=i=>i.key===e&&t();return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[r,t,e])},KSe=({status:e,matchMedia:t=window.matchMedia})=>{const r=Zi(),n=tA(991,t);return e==="validating"?g.jsx(Ge,{fixedWidth:!0,icon:a$,spin:!0}):g.jsxs(g.Fragment,{children:[g.jsx("span",{ref:r,children:e==="valid"?g.jsx(Ge,{fixedWidth:!0,icon:Xh,className:"text-muted"}):g.jsx(Ge,{fixedWidth:!0,icon:rS,className:"text-danger"})}),g.jsx(Oi,{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(Kn,{href:"https://slnk.to/multi-domain-docs",children:"documentation"})," in order to find out what is missing."]})})]})},VO=({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)"})]})]}),YSe=()=>g.jsxs(g.Fragment,{children:[g.jsx(Ge,{fixedWidth:!0,icon:BK,className:"text-primary",id:"defaultDomainIcon"}),g.jsx(Oi,{target:"defaultDomainIcon",placement:"right",children:"Default domain"})]}),ZSe=({domain:e,editDomainRedirects:t,checkDomainHealth:r,defaultRedirects:n})=>{const{domain:i,isDefault:o,redirects:a,status:s}=e;return $.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(YSe,{})}),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(VO,{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(VO,{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(VO,{fallback:n==null?void 0:n.invalidShortUrlRedirect})}),g.jsx("td",{className:"responsive-table__cell text-lg-center","data-th":"Status",children:g.jsx(KSe,{status:s})}),g.jsx("td",{className:"responsive-table__cell text-end",children:g.jsx(VSe,{domain:e,editDomainRedirects:t})})]})},R5=[{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}],XSe=({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=Xj();return s?g.jsx(Ha,{loading:!0}):g.jsxs(Zj,{value:p,children:[g.jsx(om,{className:"mb-3",onChange:t}),g.jsx(Qj,{type:"domains",className:"mb-3"}),c?g.jsx(jn,{type:"error",children:g.jsx(sa,{errorData:u,fallbackMessage:"Error loading domains :("})}):g.jsx(qt,{children:g.jsxs("table",{className:"table table-hover responsive-table mb-0",children:[g.jsx("thead",{className:"responsive-table__header",children:g.jsx("tr",{children:R5.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:R5.length,className:"text-center",children:"No results found"})}),o.map(v=>g.jsx(ZSe,{domain:v,editDomainRedirects:r,checkDomainHealth:n,defaultRedirects:h},v.domain))]})]})})]})},Wr=(e,t)=>t7(e,t,{serializeError:r=>r}),QSe="shlink/domainRedirects/EDIT_DOMAIN_REDIRECTS",JSe=e=>Wr(QSe,async({domain:t,redirects:r})=>{const n=await e().editDomainRedirects({domain:t,...r});return{domain:t,redirects:n}}),lg="shlink/domainsList",ug={domains:[],filteredDomains:[],loading:!1,error:!1},N5=({domain:e,redirects:t})=>r=>r.domain!==e?r:{...r,redirects:t},M5=(e,t)=>r=>r.domain!==e?r:{...r,status:t},ePe=(e,t,r)=>{const n=Wr(`${lg}/listDomains`,async()=>{const{data:s,defaultRedirects:c}=await e().listDomains();return{domains:s.map(u=>({...u,status:"validating"})),defaultRedirects:c}}),i=Wr(`${lg}/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=An(`${lg}/filterDomains`),{reducer:a}=jr({name:lg,initialState:ug,reducers:{},extraReducers:s=>{s.addCase(n.pending,()=>({...ug,loading:!0})),s.addCase(n.rejected,(c,{error:u})=>({...ug,error:!0,errorData:Si(u)})),s.addCase(n.fulfilled,(c,{payload:u})=>({...ug,...u,filteredDomains:u.domains})),s.addCase(i.fulfilled,({domains:c,filteredDomains:u,...h},{payload:p})=>({...h,domains:c.map(M5(p.domain,p.status)),filteredDomains:u.map(M5(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(N5(u)),filteredDomains:c.filteredDomains.map(N5(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}},tPe=(e,t)=>{e.serviceFactory("ManageDomains",()=>XSe),e.decorator("ManageDomains",t(["domainsList"],["filterDomains","editDomainRedirects","checkDomainHealth"])),e.serviceFactory("domainsListReducerCreator",ePe,"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",JSe,"apiClientFactory"),e.serviceFactory("checkDomainHealth",r=>r.checkDomainHealth,"domainsListReducerCreator")},L5="shlink/mercure",rPe={loading:!0,error:!1},nPe=e=>{const t=Wr(`${L5}/loadMercureInfo`,n=>{if(n&&n.realTimeUpdates&&!n.realTimeUpdates.enabled)throw new Error("Real time updates not enabled");return e().mercureInfo()}),{reducer:r}=jr({name:L5,initialState:rPe,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}},iPe=e=>{e.serviceFactory("mercureInfoReducerCreator",nPe,"apiClientFactory"),e.serviceFactory("mercureInfoReducer",t=>t.reducer,"mercureInfoReducerCreator"),e.serviceFactory("loadMercureInfo",t=>t.loadMercureInfo,"mercureInfoReducerCreator")};function fr(e){return $.useRef(e).current}function dr(e,t){return(r,n=globalThis.console)=>(t.forEach(i=>{const o=r[i];e[i]=o}),e)}const oPe=(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 cae.EventSourcePolyfill(v,{headers:{Authorization:`Bearer ${o}`}});return b.onmessage=c,b.onerror=u,b});return()=>h.forEach(p=>p.close())};function ko(e,t){const r=new Set;return n=>{const{createNewVisits:i,loadMercureInfo:o,mercureInfo:a}=n,s=Kf();return $.useEffect(()=>{const{interval:c}=a,u=b=>c?r.add(b):i([b]),h=t(s),p=oPe(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 Rn{}rl(Rn,"visits","https://shlink.io/new-visit"),rl(Rn,"orphanVisits","https://shlink.io/new-orphan-visit"),rl(Rn,"shortUrlVisits",e=>`https://shlink.io/new-visit/${e}`);const fd=An("shlink/visitCreation/createNewVisits",e=>({payload:{createdVisits:e}})),Gh=(e,t,r)=>r==null?e.shortCode===t&&!e.domain:e.shortCode===t&&e.domain===r,aPe=(e,t)=>!e.domain&&t===qf?!0:e.domain===t,sPe=(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}},vz=e=>e.replaceAll("/","__"),rA=e=>e.replaceAll("__","/"),nA=({domain:e,shortCode:t})=>`${e??qf}__${vz(t)}`,gz=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:rA(r)}},iA="shlink/shortUrlDeletion",I5={shortCode:"",loading:!1,deleted:!1,error:!1},lPe=e=>Wr(`${iA}/deleteShortUrl`,async({shortCode:t,domain:r})=>(await e().deleteShortUrl(t,r),{shortCode:t,domain:r})),yz=An(`${iA}/shortUrlDeleted`),uPe=e=>{const{actions:t,reducer:r}=jr({name:iA,initialState:I5,reducers:{resetDeleteShortUrl:()=>I5},extraReducers:i=>{i.addCase(e.pending,o=>({...o,loading:!0,error:!1,deleted:!1})),i.addCase(e.rejected,(o,{error:a})=>({...o,errorData:Si(a),loading:!1,error:!0,deleted:!1})),i.addCase(e.fulfilled,(o,{payload:a})=>({...o,shortCode:a.shortCode,loading:!1,error:!1,deleted:!0}))}}),{resetDeleteShortUrl:n}=t;return{reducer:r,resetDeleteShortUrl:n}},bz="shlink/shortUrlsList",_z=5,cPe={loading:!0,error:!1},fPe=e=>Wr(`${bz}/listShortUrls`,t=>e().listShortUrls(t??{})),dPe=(e,t,r)=>jr({name:bz,initialState:cPe,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,_z-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 Gh(a,s,c)?o:a}))}),n.addCase(yz,(i,{payload:o})=>{i.shortUrls&&(i.shortUrls.data=i.shortUrls.data.filter(a=>!Gh(a,o.shortCode,o.domain)),i.shortUrls.pagination.totalItems-=1)}),n.addCase(fd,(i,{payload:o})=>{i.shortUrls&&(i.shortUrls.data=i.shortUrls.data.map(a=>{var s;return((s=o.createdVisits.findLast(({shortUrl:c})=>c&&Gh(a,c.shortCode,c.domain)))==null?void 0:s.shortUrl)??a}))})}}),D5=10,{ceil:hPe}=Math,pPe=new Intl.NumberFormat("en-US"),Pr=e=>pPe.format(Number(e)),mPe=e=>hPe(e/D5)*D5,OE=({children:e,title:t,link:r,tooltip:n})=>{const i=Zi();return g.jsxs(g.Fragment,{children:[g.jsxs(wi,{innerRef:i,className:"highlight-card",body:!0,tag:Gt,to:r,children:[g.jsx(Ge,{size:"3x",className:"highlight-card__link-icon",icon:Sae}),g.jsx(SF,{className:"lh-sm fw-semibold text-uppercase fs-5 highlight-card__title",children:t}),g.jsx(OF,{className:"fs-2 fw-semibold lh-sm",children:e})]}),n&&g.jsx(Oi,{target:i,placement:"bottom",children:n})]})},$5=({loading:e,excludeBots:t,visitsSummary:r,...n})=>g.jsx(OE,{tooltip:r.bots!==void 0?g.jsxs(g.Fragment,{children:[t?"Plus":"Including"," ",g.jsx("strong",{children:Pr(r.bots)})," potential bot visits"]}):void 0,...n,children:e?"Loading...":Pr(t&&r.nonBots?r.nonBots:r.total)}),F5=({children:e,titleLinkText:t,titleLink:r,title:n})=>g.jsxs(wi,{children:[g.jsxs(rm,{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(Gt,{to:r,children:[t," »"]})]}),g.jsx(tm,{children:e})]}),xz=ko(({shortUrlsList:e,listShortUrls:t,tagsList:r,loadVisitsOverview:n,visitsOverview:i})=>{const{ShortUrlsTable:o,CreateShortUrl:a}=fr(xz),{loading:s,shortUrls:c}=e,{loading:u}=r,{loading:h,nonOrphanVisits:p,orphanVisits:v}=i,b=xl(),x=la(),_=Nn("visits");return $.useEffect(()=>{t({itemsPerPage:_z,orderBy:{field:"dateCreated",dir:"DESC"}}),n()},[t,n]),g.jsxs(g.Fragment,{children:[g.jsxs(Zo,{children:[g.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:g.jsx($5,{title:"Visits",link:`${b}/non-orphan-visits`,excludeBots:(_==null?void 0:_.excludeBots)??!1,loading:h,visitsSummary:p})}),g.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:g.jsx($5,{title:"Orphan visits",link:`${b}/orphan-visits`,excludeBots:(_==null?void 0:_.excludeBots)??!1,loading:h,visitsSummary:v})}),g.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:g.jsx(OE,{title:"Short URLs",link:`${b}/list-short-urls/1`,children:s?"Loading...":Pr((c==null?void 0:c.pagination.totalItems)??0)})}),g.jsx("div",{className:"col-lg-6 col-xl-3 mb-3",children:g.jsx(OE,{title:"Tags",link:`${b}/manage-tags`,children:u?"Loading...":Pr(r.tags.length)})})]}),g.jsxs("div",{className:"d-flex flex-column gap-3",children:[g.jsx(F5,{title:"Create a short URL",titleLinkText:"Advanced options",titleLink:`${b}/create-short-url`,children:g.jsx(a,{basicMode:!0})}),g.jsx(F5,{title:"Recently created URLs",titleLinkText:"See all",titleLink:`${b}/list-short-urls/1`,children:g.jsx(o,{shortUrlsList:e,className:"mb-0",onTagClick:w=>x(`${b}/list-short-urls/1?tags=${encodeURIComponent(w)}`)})})]})]})},()=>[Rn.visits,Rn.orphanVisits]),vPe=dr(xz,["ShortUrlsTable","CreateShortUrl"]);function gPe(e,t){e.factory("Overview",vPe),e.decorator("Overview",t(["shortUrlsList","tagsList","mercureInfo","visitsOverview"],["listShortUrls","createNewVisits","loadMercureInfo","loadVisitsOverview"]))}const wz="shlink/setShortUrlRedirectRules",B5={saving:!1,saved:!1,error:!1},yPe=e=>Wr(`${wz}/setShortUrlRedirectRules`,({shortUrl:t,data:r})=>{const{shortCode:n,domain:i}=t;return e().setShortUrlRedirectRules(n,i,r)}),bPe=e=>{const{reducer:t,actions:r}=jr({name:wz,initialState:B5,reducers:{resetSetRules:()=>B5},extraReducers:i=>{i.addCase(e.pending,()=>({saving:!0,saved:!1,error:!1})),i.addCase(e.rejected,(o,{error:a})=>({saving:!1,saved:!1,error:!0,errorData:Si(a)})),i.addCase(e.fulfilled,()=>({saving:!1,error:!1,saved:!0}))}}),{resetSetRules:n}=r;return{reducer:t,resetSetRules:n}},Oz="shlink/getShortUrlRedirectRules",_Pe={loading:!0,error:!1},xPe=e=>Wr(`${Oz}/getShortUrlRedirectRules`,({shortCode:t,domain:r})=>e().getShortUrlRedirectRules(t,r)),wPe=e=>jr({name:Oz,initialState:_Pe,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 OPe(e,t){var r=!1;return function(...n){r||(e.call(null,...n),r=!0,setTimeout(function(){r=!1},t))}}function Sz(e){return e.split(" ").filter(t=>t)}var Pz=typeof window<"u";function Nu(e,t,r=!1){if(!t)return;const n=Sz(t);if(n.length&&!n.includes("longTouch"))for(const i of e){if(!bm(i)||!ra.has(i)){i.classList.add(...n);continue}const o=[],a=ra.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,ra.set(i,a)}}}function m0(e,t){if(!t)return;const r=Sz(t);if(r.length)for(const n of e){if(!bm(n)){n.classList.remove(...r);continue}const i=ra.get(n);if(i)for(const o of r)i.privateClasses.includes(o)||n.classList.remove(o)}}function Cz(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 SPe(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(!bm(n))return;let i,o=!0;for(;n&&o;){if(ra.has(n)||_o.has(n)){o=!1,i=_o.has(n);break}n=n.parentNode}if(i){const a=_o.get(n);return a?{parent:{el:n,data:a}}:void 0}else{const a=ra.get(n);if(!a)return;const s=_o.get(n.parentNode);return s?{node:{el:n,data:a},parent:{el:n.parentNode,data:s}}:void 0}}function bm(e){return e instanceof HTMLElement&&e.parentNode instanceof HTMLElement}function Ez(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 Tz(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(!bm(o))continue;const a=t.children[Array.from(e.children).indexOf(o)];Tz(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 U5={up:[0,-1],down:[0,1],left:[-1,0],right:[1,0]},ra=new WeakMap,_o=new WeakMap,yt=void 0;function PPe(){yt=void 0}function jz(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 CPe(e,t){return yt={...e,...t},yt}function Az(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:Cz(e.targetData.node.el)}}function EPe(e,t){const r=kz(e),n=[...SE(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,PE(t.targetData.parent.el,t.targetData.parent.data,[...n])}function SE(e,t){return[...t.getValues(e)]}function PE(e,t,r){t.setValues(r,e)}function kz(e){return[...e.draggedNodes.map(t=>t.data.value)]}function TPe({parent:e,getValues:t,setValues:r,config:n={}}){var i,o;if(!Pz)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,kb()}}),Rz(e);const a={getValues:t,setValues:r,config:{handleDragstart:RPe,handleDragoverNode:iCe,handleDragoverParent:oCe,handleEnd:zPe,handleTouchstart:WPe,handleTouchmove:KPe,handleTouchOverNode:DPe,handleTouchOverParent:aCe,performSort:EPe,performTransfer:cCe,root:document,setupNode:$Pe,setupNodeRemap:Lz,reapplyDragClasses:FPe,tearDownNode:UPe,tearDownNodeRemap:BPe,remapFinished:kPe,scrollBehavior:{x:.8,y:.8},threshold:{horizontal:0,vertical:0},...n},enabledNodes:[],abortControllers:{}};jPe(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)}),Nz(e,!0)}function Rz(e){const t=_o.get(e);t&&t.abortControllers.mainParent&&t.abortControllers.mainParent.abort()}function jPe(e,t){new MutationObserver(APe).observe(e,{childList:!0}),_o.set(e,t),t.abortControllers.mainParent=Ez(e,{dragover:fCe(OPe(t.config.handleDragoverParent,10)),touchOverParent:t.config.handleTouchOverParent})}function APe(e){const t=e[0].target;t instanceof HTMLElement&&Nz(t)}function Nz(e,t){const r=_o.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(!bm(c))continue;const u=ra.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=ra.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),Lz(p)}_o.set(e,{...r,enabledNodes:a}),i.remapFinished(r)}function kPe(){yt&&(yt.preventEnter=!1,yt.swappedNodeValue=void 0,yt.remapJustFinished=!0)}function RPe(e){e.e instanceof DragEvent&&IPe({e:e.e,targetData:e.targetData})}function NPe(e,t,r){Nu([e],t),setTimeout(()=>{m0([e],t),Nu([e],r)})}function MPe(e){const t=jz(Az(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 Mz(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 LPe(e){if(!Mz(e))return;const t=qPe(e);HPe(e,t),GPe(e,t)}function IPe(e){if(!Mz(e)){e.e.preventDefault();return}const t=e.targetData.parent.data.config,r=MPe(e),n=e.targetData.node.el.style.zIndex;r.originalZIndex=n,e.targetData.node.el.style.zIndex="9999",NPe(r.draggedNode.el,t.draggingClass,t.dropZoneClass)}function DPe(e){yt&&(e.detail.targetData.parent.el===yt.lastParent.el?$z(e.detail,yt):Rb(e.detail,yt))}function $Pe(e){var t;const r=e.parentData.config;e.node.draggable=!0,e.nodeData.abortControllers.mainNode=Ez(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 Lz(e){var t;ra.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 FPe(e,t){if(!yt)return;const r="touchedNode"in yt?t.config.touchDropZoneClass:t.config.dropZoneClass;yt.draggedNode.el===e&&Nu([e],r,!0)}function BPe(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 UPe(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 zPe(e){yt&&(VPe(e,yt),PPe())}function VPe(e,t){var r,n,i,o;document.removeEventListener("contextmenu",Iz),"longTouchTimeout"in t&&t.longTouchTimeout&&clearTimeout(t.longTouchTimeout);const a=(r=_o.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),Nu(t.draggedNodes.map(c=>c.el),s,!0),m0(t.draggedNodes.map(c=>c.el),s),a!=null&&a.longTouchClass&&m0(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 WPe(e){e.e instanceof TouchEvent&&LPe({e:e.e,targetData:e.targetData})}function qPe(e){e.e.stopPropagation();const t=e.targetData.node.el.cloneNode(!0),r=e.targetData.node.el.getBoundingClientRect();return CPe(jz(Az(e)),{coordinates:{x:e.e.touches[0].clientX,y:e.e.touches[0].clientY},scrollParent:Cz(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 Iz(e){e.preventDefault()}function HPe(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),Tz(e.targetData.node.el,t.touchedNode),t.touchedNode.style.display="none",document.addEventListener("contextmenu",Iz)}function GPe(e,t){const r=e.targetData.parent.data.config;r.longTouch&&(t.longTouchTimeout=setTimeout(()=>{t&&(t.longTouch=!0,r.longTouchClass&&e.e.cancelable&&Nu(t.draggedNodes.map(n=>n.el),r.longTouchClass),e.e.preventDefault())},r.longTouchTimeout||200))}function KPe(e){!yt||!("touchedNode"in yt)||nCe(e,yt)}function YPe(e,t){t.longTouchClass&&m0(e.draggedNodes.map(r=>r.el),t==null?void 0:t.longTouchClass),t.touchDraggingClass&&Nu([e.touchedNode],t.touchDraggingClass),t.touchDropZoneClass&&Nu(e.draggedNodes.map(r=>r.el),t.touchDropZoneClass)}function ZPe(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 XPe(e){const t=ZPe(yt);if(t)switch(e){case"down":return tCe(t.state,t);case"up":return eCe(t.state,t);case"right":return QPe(t.state,t);case"left":return JPe(t.state,t)}}function QPe(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 JPe(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 eCe(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 tCe(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 rCe(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`,YPe(t,e.targetData.parent.data.config)}function nCe(e,t){if(e.targetData.parent.data.config.longTouch&&!t.longTouch){clearTimeout(t.longTouchTimeout);return}e.e.cancelable&&e.e.preventDefault(),rCe(e,t),kb();const r=SPe(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 kb(){for(const e of Object.keys(U5)){const[t,r]=U5[e];Dz(e,t,r)}}function Dz(e,t,r){const n=XPe(e);n&&(n.scrollParent.scrollBy(t,r),setTimeout(()=>{Dz(e,t,r)},"touchedNode"in n?10:100))}function iCe(e){if(!yt)return;const{x:t,y:r}=Bu(e.e);yt.coordinates.y=r,yt.coordinates.x=t,kb(),lCe(e,yt)}function oCe(e){if(!yt)return;const{x:t,y:r}=Bu(e.e);yt.coordinates.y=r,yt.coordinates.x=t,kb(),Rb(e,yt)}function aCe(e){yt&&Rb(e.detail,yt)}function sCe(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 lCe(e,t){var r;e.e.preventDefault(),e.e.stopPropagation(),e.targetData.parent.el===((r=t.lastParent)==null?void 0:r.el)?$z(e,t):Rb(e,t)}function uCe(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 $z(e,t){const{x:r,y:n}=Bu(e.e);uCe(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=ra.get(r),o=r.parentNode||((n=yt==null?void 0:yt.lastParent)==null?void 0:n.el);if(!i)return;const a=_o.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 cCe(e,t){const r=kz(e),n=SE(e.lastParent.el,e.lastParent.data).filter(s=>!r.includes(s)),i=SE(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)),PE(e.lastParent.el,e.lastParent.data,n),PE(t.targetData.parent.el,t.targetData.parent.data,i)}function Rb(e,t){sCe(e,t)&&(e.targetData.parent.data.config.performTransfer(t,e),t.lastParent=e.targetData.parent)}function fCe(e){function t(r){const n=_o.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 dCe(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 hCe(e,t){const r=dCe(e);r&&t(r)}var v0=new WeakMap;function pCe(e){const t=v0.get(e);return t?t[0]:(console.warn("No values found for parent element"),[])}function mCe(e,t){const r=v0.get(t);r&&r[1](e),v0.set(t,[e,r[1]])}function vCe(e,t){return r=>{v0.set(r,t),TPe({parent:r,getValues:pCe,setValues:mCe,config:e})}}function z5(e){Pz&&(Array.isArray(e)||(e=[e]),e.forEach(t=>{const{parent:r,state:n,...i}=t;hCe(r,vCe(i,n))}))}function gCe(e,t={}){const r=$.useRef(null),[n,i]=$.useState(e);function o(a={}){z5({parent:r,state:[n,i],...a})}return $.useEffect(()=>{z5({parent:r,state:[n,i],...t})},[n]),$.useEffect(()=>()=>{r.current&&Rz(r.current)},[]),[r,n,i,o]}const Nb=()=>{const e=la(),t=xl(),r=Xf(),n=$.useMemo(()=>{const{orderBy:o,tags:a,excludeBots:s,excludeMaxVisitsReached:c,excludePastValidUntil:u,...h}=r,p=o?Bie(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=$.useCallback(o=>{const a={...n,...o},{orderBy:s,tags:c,excludeBots:u,excludeMaxVisitsReached:h,excludePastValidUntil:p,...v}=a,b={...v,orderBy:s&&Fie(s),tags:c.length>0?c.join(","):void 0,excludeBots:UO(u),excludeMaxVisitsReached:UO(h),excludePastValidUntil:UO(p)},x=$0(b),_=x?`?${x}`:"";e(`${t}/list-short-urls/1${_}`)},[n,e,t]);return[n,i]},oA=()=>{const{domain:e}=Xf(),{shortCode:t=""}=Kf();return $.useMemo(()=>({shortCode:rA(t),domain:e}),[e,t])},Mb=()=>{const e=HSe();return g.jsx(_t,{color:"link",size:"lg",className:"p-0 me-3",onClick:e,"aria-label":"Go back",children:g.jsx(Ge,{icon:JK})})},yCe={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"},bCe={android:"Android",ios:"iOS",desktop:"Desktop"},_Ce=({deviceType:e,onDeviceTypeChange:t})=>{const r=$.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(bCe).map(([n,i])=>g.jsx("option",{value:n,children:i},n))]})]})},aA=({value:e,onValueChange:t,label:r,placeholder:n})=>{const i=$.useId();return g.jsxs("div",{children:[g.jsxs("label",{htmlFor:i,children:[r,":"]}),g.jsx(Xr,{id:i,value:e??"",onChange:o=>t(o.target.value),placeholder:n,required:!0})]})},xCe=({language:e,onLanguageChange:t})=>g.jsx(aA,{value:e,onValueChange:t,label:"Language",placeholder:"en-US / en"}),wCe=({name:e,value:t,onNameChange:r,onValueChange:n})=>{const i=$.useId(),o=$.useId();return g.jsxs(g.Fragment,{children:[g.jsxs("div",{children:[g.jsx("label",{htmlFor:i,children:"Param name:"}),g.jsx(Xr,{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(Xr,{id:o,value:t??"",onChange:a=>n(a.target.value),placeholder:"world",required:!0})]})]})},OCe=({ipAddress:e,onIpAddressChange:t})=>g.jsx(aA,{value:e,onValueChange:t,label:"IP address",placeholder:"192.168.1.10"}),SCe=({countryCode:e,onCountryCodeChange:t})=>{const r=$.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(yCe).map(([n,i])=>g.jsx("option",{value:n,children:i},n))]})]})},PCe=({cityName:e,onCityNameChange:t})=>g.jsx(aA,{value:e,onValueChange:t,label:"City name",placeholder:"New York"}),CCe=({condition:e,onConditionChange:t,onDelete:r})=>{const n=$.useId(),i=$.useCallback(h=>t({type:h,matchValue:"",matchKey:null}),[t]),o=$.useCallback(h=>t({...e,matchValue:h}),[e,t]),a=$.useCallback(h=>t({...e,matchKey:h}),[e,t]),s=_i("ipRedirectCondition"),c=_i("geolocationRedirectCondition"),u=$.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:u$,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(_Ce,{deviceType:e.matchValue,onDeviceTypeChange:o}),e.type==="language"&&g.jsx(xCe,{language:e.matchValue,onLanguageChange:o}),e.type==="query-param"&&g.jsx(wCe,{value:e.matchValue,name:e.matchKey??"",onNameChange:a,onValueChange:o}),e.type==="ip-address"&&g.jsx(OCe,{ipAddress:e.matchValue,onIpAddressChange:o}),e.type==="geolocation-country-code"&&g.jsx(SCe,{countryCode:e.matchValue,onCountryCodeChange:o}),e.type==="geolocation-city-name"&&g.jsx(PCe,{cityName:e.matchValue,onCityNameChange:o})]})},Fz=({isOpen:e,toggle:t,onSave:r,initialData:n})=>{const[i,o]=$.useState(n??{longUrl:"",conditions:[]}),a=$.useCallback(b=>{b.preventDefault(),b.stopPropagation(),i&&r(i),t()},[r,i,t]),s=$.useCallback(()=>o(({longUrl:b,conditions:x})=>({longUrl:b,conditions:[...x,{type:"device",matchValue:"",matchKey:null}]})),[]),c=$.useCallback((b,x)=>o(({longUrl:_,conditions:w})=>{const O=[...w];return O[b]=x,{longUrl:_,conditions:O}}),[]),u=$.useCallback(b=>o(({longUrl:x,conditions:_})=>{const w=[..._];return w.splice(b,1),{longUrl:x,conditions:w}}),[]),h=Zi(),p=$.useCallback(()=>{var b;return(b=h==null?void 0:h.current)==null?void 0:b.focus()},[h]),v=$.useCallback(()=>o(n??{longUrl:"",conditions:[]}),[n]);return g.jsx(Zn,{size:"xl",isOpen:e,toggle:t,centered:!0,onOpened:p,onClosed:v,children:g.jsxs("form",{onSubmit:a,children:[g.jsx(ua,{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(Xr,{id:"longUrl",type:"url",placeholder:"https://www.example.com",value:i.longUrl,onChange:b=>o(x=>({...x,longUrl:b.target.value})),required:!0,innerRef:h}),g.jsx("hr",{}),g.jsxs("div",{className:"d-flex justify-content-between",children:[g.jsx("b",{children:"Conditions:"}),g.jsx(_t,{outline:!0,size:"sm",type:"button","aria-label":"Add condition",onClick:s,children:g.jsx(Ge,{icon:Zp})})]}),i.conditions.length===0&&g.jsx("div",{className:"text-center",children:g.jsx("i",{children:"Add conditions..."})}),i.conditions.length>0&&g.jsx(Zo,{className:"redirect-rule-modal__conditions-row",children:i.conditions.map((b,x)=>g.jsx("div",{className:"col-lg-6 col-xl-4 mt-4",children:g.jsx(CCe,{condition:b,onConditionChange:_=>c(x,_),onDelete:()=>u(x)})},`${x}_${b.type}`))})]}),g.jsxs(es,{className:"sticky-bottom redirect-rule-modal__footer",children:[g.jsx(_t,{type:"button",color:"link",onClick:t,children:"Cancel"}),g.jsx(_t,{color:"primary",disabled:i.conditions.length===0,children:"Confirm"})]})]})})},ECe=({priority:e,isLast:t,redirectRule:r,onDelete:n,onMoveUp:i,onMoveDown:o,onUpdate:a})=>{const[s,c]=cr();return g.jsxs(qt,{children:[g.jsxs("div",{className:"d-flex align-content-center gap-3",children:[g.jsx("div",{className:"d-flex flex-column my-auto drag-n-drop-handler d-none d-md-block",style:{cursor:"grab"},children:g.jsx(Ge,{icon:oY})}),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:_Y})}),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:mY})})]}),g.jsxs("div",{className:"flex-grow-1",children:[g.jsxs("div",{className:"mb-2",children:[g.jsx("b",{children:"Long URL:"})," ",g.jsx(Kn,{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:o$})}),g.jsx(_t,{outline:!0,color:"danger",size:"sm","aria-label":`Delete rule with priority ${e}`,onClick:n,children:g.jsx(Ge,{icon:kK})})]})]}),g.jsx(Fz,{onSave:a,isOpen:s,toggle:c,initialData:r})]})},TCe=({shortUrlRedirectRules:e,getShortUrlRedirectRules:t,getShortUrlsDetails:r,shortUrlsDetails:n,setShortUrlRedirectRules:i,shortUrlRedirectRulesSaving:o,resetSetRules:a})=>{const s=oA(),{shortUrls:c}=n,u=s&&(c==null?void 0:c.get(s)),[h,p,v]=gCe([],{dragHandle:".drag-n-drop-handler",dropZoneClass:"opacity-25"}),{saving:b,saved:x,errorData:_}=o,[w,O]=cr(),S=$.useCallback(V=>v((B=[])=>[...B,V]),[v]),E=$.useCallback(V=>v((B=[])=>{const W=[...B];return W.splice(V,1),W}),[v]),T=$.useCallback((V,B)=>v((W=[])=>{const q=[...W];return q[V]=B,q}),[v]),A=$.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=$.useCallback(V=>A(V,V-1),[A]),N=$.useCallback(V=>A(V,V+1),[A]),F=$.useCallback(V=>{V.preventDefault(),p&&i({shortUrl:s,data:{redirectRules:p}})},[s,p,i]);return $.useEffect(()=>(t(s),r([s]),a),[t,r,s,a]),$.useEffect(()=>{e.redirectRules&&v(e.redirectRules)},[v,e.redirectRules]),g.jsxs("div",{className:"d-flex flex-column gap-3",children:[g.jsx("header",{children:g.jsxs(wi,{body:!0,children:[g.jsxs("h2",{className:"d-sm-flex justify-content-between align-items-center mb-0",children:[g.jsx(Mb,{}),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(Kn,{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(Kn,{href:e.defaultLongUrl??""})]})]})}),g.jsx("div",{children:g.jsxs(_t,{outline:!0,color:"primary",onClick:O,children:[g.jsx(Ge,{icon:Zp,className:"me-1"})," Add rule"]})}),g.jsxs("form",{onSubmit:F,children:[e.loading&&g.jsx(Ha,{loading:!0}),p.length===0&&!e.loading&&g.jsx(qt,{className:"text-center",children:g.jsx("i",{children:"This short URL has no dynamic redirect rules"})}),g.jsx("div",{className:"d-flex flex-column gap-2",ref:h,children:p.map((V,B)=>g.jsx(ECe,{redirectRule:V,priority:B+1,isLast:B===p.length-1,onDelete:()=>E(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"})})]}),_&&g.jsx(jn,{type:"error",children:g.jsx(sa,{errorData:_,fallbackMessage:"An error occurred while saving short URL redirect rules :("})}),x&&g.jsx(jn,{type:"success",children:"Redirect rules properly saved."}),g.jsx(Fz,{isOpen:w,toggle:O,onSave:S})]})},jCe=(e,t)=>{e.serviceFactory("ShortUrlRedirectRules",()=>TCe),e.decorator("ShortUrlRedirectRules",t(["shortUrlRedirectRules","shortUrlsDetails","shortUrlRedirectRulesSaving"],["getShortUrlRedirectRules","getShortUrlsDetails","setShortUrlRedirectRules","resetSetRules"])),e.serviceFactory("getShortUrlRedirectRules",xPe,"apiClientFactory"),e.serviceFactory("setShortUrlRedirectRules",yPe,"apiClientFactory"),e.serviceFactory("resetSetRules",r=>r.resetSetRules,"setShortUrlRedirectRulesReducerCreator"),e.serviceFactory("shortUrlRedirectRulesReducerCreator",wPe,"getShortUrlRedirectRules"),e.serviceFactory("shortUrlRedirectRulesReducer",r=>r.reducer,"shortUrlRedirectRulesReducerCreator"),e.serviceFactory("setShortUrlRedirectRulesReducerCreator",bPe,"setShortUrlRedirectRules"),e.serviceFactory("setShortUrlRedirectRulesReducer",r=>r.reducer,"setShortUrlRedirectRulesReducerCreator")},ACe=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}),Bz=({createShortUrl:e,shortUrlCreation:t,resetCreateShortUrl:r,basicMode:n=!1})=>{const{ShortUrlForm:i,CreateShortUrlResult:o}=fr(Bz),a=Nn("shortUrlCreation"),s=$.useMemo(()=>ACe(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})]})},kCe=dr(Bz,["ShortUrlForm","CreateShortUrlResult"]),Uz=({shortUrlsDetails:e,getShortUrlsDetails:t,shortUrlEdition:r,editShortUrl:n})=>{const{ShortUrlForm:i}=fr(Uz),o=oA(),{loading:a,error:s,errorData:c,shortUrls:u}=e,h=o&&(u==null?void 0:u.get(o)),{saving:p,saved:v,error:b,errorData:x}=r,_=Nn("shortUrlCreation"),w=$.useMemo(()=>sPe(h,_),[h,_]);return $.useEffect(()=>{o&&t([o])},[t,o]),a?g.jsx(Ha,{loading:!0}):s?g.jsx(jn,{type:"error",children:g.jsx(sa,{errorData:c,fallbackMessage:"An error occurred while loading short URL detail :("})}):g.jsxs(g.Fragment,{children:[g.jsx("header",{className:"mb-3",children:g.jsx(wi,{body:!0,children:g.jsxs("h2",{className:"d-sm-flex justify-content-between align-items-center mb-0",children:[g.jsx(Mb,{}),g.jsx("div",{className:"text-center flex-grow-1",children:g.jsxs("small",{children:["Edit ",g.jsx(Kn,{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(jn,{type:"error",className:"mt-3",children:g.jsx(sa,{errorData:x,fallbackMessage:"An error occurred while updating short URL :("})}),v&&!b&&g.jsx(jn,{type:"success",className:"mt-3",children:"Short URL properly edited."})]})},RCe=dr(Uz,["ShortUrlForm"]),zz=({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))},Vz=({creation:e,resetCreateShortUrl:t,canBeClosed:r=!1})=>{const{useTimeoutToggle:n}=fr(Vz),[i,o]=n(),{error:a,saved:s}=e;if($.useEffect(()=>{t()},[t]),a)return g.jsxs(jn,{type:"error",className:"mt-3",children:[r&&g.jsx(Ge,{"data-testid":"error-close-button",icon:rS,className:"float-end pointer",onClick:t}),g.jsx(sa,{errorData:e.errorData,fallbackMessage:"An error occurred while creating the URL :("})]});if(!s)return null;const{shortUrl:c}=e.result;return g.jsxs(jn,{type:"success",className:"mt-3",children:[r&&g.jsx(Ge,{"data-testid":"success-close-button",icon:rS,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:()=>zz({text:c,onCopy:o}),children:[g.jsx(Ge,{icon:c7})," Copy ",g.jsxs("span",{className:"sr-only",children:[c," to clipboard"]})]}),g.jsx(D0,{placement:"left",isOpen:i,target:"copyBtn",children:"Copied!"})]})},NCe=dr(Vz,["useTimeoutToggle"]),WO="delete",MCe=({shortUrl:e,toggle:t,isOpen:r,shortUrlDeletion:n,resetDeleteShortUrl:i,deleteShortUrl:o,shortUrlDeleted:a})=>{const[s,c]=$.useState("");$.useEffect(()=>i,[i]);const{loading:u,error:h,deleted:p,errorData:v}=n,b=$.useCallback(()=>{i(),t()},[i,t]),x=$.useCallback(_=>(_.preventDefault(),o(e).then(w=>!Yj(w)&&t())),[o,e,t]);return g.jsx(Zn,{isOpen:r,toggle:b,centered:!0,onClosed:()=>p&&a(e),children:g.jsxs("form",{onSubmit:x,children:[g.jsx(ua,{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:WO})," to confirm deletion."]}),g.jsx("input",{type:"text",className:"form-control",placeholder:`Insert ${WO}`,value:s,onChange:_=>c(_.target.value)}),h&&g.jsx(jn,{type:MSe(v)?"warning":"error",small:!0,className:"mt-2",children:g.jsx(sa,{errorData:v,fallbackMessage:"Something went wrong while deleting the URL :("})})]}),g.jsxs(es,{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!==WO||u,children:u?"Deleting...":"Delete"})]})]})})},Wz=({amount:e=0,loading:t=!1,...r})=>g.jsxs(_t,{...r,outline:!0,color:"primary",disabled:t,children:[g.jsx(Ge,{icon:IK})," ",t?"Exporting...":g.jsxs(g.Fragment,{children:["Export (",Pr(e),")"]})]}),V5=20,qz=({amount:e=0})=>{const{apiClientFactory:t,ReportExporter:r}=fr(qz),[{tags:n,search:i,startDate:o,endDate:a,orderBy:s,tagsMode:c}]=Nb(),[u,,h,p]=cr(),v=$.useCallback(async()=>{const b=e/V5,x=async(w=1)=>{const{data:O}=await t().listShortUrls({page:`${w}`,tags:n,searchTerm:i,startDate:o,endDate:a,orderBy:s,tagsMode:c,itemsPerPage:V5});return w>=b?O:O.concat(await x(w+1))};h();const _=await x();r.exportShortUrls(_.map(w=>{var O;const{hostname:S,pathname:E}=new URL(w.shortUrl),T=E.substring(1);return{createdAt:w.dateCreated,domain:S,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(Wz,{loading:u,className:"btn-md-block",amount:e,onClick:v})},LCe=dr(qz,["apiClientFactory","ReportExporter"]),Hz=({text:e,onCopy:t,copyToClipboard:r=zz})=>g.jsx(Ru,{className:"ms-2 p-0","aria-label":`Copy ${e} to clipboard`,onClick:()=>r({text:e,onCopy:t}),children:g.jsx(Ge,{icon:c7,className:"fs-5"})}),W5=e=>e&&e.startsWith("#")?e.substring(1):e,ICe=(e,{color:t,bgColor:r,...n})=>{const i=`${e}/qr-code`,o=$0({...n,color:W5(t),bgColor:W5(r)});return`${i}${o?`?${o}`:""}`},DCe=6,q5="0123456789ABCDEF",$Ce=128;function FCe(){return`#${Jj(DCe,()=>q5[Math.floor(Math.random()*q5.length)]).join("")}`}function BCe(e,t,r){return Math.round(Math.sqrt(.299*e**2+.587*t**2+.114*r**2))}function Gz(e){const[t,r,n]=(e.match(/../g)??[]).map(i=>parseInt(i,16)||0);return BCe(t,r,n)>=$Ce}const Kz=$.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:YK,className:"position-absolute top-50 start-50 translate-middle",style:{color:Gz(t.substring(1))?"#000":"fff"}}),g.jsx(Xr,{className:"form-control-color opacity-0",type:"color",value:t,onChange:o=>r(o.target.value),innerRef:i,name:e,"aria-label":e})]})),UCe=({color:e,onChange:t,name:r})=>{const n=Zi();return g.jsxs(nm,{children:[g.jsx(Kz,{name:r,color:e,onChange:t,className:"input-group-text",ref:n}),g.jsx(Xr,{readOnly:!0,value:e,onClick:()=>{var i;return(i=n.current)==null?void 0:i.click()},"aria-label":r,"data-testid":"text-input"})]})},g0=({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}),H5=({name:e,color:t,initialColor:r,onChange:n})=>g.jsx(g.Fragment,{children:t===void 0?g.jsx(g0,{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(UCe,{color:t,onChange:n,name:e}),g.jsx(g0,{label:`Default ${e}`,onClick:()=>n(void 0),children:g.jsx(Ge,{icon:XE})})]})}),G5=({name:e,value:t,step:r,min:n,max:i,onChange:o,initial:a=n})=>{const s=$.useId();return g.jsx(g.Fragment,{children:t===void 0?g.jsxs(g0,{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(g0,{label:`Default ${e}`,onClick:()=>o(void 0),children:g.jsx(Ge,{icon:XE})})]})})},zCe=({errorCorrection:e,onChange:t})=>g.jsxs(ts,{text:e?`Error correction (${e})`:g.jsx("i",{children:"Default error correction"}),dropdownClassName:"w-100",children:[g.jsx(Ye,{active:!e,onClick:()=>t(void 0),children:"Default"}),g.jsx(Ye,{divider:!0,tag:"hr"}),g.jsxs(Ye,{active:e==="L",onClick:()=>t("L"),children:[g.jsx("b",{children:"L"}),"ow"]}),g.jsxs(Ye,{active:e==="M",onClick:()=>t("M"),children:[g.jsx("b",{children:"M"}),"edium"]}),g.jsxs(Ye,{active:e==="Q",onClick:()=>t("Q"),children:[g.jsx("b",{children:"Q"}),"uartile"]}),g.jsxs(Ye,{active:e==="H",onClick:()=>t("H"),children:[g.jsx("b",{children:"H"}),"igh"]})]}),VCe=({format:e,onChange:t})=>g.jsxs(ts,{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"})]}),Yz=({shortUrl:{shortUrl:e,shortCode:t},toggle:r,isOpen:n})=>{const{ImageDownloader:i}=fr(Yz),[o,a]=$.useState(),[s,c]=$.useState(),[u,h]=$.useState(),[p,v]=$.useState(),[b,x]=$.useState(),[_,w]=$.useState(),O=_i("qrCodeColors"),S=$.useMemo(()=>ICe(e,{size:o,format:u,margin:s,errorCorrection:p,color:b,bgColor:_}),[e,o,u,s,p,b,_]);return g.jsxs(Zn,{isOpen:n,toggle:r,centered:!0,size:"lg",children:[g.jsxs(ua,{toggle:r,children:["QR code for ",g.jsx(Kn,{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:S,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(G5,{name:"size",value:o,onChange:a,step:10,min:50,max:1e3,initial:300}),g.jsx(G5,{name:"margin",value:s,onChange:c,step:1,min:0,max:100}),g.jsx(VCe,{format:u,onChange:h}),g.jsx(zCe,{errorCorrection:p,onChange:v}),O&&g.jsxs(g.Fragment,{children:[g.jsx(H5,{name:"color",initialColor:"#000000",color:b,onChange:x}),g.jsx(H5,{name:"background",initialColor:"#ffffff",color:_,onChange:w})]}),g.jsx("div",{className:"mt-auto",children:g.jsxs(_t,{block:!0,color:"primary",onClick:()=>{i.saveImage(S,`${t}-qr-code.${u??"png"}`).catch(()=>{})},children:["Download ",g.jsx(Ge,{icon:l$,className:"ms-1"})]})})]})]}),g.jsx(es,{className:"sticky-bottom justify-content-around",style:{backgroundColor:"var(--primary-color)",zIndex:"1"},children:g.jsxs("div",{className:"text-center",children:[g.jsx(Kn,{href:S}),g.jsx(Hz,{text:S})]})})]})},WCe=dr(Yz,["ImageDownloader"]),qCe="yyyy-MM-dd",Zz="yyyy-MM-dd HH:mm",cl=()=>new Date,sA=e=>typeof e!="string",lA=(e,t)=>!e||!sA(e)?e:t?cy(e,t):zse(e),fl=e=>lA(e,void 0),Xs=e=>lA(e,qCe),Hp=e=>lA(e,Zz),mi=e=>sA(e)?e:sl(e),_m=(e,t,r)=>{const n=mi(e),i=t&&mi(t),o=r&&mi(r);if(i&&o)try{return qse(n,{start:i,end:o})}catch{return!1}return i?GP(n,i)||Wse(n,i):o?GP(n,o)||fy(n,o):!0},Ql=(e,t)=>GP(e,t)||fy(e,t),y0=({date:e,format:t=Zz,relative:r=!1})=>{const n=sA(e)?e:sl(e);return g.jsx("time",{dateTime:`${Vse(n)}000`,children:r?`${Use(cl(),n)} ago`:cy(n,t)})},HCe=(e,{shortCode:t,domain:r},n)=>{const i=r?`?domain=${r}`:"";return`${e}/short-code/${vz(t)}/${n}${i}`},Kh=({shortUrl:e,suffix:t,asLink:r,children:n,...i})=>{const o=xl();return!r||!e?g.jsx("span",{...i,children:n}):g.jsx(Gt,{to:HCe(o,e,t),...i,children:n})},GCe=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:TY,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&&fy(mi(a),cl())?{icon:j3,className:"text-danger",description:g.jsxs(g.Fragment,{children:["This short URL cannot be visited since ",g.jsx("b",{className:"indivisible",children:Hp(mi(a))}),"."]})}:o&&fy(cl(),mi(o))?{icon:j3,className:"text-warning",description:g.jsxs(g.Fragment,{children:["This short URL will start working on ",g.jsx("b",{className:"indivisible",children:Hp(mi(o))}),"."]})}:{icon:Xh,className:"text-primary",description:"This short URL can be visited normally."}},KCe=({shortUrl:e})=>{const t=Zi(),{icon:r,className:n,description:i}=GCe(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(Oi,{target:t,placement:"bottom",children:i})]})},Xz=({visitsCount:e,shortUrl:t,active:r=!1,asLink:n=!1})=>{const i=Zi(),{maxVisits:o,validSince:a,validUntil:s}=(t==null?void 0:t.meta)??{},c=!!o||!!a||!!s,u=g.jsx(Kh,{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:Pr(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:[" / ",Pr(o)]}),g.jsx("sup",{className:"ms-1",children:g.jsx(Ge,{icon:ZE})})]})]}),g.jsx(Oi,{target:i,placement:"bottom",children:g.jsxs("ul",{className:"list-unstyled mb-0",children:[o&&g.jsxs("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept more than ",g.jsx("b",{children:Pr(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:Hp(mi(a))}),"."]}),s&&g.jsxs("li",{className:"short-url-visits-count__tooltip-list-item",children:["This short URL will not accept visits after ",g.jsx("b",{className:"indivisible",children:Hp(mi(s))}),"."]})]})})]}):u},YCe=e=>!!e.onClose,ZCe=e=>!!e.onClick,Lb=e=>{const{text:t,children:r,className:n,colorGenerator:i}=e,o=ZCe(e),a=o?Ru:"span",s=$.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,YCe(e)&&g.jsx(Ru,{"aria-label":`Remove ${t}`,className:"bg-transparent ms-1 opacity-100 p-0 fw-bold tag__close",onClick:e.onClose,children:"×"})]})},XCe=({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(Lb,{text:n,colorGenerator:r,onClick:()=>t==null?void 0:t(n)},n))}),Qz=({shortUrl:e,onTagClick:t})=>{var r,n,i,o;const{ShortUrlsRowMenu:a,ColorGenerator:s,useTimeoutToggle:c}=fr(Qz),[u,h]=c(),[p,v]=c(!1,500),b=$.useRef(!0),[{excludeBots:x}]=Nb(),_=Nn("visits"),w=x??(_==null?void 0:_.excludeBots);return $.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(y0,{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(Kn,{href:e.shortUrl})}),g.jsx(Hz,{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(Kn,{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(Kn,{href:e.longUrl})}),g.jsx("td",{className:"responsive-table__cell short-urls-row__cell","data-th":"Tags",children:g.jsx(XCe,{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(Xz,{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(KCe,{shortUrl:e}),e.hasRedirectRules&&g.jsx(Kh,{asLink:!0,shortUrl:e,suffix:"redirect-rules",title:"This short URL has dynamic redirect rules",children:g.jsx(Ge,{icon:f$})})]})}),g.jsx("td",{className:"responsive-table__cell short-urls-row__cell text-end",children:g.jsx(a,{shortUrl:e})})]})},QCe=dr(Qz,["ShortUrlsRowMenu","ColorGenerator","useTimeoutToggle"]),Jz=({shortUrl:e,deleteShortUrl:t,shortUrlDeleted:r})=>{const{DeleteShortUrlModal:n,QrCodeModal:i}=fr(Jz),[o,,a,s]=cr(),[c,,u,h]=cr(),p=Ab(),v=_i("shortUrlRedirectRules"),{confirmDeletions:b=!0}=Nn("shortUrlsList",{}),x=$.useCallback(async()=>{const _=await t(e);Yj(_)||r(e)},[t,e,r]);return g.jsxs(F0,{minWidth:v?220:190,children:[g.jsxs(Ye,{tag:Kh,shortUrl:e,suffix:"visits",asLink:!0,children:[g.jsx(Ge,{icon:YE,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:nA(e)}),children:[g.jsx(Ge,{icon:A0,fixedWidth:!0})," Compare visits"]}),g.jsx(Ye,{divider:!0,tag:"hr"})]}),g.jsxs(Ye,{tag:Kh,shortUrl:e,suffix:"edit",asLink:!0,children:[g.jsx(Ge,{icon:KE,fixedWidth:!0})," Edit short URL"]}),v&&g.jsxs(Ye,{tag:Kh,shortUrl:e,suffix:"redirect-rules",asLink:!0,children:[g.jsx(Ge,{icon:f$,fixedWidth:!0})," Manage redirect rules"]}),g.jsxs(Ye,{onClick:a,children:[g.jsx(Ge,{icon:PY,fixedWidth:!0})," QR code"]}),g.jsx(i,{shortUrl:e,isOpen:o,toggle:s}),g.jsx(Ye,{divider:!0,tag:"hr"}),g.jsxs(Ye,{className:"dropdown-item--danger",onClick:b?u:x,children:[g.jsx(Ge,{icon:HE,fixedWidth:!0})," Delete short URL"]}),g.jsx(n,{shortUrl:e,deleteShortUrl:t,shortUrlDeleted:r,isOpen:c,toggle:h})]})},JCe=dr(Jz,["DeleteShortUrlModal","QrCodeModal"]),eV="shlink/shortUrlCreation",K5={saving:!1,saved:!1,error:!1},eEe=e=>Wr(`${eV}/createShortUrl`,t=>e().createShortUrl(t)),tEe=e=>{const{reducer:t,actions:r}=jr({name:eV,initialState:K5,reducers:{resetCreateShortUrl:()=>K5},extraReducers:i=>{i.addCase(e.pending,()=>({saving:!0,saved:!1,error:!1})),i.addCase(e.rejected,(o,{error:a})=>({saving:!1,saved:!1,error:!0,errorData:Si(a)})),i.addCase(e.fulfilled,(o,{payload:a})=>({result:a,saving:!1,saved:!0,error:!1}))}}),{resetCreateShortUrl:n}=r;return{reducer:t,resetCreateShortUrl:n}},tV="shlink/shortUrlEdition",rEe={saving:!1,saved:!1,error:!1},nEe=e=>Wr(`${tV}/editShortUrl`,({shortCode:t,domain:r,data:n})=>e().updateShortUrl(t,r,n)),iEe=e=>jr({name:tV,initialState:rEe,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:Si(n)})),t.addCase(e.fulfilled,(r,{payload:n})=>({shortUrl:n,saving:!1,error:!1,saved:!0}))}}),Y5="shlink/shortUrlsDetails",Z5={loading:!1,error:!1},oEe=e=>{const t=Wr(`${Y5}/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=>Gh(v,u,h));return[s,p??await e().getShortUrl(u,h)]}));return new Map(a)}),{reducer:r}=jr({name:Y5,initialState:Z5,reducers:{},extraReducers:n=>{n.addCase(t.pending,()=>({loading:!0,error:!1})),n.addCase(t.rejected,(i,{error:o})=>({loading:!1,error:!0,errorData:Si(o)})),n.addCase(t.fulfilled,(i,{payload:o})=>({...Z5,shortUrls:o}))}});return{reducer:r,getShortUrlsDetails:t}},aEe=({domains:e,value:t,onChange:r})=>{const[n,,i,o]=cr(),a=!t,s=$.useCallback(()=>{r(""),o()},[r,o]),c=$.useCallback(()=>{r(""),i()},[r,i]);return n?g.jsxs(nm,{children:[g.jsx(Xr,{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:iY})}),g.jsx(Oi,{target:"backToDropdown",placement:"left",trigger:"hover",children:"Existing domains"})]}):g.jsxs(ts,{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"})})]})},qO=({icon:e,className:t,...r})=>{const n=Zi();return g.jsxs("div",{className:"icon-input-container",children:[g.jsx(Xr,{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()}})]})},sEe=({minDate:e,maxDate:t,value:r,onChange:n,withTime:i=!1,...o})=>{const a=$.useCallback(({target:c})=>{if(!c.value){n==null||n(null);return}n==null||n(mi(c.value))},[n]),s=$.useMemo(()=>i?Hp:Xs,[i]);return g.jsx(Xr,{...o,type:i?"datetime-local":"date",value:s(r)??"",max:s(t)??void 0,min:s(e)??void 0,onChange:a})},b0=({label:e,id:t,...r})=>{const n=$.useId();return g.jsxs(g.Fragment,{children:[g.jsxs("label",{htmlFor:t??n,className:"mb-1",children:[e,":"]}),g.jsx(sEe,{id:t??n,...r})]})},HO=({children:e,infoTooltip:t,checked:r,onChange:n})=>g.jsxs("p",{children:[g.jsx(IF,{inline:!0,checked:r,className:t?"me-2":"",onChange:n,children:e}),t&&g.jsx(Eg,{placement:"right",children:t})]}),lEe=({isOpen:e,toggle:t})=>g.jsxs(Zn,{isOpen:e,toggle:t,centered:!0,size:"lg",children:[g.jsx(ua,{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"})]})]})]}),uEe=()=>{const[e,t]=cr();return g.jsxs(g.Fragment,{children:[g.jsx(Ru,{className:"p-0",title:"What does this mean?",onClick:t,children:g.jsx(Ge,{icon:ZE})}),g.jsx(lEe,{isOpen:e,toggle:t})]})},cg=e=>typeof e=="string"?sl(e):e,cEe=e=>"shortCodeLength"in e&&"customSlug"in e&&"domain"in e,rV=({basicMode:e=!1,saving:t,onSave:r,initialState:n,tagsList:i,domainsList:o})=>{var a,s,c;const{TagsSelector:u}=fr(rV),[h,p]=$.useState(n),v=cEe(h),b=_i("deviceLongUrls"),x=_i("urlValidation"),_=x||v,w=$.useCallback(()=>p(n),[n]),O=$.useCallback((j,N)=>su(j)?j:su(N)?null:void 0,[]),S=$.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]),E=$.useCallback(j=>p(N=>({...N,tags:j})),[]),T=$.useCallback(async j=>(j.preventDefault(),r(h).then(N=>v&&!Yj(N)&&w()).catch(()=>{})),[v,r,w,h]),A=$.useMemo(()=>g.jsxs("div",{className:"d-flex flex-column gap-3",children:[g.jsx(Xr,{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(Xr,{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:E})})]})]}),[u,e,E,v,h,i.tags]);return g.jsxs("form",{name:"shortUrlForm",className:"short-url-form",onSubmit:T,children:[e&&A,!e&&g.jsxs(g.Fragment,{children:[g.jsxs(Zo,{children:[g.jsx("div",{className:ze("mb-3",{"col-sm-6":b,"col-12":!b}),children:g.jsx(qt,{title:"Main options",children:A})}),b&&g.jsx("div",{className:"col-sm-6 mb-3",children:g.jsxs(qt,{title:"Device-specific long URLs",bodyClassName:"d-flex flex-column gap-3",children:[g.jsx(qO,{type:"url",icon:lle,placeholder:"Android-specific redirection",value:((a=h.deviceLongUrls)==null?void 0:a.android)??"",onChange:({target:j})=>S("android",j.value)}),g.jsx(qO,{type:"url",icon:sle,placeholder:"iOS-specific redirection",value:((s=h.deviceLongUrls)==null?void 0:s.ios)??"",onChange:({target:j})=>S("ios",j.value)}),g.jsx(qO,{type:"url",icon:jY,placeholder:"Desktop-specific redirection",value:((c=h.deviceLongUrls)==null?void 0:c.desktop)??"",onChange:({target:j})=>S("desktop",j.value)})]})})]}),g.jsxs(Zo,{children:[g.jsx("div",{className:"col-sm-6 mb-3",children:g.jsxs(qt,{title:"Customize the short URL",bodyClassName:"d-flex flex-column gap-3",children:[g.jsx(Xr,{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(Zo,{children:[g.jsx("div",{className:"col-lg-6 mb-3 mb-lg-0",children:g.jsx(Xr,{placeholder:"Custom slug",value:h.customSlug??"",onChange:j=>p(N=>({...N,customSlug:j.target.value})),disabled:su(h.shortCodeLength)})}),g.jsx("div",{className:"col-lg-6",children:g.jsx(Xr,{type:"number",placeholder:"Short code length",value:h.shortCodeLength??"",onChange:j=>p(N=>({...N,shortCodeLength:j.target.value})),min:4,disabled:su(h.customSlug)})})]}),g.jsx(aEe,{value:h.domain,onChange:j=>p(N=>({...N,domain:j})),domains:o.domains})]})]})}),g.jsx("div",{className:"col-sm-6 mb-3",children:g.jsxs(qt,{title:"Limit access to the short URL",children:[g.jsxs("div",{className:"row mb-3",children:[g.jsx("div",{className:"col-lg-6",children:g.jsx(b0,{label:"Enabled since",withTime:!0,maxDate:h.validUntil?cg(h.validUntil):void 0,value:h.validSince?cg(h.validSince):null,onChange:j=>p(N=>({...N,validSince:fl(j)}))})}),g.jsx("div",{className:"col-lg-6 mt-3 mt-lg-0",children:g.jsx(b0,{label:"Enabled until",withTime:!0,minDate:h.validSince?cg(h.validSince):void 0,value:h.validUntil?cg(h.validUntil):null,onChange:j=>p(N=>({...N,validUntil:fl(j)}))})})]}),g.jsxs("div",{children:[g.jsx("label",{htmlFor:"maxVisits",className:"mb-1",children:"Maximum visits allowed:"}),g.jsx(Xr,{id:"maxVisits",type:"number",min:1,placeholder:"25...",value:h.maxVisits??"",onChange:j=>p(N=>({...N,maxVisits:su(j.target.value)?Number(j.target.value):null}))})]})]})})]}),g.jsxs(Zo,{children:[_&&g.jsx("div",{className:"col-sm-6 mb-3",children:g.jsxs(qt,{title:"Extra checks",children:[x&&g.jsx(HO,{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(IF,{inline:!0,className:"me-2",checked:h.findIfExists,onChange:j=>p(N=>({...N,findIfExists:j})),children:"Use existing URL if found"}),g.jsx(uEe,{})]})]})}),g.jsx("div",{className:ze("mb-3",{"col-sm-6":_}),children:g.jsxs(qt,{title:"Configure behavior",children:[g.jsx(HO,{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(HO,{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"})})]})},fEe=dr(rV,["TagsSelector"]),Ib="all",nV={today:"Today",yesterday:"Yesterday",last7Days:"Last 7 days",last30Days:"Last 30 days",last90Days:"Last 90 days",last180Days:"Last 180 days",last365Days:"Last 365 days",[Ib]:void 0},iV=Object.keys(nV),dEe=e=>!e||!e.startDate&&!e.endDate,_0=e=>typeof e=="string"&&iV.includes(e),hEe=iV.filter(e=>e!==Ib),X5=e=>e?mi(e):null,oV=(e,t)=>({startDate:X5(e),endDate:X5(t)}),pEe=e=>{if(!(!e||dEe(e)))return e.startDate&&!e.endDate?`Since ${Xs(e.startDate)}`:!e.startDate&&e.endDate?`Until ${Xs(e.endDate)}`:`${Xs(e.startDate)} - ${Xs(e.endDate)}`},aV=e=>{if(!(!e||e===Ib))return _0(e)?nV[e]:pEe(e)},Vi=e=>Eu(dy(cl(),e)),Fc=e=>({startDate:e,endDate:mf(cl())}),sV=e=>{var t;return((t=[[()=>e==="today",()=>Fc(Eu(cl()))],[()=>e==="yesterday",()=>({startDate:Vi(1),endDate:mf(dy(cl(),1))})],[()=>e==="last7Days",()=>Fc(Vi(7))],[()=>e==="last30Days",()=>Fc(Vi(30))],[()=>e==="last90Days",()=>Fc(Vi(90))],[()=>e==="last180Days",()=>Fc(Vi(180))],[()=>e==="last365Days",()=>Fc(Vi(365))]].find(([r])=>r()))==null?void 0:t[1]())??{}},mEe=e=>{var t;const r=mi(e);return((t=[[()=>Ql(Eu(cl()),r),"today"],[()=>Ql(Vi(1),r),"yesterday"],[()=>Ql(Vi(7),r),"last7Days"],[()=>Ql(Vi(30),r),"last30Days"],[()=>Ql(Vi(90),r),"last90Days"],[()=>Ql(Vi(180),r),"last180Days"],[()=>Ql(Vi(365),r),"last365Days"]].find(([n])=>n()))==null?void 0:t[1])??Ib},lV=e=>_0(e)?sV(e):e,uV=e=>!!(e&&e.startDate),vEe=({startDate:e,endDate:t})=>{const r=p7(mf(t??new Date),Eu(e))+1,n=dy(Eu(e),r),i=dy(mf(e),1);return{startDate:n,endDate:i}},gEe=e=>{if(uV(e))return p7(e.endDate??new Date,e.startDate)},yEe=({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"}),hEe.map(n=>g.jsx(Ye,{active:e===n,onClick:()=>r(n),children:aV(n)},n))]}),bEe=({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(b0,{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(b0,{label:"Until",value:t,minDate:e??void 0,disabled:r,onChange:o=>i(o&&mf(o))})})]}),uA=({onDatesChange:e,dateRangeOrInterval:t,defaultText:r,disabled:n})=>{const i=$.useMemo(()=>aV(t)??r,[t,r]),[o,a]=$.useMemo(()=>_0(t)?[void 0,t]:[t,void 0],[t]),s=$.useCallback(c=>{_0(c)?e(sV(c),c):e(c)},[e]);return g.jsxs(ts,{disabled:n,text:i,children:[g.jsx(yEe,{allText:r,active:a,onChange:s}),g.jsx(Ye,{divider:!0,tag:"hr"}),g.jsx("div",{className:"px-3 py-1",children:g.jsx(bEe,{...o,onStartDateChange:c=>s({...o,startDate:c}),onEndDateChange:c=>s({...o,endDate:c})})})]})},_Ee={dateCreated:"Created at",shortCode:"Short URL",longUrl:"Long URL",title:"Title",visits:"Visits"},xEe=({onChange:e,selected:t={},className:r,domains:n})=>{const i=_i("filterDisabledUrls"),o=_i("filterShortUrlsByDomain"),{excludeBots:a=!1,excludeMaxVisitsReached:s=!1,excludePastValidUntil:c=!1,domain:u}=t,h=$.useCallback(v=>e({...t,...v}),[e,t]),p=$.useCallback(v=>h({[v]:!(t!=null&&t[v])}),[h,t]);return g.jsxs(ts,{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,x=u===b;return g.jsx(Ye,{active:x,onClick:()=>h({domain:x?void 0:b}),children:v.domain},v.domain)})]}),g.jsx(Ye,{divider:!0,tag:"hr"}),g.jsx(Ye,{disabled:t.excludeBots===void 0&&t.excludeMaxVisitsReached===void 0&&t.excludePastValidUntil===void 0&&t.domain===void 0,onClick:()=>e({excludeBots:void 0,excludeMaxVisitsReached:void 0,excludePastValidUntil:void 0,domain:void 0}),className:"fst-italic",children:"Reset to defaults"})]})},cV=({className:e,shortUrlsAmount:t,order:r,handleOrderBy:n,tagsList:i,domainsList:o})=>{const{ExportShortUrlsBtn:a,TagsSelector:s}=fr(cV),[{search:c,tags:u,startDate:h,endDate:p,excludeBots:v,excludeMaxVisitsReached:b,excludePastValidUntil:x,domain:_,tagsMode:w="any"},O]=Nb(),S=Nn("visits"),[E,T]=$.useState(),A=$.useCallback(({startDate:V,endDate:B},W)=>{O({startDate:fl(V)??void 0,endDate:fl(B)??void 0}),T(W)},[O]),j=$.useCallback(V=>O({search:V||void 0}),[O]),N=$.useCallback(V=>O({tags:V}),[O]),F=$.useCallback(()=>O({tagsMode:w==="any"?"all":"any"}),[w,O]);return g.jsxs("div",{className:ze("short-urls-filtering-bar-container",e),children:[g.jsx(om,{initialValue:c,onChange:j}),g.jsxs(nm,{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"?s$:rY})}),g.jsx(Oi,{target:"tagsModeBtn",placement:"left",children:w==="all"?"With all the tags.":"With any of the tags."})]})]}),g.jsxs(Zo,{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(uA,{defaultText:"All short URLs",dateRangeOrInterval:E??oV(h,p),onDatesChange:A})}),g.jsx(xEe,{className:"ms-0 ms-md-2 mt-3 mt-md-0",selected:{excludeBots:v??(S==null?void 0:S.excludeBots),excludeMaxVisitsReached:b,excludePastValidUntil:x,domain:_},onChange:O,domains:o.loading?void 0:o.domains})]})}),g.jsx("div",{className:"col-6 col-lg-4 col-xl-6 mt-3",children:g.jsx(a,{amount:t})}),g.jsx("div",{className:"col-6 d-lg-none mt-3",children:g.jsx(am,{prefixed:!1,items:_Ee,order:r,onChange:n})})]})]})},wEe=dr(cV,["ExportShortUrlsBtn","TagsSelector"]);function Yh({currentOrder:e,field:t,className:r="ms-1"}){return!e.dir||e.field!==t?null:g.jsx(Ge,{icon:e.dir==="ASC"?KK:aY,className:r})}const Bc=2,CE="...",fV=(e,t)=>{const r=MT(Math.max(Bc,e-Bc),Math.min(t-1,e+Bc)+1);return e-Bc>Bc&&r.unshift(CE),e+Bc<t-1&&r.push(CE),r.unshift(1),r.push(t),r},Gp=e=>e===CE,dV=e=>Gp(e)?e:Pr(e),hV=(e,t)=>Gp(e)?`${e}_${t}`:`${e}`,OEe=({paginator:e,currentQueryString:t=""})=>{const{currentPage:r=0,pagesCount:n=0}=e??{},i=xl(),o=s=>`${i}/list-short-urls/${s}${t}`;if(n<=1)return g.jsx("div",{className:"pb-3"});const a=()=>fV(r,n).map((s,c)=>g.jsx(vu,{disabled:Gp(s),active:r===s,children:g.jsx(gu,{tag:Gt,to:o(s),children:dV(s)})},hV(s,c)));return g.jsxs(ET,{className:"sticky-card-paginator py-3",listClassName:"flex-wrap justify-content-center mb-0",children:[g.jsx(vu,{disabled:r===1,children:g.jsx(gu,{previous:!0,tag:Gt,to:o(r-1)})}),a(),g.jsx(vu,{disabled:r>=n,children:g.jsx(gu,{next:!0,tag:Gt,to:o(r+1)})})]})},SEe={field:"dateCreated",dir:"DESC"},pV=ko(({listShortUrls:e,shortUrlsList:t})=>{var r,n,i;const{ShortUrlsTable:o,ShortUrlsFilteringBar:a}=fr(pV),{page:s}=Kf(),c=yn(),[{tags:u,search:h,startDate:p,endDate:v,orderBy:b,tagsMode:x,excludeBots:_,excludePastValidUntil:w,excludeMaxVisitsReached:O,domain:S},E]=Nb(),T=LT(),[A,j]=$.useState(b??((r=T.shortUrlsList)==null?void 0:r.defaultOrdering)??SEe),{pagination:N}=(t==null?void 0:t.shortUrls)??{},F=$.useMemo(()=>{var ae;return _??((ae=T.visits)==null?void 0:ae.excludeBots)},[_,(n=T.visits)==null?void 0:n.excludeBots]),V=_i("excludeBotsOnShortUrls"),B=$.useCallback((ae,se)=>{E({orderBy:{field:ae,dir:se}}),j({field:ae,dir:se})},[E]),W=ae=>()=>B(ae,B0(ae,A.field,A.dir)),q=ae=>g.jsx(Yh,{currentOrder:A,field:ae}),J=$.useCallback(ae=>E({tags:[...new Set([...u,ae])]}),[u,E]),Q=$.useCallback(({field:ae,dir:se})=>V&&F&&ae==="visits"?{field:"nonBotVisits",dir:se}:{field:ae,dir:se},[F,V]),ne=Xj();return $.useEffect(()=>{e({page:s,searchTerm:h,tags:u,startDate:p,endDate:v,orderBy:Q(A),tagsMode:x,excludePastValidUntil:w,excludeMaxVisitsReached:O,domain:S})},[e,Q,s,h,u,p,v,A,x,w,O,S]),g.jsxs(Zj,{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(Qj,{type:"short-urls",className:"mb-3"}),g.jsxs(wi,{body:!0,className:ze({"pb-0":!t.loading}),children:[g.jsx(o,{shortUrlsList:t,orderByColumn:W,renderOrderIcon:q,onTagClick:J}),!t.loading&&g.jsx(OEe,{paginator:N,currentQueryString:c.search})]})]})},()=>[Rn.visits]),PEe=dr(pV,["ShortUrlsTable","ShortUrlsFilteringBar"]),CEe=({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))},mV=({orderByColumn:e,renderOrderIcon:t,shortUrlsList:r,onTagClick:n,className:i})=>{const{ShortUrlsRow:o}=fr(mV),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(Ru,{className:ze("p-0",a),onClick:e==null?void 0:e("title"),children:["Title ",t==null?void 0:t("title")]}),"  /  ",g.jsxs(Ru,{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(CEe,{ShortUrlsRow:o,shortUrlsList:r,onTagClick:n})})]})},EEe=dr(mV,["ShortUrlsRow"]),TEe=(e,t)=>{e.factory("ShortUrlsList",PEe),e.decorator("ShortUrlsList",t(["mercureInfo","shortUrlsList"],["listShortUrls","createNewVisits","loadMercureInfo"])),e.factory("ShortUrlsTable",EEe),e.factory("ShortUrlsRow",QCe),e.factory("CreateShortUrlResult",NCe),e.factory("ShortUrlsRowMenu",JCe),e.decorator("ShortUrlsRowMenu",t(null,["shortUrlDeleted","deleteShortUrl"])),e.factory("ShortUrlForm",fEe),e.decorator("ShortUrlForm",t(["tagsList","domainsList"])),e.factory("CreateShortUrl",kCe),e.decorator("CreateShortUrl",t(["shortUrlCreation"],["createShortUrl","resetCreateShortUrl"])),e.factory("EditShortUrl",RCe),e.decorator("EditShortUrl",t(["shortUrlsDetails","shortUrlEdition"],["getShortUrlsDetails","editShortUrl"])),e.serviceFactory("DeleteShortUrlModal",()=>MCe),e.decorator("DeleteShortUrlModal",t(["shortUrlDeletion"],["resetDeleteShortUrl"])),e.factory("QrCodeModal",WCe),e.factory("ExportShortUrlsBtn",LCe),e.factory("ShortUrlsFilteringBar",wEe),e.decorator("ShortUrlsFilteringBar",t(["tagsList","domainsList"])),e.serviceFactory("shortUrlsListReducerCreator",dPe,"listShortUrls","editShortUrl","createShortUrl"),e.serviceFactory("shortUrlsListReducer",r=>r.reducer,"shortUrlsListReducerCreator"),e.serviceFactory("shortUrlCreationReducerCreator",tEe,"createShortUrl"),e.serviceFactory("shortUrlCreationReducer",r=>r.reducer,"shortUrlCreationReducerCreator"),e.serviceFactory("shortUrlEditionReducerCreator",iEe,"editShortUrl"),e.serviceFactory("shortUrlEditionReducer",r=>r.reducer,"shortUrlEditionReducerCreator"),e.serviceFactory("shortUrlDeletionReducerCreator",uPe,"deleteShortUrl"),e.serviceFactory("shortUrlDeletionReducer",r=>r.reducer,"shortUrlDeletionReducerCreator"),e.serviceFactory("shortUrlsDetailsReducerCreator",oEe,"apiClientFactory"),e.serviceFactory("shortUrlsDetailsReducer",r=>r.reducer,"shortUrlsDetailsReducerCreator"),e.serviceFactory("listShortUrls",fPe,"apiClientFactory"),e.serviceFactory("createShortUrl",eEe,"apiClientFactory"),e.serviceFactory("resetCreateShortUrl",r=>r.resetCreateShortUrl,"shortUrlCreationReducerCreator"),e.serviceFactory("deleteShortUrl",lPe,"apiClientFactory"),e.serviceFactory("resetDeleteShortUrl",r=>r.resetDeleteShortUrl,"shortUrlDeletionReducerCreator"),e.serviceFactory("shortUrlDeleted",()=>yz),e.serviceFactory("getShortUrlsDetails",r=>r.getShortUrlsDetails,"shortUrlsDetailsReducerCreator"),e.serviceFactory("editShortUrl",nEe,"apiClientFactory")},jEe=({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(Zn,{toggle:t,isOpen:r,centered:!0,onClosed:()=>c&&o(e),children:[g.jsx(ua,{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(jn,{type:"error",small:!0,className:"mt-2",children:g.jsx(sa,{errorData:u,fallbackMessage:"Something went wrong while deleting the tag :("})})]}),g.jsxs(es,{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"})]})]})},vV=({tag:e,editTag:t,toggle:r,tagEdited:n,isOpen:i,tagEdit:o})=>{const{ColorGenerator:a}=fr(vV),[s,c]=$.useState(e),[u,h]=$.useState(a.getColorForKey(e)),{editing:p,error:v,edited:b,errorData:x}=o,_=mz(async()=>{await t({oldName:e,newName:s,color:u}),r()}),w=$.useCallback(()=>b&&n({oldName:e,newName:s,color:u}),[u,b,s,e,n]);return g.jsx(Zn,{isOpen:i,toggle:r,centered:!0,onClosed:w,children:g.jsxs("form",{name:"editTag",onSubmit:_,children:[g.jsx(ua,{toggle:r,children:"Edit tag"}),g.jsxs(Eo,{children:[g.jsxs(nm,{children:[g.jsx(Kz,{color:u,onChange:h,className:"input-group-text",name:"tag-color"}),g.jsx(Xr,{value:s,placeholder:"Tag",required:!0,onChange:({target:O})=>c(O.value)})]}),v&&g.jsx(jn,{type:"error",small:!0,className:"mt-2",children:g.jsx(sa,{errorData:x,fallbackMessage:"Something went wrong while editing the tag :("})})]}),g.jsxs(es,{children:[g.jsx(_t,{type:"button",color:"link",onClick:r,children:"Cancel"}),g.jsx(_t,{color:"primary",disabled:p,children:p?"Saving...":"Save"})]})]})})},AEe=dr(vV,["ColorGenerator"]),kEe=/\s+/g,gV=e=>e.trim().toLowerCase().replace(kEe,"-"),yV=({color:e})=>g.jsx("div",{style:{backgroundColor:e},className:"color-bullet"}),bV=({tag:e,colorGenerator:t})=>g.jsx(yV,{color:t.getColorForKey(e)});let Q5=1;const _V="Tag not found",xV="Add tag",REe=e=>e!==_V,NEe=e=>e===xV,J5=e=>(Q5+=1,{label:e,value:`${e}${Q5}`}),MEe=e=>({tag:t,onClick:r})=>g.jsx(Lb,{colorGenerator:e,text:t.label,className:"react-tags__tag",onClose:r}),LEe=(e,t)=>({option:r,classNames:n,...i})=>{var o;const a=REe(r.label),s=NEe(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(bV,{tag:`${r.label}`,colorGenerator:e}),s?g.jsxs("i",{children:['Add "',gV(((o=t.current)==null?void 0:o.input.value)??""),'"']}):r.label]}):g.jsx("i",{children:r.label})})},wV=({selectedTags:e,onChange:t,placeholder:r,tags:n,immutable:i=!1})=>{const{ColorGenerator:o}=fr(wV),a=Nn("shortUrlCreation"),s=(a==null?void 0:a.tagFilteringMode)??"startsWith",c=Zi();return g.jsx(aue,{ref:c,selected:e.map(J5),suggestions:n.filter(u=>!e.includes(u)).map(J5),renderTag:MEe(o),renderOption:LEe(o,c),activateFirstOption:!0,allowNew:!i,newOptionText:xV,noOptionsText:_V,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(gV)])])})},IEe=dr(wV,["ColorGenerator"]),EE="shlink/tagDelete",DEe={deleting:!1,deleted:!1,error:!1},OV=An(`${EE}/tagDeleted`),$Ee=e=>{const t=Wr(`${EE}/deleteTag`,async n=>{await e().deleteTags([n])}),{reducer:r}=jr({name:EE,initialState:DEe,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:Si(o)})),n.addCase(t.fulfilled,()=>({deleting:!1,deleted:!0,error:!1}))}});return{reducer:r,deleteTag:t}},cA="shlink/tagEdit",FEe={editing:!1,edited:!1,error:!1},SV=An(`${cA}/tagEdited`),BEe=(e,t)=>Wr(`${cA}/editTag`,async({oldName:r,newName:n,color:i})=>(await e().editTag(r,n),t.setColorForKey(n,i),{oldName:r,newName:n,color:i})),UEe=e=>jr({name:cA,initialState:FEe,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:Si(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}})}}),fA="shlink/tagsList",GO={tags:[],filteredTags:[],stats:{},loading:!1,error:!1},e8=(e,t)=>r=>r===e?t:r,t8=(e,t)=>e.filter(r=>r!==t),zEe=(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}),VEe=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),{})),WEe=e=>Wr(`${fA}/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}}),PV=An(`${fA}/filterTags`),qEe=(e,t)=>jr({name:fA,initialState:GO,reducers:{},extraReducers:r=>{r.addCase(PV,(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})=>({...GO,error:!0,errorData:Si(i)})),r.addCase(e.fulfilled,(n,{payload:i})=>({...GO,stats:i.stats,tags:i.tags,filteredTags:i.tags})),r.addCase(OV,({tags:n,filteredTags:i,...o},{payload:a})=>({...o,tags:t8(n,a),filteredTags:t8(i,a)})),r.addCase(SV,({tags:n,filteredTags:i,stats:o,...a},{payload:s})=>({...a,stats:{...o,[s.newName]:o[s.oldName]},tags:n.map(e8(s.oldName,s.newName)).sort(),filteredTags:i.map(e8(s.oldName,s.newName)).sort()})),r.addCase(fd,(n,{payload:i})=>({...n,stats:zEe(VEe(i.createdVisits),n.stats)})),r.addCase(t.fulfilled,({tags:n,...i},{payload:o})=>({...i,tags:n.concat(o.tags.filter(a=>!n.includes(a)))}))}}),HEe={tag:"Tag",shortUrls:"Short URLs",visits:"Visits"},CV=ko(({filterTags:e,tagsList:t})=>{var r,n;const{TagsTable:i}=fr(CV),o=LT(),[a,s]=$.useState(((r=o.tags)==null?void 0:r.defaultOrdering)??{}),c=$.useMemo(()=>{const h=t.filteredTags.map(p=>{var v,b,x;const _=t.stats[p],w=((v=o.visits)!=null&&v.excludeBots?(b=_==null?void 0:_.visitsSummary)==null?void 0:b.nonBots:(x=_==null?void 0:_.visitsSummary)==null?void 0:x.total)??(_==null?void 0:_.visitsCount)??0;return{tag:p,visits:w,shortUrls:(_==null?void 0:_.shortUrlsCount)??0}});return BF(h,a)},[a,(n=o.visits)==null?void 0:n.excludeBots,t.filteredTags,t.stats]),u=Xj();return t.loading?g.jsx(Ha,{loading:!0}):t.error?g.jsx(jn,{type:"error",children:g.jsx(sa,{errorData:t.errorData,fallbackMessage:"Error loading tags :("})}):g.jsxs(Zj,{value:u,children:[g.jsx(om,{className:"mb-3",onChange:e}),g.jsx(Zo,{className:"mb-3",children:g.jsx("div",{className:"col-lg-6 offset-lg-6",children:g.jsx(am,{items:HEe,order:a,onChange:(h,p)=>s({field:h,dir:p})})})}),g.jsx(Qj,{type:"tags",className:"mb-3"}),g.jsx(i,{sortedTags:c,currentOrder:a,orderByColumn:h=>()=>{const p=B0(h,a.field,a.dir);s({field:p?h:void 0,dir:p})}})]})},()=>[Rn.visits]),GEe=dr(CV,["TagsTable"]),dA=({pagesCount:e,currentPage:t,setCurrentPage:r,centered:n=!0})=>{if(e<2)return null;const i=o=>()=>!Gp(o)&&r(o);return g.jsxs(ET,{listClassName:ze("flex-wrap mb-0 simple-paginator",{"justify-content-center":n}),children:[g.jsx(vu,{disabled:t<=1,children:g.jsx(gu,{previous:!0,tag:"span",onClick:i(t-1)})}),fV(t,e).map((o,a)=>g.jsx(vu,{disabled:Gp(o),active:t===o,children:g.jsx(gu,{role:"link",tag:"span",onClick:i(o),children:dV(o)})},hV(o,a))),g.jsx(vu,{disabled:t>=e,children:g.jsx(gu,{next:!0,tag:"span",onClick:i(t+1)})})]})},KEe=20,EV=({sortedTags:e,orderByColumn:t,currentOrder:r})=>{const{TagsTableRow:n}=fr(EV),i=$.useRef(!0),{page:o=1}=Xf(),[a,s]=qSe("page",Number(o)),c=$.useCallback(v=>{s(v),scrollTo(0,0)},[s]),u=ef(e,KEe),h=u.length>1,p=u[a-1]??[];return $.useEffect(()=>{i.current||c(1),i.current=!1},[c,e]),g.jsxs(qt,{bodyClassName:h?"pb-1":"",children:[g.jsxs("table",{className:"table table-hover responsive-table mb-0",children:[g.jsxs("thead",{className:"responsive-table__header",children:[g.jsxs("tr",{children:[g.jsxs("th",{className:"tags-table__header-cell",onClick:t("tag"),children:["Tag ",g.jsx(Yh,{currentOrder:r,field:"tag"})]}),g.jsxs("th",{className:"tags-table__header-cell text-lg-end",onClick:t("shortUrls"),children:["Short URLs ",g.jsx(Yh,{currentOrder:r,field:"shortUrls"})]}),g.jsxs("th",{className:"tags-table__header-cell text-lg-end",onClick:t("visits"),children:["Visits ",g.jsx(Yh,{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(dA,{pagesCount:u.length,currentPage:a,setCurrentPage:c})})]},a)},YEe=dr(EV,["TagsTableRow"]),TV=({tag:e})=>{const{DeleteTagConfirmModal:t,EditTagModal:r,ColorGenerator:n}=fr(TV),[i,o]=cr(),[a,s]=cr(),c=xl(),u=Ab();return g.jsxs("tr",{className:"responsive-table__row",children:[g.jsxs("th",{className:"responsive-table__cell","data-th":"Tag",children:[g.jsx(bV,{tag:e.tag,colorGenerator:n})," ",e.tag]}),g.jsx("td",{className:"responsive-table__cell text-lg-end","data-th":"Short URLs",children:g.jsx(Gt,{to:`${c}/list-short-urls/1?tags=${encodeURIComponent(e.tag)}`,children:Pr(e.shortUrls)})}),g.jsx("td",{className:"responsive-table__cell text-lg-end","data-th":"Visits",children:g.jsx(Gt,{to:`${c}/tag/${e.tag}/visits`,children:Pr(e.visits)})}),g.jsx("td",{className:"responsive-table__cell text-lg-end",children:g.jsxs(F0,{children:[g.jsxs(Ye,{onClick:s,children:[g.jsx(Ge,{icon:o$,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:A0,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:QK,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})]})},ZEe=dr(TV,["DeleteTagConfirmModal","EditTagModal","ColorGenerator"]),XEe=(e,t)=>{e.factory("TagsSelector",IEe),e.serviceFactory("DeleteTagConfirmModal",()=>jEe),e.decorator("DeleteTagConfirmModal",t(["tagDelete"],["deleteTag","tagDeleted"])),e.factory("EditTagModal",AEe),e.decorator("EditTagModal",t(["tagEdit"],["editTag","tagEdited"])),e.factory("TagsTableRow",ZEe),e.factory("TagsTable",YEe),e.factory("TagsList",GEe),e.decorator("TagsList",t(["tagsList","mercureInfo"],["filterTags","createNewVisits","loadMercureInfo"])),e.serviceFactory("tagEditReducerCreator",UEe,"editTag"),e.serviceFactory("tagEditReducer",r=>r.reducer,"tagEditReducerCreator"),e.serviceFactory("tagDeleteReducerCreator",$Ee,"apiClientFactory"),e.serviceFactory("tagDeleteReducer",r=>r.reducer,"tagDeleteReducerCreator"),e.serviceFactory("tagsListReducerCreator",qEe,"listTags","createShortUrl"),e.serviceFactory("tagsListReducer",r=>r.reducer,"tagsListReducerCreator"),e.serviceFactory("listTags",WEe,"apiClientFactory"),e.serviceFactory("filterTags",()=>PV),e.serviceFactory("deleteTag",r=>r.deleteTag,"tagDeleteReducerCreator"),e.serviceFactory("tagDeleted",()=>OV),e.serviceFactory("editTag",BEe,"apiClientFactory","ColorGenerator"),e.serviceFactory("tagEdited",()=>SV)},QEe=new C7,JEe=e=>QEe.parse(e),r8=e=>e.toLowerCase().trim();class eTe{constructor(t){rl(this,"colors"),rl(this,"lights");var r;this.storage=t,this.colors=((r=this.storage)==null?void 0:r.getTagColors())??{},this.lights={}}getColorForKey(t){const r=r8(t);return this.colors[r]||this.setColorForKey(r,FCe())}setColorForKey(t,r){var n;const i=r8(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]=Gz(r)),this.lights[r]}}const jV=({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)},tTe=(e,t,r)=>{const n=new Blob([t],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(n);jV(e,i,r)};class rTe{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);jV(this.window,i,r)}}class nTe{constructor(t,r){rl(this,"exportVisits",(n,i)=>{i.length&&this.exportCsv(n,i)}),rl(this,"exportShortUrls",n=>{n.length&&this.exportCsv("short_urls.csv",n)}),rl(this,"exportCsv",(n,i)=>{const o=this.jsonToCsv(i);tTe(this.window,o,n)}),this.window=t,this.jsonToCsv=r}}function iTe(e){e.constant("window",window),e.constant("fetch",window.fetch.bind(window)),e.service("ImageDownloader",rTe,"fetch","window"),e.service("ColorGenerator",eTe,"TagColorsStorage"),e.constant("jsonToCsv",JEe),e.service("ReportExporter",nTe,"window","jsonToCsv"),e.serviceFactory("useTimeoutToggle",()=>$F)}const xm=({visits:e,shortUrl:t,children:r,title:n})=>g.jsx("header",{children:g.jsxs(wi,{body:!0,children:[g.jsxs("h2",{className:"d-flex justify-content-between align-items-center mb-0",children:[g.jsx(Mb,{}),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(Xz,{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})]})}),Db=({children:e,className:t})=>g.jsx("div",{className:ze("d-flex justify-content-between align-items-center",t),children:e}),AV=({title:e,footer:t,children:r})=>g.jsxs(wi,{role:"document",children:[g.jsx(rm,{className:"chart-card__header",children:e}),g.jsx(tm,{children:r}),t&&g.jsx(wF,{className:"chart-card__footer--sticky",children:t})]}),kV={color:"white",background:"rgb(0 0 0 / .9)",border:"none",borderRadius:"5px"},oTe={marginBottom:"5px",fontWeight:"bold"},RV={contentStyle:kV,labelStyle:oTe,itemStyle:{padding:0}},n8=["#97BBCD","#F7464A","#46BFBD","#FDB45C","#949FB1","#57A773","#414066","#08B2E3","#B6C454","#DCDCDC","#463730"],NV=e=>n8[e%n8.length],x0=()=>sm()?"#46e587":"#1DAA58",aTe=()=>sm()?"rgba(70, 229, 135, 0.4)":"rgba(29, 170, 88, 0.4)",sTe=({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:[" (",Pr(i),")"]})]})]},r))}),i8=e=>$.useMemo(()=>Object.entries(e).map(([t,r],n)=>({name:t,value:r,color:NV(n)})),[e]),lTe=({stats:e,prevStats:t,showNumbersInLegend:r,dimensions:n})=>{const i=i8(e),o=i8(t),a=o.length>0,s=sm()?Wie:Vie;return g.jsxs("div",{className:"row align-items-center",children:[g.jsx("div",{className:"col-sm-12 col-md-7",children:g.jsx("div",{style:n??{width:"100%",height:300},children:g.jsx(n?$.Fragment:lj,{children:g.jsxs(iSe,{...n,children:[g.jsx(zi,{formatter:Pr,contentStyle:kV,itemStyle:{color:"white"}}),g.jsx(aa,{data:i,dataKey:"value",nameKey:"name",startAngle:360,endAngle:0,outerRadius:"100%",innerRadius:a?"65%":"50%",animationBegin:0,children:i.map((c,u)=>g.jsx(Js,{fill:c.color,stroke:s},`${c.name}-${u}`))}),a&&g.jsx(aa,{data:o,dataKey:"value",nameKey:"name",startAngle:360,endAngle:0,outerRadius:"55%",innerRadius:"20%",animationBegin:0,stroke:s,fill:x0()})]})})})}),g.jsx("div",{className:"col-sm-12 col-md-5",children:g.jsx(sTe,{chartData:i,showNumbers:r})})]})},o8=({title:e,...t})=>{const[r,n]=cr(!1);return g.jsx(AV,{title:g.jsxs(Db,{children:[e,g.jsx("div",{children:g.jsx(Ga,{checked:r,onChange:n,children:"Show numbers"})})]}),children:g.jsx(lTe,{...t,showNumbersInLegend:r})})},uTe=$.forwardRef(({visitsGroups:e},t)=>{const r=$.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(yV,{color:MV(i)}),g.jsxs("strong",{children:[n," (",Pr(i.length),")"]})]},`${n}${o}`))})}),cTe={monthly:"Month",weekly:"Week",daily:"Day",hourly:"Hour"},fTe={hourly:e=>({hours:e}),daily:e=>({days:e}),weekly:e=>({weeks:e}),monthly:e=>({months:e})},dTe={hourly:Lae,daily:H0,weekly:Mae,monthly:uy},hA={hourly:e=>cy(e,"yyyy-MM-dd HH:00"),daily:e=>Xs(e),weekly(e){const t=Xs(cp(e)),r=Xs(Vae(e));return`${t} - ${r}`},monthly:e=>cy(e,"yyyy-MM")},hTe=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=>sl(a[a.length-1].date)),o=h7(i);return((t=[[()=>H0(n,o)<=2,"hourly"],[()=>uy(n,o)<=1,"daily"],[()=>uy(n,o)<=6,"weekly"]].find(([a])=>a()))==null?void 0:t[1])??"monthly"},pTe=(e,t)=>Object.keys(t).reduce((r,n)=>(r[n]=n7(t[n],i=>hA[e](sl(i.date))),r),{}),mTe=(e,t)=>t.reduce((r,n)=>{const i=hA[e](sl(n.date));return r[i]=r[i]??[],r[i].push(n),r},{}),vTe=(e,t)=>{const r=Object.values(t).filter(h=>h.length>0).map(h=>[...h].reverse());if(r.length===0)return[];const n=dTe[e],i=hA[e],o=fTe[e],a=r.flat(),s=sl(a[0].date),c=sl(a[a.length-1].date),u=n(c,s)||1;return[{formattedDate:i(s),date:s},...Jj(u,h=>{const p=Tae(s,o(h));return{formattedDate:i(p),date:p}})]},MV=e=>{if(e.color)return e.color;const t={main:ap,highlighted:$P,previous:x0()};return e.type?t[e.type]:ap},a8=(e,t)=>$.useMemo(()=>Object.values(e).find(r=>r.type===t)??[],[e,t]),gTe=(e,t,r)=>{const n=a8(e,"main"),i=a8(e,"highlighted"),o=$.useMemo(()=>r?mTe(t,n):{},[r,t,n]),a=$.useCallback((s,{payload:c})=>{const u=o[c.formattedDate]??[];r==null||r(u===i?[]:u)},[o,i,r]);return r&&{cursor:"pointer",onClick:a}},s8=e=>{var t,r;return(r=(t=e.activePayload)==null?void 0:t[0])==null?void 0:r.payload},LV=({visitsGroups:e,setSelectedVisits:t,dimensions:r,matchMedia:n,onDateRangeChange:i})=>{const[o,a]=$.useState(hTe(e)),s=tA(767,n??window.matchMedia),c=$.useMemo(()=>{const q=pTe(o,e),J=Object.keys(q);return vTe(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=gTe(e,o,t),[h,p,,v]=cr(),b=Zi(),x=$.useId(),_=Zi(),[w,O]=$.useState(s?300:400);$.useLayoutEffect(()=>{if(!h)return O(s?300:400),()=>{};const q=new ResizeObserver(()=>{const{height:J}=b.current.getBoundingClientRect(),{height:Q}=_.current.getBoundingClientRect();O(J-Q-48)});return q.observe(b.current),q.observe(_.current),()=>q.disconnect()},[b,h,s,_]),GSe("Escape",v,h);const S=r?$.Fragment:lj,E=$.useMemo(()=>r?{}:{width:"100%",height:w},[r,w]),[T,A]=$.useState(),[j,N]=$.useState(),F=$.useCallback(()=>{A(void 0),N(void 0)},[]),V=$.useCallback((q,J)=>{const Q=s8(q);J.button===0&&Q&&A(Q)},[]),B=$.useCallback(q=>{const J=s8(q);T&&J&&N(J)},[T]),W=$.useCallback(()=>{if(!T||!j)return;const q=[T.date,j.date],J=kae(q),Q=h7(q);F(),i({startDate:J,endDate:Q})},[i,F,j,T]);return g.jsxs(wi,{className:ze({"fixed-top fixed-bottom":h}),"data-testid":"line-chart-card",children:[g.jsxs(rm,{role:"heading","aria-level":4,className:"d-flex justify-content-between align-items-center",children:["Visits over time",g.jsxs("div",{className:"d-flex align-content-center gap-1",children:[g.jsx(_t,{"aria-label":h?"Collapse":"Expand","aria-expanded":h,"aria-controls":x,size:"sm",color:"link",onClick:p,children:g.jsx(Ge,{icon:h?RK:EY})}),g.jsxs(im,{className:"d-flex align-items-center",children:[g.jsx(Ja,{caret:!0,color:"link",className:"btn-sm p-0",children:"Group by"}),g.jsx(ml,{end:!0,children:Object.entries(cTe).map(([q,J])=>g.jsx(Ye,{active:o===q,onClick:()=>a(q),children:J},q))})]})]})]}),g.jsxs(tm,{innerRef:b,id:x,children:[g.jsx(S,{...E,children:g.jsxs(nSe,{className:"user-select-none",data:c,...r,onMouseDown:V,onMouseMove:B,onMouseUp:W,children:[g.jsx(ud,{dataKey:"formattedDate"}),g.jsx(cd,{tickFormatter:Pr,yAxisId:"1"}),g.jsx(zi,{formatter:Pr,...RV}),g.jsx(Wj,{strokeOpacity:sm()?.1:.9}),Object.entries(e).map(([q,J])=>J.length>0&&g.jsx(ld,{yAxisId:"1",dataKey:q,type:"monotone",stroke:MV(J),strokeWidth:2,activeDot:J.type==="previous"?void 0:u,strokeDasharray:J.type==="previous"?"8 3":void 0},q)),T&&j&&g.jsx(gm,{yAxisId:"1",x1:T.formattedDate,x2:j.formattedDate})]})}),g.jsx(uTe,{visitsGroups:e,ref:_})]})]})},yTe=({toggleClassName:e,ranges:t,value:r,setValue:n})=>g.jsxs(im,{children:[g.jsx(Ja,{caret:!0,color:"link",className:e,children:"Paginate"}),g.jsxs(ml,{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"})})]})]}),l8=e=>e.startsWith("hidden_"),bTe=({stats:e,prevStats:t,highlightedStats:r,highlightedLabel:n,max:i,onClick:o,dimensions:a})=>{const s=$.useMemo(()=>Object.entries(e).map(([p,v])=>{const b=(r==null?void 0:r[p])??0,x=(t==null?void 0:t[p])??0,_=l8(p);return{name:p,amount:Math.max(v,x),nonHighlightedAmount:_?null:v-b,highlightedAmount:_?null:b,prevAmount:_?null:x}}),[e,t,r]),c=$.useMemo(()=>{const p=s.reduce((v,{name:b})=>v>b.length?v:b.length,0);return Math.min(150,p*7)},[s]),u=a?$.Fragment:lj,h=$.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(oSe,{layout:"vertical",data:s,barCategoryGap:3,...a,children:[g.jsx(ud,{type:"number",dataKey:"amount",tickFormatter:Pr,domain:i?[0,i]:void 0}),g.jsx(cd,{type:"category",dataKey:"name",width:c,interval:0,style:{fontSize:".8rem"},tickFormatter:p=>l8(p)?"":p}),g.jsx(Wj,{strokeOpacity:sm()?.05:.9}),g.jsx(zi,{filterNull:!0,...RV,formatter:(p,v)=>[Pr(p),v==="highlightedAmount"?n:v==="prevAmount"?"Previous period":r?"Non-selected":"Visits"]}),g.jsx(za,{dataKey:"nonHighlightedAmount",stackId:"main",cursor:"pointer",fill:ap,onClick:({name:p})=>o==null?void 0:o(p),children:s.map(p=>g.jsx(Js,{fill:Uie,stroke:ap,strokeWidth:2},p.name))}),r&&g.jsx(za,{dataKey:"highlightedAmount",stackId:"main",cursor:"pointer",fill:$P,onClick:({name:p})=>o==null?void 0:o(p),children:s.map(p=>g.jsx(Js,{fill:zie,stroke:$P,strokeWidth:2},p.name))}),t&&g.jsx(za,{dataKey:"prevAmount",fill:x0(),children:s.map(p=>g.jsx(Js,{fill:aTe(),stroke:x0(),strokeWidth:2},p.name))})]})})},_Te=e=>typeof e=="string"?e.toLowerCase():e,xTe=([e])=>e,wTe=([,e])=>e,fg=({stats:e,prevStats:t,highlightedStats:r,title:n,sortingItems:i,extraHeaderContent:o,withPagination:a=!0,...s})=>{const[c,u]=$.useState({}),[h,p]=$.useState(1),[v,b]=$.useState(50),x=$.useCallback((F,V)=>{const B=Object.entries(F),W=c.field?Zoe(B,([q,J])=>_Te(c.field===Object.keys(V)[0]?q:J)):B;return!c.dir||c.dir==="ASC"?W:[...W].reverse()},[c.dir,c.field]),_=$.useCallback(F=>{const V=F[h-1];if(h<F.length)return V;const B=F[0].length;return[...V,...Jj(B-V.length,W=>[`hidden_${W}`,0])]},[h]),w=$.useCallback(F=>g.jsx(dA,{currentPage:h,pagesCount:F,setCurrentPage:p}),[h]),O=$.useCallback((F,V,B,W)=>{const q=x(F,V),J=q.map(xTe),Q=B&&Object.entries({...fN(J,J.map(()=>0)),...B}),ne=W&&Object.entries({...fN(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(_(ae)),currentPageHighlightedStats:se&&Object.fromEntries(_(se)),currentPagePrevStats:oe&&Object.fromEntries(_(oe)),pagination:w(ae.length),max:mPe(Math.max(...q.map(wTe)))}},[_,x,v,w]),{currentPageStats:S,currentPagePrevStats:E,currentPageHighlightedStats:T,pagination:A,max:j}=$.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=$.useMemo(()=>Object.keys(S),[S]);return g.jsx(AV,{title:g.jsxs(Db,{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(yTe,{toggleClassName:"btn-sm p-0",ranges:[50,100,200,500],value:v,setValue:F=>{b(F),p(1)}}),g.jsx(am,{isButton:!1,right:!0,items:i,order:c,onChange:(F,V)=>{u({field:F,dir:V}),p(1)}})]})]}),footer:A,children:g.jsx(bTe,{stats:S,prevStats:E,highlightedStats:T,max:j,...s})})},pA=e=>e.type!==void 0,OTe=e=>e.type!==void 0,STe=e=>{const t=i7(e,r=>pA(r.visit)?"orphanVisits":"nonOrphanVisits");return{orphanVisits:[],nonOrphanVisits:[],...t}},IV=(e,{shortCode:t,domain:r},{endDate:n,startDate:i}={})=>e.filter(({shortUrl:o,visit:a})=>o&&Gh(o,t,r)&&_m(a.date,i,n)),DV=(e,t,{endDate:r,startDate:n}={})=>e.filter(({shortUrl:i,visit:o})=>i&&aPe(i,t)&&_m(o.date,n,r)),$V=(e,t,{endDate:r,startDate:n}={})=>e.filter(({shortUrl:i,visit:o})=>(i==null?void 0:i.tags.includes(t))&&_m(o.date,n,r)),dg=(e,t)=>n7(e,r=>r[t]),PTe=e=>{const t=((e==null?void 0:e.startDate)&&fl(e==null?void 0:e.startDate))??void 0,r=((e==null?void 0:e.endDate)&&fl(e==null?void 0:e.endDate))??void 0;return{startDate:t,endDate:r}},TE=({filter:e,dateRange:t})=>{const{startDate:r,endDate:n}=PTe(t),i=(e==null?void 0:e.excludeBots)||void 0;return{startDate:r,endDate:n,excludeBots:i}},CTe=e=>uV(e.dateRange),ETe=({dateRange:e,...t})=>({...t,dateRange:vEe(e)}),u8=(e,t)=>{if(!(!t||!(e in t)))return t[e]&&fl(t[e])||""},FV=()=>{const e=la(),t=Xf(),{startDate:r,endDate:n,orphanVisitsType:i,excludeBots:o,loadPrevInterval:a,...s}=t,c=$.useMemo(()=>({dateRange:r!=null||n!=null?oV(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=$.useCallback(h=>{const{dateRange:p,visitsFilter:v={},loadPrevInterval:b}=q0(c,h),{excludeBots:x,orphanVisitsType:_}=v,w={...s,startDate:u8("startDate",p),endDate:u8("endDate",p),excludeBots:x===void 0?void 0:wE(x),orphanVisitsType:_,loadPrevInterval:b===void 0?void 0:wE(b)},O=$0(w),S=O?`?${O}`:"";e(S,{replace:!0,relative:"route"})},[c,e,s]);return[c,u]},TTe=()=>g.jsx(SSe,{attribution:'&copy <a href="https://osm.org/copyright">OpenStreetMap</a> contributors',url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}),jTe=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}},BV=({toggle:e,isOpen:t,title:r,locations:n=[]})=>g.jsx(Zn,{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(Db,{className:"map-modal__modal-title fs-4",children:[r,g.jsx("button",{type:"button",className:"btn-close","aria-label":"Close",onClick:e})]}),g.jsxs(xSe,{...jTe(n),children:[g.jsx(TTe,{}),n.map(({cityName:i,latLong:o,count:a},s)=>g.jsx(wSe,{position:o,children:g.jsxs(OSe,{children:[g.jsx("b",{children:a})," visit",a>1?"s":""," from ",g.jsx("b",{children:i})]})},s))]})]})}),ATe=({modalTitle:e,activeCities:t,locations:r=[]})=>{const[n,,i,o]=cr(),[a,s]=cr(),[c,u]=$.useState([]),h=$.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:tS})}),t&&g.jsxs(pl,{isOpen:a,toggle:s,children:[g.jsx(Ja,{color:"link",className:"p-0",title:"Show in map",children:g.jsx(Ge,{icon:tS})}),g.jsxs(ml,{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(BV,{toggle:o,isOpen:n,title:e,locations:c})]})},UV=({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=$.useCallback(()=>e({...t,excludeBots:!s}),[s,e,t]),p=$.useCallback(()=>e({...t,loadPrevInterval:!c}),[c,e,t]);return g.jsxs(ts,{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"})})]})},zV=({info:e})=>{const{loading:t,errorData:r,progress:n}=e;return g.jsxs(g.Fragment,{children:[t&&n===null&&g.jsx(Ha,{loading:!0}),t&&n!==null&&g.jsxs(Ha,{loading:!0,children:["This is going to take a while... :S",g.jsx(EF,{value:n,striped:n>=100,className:"mt-3"})]}),r&&g.jsx(jn,{type:"error",children:g.jsx(sa,{errorData:r,fallbackMessage:"An error occurred while loading visits :("})})]})},Tg=({children:e,showFallback:t})=>g.jsxs(g.Fragment,{children:[t&&g.jsx(Ha,{className:"mt-3",children:"There are no visits matching current filter"}),!t&&g.jsx(g.Fragment,{children:e})]}),kTe=({visitsDeletion:e,deleteVisits:t})=>{const{deleting:r}=e,[n,,i]=cr();return g.jsx(qt,{title:g.jsx("span",{className:"text-danger fw-bold",children:"Danger zone"}),children:g.jsxs(Db,{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..."})]})]})})},hg="Others",RTe=["Android Browser","Chrome","Chromium","Firefox","Internet Explorer","Microsoft Edge","Opera","Safari","Samsung Internet for Android","Vivaldi","WeChat"],NTe=e=>{if(!su(e))return{browser:hg,os:hg};const{browser:{name:t},os:{name:r}}=ASe.parse(e);return{os:r??hg,browser:t&&RTe.includes(t)?t:hg}},MTe=e=>{var t;return su(e)?((t=e.split("/")[e.includes("://")?2:0])==null?void 0:t.split(":")[0])??"":"Direct"},VV=(e,t)=>e[t]!==void 0,c8=e=>typeof e=="number"?e:e?parseFloat(e):0,LTe=(e,{os:t})=>{e[t]=(e[t]||0)+1},ITe=(e,{browser:t})=>{e[t]=(e[t]||0)+1},DTe=(e,{referer:t})=>{e[t]=(e[t]||0)+1},WV=e=>(t,r)=>{const n=VV(r,e)?r[e]:"Unknown";t[n]=(t[n]||0)+1},$Te=WV("country"),FTe=WV("city"),BTe=(e,t)=>{if(!VV(t,"city")||t.city==="Unknown")return;const{city:r,latitude:n,longitude:i}=t,o=e[r]||{cityName:r,count:0,latLong:[c8(n),c8(i)]};o.count+=1,e[r]=o},UTe=(e,t)=>{if(!OTe(t))return;const{visitedUrl:r}=t;e[r]=(e[r]||0)+1},jE=e=>e.reduce((t,r)=>(LTe(t.os,r),ITe(t.browsers,r),DTe(t.referrers,r),$Te(t.countries,r),FTe(t.cities,r),BTe(t.citiesForMap,r),UTe(t.visitedUrls,r),t),{os:{},browsers:{},referrers:{},countries:{},cities:{},citiesForMap:{},visitedUrls:{}}),w0=e=>e.map(t=>{const{userAgent:r,date:n,referer:i,visitLocation:o,potentialBot:a}=t;return{date:n,potentialBot:a,userAgent:r,...NTe(r),referer:MTe(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:pA(t)?t.type:void 0}}),zTe=Object.freeze(Object.defineProperty({__proto__:null,normalizeVisits:w0,processStatsFromVisits:jE},Symbol.toStringTag,{value:"Module"})),Ah=20,VTe=({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())},WTe=(e,t,r)=>t.filter(n=>VTe(n,e,r)),qTe=(e,t)=>BF(t,e),HTe=({visits:e,searchTerm:t,order:r,searchInRawUserAgent:n})=>{const i=t?WTe(t,e,n):[...e],o=qTe(r,i),a=o.length;return{visitsGroups:ef(o,Ah),total:a}},Ho="visits-table__header-cell visits-table__sticky",GTe=({visits:e,selectedVisits:t=[],setSelectedVisits:r,matchMedia:n=window.matchMedia})=>{var i;const o=tA(767,n),[a,s]=$.useState(),c=$.useCallback(F=>{s(F),w(1),r([])},[r]),[u,h]=$.useState({}),[p,v]=cr(),b=$.useCallback(()=>{v(),h({})},[v]),x=$.useMemo(()=>HTe({visits:e,searchTerm:a,order:u,searchInRawUserAgent:p}),[e,a,u,p]),[_,w]=$.useState(1),O=_*Ah,S=O-Ah,E=$.useMemo(()=>{var F,V;return!!((V=(F=x.visitsGroups[_-1])==null?void 0:F[0])!=null&&V.visitedUrl)},[_,x.visitsGroups]),T=6+Number(E)+(p?1:2),A=x.total>0,j=F=>h({field:F,dir:B0(F,u.field,u.dir)}),N=F=>g.jsx(Yh,{currentOrder:u,field:F,className:"visits-table__header-icon"});return g.jsx(qt,{className:"mt-3",bodyClassName:"p-0 pb-1",title:g.jsxs("div",{className:"d-flex justify-content-between align-items-center",children:["Visits list",g.jsx(Ga,{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:`${Ho} text-center`,onClick:()=>r(t.length<x.total?x.visitsGroups.flat():[]),children:[g.jsx("span",{className:"sr-only",children:"Is selected"}),g.jsx(Ge,{icon:Xh,className:ze({"text-primary":t.length>0})})]}),g.jsxs("th",{className:`${Ho} text-center`,onClick:()=>j("potentialBot"),children:[g.jsx("span",{className:"sr-only",children:"Is bot"}),g.jsx(Ge,{icon:A3}),N("potentialBot")]}),g.jsxs("th",{className:Ho,onClick:()=>j("date"),children:["Date",N("date")]}),g.jsxs("th",{className:Ho,onClick:()=>j("country"),children:["Country",N("country")]}),g.jsxs("th",{className:Ho,onClick:()=>j("city"),children:["City",N("city")]}),p?g.jsxs("th",{className:Ho,onClick:()=>j("userAgent"),children:["User agent",N("userAgent")]}):g.jsxs(g.Fragment,{children:[g.jsxs("th",{className:Ho,onClick:()=>j("browser"),children:["Browser",N("browser")]}),g.jsxs("th",{className:Ho,onClick:()=>j("os"),children:["OS",N("os")]})]}),g.jsxs("th",{className:Ho,onClick:()=>j("referer"),children:["Referrer",N("referer")]}),E&&g.jsxs("th",{className:Ho,onClick:()=>j("visitedUrl"),children:["Visited URL",N("visitedUrl")]})]}),g.jsx("tr",{children:g.jsx("td",{colSpan:T,className:"p-0",children:g.jsx(om,{noBorder:!0,large:!1,onChange:c})})})]}),g.jsxs("tbody",{children:[!A&&g.jsx("tr",{children:g.jsx("td",{colSpan:T,className:"text-center",children:"There are no visits matching current filter"})}),(i=x.visitsGroups[_-1])==null?void 0:i.map((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:Xh,className:"text-primary"})}),g.jsx("td",{className:"text-center",children:F.potentialBot&&g.jsxs(g.Fragment,{children:[g.jsx(Ge,{icon:A3,id:`botIcon${V}`}),g.jsx(Oi,{placement:"right",target:`botIcon${V}`,children:"Potentially a visit from a bot or crawler"})]})}),g.jsx("td",{children:g.jsx(y0,{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)})]}),x.total>Ah&&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(dA,{pagesCount:Math.ceil(x.total/Ah),currentPage:_,setCurrentPage:w,centered:o}),g.jsxs("div",{children:["Visits ",g.jsx("b",{children:Pr(S+1)})," to"," ",g.jsx("b",{children:Pr(Math.min(O,x.total))})," of"," ",g.jsx("b",{children:Pr(x.total)})]})]})})})})]})})})},qs={byTime:{title:"By time",subPath:"by-time",icon:MK},byContext:{title:"By context",subPath:"by-context",icon:YE},byLocation:{title:"By location",subPath:"by-location",icon:tS},list:{title:"List",subPath:"list",icon:GE},options:{title:"Options",subPath:"options",icon:c$,shouldRender:({deletion:e})=>!!e}};Object.freeze(qs);const KO=({display:e})=>e&&g.jsx("div",{className:"mt-3 mx-auto w-75",children:g.jsx(qt,{children:g.jsxs("div",{className:"d-flex gap-2",children:[g.jsx(Ge,{icon:kY,className:"mt-1"}),g.jsx("i",{children:"Could not calculate previous period because selected one does not have a strictly defined start date."})]})})});let pg;const wm=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:x,loadPrevInterval:_},w]=FV(),O=Nn("visits"),[S,E]=$.useState(),T=$.useCallback(({startDate:D,endDate:Y},ue)=>{w({dateRange:{startDate:D??void 0,endDate:Y??void 0}}),E(ue)},[w]),[A,j]=$.useState(v??(O==null?void 0:O.defaultInterval)??"last30Days"),[N,F]=$.useState([]),[V,B]=$.useState(),W=$.useRef(!0),{search:q}=yn(),J=$.useCallback(D=>D?`../${D}${q}`:q,[q]),Q=$.useMemo(()=>w0(c),[c]),ne=$.useMemo(()=>u&&w0(u),[u]),{os:ae,browsers:se,referrers:oe,countries:K,cities:G,citiesForMap:z,visitedUrls:re}=$.useMemo(()=>jE(Q),[Q]),X=$.useMemo(()=>jE(ne??[]),[ne]),le=$.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=$.useMemo(()=>({...x,excludeBots:x.excludeBots??(O==null?void 0:O.excludeBots),loadPrevInterval:_??(O==null?void 0:O.loadPrevInterval)}),[_,x,O==null?void 0:O.excludeBots,O==null?void 0:O.loadPrevInterval]),de=$.useMemo(()=>Object.values(z),[z]),be=$.useCallback(D=>{pg=void 0,F(D)},[]),M=$.useCallback((D,Y)=>{const ue=`${D}_${Y}`;pg===ue?(F([]),B(void 0),pg=void 0):(F(Q.filter(ie=>ie[D]===Y)),B(Y),pg=ue)},[Q]);return $.useEffect(()=>i,[i]),$.useEffect(()=>{const D=b??lV(A),{loadPrevInterval:Y,...ue}=ce,ie={doIntervalFallback:W.current,loadPrevInterval:Y};n({dateRange:D,filter:ue},ie),be([]),W.current=!1},[A,b,n,ce,be]),$.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(uA,{disabled:h,dateRangeOrInterval:S??b??A,defaultText:"All visits",onDatesChange:T})}),g.jsx(UV,{disabled:h,className:"ms-0 ms-md-2 mt-3 mt-md-0",isOrphanVisits:s,withPrevInterval:!0,selected:ce,onChange:({loadPrevInterval:D,...Y})=>w({visitsFilter:Y,loadPrevInterval:D})})]})}),c.length>0&&g.jsx("div",{className:"col-lg-5 col-xl-6 mt-3 mt-lg-0",children:g.jsxs("div",{className:"d-flex",children:[g.jsx(Wz,{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:["(",Pr(N.length),")"]})]})]})})]})}),g.jsxs("section",{className:"mt-3",children:[g.jsx(zV,{info:r}),!h&&!p&&g.jsxs(g.Fragment,{children:[g.jsx(FF,{fill:!0,children:Object.values(qs).map(({title:D,icon:Y,subPath:ue,shouldRender:ie},he)=>!ie||ie(e)?g.jsxs(Dh,{to:J(ue),replace:!0,children:[g.jsx(Ge,{icon:Y}),g.jsx("span",{className:"ms-2 d-none d-lg-inline",children:D})]},he):void 0).filter(Boolean)}),g.jsx(Zo,{children:g.jsxs(E0,{children:[g.jsx(Pt,{path:qs.byTime.subPath,element:g.jsxs(Tg,{showFallback:c.length===0,children:[g.jsx("div",{className:"col-12 mt-3","data-testid":"line-chart-container",children:g.jsx(LV,{visitsGroups:le,setSelectedVisits:be,onDateRangeChange:T})}),g.jsx(KO,{display:!!ce.loadPrevInterval&&!u})]})}),g.jsx(Pt,{path:qs.byContext.subPath,element:g.jsxs(Tg,{showFallback:c.length===0,children:[g.jsx("div",{className:ze("mt-3 col-lg-6",{"col-xl-4":!s}),children:g.jsx(o8,{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(o8,{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(fg,{title:"Referrers",withPagination:!1,stats:oe,prevStats:X.referrers,highlightedStats:dg(N,"referer"),highlightedLabel:V,sortingItems:{name:"Referrer name",amount:"Visits amount"},onClick:D=>M("referer",D)})}),s&&g.jsx("div",{className:"mt-3 col-lg-6",children:g.jsx(fg,{title:"Visited URLs",stats:re,prevStats:X.visitedUrls,highlightedStats:dg(N,"visitedUrl"),highlightedLabel:V,sortingItems:{visitedUrl:"Visited URL",amount:"Visits amount"},onClick:D=>M("visitedUrl",D)})}),g.jsx("div",{className:"col-12",children:g.jsx(KO,{display:!!ce.loadPrevInterval&&!u})})]})}),g.jsx(Pt,{path:qs.byLocation.subPath,element:g.jsxs(Tg,{showFallback:c.length===0,children:[g.jsx("div",{className:"col-lg-6 mt-3",children:g.jsx(fg,{title:"Countries",stats:K,prevStats:X.countries,highlightedStats:dg(N,"country"),highlightedLabel:V,sortingItems:{name:"Country name",amount:"Visits amount"},onClick:D=>M("country",D)})}),g.jsx("div",{className:"col-lg-6 mt-3",children:g.jsx(fg,{title:"Cities",stats:G,prevStats:X.cities,highlightedStats:dg(N,"city"),highlightedLabel:V,extraHeaderContent:D=>de.length>0&&g.jsx(ATe,{modalTitle:"Cities",locations:de,activeCities:D}),sortingItems:{name:"City name",amount:"Visits amount"},onClick:D=>M("city",D)})}),g.jsx("div",{className:"col-12",children:g.jsx(KO,{display:!!ce.loadPrevInterval&&!u})})]})}),g.jsx(Pt,{path:qs.list.subPath,element:g.jsx("div",{className:"col-12",children:g.jsx(GTe,{visits:Q,selectedVisits:N,setSelectedVisits:be})})}),o&&g.jsx(Pt,{path:qs.options.subPath,element:g.jsx("div",{className:"col-12 mt-3",children:g.jsx(kTe,{...o})})}),g.jsx(Pt,{path:"*",element:g.jsx(DE,{replace:!0,to:J(qs.byTime.subPath)})})]})})]})]})]})},qV=ko(({getDomainVisits:e,domainVisits:t,cancelGetDomainVisits:r})=>{const{ReportExporter:n}=fr(qV),{domain:i=""}=Kf(),[o,a=o]=i.split("_"),s=$.useCallback((u,h)=>e({domain:a,options:h,params:u}),[a,e]),c=$.useCallback(u=>n.exportVisits(`domain_${o}_visits.csv`,u),[o,n]);return g.jsx(wm,{getVisits:s,cancelGetVisits:r,visitsInfo:t,exportCsv:c,children:g.jsx(xm,{visits:t.visits,title:`"${o}" visits`})})},()=>[Rn.visits]),KTe=dr(qV,["ReportExporter"]),HV=ko(({getNonOrphanVisits:e,nonOrphanVisits:t,cancelGetNonOrphanVisits:r})=>{const{ReportExporter:n}=fr(HV),i=$.useCallback(a=>n.exportVisits("non_orphan_visits.csv",a),[n]),o=$.useCallback((a,s)=>e({options:s,params:a}),[e]);return g.jsx(wm,{getVisits:o,cancelGetVisits:r,visitsInfo:t,exportCsv:i,children:g.jsx(xm,{title:"Non-orphan visits",visits:t.visits})})},()=>[Rn.visits]),YTe=dr(HV,["ReportExporter"]),GV=ko(({getOrphanVisits:e,orphanVisits:t,cancelGetOrphanVisits:r,deleteOrphanVisits:n,orphanVisitsDeletion:i})=>{const o=_i("orphanVisitsDeletion"),{ReportExporter:a}=fr(GV),s=$.useCallback(h=>a.exportVisits("orphan_visits.csv",h),[a]),c=$.useCallback((h,p)=>{var v;return e({options:p,params:h,orphanVisitsType:(v=h.filter)==null?void 0:v.orphanVisitsType})},[e]),u=$.useMemo(()=>o?{deleteVisits:n,visitsDeletion:i}:void 0,[n,i,o]);return g.jsx(wm,{getVisits:c,cancelGetVisits:r,visitsInfo:t,exportCsv:s,deletion:u,isOrphanVisits:!0,children:g.jsx(xm,{title:"Orphan visits",visits:t.visits})})},()=>[Rn.orphanVisits]),ZTe=dr(GV,["ReportExporter"]),f8=5e3,XTe=2,QTe=4,JTe=({currentPage:e,pagesCount:t})=>e>=t,eje=(e,t)=>t*100/e,KV=({visitsLoader:e,shouldCancel:t,progressChanged:r,batchSize:n})=>{const i=async(a,s)=>Promise.all(s.map(async c=>e({...a,page:c,itemsPerPage:f8}).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(eje(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:f8});if(JTe(s))return c;const u=MT(XTe,s.pagesCount+1),h=ef(u,n);return s.pagesCount-1>n&&r(0),c.concat(await o(a,h))}},Om=(e,t)=>async r=>e?t({page:1,itemsPerPage:1,excludeBots:r}).then(({data:n})=>n[0]):Promise.resolve(void 0),Sm=({typePrefix:e,createLoaders:t,shouldCancel:r})=>{const n=An(`${e}/progressChanged`),i=An(`${e}/fallbackToInterval`),o=Wr(e,async(a,{getState:s,dispatch:c})=>{var u;const{params:h,options:p}=a,{visitsLoader:v,lastVisitLoader:b}=t(a),x=gEe(h.dateRange),_=TE(h),w=p.loadPrevInterval&&CTe(h)?TE(ETe(h)):void 0,O=QTe/(w?2:1),S=w?{main:0,prev:0}:{main:0},E=(F,V)=>{S[F]=V;const B=Object.values(S),W=B.reduce((q,J)=>q+J,0);c(n(W/B.length))},T=KV({visitsLoader:v,shouldCancel:()=>r(s),progressChanged:F=>E("main",F),batchSize:O}),[A,j,N]=await Promise.all([T(_),b((u=h.filter)==null?void 0:u.excludeBots),w?T(w).then(F=>F.map(V=>{if(x===void 0)return V;const{date:B,...W}=V,q=$T(mi(B),x);return{...W,date:fl(q)}})):Promise.resolve(void 0)]);return!A.length&&j&&c(i(mEe(j.date))),{...a,visits:A,prevVisits:N}});return Object.assign(o,{progressChanged:n,fallbackToInterval:i})},Pm=({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}=jr({name:e,initialState:r,reducers:{cancelGetVisits:b=>({...b,cancelLoad:!0})},extraReducers:b=>{b.addCase(o,()=>({...r,loading:!0})),b.addCase(a,(x,{error:_})=>({...r,errorData:Si(_)??null})),b.addCase(s,(x,{payload:_})=>({...x,..._,loading:!1,progress:null,errorData:null})),b.addCase(c,(x,{payload:_})=>({...x,progress:_})),b.addCase(u,(x,{payload:_})=>({...x,fallbackInterval:_})),b.addCase(fd,(x,{payload:_})=>{const{visits:w}=x,O=n(x,_.createdVisits).map(({visit:S})=>S);return O.length?{...x,visits:[...O,...w]}:x}),i==null||i(b)}}),{cancelGetVisits:v}=p;return{reducer:h,cancelGetVisits:v}},YV="shlink/domainVisits",tje={visits:[],domain:"",loading:!1,cancelLoad:!1,errorData:null,progress:null},rje=e=>Sm({typePrefix:`${YV}/getDomainVisits`,createLoaders:({domain:t,options:r})=>{const n=e(),{doIntervalFallback:i=!1}=r,o=s=>n.getDomainVisits(t,s),a=Om(i,s=>n.getDomainVisits(t,s));return{visitsLoader:o,lastVisitLoader:a}},shouldCancel:t=>t().domainVisits.cancelLoad}),nje=e=>Pm({name:YV,initialState:tje,asyncThunkCreator:e,filterCreatedVisits:({domain:t,params:r},n)=>DV(n,t,r==null?void 0:r.dateRange)}),ZV="shlink/orphanVisits",ije={visits:[],loading:!1,cancelLoad:!1,errorData:null,progress:null},oje=e=>Sm({typePrefix:`${ZV}/getNonOrphanVisits`,createLoaders:({options:t})=>{const r=e(),{doIntervalFallback:n=!1}=t,i=async a=>r.getNonOrphanVisits(a),o=Om(n,a=>r.getNonOrphanVisits(a));return{visitsLoader:i,lastVisitLoader:o}},shouldCancel:t=>t().orphanVisits.cancelLoad}),aje=e=>Pm({name:ZV,initialState:ije,asyncThunkCreator:e,filterCreatedVisits:({params:t},r)=>{const{startDate:n,endDate:i}=(t==null?void 0:t.dateRange)??{};return r.filter(({visit:o})=>_m(o.date,n,i))}}),XV="shlink/orphanVisits",sje={visits:[],loading:!1,cancelLoad:!1,errorData:null,progress:null},lje=(e,t)=>!t||t===e.type,uje=({data:e,...t},r)=>{const n=e.filter(i=>pA(i)&&lje(i,r));return{...t,data:n}},cje=e=>Sm({typePrefix:`${XV}/getOrphanVisits`,createLoaders:({orphanVisitsType:t,options:r})=>{const n=e(),{doIntervalFallback:i=!1}=r,o=async s=>n.getOrphanVisits({...s,type:t}).then(c=>uje(c,t)),a=Om(i,s=>n.getOrphanVisits(s));return{visitsLoader:o,lastVisitLoader:a}},shouldCancel:t=>t().orphanVisits.cancelLoad}),fje=(e,t)=>Pm({name:XV,initialState:sje,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&&_m(a.date,i,o))}}),QV="shlink/orphanVisitsDeletion",d8={deletedVisits:0,deleting:!1,error:!1},dje=e=>Wr(`${QV}/deleteOrphanVisits`,()=>e().deleteOrphanVisits()),hje=e=>jr({name:QV,initialState:d8,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:Si(n)})),t.addCase(e.fulfilled,(r,{payload:n})=>{const{deletedVisits:i}=n;return{...d8,deletedVisits:i}})}}),JV="shlink/shortUrlVisits",pje={visits:[],shortCode:"",loading:!1,errorData:null,cancelLoad:!1,progress:null},mje=e=>Sm({typePrefix:`${JV}/getShortUrlVisits`,createLoaders:({shortCode:t,domain:r,options:n})=>{const i=e(),{doIntervalFallback:o=!1}=n,a=c=>i.getShortUrlVisits(t,{...c,domain:r}),s=Om(o,c=>i.getShortUrlVisits(t,{...c,domain:r}));return{visitsLoader:a,lastVisitLoader:s}},shouldCancel:t=>t().shortUrlVisits.cancelLoad}),vje=(e,t)=>Pm({name:JV,initialState:pje,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)=>IV(o,{shortCode:r,domain:n},i==null?void 0:i.dateRange)}),eW="shlink/shortUrlVisitsDeletion",h8={shortCode:"",deletedVisits:0,deleting:!1,error:!1},gje=e=>Wr(`${eW}/deleteShortUrlVisits`,async({shortCode:t,domain:r})=>({...await e().deleteShortUrlVisits(t,r),shortCode:t,domain:r})),yje=e=>jr({name:eW,initialState:h8,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:Si(n)})),t.addCase(e.fulfilled,(r,{payload:n})=>{const{shortCode:i,domain:o,deletedVisits:a}=n;return{...h8,shortCode:i,domain:o,deletedVisits:a}})}}),tW="shlink/tagVisits",bje={visits:[],tag:"",loading:!1,cancelLoad:!1,errorData:null,progress:null},_je=e=>Sm({typePrefix:`${tW}/getTagVisits`,createLoaders:({tag:t,options:r})=>{const n=e(),{doIntervalFallback:i=!1}=r,o=s=>n.getTagVisits(t,s),a=Om(i,async s=>n.getTagVisits(t,s));return{visitsLoader:o,lastVisitLoader:a}},shouldCancel:t=>t().tagVisits.cancelLoad}),xje=e=>Pm({name:tW,initialState:bje,asyncThunkCreator:e,filterCreatedVisits:({tag:t,params:r},n)=>$V(n,t,r==null?void 0:r.dateRange)}),rW="shlink/visitsOverview",mg={nonOrphanVisits:{total:0},orphanVisits:{total:0},loading:!1,error:!1},p8=e=>e.filter(({visit:t})=>t.potentialBot).length,wje=e=>Wr(`${rW}/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}}))),Oje=e=>jr({name:rW,initialState:mg,reducers:{},extraReducers:t=>{t.addCase(e.pending,()=>({...mg,loading:!0})),t.addCase(e.rejected,()=>({...mg,error:!0})),t.addCase(e.fulfilled,(r,{payload:n})=>({...mg,...n})),t.addCase(fd,({nonOrphanVisits:r,orphanVisits:n,...i},{payload:o})=>{const{nonOrphanVisits:a,orphanVisits:s}=STe(o.createdVisits),c=a.length,u=p8(a),h=c-u,p=s.length,v=p8(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}}})}}),Sje=({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(xm,{title:g.jsxs(g.Fragment,{children:["Visits for ",g.jsx(Kn,{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(y0,{date:e.dateCreated,relative:!0})}),g.jsx(Oi,{placement:"bottom",target:"created",children:g.jsx(y0,{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(Kn,{href:o,children:a??o})]})]})},nW=ko(({shortUrlVisits:e,shortUrlVisitsDeletion:t,shortUrlsDetails:r,getShortUrlVisits:n,getShortUrlsDetails:i,deleteShortUrlVisits:o,cancelGetShortUrlVisits:a})=>{const s=_i("shortUrlVisitsDeletion"),{ReportExporter:c}=fr(nW),u=oA(),h=$.useMemo(()=>{var x;return(x=r.shortUrls)==null?void 0:x.get(u)},[u,r.shortUrls]),p=$.useCallback((x,_)=>n({...u,options:_,params:x}),[n,u]),v=$.useCallback(x=>c.exportVisits(`short-url_${h==null?void 0:h.shortUrl.replace(/https?:\/\//g,"")}_visits.csv`,x),[c,h==null?void 0:h.shortUrl]),b=$.useMemo(()=>s?{deleteVisits:()=>o(u),visitsDeletion:t}:void 0,[o,u,t,s]);return $.useEffect(()=>{i([u])},[u,i]),g.jsx(wm,{getVisits:p,cancelGetVisits:a,visitsInfo:e,exportCsv:v,deletion:b,children:g.jsx(Sje,{shortUrl:h,loading:r.loading,shortUrlVisits:e})})},e=>e.shortCode?[Rn.shortUrlVisits(rA(e.shortCode))]:[]),Pje=dr(nW,["ReportExporter"]),Cje=({tagVisits:e,colorGenerator:t})=>{const{visits:r,tag:n}=e;return g.jsx(xm,{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(Lb,{text:n,colorGenerator:t})]}),visits:r})},iW=ko(({getTagVisits:e,tagVisits:t,cancelGetTagVisits:r})=>{const{ColorGenerator:n,ReportExporter:i}=fr(iW),{tag:o=""}=Kf(),a=$.useCallback((c,u)=>e({tag:o,params:c,options:u}),[e,o]),s=$.useCallback(c=>i.exportVisits(`tag_${o}_visits.csv`,c),[i,o]);return g.jsx(wm,{getVisits:a,cancelGetVisits:r,visitsInfo:t,exportCsv:s,children:g.jsx(Cje,{tagVisits:t,colorGenerator:n})})},()=>[Rn.visits]),Eje=dr(iW,["ColorGenerator","ReportExporter"]),mA=({title:e,colors:t,getVisitsForComparison:r,visitsComparisonInfo:n,cancelGetVisitsComparison:i})=>{const{loading:o,visitsGroups:a}=n,s=Nn("visits"),c=$.useMemo(()=>Object.keys(a).reduce((S,E,T)=>(S[E]=Object.assign(w0(a[E]),{color:(t==null?void 0:t[E])??NV(T)}),S),{}),[t,a]),u=$.useMemo(()=>Object.values(a).every(S=>S.length===0),[a]),[{dateRange:h,visitsFilter:p},v]=FV(),[b,x]=$.useState(),_=$.useCallback(({startDate:S,endDate:E},T)=>{v({dateRange:{startDate:S??void 0,endDate:E??void 0}}),x(T)},[v]),w=$.useRef(h??(s==null?void 0:s.defaultInterval)??"last30Days"),O=$.useMemo(()=>({...p,excludeBots:p.excludeBots??(s==null?void 0:s.excludeBots)}),[p,s==null?void 0:s.excludeBots]);return $.useEffect(()=>{const S=h??lV(w.current);return r({params:{dateRange:S,filter:O}}),i},[i,h,r,O]),g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"mb-3",children:g.jsxs(qt,{bodyClassName:"d-flex",children:[g.jsx(Mb,{}),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(uA,{disabled:o,defaultText:"All visits",dateRangeOrInterval:b??h??w.current,onDatesChange:_})}),g.jsx(UV,{disabled:o,className:"ms-0 ms-md-2 mt-3 mt-md-0",selected:O,onChange:({orphanVisitsType:S,excludeBots:E})=>v({visitsFilter:{orphanVisitsType:S,excludeBots:E}})})]})}),g.jsx(zV,{info:n}),!o&&g.jsx(Tg,{showFallback:u,children:g.jsx(LV,{visitsGroups:c,onDateRangeChange:_})})]})},Tje=ko(({getDomainVisitsForComparison:e,domainVisitsComparison:t,cancelGetDomainVisitsComparison:r})=>{const n=eA("domains"),i=$.useCallback(o=>e({...o,domains:n}),[n,e]);return g.jsx(mA,{title:`Comparing "${n.join('", "')}"`,getVisitsForComparison:i,visitsComparisonInfo:t,cancelGetVisitsComparison:r})},()=>[Rn.visits]),jje=({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,KV({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)}},vA=({typePrefix:e,createLoaders:t,shouldCancel:r})=>{const n=An(`${e}/progressChanged`),i=Wr(e,async(o,{getState:a,dispatch:s})=>{const c=t(o),u=await jje({visitsLoaders:c,shouldCancel:()=>r(a),progressChanged:h=>s(n(h))})(TE(o.params));return{...o,visitsGroups:u}});return Object.assign(i,{progressChanged:n})},gA=({name:e,asyncThunkCreator:t,initialState:r,filterCreatedVisitsForGroup:n})=>{const{pending:i,rejected:o,fulfilled:a,progressChanged:s}=t,{reducer:c,actions:u}=jr({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:Si(b)??null})),p.addCase(a,(v,{payload:b})=>({...v,...b,loading:!1,progress:null,errorData:null})),p.addCase(s,(v,{payload:b})=>({...v,progress:b})),p.addCase(fd,(v,{payload:b})=>{const{visitsGroups:x,..._}=v,w=Object.keys(x).map(S=>{const E=n({..._,groupKey:S},b.createdVisits).map(({visit:T})=>T);return[S,[...E,...x[S]]]}),O=Object.fromEntries(w);return{..._,visitsGroups:O}})}}),{cancelGetVisits:h}=u;return{reducer:c,cancelGetVisits:h}},oW="shlink/domainVisitsComparison",Aje={visitsGroups:{},loading:!1,cancelLoad:!1,errorData:null,progress:null},kje=e=>vA({typePrefix:`${oW}/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}),Rje=e=>gA({name:oW,initialState:Aje,asyncThunkCreator:e,filterCreatedVisitsForGroup:({groupKey:t,params:r},n)=>DV(n,t,r==null?void 0:r.dateRange)}),aW="shlink/shortUrlVisitsComparison",Nje={visitsGroups:{},loading:!1,cancelLoad:!1,errorData:null,progress:null},Mje=e=>vA({typePrefix:`${aW}/getShortUrlVisitsForComparison`,createLoaders:({shortUrls:t})=>{const r=e(),n=t.map(i=>[nA(i),o=>r.getShortUrlVisits(i.shortCode,{...o,domain:i.domain})]);return Object.fromEntries(n)},shouldCancel:t=>t().shortUrlVisitsComparison.cancelLoad}),Lje=e=>gA({name:aW,initialState:Nje,asyncThunkCreator:e,filterCreatedVisitsForGroup:({groupKey:t,params:r},n)=>IV(n,gz(t),r==null?void 0:r.dateRange)}),sW="shlink/tagVisitsComparison",Ije={visitsGroups:{},loading:!1,cancelLoad:!1,errorData:null,progress:null},Dje=e=>vA({typePrefix:`${sW}/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}),$je=e=>gA({name:sW,initialState:Ije,asyncThunkCreator:e,filterCreatedVisitsForGroup:({groupKey:t,params:r},n)=>$V(n,t,r==null?void 0:r.dateRange)}),Fje=ko(({getShortUrlVisitsForComparison:e,shortUrlVisitsComparison:t,cancelGetShortUrlVisitsComparison:r,shortUrlsDetails:n,getShortUrlsDetails:i})=>{const o=eA("short-urls"),a=$.useMemo(()=>o.map(gz),[o]),s=$.useCallback(h=>e({...h,shortUrls:a}),[e,a]),c=$.useMemo(()=>{var h;return[...((h=n.shortUrls)==null?void 0:h.values())??[]]},[n.shortUrls]),u=$.useMemo(()=>{const{visitsGroups:h,loading:p,...v}=t,b=c.reduce((x,_)=>(x[_.shortUrl]=h[nA(_)]??[],x),{});return{...v,visitsGroups:b,loading:p||n.loading}},[t,n.loading,c]);return $.useEffect(()=>{a.length>0&&i(a)},[i,a]),g.jsx(mA,{title:g.jsx("span",{"data-testid":"title",children:n.loading?"Loading...":`Comparing ${c.length} short URLs`}),getVisitsForComparison:s,visitsComparisonInfo:u,cancelGetVisitsComparison:r})},()=>[Rn.visits]),lW=ko(({getTagVisitsForComparison:e,tagVisitsComparison:t,cancelGetTagVisitsComparison:r})=>{const{ColorGenerator:n}=fr(lW),i=eA("tags"),o=$.useCallback(c=>e({...c,tags:i}),[e,i]),{visitsGroups:a}=t,s=$.useMemo(()=>Object.keys(a).reduce((c,u)=>(c[u]=n.getColorForKey(u),c),{}),[n,a]);return g.jsx(mA,{title:g.jsxs(g.Fragment,{children:["Comparing ",i.map(c=>g.jsx(Lb,{colorGenerator:n,text:c},c))]}),getVisitsForComparison:o,visitsComparisonInfo:t,cancelGetVisitsComparison:r,colors:s})},()=>[Rn.visits]),Bje=dr(lW,["ColorGenerator"]),Uje=(e,t)=>{const r=(n,i)=>t([...n,"mercureInfo"],[...i,"createNewVisits","loadMercureInfo"]);e.serviceFactory("MapModal",()=>BV),e.factory("ShortUrlVisits",Pje),e.decorator("ShortUrlVisits",t(["shortUrlVisits","shortUrlVisitsDeletion","shortUrlsDetails","mercureInfo"],["getShortUrlVisits","deleteShortUrlVisits","getShortUrlsDetails","cancelGetShortUrlVisits","createNewVisits","loadMercureInfo"])),e.factory("TagVisits",Eje),e.decorator("TagVisits",r(["tagVisits"],["getTagVisits","cancelGetTagVisits"])),e.factory("TagVisitsComparison",Bje),e.decorator("TagVisitsComparison",r(["tagVisitsComparison"],["getTagVisitsForComparison","cancelGetTagVisitsForComparison"])),e.serviceFactory("DomainVisitsComparison",()=>Tje),e.decorator("DomainVisitsComparison",r(["domainVisitsComparison"],["getDomainVisitsForComparison","cancelGetDomainVisitsForComparison"])),e.serviceFactory("ShortUrlVisitsComparison",()=>Fje),e.decorator("ShortUrlVisitsComparison",r(["shortUrlVisitsComparison","shortUrlsDetails"],["getShortUrlVisitsForComparison","cancelGetShortUrlVisitsForComparison","getShortUrlsDetails"])),e.factory("DomainVisits",KTe),e.decorator("DomainVisits",r(["domainVisits"],["getDomainVisits","cancelGetDomainVisits"])),e.factory("OrphanVisits",ZTe),e.decorator("OrphanVisits",r(["orphanVisits","orphanVisitsDeletion"],["getOrphanVisits","cancelGetOrphanVisits","deleteOrphanVisits"])),e.factory("NonOrphanVisits",YTe),e.decorator("NonOrphanVisits",r(["nonOrphanVisits"],["getNonOrphanVisits","cancelGetNonOrphanVisits"])),e.serviceFactory("VisitsParser",()=>zTe),e.serviceFactory("getShortUrlVisits",mje,"apiClientFactory"),e.serviceFactory("cancelGetShortUrlVisits",n=>n.cancelGetVisits,"shortUrlVisitsReducerCreator"),e.serviceFactory("getShortUrlVisitsForComparison",Mje,"apiClientFactory"),e.serviceFactory("cancelGetShortUrlVisitsForComparison",n=>n.cancelGetVisits,"shortUrlVisitsComparisonReducerCreator"),e.serviceFactory("deleteShortUrlVisits",gje,"apiClientFactory"),e.serviceFactory("getTagVisits",_je,"apiClientFactory"),e.serviceFactory("cancelGetTagVisits",n=>n.cancelGetVisits,"tagVisitsReducerCreator"),e.serviceFactory("getTagVisitsForComparison",Dje,"apiClientFactory"),e.serviceFactory("cancelGetTagVisitsForComparison",n=>n.cancelGetVisits,"tagVisitsComparisonReducerCreator"),e.serviceFactory("getDomainVisits",rje,"apiClientFactory"),e.serviceFactory("cancelGetDomainVisits",n=>n.cancelGetVisits,"domainVisitsReducerCreator"),e.serviceFactory("getDomainVisitsForComparison",kje,"apiClientFactory"),e.serviceFactory("cancelGetDomainVisitsForComparison",n=>n.cancelGetVisits,"domainVisitsComparisonReducerCreator"),e.serviceFactory("getOrphanVisits",cje,"apiClientFactory"),e.serviceFactory("cancelGetOrphanVisits",n=>n.cancelGetVisits,"orphanVisitsReducerCreator"),e.serviceFactory("deleteOrphanVisits",dje,"apiClientFactory"),e.serviceFactory("getNonOrphanVisits",oje,"apiClientFactory"),e.serviceFactory("cancelGetNonOrphanVisits",n=>n.cancelGetVisits,"nonOrphanVisitsReducerCreator"),e.serviceFactory("createNewVisits",()=>fd),e.serviceFactory("loadVisitsOverview",wje,"apiClientFactory"),e.serviceFactory("visitsOverviewReducerCreator",Oje,"loadVisitsOverview"),e.serviceFactory("visitsOverviewReducer",n=>n.reducer,"visitsOverviewReducerCreator"),e.serviceFactory("domainVisitsReducerCreator",nje,"getDomainVisits"),e.serviceFactory("domainVisitsReducer",n=>n.reducer,"domainVisitsReducerCreator"),e.serviceFactory("nonOrphanVisitsReducerCreator",aje,"getNonOrphanVisits"),e.serviceFactory("nonOrphanVisitsReducer",n=>n.reducer,"nonOrphanVisitsReducerCreator"),e.serviceFactory("orphanVisitsReducerCreator",fje,"getOrphanVisits","deleteOrphanVisits"),e.serviceFactory("orphanVisitsReducer",n=>n.reducer,"orphanVisitsReducerCreator"),e.serviceFactory("orphanVisitsDeletionReducerCreator",hje,"deleteOrphanVisits"),e.serviceFactory("orphanVisitsDeletionReducer",n=>n.reducer,"orphanVisitsDeletionReducerCreator"),e.serviceFactory("shortUrlVisitsReducerCreator",vje,"getShortUrlVisits","deleteShortUrlVisits"),e.serviceFactory("shortUrlVisitsReducer",n=>n.reducer,"shortUrlVisitsReducerCreator"),e.serviceFactory("shortUrlVisitsDeletionReducerCreator",yje,"deleteShortUrlVisits"),e.serviceFactory("shortUrlVisitsDeletionReducer",n=>n.reducer,"shortUrlVisitsDeletionReducerCreator"),e.serviceFactory("tagVisitsReducerCreator",xje,"getTagVisits"),e.serviceFactory("tagVisitsReducer",n=>n.reducer,"tagVisitsReducerCreator"),e.serviceFactory("tagVisitsComparisonReducerCreator",$je,"getTagVisitsForComparison"),e.serviceFactory("tagVisitsComparisonReducer",n=>n.reducer,"tagVisitsComparisonReducerCreator"),e.serviceFactory("domainVisitsComparisonReducerCreator",Rje,"getDomainVisitsForComparison"),e.serviceFactory("domainVisitsComparisonReducer",n=>n.reducer,"domainVisitsComparisonReducerCreator"),e.serviceFactory("shortUrlVisitsComparisonReducerCreator",Lje,"getShortUrlVisitsForComparison"),e.serviceFactory("shortUrlVisitsComparisonReducer",n=>n.reducer,"shortUrlVisitsComparisonReducerCreator")},_h=({children:e,to:t,className:r,...n})=>g.jsx(BE,{className:({isActive:i})=>ze("aside-menu__item",r,{"aside-menu__item--selected":i}),to:t,...n,children:e}),zje=({routePrefix:e,showOnMobile:t=!1})=>{const{pathname:r}=yn(),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(_h,{to:i("/overview"),children:[g.jsx(Ge,{fixedWidth:!0,icon:cY}),g.jsx("span",{className:"aside-menu__item-text",children:"Overview"})]}),g.jsxs(_h,{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:GE}),g.jsx("span",{className:"aside-menu__item-text",children:"List short URLs"})]}),g.jsxs(_h,{to:i("/create-short-url"),children:[g.jsx(Ge,{fixedWidth:!0,icon:vY,flip:"horizontal"}),g.jsx("span",{className:"aside-menu__item-text",children:"Create short URL"})]}),g.jsxs(_h,{to:i("/manage-tags"),children:[g.jsx(Ge,{fixedWidth:!0,icon:s$}),g.jsx("span",{className:"aside-menu__item-text",children:"Manage tags"})]}),g.jsxs(_h,{to:i("/manage-domains"),children:[g.jsx(Ge,{fixedWidth:!0,icon:VK}),g.jsx("span",{className:"aside-menu__item-text",children:"Manage domains"})]})]})})},uW=({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:x,ShortUrlRedirectRules:_}=fr(uW),w=yn(),O=xl(),[S,E,T,A]=cr();$.useEffect(()=>A(),[w,A]);const j=ze("shlink-layout__burger-icon",{"shlink-layout__burger-icon--active":S}),N=WSe(T,A),F=_i("shortUrlRedirectRules");return g.jsxs(g.Fragment,{children:[g.jsx(Ge,{icon:$K,className:j,onClick:E}),g.jsx("div",{...N,className:"shlink-layout__swipeable",children:g.jsxs("div",{className:"shlink-layout__swipeable-inner",children:[g.jsx(zje,{routePrefix:O,showOnMobile:S}),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(DE,{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(_,{})}),g.jsx(Pt,{path:"/short-urls/compare-visits",element:g.jsx(x,{})}),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")})]})})})]})})]})},Vje=dr(uW,["TagsList","ShortUrlsList","CreateShortUrl","ShortUrlVisits","TagVisits","DomainVisits","OrphanVisits","NonOrphanVisits","Overview","EditShortUrl","ManageDomains","TagVisitsComparison","DomainVisitsComparison","ShortUrlVisitsComparison","ShortUrlRedirectRules"]),Wje=!0,qje=e=>JF({devTools:!Wje,reducer:AT({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})}),Hje=e=>{e.factory("Main",Vje),e.factory("store",qje)},Ro=new n$,{container:Gje}=Ro,Kje=e=>t=>Object.fromEntries(e.map(r=>[r,t[r]])),Yje=(e,t)=>(...r)=>e[t](...r),Zje=(e,t)=>({...e,[t]:Yje(Gje,t)}),dd=(e,t=[])=>k8(e?Kje(e):null,t.reduce(Zje,{}));Hje(Ro);TEe(Ro,dd);XEe(Ro,dd);Uje(Ro,dd);iPe(Ro);tPe(Ro,dd);gPe(Ro,dd);iTe(Ro);jCe(Ro,dd);let m8;const Xje=e=>({serverVersion:t,apiClient:r,settings:n,routesPrefix:i="",createNotFound:o,tagColorsStorage:a})=>{const s=BSe(t),c=$.useRef(),[u,h]=$.useState(),p=Mu(),v=$.useMemo(()=>p?$.Fragment:W8,[p]);return $.useEffect(()=>{m8=r,e.value("apiClientFactory",()=>m8),a&&e.value("TagColorsStorage",a);const{container:b}=e,{Main:x,store:_,loadMercureInfo:w,listTags:O,listDomains:S}=b;c.current=g.jsx(x,{createNotFound:o}),h(_),_.dispatch(w(n)),_.dispatch(O()),_.dispatch(S())},[r,o,n,a]),u?g.jsx(R8,{store:u,children:g.jsx(u7,{value:n??{},children:g.jsx(FSe,{value:s,children:g.jsx(ISe,{value:i,children:g.jsx(v,{children:c.current})})})})}):g.jsx(g.Fragment,{})},Qje="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=",Jje="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==",eAe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAQAAAACach9AAACMUlEQVR4Ae3ShY7jQBAE0Aoz/f9/HTMzhg1zrdKUrJbdx+Kd2nD8VNudfsL/Th///dyQN2TH6f3y/BGpC379rV+S+qqetBOxImNQXL8JCAr2V4iMQXHGNJxeCfZXhSRBcQMfvkOWUdtfzlLgAENmZDcmo2TVmt8OSM2eXxBp3DjHSMFutqS7SbmemzBiR+xpKCNUIRkdkkYxhAkyGoBvyQFEJEefwSmmvBfJuJ6aKqKWnAkvGZOaZXTUgFqYULWNSHUckZuR1HIIimUExutRxwzOLROIG4vKmCKQt364mIlhSyzAf1m9lHZHJZrlAOMMztRRiKimp/rpdJDc9Awry5xTZCte7FHtuS8wJgeYGrex28xNTd086Dik7vUMscQOa8y4DoGtCCSkAKlNwpgNtphjrC6MIHUkR6YWxxs6Sc5xqn222mmCRFzIt8lEdKx+ikCtg91qS2WpwVfBelJCiQJwvzixfI9cxZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+qMXSxXSyGUn4UbF8l+7qdSGnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC",tAe=()=>{delete A5.Icon.Default.prototype._getIconUrl,A5.Icon.Default.mergeOptions({iconRetinaUrl:Jje,iconUrl:Qje,shadowUrl:eAe})};tAe();const rAe=Xje(Ro);function O0(e){return t=>{const{resetSelectedServer:r}=t;return $.useEffect(()=>{r()},[r]),g.jsx(e,{...t})}}let nAe=class extends $.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(qt,{className:"p-4",children:[g.jsx("h1",{children:"Oops! This is awkward :S"}),g.jsx("p",{children:"It seems that something went wrong. Try refreshing the page or just click this button."}),g.jsx("br",{}),g.jsx(_t,{outline:!0,color:"primary",onClick:()=>r.reload(),children:"Take me back"})]})});const{children:n}=this.props;return n}};const iAe=({id:e,name:t})=>g.jsxs(RF,{tag:Gt,to:`/server/${e}`,className:"servers-list__server-item",children:[t,g.jsx(Ge,{icon:xY,className:"servers-list__server-item-icon"})]}),cW=({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(AF,{"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(iAe,{id:n,name:i},n))})]}),fW=({color:e=ap,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"})]})}),oAe=({servers:e})=>{const t=la(),r=Object.values(e),n=r.length>0;return $.useEffect(()=>{const i=r.find(({autoConnect:o})=>o);i&&t(`/server/${i.id}`)},[r,t]),g.jsx("div",{className:"w-100",children:g.jsx(wi,{className:"mx-auto",style:{maxWidth:"720px"},children:g.jsxs("div",{className:"d-flex flex-column flex-md-row",children:[g.jsx("div",{className:"p-4 d-none d-md-flex align-items-center",style:{width:"40%"},children:g.jsx("div",{className:"w-100",children:g.jsx(fW,{})})}),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(cW,{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(Gt,{to:"/server/create",className:"btn btn-outline-primary btn-lg me-2",children:[g.jsx(Ge,{icon:Zp})," ",g.jsx("span",{className:"ms-1",children:"Add a server"})]})}),g.jsx("p",{className:"mb-0",children:g.jsx(Kn,{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:tY})]})})})]})})]})]})})})},dW=()=>{const{ServersDropdown:e}=To(dW),[t,r,,n]=cr(),i=yn(),{pathname:o}=i;$.useEffect(n,[i,n]);const a="/settings",s=ze("main-header__toggle-icon",{"main-header__toggle-icon--opened":t});return g.jsxs(J$,{color:"primary",dark:!0,fixed:"top",className:"main-header",expand:"md",children:[g.jsxs(eF,{tag:Gt,to:"/",children:[g.jsx(fW,{className:"main-header__brand-logo",color:"white"})," Shlink"]}),g.jsx(tF,{onClick:r,children:g.jsx(Ge,{icon:bY,className:s})}),g.jsx(OT,{navbar:!0,isOpen:t,children:g.jsxs(dT,{navbar:!0,className:"ms-auto",children:[g.jsx(hT,{children:g.jsxs(pT,{tag:Gt,to:a,active:o.startsWith(a),children:[g.jsx(Ge,{icon:SY}),"  Settings"]})}),g.jsx(e,{})]})})]})},aAe=jo(dW,["ServersDropdown"]),sAe=({children:e})=>{const t=yn();return $.useEffect(()=>{scrollTo(0,0)},[t]),g.jsx(g.Fragment,{children:e})},hW=o7(e=>e,e=>{try{return qP(e,e,"=")}catch{return!1}}),pW=e=>hW(e)?`v${e}`:e,mW=(e,t="latest")=>hW(e)?e:t,lAe="%_VERSION_%",uAe=e=>pW(mW(e)),v8=({project:e,version:t})=>g.jsx(Kn,{href:`https://github.com/shlinkio/${e}/releases/${t}`,className:"text-muted",children:g.jsx("b",{children:t})}),cAe=({selectedServer:e,clientVersion:t=lAe})=>{const r=uAe(t);return g.jsxs("small",{className:"text-muted",children:[qE(e)&&g.jsxs(g.Fragment,{children:["Server: ",g.jsx(v8,{project:"shlink",version:e.printableVersion})," - "]}),"Client: ",g.jsx(v8,{project:"shlink-web-client",version:r})]})},fAe=({selectedServer:e})=>g.jsx("div",{className:ze("text-center",{"shlink-versions-container--with-sidebar":qE(e)}),children:g.jsx(cAe,{selectedServer:e})}),hd=({children:e,className:t})=>g.jsx("div",{className:ze("no-menu-wrapper container-xl",t),children:e});function vW(e){const t=r=>{const{ServerError:n}=To(t),i=Kf(),{selectServer:o,selectedServer:a}=r;return $.useEffect(()=>{i.serverId&&o(i.serverId)},[i.serverId,o]),a?SK(a)?g.jsx(n,{}):g.jsx(e,{...r}):g.jsx(hd,{children:g.jsx(Ha,{loading:!0})})};return t}const gW=vW($.memo(({selectedServer:e,settings:t})=>{const{buildShlinkApiClient:r,TagColorsStorage:n,ShlinkWebComponent:i,ServerError:o}=To(gW);if(!qE(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(UF,{to:`${a}${s}`,children:"List short URLs"})})})),dAe=jo(gW,["buildShlinkApiClient","TagColorsStorage","ShlinkWebComponent","ServerError"]),hAe=(e,t)=>{e.constant("window",window),e.constant("console",console),e.constant("fetch",window.fetch.bind(window)),e.service("HttpClient",Woe,"fetch"),e.serviceFactory("ScrollToTop",()=>sAe),e.factory("MainHeader",aAe),e.serviceFactory("Home",()=>oAe),e.decorator("Home",O0),e.decorator("Home",t(["servers"],["resetSelectedServer"])),e.serviceFactory("ShlinkWebComponent",()=>rAe),e.factory("ShlinkWebComponentContainer",dAe),e.decorator("ShlinkWebComponentContainer",t(["selectedServer","settings"],["selectServer"])),e.serviceFactory("ShlinkVersionsContainer",()=>fAe),e.decorator("ShlinkVersionsContainer",t(["selectedServer"])),e.serviceFactory("ErrorHandler",()=>nAe)},yW=()=>{const e=la();return $.useCallback(()=>e(-1),[e])};function pAe(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 mAe(e){const t={};return e.forEach(r=>{t[r.id]=r}),t}const vAe=(e,{url:t,apiKey:r})=>e.some(n=>n.url===t&&n.apiKey===r);function gAe(e,t){const r=Object.values(e),{duplicatedServers:n=[],newServers:i=[]}=i7(t,o=>vAe(r,o)?"duplicatedServers":"newServers");return{duplicatedServers:n,newServers:i}}function S0(e,t){const r=new Set(Object.keys(e)),n=[];return t.forEach(i=>{const o=pAe(i);let a=o,s=1;for(;r.has(a);)a=`${o}-${s}`,s++;n.push({...i,id:a}),r.add(a)}),n}const bW=({isOpen:e,duplicatedServers:t,onDiscard:r,onSave:n})=>{const i=t.length>1;return g.jsxs(Zn,{centered:!0,isOpen:e,children:[g.jsxs(ua,{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($.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(es,{children:[g.jsx(_t,{color:"link",onClick:r,children:i?"Ignore duplicates":"Discard"}),g.jsx(_t,{color:"primary",onClick:n,children:"Save anyway"})]})]})},yAe=e=>t=>{t.preventDefault(),e()},_W=({onSubmit:e,initialValues:t,children:r,title:n})=>{const[i,o]=$.useState((t==null?void 0:t.name)??""),[a,s]=$.useState((t==null?void 0:t.url)??""),[c,u]=$.useState((t==null?void 0:t.apiKey)??""),h=yAe(()=>e({name:i,url:a,apiKey:c}));return g.jsxs("form",{className:"server-form",name:"serverForm",onSubmit:h,children:[g.jsxs(qt,{className:"mb-3",title:n,children:[g.jsx(Og,{value:i,onChange:o,children:"Name"}),g.jsx(Og,{type:"url",value:a,onChange:s,children:"URL"}),g.jsx(Og,{value:c,onChange:u,children:"API key"})]}),g.jsx("div",{className:"text-end",children:r})]})},g8=4e3,y8=({type:e})=>g.jsx("div",{className:"mt-3",children:g.jsxs(jn,{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."]})}),xW=({servers:e,createServers:t})=>{const{ImportServersBtn:r,useTimeoutToggle:n}=To(xW),i=la(),o=yW(),a=!!Object.keys(e).length,[s,c]=n(!1,g8),[u,h]=n(!1,g8),[p,v]=cr(),[b,x]=$.useState(),_=$.useCallback(O=>{const[S]=S0(e,[O]);t([S]),i(`/server/${S.id}`)},[t,i,e]),w=$.useCallback(O=>{x(O),Object.values(e).some(({url:E,apiKey:T})=>O.url===E&&O.apiKey===T)?v():_(O)},[_,e,v]);return g.jsxs(hd,{children:[g.jsxs(_W,{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(y8,{type:"success"}),u&&g.jsx(y8,{type:"error"}),g.jsx(bW,{isOpen:p,duplicatedServers:b?[b]:[],onDiscard:o,onSave:()=>b&&_(b)})]})},bAe=jo(xW,["ImportServersBtn","useTimeoutToggle"]),wW=({server:e,className:t,children:r,textClassName:n})=>{const{DeleteServerModal:i}=To(wW),[o,,a,s]=cr();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:HE}),g.jsx("span",{className:n,children:r??"Remove this server"})]}),g.jsx(i,{server:e,isOpen:o,toggle:s})]})},_Ae=jo(wW,["DeleteServerModal"]),xAe=({server:e,toggle:t,isOpen:r,deleteServer:n,redirectHome:i=!0})=>{const o=la(),a=$.useRef(!1),s=()=>{a.current=!0,t()},c=()=>{a.current&&(n(e),i&&o("/"))};return g.jsxs(Zn,{isOpen:r,toggle:t,centered:!0,onClosed:c,children:[g.jsx(ua,{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(es,{children:[g.jsx(_t,{color:"link",onClick:t,children:"Cancel"}),g.jsx(_t,{color:"danger",onClick:s,children:"Delete"})]})]})},wAe=vW(({editServer:e,selectedServer:t,selectServer:r})=>{const n=yW(),{reconnect:i}=Xf();if(!kh(t))return null;const o=a=>{e(t.id,a),i==="true"&&r(t.id),n()};return g.jsx(hd,{children:g.jsxs(_W,{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"})]})})}),OAe=jo(wAe,["ServerError"]),OW=({createServers:e,servers:t,children:r,onImport:n=()=>{},onImportError:i=()=>{},tooltipPlacement:o="bottom",className:a=""})=>{const{ServersImporter:s}=To(OW),c=Zi(),[u,h]=$.useState([]),[p,,v,b]=cr(),x=$.useRef([]),_=$.useRef([]),w=$.useCallback(T=>{e(T),n()},[e,n]),O=$.useCallback(async({target:T})=>{var A;return s.importServersFromFile((A=T.files)==null?void 0:A[0]).then(j=>{const{duplicatedServers:N,newServers:F}=gAe(t,j);x.current=S0(t,j),_.current=S0(t,F),N.length===0?w(x.current):(h(N),v())}).then(()=>{T.value=null}).catch(i)},[w,i,t,s,v]),S=$.useCallback(()=>{w(x.current),b()},[w,b]),E=$.useCallback(()=>{w(_.current),b()},[w,b]);return g.jsxs(g.Fragment,{children:[g.jsxs(_t,{outline:!0,id:"importBtn",className:a,onClick:()=>{var T;return(T=c.current)==null?void 0:T.click()},children:[g.jsx(Ge,{icon:HK,fixedWidth:!0})," ",r??"Import from file"]}),g.jsxs(Oi,{placement:o,target:"importBtn",children:["You can create servers by importing a CSV file with ",g.jsx("b",{children:"name"}),", ",g.jsx("b",{children:"apiKey"})," and ",g.jsx("b",{children:"url"})," columns."]}),g.jsx("input",{type:"file",accept:".csv",className:"d-none","aria-hidden":!0,ref:c,onChange:O,"data-testid":"csv-file-input"}),g.jsx(bW,{isOpen:p,duplicatedServers:u,onDiscard:E,onSave:S})]})},SAe=jo(OW,["ServersImporter"]),SW=({servers:e,selectedServer:t})=>{const{DeleteServerButton:r}=To(SW);return g.jsx(hd,{children:g.jsxs("div",{className:"server-error__container flex-column",children:[g.jsxs(Ha,{className:"w-100 mb-3 mb-md-5",type:"error",fullWidth:!0,children:[!kh(t)&&"Could not find this Shlink server.",kh(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(cW,{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(Gt,{to:"/server/create",children:"add a new one"}),"."]})}),kh(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(Gt,{to:`/server/${t.id}/edit?reconnect=true`,children:"edit it"}),"."]})})]})})},PAe=jo(SW,["DeleteServerButton"]),CAe=4e3,PW=({servers:e})=>{const{ServersExporter:t,ImportServersBtn:r,useTimeoutToggle:n,ManageServersRow:i}=To(PW),[o,a]=$.useState(""),s=$.useMemo(()=>Object.values(e),[e]),c=$.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,CAe);return g.jsxs(hd,{className:"d-flex flex-column gap-3",children:[g.jsx(om,{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:l$,fixedWidth:!0})," Export servers"]})]}),g.jsxs(_t,{outline:!0,color:"primary",className:"ms-md-auto",tag:Gt,to:"/server/create",children:[g.jsx(Ge,{icon:Zp,fixedWidth:!0})," Add a server"]})]}),g.jsx(qt,{children:g.jsxs("table",{className:"table table-hover responsive-table mb-0",children:[g.jsx("thead",{className:"responsive-table__header",children:g.jsxs("tr",{children:[u&&g.jsx("th",{style:{width:"50px"},children:g.jsx("span",{className:"sr-only",children:"Auto-connect"})}),g.jsx("th",{children:"Name"}),g.jsx("th",{children:"Base URL"}),g.jsx("th",{children:g.jsx("span",{className:"sr-only",children:"Options"})})]})}),g.jsxs("tbody",{children:[!c.length&&g.jsx("tr",{className:"text-center",children:g.jsx("td",{colSpan:4,children:"No servers found."})}),c.map(v=>g.jsx(i,{server:v,hasAutoConnect:u},v.id))]})]})}),h&&g.jsx("div",{children:g.jsx(jn,{type:"error",children:"The servers could not be imported. Make sure the format is correct."})})]})},EAe=jo(PW,["ServersExporter","ImportServersBtn","useTimeoutToggle","ManageServersRow"]),CW=({server:e,hasAutoConnect:t})=>{const{ManageServersRowDropdown:r}=To(CW);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:Xh,className:"text-primary",id:"autoConnectIcon"}),g.jsx(Oi,{target:"autoConnectIcon",placement:"right",children:"Auto-connect to this server"})]})}),g.jsx("th",{className:"responsive-table__cell","data-th":"Name",children:g.jsx(Gt,{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})})]})},TAe=jo(CW,["ManageServersRowDropdown"]),EW=({server:e,setAutoConnect:t})=>{const{DeleteServerModal:r}=To(EW),[n,,i,o]=cr(),a=`/server/${e.id}`,{autoConnect:s}=e,c=s?WK:Pae;return g.jsxs(F0,{minWidth:s?210:170,children:[g.jsxs(Ye,{tag:Gt,to:a,children:[g.jsx(Ge,{icon:zK,fixedWidth:!0})," Connect"]}),g.jsxs(Ye,{tag:Gt,to:`${a}/edit`,children:[g.jsx(Ge,{icon:KE,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:HE,fixedWidth:!0})," Remove server"]}),g.jsx(r,{redirectHome:!1,server:e,isOpen:n,toggle:o})]})},jAe=jo(EW,["DeleteServerModal"]),TW=(e,t)=>t7(e,t,{serializeError:r=>r}),AAe={},{actions:kAe,reducer:RAe}=jr({name:"shlink/servers",initialState:AAe,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:mAe(e)}),reducer:(e,{payload:t})=>({...e,...t})}}}),{editServer:NAe,deleteServer:MAe,setAutoConnect:LAe,createServers:jW}=kAe,IAe=RAe,DAe=e=>S0({},Array.isArray(e)?e.filter(i$):[]),$Ae=e=>TW("shlink/remoteServers/fetchServers",async(t,{dispatch:r})=>{const n=await e.jsonRequest(`${kg.homepage}/servers.json`),i=DAe(n);r(jW(i))}),yA="shlink/selectedServer",FAe="1.0.0",BAe="999.999.999",UAe="latest",zAe=e=>mW(e===UAe?BAe:e,FAe),VAe=o7(e=>`${e.id}_${e.url}_${e.apiKey}`,async(e,t)=>t().then(({version:r})=>({version:zAe(r),printableVersion:pW(r)}))),b8=null,bA=An(`${yA}/resetSelectedServer`),WAe=e=>TW(`${yA}/selectServer`,async(t,{dispatch:r,getState:n})=>{r(bA());const{servers:i}=n(),o=i[t];if(!o)return{serverNotFound:!0};try{const a=e(o),{version:s,printableVersion:c}=await VAe(o,()=>a.health());return{...o,version:s,printableVersion:c}}catch{return{...o,serverNotReachable:!0}}}),qAe=e=>jr({name:yA,initialState:b8,reducers:{},extraReducers:t=>{t.addCase(bA,()=>b8),t.addCase(e.fulfilled,(r,{payload:n})=>n)}}),HAe=({servers:e,selectedServer:t})=>{const r=Object.values(e),n=()=>r.length===0?g.jsxs(Ye,{tag:Gt,to:"/server/create",children:[g.jsx(Ge,{icon:Zp})," ",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:Gt,to:`/server/${o}`,active:PK(t)===o,children:i},o)),g.jsx(Ye,{divider:!0,tag:"hr"}),g.jsxs(Ye,{tag:Gt,to:"/manage-servers",children:[g.jsx(Ge,{icon:T3})," ",g.jsx("span",{className:"ms-1",children:"Manage servers"})]})]});return g.jsxs(im,{nav:!0,inNavbar:!0,children:[g.jsxs(Ja,{nav:!0,caret:!0,children:[g.jsx(Ge,{icon:T3})," ",g.jsx("span",{className:"ms-1",children:"Servers"})]}),g.jsx(ml,{end:!0,style:{right:0},children:n()})]})},GAe=({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)},KAe=(e,t,r)=>{const n=new Blob([t],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(n);GAe(e,i,r)},YAe="shlink-servers.csv";class ZAe{constructor(t,r,n){Tc(this,"exportServers",async()=>{const t=Object.values(this.storage.get("servers")??{}).map(CK);try{const r=this.jsonToCsv(t);KAe(this.window,r,YAe)}catch(r){console.error(r)}});this.storage=t,this.window=r,this.jsonToCsv=n}}const XAe=e=>typeof e.url=="string"&&typeof e.apiKey=="string"&&typeof e.name=="string",QAe=e=>Array.isArray(e)&&e.every(XAe);class JAe{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(!QAe(n))throw new Error("Provided file does not have the right format.");return n}}const eke=(e,t)=>{e.factory("ManageServers",EAe),e.decorator("ManageServers",O0),e.decorator("ManageServers",t(["selectedServer","servers"],["resetSelectedServer"])),e.factory("ManageServersRow",TAe),e.factory("ManageServersRowDropdown",jAe),e.decorator("ManageServersRowDropdown",t(null,["setAutoConnect"])),e.factory("CreateServer",bAe),e.decorator("CreateServer",O0),e.decorator("CreateServer",t(["selectedServer","servers"],["createServers","resetSelectedServer"])),e.factory("EditServer",OAe),e.decorator("EditServer",t(["selectedServer"],["editServer","selectServer","resetSelectedServer"])),e.serviceFactory("ServersDropdown",()=>HAe),e.decorator("ServersDropdown",t(["servers","selectedServer"])),e.serviceFactory("DeleteServerModal",()=>xAe),e.decorator("DeleteServerModal",t(null,["deleteServer"])),e.factory("DeleteServerButton",_Ae),e.factory("ImportServersBtn",SAe),e.decorator("ImportServersBtn",t(["servers"],["createServers"])),e.factory("ServerError",PAe),e.decorator("ServerError",t(["servers","selectedServer"])),e.service("ServersImporter",JAe,"csvToJson"),e.service("ServersExporter",ZAe,"Storage","window","jsonToCsv"),e.serviceFactory("selectServer",WAe,"buildShlinkApiClient","loadMercureInfo"),e.serviceFactory("createServers",()=>jW),e.serviceFactory("deleteServer",()=>MAe),e.serviceFactory("editServer",()=>NAe),e.serviceFactory("setAutoConnect",()=>LAe),e.serviceFactory("fetchServers",$Ae,"HttpClient"),e.serviceFactory("resetSelectedServer",()=>bA),e.serviceFactory("selectedServerReducerCreator",qAe,"selectServer"),e.serviceFactory("selectedServerReducer",r=>r.reducer,"selectedServerReducerCreator")},AW={field:"dateCreated",dir:"DESC"},tke={realTimeUpdates:{enabled:!0},shortUrlCreation:{validateUrls:!1},ui:{theme:TT()},visits:{defaultInterval:"last30Days"},shortUrlsList:{defaultOrdering:AW}},{reducer:rke,actions:nke}=jr({name:"shlink/settings",initialState:tke,reducers:{setSettings:(e,{payload:t})=>q0(e,t)}}),{setSettings:ike}=nke,oke=rke,ake=({settings:e,setSettings:t})=>g.jsx(hd,{children:g.jsx(wae,{settings:e,updateSettings:t,defaultShortUrlsListOrdering:AW})}),ske=(e,t)=>{e.serviceFactory("Settings",()=>ake),e.decorator("Settings",O0),e.decorator("Settings",t(["settings"],["setSettings","resetSelectedServer"])),e.serviceFactory("setSettings",()=>ike)};var YO,_8;function lke(){return _8||(_8=1,YO=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(x){var _=[];for(var w in x)_.push(w);return _};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(x){if(!(this instanceof p))return new p(x);a.call(this,x),s.call(this,x),x&&x.readable===!1&&(this.readable=!1),x&&x.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,x&&x.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",v)}function v(){this.allowHalfOpen||this._writableState.ended||n.nextTick(b,this)}function b(x){x.end()}Object.defineProperty(p.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(p.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(x){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=x,this._writableState.destroyed=x)}}),p.prototype._destroy=function(x,_){this.push(null),this.end(),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,D){if(s()<D)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(M=new Uint8Array(D)).__proto__=u.prototype:(M===null&&(M=new u(D)),M.length=D),M}function u(M,D,Y){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(M,D,Y);if(typeof M=="number"){if(typeof D=="string")throw new Error("If encoding is specified then the first argument must be a string");return v(this,M)}return h(this,M,D,Y)}function h(M,D,Y,ue){if(typeof D=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&D instanceof ArrayBuffer?function(ie,he,Se,Fe){if(he.byteLength,Se<0||he.byteLength<Se)throw new RangeError("'offset' is out of bounds");if(he.byteLength<Se+(Fe||0))throw new RangeError("'length' is out of bounds");return he=Se===void 0&&Fe===void 0?new Uint8Array(he):Fe===void 0?new Uint8Array(he,Se):new Uint8Array(he,Se,Fe),u.TYPED_ARRAY_SUPPORT?(ie=he).__proto__=u.prototype:ie=b(ie,he),ie}(M,D,Y,ue):typeof D=="string"?function(ie,he,Se){if(typeof Se=="string"&&Se!==""||(Se="utf8"),!u.isEncoding(Se))throw new TypeError('"encoding" must be a valid string encoding');var Fe=0|_(he,Se),ge=(ie=c(ie,Fe)).write(he,Se);return ge!==Fe&&(ie=ie.slice(0,ge)),ie}(M,D,Y):function(ie,he){if(u.isBuffer(he)){var Se=0|x(he.length);return(ie=c(ie,Se)).length===0||he.copy(ie,0,0,Se),ie}if(he){if(typeof ArrayBuffer<"u"&&he.buffer instanceof ArrayBuffer||"length"in he)return typeof he.length!="number"||function(Fe){return Fe!=Fe}(he.length)?c(ie,0):b(ie,he);if(he.type==="Buffer"&&a(he.data))return b(ie,he.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(M,D)}function p(M){if(typeof M!="number")throw new TypeError('"size" argument must be a number');if(M<0)throw new RangeError('"size" argument must not be negative')}function v(M,D){if(p(D),M=c(M,D<0?0:0|x(D)),!u.TYPED_ARRAY_SUPPORT)for(var Y=0;Y<D;++Y)M[Y]=0;return M}function b(M,D){var Y=D.length<0?0:0|x(D.length);M=c(M,Y);for(var ue=0;ue<Y;ue+=1)M[ue]=255&D[ue];return M}function x(M){if(M>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|M}function _(M,D){if(u.isBuffer(M))return M.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(M)||M instanceof ArrayBuffer))return M.byteLength;typeof M!="string"&&(M=""+M);var Y=M.length;if(Y===0)return 0;for(var ue=!1;;)switch(D){case"ascii":case"latin1":case"binary":return Y;case"utf8":case"utf-8":case void 0:return ce(M).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*Y;case"hex":return Y>>>1;case"base64":return de(M).length;default:if(ue)return ce(M).length;D=(""+D).toLowerCase(),ue=!0}}function w(M,D,Y){var ue=M[D];M[D]=M[Y],M[Y]=ue}function O(M,D,Y,ue,ie){if(M.length===0)return-1;if(typeof Y=="string"?(ue=Y,Y=0):Y>2147483647?Y=2147483647:Y<-2147483648&&(Y=-2147483648),Y=+Y,isNaN(Y)&&(Y=ie?0:M.length-1),Y<0&&(Y=M.length+Y),Y>=M.length){if(ie)return-1;Y=M.length-1}else if(Y<0){if(!ie)return-1;Y=0}if(typeof D=="string"&&(D=u.from(D,ue)),u.isBuffer(D))return D.length===0?-1:S(M,D,Y,ue,ie);if(typeof D=="number")return D&=255,u.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?ie?Uint8Array.prototype.indexOf.call(M,D,Y):Uint8Array.prototype.lastIndexOf.call(M,D,Y):S(M,[D],Y,ue,ie);throw new TypeError("val must be string, number or Buffer")}function S(M,D,Y,ue,ie){var he,Se=1,Fe=M.length,ge=D.length;if(ue!==void 0&&((ue=String(ue).toLowerCase())==="ucs2"||ue==="ucs-2"||ue==="utf16le"||ue==="utf-16le")){if(M.length<2||D.length<2)return-1;Se=2,Fe/=2,ge/=2,Y/=2}function Ee(Be,qe){return Se===1?Be[qe]:Be.readUInt16BE(qe*Se)}if(ie){var je=-1;for(he=Y;he<Fe;he++)if(Ee(M,he)===Ee(D,je===-1?0:he-je)){if(je===-1&&(je=he),he-je+1===ge)return je*Se}else je!==-1&&(he-=he-je),je=-1}else for(Y+ge>Fe&&(Y=Fe-ge),he=Y;he>=0;he--){for(var Me=!0,He=0;He<ge;He++)if(Ee(M,he+He)!==Ee(D,He)){Me=!1;break}if(Me)return he}return-1}function E(M,D,Y,ue){Y=Number(Y)||0;var ie=M.length-Y;ue?(ue=Number(ue))>ie&&(ue=ie):ue=ie;var he=D.length;if(he%2!=0)throw new TypeError("Invalid hex string");ue>he/2&&(ue=he/2);for(var Se=0;Se<ue;++Se){var Fe=parseInt(D.substr(2*Se,2),16);if(isNaN(Fe))return Se;M[Y+Se]=Fe}return Se}function T(M,D,Y,ue){return be(ce(D,M.length-Y),M,Y,ue)}function A(M,D,Y,ue){return be(function(ie){for(var he=[],Se=0;Se<ie.length;++Se)he.push(255&ie.charCodeAt(Se));return he}(D),M,Y,ue)}function j(M,D,Y,ue){return A(M,D,Y,ue)}function N(M,D,Y,ue){return be(de(D),M,Y,ue)}function F(M,D,Y,ue){return be(function(ie,he){for(var Se,Fe,ge,Ee=[],je=0;je<ie.length&&!((he-=2)<0);++je)Fe=(Se=ie.charCodeAt(je))>>8,ge=Se%256,Ee.push(ge),Ee.push(Fe);return Ee}(D,M.length-Y),M,Y,ue)}function V(M,D,Y){return D===0&&Y===M.length?i.fromByteArray(M):i.fromByteArray(M.slice(D,Y))}function B(M,D,Y){Y=Math.min(M.length,Y);for(var ue=[],ie=D;ie<Y;){var he,Se,Fe,ge,Ee=M[ie],je=null,Me=Ee>239?4:Ee>223?3:Ee>191?2:1;if(ie+Me<=Y)switch(Me){case 1:Ee<128&&(je=Ee);break;case 2:(192&(he=M[ie+1]))==128&&(ge=(31&Ee)<<6|63&he)>127&&(je=ge);break;case 3:he=M[ie+1],Se=M[ie+2],(192&he)==128&&(192&Se)==128&&(ge=(15&Ee)<<12|(63&he)<<6|63&Se)>2047&&(ge<55296||ge>57343)&&(je=ge);break;case 4:he=M[ie+1],Se=M[ie+2],Fe=M[ie+3],(192&he)==128&&(192&Se)==128&&(192&Fe)==128&&(ge=(15&Ee)<<18|(63&he)<<12|(63&Se)<<6|63&Fe)>65535&&ge<1114112&&(je=ge)}je===null?(je=65533,Me=1):je>65535&&(je-=65536,ue.push(je>>>10&1023|55296),je=56320|1023&je),ue.push(je),ie+=Me}return function(He){var 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,D,Y){return h(null,M,D,Y)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(M,D,Y){return function(ue,ie,he,Se){return p(ie),ie<=0?c(ue,ie):he!==void 0?typeof Se=="string"?c(ue,ie).fill(he,Se):c(ue,ie).fill(he):c(ue,ie)}(null,M,D,Y)},u.allocUnsafe=function(M){return v(null,M)},u.allocUnsafeSlow=function(M){return v(null,M)},u.isBuffer=function(M){return!(M==null||!M._isBuffer)},u.compare=function(M,D){if(!u.isBuffer(M)||!u.isBuffer(D))throw new TypeError("Arguments must be Buffers");if(M===D)return 0;for(var Y=M.length,ue=D.length,ie=0,he=Math.min(Y,ue);ie<he;++ie)if(M[ie]!==D[ie]){Y=M[ie],ue=D[ie];break}return Y<ue?-1:ue<Y?1:0},u.isEncoding=function(M){switch(String(M).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(M,D){if(!a(M))throw new TypeError('"list" argument must be an Array of Buffers');if(M.length===0)return u.alloc(0);var Y;if(D===void 0)for(D=0,Y=0;Y<M.length;++Y)D+=M[Y].length;var ue=u.allocUnsafe(D),ie=0;for(Y=0;Y<M.length;++Y){var he=M[Y];if(!u.isBuffer(he))throw new TypeError('"list" argument must be an Array of Buffers');he.copy(ue,ie),ie+=he.length}return ue},u.byteLength=_,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var M=this.length;if(M%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var D=0;D<M;D+=2)w(this,D,D+1);return this},u.prototype.swap32=function(){var M=this.length;if(M%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var D=0;D<M;D+=4)w(this,D,D+3),w(this,D+1,D+2);return this},u.prototype.swap64=function(){var M=this.length;if(M%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var D=0;D<M;D+=8)w(this,D,D+7),w(this,D+1,D+6),w(this,D+2,D+5),w(this,D+3,D+4);return this},u.prototype.toString=function(){var M=0|this.length;return M===0?"":arguments.length===0?B(this,0,M):(function(D,Y,ue){var ie=!1;if((Y===void 0||Y<0)&&(Y=0),Y>this.length||((ue===void 0||ue>this.length)&&(ue=this.length),ue<=0)||(ue>>>=0)<=(Y>>>=0))return"";for(D||(D="utf8");;)switch(D){case"hex":return Q(this,Y,ue);case"utf8":case"utf-8":return B(this,Y,ue);case"ascii":return 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: "+D);D=(D+"").toLowerCase(),ie=!0}}).apply(this,arguments)},u.prototype.equals=function(M){if(!u.isBuffer(M))throw new TypeError("Argument must be a Buffer");return this===M||u.compare(this,M)===0},u.prototype.inspect=function(){var M="",D=t.INSPECT_MAX_BYTES;return this.length>0&&(M=this.toString("hex",0,D).match(/.{2}/g).join(" "),this.length>D&&(M+=" ... ")),"<Buffer "+M+">"},u.prototype.compare=function(M,D,Y,ue,ie){if(!u.isBuffer(M))throw new TypeError("Argument must be a Buffer");if(D===void 0&&(D=0),Y===void 0&&(Y=M?M.length:0),ue===void 0&&(ue=0),ie===void 0&&(ie=this.length),D<0||Y>M.length||ue<0||ie>this.length)throw new RangeError("out of range index");if(ue>=ie&&D>=Y)return 0;if(ue>=ie)return-1;if(D>=Y)return 1;if(D>>>=0,Y>>>=0,ue>>>=0,ie>>>=0,this===M)return 0;for(var he=ie-ue,Se=Y-D,Fe=Math.min(he,Se),ge=this.slice(ue,ie),Ee=M.slice(D,Y),je=0;je<Fe;++je)if(ge[je]!==Ee[je]){he=ge[je],Se=Ee[je];break}return he<Se?-1:Se<he?1:0},u.prototype.includes=function(M,D,Y){return this.indexOf(M,D,Y)!==-1},u.prototype.indexOf=function(M,D,Y){return O(this,M,D,Y,!0)},u.prototype.lastIndexOf=function(M,D,Y){return O(this,M,D,Y,!1)},u.prototype.write=function(M,D,Y,ue){if(D===void 0)ue="utf8",Y=this.length,D=0;else if(Y===void 0&&typeof D=="string")ue=D,Y=this.length,D=0;else{if(!isFinite(D))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");D|=0,isFinite(Y)?(Y|=0,ue===void 0&&(ue="utf8")):(ue=Y,Y=void 0)}var ie=this.length-D;if((Y===void 0||Y>ie)&&(Y=ie),M.length>0&&(Y<0||D<0)||D>this.length)throw new RangeError("Attempt to write outside buffer bounds");ue||(ue="utf8");for(var he=!1;;)switch(ue){case"hex":return E(this,M,D,Y);case"utf8":case"utf-8":return T(this,M,D,Y);case"ascii":return A(this,M,D,Y);case"latin1":case"binary":return j(this,M,D,Y);case"base64":return N(this,M,D,Y);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,M,D,Y);default:if(he)throw new TypeError("Unknown encoding: "+ue);ue=(""+ue).toLowerCase(),he=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var W=4096;function q(M,D,Y){var ue="";Y=Math.min(M.length,Y);for(var ie=D;ie<Y;++ie)ue+=String.fromCharCode(127&M[ie]);return ue}function J(M,D,Y){var ue="";Y=Math.min(M.length,Y);for(var ie=D;ie<Y;++ie)ue+=String.fromCharCode(M[ie]);return ue}function Q(M,D,Y){var ue=M.length;(!D||D<0)&&(D=0),(!Y||Y<0||Y>ue)&&(Y=ue);for(var ie="",he=D;he<Y;++he)ie+=le(M[he]);return ie}function ne(M,D,Y){for(var ue=M.slice(D,Y),ie="",he=0;he<ue.length;he+=2)ie+=String.fromCharCode(ue[he]+256*ue[he+1]);return ie}function ae(M,D,Y){if(M%1!=0||M<0)throw new RangeError("offset is not uint");if(M+D>Y)throw new RangeError("Trying to access beyond buffer length")}function se(M,D,Y,ue,ie,he){if(!u.isBuffer(M))throw new TypeError('"buffer" argument must be a Buffer instance');if(D>ie||D<he)throw new RangeError('"value" argument is out of bounds');if(Y+ue>M.length)throw new RangeError("Index out of range")}function oe(M,D,Y,ue){D<0&&(D=65535+D+1);for(var ie=0,he=Math.min(M.length-Y,2);ie<he;++ie)M[Y+ie]=(D&255<<8*(ue?ie:1-ie))>>>8*(ue?ie:1-ie)}function K(M,D,Y,ue){D<0&&(D=4294967295+D+1);for(var ie=0,he=Math.min(M.length-Y,4);ie<he;++ie)M[Y+ie]=D>>>8*(ue?ie:3-ie)&255}function G(M,D,Y,ue,ie,he){if(Y+ue>M.length)throw new RangeError("Index out of range");if(Y<0)throw new RangeError("Index out of range")}function z(M,D,Y,ue,ie){return ie||G(M,0,Y,4),o.write(M,D,Y,ue,23,4),Y+4}function re(M,D,Y,ue,ie){return ie||G(M,0,Y,8),o.write(M,D,Y,ue,52,8),Y+8}u.prototype.slice=function(M,D){var Y,ue=this.length;if(M=~~M,D=D===void 0?ue:~~D,M<0?(M+=ue)<0&&(M=0):M>ue&&(M=ue),D<0?(D+=ue)<0&&(D=0):D>ue&&(D=ue),D<M&&(D=M),u.TYPED_ARRAY_SUPPORT)(Y=this.subarray(M,D)).__proto__=u.prototype;else{var ie=D-M;Y=new u(ie,void 0);for(var he=0;he<ie;++he)Y[he]=this[he+M]}return Y},u.prototype.readUIntLE=function(M,D,Y){M|=0,D|=0,Y||ae(M,D,this.length);for(var ue=this[M],ie=1,he=0;++he<D&&(ie*=256);)ue+=this[M+he]*ie;return ue},u.prototype.readUIntBE=function(M,D,Y){M|=0,D|=0,Y||ae(M,D,this.length);for(var ue=this[M+--D],ie=1;D>0&&(ie*=256);)ue+=this[M+--D]*ie;return ue},u.prototype.readUInt8=function(M,D){return D||ae(M,1,this.length),this[M]},u.prototype.readUInt16LE=function(M,D){return D||ae(M,2,this.length),this[M]|this[M+1]<<8},u.prototype.readUInt16BE=function(M,D){return D||ae(M,2,this.length),this[M]<<8|this[M+1]},u.prototype.readUInt32LE=function(M,D){return D||ae(M,4,this.length),(this[M]|this[M+1]<<8|this[M+2]<<16)+16777216*this[M+3]},u.prototype.readUInt32BE=function(M,D){return D||ae(M,4,this.length),16777216*this[M]+(this[M+1]<<16|this[M+2]<<8|this[M+3])},u.prototype.readIntLE=function(M,D,Y){M|=0,D|=0,Y||ae(M,D,this.length);for(var ue=this[M],ie=1,he=0;++he<D&&(ie*=256);)ue+=this[M+he]*ie;return ue>=(ie*=128)&&(ue-=Math.pow(2,8*D)),ue},u.prototype.readIntBE=function(M,D,Y){M|=0,D|=0,Y||ae(M,D,this.length);for(var ue=D,ie=1,he=this[M+--ue];ue>0&&(ie*=256);)he+=this[M+--ue]*ie;return he>=(ie*=128)&&(he-=Math.pow(2,8*D)),he},u.prototype.readInt8=function(M,D){return D||ae(M,1,this.length),128&this[M]?-1*(255-this[M]+1):this[M]},u.prototype.readInt16LE=function(M,D){D||ae(M,2,this.length);var Y=this[M]|this[M+1]<<8;return 32768&Y?4294901760|Y:Y},u.prototype.readInt16BE=function(M,D){D||ae(M,2,this.length);var Y=this[M+1]|this[M]<<8;return 32768&Y?4294901760|Y:Y},u.prototype.readInt32LE=function(M,D){return D||ae(M,4,this.length),this[M]|this[M+1]<<8|this[M+2]<<16|this[M+3]<<24},u.prototype.readInt32BE=function(M,D){return D||ae(M,4,this.length),this[M]<<24|this[M+1]<<16|this[M+2]<<8|this[M+3]},u.prototype.readFloatLE=function(M,D){return D||ae(M,4,this.length),o.read(this,M,!0,23,4)},u.prototype.readFloatBE=function(M,D){return D||ae(M,4,this.length),o.read(this,M,!1,23,4)},u.prototype.readDoubleLE=function(M,D){return D||ae(M,8,this.length),o.read(this,M,!0,52,8)},u.prototype.readDoubleBE=function(M,D){return D||ae(M,8,this.length),o.read(this,M,!1,52,8)},u.prototype.writeUIntLE=function(M,D,Y,ue){M=+M,D|=0,Y|=0,ue||se(this,M,D,Y,Math.pow(2,8*Y)-1,0);var ie=1,he=0;for(this[D]=255&M;++he<Y&&(ie*=256);)this[D+he]=M/ie&255;return D+Y},u.prototype.writeUIntBE=function(M,D,Y,ue){M=+M,D|=0,Y|=0,ue||se(this,M,D,Y,Math.pow(2,8*Y)-1,0);var ie=Y-1,he=1;for(this[D+ie]=255&M;--ie>=0&&(he*=256);)this[D+ie]=M/he&255;return D+Y},u.prototype.writeUInt8=function(M,D,Y){return M=+M,D|=0,Y||se(this,M,D,1,255,0),u.TYPED_ARRAY_SUPPORT||(M=Math.floor(M)),this[D]=255&M,D+1},u.prototype.writeUInt16LE=function(M,D,Y){return M=+M,D|=0,Y||se(this,M,D,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[D]=255&M,this[D+1]=M>>>8):oe(this,M,D,!0),D+2},u.prototype.writeUInt16BE=function(M,D,Y){return M=+M,D|=0,Y||se(this,M,D,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[D]=M>>>8,this[D+1]=255&M):oe(this,M,D,!1),D+2},u.prototype.writeUInt32LE=function(M,D,Y){return M=+M,D|=0,Y||se(this,M,D,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[D+3]=M>>>24,this[D+2]=M>>>16,this[D+1]=M>>>8,this[D]=255&M):K(this,M,D,!0),D+4},u.prototype.writeUInt32BE=function(M,D,Y){return M=+M,D|=0,Y||se(this,M,D,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[D]=M>>>24,this[D+1]=M>>>16,this[D+2]=M>>>8,this[D+3]=255&M):K(this,M,D,!1),D+4},u.prototype.writeIntLE=function(M,D,Y,ue){if(M=+M,D|=0,!ue){var ie=Math.pow(2,8*Y-1);se(this,M,D,Y,ie-1,-ie)}var he=0,Se=1,Fe=0;for(this[D]=255&M;++he<Y&&(Se*=256);)M<0&&Fe===0&&this[D+he-1]!==0&&(Fe=1),this[D+he]=(M/Se>>0)-Fe&255;return D+Y},u.prototype.writeIntBE=function(M,D,Y,ue){if(M=+M,D|=0,!ue){var ie=Math.pow(2,8*Y-1);se(this,M,D,Y,ie-1,-ie)}var he=Y-1,Se=1,Fe=0;for(this[D+he]=255&M;--he>=0&&(Se*=256);)M<0&&Fe===0&&this[D+he+1]!==0&&(Fe=1),this[D+he]=(M/Se>>0)-Fe&255;return D+Y},u.prototype.writeInt8=function(M,D,Y){return M=+M,D|=0,Y||se(this,M,D,1,127,-128),u.TYPED_ARRAY_SUPPORT||(M=Math.floor(M)),M<0&&(M=255+M+1),this[D]=255&M,D+1},u.prototype.writeInt16LE=function(M,D,Y){return M=+M,D|=0,Y||se(this,M,D,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[D]=255&M,this[D+1]=M>>>8):oe(this,M,D,!0),D+2},u.prototype.writeInt16BE=function(M,D,Y){return M=+M,D|=0,Y||se(this,M,D,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[D]=M>>>8,this[D+1]=255&M):oe(this,M,D,!1),D+2},u.prototype.writeInt32LE=function(M,D,Y){return M=+M,D|=0,Y||se(this,M,D,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[D]=255&M,this[D+1]=M>>>8,this[D+2]=M>>>16,this[D+3]=M>>>24):K(this,M,D,!0),D+4},u.prototype.writeInt32BE=function(M,D,Y){return M=+M,D|=0,Y||se(this,M,D,4,2147483647,-2147483648),M<0&&(M=4294967295+M+1),u.TYPED_ARRAY_SUPPORT?(this[D]=M>>>24,this[D+1]=M>>>16,this[D+2]=M>>>8,this[D+3]=255&M):K(this,M,D,!1),D+4},u.prototype.writeFloatLE=function(M,D,Y){return z(this,M,D,!0,Y)},u.prototype.writeFloatBE=function(M,D,Y){return z(this,M,D,!1,Y)},u.prototype.writeDoubleLE=function(M,D,Y){return re(this,M,D,!0,Y)},u.prototype.writeDoubleBE=function(M,D,Y){return re(this,M,D,!1,Y)},u.prototype.copy=function(M,D,Y,ue){if(Y||(Y=0),ue||ue===0||(ue=this.length),D>=M.length&&(D=M.length),D||(D=0),ue>0&&ue<Y&&(ue=Y),ue===Y||M.length===0||this.length===0)return 0;if(D<0)throw new RangeError("targetStart out of bounds");if(Y<0||Y>=this.length)throw new RangeError("sourceStart out of bounds");if(ue<0)throw new RangeError("sourceEnd out of bounds");ue>this.length&&(ue=this.length),M.length-D<ue-Y&&(ue=M.length-D+Y);var ie,he=ue-Y;if(this===M&&Y<D&&D<ue)for(ie=he-1;ie>=0;--ie)M[ie+D]=this[ie+Y];else if(he<1e3||!u.TYPED_ARRAY_SUPPORT)for(ie=0;ie<he;++ie)M[ie+D]=this[ie+Y];else Uint8Array.prototype.set.call(M,this.subarray(Y,Y+he),D);return he},u.prototype.fill=function(M,D,Y,ue){if(typeof M=="string"){if(typeof D=="string"?(ue=D,D=0,Y=this.length):typeof Y=="string"&&(ue=Y,Y=this.length),M.length===1){var ie=M.charCodeAt(0);ie<256&&(M=ie)}if(ue!==void 0&&typeof ue!="string")throw new TypeError("encoding must be a string");if(typeof ue=="string"&&!u.isEncoding(ue))throw new TypeError("Unknown encoding: "+ue)}else typeof M=="number"&&(M&=255);if(D<0||this.length<D||this.length<Y)throw new RangeError("Out of range index");if(Y<=D)return this;var he;if(D>>>=0,Y=Y===void 0?this.length:Y>>>0,M||(M=0),typeof M=="number")for(he=D;he<Y;++he)this[he]=M;else{var Se=u.isBuffer(M)?M:ce(new u(M,ue).toString()),Fe=Se.length;for(he=0;he<Y-D;++he)this[he+D]=Se[he%Fe]}return this};var X=/[^+\/0-9A-Za-z-_]/g;function le(M){return M<16?"0"+M.toString(16):M.toString(16)}function ce(M,D){var Y;D=D||1/0;for(var ue=M.length,ie=null,he=[],Se=0;Se<ue;++Se){if((Y=M.charCodeAt(Se))>55295&&Y<57344){if(!ie){if(Y>56319){(D-=3)>-1&&he.push(239,191,189);continue}if(Se+1===ue){(D-=3)>-1&&he.push(239,191,189);continue}ie=Y;continue}if(Y<56320){(D-=3)>-1&&he.push(239,191,189),ie=Y;continue}Y=65536+(ie-55296<<10|Y-56320)}else ie&&(D-=3)>-1&&he.push(239,191,189);if(ie=null,Y<128){if((D-=1)<0)break;he.push(Y)}else if(Y<2048){if((D-=2)<0)break;he.push(Y>>6|192,63&Y|128)}else if(Y<65536){if((D-=3)<0)break;he.push(Y>>12|224,Y>>6&63|128,63&Y|128)}else{if(!(Y<1114112))throw new Error("Invalid code point");if((D-=4)<0)break;he.push(Y>>18|240,Y>>12&63|128,Y>>6&63|128,63&Y|128)}}return he}function de(M){return i.toByteArray(function(D){if((D=function(Y){return Y.trim?Y.trim():Y.replace(/^\s+|\s+$/g,"")}(D).replace(X,"")).length<2)return"";for(;D.length%4!=0;)D+="=";return D}(M))}function be(M,D,Y,ue){for(var ie=0;ie<ue&&!(ie+Y>=D.length||ie>=M.length);++ie)D[ie+Y]=M[ie];return ie}}).call(this,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(S){if(n===clearTimeout)return clearTimeout(S);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(S);try{n(S)}catch{try{return n.call(null,S)}catch{return n.call(this,S)}}}(w)}}function x(w,O){this.fun=w,this.array=O}function _(){}i.nextTick=function(w){var O=new Array(arguments.length-1);if(arguments.length>1)for(var S=1;S<arguments.length;S++)O[S-1]=arguments[S];u.push(new x(w,O)),u.length!==1||h||s(b)},x.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=_,i.addListener=_,i.once=_,i.off=_,i.removeListener=_,i.removeAllListeners=_,i.emit=_,i.prependListener=_,i.prependOnceListener=_,i.listeners=function(w){return[]},i.binding=function(w){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(w){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,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=E;var c,u=!n.browser&&["v0.10","v0.9."].indexOf(n.version.slice(0,5))>-1?i:a.nextTick;E.WritableState=S;var h=r(5);h.inherits=r(2);var p,v={deprecate:r(44)},b=r(24),x=r(7).Buffer,_=o.Uint8Array||function(){},w=r(25);function O(){}function S(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 E(B){if(c=c||r(1),!(p.call(E,this)||this instanceof c))return new E(B);this._writableState=new S(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(E,b),S.prototype.getBuffer=function(){for(var B=this.bufferedRequest,W=[];B;)W.push(B),B=B.next;return W},function(){try{Object.defineProperty(S.prototype,"buffer",{get:v.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(E,Symbol.hasInstance,{value:function(B){return!!p.call(this,B)||this===E&&B&&B._writableState instanceof S}})):p=function(B){return B instanceof this},E.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},E.prototype.write=function(B,W,q){var J=this._writableState,Q=!1,ne=!J.objectMode&&function(ae){return x.isBuffer(ae)||ae instanceof _}(B);return ne&&!x.isBuffer(B)&&(B=function(ae){return x.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=x.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},E.prototype.cork=function(){this._writableState.corked++},E.prototype.uncork=function(){var B=this._writableState;B.corked&&(B.corked--,B.writing||B.corked||B.finished||B.bufferProcessing||!B.bufferedRequest||j(this,B))},E.prototype.setDefaultEncoding=function(B){if(typeof B=="string"&&(B=B.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((B+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+B);return this._writableState.defaultEncoding=B,this},Object.defineProperty(E.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),E.prototype._write=function(B,W,q){q(new Error("_write() is not implemented"))},E.prototype._writev=null,E.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(E.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(B){this._writableState&&(this._writableState.destroyed=B)}}),E.prototype.destroy=w.destroy,E.prototype._undestroy=w.undestroy,E.prototype._destroy=function(B,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,x){if(!c[b]){if(!s[b]){var _=typeof _dereq_=="function"&&_dereq_;if(!x&&_)return _(b,!0);if(p)return p(b,!0);var w=new Error("Cannot find module '"+b+"'");throw w.code="MODULE_NOT_FOUND",w}var O=c[b]={exports:{}};s[b][0].call(O.exports,function(S){return h(s[b][1][S]||S)},O,O.exports,a,s,c,u)}return c[b].exports}for(var p=typeof _dereq_=="function"&&_dereq_,v=0;v<u.length;v++)h(u[v]);return h}({1:[function(a,s,c){s.exports=function(u){var h=u._SomePromiseArray;function p(v){var b=new h(v),x=b.promise();return b.setHowMany(1),b.setUnwrap(),b.init(),x}u.any=function(v){return p(v)},u.prototype.any=function(){return p(this)}}},{}],2:[function(a,s,c){var u;try{throw new Error}catch(O){u=O}var h=a("./schedule"),p=a("./queue"),v=a("./util");function b(){this._customScheduler=!1,this._isTickUsed=!1,this._lateQueue=new p(16),this._normalQueue=new p(16),this._haveDrainedQueues=!1,this._trampolineEnabled=!0;var O=this;this.drainQueues=function(){O._drainQueues()},this._schedule=h}function x(O,S,E){this._lateQueue.push(O,S,E),this._queueTick()}function _(O,S,E){this._normalQueue.push(O,S,E),this._queueTick()}function w(O){this._normalQueue._pushOne(O),this._queueTick()}b.prototype.setScheduler=function(O){var S=this._schedule;return this._schedule=O,this._customScheduler=!0,S},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,S){S?(n.stderr.write("Fatal "+(O instanceof Error?O.stack:O)+`
`),n.exit(2)):this.throwLater(O)},b.prototype.throwLater=function(O,S){if(arguments.length===1&&(S=O,O=function(){throw S}),typeof setTimeout<"u")setTimeout(function(){O(S)},0);else try{this._schedule(function(){O(S)})}catch{throw new Error(`No async scheduler available
See http://goo.gl/MqrFmX
`)}},v.hasDevTools?(b.prototype.invokeLater=function(O,S,E){this._trampolineEnabled?x.call(this,O,S,E):this._schedule(function(){setTimeout(function(){O.call(S,E)},100)})},b.prototype.invoke=function(O,S,E){this._trampolineEnabled?_.call(this,O,S,E):this._schedule(function(){O.call(S,E)})},b.prototype.settlePromises=function(O){this._trampolineEnabled?w.call(this,O):this._schedule(function(){O._settlePromises()})}):(b.prototype.invokeLater=x,b.prototype.invoke=_,b.prototype.settlePromises=w),b.prototype._drainQueue=function(O){for(;O.length()>0;){var S=O.shift();if(typeof S=="function"){var E=O.shift(),T=O.shift();S.call(E,T)}else S._settlePromises()}},b.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)},b.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},b.prototype._reset=function(){this._isTickUsed=!1},s.exports=b,s.exports.firstLineError=u},{"./queue":26,"./schedule":29,"./util":36}],3:[function(a,s,c){s.exports=function(u,h,p,v){var b=!1,x=function(S,E){this._reject(E)},_=function(S,E){E.promiseRejectionQueued=!0,E.bindingPromise._then(x,x,null,this,S)},w=function(S,E){!(50397184&this._bitField)&&this._resolveCallback(E.target)},O=function(S,E){E.promiseRejectionQueued||this._reject(S)};u.prototype.bind=function(S){b||(b=!0,u.prototype._propagateFrom=v.propagateFromFunction(),u.prototype._boundValue=v.boundValueFunction());var E=p(S),T=new u(h);T._propagateFrom(this,1);var A=this._target();if(T._setBoundTo(E),E instanceof u){var j={promiseRejectionQueued:!1,promise:T,target:A,bindingPromise:E};A._then(h,_,void 0,T,j),E._then(w,O,void 0,T,j),T._setOnCancel(E)}else T._resolveCallback(A);return T},u.prototype._setBoundTo=function(S){S!==void 0?(this._bitField=2097152|this._bitField,this._boundTo=S):this._bitField=-2097153&this._bitField},u.prototype._isBound=function(){return(2097152&this._bitField)==2097152},u.bind=function(S,E){return u.resolve(E).bind(S)}}},{}],4:[function(a,s,c){var u;typeof Promise<"u"&&(u=Promise);var h=a("./promise")();h.noConflict=function(){try{Promise===h&&(Promise=u)}catch{}return h},s.exports=h},{"./promise":22}],5:[function(a,s,c){var u=Object.create;if(u){var h=u(null),p=u(null);h[" size"]=p[" size"]=0}s.exports=function(v){var b=a("./util"),x=b.canEvaluate;function _(S){return function(E,T){var A;if(E!=null&&(A=E[T]),typeof A!="function"){var j="Object "+b.classString(E)+" has no method '"+b.toString(T)+"'";throw new v.TypeError(j)}return A}(S,this.pop()).apply(S,this)}function w(S){return S[this]}function O(S){var E=+this;return E<0&&(E=Math.max(0,E+S.length)),S[E]}b.isIdentifier,v.prototype.call=function(S){var E=[].slice.call(arguments,1);return E.push(S),this._then(_,void 0,void 0,E,void 0)},v.prototype.get=function(S){var E;if(typeof S=="number")E=O;else if(x){var T=(void 0)(S);E=T!==null?T:w}else E=w;return this._then(E,void 0,void 0,S,void 0)}}},{"./util":36}],6:[function(a,s,c){s.exports=function(u,h,p,v){var b=a("./util"),x=b.tryCatch,_=b.errorObj,w=u._async;u.prototype.break=u.prototype.cancel=function(){if(!v.cancellation())return this._warn("cancellation is disabled");for(var O=this,S=O;O._isCancellable();){if(!O._cancelBy(S)){S._isFollowing()?S._followee().cancel():S._cancelBranched();break}var E=O._cancellationParent;if(E==null||!E._isCancellable()){O._isFollowing()?O._followee().cancel():O._cancelBranched();break}O._isFollowing()&&O._followee().cancel(),O._setWillBeCancelled(),S=O,O=E}},u.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},u.prototype._enoughBranchesHaveCancelled=function(){return this._branchesRemainingToCancel===void 0||this._branchesRemainingToCancel<=0},u.prototype._cancelBy=function(O){return O===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),!!this._enoughBranchesHaveCancelled()&&(this._invokeOnCancel(),!0))},u.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},u.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),w.invoke(this._cancelPromises,this,void 0))},u.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},u.prototype._unsetOnCancel=function(){this._onCancelField=void 0},u.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},u.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},u.prototype._doInvokeOnCancel=function(O,S){if(b.isArray(O))for(var E=0;E<O.length;++E)this._doInvokeOnCancel(O[E],S);else if(O!==void 0)if(typeof O=="function"){if(!S){var T=x(O).call(this._boundValue());T===_&&(this._attachExtraTrace(T.e),w.throwLater(T.e))}}else O._resultCancelled(this)},u.prototype._invokeOnCancel=function(){var O=this._onCancel();this._unsetOnCancel(),w.invoke(this._doInvokeOnCancel,this,O)},u.prototype._invokeInternalOnCancel=function(){this._isCancellable()&&(this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel())},u.prototype._resultCancelled=function(){this.cancel()}}},{"./util":36}],7:[function(a,s,c){s.exports=function(u){var h=a("./util"),p=a("./es5").keys,v=h.tryCatch,b=h.errorObj;return function(x,_,w){return function(O){var S=w._boundValue();e:for(var E=0;E<x.length;++E){var T=x[E];if(T===Error||T!=null&&T.prototype instanceof Error){if(O instanceof T)return v(_).call(S,O)}else if(typeof T=="function"){var A=v(T).call(S,O);if(A===b)return A;if(A)return v(_).call(S,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(_).call(S,O)}}return u}}}},{"./es5":13,"./util":36}],8:[function(a,s,c){s.exports=function(u){var h=!1,p=[];function v(){this._trace=new v.CapturedTrace(b())}function b(){var x=p.length-1;if(x>=0)return p[x]}return u.prototype._promiseCreated=function(){},u.prototype._pushContext=function(){},u.prototype._popContext=function(){return null},u._peekContext=u.prototype._peekContext=function(){},v.prototype._pushContext=function(){this._trace!==void 0&&(this._trace._promiseCreated=null,p.push(this._trace))},v.prototype._popContext=function(){if(this._trace!==void 0){var x=p.pop(),_=x._promiseCreated;return x._promiseCreated=null,_}return null},v.CapturedTrace=null,v.create=function(){if(h)return new v},v.deactivateLongStackTraces=function(){},v.activateLongStackTraces=function(){var x=u.prototype._pushContext,_=u.prototype._popContext,w=u._peekContext,O=u.prototype._peekContext,S=u.prototype._promiseCreated;v.deactivateLongStackTraces=function(){u.prototype._pushContext=x,u.prototype._popContext=_,u._peekContext=w,u.prototype._peekContext=O,u.prototype._promiseCreated=S,h=!1},h=!0,u.prototype._pushContext=v.prototype._pushContext,u.prototype._popContext=v.prototype._popContext,u._peekContext=u.prototype._peekContext=b,u.prototype._promiseCreated=function(){var E=this._peekContext();E&&E._promiseCreated==null&&(E._promiseCreated=this)}},v}},{}],9:[function(a,s,c){s.exports=function(u,h){var p,v,b,x=u._getDomain,_=u._async,w=a("./errors").Warning,O=a("./util"),S=O.canAttachTrace,E=/[\\\/]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=x();v=typeof ye=="function"?we===null?ye:O.domainBind(we,ye):void 0},u.onUnhandledRejectionHandled=function(ye){var we=x();p=typeof ye=="function"?we===null?ye:O.domainBind(we,ye):void 0};var J=function(){};u.longStackTraces=function(){if(_.haveItemsQueued()&&!qe.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created
See http://goo.gl/MqrFmX
`);if(!qe.longStackTraces&&ge()){var ye=u.prototype._captureStackTrace,we=u.prototype._attachExtraTrace;qe.longStackTraces=!0,J=function(){if(_.haveItemsQueued()&&!qe.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created
See http://goo.gl/MqrFmX
`);u.prototype._captureStackTrace=ye,u.prototype._attachExtraTrace=we,h.deactivateLongStackTraces(),_.enableTrampoline(),qe.longStackTraces=!1},u.prototype._captureStackTrace=M,u.prototype._attachExtraTrace=D,h.activateLongStackTraces(),_.disableTrampolineIfNecessary()}},u.hasLongStackTraces=function(){return qe.longStackTraces&&ge()};var Q=function(){try{if(typeof CustomEvent=="function"){var ye=new CustomEvent("CustomEvent");return O.global.dispatchEvent(ye),function(we,Ae){var ke=new CustomEvent(we.toLowerCase(),{detail:Ae,cancelable:!0});return!O.global.dispatchEvent(ke)}}return typeof Event=="function"?(ye=new Event("CustomEvent"),O.global.dispatchEvent(ye),function(we,Ae){var ke=new Event(we.toLowerCase(),{cancelable:!0});return ke.detail=Ae,!O.global.dispatchEvent(ke)}):((ye=document.createEvent("CustomEvent")).initCustomEvent("testingtheevent",!1,!0,{}),O.global.dispatchEvent(ye),function(we,Ae){var ke=document.createEvent("CustomEvent");return ke.initCustomEvent(we.toLowerCase(),!1,!0,Ae),!O.global.dispatchEvent(ke)})}catch{}return function(){return!1}}(),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){_.throwLater(ke),we=!0}var Ae=!1;try{Ae=Q(ye,se[ye].apply(null,arguments))}catch(ke){_.throwLater(ke),Ae=!0}return Ae||we};function K(){return!1}function G(ye,we,Ae){var ke=this;try{ye(we,Ae,function(De){if(typeof De!="function")throw new TypeError("onCancel must be a function, got: "+O.toString(De));ke._attachCancellationCallback(De)})}catch(De){return De}}function z(ye){if(!this._isCancellable())return this;var we=this._onCancel();we!==void 0?O.isArray(we)?we.push(ye):this._setOnCancel([we,ye]):this._setOnCancel(ye)}function 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(_.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 D(ye,we){if(S(ye)){var Ae=this._trace;if(Ae!==void 0&&we&&(Ae=Ae._parent),Ae!==void 0)Ae.attachExtraTrace(ye);else if(!ye.__stackCleaned__){var ke=ie(ye);O.notEnumerableProp(ye,"stack",ke.message+`
`+ke.stack.join(`
`)),O.notEnumerableProp(ye,"__stackCleaned__",!0)}}}function Y(ye,we,Ae){if(qe.warnings){var ke,De=new w(ye);if(we)Ae._attachExtraTrace(De);else if(qe.longStackTraces&&(ke=u._peekContext()))ke.attachExtraTrace(De);else{var Ke=ie(De);De.stack=Ke.message+`
`+Ke.stack.join(`
`)}oe("warning",De)||he(De,"",!0)}}function ue(ye){for(var we=[],Ae=0;Ae<ye.length;++Ae){var ke=ye[Ae],De=ke===" (No stack trace)"||j.test(ke),Ke=De&&Ee(ke);De&&!Ke&&(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){_.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 Ee=function(){return!1},je=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function Me(ye){var we=ye.match(je);if(we)return{fileName:we[1],line:parseInt(we[2],10)}}function He(ye){this._parent=ye,this._promisesCreated=0;var we=this._length=1+(ye===void 0?0:ye._length);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,er=Xe[xt],Kt=-1,Ar=Ot.length-1;Ar>=0;--Ar)if(Ot[Ar]===er){Kt=Ar;break}for(Ar=Kt;Ar>=0;--Ar){var Ir=Ot[Ar];if(Xe[xt]!==Ir)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 Ee=function(Ke){return E.test(Ke)},function(Ke,Xe){Error.stackTraceLimit+=6,Ae(Ke,Xe),Error.stackTraceLimit-=6}}var ke,De=new Error;if(typeof De.stack=="string"&&De.stack.split(`
`)[0].indexOf("stackDetection@")>=0)return j=/@/,N=we,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 er=Ot[xt];if(!T.test(er)){var Kt=er.match(A);Kt&&(Ke="at "+Kt[1]+":"+Kt[2]+":"+Kt[3]+" ");break}}if(Ot.length>0){var Ar=Ot[0];for(xt=0;xt<bt.length;++xt)if(bt[xt]===Ar){xt>0&&(Xe=`
`+bt[xt-1]);break}}}var Ir="a promise was created in a "+Ae+"handler "+Ke+"but was not returned from it, see http://goo.gl/rRqMUw"+Xe;ke._warn(Ir,!0,we)}},setBounds:function(ye,we){if(ge()){for(var Ae,ke,De=ye.stack.split(`
`),Ke=we.stack.split(`
`),Xe=-1,bt=-1,Ot=0;Ot<De.length;++Ot)if(xt=Me(De[Ot])){Ae=xt.fileName,Xe=xt.line;break}for(Ot=0;Ot<Ke.length;++Ot){var xt;if(xt=Me(Ke[Ot])){ke=xt.fileName,bt=xt.line;break}}Xe<0||bt<0||!Ae||!ke||Ae!==ke||Xe>=bt||(Ee=function(er){if(E.test(er))return!0;var Kt=Me(er);return!!(Kt&&Kt.fileName===Ae&&Xe<=Kt.line&&Kt.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(x){return p(this,x,h,0)._then(b,void 0,void 0,this,void 0)},u.prototype.mapSeries=function(x){return p(this,x,h,h)},u.each=function(x,_){return p(x,_,h,0)._then(b,void 0,void 0,x,void 0)},u.mapSeries=function(x,_){return p(x,_,h,h)}}},{}],12:[function(a,s,c){var u,h,p=a("./es5"),v=p.freeze,b=a("./util"),x=b.inherits,_=b.notEnumerableProp;function w(B,W){function q(J){if(!(this instanceof q))return new q(J);_(this,"message",typeof J=="string"?J:W),_(this,"name",B),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return x(q,Error),q}var O=w("Warning","warning"),S=w("CancellationError","cancellation error"),E=w("TimeoutError","timeout error"),T=w("AggregateError","aggregate error");try{u=TypeError,h=RangeError}catch{u=w("TypeError","type error"),h=w("RangeError","range error")}for(var A="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),j=0;j<A.length;++j)typeof Array.prototype[A[j]]=="function"&&(T.prototype[A[j]]=Array.prototype[A[j]]);p.defineProperty(T.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0}),T.prototype.isOperational=!0;var N=0;function F(B){if(!(this instanceof F))return new F(B);_(this,"name","OperationalError"),_(this,"message",B),this.cause=B,this.isOperational=!0,B instanceof Error?(_(this,"message",B.message),_(this,"stack",B.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}T.prototype.toString=function(){var B=Array(4*N+1).join(" "),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},x(F,Error);var V=Error.__BluebirdErrorTypes__;V||(V=v({CancellationError:S,TimeoutError:E,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(x){var _=[];for(var w in x)h.call(x,w)&&_.push(w);return _};s.exports={isArray:function(x){try{return p.call(x)==="[object Array]"}catch{return!1}},keys:b,names:b,defineProperty:function(x,_,w){return x[_]=w.value,x},getDescriptor:function(x,_){return{value:x[_]}},freeze:function(x){return x},getPrototypeOf:function(x){try{return Object(x).constructor.prototype}catch{return v}},isES5:u,propertyIsWritable:function(){return!0}}}},{}],14:[function(a,s,c){s.exports=function(u,h){var p=u.map;u.prototype.filter=function(v,b){return p(this,v,b,h)},u.filter=function(v,b,x){return p(v,b,x,h)}}},{}],15:[function(a,s,c){s.exports=function(u,h,p){var v=a("./util"),b=u.CancellationError,x=v.errorObj,_=a("./catch_filter")(p);function w(j,N,F){this.promise=j,this.type=N,this.handler=F,this.called=!1,this.cancelPromise=null}function O(j){this.finallyHandler=j}function S(j,N){return j.cancelPromise!=null&&(arguments.length>1?j.cancelPromise._reject(N):j.cancelPromise._cancel(),j.cancelPromise=null,!0)}function E(){return A.call(this,this.promise._target()._settledValue())}function T(j){if(!S(this,j))return x.e=j,x}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),x.e=W,x}B.isPending()&&B._attachCancellationCallback(new O(this))}return B._then(E,T,void 0,this,void 0)}}}return N.isRejected()?(S(this),x.e=j,x):(S(this),j)}return w.prototype.isFinallyHandler=function(){return this.type===0},O.prototype._resultCancelled=function(){S(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(_(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,x){var _=a("./errors").TypeError,w=a("./util"),O=w.errorObj,S=w.tryCatch,E=[];function T(A,j,N,F){if(x.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(E):E,this._yieldedPromise=null,this._cancellationPhase=!1}w.inherits(T,b),T.prototype._isResolved=function(){return this._promise===null},T.prototype._cleanup=function(){this._promise=this._generator=null,x.cancellation()&&this._finallyPromise!==null&&(this._finallyPromise._fulfill(),this._finallyPromise=null)},T.prototype._promiseCancelled=function(){if(!this._isResolved()){var A;if(this._generator.return!==void 0)this._promise._pushContext(),A=S(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=S(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=S(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=S(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=S(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 _(`A value %s was yielded that could not be treated as a promise
See http://goo.gl/MqrFmX
`.replace("%s",String(N))+`From coroutine:
`+this._stack.split(`
`).slice(1,-7).join(`
`)))},u.coroutine=function(A,j){if(typeof A!="function")throw new _(`generatorFunction must be a function
See http://goo.gl/MqrFmX
`);var N=Object(j).yieldHandler,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 _("expecting a function but got "+w.classString(A));E.push(A)},u.spawn=function(A){if(x.deprecated("Promise.spawn()","Promise.coroutine()"),typeof A!="function")return h(`generatorFunction must be a function
See http://goo.gl/MqrFmX
`);var j=new T(A,this),N=j.promise();return j._run(u.spawn),N}}},{"./errors":12,"./util":36}],17:[function(a,s,c){s.exports=function(u,h,p,v,b,x){var _=a("./util");_.canEvaluate,_.tryCatch,_.errorObj,u.join=function(){var w,O=arguments.length-1;O>0&&typeof arguments[O]=="function"&&(w=arguments[O]);var S=[].slice.call(arguments);w&&S.pop();var E=new h(S).promise();return w!==void 0?E.spread(w):E}}},{"./util":36}],18:[function(a,s,c){s.exports=function(u,h,p,v,b,x){var _=u._getDomain,w=a("./util"),O=w.tryCatch,S=w.errorObj,E=u._async;function T(j,N,F,V){this.constructor$(j),this._promise._captureStackTrace();var B=_();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=[],E.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(x.checkForgottenReturns(ne,ae,B!==null?"Promise.filter":"Promise.map",q),ne===S)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 x=a("./util"),_=x.tryCatch;u.method=function(w){if(typeof w!="function")throw new u.TypeError("expecting a function but got "+x.classString(w));return function(){var O=new u(h);O._captureStackTrace(),O._pushContext();var S=_(w).apply(this,arguments),E=O._popContext();return b.checkForgottenReturns(S,E,"Promise.method",O),O._resolveFromSyncValue(S),O}},u.attempt=u.try=function(w){if(typeof w!="function")return v("expecting a function but got "+x.classString(w));var O,S=new u(h);if(S._captureStackTrace(),S._pushContext(),arguments.length>1){b.deprecated("calling Promise.try with more than 1 argument");var E=arguments[1],T=arguments[2];O=x.isArray(E)?_(w).apply(T,E):_(w).call(T,E)}else O=_(w)();var A=S._popContext();return b.checkForgottenReturns(O,A,"Promise.try",S),S._resolveFromSyncValue(O),S},u.prototype._resolveFromSyncValue=function(w){w===x.errorObj?this._rejectCallback(w.e,!1):this._resolveCallback(w,!0)}}},{"./util":36}],20:[function(a,s,c){var u=a("./util"),h=u.maybeWrapAsError,p=a("./errors").OperationalError,v=a("./es5"),b=/^(?:name|message|stack|cause)$/;function x(_){var w;if(function(T){return T instanceof Error&&v.getPrototypeOf(T)===Error.prototype}(_)){(w=new p(_)).name=_.name,w.message=_.message,w.stack=_.stack;for(var O=v.keys(_),S=0;S<O.length;++S){var E=O[S];b.test(E)||(w[E]=_[E])}return w}return u.markAsOriginatingFromRejection(_),_}s.exports=function(_,w){return function(O,S){if(_!==null){if(O){var E=x(h(O));_._attachExtraTrace(E),_._reject(E)}else if(w){var T=[].slice.call(arguments,1);_._fulfill(T)}else _._fulfill(S);_=null}}}},{"./errors":12,"./es5":13,"./util":36}],21:[function(a,s,c){s.exports=function(u){var h=a("./util"),p=u._async,v=h.tryCatch,b=h.errorObj;function x(O,S){if(!h.isArray(O))return _.call(this,O,S);var E=v(S).apply(this._boundValue(),[null].concat(O));E===b&&p.throwLater(E.e)}function _(O,S){var E=this._boundValue(),T=O===void 0?v(S).call(E,null):v(S).call(E,null,O);T===b&&p.throwLater(T.e)}function w(O,S){if(!O){var E=new Error(O+"");E.cause=O,O=E}var T=v(S).call(this._boundValue(),O);T===b&&p.throwLater(T.e)}u.prototype.asCallback=u.prototype.nodeify=function(O,S){if(typeof O=="function"){var E=_;S!==void 0&&Object(S).spread&&(E=x),this._then(E,w,void 0,this,O)}return this}}},{"./util":36}],22:[function(a,s,c){s.exports=function(){var u=function(){return new T(`circular promise resolution chain
See http://goo.gl/MqrFmX
`)},h=function(){return new K.PromiseInspection(this._target())},p=function(X){return K.reject(new T(X))};function v(){}var b,x={},_=a("./util");b=_.isNode?function(){var X=n.domain;return X===void 0&&(X=null),X}:function(){return null},_.notEnumerableProp(K,"_getDomain",b);var w=a("./es5"),O=a("./async"),S=new O;w.defineProperty(K,"_async",{value:S});var E=a("./errors"),T=K.TypeError=E.TypeError;K.RangeError=E.RangeError;var A=K.CancellationError=E.CancellationError;K.TimeoutError=E.TimeoutError,K.OperationalError=E.OperationalError,K.RejectionError=E.OperationalError,K.AggregateError=E.AggregateError;var j=function(){},N={},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=_.errorObj,oe=_.tryCatch;function K(X){X!==j&&function(le,ce){if(le==null||le.constructor!==K)throw new T(`the promise constructor cannot be invoked directly
See http://goo.gl/MqrFmX
`);if(typeof ce!="function")throw new T("expecting a function but got "+_.classString(ce))}(this,X),this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,this._resolveFromExecutor(X),this._promiseCreated(),this._fireEvent("promiseCreated",this)}function G(X){this.promise._resolveCallback(X)}function z(X){this.promise._rejectCallback(X,!1)}function 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(!_.isObject(M))return p("Catch statement predicate: expecting an object but got "+_.classString(M));de[be++]=M}return de.length=be,X=arguments[ce],this.then(void 0,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: "+_.classString(X);arguments.length>1&&(ce+=", "+_.classString(le)),this._warn(ce)}return this._then(X,le,void 0,void 0,void 0)},K.prototype.done=function(X,le){this._then(X,le,void 0,void 0,void 0)._setIsFinal()},K.prototype.spread=function(X){return typeof X!="function"?p("expecting a function but got "+_.classString(X)):this.all()._then(X,void 0,void 0,N,void 0)},K.prototype.toJSON=function(){var X={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(X.fulfillmentValue=this.value(),X.isFulfilled=!0):this.isRejected()&&(X.rejectionReason=this.reason(),X.isRejected=!0),X},K.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new B(this).promise()},K.prototype.error=function(X){return this.caught(_.originatesFromRejection,X)},K.getNewLibraryCopy=s.exports,K.is=function(X){return X instanceof K},K.fromNode=K.fromCallback=function(X){var le=new K(j);le._captureStackTrace();var ce=arguments.length>1&&!!Object(arguments[1]).multiArgs,de=oe(X)(ae(le,ce));return de===se&&le._rejectCallback(de.e,!0),le._isFateSealed()||le._setAsyncGuaranteed(),le},K.all=function(X){return new B(X).promise()},K.cast=function(X){var le=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 "+_.classString(X));return S.setScheduler(X)},K.prototype._then=function(X,le,ce,de,be){var M=be!==void 0,D=M?be:new K(j),Y=this._target(),ue=Y._bitField;M||(D._propagateFrom(this,3),D._captureStackTrace(),de===void 0&&2097152&this._bitField&&(de=50397184&ue?this._boundValue():Y===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,D));var ie=b();if(50397184&ue){var he,Se,Fe=Y._settlePromiseCtx;33554432&ue?(Se=Y._rejectionHandler0,he=X):16777216&ue?(Se=Y._fulfillmentHandler0,he=le,Y._unsetRejectionIsUnhandled()):(Fe=Y._settlePromiseLateCancellationObserver,Se=new A("late cancellation observer"),Y._attachExtraTrace(Se),he=le),S.invoke(Fe,Y,{handler:ie===null?he:typeof he=="function"&&_.domainBind(ie,he),promise:D,receiver:de,value:Se})}else Y._addCallbacks(X,le,D,de,ie);return D},K.prototype._length=function(){return 65535&this._bitField},K.prototype._isFateSealed=function(){return(117506048&this._bitField)!=0},K.prototype._isFollowing=function(){return(67108864&this._bitField)==67108864},K.prototype._setLength=function(X){this._bitField=-65536&this._bitField|65535&X},K.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},K.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},K.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},K.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},K.prototype._isFinal=function(){return(4194304&this._bitField)>0},K.prototype._unsetCancelled=function(){this._bitField=-65537&this._bitField},K.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},K.prototype._setWillBeCancelled=function(){this._bitField=8388608|this._bitField},K.prototype._setAsyncGuaranteed=function(){S.hasCustomScheduler()||(this._bitField=134217728|this._bitField)},K.prototype._receiverAt=function(X){var le=X===0?this._receiver0:this[4*X-4+3];if(le!==x)return le===void 0&&this._isBound()?this._boundValue():le},K.prototype._promiseAt=function(X){return this[4*X-4+2]},K.prototype._fulfillmentHandlerAt=function(X){return this[4*X-4+0]},K.prototype._rejectionHandlerAt=function(X){return this[4*X-4+1]},K.prototype._boundValue=function(){},K.prototype._migrateCallback0=function(X){X._bitField;var le=X._fulfillmentHandler0,ce=X._rejectionHandler0,de=X._promise0,be=X._receiverAt(0);be===void 0&&(be=x),this._addCallbacks(le,ce,de,be,null)},K.prototype._migrateCallbackAt=function(X,le){var ce=X._fulfillmentHandlerAt(le),de=X._rejectionHandlerAt(le),be=X._promiseAt(le),M=X._receiverAt(le);M===void 0&&(M=x),this._addCallbacks(ce,de,be,M,null)},K.prototype._addCallbacks=function(X,le,ce,de,be){var M=this._length();if(M>=65531&&(M=0,this._setLength(0)),M===0)this._promise0=ce,this._receiver0=de,typeof X=="function"&&(this._fulfillmentHandler0=be===null?X:_.domainBind(be,X)),typeof le=="function"&&(this._rejectionHandler0=be===null?le:_.domainBind(be,le));else{var D=4*M-4;this[D+2]=ce,this[D+3]=de,typeof X=="function"&&(this[D+0]=be===null?X:_.domainBind(be,X)),typeof le=="function"&&(this[D+1]=be===null?le:_.domainBind(be,le))}return this._setLength(M+1),M},K.prototype._proxy=function(X,le){this._addCallbacks(void 0,void 0,le,X,null)},K.prototype._resolveCallback=function(X,le){if(!(117506048&this._bitField)){if(X===this)return this._rejectCallback(u(),!1);var ce=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 D=1;D<M;++D)de._migrateCallbackAt(this,D);this._setFollowing(),this._setLength(0),this._setFollowee(de)}}else this._reject(u())}},K.prototype._rejectCallback=function(X,le,ce){var de=_.ensureErrorObject(X),be=de===X;if(!be&&!ce&&J.warnings()){var M="a promise was rejected with a non-error: "+_.classString(X);this._warn(M,!0)}this._attachExtraTrace(de,!!le&&be),this._reject(X)},K.prototype._resolveFromExecutor=function(X){if(X!==j){var le=this;this._captureStackTrace(),this._pushContext();var ce=!0,de=this._execute(X,function(be){le._resolveCallback(be)},function(be){le._rejectCallback(be,ce)});ce=!1,this._popContext(),de!==void 0&&le._rejectCallback(de,!0)}},K.prototype._settlePromiseFromHandler=function(X,le,ce,de){var be=de._bitField;if(!(65536&be)){var M;de._pushContext(),le===N?ce&&typeof ce.length=="number"?M=oe(X).apply(this._boundValue(),ce):(M=se).e=new T("cannot .spread() a non-array: "+_.classString(ce)):M=oe(X).call(le,ce);var D=de._popContext();!(65536&(be=de._bitField))&&(M===F?de._reject(ce):M===se?de._rejectCallback(M.e,!1):(J.checkForgottenReturns(M,D,"",de,this),de._resolveCallback(M)))}},K.prototype._target=function(){for(var X=this;X._isFollowing();)X=X._followee();return X},K.prototype._followee=function(){return this._rejectionHandler0},K.prototype._setFollowee=function(X){this._rejectionHandler0=X},K.prototype._settlePromise=function(X,le,ce,de){var be=X instanceof K,M=this._bitField,D=(134217728&M)!=0;65536&M?(be&&X._invokeInternalOnCancel(),ce instanceof Q&&ce.isFinallyHandler()?(ce.cancelPromise=X,oe(le).call(ce,de)===se&&X._reject(se.e)):le===h?X._fulfill(h.call(ce)):ce instanceof v?ce._promiseCancelled(X):be||X instanceof B?X._cancel():ce.cancel()):typeof le=="function"?be?(D&&X._setAsyncGuaranteed(),this._settlePromiseFromHandler(le,ce,de,X)):le.call(ce,de,X):ce instanceof v?ce._isResolved()||(33554432&M?ce._promiseFulfilled(de,X):ce._promiseRejected(de,X)):be&&(D&&X._setAsyncGuaranteed(),33554432&M?X._fulfill(de):X._reject(de))},K.prototype._settlePromiseLateCancellationObserver=function(X){var le=X.handler,ce=X.promise,de=X.receiver,be=X.value;typeof le=="function"?ce instanceof K?this._settlePromiseFromHandler(le,de,be,ce):le.call(de,be,ce):ce instanceof K&&ce._reject(be)},K.prototype._settlePromiseCtx=function(X){this._settlePromise(X.promise,X.handler,X.receiver,X.value)},K.prototype._settlePromise0=function(X,le,ce){var de=this._promise0,be=this._receiverAt(0);this._promise0=void 0,this._receiver0=void 0,this._settlePromise(de,X,be,le)},K.prototype._clearCallbackDataAtIndex=function(X){var le=4*X-4;this[le+2]=this[le+3]=this[le+0]=this[le+1]=void 0},K.prototype._fulfill=function(X){var le=this._bitField;if(!((117506048&le)>>>16)){if(X===this){var ce=u();return this._attachExtraTrace(ce),this._reject(ce)}this._setFulfilled(),this._rejectionHandler0=X,(65535&le)>0&&(134217728&le?this._settlePromises():S.settlePromises(this))}},K.prototype._reject=function(X){var le=this._bitField;if(!((117506048&le)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=X,this._isFinal())return S.fatalError(X,_.isNode);(65535&le)>0?S.settlePromises(this):this._ensurePossibleRejectionHandled()}},K.prototype._fulfillPromises=function(X,le){for(var ce=1;ce<X;ce++){var de=this._fulfillmentHandlerAt(ce),be=this._promiseAt(ce),M=this._receiverAt(ce);this._clearCallbackDataAtIndex(ce),this._settlePromise(be,de,M,le)}},K.prototype._rejectPromises=function(X,le){for(var ce=1;ce<X;ce++){var de=this._rejectionHandlerAt(ce),be=this._promiseAt(ce),M=this._receiverAt(ce);this._clearCallbackDataAtIndex(ce),this._settlePromise(be,de,M,le)}},K.prototype._settlePromises=function(){var X=this._bitField,le=65535&X;if(le>0){if(16842752&X){var ce=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,ce,X),this._rejectPromises(le,ce)}else{var de=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,de,X),this._fulfillPromises(le,de)}this._setLength(0)}this._clearCancellationData()},K.prototype._settledValue=function(){var X=this._bitField;return 33554432&X?this._rejectionHandler0:16777216&X?this._fulfillmentHandler0:void 0},K.defer=K.pending=function(){return J.deprecated("Promise.defer","new Promise"),{promise:new K(j),resolve:G,reject:z}},_.notEnumerableProp(K,"_makeSelfResolutionError",u),a("./method")(K,j,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,S,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),_.toFastProperties(K),_.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,_.lastLineError),K}},{"./any.js":1,"./async":2,"./bind":3,"./call_get.js":5,"./cancel":6,"./catch_filter":7,"./context":8,"./debuggability":9,"./direct_resolve":10,"./each.js":11,"./errors":12,"./es5":13,"./filter.js":14,"./finally":15,"./generators.js":16,"./join":17,"./map.js":18,"./method":19,"./nodeback":20,"./nodeify.js":21,"./promise_array":23,"./promisify.js":24,"./props.js":25,"./race.js":27,"./reduce.js":28,"./settle.js":30,"./some.js":31,"./synchronous_inspection":32,"./thenables":33,"./timers.js":34,"./using.js":35,"./util":36}],23:[function(a,s,c){s.exports=function(u,h,p,v,b){var x=a("./util");function _(w){var O=this._promise=new u(h);w instanceof u&&O._propagateFrom(w,3),O._setOnCancel(this),this._values=w,this._length=0,this._totalResolved=0,this._init(void 0,-2)}return x.isArray,x.inherits(_,b),_.prototype.length=function(){return this._length},_.prototype.promise=function(){return this._promise},_.prototype._init=function w(O,S){var E=p(this._values,this._promise);if(E instanceof u){var T=(E=E._target())._bitField;if(this._values=E,(50397184&T)==0)return this._promise._setAsyncGuaranteed(),E._then(w,this._reject,void 0,this,S);if(!(33554432&T))return 16777216&T?this._reject(E._reason()):this._cancel();E=E._value()}if((E=x.asArray(E))!==null)E.length!==0?this._iterate(E):S===-5?this._resolveEmptyArray():this._resolve(function(j){switch(S){case-2:return[];case-3:return{};case-6:return new Map}}());else{var A=v("expecting an array or an iterable object but got "+x.classString(E)).reason();this._promise._rejectCallback(A,!1)}},_.prototype._iterate=function(w){var O=this.getActualLength(w.length);this._length=O,this._values=this.shouldCopyValues()?new Array(O):this._values;for(var S=this._promise,E=!1,T=null,A=0;A<O;++A){var j=p(w[A],S);T=j instanceof u?(j=j._target())._bitField:null,E?T!==null&&j.suppressUnhandledRejections():T!==null?50397184&T?E=33554432&T?this._promiseFulfilled(j._value(),A):16777216&T?this._promiseRejected(j._reason(),A):this._promiseCancelled(A):(j._proxy(this,A),this._values[A]=j):E=this._promiseFulfilled(j,A)}E||S._setAsyncGuaranteed()},_.prototype._isResolved=function(){return this._values===null},_.prototype._resolve=function(w){this._values=null,this._promise._fulfill(w)},_.prototype._cancel=function(){!this._isResolved()&&this._promise._isCancellable()&&(this._values=null,this._promise._cancel())},_.prototype._reject=function(w){this._values=null,this._promise._rejectCallback(w,!1)},_.prototype._promiseFulfilled=function(w,O){return this._values[O]=w,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},_.prototype._promiseCancelled=function(){return this._cancel(),!0},_.prototype._promiseRejected=function(w){return this._totalResolved++,this._reject(w),!0},_.prototype._resultCancelled=function(){if(!this._isResolved()){var w=this._values;if(this._cancel(),w instanceof u)w.cancel();else for(var O=0;O<w.length;++O)w[O]instanceof u&&w[O].cancel()}},_.prototype.shouldCopyValues=function(){return!0},_.prototype.getActualLength=function(w){return w},_}},{"./util":36}],24:[function(a,s,c){s.exports=function(u,h){var p={},v=a("./util"),b=a("./nodeback"),x=v.withAppended,_=v.maybeWrapAsError,w=v.canEvaluate,O=a("./errors").TypeError,S={__isPromisified__:!0},E=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!E.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,S);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,x(arguments,le))}catch(ce){re._rejectCallback(_(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,x=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 S(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 E(T){var A,j=p(T);return _(j)?(A=j instanceof u?j._then(u.props,void 0,void 0,void 0,void 0):new S(j).promise(),j instanceof u&&A._propagateFrom(j,2),A):v(`cannot await properties of a non-object
See http://goo.gl/MqrFmX
`)}x.inherits(S,h),S.prototype._init=function(){},S.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},S.prototype.shouldCopyValues=function(){return!1},S.prototype.getActualLength=function(T){return T>>1},u.prototype.props=function(){return E(this)},u.props=function(T){return E(T)}}},{"./es5":13,"./util":36}],26:[function(a,s,c){function u(h){this._capacity=h,this._length=0,this._front=0}u.prototype._willBeOverCapacity=function(h){return this._capacity<h},u.prototype._pushOne=function(h){var p=this.length();this._checkCapacity(p+1),this[this._front+p&this._capacity-1]=h,this._length=p+1},u.prototype.push=function(h,p,v){var b=this.length()+3;if(this._willBeOverCapacity(b))return this._pushOne(h),this._pushOne(p),void this._pushOne(v);var x=this._front+b-3;this._checkCapacity(b);var _=this._capacity-1;this[x+0&_]=h,this[x+1&_]=p,this[x+2&_]=v,this._length=b},u.prototype.shift=function(){var h=this._front,p=this[h];return this[h]=void 0,this._front=h+1&this._capacity-1,this._length--,p},u.prototype.length=function(){return this._length},u.prototype._checkCapacity=function(h){this._capacity<h&&this._resizeTo(this._capacity<<1)},u.prototype._resizeTo=function(h){var p=this._capacity;this._capacity=h,function(v,b,x,_,w){for(var O=0;O<w;++O)x[O+_]=v[O+0],v[O+0]=void 0}(this,0,this,p,this._front+this._length&p-1)},s.exports=u},{}],27:[function(a,s,c){s.exports=function(u,h,p,v){var b=a("./util"),x=function(w){return w.then(function(O){return _(O,w)})};function _(w,O){var S=p(w);if(S instanceof u)return x(S);if((w=b.asArray(w))===null)return v("expecting an array or an iterable object but got "+b.classString(w));var E=new u(h);O!==void 0&&E._propagateFrom(O,3);for(var T=E._fulfill,A=E._reject,j=0,N=w.length;j<N;++j){var F=w[j];(F!==void 0||j in w)&&u.cast(F)._then(T,A,void 0,E,null)}return E}u.race=function(w){return _(w,void 0)},u.prototype.race=function(){return _(this,void 0)}}},{"./util":36}],28:[function(a,s,c){s.exports=function(u,h,p,v,b,x){var _=u._getDomain,w=a("./util"),O=w.tryCatch;function S(N,F,V,B){this.constructor$(N);var W=_();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 E(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 S(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 x.checkForgottenReturns(F,q,V._eachValues!==void 0?"Promise.each":"Promise.reduce",B),F}w.inherits(S,h),S.prototype._gotAccum=function(N){this._eachValues!==void 0&&this._eachValues!==null&&N!==b&&this._eachValues.push(N)},S.prototype._eachComplete=function(N){return this._eachValues!==null&&this._eachValues.push(N),this._eachValues},S.prototype._init=function(){},S.prototype._resolveEmptyArray=function(){this._resolve(this._eachValues!==void 0?this._eachValues:this._initialValue)},S.prototype.shouldCopyValues=function(){return!1},S.prototype._resolve=function(N){this._promise._resolveCallback(N),this._values=null},S.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())},S.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(E,E,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(_){v.call(i,_)}:function(_){b.call(n,_)}}else if(typeof p=="function"&&typeof p.resolve=="function"){var x=p.resolve();u=function(_){x.then(_)}}else u=typeof MutationObserver>"u"||typeof window<"u"&&window.navigator&&(window.navigator.standalone||window.cordova)?o!==void 0?function(_){o(_)}:typeof setTimeout<"u"?function(_){setTimeout(_,0)}:function(){throw new Error(`No async scheduler available
See http://goo.gl/MqrFmX
`)}:function(){var _=document.createElement("div"),w={attributes:!0},O=!1,S=document.createElement("div");return new MutationObserver(function(){_.classList.toggle("foo"),O=!1}).observe(S,w),function(E){var T=new MutationObserver(function(){T.disconnect(),E()});T.observe(_,w),O||(O=!0,S.classList.toggle("foo"))}}();s.exports=u},{"./util":36}],30:[function(a,s,c){s.exports=function(u,h,p){var v=u.PromiseInspection;function b(x){this.constructor$(x)}a("./util").inherits(b,h),b.prototype._promiseResolved=function(x,_){return this._values[x]=_,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},b.prototype._promiseFulfilled=function(x,_){var w=new v;return w._bitField=33554432,w._settledValueField=x,this._promiseResolved(_,w)},b.prototype._promiseRejected=function(x,_){var w=new v;return w._bitField=16777216,w._settledValueField=x,this._promiseResolved(_,w)},u.settle=function(x){return p.deprecated(".settle()",".reflect()"),new b(x).promise()},u.prototype.settle=function(){return u.settle(this)}}},{"./util":36}],31:[function(a,s,c){s.exports=function(u,h,p){var v=a("./util"),b=a("./errors").RangeError,x=a("./errors").AggregateError,_=v.isArray,w={};function O(E){this.constructor$(E),this._howMany=0,this._unwrap=!1,this._initialized=!1}function S(E,T){if((0|T)!==T||T<0)return p(`expecting a positive integer
See http://goo.gl/MqrFmX
`);var A=new O(E),j=A.promise();return A.setHowMany(T),A.init(),j}v.inherits(O,h),O.prototype._init=function(){if(this._initialized)if(this._howMany!==0){this._init$(void 0,-5);var E=_(this._values);!this._isResolved()&&E&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}else this._resolve([])},O.prototype.init=function(){this._initialized=!0,this._init()},O.prototype.setUnwrap=function(){this._unwrap=!0},O.prototype.howMany=function(){return this._howMany},O.prototype.setHowMany=function(E){this._howMany=E},O.prototype._promiseFulfilled=function(E){return this._addFulfilled(E),this._fulfilled()===this.howMany()&&(this._values.length=this.howMany(),this.howMany()===1&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0)},O.prototype._promiseRejected=function(E){return this._addRejected(E),this._checkOutcome()},O.prototype._promiseCancelled=function(){return this._values instanceof u||this._values==null?this._cancel():(this._addRejected(w),this._checkOutcome())},O.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var E=new x,T=this.length();T<this._values.length;++T)this._values[T]!==w&&E.push(this._values[T]);return E.length>0?this._reject(E):this._cancel(),!0}return!1},O.prototype._fulfilled=function(){return this._totalResolved},O.prototype._rejected=function(){return this._values.length-this.length()},O.prototype._addRejected=function(E){this._values.push(E)},O.prototype._addFulfilled=function(E){this._values[this._totalResolved++]=E},O.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},O.prototype._getRangeError=function(E){var T="Input array must contain at least "+this._howMany+" items but contains only "+E+" items";return new b(T)},O.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},u.some=function(E,T){return S(E,T)},u.prototype.some=function(E){return S(this,E)},u._SomePromiseArray=O}},{"./errors":12,"./util":36}],32:[function(a,s,c){s.exports=function(u){function h(O){O!==void 0?(O=O._target(),this._bitField=O._bitField,this._settledValueField=O._isFateSealed()?O._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}h.prototype._settledValue=function(){return this._settledValueField};var p=h.prototype.value=function(){if(!this.isFulfilled())throw new TypeError(`cannot get fulfillment value of a non-fulfilled promise
See http://goo.gl/MqrFmX
`);return this._settledValue()},v=h.prototype.error=h.prototype.reason=function(){if(!this.isRejected())throw new TypeError(`cannot get rejection reason of a non-rejected promise
See http://goo.gl/MqrFmX
`);return this._settledValue()},b=h.prototype.isFulfilled=function(){return(33554432&this._bitField)!=0},x=h.prototype.isRejected=function(){return(16777216&this._bitField)!=0},_=h.prototype.isPending=function(){return(50397184&this._bitField)==0},w=h.prototype.isResolved=function(){return(50331648&this._bitField)!=0};h.prototype.isCancelled=function(){return(8454144&this._bitField)!=0},u.prototype.__isCancelled=function(){return(65536&this._bitField)==65536},u.prototype._isCancelled=function(){return this._target().__isCancelled()},u.prototype.isCancelled=function(){return(8454144&this._target()._bitField)!=0},u.prototype.isPending=function(){return _.call(this._target())},u.prototype.isRejected=function(){return x.call(this._target())},u.prototype.isFulfilled=function(){return b.call(this._target())},u.prototype.isResolved=function(){return w.call(this._target())},u.prototype.value=function(){return p.call(this._target())},u.prototype.reason=function(){var O=this._target();return O._unsetRejectionIsUnhandled(),v.call(O)},u.prototype._value=function(){return this._settledValue()},u.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},u.PromiseInspection=h}},{}],33:[function(a,s,c){s.exports=function(u,h){var p=a("./util"),v=p.errorObj,b=p.isObject,x={}.hasOwnProperty;return function(_,w){if(b(_)){if(_ instanceof u)return _;var O=function(E){try{return function(T){return T.then}(E)}catch(T){return v.e=T,v}}(_);if(O===v){w&&w._pushContext();var S=u.reject(O.e);return w&&w._popContext(),S}if(typeof O=="function")return function(E){try{return x.call(E,"_promise0")}catch{return!1}}(_)?(S=new u(h),_._then(S._fulfill,S._reject,void 0,S,null),S):function(E,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(E,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}(_,O,w)}return _}}},{"./util":36}],34:[function(a,s,c){s.exports=function(u,h,p){var v=a("./util"),b=u.TimeoutError;function x(E){this.handle=E}x.prototype._resultCancelled=function(){clearTimeout(this.handle)};var _=function(E){return w(+this).thenReturn(E)},w=u.delay=function(E,T){var A,j;return T!==void 0?(A=u.resolve(T)._then(_,null,null,E,void 0),p.cancellation()&&T instanceof u&&A._setOnCancel(T)):(A=new u(h),j=setTimeout(function(){A._fulfill()},+E),p.cancellation()&&A._setOnCancel(new x(j)),A._captureStackTrace()),A._setAsyncGuaranteed(),A};function O(E){return clearTimeout(this.handle),E}function S(E){throw clearTimeout(this.handle),E}u.prototype.delay=function(E){return w(E,this)},u.prototype.timeout=function(E,T){var A,j;E=+E;var N=new x(setTimeout(function(){A.isPending()&&function(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)},E));return p.cancellation()?(j=this.then(),(A=j._then(O,S,void 0,N,void 0))._setOnCancel(N)):A=this._then(O,S,void 0,N,void 0),A}}},{"./util":36}],35:[function(a,s,c){s.exports=function(u,h,p,v,b,x){var _=a("./util"),w=a("./errors").TypeError,O=a("./util").inherits,S=_.errorObj,E=_.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 "+_.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 S.e=ce.error(),S;if(!ce.isFulfilled())return void z.cancel();X[le]=ce.value()}re._pushContext(),J=E(J);var de=Q?J.apply(void 0,X):J(X),be=re._popContext();return x.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 x(){try{var Q=u;return u=null,Q.apply(this,arguments)}catch(ne){return v.e=ne,v}}function _(Q){return Q==null||Q===!0||Q===!1||typeof Q=="string"||typeof Q=="number"}function w(Q,ne,ae){if(_(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}}(),S=/this\s*\.\s*\S+\s*=/,E=/^[a-z$_][a-z$_0-9]*$/i;function T(Q){try{return Q+""}catch{return"[no string representation]"}}function A(Q){return Q instanceof Error||Q!==null&&typeof Q=="object"&&typeof Q.message=="string"&&typeof Q.name=="string"}function j(Q){return A(Q)&&h.propertyIsWritable(Q,"stack")}var N="stack"in new Error?function(Q){return j(Q)?Q:new Error(T(Q))}:function(Q){if(j(Q))return Q;try{throw new Error(T(Q))}catch(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=S.test(Q+"")&&h.names(Q).length>0;if(ae||se||oe)return!0}return!1}catch{return!1}},isIdentifier:function(Q){return E.test(Q)},inheritedDataKeys:O,getDataPropertyOrDefault:function(Q,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:_,isObject:function(Q){return typeof Q=="function"||typeof Q=="object"&&Q!==null},isError:A,canEvaluate:p,errorObj:v,tryCatch:function(Q){return u=Q,x},inherits:function(Q,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 _(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=E,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),x=void 0;x=b&&b.debuglog?b.debuglog("stream"):function(){};var _,w=r(42),O=r(25);v.inherits(T,u);var S=["error","close","destroy","pause","resume"];function E(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&&(_||(_=r(26).StringDecoder),this.decoder=new _(G.encoding),this.encoding=G.encoding)}function T(G){if(a=a||r(1),!(this instanceof T))return new T(G);this._readableState=new E(G,this),this.readable=!0,G&&(typeof G.read=="function"&&(this._read=G.read),typeof G.destroy=="function"&&(this._destroy=G.destroy)),u.call(this)}function A(G,z,re,X,le){var ce,de=G._readableState;return z===null?(de.reading=!1,function(be,M){if(!M.ended){if(M.decoder){var D=M.decoder.end();D&&D.length&&(M.buffer.push(D),M.length+=M.objectMode?1:D.length)}M.ended=!0,V(be)}}(G,de)):(le||(ce=function(be,M){var D;return function(Y){return h.isBuffer(Y)||Y instanceof p}(M)||typeof M=="string"||M===void 0||be.objectMode||(D=new TypeError("Invalid non-string/buffer chunk")),D}(de,z)),ce?G.emit("error",ce):de.objectMode||z&&z.length>0?(typeof z=="string"||de.objectMode||Object.getPrototypeOf(z)===h.prototype||(z=function(be){return h.from(be)}(z)),X?de.endEmitted?G.emit("error",new Error("stream.unshift() after end event")):j(G,de,z,!0):de.ended?G.emit("error",new Error("stream.push() after EOF")):(de.reading=!1,de.decoder&&!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 _||(_=r(26).StringDecoder),this._readableState.decoder=new _(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||(x("emitReadable",z.flowing),z.emittedReadable=!0,z.sync?o.nextTick(B,G):B(G))}function B(G){x("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&&(x("maybeReadMore read 0"),G.read(0),re!==z.length);)re=z.length;z.readingMore=!1}function J(G){x("readable nexttick read 0"),G.read(0)}function Q(G,z){z.reading||(x("resume read 0"),G.read(0)),z.resumeScheduled=!1,z.awaitDrain=0,G.emit("resume"),ne(G),z.flowing&&!z.reading&&G.read(0)}function ne(G){var z=G._readableState;for(x("flow",z.flowing);z.flowing&&G.read()!==null;);}function ae(G,z){return z.length===0?null:(z.objectMode?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 D=M.head,Y=1,ue=D.data;for(be-=ue.length;D=D.next;){var ie=D.data,he=be>ie.length?ie.length:be;if(he===ie.length?ue+=ie:ue+=ie.slice(0,be),(be-=he)==0){he===ie.length?(++Y,D.next?M.head=D.next:M.head=M.tail=null):(M.head=D,D.data=ie.slice(he));break}++Y}return M.length-=Y,ue}(X,le):function(be,M){var D=h.allocUnsafe(be),Y=M.head,ue=1;for(Y.data.copy(D),be-=Y.data.length;Y=Y.next;){var ie=Y.data,he=be>ie.length?ie.length:be;if(ie.copy(D,D.length-be,0,he),(be-=he)==0){he===ie.length?(++ue,Y.next?M.head=Y.next:M.head=M.tail=null):(M.head=Y,Y.data=ie.slice(he));break}++ue}return M.length-=ue,D}(X,le),de}(G,z.buffer,z.decoder),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){x("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 x("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 x("need readable",le),(z.length===0||z.length-G<z.highWaterMark)&&x("length less than watermark",le=!0),z.ended||z.reading?x("reading or ended",le=!1):le&&(x("do read"),z.reading=!0,z.sync=!0,z.length===0&&(z.needReadable=!0),this._read(z.highWaterMark),z.sync=!1,z.reading||(G=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,x("pipe count=%d opts=%j",X.pipesCount,z);var le=z&&z.end===!1||G===i.stdout||G===i.stderr?he:ce;function ce(){x("onend"),G.end()}X.endEmitted?o.nextTick(le):re.once("end",le),G.on("unpipe",function Se(Fe,ge){x("onunpipe"),Fe===re&&ge&&ge.hasUnpiped===!1&&(ge.hasUnpiped=!0,x("cleanup"),G.removeListener("close",ue),G.removeListener("finish",ie),G.removeListener("drain",de),G.removeListener("error",Y),G.removeListener("unpipe",Se),re.removeListener("end",ce),re.removeListener("end",he),re.removeListener("data",D),be=!0,!X.awaitDrain||G._writableState&&!G._writableState.needDrain||de())});var de=function(Se){return function(){var Fe=Se._readableState;x("pipeOnDrain",Fe.awaitDrain),Fe.awaitDrain&&Fe.awaitDrain--,Fe.awaitDrain===0&&c(Se,"data")&&(Fe.flowing=!0,ne(Se))}}(re);G.on("drain",de);var be=!1,M=!1;function D(Se){x("ondata"),M=!1,G.write(Se)!==!1||M||((X.pipesCount===1&&X.pipes===G||X.pipesCount>1&&K(X.pipes,G)!==-1)&&!be&&(x("false write response, pause",re._readableState.awaitDrain),re._readableState.awaitDrain++,M=!0),re.pause())}function Y(Se){x("onerror",Se),he(),G.removeListener("error",Y),c(G,"error")===0&&G.emit("error",Se)}function ue(){G.removeListener("finish",ie),he()}function ie(){x("onfinish"),G.removeListener("close",ue),he()}function he(){x("unpipe"),re.unpipe(G)}return re.on("data",D),function(Se,Fe,ge){if(typeof Se.prependListener=="function")return Se.prependListener(Fe,ge);Se._events&&Se._events[Fe]?s(Se._events[Fe])?Se._events[Fe].unshift(ge):Se._events[Fe]=[ge,Se._events[Fe]]:Se.on(Fe,ge)}(G,"error",Y),G.once("close",ue),G.once("finish",ie),G.emit("pipe",re),X.flowing||(x("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||(x("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 x("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(x("pause"),this._readableState.flowing=!1,this.emit("pause")),this},T.prototype.wrap=function(G){var z=this,re=this._readableState,X=!1;for(var le in G.on("end",function(){if(x("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){x("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<S.length;ce++)G.on(S[ce],this.emit.bind(this,S[ce]));return this._read=function(de){x("wrapped _read",de),X&&(X=!1,G.resume())},this},Object.defineProperty(T.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),T._fromList=ae}).call(this,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(x){switch((x=""+x)&&x.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(x){var _;switch(this.encoding=function(w){var O=function(S){if(!S)return"utf8";for(var E;;)switch(S){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 S;default:if(E)return;S=(""+S).toLowerCase(),E=!0}}(w);if(typeof O!="string"&&(n.isEncoding===i||!i(w)))throw new Error("Unknown encoding: "+w);return O||w}(x),this.encoding){case"utf16le":this.text=c,this.end=u,_=4;break;case"utf8":this.fillLast=s,_=4;break;case"base64":this.text=h,this.end=p,_=3;break;default:return this.write=v,void(this.end=b)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(_)}function a(x){return x<=127?0:x>>5==6?2:x>>4==14?3:x>>3==30?4:x>>6==2?-1:-2}function s(x){var _=this.lastTotal-this.lastNeed,w=function(O,S,E){if((192&S[0])!=128)return O.lastNeed=0,"<22>";if(O.lastNeed>1&&S.length>1){if((192&S[1])!=128)return O.lastNeed=1,"<22>";if(O.lastNeed>2&&S.length>2&&(192&S[2])!=128)return O.lastNeed=2,"<22>"}}(this,x);return w!==void 0?w:this.lastNeed<=x.length?(x.copy(this.lastChar,_,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(x.copy(this.lastChar,_,0,x.length),void(this.lastNeed-=x.length))}function c(x,_){if((x.length-_)%2==0){var w=x.toString("utf16le",_);if(w){var O=w.charCodeAt(w.length-1);if(O>=55296&&O<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=x[x.length-2],this.lastChar[1]=x[x.length-1],w.slice(0,-1)}return w}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=x[x.length-1],x.toString("utf16le",_,x.length-1)}function u(x){var _=x&&x.length?this.write(x):"";if(this.lastNeed){var w=this.lastTotal-this.lastNeed;return _+this.lastChar.toString("utf16le",0,w)}return _}function h(x,_){var w=(x.length-_)%3;return w===0?x.toString("base64",_):(this.lastNeed=3-w,this.lastTotal=3,w===1?this.lastChar[0]=x[x.length-1]:(this.lastChar[0]=x[x.length-2],this.lastChar[1]=x[x.length-1]),x.toString("base64",_,x.length-w))}function p(x){var _=x&&x.length?this.write(x):"";return this.lastNeed?_+this.lastChar.toString("base64",0,3-this.lastNeed):_}function v(x){return x.toString(this.encoding)}function b(x){return x&&x.length?this.write(x):""}t.StringDecoder=o,o.prototype.write=function(x){if(x.length===0)return"";var _,w;if(this.lastNeed){if((_=this.fillLast(x))===void 0)return"";w=this.lastNeed,this.lastNeed=0}else w=0;return w<x.length?_?_+this.text(x,w):this.text(x,w):_||""},o.prototype.end=function(x){var _=x&&x.length?this.write(x):"";return this.lastNeed?_+"<22>":_},o.prototype.text=function(x,_){var w=function(S,E,T){var A=E.length-1;if(A<T)return 0;var j=a(E[A]);return j>=0?(j>0&&(S.lastNeed=j-1),j):--A<T||j===-2?0:(j=a(E[A]))>=0?(j>0&&(S.lastNeed=j-2),j):--A<T||j===-2?0:(j=a(E[A]))>=0?(j>0&&(j===2?j=0:S.lastNeed=j-3),j):0}(this,x,_);if(!this.lastNeed)return x.toString("utf8",_);this.lastTotal=w;var O=x.length-(w-this.lastNeed);return x.copy(this.lastChar,0,O),x.toString("utf8",_,O)},o.prototype.fillLast=function(x){if(this.lastNeed<=x.length)return x.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);x.copy(this.lastChar,this.lastTotal-this.lastNeed,0,x.length),this.lastNeed-=x.length}},function(e,t,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,_){x.__proto__=_}||function(x,_){for(var w in _)_.hasOwnProperty(w)&&(x[w]=_[w])};return function(x,_){function w(){this.constructor=x}b(x,_),x.prototype=_===null?Object.create(_):(w.prototype=_.prototype,new w)}}(),o=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(t,"__esModule",{value:!0});var a=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(_),O.runtime=c.initParseRuntime(O),O.result=new p.Result(O),O.processor=new h.ProcessorLocal(O),O.once("error",function(S){n(function(){O.result.processError(S),O.emit("done",S)})}),O.once("done",function(){O.processor.destroy()}),O}return i(x,b),x.prototype.preRawData=function(_){return this.runtime.preRawDataHook=_,this},x.prototype.preFileLine=function(_){return this.runtime.preFileLineHook=_,this},x.prototype.subscribe=function(_,w,O){return this.parseRuntime.subscribe={onNext:_,onError:w,onCompleted:O},this},x.prototype.fromFile=function(_,w){var O=this,S=r(!function(){var E=new Error("Cannot find module 'fs'");throw E.code="MODULE_NOT_FOUND",E}());return S.exists(_,function(E){E?S.createReadStream(_,w).pipe(O):O.emit("error",new Error("File does not exist. Check to make sure the file path to your csv is correct."))}),this},x.prototype.fromStream=function(_){return _.pipe(this),this},x.prototype.fromString=function(_){_.toString();var w=new a.Readable,O=0;return w._read=function(S){if(O>=_.length)this.push(null);else{var E=_.substr(O,S);this.push(E),O+=S}},this.fromStream(w)},x.prototype.then=function(_,w){var O=this;return new u.default(function(S,E){O.parseRuntime.then={onfulfilled:function(T){S(_?_(T):T)},onrejected:function(T){w?S(w(T)):E(T)}}})},Object.defineProperty(x.prototype,"parseParam",{get:function(){return this.params},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"parseRuntime",{get:function(){return this.runtime},enumerable:!0,configurable:!0}),x.prototype._transform=function(_,w,O){var S=this;this.processor.process(_).then(function(E){if(E.length>0)return S.runtime.started=!0,S.result.processResult(E)}).then(function(){S.emit("drained"),O()},function(E){S.runtime.hasError=!0,S.runtime.error=E,S.emit("error",E),O()})},x.prototype._flush=function(_){var w=this;this.processor.flush().then(function(O){if(O.length>0)return w.result.processResult(O)}).then(function(){w.processEnd(_)},function(O){w.emit("error",O),_()})},x.prototype.processEnd=function(_){this.result.endProcess(),this.emit("done"),_()},Object.defineProperty(x.prototype,"parsedLineNumber",{get:function(){return this.runtime.parsedLineNumber},enumerable:!0,configurable:!0}),x}(a.Transform);t.Converter=v}).call(this,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(_){i.nextTick(function(){x(_)})}:function(){if(o.postMessage&&!o.importScripts){var _=!0,w=o.onmessage;return o.onmessage=function(){_=!1},o.postMessage("","*"),o.onmessage=w,_}}()?function(){var _="setImmediate$"+Math.random()+"$",w=function(O){O.source===o&&typeof O.data=="string"&&O.data.indexOf(_)===0&&x(+O.data.slice(_.length))};o.addEventListener?o.addEventListener("message",w,!1):o.attachEvent("onmessage",w),s=function(O){o.postMessage(_+O,"*")}}():o.MessageChannel?function(){var _=new MessageChannel;_.port1.onmessage=function(w){x(w.data)},s=function(w){_.port2.postMessage(w)}}():p&&"onreadystatechange"in p.createElement("script")?function(){var _=p.documentElement;s=function(w){var O=p.createElement("script");O.onreadystatechange=function(){x(w),O.onreadystatechange=null,_.removeChild(O),O=null},_.appendChild(O)}}():s=function(_){setTimeout(x,0,_)},v.setImmediate=function(_){typeof _!="function"&&(_=new Function(""+_));for(var w=new Array(arguments.length-1),O=0;O<w.length;O++)w[O]=arguments[O+1];var S={callback:_,args:w};return u[c]=S,s(c),c++},v.clearImmediate=b}function b(_){delete u[_]}function x(_){if(h)setTimeout(x,0,_);else{var w=u[_];if(w){h=!0;try{(function(O){var S=O.callback,E=O.args;switch(E.length){case 0:S();break;case 1:S(E[0]);break;case 2:S(E[0],E[1]);break;case 3:S(E[0],E[1],E[2]);break;default:S.apply(a,E)}})(w)}finally{b(_),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(_){o.writable&&o.write(_)===!1&&s.pause&&s.pause()}function u(){s.readable&&s.resume&&s.resume()}s.on("data",c),o.on("drain",u),o._isStdio||a&&a.end===!1||(s.on("end",p),s.on("close",v));var h=!1;function p(){h||(h=!0,o.end())}function v(){h||(h=!0,typeof o.destroy=="function"&&o.destroy())}function b(_){if(x(),n.listenerCount(this,"error")===0)throw _}function x(){s.removeListener("data",c),o.removeListener("drain",u),s.removeListener("end",p),s.removeListener("close",v),s.removeListener("error",b),o.removeListener("error",b),s.removeListener("end",x),s.removeListener("close",x),o.removeListener("close",x)}return s.on("error",b),o.on("error",b),s.on("end",x),s.on("close",x),o.on("close",x),o.emit("pipe",s),o}},function(e,t){var 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),x=b[0],_=b[1];return 3*(x+_)/4-_},t.toByteArray=function(v){for(var b,x=u(v),_=x[0],w=x[1],O=new o(3*(_+w)/4-w),S=0,E=w>0?_-4:_,T=0;T<E;T+=4)b=i[v.charCodeAt(T)]<<18|i[v.charCodeAt(T+1)]<<12|i[v.charCodeAt(T+2)]<<6|i[v.charCodeAt(T+3)],O[S++]=b>>16&255,O[S++]=b>>8&255,O[S++]=255&b;return w===2&&(b=i[v.charCodeAt(T)]<<2|i[v.charCodeAt(T+1)]>>4,O[S++]=255&b),w===1&&(b=i[v.charCodeAt(T)]<<10|i[v.charCodeAt(T+1)]<<4|i[v.charCodeAt(T+2)]>>2,O[S++]=b>>8&255,O[S++]=255&b),O},t.fromByteArray=function(v){for(var b,x=v.length,_=x%3,w=[],O=0,S=x-_;O<S;O+=16383)w.push(p(v,O,O+16383>S?S:O+16383));return _===1?(b=v[x-1],w.push(n[b>>2]+n[b<<4&63]+"==")):_===2&&(b=(v[x-2]<<8)+v[x-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 x=v.indexOf("=");return x===-1&&(x=b),[x,x===b?0:4-x%4]}function h(v){return n[v>>18&63]+n[v>>12&63]+n[v>>6&63]+n[63&v]}function p(v,b,x){for(var _,w=[],O=b;O<x;O+=3)_=(v[O]<<16&16711680)+(v[O+1]<<8&65280)+(255&v[O+2]),w.push(h(_));return w.join("")}i[45]=62,i[95]=63},function(e,t){t.read=function(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,x=i?-1:1,_=r[n+b];for(b+=x,s=_&(1<<-v)-1,_>>=-v,v+=u;v>0;s=256*s+r[n+b],b+=x,v-=8);for(c=s&(1<<-v)-1,s>>=-v,v+=o;v>0;c=256*c+r[n+b],b+=x,v-=8);if(s===0)s=1-p;else{if(s===h)return c?NaN:1/0*(_?-1:1);c+=Math.pow(2,o),s-=p}return(_?-1:1)*c*Math.pow(2,s-o)},t.write=function(r,n,i,o,a,s){var c,u,h,p=8*s-a-1,v=(1<<p)-1,b=v>>1,x=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,_=o?0:s-1,w=o?1:-1,O=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?x/h:x*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+_]=255&u,_+=w,u/=256,a-=8);for(c=c<<a|u,p+=a;p>0;r[i+_]=255&c,_+=w,c/=256,p-=8);r[i+_-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,S){O.__proto__=S}||function(O,S){for(var E in S)S.hasOwnProperty(E)&&(O[E]=S[E])};return function(O,S){function E(){this.constructor=O}w(O,S),O.prototype=S===null?Object.create(S):(E.prototype=S.prototype,new E)}}(),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)),x=o(r(29)),_=function(w){function O(){var S=w!==null&&w.apply(this,arguments)||this;return S.rowSplit=new v.RowSplit(S.converter),S.eolEmitted=!1,S._needEmitEol=void 0,S.headEmitted=!1,S._needEmitHead=void 0,S}return i(O,w),O.prototype.flush=function(){var S=this;if(this.runtime.csvLineBuffer&&this.runtime.csvLineBuffer.length>0){var E=this.runtime.csvLineBuffer;return this.runtime.csvLineBuffer=void 0,this.process(E,!0).then(function(T){return S.runtime.csvLineBuffer&&S.runtime.csvLineBuffer.length>0?s.default.reject(x.default.unclosed_quote(S.runtime.parsedLineNumber,S.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(S,E){var T,A=this;return E===void 0&&(E=!1),T=E?S.toString():c.prepareData(S,this.converter.parseRuntime),s.default.resolve().then(function(){return A.runtime.preRawDataHook?A.runtime.preRawDataHook(T):T}).then(function(j){return j&&j.length>0?A.processCSV(j,E):s.default.resolve([])})},O.prototype.processCSV=function(S,E){var T=this,A=this.params,j=this.runtime;j.eol||u.default(S,j),this.needEmitEol&&!this.eolEmitted&&j.eol&&(this.converter.emit("eol",j.eol),this.eolEmitted=!0),A.ignoreEmpty&&!j.started&&(S=p.trimLeft(S));var N=h.stringToLines(S,j);return E?(N.lines.push(N.partial),N.partial=""):this.prependLeftBuf(p.bufFromString(N.partial)),N.lines.length>0?(j.preFileLineHook?this.runPreLineHook(N.lines):s.default.resolve(N.lines)).then(function(F){return j.started||T.runtime.headers?T.processCSVBody(F):T.processDataWithHead(F)}):s.default.resolve([])},O.prototype.processDataWithHead=function(S){if(this.params.noheader)this.params.headers?this.runtime.headers=this.params.headers:this.runtime.headers=[];else{for(var E="",T=[];S.length;){var A=E+S.shift(),j=this.rowSplit.parse(A);if(j.closed){T=j.cells,E="";break}E=A+u.default(A,this.runtime)}if(this.prependLeftBuf(p.bufFromString(E)),T.length===0)return[];this.params.headers?this.runtime.headers=this.params.headers:this.runtime.headers=T}return(this.runtime.needProcessIgnoreColumn||this.runtime.needProcessIncludeColumn)&&this.filterHeader(),this.needEmitHead&&!this.headEmitted&&(this.converter.emit("header",this.runtime.headers),this.headEmitted=!0),this.processCSVBody(S)},O.prototype.filterHeader=function(){if(this.runtime.selectedColumns=[],this.runtime.headers){for(var S=this.runtime.headers,E=0;E<S.length;E++)if(this.params.ignoreColumns)if(this.params.ignoreColumns.test(S[E])){if(!this.params.includeColumns||!this.params.includeColumns.test(S[E]))continue;this.runtime.selectedColumns.push(E)}else this.runtime.selectedColumns.push(E);else this.params.includeColumns?this.params.includeColumns.test(S[E])&&this.runtime.selectedColumns.push(E):this.runtime.selectedColumns.push(E);this.runtime.headers=p.filterArray(this.runtime.headers,this.runtime.selectedColumns)}},O.prototype.processCSVBody=function(S){if(this.params.output==="line")return S;var E=this.rowSplit.parseMultiLines(S);return this.prependLeftBuf(p.bufFromString(E.partial)),this.params.output==="csv"?E.rowsCells:b.default(E.rowsCells,this.converter)},O.prototype.prependLeftBuf=function(S){S&&(this.runtime.csvLineBuffer?this.runtime.csvLineBuffer=n.concat([S,this.runtime.csvLineBuffer]):this.runtime.csvLineBuffer=S)},O.prototype.runPreLineHook=function(S){var E=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()})(S,E.runtime,0,function(j){j?A(j):T(S)})})},O}(a.Processor);t.ProcessorLocal=_}).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 x=0;x<b.length;x++)b[x]=b[x].trim();return{cells:b,closed:!0}}return this.toCSVRow(b,p,h,v)},c.prototype.toCSVRow=function(u,h,p,v){for(var b=[],x=!1,_="",w=0,O=u.length;w<O;w++){var S=u[w];!x&&h&&(S=o.trimLeft(S));var E=S.length;if(x)this.isQuoteClose(S)?(x=!1,_+=v+(S=S.substr(0,E-1)),_=this.escapeQuote(_),h&&(_=o.trimRight(_)),b.push(_),_=""):_+=v+S;else{if(E===2&&S===this.quote+this.quote){b.push("");continue}if(this.isQuoteOpen(S)){if(S=S.substr(1),this.isQuoteClose(S)){S=S.substring(0,S.lastIndexOf(p)),S=this.escapeQuote(S),b.push(S);continue}if(S.indexOf(p)!==-1){for(var T=0,A="",j=0,N=S;j<N.length;j++){var F=N[j];F===p&&A!==this.escape?(T++,A=""):A=F}if(T%2==1){h&&(S=o.trimRight(S)),b.push(p+S);continue}x=!0,_+=S;continue}x=!0,_+=S;continue}h&&(S=o.trimRight(S)),b.push(S)}}return{cells:b,closed:!x}},c.prototype.getDelimiter=function(u){var h;if(this.conv.parseParam.delimiter==="auto")h=a;else{if(!(this.conv.parseParam.delimiter instanceof Array))return this.conv.parseParam.delimiter;h=this.conv.parseParam.delimiter}var p=0,v=",";return h.forEach(function(b){var x=u.split(b).length;x>p&&(v=b,p=x)}),v},c.prototype.isQuoteOpen=function(u){var h=this.quote,p=this.escape;return u[0]===h&&(u[1]!==h||u[1]===p&&(u[2]===h||u.length===2))},c.prototype.isQuoteClose=function(u){var h=this.quote,p=this.escape;this.conv.parseParam.trim&&(u=o.trimRight(u));for(var v=0,b=u.length-1;u[b]===h||u[b]===p;)b--,v++;return v%2!=0},c.prototype.escapeQuote=function(u){var h="es|"+this.quote+"|"+this.escape;this.cachedRegExp[h]===void 0&&(this.cachedRegExp[h]=new RegExp("\\"+this.escape+"\\"+this.quote,"g"));var p=this.cachedRegExp[h];return u.replace(p,this.quote)},c.prototype.parseMultiLines=function(u){for(var h=[],p="";u.length;){var v=p+u.shift(),b=this.parse(v);b.cells.length===0&&this.conv.parseParam.ignoreEmpty||(b.closed||this.conv.parseParam.alwaysSplitAtEOL?(this.conv.parseRuntime.selectedColumns?h.push(o.filterArray(b.cells,this.conv.parseRuntime.selectedColumns)):h.push(b.cells),p=""):p=v+(i.default(v,this.conv.parseRuntime)||`
`))}return{rowsCells:h,partial:p}},c}();t.RowSplit=s},function(e,t,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,S,E){if(S.parseParam.checkColumn&&S.parseRuntime.headers&&O.length!==S.parseRuntime.headers.length)throw i.default.column_mismatched(S.parseRuntime.parsedLineNumber+E);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,S.parseRuntime.headers||[],S)||null}t.default=function(O,S){for(var E=[],T=0,A=O.length;T<A;T++){var j=s(O[T],S,T);j&&E.push(j)}return E};var c={string:_,number:x,omit:function(){}};function u(O,S,E){if(E.parseRuntime.columnConv[S]!==void 0)return E.parseRuntime.columnConv[S];var T=E.parseParam.colParser[O];if(T===void 0)return E.parseRuntime.columnConv[S]=null;if(typeof T=="object"&&(T=T.cellParser||"string"),typeof T=="string"){T=T.trim().toLowerCase();var A=c[T];return E.parseRuntime.columnConv[S]=A||null}return E.parseRuntime.columnConv[S]=typeof T=="function"?T:null}function h(O,S,E,T,A){if(!T.parseRuntime.columnValueSetter[A])if(T.parseParam.flatKeys)T.parseRuntime.columnValueSetter[A]=p;else if(S.indexOf(".")>-1){for(var j=S.split("."),N=!0;j.length>0;)if(j.shift().length===0){N=!1;break}!N||T.parseParam.colParser[S]&&T.parseParam.colParser[S].flat?T.parseRuntime.columnValueSetter[A]=p:T.parseRuntime.columnValueSetter[A]=v}else T.parseRuntime.columnValueSetter[A]=p;T.parseParam.nullObject===!0&&E==="null"&&(E=null),T.parseRuntime.columnValueSetter[A](O,S,E)}function p(O,S,E){O[S]=E}function v(O,S,E){o.default(O,S,E)}function b(O,S,E,T){return T.parseRuntime.headerType[E]?T.parseRuntime.headerType[E]:S.indexOf("number#!")>-1?T.parseRuntime.headerType[E]=x:S.indexOf("string#!")>-1?T.parseRuntime.headerType[E]=_:T.parseParam.checkType?T.parseRuntime.headerType[E]=w:T.parseRuntime.headerType[E]=_}function x(O){var S=parseFloat(O);return isNaN(S)?O:S}function _(O){return O.toString()}function w(O){var S=O.trim();return S===""?_(O):a.test(S)?x(O):S.length===5&&S.toLowerCase()==="false"||S.length===4&&S.toLowerCase()==="true"?function(E){var T=E.trim();return T.length!==5||T.toLowerCase()!=="false"}(O):S[0]==="{"&&S[S.length-1]==="}"||S[0]==="["&&S[S.length-1]==="]"?function(E){try{return JSON.parse(E)}catch{return E}}(O):_(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,x=b-1,_=c;_!=null&&++v<b;){var w=s(u[v]),O=h;if(v!=x){var S=_[w];(O=p?p(S,w,_):void 0)===void 0&&(O=a(S)?S:o(u[v+1])?[]:{})}n(_,w,O),_=_[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,S,E){if(O>=_.length)E();else if(w.parseRuntime.subscribe&&w.parseRuntime.subscribe.onNext){var T=w.parseRuntime.subscribe.onNext,A=_[O],j=T(A,w.parseRuntime.parsedLineNumber+O);if(O++,j&&j.then)j.then(function(){(function(F,V,B,W,q,J,Q){q&&s(B,Q),x(F,B,W,q,J)})(_,0,w,O,S,E,A)},E);else{for(S&&s(w,A);O<_.length;){var N=_[O];T(N,w.parseRuntime.parsedLineNumber+O),O++,S&&s(w,N)}E()}}else{if(S)for(;O<_.length;)N=_[O++],s(w,N);E()}}(u,h.converter,0,h.needPushDownstream,function(x){x?b(x):(h.appendFinalResult(u),v())}):(h.appendFinalResult(u),v())})},c.prototype.appendFinalResult=function(u){this.needEmitAll&&(this.finalResult=this.finalResult.concat(u)),this.converter.parseRuntime.parsedLineNumber+=u.length},c.prototype.processError=function(u){this.converter.parseRuntime.subscribe&&this.converter.parseRuntime.subscribe.onError&&this.converter.parseRuntime.subscribe.onError(u),this.converter.parseRuntime.then&&this.converter.parseRuntime.then.onrejected&&this.converter.parseRuntime.then.onrejected(u)},c.prototype.endProcess=function(){this.converter.parseRuntime.then&&this.converter.parseRuntime.then.onfulfilled&&(this.needEmitAll?this.converter.parseRuntime.then.onfulfilled(this.finalResult):this.converter.parseRuntime.then.onfulfilled([])),this.converter.parseRuntime.subscribe&&this.converter.parseRuntime.subscribe.onCompleted&&this.converter.parseRuntime.subscribe.onCompleted(),this.needPushDownstream&&this.converter.parseParam.downstreamFormat==="array"&&s(this.converter,"]"+o.EOL)},c}();function s(c,u){if(typeof u!="object"||c.options.objectMode)c.push(u);else{var h=JSON.stringify(u);c.push(h+(c.parseParam.downstreamFormat==="array"?","+o.EOL:o.EOL),"utf8")}}t.Result=a},function(e,t){t.endianness=function(){return"LE"},t.hostname=function(){return typeof location<"u"?location.hostname:""},t.loadavg=function(){return[]},t.uptime=function(){return 0},t.freemem=function(){return Number.MAX_VALUE},t.totalmem=function(){return Number.MAX_VALUE},t.cpus=function(){return[]},t.type=function(){return"Browser"},t.release=function(){return typeof navigator<"u"?navigator.appVersion:""},t.networkInterfaces=t.getNetworkInterfaces=function(){return{}},t.arch=function(){return"javascript"},t.platform=function(){return"browser"},t.tmpdir=t.tmpDir=function(){return"/tmp"},t.EOL=`
`,t.homedir=function(){return"/"}}])),YO}var uke=lke();const cke=Nt(uke),fke=e=>new Promise(t=>{cke().fromString(e).then(t)}),dke=new C7,hke=e=>dke.parse(e),pke="shlink",x8=e=>`${pke}.${e}`;class mke{constructor(t){Tc(this,"get",t=>{const r=this.localStorage.getItem(x8(t));return r?JSON.parse(r):void 0});Tc(this,"set",(t,r)=>this.localStorage.setItem(x8(t),JSON.stringify(r)));this.localStorage=t}}class vke{constructor(t){this.storage=t}getTagColors(){return this.storage.get("colors")??{}}storeTagColors(t){this.storage.set("colors",t)}}const gke=e=>{e.constant("localStorage",window.localStorage),e.service("Storage",mke,"localStorage"),e.service("TagColorsStorage",vke,"Storage"),e.constant("csvToJson",fke),e.constant("jsonToCsv",hke),e.serviceFactory("useTimeoutToggle",()=>$F)},Uu=new n$,{container:_A}=Uu,yke=(e,t)=>(...r)=>e[t](...r),bke=(e,t)=>({...e,[t]:yke(_A,t)}),_ke=e=>t=>Object.fromEntries(e.map(r=>[r,t[r]])),$b=(e,t=[])=>k8(e?_ke(e):null,t.reduce(bke,{}));Voe(Uu,$b);hAe(Uu,$b);AK(Uu);eke(Uu,$b);gke(Uu);ske(Uu,$b);var ZO={},vg={exports:{}},w8;function xke(){return w8||(w8=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 x=p[b];if(a(x)){for(var _ in x)if(!(_==="__proto__"||_==="constructor"||_==="prototype")){var w=u?o(x[_]):x[_];v[_]=h?s(v[_],w):w}}}return v}}(vg,vg.exports)),vg.exports}var O8;function wke(){return O8||(O8=1,function(e){var t=r(xke());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,S=!1,E=new Map;function T(K){console.warn(p,K)}function A(){}var j=function(K){return K?A:T};function N(K,G){return G===void 0?null:K.length===1?G[K[0]]:N(K.slice(1),G[K[0]])}function 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?x:G,re=K.ignoreStates,X=re===void 0?_:re,le=K.namespace,ce=le===void 0?v:le,de=K.namespaceSeparator,be=de===void 0?b:de,M=K.debounce,D=M===void 0?w:M,Y=K.disableWarnings,ue=Y===void 0?S: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,Ee):z.forEach(function(Be){var qe=ce+be+Be,ye=Fe(Be,Ee);ye?He.setItem(qe,ye):He.removeItem(qe)})}var Ee,je=j(ue),Me=he(Se);Q(z)||(console.error(p,"'states' parameter in 'save()' method was passed a non-array value. Setting default value instead. Check your 'save()' method."),z=x),Q(X)||(console.error(p,"'ignoreStates' parameter in 'save()' method was passed a non-array value. Setting default value instead. Check your 'save()' method."),X=_),0<X.length&&(X=X.filter(function(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(D)||(console.error(p,"'debounce' parameter in 'save()' method was passed a non-integer value. Setting default value instead. Check your 'save()' method."),D=w),Ee=0<X.length?oe(X,ie.getState()):ie.getState();var He=new V(je);return D?(E.get(z+ce)&&clearTimeout(E.get(z+ce)),E.set(z+ce,setTimeout(function(){ge()},D))):ge(),Me}}}}function W(){var K=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},G=K.states,z=G===void 0?x: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,D=M===void 0?{}:M,Y=K.disableWarnings,ue=Y===void 0?S:Y,ie=j(ue);Q(z)||(console.error(p,"'states' parameter in 'load()' method was passed a non-array value. Setting default value instead. Check your 'load()' method."),z=x),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=D;if(z.length===0){var Fe=he.getItem(ce);Fe&&(Se=Fe)}else z.forEach(function(ge){var Ee=ce+be+ge,je=he.getItem(Ee);je?Se=t.default.recursive(Se,F(ge,je)):ie("Invalid load '"+Ee+"' provided. Check your 'states' in 'load()'. If this is your first time running this app you may see this message. To disable it in future use the 'disableWarnings' flag, see documentation.")});return Se}function 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?S: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}}(ZO)),ZO}var kW=wke();const Oke=e=>AT({appUpdated:zoe,servers:IAe,selectedServer:e.selectedServerReducer,settings:oke}),Ske=e=>(e.settings&&e.settings.visits&&e.settings.visits.defaultInterval==="last180days"&&(e.settings.visits.defaultInterval="last180Days"),e),Pke=!0,RW={states:["settings","servers"],namespace:"shlink",namespaceSeparator:".",debounce:300},Cke=Ske(kW.load(RW)),Eke=e=>JF({devTools:!Pke,reducer:Oke(e),preloadedState:Cke,middleware:t=>t({immutableCheck:!1,serializableCheck:!1}).concat(kW.save(RW))}),Tke=!!(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 jke(e){if("serviceWorker"in navigator){if(new URL(kg.homepage,window.location.href).origin!==window.location.origin)return;window.addEventListener("load",()=>{const r=`${kg.homepage}/service-worker.js`;Tke?(Ake(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")})):NW(r,e)})}}function NW(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 Ake(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()})}):NW(e,t)}).catch(()=>{console.log("No internet connection found. App is running in offline mode.")})}const MW=Eke(_A),{App:kke,ScrollToTop:Rke,ErrorHandler:Nke,appUpdateAvailable:Mke}=_A;Cq.createRoot(document.getElementById("root")).render(g.jsx(R8,{store:MW,children:g.jsx(W8,{basename:kg.homepage,children:g.jsx(Nke,{children:g.jsx(Rke,{children:g.jsx(kke,{})})})})}));jke({onUpdate(){MW.dispatch(Mke())}});